![[精品论文]人事管理系统课程设计_第1页](http://file.renrendoc.com/FileRoot1/2019-7/13/35142b7c-e2b2-4be5-8388-258a6c1c3538/35142b7c-e2b2-4be5-8388-258a6c1c35381.gif)
![[精品论文]人事管理系统课程设计_第2页](http://file.renrendoc.com/FileRoot1/2019-7/13/35142b7c-e2b2-4be5-8388-258a6c1c3538/35142b7c-e2b2-4be5-8388-258a6c1c35382.gif)
![[精品论文]人事管理系统课程设计_第3页](http://file.renrendoc.com/FileRoot1/2019-7/13/35142b7c-e2b2-4be5-8388-258a6c1c3538/35142b7c-e2b2-4be5-8388-258a6c1c35383.gif)
![[精品论文]人事管理系统课程设计_第4页](http://file.renrendoc.com/FileRoot1/2019-7/13/35142b7c-e2b2-4be5-8388-258a6c1c3538/35142b7c-e2b2-4be5-8388-258a6c1c35384.gif)
![[精品论文]人事管理系统课程设计_第5页](http://file.renrendoc.com/FileRoot1/2019-7/13/35142b7c-e2b2-4be5-8388-258a6c1c3538/35142b7c-e2b2-4be5-8388-258a6c1c35385.gif)
已阅读5页,还剩46页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
毕业设计课程定做 QQ1714879127课程设计 人 事 管 理 系 统目 录一、需求分析:错误!未定义书签。二、程序的主要功能:错误!未定义书签。三、程序运行平台:错误!未定义书签。四、 系统总框架图错误!未定义书签。五、程序类的说明:错误!未定义书签。六、模块分析错误!未定义书签。七、比较有特色的函数错误!未定义书签。八、存在的不足与对策错误!未定义书签。九、程序源代码错误!未定义书签。一、需求分析在现代化的企业管理中,人事管理系统有着十分重要的作用,然而,用大型软件系统来于小型的企事业单位,不啻于“杀鸡用牛刀”,因此小型的的软件对于这种单位自然有十分重要作用。某小型企业出与这种目的制作了这个人事管理系统二、程序的主要功能1、添加功能:添加一个职员的基本信息,包括姓名,工作证号,身份证号码,生日,家庭住址,家庭电话号码,部门,薪水,性别,职务、2、删除功能:能够对一个职员的信息进行删除按姓名进行删除、3、除全部职员信息:能够对于全部职员的信息进行删除!4、显示功能:显示所有职员的主要信息包括姓名,身份证号码,工作证号,生日、!5、查找功能:根据你键入的职员姓名,显示其详细信息!6、修改功能:对职员的信息进行修改。三、程序运行平台BC30。具体操作如下:首先进入bc,打开原代码person.cpp,然后进入原程序,接着选择Options下的Linker,选择Libraries,弹出一个对话框,再选择Graphics library,然后确认即可!四、 系统总框架图主 函 数添加信息删除信息清空信息修改信息显示信息查找信息 五、程序类的说明 Date类的声明class Date public: Date(); /Date类的构造函数 void set(); /Date类的设置函数 friend istream & operator (istream &in,Date &da); /重载“” friend ostream & operator (ostream &out,Date d); /重载“” void operator =(Date d); 重载“=” private: int year; /年 int month; /月 int day; /日; people类的声明class people public:people(); /people类的构造函数friend ostream & operator (istream &in,people &p); /重载“”void operator =(people p); /重载“=”void set(); /people类的设置函数char *getname(); /获得姓名char *getsex(); /获得性别char *getid(); /获得idchar *gettelephone(); /获得电话号码Date getbirthday(); /获得生日char *getnumber(); /获得工作证号void setname(char *); /设置姓名void setsex(char *); /设置性别void setid(char *); /设置id void setnumber(char *); /设置工作证号void setaddress(char *); /设置家庭地址void settelephone(char *); /设置电话号码void setbirthday(Date); /设置出生日期void setsalary(char *); /设置薪水void setpost(char *); /设置职务void setdepartment(char *); /设置工作部门protected:char name20; /姓名char sex5; /性别char id20; /身份证号char telephone10; /电话号码Date birthday; /出生日期char number20; /工作证号char address100; /家庭地址char salary10; /薪水char post20; /职务char department30; /工作部门public:people *next; /下一个节点people *previous; /上一个节点; cclass peoplelist:public people public: peoplelist(); /peoplelist类的构造函数 void set(); /peoplelist类的设置函数void add(); /添加函数void display(); /显示函数 void find(); /查找函数void deleteAll(); /清空函数void save(); /写入文件void load(); /读进内存void modify(); /修改函数void remove(); /删除函数private:people *start; /链表头people *end; /链表尾;六、模块分析1. 添加模块系统将提示用户输入新添加的职员的信息,插入在链表中2. 显示模块显示模块将输出所有职员的主要资料 。3. 修改模块首先由用户输入要修改的职员的姓名,然后系统用修改函数查找,显示该名职员的资料,然后系统提示用户输入需要修改的项目和新的资料。4. 查找模块首先由用户输入要查找的职员姓名,然后系统用查找函数查找,然后系统就调用输出函数,输出所查找的职员资料。5. 删除模块首先由用户输入要删除的单个职员姓名,然后调用删除函数,删除该名职员的资料。6. 清空模块系统将会把所有职员的资料全部删除,将链表清空。七、比较有特色的函数void peoplelist:remove()textmode(C80);textbackground(BLUE);clrscr();gotoxy(10,10);coutn;clrscr();people *temp;temp=start;while(temp)if(strcmp(temp-getname(),n)=0)break;if(temp=NULL)gotoxy(20,10);coutthe student name dosenot exist!previous)/删除的节点不是第一个 temp-previous-next=temp-next; if(temp-next)/删除的节点不是最后一个 temp-next-previous=temp-previous;else end=temp-previous; else/删除的节点是第一个 if(temp-next)/删除的节点不是最后一个 temp-next-previous=NULL; start=temp-next; elsestart=end=NULL;/删除节点是最后一个,链表只有一个节点gotoxy(30,10); coutremove succeed!endl;getch();八、存在的不足与对策由于设计者水平有限及时间等方面的原因,该系统的功能比较简单,查错能力也不强,对于一些不正确的输入可能会造成一些难以预料的结果,因此,请不要故意输入错误信息。这些不足请老师多多谅解。今后设计者会更多的学习编程技巧,不断的提高程序设计水平。九、程序源代码#includeiostream.h#includestring.h#includestdlib.h#includestdio.h#includefstream.h#includeconio.h#includegraphics.h#includedos.h#includeprocess.h#define TURE 1#define FALSE 0#define KB_S_N_DOWN 80#define KB_S_N_UP 72#define KB_S_N_ENTER 28#define KB_S_N_D 32#define KB_S_N_Q 16#define KB_S_N_M 50#define KB_S_N_A 30#define KB_S_N_F 33#define KB_S_N_R 19#define KB_S_N_E 18void Welcome();int get_key();int getitem(int);void light_bar();void box(int x,int y,int wi,int hi,char bkcolor,char color);int row,item_num=7;unsigned size;void * buf;/void box(int x,int y,int wi,int hi,char bkcolor,char color) textbackground(bkcolor);textcolor(color);int i;gotoxy(x,y);putch(0xda);for(i=1;iwi;i+)putch(0xc4);putch(0xbf);for(i=1;ihi;i+)gotoxy(x,i+y);putch(0xb3);gotoxy(x+wi,i+y);putch(0xb3);gotoxy(x,y+hi);putch(0xc0);for(i=1;iwi;i+)putch(0xc4);putch(0xd9);/void Welcome()int graphdriver=VGA;int graphmode=VGAHI;initgraph(&graphdriver,&graphmode,d:bcbgi);int seed=1858;int dotx,doty,h,w,color,maxcolor;maxcolor=getmaxcolor();w=getmaxx();h=getmaxy();srand(seed);for(int i=0;i(istream &in,Date &da); friend ostream & operator (istream &in,Date &da)A: int y,m,d; inymd; if(y2002) couterror!12|m1) couterror!daysmonthm|d1) couterror!endl; goto A; else da.day=d; else if(y%100=0)|y%4=0&y%100!=0) if(d29) couterror!endl; goto A; else da.day=d; else if(d28) couterror!endl; goto A; else da.day=d; return in;/ostream & operator (ostream &out,Date d)outd.year/d.month/d.dayendl;return out;/void Date:operator =(Date d)year=d.year;month=d.month;day=d.day;/class people public:people();friend ostream & operator (istream &in,people &p);void operator =(people p);void set();void change();char *getname();char *getsex();char *getid();char *gettelephone();Date getbirthday();char *getnumber();void setname(char *);void setsex(char *);void setid(char *);void setnumber(char *);void setaddress(char *);void settelephone(char *);void setbirthday(Date);void setsalary(char *);void setpost(char *);void setdepartment(char *);protected:char name20;char sex5;char id20;char telephone10;Date birthday;char number20;char address100;char salary10;char post20;char department30;public:people *next;people *previous;/void people:setdepartment(char *d) strcpy(department,d);/void people:setpost(char *p)strcpy(post,p);void people:setsalary(char *s)strcpy(salary,s);/void people:setname(char *n)strcpy(name,n);/void people:setsex(char *s)strcpy(sex,s);/void people:setid(char *i)strcpy(id,i);/void people:setnumber(char *n)strcmp(number,n);/void people:setaddress(char *a)strcpy(address,a);/void people:settelephone(char *t)strcpy(telephone,t);/void people:setbirthday(Date d)birthday=d;/char * people:getname()return name;/char * people:getsex()return sex;/char * people:getid()return id;/char * people:gettelephone()return telephone;/Date people:getbirthday()return birthday;/char * people:getnumber()return number;/void people:set()next=previous=NULL;/people:people()next=previous=NULL;/ostream & operator (ostream &out,people p)box(15,5,50,16,4,7);gotoxy(32,8);outImformation;gotoxy(20,10);outname: sex:p.sex;gotoxy(20,11);outnumber:p.number id:p.id;gotoxy(20,12);outaddress:p.address;gotoxy(20,13);outtelephone:p.telephone;gotoxy(20,14); outbirthday:p.birthday;gotoxy(20,15);outsalary:p.salary post:p.post;gotoxy(20,16);outdepartment:(istream &in,people &p)box(15,5,50,16,4,7);gotoxy(32,5);coutInformation;gotoxy(20,7); coutname: sex:; gotoxy(20,9); coutnumber: id:;gotoxy(20,11);coutaddress:;gotoxy(20,13);couttelephone:;gotoxy(20,15);coutbirthday:;gotoxy(20,17);coutsalary: post:;gotoxy(20,19);;window(52,7,59,7);textbackground(0);clrscr();inp.sex;window(28,9,39,9);textbackground(0);clrscr();inp.number;window(45,9,62,9);textbackground(0);clrscr();inp.id;window(29,11,59,11);textbackground(0);clrscr();cinp.address;window(31,13,43,13);textbackground(0);clrscr();inp.telephone;window(29,15,40,15);textbackground(0);clrscr();inp.birthday;window(27,17,40,17); textbackground(0);clrscr();inp.salary;window(52,17,59,17);textbackground(0);clrscr();inp.post;window(33,19,50,19);textbackground(0);clrscr();inp.department;return in;/void people:operator=(people p)strcpy(name,);strcpy(sex,p.sex);strcpy(id,p.id);strcpy(telephone,p.telephone);birthday=p.birthday;strcpy(address,p.address);strcpy(number,p.number);strcpy(salary,p.salary);strcpy(post,p.post);strcpy(department,p.department);/class peoplelist:public people public: peoplelist(); void set(); void add(); void display(); void find(); void deleteAll(); void save(); void load(); void modify(); void remove(); private: people *start; people *end;/void peoplelist:modify()textmode(C80);textbackground(BLUE);clrscr();gotoxy(10,10);coutn;clrscr();people *temp;temp=start;while(temp)if(strcmp(temp-getname(),n)=0)coutnext;if(temp=NULL)gotoxy(20,10);coutthe person dosenot exist!set();gotoxy(20,18);coutn;gotoxy(20,19);if(strcmp(n,name)=0)couts;temp-setname(s);else if(strcmp(n,sex)=0)couts;temp-setsex(s);else if(strcmp(n,telephone)=0)couts;temp-settelephone(s);else if(strcmp(n,id)=0)couts;temp-setid(s);else if(strcmp(n,number)=0)couts;temp-setnumber(s);else if(strcmp(n,address)=0)couts;temp-setaddress(s);else if(strcmp(n,birthday)=0)coutd;temp-setbirthday(d);else if(strcmp(n,salary)=0)couts;temp-setsalary(s);else if(strcmp(n,post)=0)couts;temp-setpost(s);else if(strcmp(n,department)=0)couts;temp-setdepartment(s);elsecoutitem incorrect!endl;gotoxy(20,20);coutmodify succeed!endl;getch();/void peoplelist:remove()textmode(C80);textbackground(BLUE);clrscr();gotoxy(10,10);coutn;clrscr();people *temp;temp=start;while(temp)if(strcmp(temp-getname(),n)=0)break;if(temp=NULL)gotoxy(20,10);coutthe student name dosenot exist!previous)temp-previous-next=temp-next; if(temp-next)temp-next-previous=temp-previous;elseend=temp-previous; elseif(temp-next)temp-next-previous=NULL; start=temp-next;elsestart=end=NULL;gotoxy(30,10); coutremove succeed!endl;getch();/void peoplelist:sav
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 门面租赁合同修复协议书
- 长租公寓租赁合同协议书
- 防护网工程销售合同范本
- 法人替公司还款合同范本
- 消防项目安全施工协议书
- 瑕疵生态板出售合同范本
- 物流人力合作合同协议书
- 销售咨询服务合同协议书
- 用于工作安置的合同协议
- 电梯门框安装合同协议书
- 芜湖凤鸣控股集团(筹)2024年招聘工作人员笔试考点考试题库与答案
- 2025春季学期国开电大本科《经济学(本)》一平台在线形考(形考任务1至6)试题及答案
- 2024年空中乘务专业人才培养方案调研报告
- CJ/T 30-2013热电式燃具熄火保护装置
- 2025贵州省水利投资(集团)有限责任公司招聘84人笔试备考题库附答案详解(巩固)
- 调岗协议书合同补充
- 2025香河事业单位笔试真题
- 果蔬产业园建设可行性研究报告
- 2025年山东省普通高校招生(春季高考)全省统一考试语文试题
- 2025年护士考试理论知识整合试题及答案
- 门诊部医保管理制度
评论
0/150
提交评论