SQL的企业人事管理系统的應用

SQL的企业人事管理系统的应用
朱晔
浙江树人大学
杭州,浙江,中国IIII.00I.V
zhuyeII0I.0@gmail.com
摘要:随着计算机技术和企业人事信息的发展,计算机技术和数据库技术的应用在公司的人事管理系统中已经势在必行.在本文中,我们实现了I.个SQLServer数据库和VisualC++平台的企业人事管理系统.它的功能包括用户登录,部门信息管理,员工信息管理,员工考勤管理.该系统可以有效地提高企业的人事管理效率,提高企业的信息化水平,进I.步规范了公司的治理,该系统显着的节约了劳动力成本.
关键字:企业人事管理系统,SQLServer数据库,VisualC++编程
I..简介
伴随着计算机技术的飞速发展,计算机越来越多的在企业管理中被运用.不同的企业面临着巨大的人事资料管理,人类的信息管理已经越来越不能满足高效率和现代工作及生活的需要的快速步伐.我们使用计算机去进行企业人事管理已经不可避免,许多公司已经有成功使用的案例.使用计算机进行的企业信息管理具有速度快.可靠.易查询.存储容量大和低成本的优点.这些优点可以大大的提高人事管理的效率,提高管理的科学化,规范化.目前,企业人事管理系统包括客户端/服务器模式和浏览器/服务器模式.在本文中,我们研究了客户端/服务器模式的企业人事管理系统,该系统的主要功能是对企业的人事信息实现系统化.规范化和自动化的管理.
II.系统的总体结构
本企业人事管理系统的开发是VisualC++II00V和SQLServerII00V的平台去完成的.在这个系统中,我们使用了ADO.NET技术对数据库进行操作,通过对数据库技术及应用程序的结合去完成人事管理的功能.VisualC++II00V是微软的可视化开发工具之I.,它可以简单的快速的开发应用程序,同 *好棒文|www.hbsrm.com +Q: ¥3^5`1^9`1^6^0`7^2$ 
时它可以提高程序代码的可用性和可维护性.它在数据库技术中是比较成熟的,尤其是对SQLServer数据库.在这个开发平台下,我们可以很容易地开发出具有强大的功能.执行速度快.占用空间小.应用范围广的优点的应用程序.
A.系统框架
系统总体架构设计是将总任务划分成许多基本的和具体的功能模块,这些特定的功能模块可以进行合理的整合,以形成整体的系统.此系统的基本任务如下:
?系统划分成较大的模块;
?对每I.个功能模块进行进I.步的划分,从而形成更加具体的功能模块;
?确定每I.个模块的具体功能;
?确定模块之间的调用关系;
?确定模块接口和模块之间的信息交互.
整体设计需要根据需求阶段报告找到I.个合理的软件解决方案来实现系统的功能.在设计好软件解决方案之后,我们可能需要修改几次,从而达到更合理的结构.系统的整体结构如图I.所示.
图I.系统架构图
本企业人事管理系统被分为IV个部分,它们分别是用户登录.部门管理.员工信息管理和员工考勤管理.在用户登录管理部分中,它被分为普通用户登录和管理员用户登录,普通用户是注册用户,如员工等,管理员是负责维护和更新整个系统,管理员在系统上有更多的权利.部门管理,主要负责管理各部门的信息,包括部门输入的信息,部门信息的修改,部门信息的查询,以及部门信息的删除.员工信息
管理,包括员工信息录入,员工信息的修改,员工信息的查询,员工信息的删除.员工考勤管理是对员工的日常工作进行评价,包括考勤信息的录入,考勤信息的查询和考勤信息的统计.
B.系统的实现过程
系统的实现过程是在程序运行时的每I.个函数的执行顺序.当用户需要使用该系统的功能时,他们需要首先登录到系统,然后可以选择系统功能,如部门管理,员工信息管理,员工考勤管理.当用户完成所需的功能,然后他们就可以退出系统.图II是本系统的实现过程.
图II系统的实现过程
III.每个模块的功能
由于使用面向对象程序设计方法,所以每个模块的功能是相对独立的.这也将有助于实现程序的设计和功能模块的操作和维护.
A.用户登录功能
登录用户分为普通用户登录和管理员身份登录.当普通用户登录时,系统会给予他低的权威来满足普通用户的基本需求.当用户是管理员时,系统将分配I.个更高的权威,由管理员实现系统的更新和维护.
B.部门管理
部门管理提供了编辑部门的信息,部门的主要业务功能,信息查询,部门联系.
C.员工信息管理
员工信息管理主要是对员工基本信息进行的管理,包括员工的基本信息的建立和维护.
D.员工考勤管理
员工考勤管理,主要执行工作记录和统计员工信息,包括员工的工作时间,完成的工作,拖期的频率,请假的天数.通过对上述信息的统计可以对员工进行调查和评估.
IV.数据库设计与实现
A.数据库的设计方法
在该系统中,我们使用软件工程的方法设计数据库,数据库设计的过程分为IV个阶段,包括对用户需求的分析,建立概念模型,逻辑设计和物理设计,数据库设计如图III所示
图III数据库设计的过程
在需求分析阶段中,我们应该与用户进行沟通,充分的了解并分析用户的具体需求,对系统设计的可行性进行分析,这个阶段我们需要准确的把握用户的需求,这个阶段是数据库设计的基础以及最 *好棒文|www.hbsrm.com +Q: ¥3^5`1^9`1^6^0`7^2$ 
困难的阶段,因为用户通常不是计算机相关的专业.
建立概念模型阶段是数据库设计中的I.个关键的步骤.根据从需求阶段收集到的信息,我们需要做出I.些具体的摘要要求,从而形成I.个解决方案,建立概念模型是独立于任何数据库系统的.逻辑设计阶段在数据库系统的支持下将概念模型转换到数据模型的,如果它使用的是关系型数据库,设计人员往往会选择实体关系图来描述数据库系统的设计.物理设计阶段是选择I.个合适的物理结构的逻辑模型,从而实现物理结构.在这个系统中,我们选择的数据库是SQLServerII00V.
B.数据库表的设计与实现
数据库设计按照上述规定的方法,在本企业人事管理系统中我们主要使用如下表:用户信息表,部门表,基本员工信息表,员工考勤表,员工评估表.
(I.)用户信息表
在系统中,用户信息表(用户)是用来保存用户信息的.在用户登录系统时用户信息表被使用,用户信息表包括以下数据项:用户名,用户密码,用户类型.字段的设计如表I..
表I.用户信息表
(II)部门表
部门表(部门)是用来保存该公司的各个部门的信息.部门表在部门管理中被使用,它包括以下数据项:部门编号,部门名称,部门介绍,上级部门的数量.字段的设计如表II
表II部门表
(III)员工基本信息表
基本员工信息表(员工)是用来保存员工的基本信息.基本员工信息表是用在员工信息管理功能方面的,包括以下数据项:员工编号,员工姓名,照片,员工的性别,民族,出生日期,婚姻状况,政治面貌,文化程度,籍贯,工作证号码,身份证号码,办公电话,移动电话,文件的位置,户口所在地,到达日期,职位,工作,较高的员工,合同期内,员工的现状,笔记标注,资料的填写人,填写的信息.字段的设计如表III
表III员工基本信息表
(IV)员工考勤表
员工考勤表(签)是用来记录基本的员工的考勤信息.员工考勤表是用在员工考勤管理功能中的,它包括以下数据项:考勤日期,雇员数,出勤天数,旅游天数,病假,事假天,个人休假天数,法定休假日,年休假天数,带薪年假,I.种类型的加班天,两种类型的加班天,III种类型的加班天,早退,迟到时间.字段的设计如表IV.
表IV员工考勤表
(V)员工评估表
员工评估表(评估)是用来保存员工的评估信息.员工评估表包括以下数据项:评估月,雇员人数,整体评估,奖励,处罚的理由,奖励的金额,处罚的金额.字段的设计如表V.
表V员工评估表
V.小结
在本文中,我们实现了企业人事管理系统,使用了SQLServer数据库和VisualC++作为本系统的开发平台,我们完成了用户登录.部门管理和人员管理的功能,本文为企业的人事信息管理提供了具体的解决方案.经过测试,该系统的各个模块运行正常,能够满足人事管理的基本要求.对于I.些可能需要I.些特殊功能的公司,它们可以在这个系统的基础上做进I.步的发展.然而,伴随着信息技术的飞速发展,系统的许多功能还需要不断的进行改进.
附件II:外文原文(复印件)
TheApplicationofSQL-basedCorporatePersonnelManagementSystem
ZhuYe
ZhejiangShurenUniversity
Hangzhou,Zhejiang,ChinaIIII.00I.V
zhuyeII0I.0@gmail.com
Abstract-Withthedevelopmentofcomputertechnologyandpersonnelinformationofenterprise,theapplicationofcomputertechnologyanddatabasetechnologyinthecompanyspersonnelmanagementsystemisalreadyimperative.Inthispaper,weimplementacorporatepersonnelmanagementsystembasedontheSQLServerdatabaseandVisualC++.Itsfunctionsincludeuserlogin,departmentalinformationmanagement,employeeinformationmanagement,employeeattendancemanagement.Thesystemcaneffectivelyimprovetheefficiencyofcorporatepersonnelmanagement,enhancethelevelofinformation,andstandardizecorporategovernance,significantsavelaborcost.
Keywords-CorporatePersonnelManagementSystem,SQLServerdatabase,VisualC++Programming
I.INTRODUCTION
Withtherapiddevelopmentofcomputertechnology,computersaremoreandmorecommonusedinbusinessmanagement.Variousenterprisesfacehugepersonnelinformationmanagement,humaninformationmanagementhasbeenincreasinglyunabletomeethighefficiencyandfastpaceofmodernworkandlifeneeds.Personnelmanagementofenterprisesusingthecomputerhasbeeninevitable,andmanycompanieshavebeensuccessfulcases.Enterpriseinformationmanagementusingcomputerhasadvantagesoffastspeed,reliability,easyfound,largememorycapacityandlowcost.Theseadvantagescanimprovetheefficiencyofpersonnelmanagement,andimprovethescientificandstandardizedmanagement.Currently,thecorporatepersonnelmanagementsystemincludesclient/servermodelandbrowser/servermodel.Inthispaper,westudycorporatepersonnelmanagementsystembasedonclient/servermodel,thesystemsmainfunctionistoachievethesystematic,standardizedandautomatedmanagementaboutenterprisepersonnelinformation.
II.THEOVERALLSTRUCTUREOFTHESYSTEM
ThiscorporatepersonnelmanagementsystemisdevelopedandcompletedbasedonVisualC++II00VandSQLServerII00V.Inthissystem,weusetheADO.NETtechnologytooperatethedatabase,completepersonnelmanagementfunctionsbythecombinationofdatabasetechnologyandapplicationprogram.VisualC++II00VisoneofMicrosoftsvisualdevelopmenttools,itissimpleandquicktodevelopapplications,itcanimproveusabilityandmaintainabilityofcode.Itisquitematureinthedatabase
technology,especiallyfortheSQLServerdatabase.Withthisdevelopmentplatform,wecaneasilytodevelopprocedurewhichhasadvantagesofpowerfulfunction,fastexecution,smallfootprintandwideapplication.
A.SystemFramework
Overallsystemarchitecturedesignistodividetheoveralltaskintomanybasicandspecificfunctionmodules;thesespecificfunctionmodulescanbereasonablyintegratedtoformtheoverallsystem.Thesystemsbasictasksareasfollowing:
?Dividingthesystemintolargermodules;
?Doingafurtherbreakdownforeachfunctionmodule
toformmorespecificfunctionalmodules;
?Determiningthespecificfunctionofeachmodule;
?Determiningthemodulecallingrelationships;
?Determiningthemoduleinterfaceandtheinteraction
ofinformationbetweenmodules.
Overalldesignneedstofindarationalsoftwaresolutiontoachievesystemfunctionsaccordingthereportofrequirementsphase.Afterdesigningthesoftwaresolution,wemayhavetomodifyseveraltimestoachieveamorerationalstructure.TheoverallstructureofthesystemisshowninFigureI..
FigureI..Systemarchitecturediagram
Thiscorporatepersonnelmanagementsystemisdividedintofourparts;theyareuserlogin,departmentmanagement,employeeinformationmanagementandemployeeattendancemanagement.Intheuserloginmanagement,itisdividedintoordinaryuserloginandadministratoruserlogin,theordinaryuseristheregistereduser,suchasemployeesandsoon,administratorsareresponsibleformaintainingandupdatingtheentiresystemandhavemorerightsonthesystem.Departmentmanagementmainlymanagesinformationofeachdepartment,includingdepartmentinformationinput,departmentinformationchanges,departmentinformationinquiry,anddepartmentinformationdeleted.Employeeinformationmanagementincludesemployeeinformation
entry,employeeinformationchanges,employeeinformationinquiry,andemployeeinformationdeleted.Employeeattendancemanagementistheassessmentofthedailyworkofemployees,includingattendanceinformationinput,attendanceinformationinquiryandattendanceinformationstatistics.
B.Systemimplementationprocess
Systemimplementationprocessistheexecutionorderofeachfunctionatruntimeoftheprogram.Whenusersneedtousethissystemfunction,theyneedtologintothesystemfirstly,thencanchoosesystemfunctions,suchasdepartmentmanagement,employeeinformationmanagement,employeeattendancemanagement.Whenuserscompletethedesiredfunction,thentheycanexitthesystem.FigureIIisthesystemimplementationprocess.
FigureII.Thesystemimplementationprocess
III.THEFUNCTIONOFEACHMODULE
Becauseoftheuseofobject-orientedprogrammingmethod,thefunctionofeachmoduleisrelativelyindependent.Itwillalsohelptherealizationofprogramdesignandtheoperationandmaintenanceoffunctionalmodules.
A.Theuserloginfunction
Userloginisdividedintoordinaryuserloginandadministratorlogin.Whenordinaryuserslogon,thesystemwillgivehimlowauthoritytomeetthebasicneedsofordinaryusers.Whentheuserisanadministrator,thesystemwillassignahigherauthorityinordertoachievethesystemsupdatesandmaintenancebyadministrator.
B.Departmentmanagement
Departmentmanagementprovidestheeditingdepartmentinformation,departmentsmajorbusinessfunctions,informationquery,departmentaffiliation.
C.Employeeinformationmanagement
Employeeinformationmanagementismainlythebasicinformationmanagementforemployees,includingtheestablishmentandmaintenanceofbasicemployeeinformation.
D.Employeeattendancemanagement
Employeeattendancemanagementmainlycarryouttheworkrecordsandstatisticsofemployees,includingemployeetimetowork,completedwork,thefrequencyoftardiness,thenumberofdaysleaveandalsoinformationstatisticsbytimeonthese,inorderforemployeeinquiriesandassessment.
IV.DATABASEDESIGNANDIMPLEMENTATION
A.Themethodofdesigningadatabase
Inthesystem,weusesoftwareengineeringmethodstodesigndatabase,thedatabasedesignprocessisdividedintofourstages,includinganalysisofuserneeds,conceptualmodelsestablished,logicaldesign,andphysicaldesign.DatabasedesignisshowninFigureIII.
FigureIII.Thedatabasedesignprocess
Inrequirementsanalysisphase,weshouldcommunicatewithusers,understandandanalyzeusersspecificneeds,analyzethefeasibilityofsystemdesign,thisphaserequiresanaccurategraspofusersrequirements,isthebasisfordatabasedesignandmostdifficultphase,becauseusersareoftennotcomputer-relatedprofessionals.
Conceptualmodelestablishedphaseisakeystepindatabasedesign.Accordingtoinformationgatheredfromtherequirementphase,weneedtodosomeconcreteaboutthe
abstractrequirement,formasolutionwhichisindependentfromanydatabasesystem.
Logicaldesignphasewillconverttheconceptualmodeltoadatamodelsupportedbyadatabasesystem,ifitisusingarelationaldatabase,designerwilloftenchoosetheentity
relationshipdiagramtodescribedatabasesystemdesign.
Physicaldesignstageistoselectasuitablephysicalstructureforthelogicmodel,andimplementphysicalstructure.Inthissystem,SQLServerII00Vdatabaseischosen.
B.DesignandImplementationofdatabasetables
Accordancewiththeabovemethodofdatabasedesign,wemainlyusefollowingtablesinthiscorporatepersonnelmanagementsystem:theuserinformationtable,thedepartmenttable,thebasicemployeesinformationtable,employeeattendancetable,employeeevaluationtable.
I.)Theuserinformationtable
Userinformationtable(Users)isusedtosavetheuserinformationinthesystem.Itisusedwhentheuserlogininthesystem,includesfollowingdataitems:username,userpassword,usertype.FieldsdesignisshowninTableI..
TABLEⅠTHEUSERINFORMATIONTABLE
II)Thedepartmenttable
Departmenttable(Department)isusedtosavevariousdepartmentinformationofthecompany.Itisusedinthedepartmentmanagement,includesfollowingdataitems:
departmentnumber,departmentname,departmentdescription,parentdepartmentnumber.FieldsdesignisshowninTableII.
TABLEⅡDEPARTMENTTABLE
III)Thebasicemployeeinformationtable
Thebasicemployeesinformationtable(Employees)isusedtosavethebasicinformationofemployees.Itisusedinemployeeinformationmanagementfunctions,includesfollowingdataitems:employeenumber,employeename,photo,employeegender,nationality,dateofbirth,maritalstatus,politicalaffiliation,educationlevel,placeoforigin,workpermitnumber,IDnumber,officephone,mobilephone,filelocation,accountLocation,arrivaldate,position,job,higheremployees,contractperiod,employeestatus,notes,informationfilledperson,informationfilledtime.FieldsdesignisshowninTableIII.
TABLEⅢTHEBASICEMPLOYEEINFORMATIONTABLE
IV)Theemployeeattendancetable
Theemployeeattendancetable(Checkin)isusedtorecordbasicattendanceinformationofemployees.Itisusedinemployeeattendancemanagementfunctions,includesfollowingdataitems:attendancedate,employeenumber,attendancedays,traveldays,sickdays,personalleavedays,theminersofdays,statutoryleavedays,annualleavedays,backdaysoff,onetypesofovertimedays,twotypesofovertimedays,threetypesofovertimedays,leaveearlytime,latetime.FieldsdesignisshowninTableIV.
TABLEIV.THEEMPLOYEEATTENDANCETABLE
V)Theemployeeevaluationtable
Theemployeeevaluationtable(Evaluation)isusedtosavetheemployeeevaluationinformation.Itincludesfollowingdataitems:evaluationmonth,employeenumbers,theoverallassessment,reward,punishmentreasons,theamountofreward,punishmentamount.FieldsdesignisshowninTableV.
TABLEVTHEEMPLOYEEEVALUATIONTABLE
V.SUMMARY
Inthispaper,weimplementacorporatepersonnelmanagementsystem,usetheSQLServerdatabaseandVisualC++developmentplatform,completeuserlogin,departmentalmanagement,personnelmanagement,providespecificsolutionsforcorporatepersonnelinformationmanagement.Aftertesting,eachmoduleofthesystemrunsproperly,cansatisfythebasicrequirementsforpersonnelmanagement.Forsomecompanieswhomayrequirespecialfeaturescanmakefurtherdevelopmentonthebasisofthissystem.However,withtherapiddevelopmentofinformationtechnology,manyfunctionsofthesystemneedcontinuousimprovement.

版权保护: 本文由 hbsrm.com编辑,转载请保留链接: www.hbsrm.com/lwqt/wxzs/188.html

好棒文