freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內容

服裝庫存管理系統(tǒng)課程設計(完整版)

2025-05-18 03:38上一頁面

下一頁面
  

【正文】 庫單詳細信息、更新入庫單、提交入庫單、查詢入庫單、新增入庫單明細、查看入庫單明細的詳細信息、更新入庫單明細、刪除入庫單明細、查詢入庫單明細。用戶可以根據(jù)貨號、色號、尺碼來查看貨號詳細信息。用戶在保存出庫單信息后可以進行新增出庫單詳細信息的操作,新建時可以設定出庫單明細的貨號、色號、尺碼和數(shù)量。用戶輸入舊密碼。 2.用戶修改密碼需求編號:CODEMN2 需求描述:用戶修改密碼CODEMN21:用戶輸入舊密碼、新密碼、確認密碼。圖4 修改密碼時序圖如圖4所示,用戶首先在修改密碼頁面內輸入舊密碼、新密碼、確認密碼,UserServlet獲取用戶輸入的舊密碼、新面貌、確認密碼,并且調用userImpl中的updatePwd()函數(shù),以獲取的三個值作為參數(shù),updatePwd()將舊密碼發(fā)往數(shù)據(jù)庫中進行驗證,UserServlet根據(jù)驗證結果來判斷密碼是否修改成功和傳送提示信息。定義的是登陸驗證方法,此方法聲名了在實現(xiàn)登陸的方法中需要傳進的兩個參數(shù)String userLogin,String password,即登錄號和登陸密碼。import 。 pst=(Statement) ()。)。 and )。db=new DBconnection()。 public Connection getConn() throws ClassNotFoundException, SQLException { ()。)。}說明:if(==)和if(==)是用于判斷登陸界面用于輸入登錄號和登陸密碼的兩個文本框中的值是否為空,當用戶點擊“登陸”按鈕時若userid和psword還為空,則提醒用戶輸入登錄號和登陸密碼。 if(()){ (userLogin,user_name)。String user_pwd=(psword)。else{ String msg=用戶密碼錯誤。import 。and password=39。 (update usertable set password=39。 } }說明:(select * from usertable where)。此段代碼是將拼寫好的sql語句送入mysql數(shù)據(jù)庫中。PreparedStatement pst1=(PreparedStatement) (())。!=){ if(!=){ alert(39。 } =UserServlet?opt=updatePwd。代碼段4 獲取頁面的操作類型: public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String opt=(opt)。//獲取用戶登陸 的登錄號 String oldPwd=(oldPwd)。//將msg提示信息傳送至頁面 (request, response)。(msg, msg)。第五,這次的服裝管理系統(tǒng)是我們一個團隊共同開發(fā)而成的,我們每個人在團隊里面都擔任著不同的角色,但是每個角色都是這個團隊不可或缺的部分,因此,通過這次實訓,我加強了自己的團隊意識、團隊合作能力等。//登陸驗證}/////接口實現(xiàn)部分package 。import 。 } ///////////////登陸驗證//////////////////// public ResultSet loginUser(String userLogin, String password) throws SQLException { // TODO Autogenerated method stub StringBuffer strsql=new StringBuffer()。 ResultSet rs=(ResultSet) (())。)。 where userLogin=39。import 。import 。///調用doPost方法 } public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String opt=(opt)。 String user_name=(userid)。///驗證失敗,任然停留在登陸頁面 (request, response)。 } else{ msg=密碼修改成功。//將變量msg存儲在msg中 RequestDispatcher rd=(mon/)。 String userName=(String)(userLogin)。///獲得頁面輸入的登錄密碼 ResultSet rs=(user_name, user_pwd)。 if((login))//判斷是否選擇登陸操作 { try { dologin(request,response)。import 。import 。)。//連接數(shù)據(jù)庫 Connection conn=()。 } ////////////////修改密碼///////////////////////// public int updatePwd(String userLogin,String oldPwd,String newPwd) throws SQLException, ClassNotFoundException{ // TODO Autogenerated method stub StringBuffer strSql=new StringBuffer()。//拼寫修改 ( userLogin=39。 Connection conn=null。import 。 參考文獻[1] 王行言. java語言與面向對象程序設計 [M]. 北京:清華大學出版社, 附 錄/////接口聲明package 。RequestDispatcher rd=(mon/)。String oldPwd=(oldPwd)。//獲取新密碼 int result=(userName, oldPwd, newPwd)。 if((updatePwd)){ //判斷是否選擇修改密碼操作 try { doUpdatePwd(request,response)。}說明:if(==)此段代碼的作用是判斷oldPwd的值是否為空,若為空則彈出“請?zhí)顚懪f密碼”的錯誤提醒。)。代碼段3 在頁面對舊密碼、新密碼、確認密碼進行驗證:function save(){ if(==){ alert(39。此段代碼是將送入數(shù)據(jù)庫中sql語句執(zhí)行,并且將執(zhí)行后的結果集賦值給rs。+userLogin+39。 where userLogin=39。)。//修改密碼}說明:此段代碼的作用是定義接口聲明相關的方法,public int updatePwd(String userLogin,String oldPwd,String newPwd) throws SQLException, ClassNotFoundException。 RequestDispatcher rd=()。ResultSet rs=(user_name, user_pwd)。 } //////////////頁面的跳轉,驗證成功進入主頁面,否則任然停留在登陸頁面/////// else{ String msg=用戶密碼錯誤。()。 } if(==) { alert(39。 return conn。 pst=(Statement) ()。+password+39。 return rs。 ( select *
點擊復制文檔內容
公司管理相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1