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

正文內(nèi)容

[管理學(xué)]人事管理系統(tǒng)綜合設(shè)計(jì)報(bào)告(編輯修改稿)

2025-04-19 02:07 本頁(yè)面
 

【文章內(nèi)容簡(jiǎn)介】 raduatetimevarchar(22)畢業(yè)時(shí)間workvarchar(22)工作workredayvarchar(22)工作日期marriagevarchar(22)是否結(jié)婚psm(崗位管理)屬性類(lèi)型pidvarchar(22)pnovarchar(22)pnamevarchar(22)pstylevarchar(22)pmaxvarchar(22)varchar(22)firetable(離職表)屬性類(lèi)型idVarchar2(33)nameVarchar2(33)jobVarchar2(33)jobtypeVarchar2(33)partVarchar2(33)yearVarchar2(33)prikeyVarchar2(33)account(登錄表)屬性類(lèi)型usernamevarchar(20)passworvarchar(20)第5章 源代碼設(shè)計(jì)在完成需求分析、總體設(shè)計(jì)、詳細(xì)設(shè)計(jì)的幾個(gè)步驟、完成系統(tǒng)類(lèi)圖后接下來(lái)我們就可以編碼實(shí)現(xiàn)了。在編碼的階段發(fā)現(xiàn)當(dāng)員工的字段較多的時(shí)候,當(dāng)從頁(yè)面上傳值,從request去取這些值的時(shí)候會(huì)有很多的get和set語(yǔ)句。在M層的BO和層的DTO進(jìn)行數(shù)據(jù)轉(zhuǎn)化的時(shí)候會(huì)出現(xiàn)很多類(lèi)似的代碼,在對(duì)數(shù)據(jù)庫(kù)進(jìn)行操作的時(shí)候也會(huì)出現(xiàn)這樣的情況。對(duì)此就啟發(fā)了我們是否能對(duì)此優(yōu)化。經(jīng)過(guò)反復(fù)的思考,利用反射機(jī)制,將這些操作都得以實(shí)現(xiàn),提高代碼的重用度,讓程序看起來(lái)更加優(yōu)雅,也具有相當(dāng)?shù)撵`活性。 對(duì)數(shù)據(jù)庫(kù)的操作的部分代碼package 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。public class DeptDao { Connection conn。 public DeptDao(Connection conn) { = conn。 } public DeptDao(){} /** * 修改部門(mén) */ public boolean alert(DeptBo user)throws SQLException { boolean flag = false。 if(()!=null amp。amp。 !=()) { PreparedStatement ps = (update createdepartment set dname = ? ,dstyle = ?,phonenumber = ? ,builddate = ? where deptno = ?)。 (1,() )。 (2, ())。 (3, ())。 (4, ())。 (5, ())。 ()。 ()。 flag = true。 }else { flag = false。 } return flag。 } /** * 刪除一個(gè)部門(mén) */ public void deptdel(String deptno)throws SQLException { PreparedStatement ps = (delete from createdepartment where deptno=? )。 (1, deptno)。 ()。 ()。 } /** * 新建一個(gè)部門(mén)時(shí)向數(shù)據(jù)庫(kù)中插入一個(gè)新的部門(mén) */ public void insert(DeptBo user)throws SQLException { PreparedStatement ps = (insert into createdepartment values(?,?,?,?,?))。 (1, ())。 (2,() )。 (3, ())。 (4, ())。 (5, ())。 int i=()。 ()。 } /** * 查詢(xún)一個(gè)部門(mén)的全部員工 */ public List inquiry(String deptno)throws SQLException { List list = new ArrayList()。 (33)。 PreparedStatement ps = (select userid,username,sex,deptno,type from checkin where deptno = ?)。 (1, deptno)。 ResultSet rs = ()。 while(()) { DeptCheckin dc = new DeptCheckin()。 ((deptno))。 ((sex))。 ((type))。 ((userid))。 ((username))。 (dc)。 (44)。 } (list)。 return list。 } /** * * @param deptno * @return * @throws SQLException */ public List checkup(String deptno)throws SQLException { List list = new ArrayList()。 PreparedStatement ps = (select deptno,dname,dstyle,phoneNumber,builddate from createdepartment where deptno = ? )。 (1, deptno)。 ResultSet rs = ()。 while(()) { DeptBo usercreate = new DeptBo()。 ((deptno))。 ((dname))。 ((phoneNumber))。 ((dstyle))。 ((builddate))。 (usercreate)。 return list。 } return null。 } /** * 根據(jù) 編號(hào) 和 名稱(chēng) 以及部門(mén)查找部門(mén)信息 */ public List lookup(HashMap has)throws SQLException {
點(diǎn)擊復(fù)制文檔內(nèi)容
試題試卷相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1