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

正文內(nèi)容

員工管理系統(tǒng)j2ee應(yīng)用架構(gòu)與eclipse開(kāi)發(fā)技術(shù)課程(編輯修改稿)

2025-07-16 16:08 本頁(yè)面
 

【文章內(nèi)容簡(jiǎn)介】 g getUser(){return strUser。} public String getPswd(){return strPswd。} public String getName(){return strName。} public String getTel(){return strTel。} public String getEmail(){return strEmail。} public int getIsAdmin(){return iIsAdmin。} } UserLogin 類(lèi)(用于完成用戶(hù)登錄驗(yàn)證和密碼修改) package 。 import .*。 public class UserLogin{ public int login(String strUser,String strPswd,User user){ int re=0。 DBAgent dba=null。 try { String sql=select * from stufflist where user=39。+strUser+39。 (sql)。 dba=new DBAgent()。 ResultSet rs=(sql)。 if (rs!=null){ if (!()) re=1。 else{ if(((password))) { ((id),(user),(name),(password),(tel),(),(isadmin))。 }else re=2。 } }else re=1。 } catch (Exception e) { ()。 《 J2EE 應(yīng)用架構(gòu)與 Eclipse 開(kāi)發(fā)技術(shù)》 課程設(shè)計(jì)報(bào)告 Date: 20xx65 Page 15 of 25 } finally { try { if (dba !=null) ()。 }catch (Exception e){ ()。 } } return re。 } //修改密碼 public boolean modifyPswd(String strUser,String strOldPswd,String strNewPswd) { boolean re=false。 DBAgent dba=null。 try{ String sql=update stufflist set password=39。+strNewPswd+39。where user=39。 +strUser+39。and password39。 +39。 dba=new DBAgent()。 re=(sql) 0 ? true : false。 } catch (Exception e) { re =false。 ()。 } finally { try { if (dba !=null) ()。 } catch (Exception e) { ()。 } } return re。 } } StuffAdmin 類(lèi)(用于完成員工管理功能) package 。 import 。 public class StuffAdmin { public int addStuff(User user ){ int id=1。 DBAgent dba=null。 try{ dba=new DBAgent()。 ResultSet rs=(select * from stufflist where user=39。+()+39。)。 if(()) id=2。 else 《 J2EE 應(yīng)用架構(gòu)與 Eclipse 開(kāi)發(fā)技術(shù)》 課程設(shè)計(jì)報(bào)告 Date: 20xx65 Page 16 of 25 id=(insert into stufflist(user,password,name,tel,,isadmin)+values(39。+()+39。,39。+us()+39。,39。+()+39。,39。+()+39。,39。+()+39。,39。+u()+),id)。 }catch(Exception e){ ()。 }finally{ try{ if(dba!=null) ()。 }catch(Exception e){ ()。 } } return id。 } public boolean delStuff(int iUserID){ boolean re=false。 DBAgent dba=null。 try{ dba=new DBAgent()。 re=(delete from stufflist where id=+iUserID) 0 ? true : false。 }catch(Exception e){ ()。 }finally{ try{ if(dba!=null) ()。 }catch(Exception e){ ()。 } } return re。 } public boolean updateStuff(User user){ boolean re=false。 DBAgent dba=null。 try{dba=new DBAgent()。 ResultSet rs=(select * from stufflist where user=39。+()+39。)。 if(!(())) re=(update stufflist set user=39。+()+39。,password=39。+()+39。,name=39。+()+39。,tel=39。+()+39。,=39。+()+39。,isadmin=39。+()+where id=+()) 0 ? true: false。 }catch (Exception e){ ()。 }finally{ try{ 《 J2EE 應(yīng)用架構(gòu)與 Eclipse 開(kāi)發(fā)技術(shù)》 課程設(shè)計(jì)報(bào)告 Date: 20xx65 Page 17 of 25 if(dba!=null) ()。 }catch(Exception e){ ()。 } } return re。 } } ViewList 類(lèi)(把數(shù)據(jù)庫(kù)里的員工信息顯 示到瀏覽器) package 。 import .*。 import .*。 import .*。 import .*。 public class ViewList extends HttpServlet { public synchronized void service(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException { (text/html。charset=GBK)。 PrintWriter out = ()。 Connection =null。 Statement stmt=null。 ResultSet rs=null。 try{ ()。 String url=jdbc: String user=root。 String password=123456。 =(url,user,password)。 stmt=()。 rs=(select * from stufflist)。 // 通過(guò) response向客戶(hù)端應(yīng)答 (html)。 (head)。 (title顯示小組 /title)。 (/head)。 (body)。
點(diǎn)擊復(fù)制文檔內(nèi)容
研究報(bào)告相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1