職能管理系統(tǒng)設(shè)計(jì)方案_第1頁
職能管理系統(tǒng)設(shè)計(jì)方案_第2頁
職能管理系統(tǒng)設(shè)計(jì)方案_第3頁
免費(fèi)預(yù)覽已結(jié)束,剩余45頁可下載查看

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

職能管理系統(tǒng)設(shè)計(jì)方案1軟件背景系統(tǒng)簡(jiǎn)介此系統(tǒng)采用當(dāng)前流行的B/S結(jié)構(gòu)(即瀏覽器/服務(wù)器)設(shè)計(jì),可以很方便的在Intranet和Internet上使用。系統(tǒng)的所有程序都在服務(wù)器一端安裝,維護(hù)和管理,客戶端不用再安裝更多的客戶端軟件,只需有 IE瀏覽器,MSWord,MSEXCEL和MSPOWERPOINT可(一般的用戶機(jī)器上都會(huì)裝有IE瀏覽器和MSOFFICE等辦公軟件)。此系統(tǒng)的所有操作,包括數(shù)據(jù)的瀏覽、增加,刪除,修改,查詢等操作全部在客戶端的機(jī)器上進(jìn)行,所有的操作都是在瀏覽器中完成,而系統(tǒng)的操作風(fēng)格就像用戶平常上網(wǎng)一樣,點(diǎn)擊進(jìn)入功能模塊,點(diǎn)擊按鈕進(jìn)行功能操作,用戶使用起來幾乎不用學(xué)習(xí)和培訓(xùn)。當(dāng)系統(tǒng)安裝和初始數(shù)據(jù)輸入完畢,并且網(wǎng)絡(luò)連接暢通后。用戶便可輸入網(wǎng)址,然后登陸進(jìn)入系統(tǒng)了??尚行苑治龉δ芸尚行韵到y(tǒng)完整性:整個(gè)職能系統(tǒng)具備系統(tǒng)設(shè)計(jì)的科學(xué)合理性,職能信息錄入,修改,刪除及銷售信息的查詢等銷售的管理要求,滿足了相關(guān)人員功能符合企業(yè)對(duì)對(duì)職能管理的要求,適用于復(fù)雜的職能管理,因而達(dá)到了設(shè)計(jì)任務(wù)的要求.系統(tǒng)的可靠性:該系統(tǒng)可靠性高,能無故障正常的工作,當(dāng)出現(xiàn)異常情況是還采取了一些防止系統(tǒng)破壞的方法和措施,如密碼保存,數(shù)據(jù)備份等.系統(tǒng)的效率:與舊系統(tǒng)相比,減輕了許多重復(fù)的繁瑣的勞動(dòng)和手工計(jì)算量,抄寫量.系統(tǒng)的工作質(zhì)量:職能系統(tǒng)所提供數(shù)據(jù)的精確度,輸出結(jié)果的易讀性都能達(dá)到用戶要求,使用方便,使職能管理工作變得輕松,有序而有效.系統(tǒng)的靈活性:系統(tǒng)的環(huán)境是不斷變化的,因而該職能系統(tǒng)具有一定的擴(kuò)充性,修改信息方便簡(jiǎn)易,能夠、適應(yīng)環(huán)境的變化.經(jīng)濟(jì)可行性現(xiàn)在計(jì)算機(jī)的價(jià)格已經(jīng)十分低廉,性能卻有了長足的進(jìn)步,它已經(jīng)被應(yīng)用于許多領(lǐng)域。系統(tǒng)開發(fā)的費(fèi)用不是很多,維護(hù)的費(fèi)用相對(duì)更少,這樣可以節(jié)約傳統(tǒng)的管理帶來的不必要的開支,降低學(xué)校的管理成本。.每年提取企業(yè)支出費(fèi)用中的一少部分來用于技術(shù)改造與系統(tǒng)的維護(hù),這些可以用于學(xué)生管理系統(tǒng)的開發(fā)費(fèi)用。系統(tǒng)的實(shí)施可以節(jié)省很多的資源,包括人力上和物力上節(jié)約。因此,經(jīng)濟(jì)上是可行。管理可行性通過對(duì)各個(gè)模塊的管理運(yùn)營實(shí)現(xiàn)管理可行性2軟件概述及設(shè)計(jì)方案職能管理系統(tǒng)應(yīng)用于基層指導(dǎo)工作,為上級(jí)的決策提供可供參考具體依據(jù),采用了當(dāng)前流行的B/S結(jié)構(gòu)(即瀏覽器/服務(wù)器)設(shè)計(jì),可以很方便的在Intranet和Internet上使用。系統(tǒng)的所有程序都在服務(wù)器一端安裝,維護(hù)和管理,客戶端不用再安裝更多的客戶端軟件,只需有IE瀏覽器,MSWord,MSEXCEL和MSPOWERPOINT可(一般的用戶機(jī)器上都會(huì)裝有IE瀏覽器和MSOFFICE等辦公軟件),實(shí)現(xiàn)了web技術(shù)特點(diǎn)及各功能模塊。此系統(tǒng)的所有操作,包括數(shù)據(jù)的瀏覽、增加,刪除,修改,查詢等操作全部在客戶端的機(jī)器上進(jìn)行,所有的操作都是在瀏覽器中完成,而系統(tǒng)的操作風(fēng)格就像用戶平常上網(wǎng)一樣,點(diǎn)擊進(jìn)入功能模塊,點(diǎn)擊按鈕進(jìn)行功能操作,用戶使用起來幾乎不用學(xué)習(xí)和培訓(xùn)。當(dāng)系統(tǒng)安裝和初始數(shù)據(jù)輸入完畢,并且網(wǎng)絡(luò)連接暢通后。用戶便可輸入網(wǎng)址,然后登陸進(jìn)入系統(tǒng)了。迅速架設(shè)實(shí)施,無需周期性開發(fā)和專業(yè)的技術(shù)要求,簡(jiǎn)易維護(hù)管理;完全 B/S結(jié)構(gòu),并同時(shí)兼容多類主流服務(wù)器和操作系統(tǒng);全部模塊式構(gòu)建,統(tǒng)一接口,無縫銜接,并可按需無限功能擴(kuò)展;功能體系都能依據(jù)實(shí)際建設(shè)需要進(jìn)行修改、擴(kuò)展和自定義,實(shí)現(xiàn)個(gè)性化運(yùn)用;分布式用戶管理,各級(jí)領(lǐng)導(dǎo)、管理人員等任意級(jí)別設(shè)置,跨分組權(quán)限靈活分配;數(shù)據(jù)與文件分離、框架與系統(tǒng)分離,系統(tǒng)升級(jí)與改版互不影響;可視化文檔模板編輯,輕松實(shí)現(xiàn)信息錄入;完善的安全體系和備份恢復(fù)機(jī)制,具備優(yōu)異的抗負(fù)荷能力。設(shè)計(jì)方案:職員管理用以管理公司的所有員工基本信息,包括員工的員工編號(hào),,號(hào),員工性質(zhì)(勞務(wù),合同,正式)和直接上級(jí)等基本信息,還有員工的通訊信息,學(xué)歷信息和工作信息等。HR人員可以瀏覽員工列表,并且在查詢區(qū)域輸入適當(dāng)?shù)牟樵儣l件進(jìn)行查詢。工資管理是指每個(gè)員工的當(dāng)前薪酬的基礎(chǔ)數(shù)據(jù)。包括工資,個(gè)人社保,企業(yè)社保的一些基礎(chǔ)數(shù)據(jù)的定義。HR將維護(hù)這套數(shù)據(jù)(增加,刪除,修改,查詢),全員的薪酬信息維護(hù)好后,以后每月發(fā)薪就以薪酬信息中定義的金額發(fā)放,可能發(fā)放時(shí)會(huì)略作調(diào)整。財(cái)務(wù)管理是報(bào)銷模塊處理公司各個(gè)部門的員工各種明目的費(fèi)用報(bào)銷。 全體員工都可以訪問“報(bào)銷申請(qǐng)”功能進(jìn)行報(bào)銷申請(qǐng),具有“報(bào)銷審批”功能的員工可以訪問此功能,對(duì)報(bào)銷審批人是自己的報(bào)銷申請(qǐng)進(jìn)行審批。其中審批應(yīng)該分兩步:“初審”和“終審”。職能管理的基本特點(diǎn)是:將可重復(fù)的產(chǎn)品生產(chǎn)經(jīng)營活動(dòng)分解為一系列標(biāo)準(zhǔn)化和次序化的任務(wù),并分配給特定的執(zhí)乙一一h<行者;由特定的管理層來監(jiān)督和確保執(zhí)行者有效地完成既定任務(wù),這種科層式的組織結(jié)構(gòu)反映了生產(chǎn)社會(huì)化過程中短缺的市場(chǎng)環(huán)境下追求大量產(chǎn)品生產(chǎn)的實(shí)際,而烽火獵頭專家認(rèn)為自20世紀(jì)60一70年代以來,過去的供給導(dǎo)向的市場(chǎng)已轉(zhuǎn)變?yōu)樾枨髮?dǎo)向的市場(chǎng),因此在企業(yè)面對(duì)的是消費(fèi)者主導(dǎo)的市場(chǎng)環(huán)境的今天,流程管理也就必然地取代傳統(tǒng)的職能管理成為企業(yè)管理的核心。另外,在職能管理中會(huì)出現(xiàn)以下問題:命令的傳遞和執(zhí)行緩慢甚至走樣;職能的劃分會(huì)出現(xiàn)空白或重疊;職能部門過分重視部門利益;管理層無暇顧及與企業(yè)發(fā)展相關(guān)的重大或長遠(yuǎn)問題。相應(yīng)地,流程管理的實(shí)施不僅能夠解決以上問題,而且能夠極提高企業(yè)組織的效率和市場(chǎng)競(jìng)爭(zhēng)能力,但“從職能管理轉(zhuǎn)變到流程管理需要一個(gè)過程”。更有甚者,“雖然流程管理概念的正式提出是在20世紀(jì)90年代中、后期,流程管理思想的萌芽卻源遠(yuǎn)流長,即流程管理思想的最早提出可以追溯到弗雷德里克?泰勒 (FrederickTaylor)時(shí)期,之后流程管理便逐步由幕后走上前臺(tái),由配角成為主角”。3軟件構(gòu)架圖用戶澄錄4針對(duì)軟件的各功能模塊做具體的設(shè)計(jì)描述及附注相關(guān)設(shè)計(jì)結(jié)果職員管理功能簡(jiǎn)介此模塊用以管理公司的所有員工基本信息,包括員工的員工編號(hào),,號(hào),員工性質(zhì)(勞務(wù),合同,正式)和直接上級(jí)等基本信息,還有員工的通訊信息,學(xué)歷信息和工作信息等。HR人員可以瀏覽員工列表,并且在查詢區(qū)域輸入適當(dāng)?shù)牟樵儣l件進(jìn)行查詢。針對(duì)查詢結(jié)果,還可以對(duì)員工數(shù)據(jù)進(jìn)行添加,刪除,修改等操作。員工數(shù)據(jù)中“員工編號(hào)”為員工在MIS系統(tǒng)的唯一標(biāo)識(shí),一旦在系統(tǒng)中維護(hù)好,就禁止更改了。當(dāng)系統(tǒng)正常運(yùn)行后,所有的員工數(shù)據(jù)都禁止刪除。系統(tǒng)中其它模塊在輸入員工的時(shí)候都會(huì)在員工列表中選擇輸入。

功能說明員工的登錄可對(duì)員工的分類管理員工的基本信息的查詢相關(guān)單據(jù)/報(bào)表表名:suser用戶顯示名稱字段名稱字段類型NULLPK/FK備注用戶名usernameVARCHAR(20)NOTNULLPK密碼pwdVARCHAR(100)NOTNULL密碼明文的MD5員工編號(hào)emp_noVARCHAR(5)NULLFK( s_employee:emp_no)用戶類別usertypeintNOTNULL0系統(tǒng)用戶;10用戶狀態(tài)activeflagintNOTNULL0active;10i表名:semployee員工顯示名稱字段名稱字段類型NULLPK/FK備注員工編號(hào)emp_noVARCHAR(5)NOTNULLPK四位自然長)的字員工emp_nameVARCHAR(20)NOTNULL號(hào)card」dVARCHAR(20)NOTNULLUNIQUE性別sexVARCHAR(2)NOTNULL出生日期birthdatedateNULL部門dept_noVARCHAR(4)NULLFK(s_department:deptno)職位positionVARCHAR(20)NULL直接上級(jí)superiorVARCHAR(5)NULLFK(s_employee:empno)員工性質(zhì)emptypeVARCHAR(10)NOTNULL辦公officephoneVARCHAR(15)NULL手機(jī)mobilephoneVARCHAR(15)NULL實(shí)際工作地占八、、realworkplaceVARCHAR(20)NULL公司companyemailVARCHAR(40)NOTNULL個(gè)人personalemailVARCHAR(40)NOT

戶口所在地residence_placeVARCHAR(40)NOTNULL通訊地址communication_addressVARCHAR(40)NULL緊急情況聯(lián)系人vip_nameVARCHAR(20)NOTNULL聯(lián)系人聯(lián)系方式vip_contact_infoVARCHAR(40)NOTNULL最高學(xué)歷top_edu_historyVARCHAR(10)NULL畢業(yè)院校graduate_schoolVARCHAR(40)NULL畢業(yè)時(shí)間graduate_datedateNULL專業(yè)majorVARCHAR(40)NULL初次工作時(shí)間first_work_datedateNULL工作狀態(tài)station_statusVARCHAR(10)NOTNULL到職時(shí)間join_datedateNULL轉(zhuǎn)正時(shí)間formal_datedateNULL合同起始日contract_begindateNULL合同到期日contractenddateNULL離職時(shí)間dismissiondatedateNULL離職原因dismission_reasonVARCHAR(20)NULL直接上級(jí)的評(píng)價(jià)superiorcommentVARCHAR(50)NULL評(píng)價(jià)日期commentdatedateNULL指導(dǎo)人coachVARCHAR(5)NULLFK(s_employee:empno)司齡ageincompanyintNULL中文簡(jiǎn)歷chineseresumeclobNULL英文簡(jiǎn)歷englishresumeclobNULL4.2工資管理421功能簡(jiǎn)介薪酬信息是指每個(gè)員工的當(dāng)前薪酬的基礎(chǔ)數(shù)據(jù)。 包括工資,個(gè)人社保,企業(yè)社保的一些基礎(chǔ)數(shù)據(jù)的定義。HR將維護(hù)這套數(shù)據(jù)(增加,刪除,修改,查詢) ,全員的薪酬信息維護(hù)好后,以后每月發(fā)薪就以薪酬信息中定義的金額發(fā)放,可能發(fā)放時(shí)會(huì)略作調(diào)整。422功能說明員工薪酬的核算工資的支付相關(guān)單據(jù)/報(bào)表表名:薪資信息s_salary_info顯示名稱字段名稱字段類型NULLPK/FK備員工編號(hào)emp_noVARCHAR(5)NOTNULLPK,FK(s_employee:emp_no)四然串基本工資static_salaryfloatNOTNULL里崗位工資float_salaryfloatNOTNULL里設(shè)保地social_insurance_placeVARCHAR(10)NULL公司養(yǎng)老基數(shù)_base_yanglaofloatNOTNULL里公司失業(yè)基數(shù)baseshiyefloatNOTNULL里公司工傷基數(shù)_base_gongshangfloatNOTNULL里公司醫(yī)療基數(shù)baseyiliaofloatNOTNULL里公司生育基數(shù)_base_shengyufloatNOTNULL里公司住房基數(shù)basezhufangfloatNOTNULL里公司養(yǎng)老比例rateyanglaofloatNOTNULL里公司失業(yè)比例rateshiyefloatNOTNULL里公司工傷比例rategongshangfloatNOTNULL里公司醫(yī)療比例rateyiliaofloatNOTNULL里公司生育比例rateshengyufloatNOTNULL里公司住房比例ratezhufangfloatNOTNULL里公司社??傆?jì)socialinsurancetotalfloatNOTNULL里人力成本總計(jì)totalpayoutfloatNOTNULL里個(gè)人養(yǎng)老基數(shù)personbaseyanglaofloatNOTNULL里個(gè)人失業(yè)基數(shù)personbaseshiyefloatNOTNULL里個(gè)人工傷基數(shù)personbasegongshangfloatNOTNULL里個(gè)人醫(yī)療基數(shù)personbaseyiliaofloatNOTNULL里個(gè)人生育基數(shù)personbaseshengyufloatNOTNULL里個(gè)人住房基數(shù)personbasezhufangfloatNOTNULL里個(gè)人養(yǎng)老比例personrateyanglaofloatNOTNULL里個(gè)人失業(yè)比例personrateshiyefloatNOTNULL里個(gè)人工傷比例personrategongshangfloatNOTNULL里個(gè)人醫(yī)療比例personrateyiliaofloatNOTNULL里個(gè)人生育比例personrateshengyufloatNOTNULL里

個(gè)人住房比例person_rate_zhufangfloatNOTNULL默個(gè)人社??劭頿erson_social_insurance_totalfloatNOTNULL默記稅收入person_gross_incomefloatNOTNULL默所得稅person_income_taxfloatNOTNULL默稅后收入person_net_incomefloatNOTNULL默表名:s_salary_record 發(fā)薪記錄顯示名稱字段名稱字段類型NULLPK/FK備注發(fā)薪流水號(hào)salary_record」dVARCHAR(15)NOTNULLPK應(yīng)用程序自月_員工編號(hào)員工編號(hào)emp_noVARCHAR(5)NOTNULLFK( s_employee:emp_no)發(fā)薪年yearintNOTNULL發(fā)薪月monthintNOTNULL工資支出salaryfloatNOTNULL基本工資static_salaryfloatNOTNULL默認(rèn)值:0崗位工資float_salaryfloatNOTNULL默認(rèn)值:0報(bào)銷reimbursementfloatNOTNULL修正項(xiàng)和amendfloatNOTNULL管理費(fèi)apportionfloatNOTNULL企業(yè)福利支出_social_insurancetotalfloatNOTNULL個(gè)人社??劭頿erson_social_insurancetotalfloatNOTNULL記稅收入persongrossincomefloatNOTNULL默認(rèn)值:0所得稅person_income_taxfloatNOTNULL默認(rèn)值:0稅后收入personnetincomefloatNOTNULL默認(rèn)值:0企業(yè)總支出totalpayoutfloatNOTNULL獎(jiǎng)金支出bonusfloatNOTNULL餐補(bǔ)mealallowaneefloatNOTNULL修正項(xiàng)amend」temfloatNOTNULL修正項(xiàng)說明amend」temdescVARCHAR(20)NULL工資單附件payslipintNULLFK( s_common_file:fileid)4.3財(cái)務(wù)管理431功能簡(jiǎn)介報(bào)銷模塊處理公司各個(gè)部門的員工各種明目的費(fèi)用報(bào)銷。全體員工都可以訪問“報(bào)銷申請(qǐng)”功能進(jìn)行報(bào)銷申請(qǐng),具有“報(bào)銷審批”功能的員工可以訪問此功能,對(duì)報(bào)銷審批人是自己的報(bào)銷申請(qǐng)進(jìn)行審批。其中審批應(yīng)該分兩步: “初審”和“終審”。當(dāng)終審?fù)ㄟ^后,財(cái)務(wù)人員可以在“報(bào)銷打款”功能中看到所有終審?fù)ㄟ^的報(bào)銷申請(qǐng),然后逐個(gè)記錄進(jìn)行“報(bào)銷打款”操作,系統(tǒng)將給每個(gè)報(bào)銷申請(qǐng)記錄登記打款日期,然后發(fā)送通知報(bào)銷申請(qǐng)人。功能說明報(bào)銷申請(qǐng)報(bào)銷查詢報(bào)銷撤銷相關(guān)單據(jù)/報(bào)表表名:sexpense費(fèi)用報(bào)銷顯示名稱字段名稱字段類型NULLPK/FK備注報(bào)銷號(hào)expense_idVARCHAR(15)NOTNULLPK應(yīng)用程位員:位日期水號(hào))員工編號(hào)emp_noVARCHAR(5)NOTNULLFK(s_employee:empno)費(fèi)用描述expense_nameVARCHAR(30)NOTNULL報(bào)銷月份apply_timedateNOTNULL創(chuàng)建時(shí)間createtimedateNOTNULL費(fèi)用類別expensetypeVARCHAR(20)NOTNULL費(fèi)用歸集類別unit_typeVARCHAR(5)NOTNULL費(fèi)用歸集單位unitidVARCHAR(20)NOTNULL報(bào)銷金額moneyintNOTNULL默認(rèn)值初次審批firstapproverVARCHAR(5)NOTNULL初審日期firstapprovetimedateNULL初審標(biāo)志firstapproveflagintNOTNULL最終審批finalapproverVARCHAR(5)NOTNULL終審日期finalapprovetimedateNULL終審標(biāo)志finalapproveflagintNOTNULL批復(fù)feedbackVARCHAR(100)NULL

報(bào)銷單文件expense_accountintNULLFK(s_common_file:file_id)打款日期pay_datedateNULL表名:費(fèi)用報(bào)銷項(xiàng)目s_expense_item顯示名稱字段名稱字段類型NULLPK/FK備注報(bào)銷項(xiàng)目號(hào)expense」tem」dVARCHAR(20)NOTNULLPK應(yīng)用程序賦號(hào)+2位流報(bào)銷號(hào)expense_idVARCHAR(15)NOTNULLFK(s_expense2:expenseid)費(fèi)用發(fā)生日期expense_dateVARCHAR(30)NULL費(fèi)用大類expensetypeoneVARCHAR(50)NOTNULL費(fèi)用小類expense_type_twoVARCHAR(50)NOTNULL事由expense_reasonVARCHAR(50)NULL金額moneyfloatNOTNULL默認(rèn)值:C備注notationVARCHAR(100)NULL4.4考勤管理441功能簡(jiǎn)介考勤管理模塊處理每個(gè)員工的請(qǐng)假和審批事宜。 當(dāng)公司員工因?yàn)椤耙蚬录佟?,“因私事假”,“病假”,“年假”而缺勤時(shí),可以提前填寫考勤申請(qǐng),或者事后補(bǔ)考勤申請(qǐng)。員工寫明缺勤原因,缺勤類型,起始時(shí)間,考勤審批人等信息。員工對(duì)剛剛填報(bào)的缺勤申請(qǐng)可以撤銷,前提是審批人尚未對(duì)其進(jìn)行審批。具有考勤審批權(quán)限的員工進(jìn)入考勤審批功能界面, 對(duì)缺勤申請(qǐng)進(jìn)行審批。這樣系統(tǒng)就可以記錄所有因私和無故缺勤的信息, 對(duì)統(tǒng)計(jì)人工時(shí)和計(jì)算薪酬提供基礎(chǔ)數(shù)據(jù)的支持。功能說明提交上下班時(shí)間查詢考勤記錄請(qǐng)假申報(bào)相關(guān)單據(jù)/報(bào)表表名:sabsenee考勤顯示名稱字段名稱字段類型NULLPK/FK備注請(qǐng)假號(hào)absence_idVARCHAR(15)NOTNULLPK應(yīng)用程序賦值編號(hào)+8位日水號(hào))員工編號(hào)emp_noVARCHAR(5)NOTNULLFK(s_employee:emp_no)請(qǐng)假描述absence_nameVARCHAR(30)NOTNULL請(qǐng)假類別absence_typeVARCHAR(20)NOTNULL申請(qǐng)時(shí)間apply_timedateNOTNULL開始時(shí)間begin_timedateNOTNULL結(jié)束時(shí)間endtimedateNOTNULL請(qǐng)假小時(shí)數(shù)absent_hoursintNOTNULL默認(rèn)值:0審批人final_approverVARCHAR(5)NOTNULL審批日期final_approve_timedateNULL審批標(biāo)志final_approve_flagintNOTNULL批復(fù)feedbackVARCHAR(100)NULL代碼package」enovoai.nieemis.web.aetion;importnet.sf.hibernate.Criteria;importnet.sf.hibernate.Session;importorg.springframework.web.struts.ActionSupport;importorg.apache.struts.action.ActionForward;importorg.apache.struts.action.ActionMapping;importorg.apache.struts.action.ActionForm;importjavax.servlet.http.HttpServletRequest;importjavax.servlet.http.HttpServletResponse;importjavax.servlet.http.HttpSession;importorg.springframework.context.ApplicationContext;import」enovoai.nicemis.service.*;import」enovoai.nicemis.model.*;import」enovoai.nicemis.util.*;importjava.util.*;*<p>Title:</p>*<p>Description:</p>*<p>Copyright:Copyright(c)2005</p>*<p>Company:</p>*authornotattributable*version1.0*/publicclassMaintainEmployeesActionextendsActionSupport{publicMaintainEmployeesAction(){}publicActionForwardexecute(ActionMappingmapping,ActionFormform,HttpServletRequestrequest,HttpServletResponseresponse)throwsException{//collectparametersforbusinesslogicStringstrEmpNo=(String)request.getParameter("empNo");StringstrEmpName=(String)request.getParameter("empName");StringstrDeptNo=(String)request.getParameter("deptNo");StringstrEmpType=(String)request.getParameter("empType");String strStationStatus =(String)request.getParameter("stationStatus");String strRealWorkPlace=(String)request.getParameter("realWorkPlace");Stringkeyword=(String)request.getParameter("keyword");intiPageSize=getPageSize(request);intiPageNo=getPageNo(request);//populatealltheparametersintovalueobjectEmployeeemp=newEmployee();emp.setEmpNo(strEmpNo);emp.setEmpName(strEmpName);emp.setEmpType(strEmpType);emp.setStationStatus(strStationStatus);emp.setRealWorkPlace(strRealWorkPlace);Departmentdept=newDepartment();dept.setDeptNo(strDeptNo);emp.setDepartment(dept);//runbusinesslogicApplicationContextcontext=getWebApplicationContext();IEmployeeService employeeService(IEmployeeService)context.getBean("employeeService");IDepartmentService departmentService(IDepartmentService)context.getBean("departmentService");IUserServiceuserService=(IUserService)context.getBean("userService");PageInfopageInfo=newPageInfo();Listlist=null;try{if(keyword!=null&&!keyword.equals("")){list=userService.findUsers(keyword);pageInfo.setMaxCount(list.size());pageInfo.setPageNO(iPageNo);pageInfo.setPageSize(iPageSize);pageInfo.setPageList(list);}else{pageInfo=employeeService.findEmployees(iPageSize,iPageNoemp);}}catch(Exceptionex){request.setAttribute("feedback",ex.getMessage());request.setAttribute("departmentService",departmentService);request.setAttribute("pageInfo",pageInfo);ex.printStackTrace();}request.setAttribute("departmentService",departmentService);request.setAttribute("pageInfo",pageInfo);returnmapping.findForward("success");}privateintgetPageSize(HttpServletRequestrequest){intiPageSize=0;StringstrPageSize=null;strPageSize=(String)request.getParameter("pageSize");if(strPageSize==null||strPageSize.equals("")){Constant.getConPagesize();iPageSizeConstant.getConPagesize();////////////////////////////////////}else{try{iPageSize=Integer.parseInt(strPageSize);}catch(Exceptionex){iPageSize=Constant.getConPagesize();////////////////////////////////////System.out.println("DeveloperDebugLog:[pageSizeparameterisincorrect!]");}}returniPageSize;}privateintgetPageNo(HttpServletRequestrequest){intiPageNo=0;StringstrPageNo=null;strPageNo=(String)request.getParameter("pageNo");if(strPageNo==null||strPageNo.equals("")){iPageNo=1;////////////////////////////////////}else{try{iPageNo=Integer.parseInt(strPageNo);}catch(Exceptionex){iPageNo=1;////////////////////////////////////System.out.println("DeveloperDebugLog:[pageNoparameterisincorrect!]");}}returniPageNo;}}職能/員工管理/顯示添加員工表單package.lenovoai.nicemis.web.action;importorg.springframework.web.struts.ActionSupport;importorg.apache.struts.action.ActionForward;importorg.apache.struts.action.ActionMapping;importorg.apache.struts.action.ActionForm;importjavax.servlet.http.HttpServletRequest;importjavax.servlet.http.HttpServletResponse;importjavax.servlet.http.HttpSession;importorg.springframework.context.ApplicationContext;import.lenovoai.nicemis.service.*;import.lenovoai.nicemis.model.*;importjava.util.*;/***<p>Title:</p>*<p>Description:</p>*<p>Copyright:Copyright(c)2005</p>*<p>Company:</p>*authornotattributable*version1.0*/publicclassDeleteEquipmentActionextendsActionSupport{publicActionForwardexecute(ActionMappingmapping,ActionFormform,HttpServletRequestrequest,Exception{Exception{//collectparametersforbusinesslogicStringequipmentId=(String)request.getParameter("equipmentId");//populatealltheparametersintovalueobject//executebusinesslogicApplicationContextcontext=getWebApplicationContext();IEquipmentServiceequipmentService(IEquipmentService)context.getBean("equipmentService");try{equipmentService.deleteEquipment(equipmentId);}catch(Exceptione){e.printStackTrace();request.setAttribute("feedback",e.getMessage());returnmapping.findForward("failure");}returnmapping.findForward("success");}}職能/員工管理/刪除員工package.lenovoai.nicemis.web.action;importorg.springframework.web.struts.ActionSupport;importorg.apache.struts.action.ActionForward;importorg.apache.struts.action.ActionMapping;importorg.apache.struts.action.ActionForm;importjavax.servlet.http.HttpServletRequest;importjavax.servlet.http.HttpServletResponse;importjavax.servlet.http.HttpSession;importorg.springframework.context.ApplicationContext;import.lenovoai.nicemis.service.*;import.lenovoai.nicemis.model.*;importjava.util.*;/***<p>Title:</p>*<p>Description:</p>*<p>Copyright:Copyright(c)2005</p>*<p>Company:</p>*authornotattributable*version1.0*/publicclassDeleteEmployeeActionextendsActionSupport{publicDeleteEmployeeAction(){}publicActionForwardexecute(ActionMappingmapping,ActionFormform,HttpServletRequestrequest,Exception{Exception{//collectparametersforbusinesslogicStringstrEmpNo=(String)request.getParameter("empNo");//populatealltheparametersintovalueobject//executebusinesslogicApplicationContextcontext=getWebApplicationContext();(IEmployeeService)IEmployeeServiceemployeeServicecontext.getBean("employeeService");(IEmployeeService)try{employeeService.deleteEmployee(strEmpNo);}catch(Exceptione){e.printStackTrace();request.setAttribute("feedback",e.getMessage());returnmapping.findForward("failure");}returnmapping.findForward("success");}}職能/員工管理/修改員工package.lenovoai.nicemis.web.action;importorg.springframework.web.struts.ActionSupport;importorg.apache.struts.action.ActionForward;importorg.apache.struts.action.ActionMapping;importorg.apache.struts.action.ActionForm;importjavax.servlet.http.HttpServletRequest;importjavax.servlet.http.HttpServletResponse;importjavax.servlet.http.HttpSession;importorg.springframework.context.ApplicationContext;import.lenovoai.nicemis.service.*;import.lenovoai.nicemis.model.*;importjava.util.*;import.lenovoai.nicemis.util.DateUtil;import.lenovoai.nicemis.web.util.FileExtensionFilter;importmons.beanutils.PropertyUtils;

importorg.apache.struts.upload.FormFile;/***<p>Title:</p>*<p>Description:</p>*<p>Copyright:Copyright(c)2005</p>*<p>Company:</p>*authornotattributable*version1.0*/publicclassUpdateEmployeeActionextendsActionSupport{publicUpdateEmployeeAction(){}publicActionForwardexecute(ActionMappingmapping,ActionFormform,HttpServletRequestrequest,HttpServletResponseresponse)throws//collectparametersforbusinesslogicStringstrEmpNo=(String)request.getParameter("empNo");StringempNo=(String)request.getParameter("empNo");StringempName=(String)request.getParameter("empName");StringcardId=(String)request.getParameter("cardId");Stringsex=(String)request.getParameter("sex");StringbirthDateString=(String)request.getParameter("birthDate");StringdepartmentString=(String)request.getParameter("deptNo");Stringposition=(String)request.getParameter("position");Stringproject=(String)request.getParameter("project");StringsuperiorString=(String)request.getParameter("superior");StringempType=(String)request.getParameter("empType");StringofficePhone=(String)request.getParameter("officePhone");StringmobilePhone=(String)request.getParameter("mobilePhone");StringrealWorkPlace=(String)request.getParameter("realWorkPlace");StringcompanyEmail=(String)request.getParameter("companyEmail");StringpersonalEmail=(String)request.getParameter("personalEmail");StringresidencePlace=(String)request.getParameter("residencePlace");StringcommunicationAddress=request.getParameter("communicationAddress");StringvipName=(String)request.getParameter("vipName");String vipContactInfo=(String)request.getParameter("vipContactInfo");StringtopEduHistory=(String)request.getParameter("topEduHistory");Exception{(String)String graduateSchool=Exception{(String)StringgraduateDateString=(String)request.getParameter("graduateDate");Stringmajor=(String)request.getParameter("major");StringfirstWorkDateString=(String)request.getParameter("firstWorkDate");StringstationStatus=(String)request.getParameter("stationStatus");StringjoinDateString=(String)request.getParameter("joinDate");StringformalDateString=(String)request.getParameter("formalDate");StringcontractBeginString=(String)request.getParameter("contractBegin");//StringcontractEndString=(String)request.getParameter("contractEnd");StringdismissionDateString=(String)request.getParameter("dismissionDate");String dismissionReason = (String)request.getParameter("dismissionReason");String superiorComment = (String)request.getParameter("superiorComment");StringcommentDateString=(String)request.getParameter("commentDate");StringcoachString=(String)request.getParameter("coach");StringageInCompanyString=(String)request.getParameter("ageInCompany");//addedbyyanfei20070826StringannualhoursinitString=(String)request.getParameter("annualhoursinit");StringaccountBank=(String)request.getParameter("accountBank");StringaccountNo=(String)request.getParameter("accountNo");StringempLevelId=(String)request.getParameter("empLevelId");//addedbyChenHongkun,20080720StringworkCity=(String)request.getParameter("workCity");String onWorkTimeHour=(String)request.getParameter("onWorkTimeHour");StringoffWorkTimeHour=(String)request.getParameter("offWorkTimeHour");StringonWorkTimeMin=(String)request.getParameter("onWorkTimeMin");StringoffWorkTimeMin=(String)request.getParameter("offWorkTimeMin");StringonWorkTime=onWorkTimeHour+":"+onWorkTimeMin;StringoffWorkTime=offWorkTimeHour+":"+offWorkTimeMin;//addedbyChenHongkun,20080831Stringskill1=(String)request.getParameter("skill1");Stringskill2=(String)request.getParameter("skill2");Stringskill3=(String)request.getParameter("skill3");Stringcertification1=(String)request.getParameter("certification1");Stringcertification2=(String)request.getParameter("certification2");Stringcertification3=(String)request.getParameter("certification3");Stringcertification4=(String)request.getParameter("certification4");Stringcertification5=(String)request.getParameter("certification5");Stringcertification6=(String)request.getParameter("certification6");Stringskill=skill1+"-"+skill2+"-"+skill3;Stringcertification=certification1+"-"+certification2+"-"+certification3+"-"+certification4+"-"+certification5+"-"+certification6;FormFilechineseResumeForm=(FormFile)PropertyUtils.getSimpleProperty(form,"chineseResume");if(!FileExtensionFilter.isSafeFileType(chineseResumeForm.getFileName())){request.setAttribute("feedback", "對(duì)不起,您上傳的文件不是系統(tǒng)規(guī)定的格式");returnmapping.findForward("failure");}FormFileenglishResumeForm=(FormFile)PropertyUtils.getSimpleProperty(form,"englishResume");if(!FileExtensionFilter.isSafeFileType(englishResumeForm.getFileName())){request.setAttribute("feedback", "對(duì)不起,您上傳的文件不是系統(tǒng)規(guī)定的格式");returnmapping.findForward("failure");}//addedbyjunyan20090329StringempMangLevel=(String)request.getParameter("empMangLevelId");StringempTechLevel=(String)request.getParameter("empTechLevelId");StringrealWorkPlaceZipCode=(String)request.getParameter("realWorkPlaceZipCode");StringidAddressZipCode=(String)request.getParameter("idAddressZipCode");StringhouseAddress=(String)request.getParameter("houseAddress");StringhouseAddressZipCode=(String)request.getParameter("houseAddressZipCode");String fatherContactInfo = (String)request.getParameter("fatherContactInfo");String matherContactInfo = (String)request.getParameter("matherContactInfo");StringmarriageType=(String)request.getParameter("marriageType");StringmateContactInfo=(String)request.getParameter("mateContactInfo");StringbloodType=(String)request.getParameter("bloodType");StringnumberOfChildrenStr=(String)request.getParameter("numberOfChildren");String childrenBithday1Str = (String)request.getParameter("childrenBithday1");String childrenBithday2Str = (String)request.getParameter("childrenBithday2");String childrenBithday3Str = (String)request.getParameter("childrenBithday3");String childrenBithday4Str = (String)request.getParameter("childrenBithday4");StringjuniorEduHistory=(String)request.getParameter("juniorEduHistory");StringjuniorGraduateSchool=(String)request.getParameter("juniorGraduateSchool");StringjuniorMajor=(String)request.getParameter("juniorMajor");StringjuniorGraduateDateStr=(String)request.getParameter("juniorGraduateDate");StringtotalWorkTimeStr=(String)request.getParameter("totalWorkTime");StringcontractDurationType=(String)request.getParameter("contractDurationType");StringmanHourType=(String)request.getParameter("manHourType");intnumberOfChildren=0;if(numberOfChildrenStr!=null&&!numberOfChildrenStr.equals(""))numberOfChildren=Integer.parseInt(numberOfChildrenStr);doubletotalWorkTime=0.0;if(totalWorkTimeStr!=null&&!totalWorkTimeStr.equals(""))totalWorkTime=Double.parseDouble(totalWorkTimeStr);DateUtildateUtil=newDateUtil();Departmentdepartment=null;Employeesuperior=null;Employeecoach=null;EmployeeLevelempLevel=null;if(departmentString.equals("")){department=null;}else{department=newDepartment();department.setDeptNo(departmentString);if(superiorString.equals("")){superior=null;}else{superior=newEmployee();superior.setEmpNo(superiorString);}if(coachString.equals("")){coach=null;}else{coach=newEmployee();coach.setEmpNo(coachString);}if(empLevelId.equals("")){empLevel=null;}else{empLevel=newEmployeeLevel();empLevel.setLevelId(empLevelId);}DatebirthDate=dateUtil.parseDateString(birthDateString);DategraduateDate=dateUtil.parseDateString(graduateDateString);DatefirstWorkDate=dateUtil.parseDateString(firstWorkDateString);DatejoinDate=dateUtil.parseDateString(joinDateString);DateformalDate=dateUtil.parseDateString(formalDateString);DatecontractBegin=dateUtil.parseDateString(contractBeginString);//DatecontractEnd=dateUtil.parseDateString(contractEndString);DatedismissionDate=dateUtil.parseDateString(dismissionDateString);DatecommentDate=dateUtil.parseDateString(commentDateString);DatechildrenBithday1=dateUtil.parseDateString(childrenBithday1Str);DatechildrenBithday2=dateUtil.parseDateString(childrenBithday2Str);DatechildrenBithday3=dateUtil.parseDateString(childrenBithday3Str);DatechildrenBithday4=dateUtil.parseDateString(childrenBithday4Str);DatejuniorGraduateDatedateUtil.parseDateString(juniorGraduateDateStr);intageInCompany=Integer.parseInt(ageInCompanyString);//addedbyyanfei20070826floatannualhoursinit=Float.parseFloat(annualhoursinitString);//populatealltheparametersintovalueobjectEmployeeemp=newEmployee();emp.setAgeInCompany(ageInCompany);//addedbyyanfei20070826emp.setAnnualhoursinit(annualhoursinit);emp.setBirthDate(birthDate);emp.setCardId(cardId);emp.setCoach(coach);emp.setCommentDate(commentDate);emp.setCommunicationAddress(communicationAddress);emp.setCompanyEmail(companyEmail);emp.setContractBegin(contractBegin);//emp.setContractEnd(contractEnd);emp.setDepartment(department);emp.setDismissionDate(dismissionDate);emp.setDismissionReason(dismissionReason);emp.setEmpName(empName);emp.setEmpNo(empNo);emp.setEmpType(empType);emp.setFirstWorkDate(firstWorkDate);emp.setFormalDate(formalDate);emp.setGraduateDate(graduateDate);emp.setGraduateSchool(graduateSchool);emp.setJoinDate(joinDate);emp.setMajor(major);emp.setMobilePhone(mobilePhone);emp.setOfficePhone(officePhone);emp.setPersonalEmail(personalEmail);emp.setPosition(position);emp.setRealWorkPlace(realWorkPlace);emp.setResidencePlace(residencePlace);emp.setSex(sex);emp.setStationStatus(stationStatus);emp.setSuperior(superior);emp.setSuperiorComment(superiorComment);emp.setTopEduHistory(topEduHistory);emp.setVipContactInfo(vipContactInfo);emp.setVipName(vipName);emp.setAccountBank(accountBank);emp.setAccountNo(accountNo);emp.setEmpLevel(empLevel);emp.setProject(project);//addedbyChenHongkun,20080720emp.setWorkCity(workCity);emp.setOnWorkTime(onWorkTime);emp.setOffWorkTime(offWorkTime);emp.setSkill(skill);emp.setCertification(certification);emp.setEmpMangLevel(empMangLevel);emp.setEmpTechLevel(empTechLevel);emp.setRealWorkPlaceZipCode(realWorkPlaceZipCode);emp.setIdAddressZipCode(idAddressZipCode);emp.setHouseAddress(houseAddress);emp.setHouseAddressZipCode(houseAddressZipCode);emp.setFatherContactInfo(fatherContactInfo);emp.setMatherContactInfo(matherContactInfo);emp.setMateContactInfo(mateContactInfo);emp.setMarriageType(marriageType);emp.setBloodType(bloodType);emp.setNumberOfChildren(numberOfChildren);emp.setChildrenBithday1(childrenBithday1);emp.setChildrenBithday2(childrenBithday2);emp.setChildrenBithday3(childrenBithday3);emp.setChildrenBithday4(childrenBithday4);emp.setJuniorEduHistory(juniorEduHistory);emp.setJuniorGraduateDate(juniorGraduateDate);emp.setJuniorGraduateSchool(juniorGraduateSchool);emp.setJuniorMajor(juniorMajor);emp.setTotalWorkTime(totalWorkTime);emp.setContract

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論