


版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
職能管理系統(tǒng)設(shè)計方案1軟件背景系統(tǒng)簡介此系統(tǒng)采用當前流行的B/S結(jié)構(gòu)(即瀏覽器/服務(wù)器)設(shè)計,可以很方便的在Intranet和Internet上使用。系統(tǒng)的所有程序都在服務(wù)器一端安裝,維護和管理,客戶端不用再安裝更多的客戶端軟件,只需有 IE瀏覽器,MSWord,MSEXCEL和MSPOWERPOINT可(一般的用戶機器上都會裝有IE瀏覽器和MSOFFICE等辦公軟件)。此系統(tǒng)的所有操作,包括數(shù)據(jù)的瀏覽、增加,刪除,修改,查詢等操作全部在客戶端的機器上進行,所有的操作都是在瀏覽器中完成,而系統(tǒng)的操作風格就像用戶平常上網(wǎng)一樣,點擊進入功能模塊,點擊按鈕進行功能操作,用戶使用起來幾乎不用學習和培訓。當系統(tǒng)安裝和初始數(shù)據(jù)輸入完畢,并且網(wǎng)絡(luò)連接暢通后。用戶便可輸入網(wǎng)址,然后登陸進入系統(tǒng)了??尚行苑治龉δ芸尚行韵到y(tǒng)完整性:整個職能系統(tǒng)具備系統(tǒng)設(shè)計的科學合理性,職能信息錄入,修改,刪除及銷售信息的查詢等銷售的管理要求,滿足了相關(guān)人員功能符合企業(yè)對對職能管理的要求,適用于復雜的職能管理,因而達到了設(shè)計任務(wù)的要求.系統(tǒng)的可靠性:該系統(tǒng)可靠性高,能無故障正常的工作,當出現(xiàn)異常情況是還采取了一些防止系統(tǒng)破壞的方法和措施,如密碼保存,數(shù)據(jù)備份等.系統(tǒng)的效率:與舊系統(tǒng)相比,減輕了許多重復的繁瑣的勞動和手工計算量,抄寫量.系統(tǒng)的工作質(zhì)量:職能系統(tǒng)所提供數(shù)據(jù)的精確度,輸出結(jié)果的易讀性都能達到用戶要求,使用方便,使職能管理工作變得輕松,有序而有效.系統(tǒng)的靈活性:系統(tǒng)的環(huán)境是不斷變化的,因而該職能系統(tǒng)具有一定的擴充性,修改信息方便簡易,能夠、適應(yīng)環(huán)境的變化.經(jīng)濟可行性現(xiàn)在計算機的價格已經(jīng)十分低廉,性能卻有了長足的進步,它已經(jīng)被應(yīng)用于許多領(lǐng)域。系統(tǒng)開發(fā)的費用不是很多,維護的費用相對更少,這樣可以節(jié)約傳統(tǒng)的管理帶來的不必要的開支,降低學校的管理成本。.每年提取企業(yè)支出費用中的一少部分來用于技術(shù)改造與系統(tǒng)的維護,這些可以用于學生管理系統(tǒng)的開發(fā)費用。系統(tǒng)的實施可以節(jié)省很多的資源,包括人力上和物力上節(jié)約。因此,經(jīng)濟上是可行。管理可行性通過對各個模塊的管理運營實現(xiàn)管理可行性2軟件概述及設(shè)計方案職能管理系統(tǒng)應(yīng)用于基層指導工作,為上級的決策提供可供參考具體依據(jù),采用了當前流行的B/S結(jié)構(gòu)(即瀏覽器/服務(wù)器)設(shè)計,可以很方便的在Intranet和Internet上使用。系統(tǒng)的所有程序都在服務(wù)器一端安裝,維護和管理,客戶端不用再安裝更多的客戶端軟件,只需有IE瀏覽器,MSWord,MSEXCEL和MSPOWERPOINT可(一般的用戶機器上都會裝有IE瀏覽器和MSOFFICE等辦公軟件),實現(xiàn)了web技術(shù)特點及各功能模塊。此系統(tǒng)的所有操作,包括數(shù)據(jù)的瀏覽、增加,刪除,修改,查詢等操作全部在客戶端的機器上進行,所有的操作都是在瀏覽器中完成,而系統(tǒng)的操作風格就像用戶平常上網(wǎng)一樣,點擊進入功能模塊,點擊按鈕進行功能操作,用戶使用起來幾乎不用學習和培訓。當系統(tǒng)安裝和初始數(shù)據(jù)輸入完畢,并且網(wǎng)絡(luò)連接暢通后。用戶便可輸入網(wǎng)址,然后登陸進入系統(tǒng)了。迅速架設(shè)實施,無需周期性開發(fā)和專業(yè)的技術(shù)要求,簡易維護管理;完全 B/S結(jié)構(gòu),并同時兼容多類主流服務(wù)器和操作系統(tǒng);全部模塊式構(gòu)建,統(tǒng)一接口,無縫銜接,并可按需無限功能擴展;功能體系都能依據(jù)實際建設(shè)需要進行修改、擴展和自定義,實現(xiàn)個性化運用;分布式用戶管理,各級領(lǐng)導、管理人員等任意級別設(shè)置,跨分組權(quán)限靈活分配;數(shù)據(jù)與文件分離、框架與系統(tǒng)分離,系統(tǒng)升級與改版互不影響;可視化文檔模板編輯,輕松實現(xiàn)信息錄入;完善的安全體系和備份恢復機制,具備優(yōu)異的抗負荷能力。設(shè)計方案:職員管理用以管理公司的所有員工基本信息,包括員工的員工編號,,號,員工性質(zhì)(勞務(wù),合同,正式)和直接上級等基本信息,還有員工的通訊信息,學歷信息和工作信息等。HR人員可以瀏覽員工列表,并且在查詢區(qū)域輸入適當?shù)牟樵儣l件進行查詢。工資管理是指每個員工的當前薪酬的基礎(chǔ)數(shù)據(jù)。包括工資,個人社保,企業(yè)社保的一些基礎(chǔ)數(shù)據(jù)的定義。HR將維護這套數(shù)據(jù)(增加,刪除,修改,查詢),全員的薪酬信息維護好后,以后每月發(fā)薪就以薪酬信息中定義的金額發(fā)放,可能發(fā)放時會略作調(diào)整。財務(wù)管理是報銷模塊處理公司各個部門的員工各種明目的費用報銷。 全體員工都可以訪問“報銷申請”功能進行報銷申請,具有“報銷審批”功能的員工可以訪問此功能,對報銷審批人是自己的報銷申請進行審批。其中審批應(yīng)該分兩步:“初審”和“終審”。職能管理的基本特點是:將可重復的產(chǎn)品生產(chǎn)經(jīng)營活動分解為一系列標準化和次序化的任務(wù),并分配給特定的執(zhí)乙一一h<行者;由特定的管理層來監(jiān)督和確保執(zhí)行者有效地完成既定任務(wù),這種科層式的組織結(jié)構(gòu)反映了生產(chǎn)社會化過程中短缺的市場環(huán)境下追求大量產(chǎn)品生產(chǎn)的實際,而烽火獵頭專家認為自20世紀60一70年代以來,過去的供給導向的市場已轉(zhuǎn)變?yōu)樾枨髮虻氖袌?,因此在企業(yè)面對的是消費者主導的市場環(huán)境的今天,流程管理也就必然地取代傳統(tǒng)的職能管理成為企業(yè)管理的核心。另外,在職能管理中會出現(xiàn)以下問題:命令的傳遞和執(zhí)行緩慢甚至走樣;職能的劃分會出現(xiàn)空白或重疊;職能部門過分重視部門利益;管理層無暇顧及與企業(yè)發(fā)展相關(guān)的重大或長遠問題。相應(yīng)地,流程管理的實施不僅能夠解決以上問題,而且能夠極提高企業(yè)組織的效率和市場競爭能力,但“從職能管理轉(zhuǎn)變到流程管理需要一個過程”。更有甚者,“雖然流程管理概念的正式提出是在20世紀90年代中、后期,流程管理思想的萌芽卻源遠流長,即流程管理思想的最早提出可以追溯到弗雷德里克?泰勒 (FrederickTaylor)時期,之后流程管理便逐步由幕后走上前臺,由配角成為主角”。3軟件構(gòu)架圖用戶澄錄4針對軟件的各功能模塊做具體的設(shè)計描述及附注相關(guān)設(shè)計結(jié)果職員管理功能簡介此模塊用以管理公司的所有員工基本信息,包括員工的員工編號,,號,員工性質(zhì)(勞務(wù),合同,正式)和直接上級等基本信息,還有員工的通訊信息,學歷信息和工作信息等。HR人員可以瀏覽員工列表,并且在查詢區(qū)域輸入適當?shù)牟樵儣l件進行查詢。針對查詢結(jié)果,還可以對員工數(shù)據(jù)進行添加,刪除,修改等操作。員工數(shù)據(jù)中“員工編號”為員工在MIS系統(tǒng)的唯一標識,一旦在系統(tǒng)中維護好,就禁止更改了。當系統(tǒng)正常運行后,所有的員工數(shù)據(jù)都禁止刪除。系統(tǒng)中其它模塊在輸入員工的時候都會在員工列表中選擇輸入。
功能說明員工的登錄可對員工的分類管理員工的基本信息的查詢相關(guān)單據(jù)/報表表名:suser用戶顯示名稱字段名稱字段類型NULLPK/FK備注用戶名usernameVARCHAR(20)NOTNULLPK密碼pwdVARCHAR(100)NOTNULL密碼明文的MD5員工編號emp_noVARCHAR(5)NULLFK( s_employee:emp_no)用戶類別usertypeintNOTNULL0系統(tǒng)用戶;10用戶狀態(tài)activeflagintNOTNULL0active;10i表名:semployee員工顯示名稱字段名稱字段類型NULLPK/FK備注員工編號emp_noVARCHAR(5)NOTNULLPK四位自然長)的字員工emp_nameVARCHAR(20)NOTNULL號card」dVARCHAR(20)NOTNULLUNIQUE性別sexVARCHAR(2)NOTNULL出生日期birthdatedateNULL部門dept_noVARCHAR(4)NULLFK(s_department:deptno)職位positionVARCHAR(20)NULL直接上級superiorVARCHAR(5)NULLFK(s_employee:empno)員工性質(zhì)emptypeVARCHAR(10)NOTNULL辦公officephoneVARCHAR(15)NULL手機mobilephoneVARCHAR(15)NULL實際工作地占八、、realworkplaceVARCHAR(20)NULL公司companyemailVARCHAR(40)NOTNULL個人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最高學歷top_edu_historyVARCHAR(10)NULL畢業(yè)院校graduate_schoolVARCHAR(40)NULL畢業(yè)時間graduate_datedateNULL專業(yè)majorVARCHAR(40)NULL初次工作時間first_work_datedateNULL工作狀態(tài)station_statusVARCHAR(10)NOTNULL到職時間join_datedateNULL轉(zhuǎn)正時間formal_datedateNULL合同起始日contract_begindateNULL合同到期日contractenddateNULL離職時間dismissiondatedateNULL離職原因dismission_reasonVARCHAR(20)NULL直接上級的評價superiorcommentVARCHAR(50)NULL評價日期commentdatedateNULL指導人coachVARCHAR(5)NULLFK(s_employee:empno)司齡ageincompanyintNULL中文簡歷chineseresumeclobNULL英文簡歷englishresumeclobNULL4.2工資管理421功能簡介薪酬信息是指每個員工的當前薪酬的基礎(chǔ)數(shù)據(jù)。 包括工資,個人社保,企業(yè)社保的一些基礎(chǔ)數(shù)據(jù)的定義。HR將維護這套數(shù)據(jù)(增加,刪除,修改,查詢) ,全員的薪酬信息維護好后,以后每月發(fā)薪就以薪酬信息中定義的金額發(fā)放,可能發(fā)放時會略作調(diào)整。422功能說明員工薪酬的核算工資的支付相關(guān)單據(jù)/報表表名:薪資信息s_salary_info顯示名稱字段名稱字段類型NULLPK/FK備員工編號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里公司社??傆媠ocialinsurancetotalfloatNOTNULL里人力成本總計totalpayoutfloatNOTNULL里個人養(yǎng)老基數(shù)personbaseyanglaofloatNOTNULL里個人失業(yè)基數(shù)personbaseshiyefloatNOTNULL里個人工傷基數(shù)personbasegongshangfloatNOTNULL里個人醫(yī)療基數(shù)personbaseyiliaofloatNOTNULL里個人生育基數(shù)personbaseshengyufloatNOTNULL里個人住房基數(shù)personbasezhufangfloatNOTNULL里個人養(yǎng)老比例personrateyanglaofloatNOTNULL里個人失業(yè)比例personrateshiyefloatNOTNULL里個人工傷比例personrategongshangfloatNOTNULL里個人醫(yī)療比例personrateyiliaofloatNOTNULL里個人生育比例personrateshengyufloatNOTNULL里
個人住房比例person_rate_zhufangfloatNOTNULL默個人社??劭頿erson_social_insurance_totalfloatNOTNULL默記稅收入person_gross_incomefloatNOTNULL默所得稅person_income_taxfloatNOTNULL默稅后收入person_net_incomefloatNOTNULL默表名:s_salary_record 發(fā)薪記錄顯示名稱字段名稱字段類型NULLPK/FK備注發(fā)薪流水號salary_record」dVARCHAR(15)NOTNULLPK應(yīng)用程序自月_員工編號員工編號emp_noVARCHAR(5)NOTNULLFK( s_employee:emp_no)發(fā)薪年yearintNOTNULL發(fā)薪月monthintNOTNULL工資支出salaryfloatNOTNULL基本工資static_salaryfloatNOTNULL默認值:0崗位工資float_salaryfloatNOTNULL默認值:0報銷reimbursementfloatNOTNULL修正項和amendfloatNOTNULL管理費apportionfloatNOTNULL企業(yè)福利支出_social_insurancetotalfloatNOTNULL個人社保扣款person_social_insurancetotalfloatNOTNULL記稅收入persongrossincomefloatNOTNULL默認值:0所得稅person_income_taxfloatNOTNULL默認值:0稅后收入personnetincomefloatNOTNULL默認值:0企業(yè)總支出totalpayoutfloatNOTNULL獎金支出bonusfloatNOTNULL餐補mealallowaneefloatNOTNULL修正項amend」temfloatNOTNULL修正項說明amend」temdescVARCHAR(20)NULL工資單附件payslipintNULLFK( s_common_file:fileid)4.3財務(wù)管理431功能簡介報銷模塊處理公司各個部門的員工各種明目的費用報銷。全體員工都可以訪問“報銷申請”功能進行報銷申請,具有“報銷審批”功能的員工可以訪問此功能,對報銷審批人是自己的報銷申請進行審批。其中審批應(yīng)該分兩步: “初審”和“終審”。當終審通過后,財務(wù)人員可以在“報銷打款”功能中看到所有終審通過的報銷申請,然后逐個記錄進行“報銷打款”操作,系統(tǒng)將給每個報銷申請記錄登記打款日期,然后發(fā)送通知報銷申請人。功能說明報銷申請報銷查詢報銷撤銷相關(guān)單據(jù)/報表表名:sexpense費用報銷顯示名稱字段名稱字段類型NULLPK/FK備注報銷號expense_idVARCHAR(15)NOTNULLPK應(yīng)用程位員:位日期水號)員工編號emp_noVARCHAR(5)NOTNULLFK(s_employee:empno)費用描述expense_nameVARCHAR(30)NOTNULL報銷月份apply_timedateNOTNULL創(chuàng)建時間createtimedateNOTNULL費用類別expensetypeVARCHAR(20)NOTNULL費用歸集類別unit_typeVARCHAR(5)NOTNULL費用歸集單位unitidVARCHAR(20)NOTNULL報銷金額moneyintNOTNULL默認值初次審批firstapproverVARCHAR(5)NOTNULL初審日期firstapprovetimedateNULL初審標志firstapproveflagintNOTNULL最終審批finalapproverVARCHAR(5)NOTNULL終審日期finalapprovetimedateNULL終審標志finalapproveflagintNOTNULL批復feedbackVARCHAR(100)NULL
報銷單文件expense_accountintNULLFK(s_common_file:file_id)打款日期pay_datedateNULL表名:費用報銷項目s_expense_item顯示名稱字段名稱字段類型NULLPK/FK備注報銷項目號expense」tem」dVARCHAR(20)NOTNULLPK應(yīng)用程序賦號+2位流報銷號expense_idVARCHAR(15)NOTNULLFK(s_expense2:expenseid)費用發(fā)生日期expense_dateVARCHAR(30)NULL費用大類expensetypeoneVARCHAR(50)NOTNULL費用小類expense_type_twoVARCHAR(50)NOTNULL事由expense_reasonVARCHAR(50)NULL金額moneyfloatNOTNULL默認值:C備注notationVARCHAR(100)NULL4.4考勤管理441功能簡介考勤管理模塊處理每個員工的請假和審批事宜。 當公司員工因為“因公事假”,“因私事假”,“病假”,“年假”而缺勤時,可以提前填寫考勤申請,或者事后補考勤申請。員工寫明缺勤原因,缺勤類型,起始時間,考勤審批人等信息。員工對剛剛填報的缺勤申請可以撤銷,前提是審批人尚未對其進行審批。具有考勤審批權(quán)限的員工進入考勤審批功能界面, 對缺勤申請進行審批。這樣系統(tǒng)就可以記錄所有因私和無故缺勤的信息, 對統(tǒng)計人工時和計算薪酬提供基礎(chǔ)數(shù)據(jù)的支持。功能說明提交上下班時間查詢考勤記錄請假申報相關(guān)單據(jù)/報表表名:sabsenee考勤顯示名稱字段名稱字段類型NULLPK/FK備注請假號absence_idVARCHAR(15)NOTNULLPK應(yīng)用程序賦值編號+8位日水號)員工編號emp_noVARCHAR(5)NOTNULLFK(s_employee:emp_no)請假描述absence_nameVARCHAR(30)NOTNULL請假類別absence_typeVARCHAR(20)NOTNULL申請時間apply_timedateNOTNULL開始時間begin_timedateNOTNULL結(jié)束時間endtimedateNOTNULL請假小時數(shù)absent_hoursintNOTNULL默認值:0審批人final_approverVARCHAR(5)NOTNULL審批日期final_approve_timedateNULL審批標志final_approve_flagintNOTNULL批復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", "對不起,您上傳的文件不是系統(tǒng)規(guī)定的格式");returnmapping.findForward("failure");}FormFileenglishResumeForm=(FormFile)PropertyUtils.getSimpleProperty(form,"englishResume");if(!FileExtensionFilter.isSafeFileType(englishResumeForm.getFileName())){request.setAttribute("feedback", "對不起,您上傳的文件不是系統(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等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 度校企合作合同書(三):人才培養(yǎng)與交流
- 兒童健康食品供應(yīng)合同
- 醫(yī)療中心服務(wù)合同樣本
- 環(huán)保工程項目內(nèi)部承包合同范本
- 北京市全日制用工勞動合同模板
- 標準版租賃與購銷合同范本
- 雙方合作經(jīng)營合同示范文本
- 城市住宅房屋買賣合同范本
- 文化機械產(chǎn)品用戶體驗評估方法考核試卷
- 工業(yè)機器人協(xié)作機器人技術(shù)考核試卷
- ncast課錄播系統(tǒng)簡介
- 動物生態(tài)學原理課件
- 華為認證 HCIA-Security 安全 H12-711考試題庫(共800多題)
- DB34-T 2286-2022安全閥在線校驗規(guī)程-高清現(xiàn)行
- 《區(qū)域大地構(gòu)造學》全套教學課件
- 接地電阻測試記錄表范本
- 有限空間作業(yè)安全教育培訓記錄參考模板范本
- 員工技能熟練度評價
- 公司領(lǐng)導人員問責決定書(模板)
- 聲像檔案的整理103張課件
- DB51∕T 2681-2020 預拌混凝土攪拌站廢水廢漿回收利用技術(shù)規(guī)程
評論
0/150
提交評論