绩效考核管理系统论文(6)

2019-08-02 00:25

{

DeptMgr sMgr = new DeptMgr(); Dept dept = new Dept();

if (this.txtDeptID.ReadOnly == false) {

if (sMgr.ExistsDept(this.txtDeptID.Text)) {

this.SendMessage(\编号已经存在\ return; } } else {

dept = sMgr.GetDept(this.txtDeptID.Text); }

dept.DeptID = this.txtDeptID.Text.Trim();

dept.DeptName = this.txtDeptName.Text.Trim(); dept.Duty = this.txtDuty.Text; sMgr.UpdateDept(dept);

this.SendMessage(\信息编辑成功\ if (!this.txtDeptID.ReadOnly) {

this.ClearTextData(this); } }

3、在部门管理的主页面中点击某个部门的删除按钮将删除该部门的信息。 其中“删除”按钮的主要代码如下:

protected void dgList_DeleteCommand(object source, DataGridCommand EventArgs e)

{

DeptMgr sMgr = new DeptMgr(); sMgr.DelDept(e.Item.Cells[0].Text); this.initForm(); }

4、点击编辑按钮,打开修改部门信息界面。修改部门信息对的磁盘文件为Dept_Edit.aspx?DeptID= ,该模块的设计如图4-8所示:

22

图4-8编辑部门信息界面

4.4.4员工管理模块

管理企业员工的信息。

1、员工管理主界面对应的磁盘文件为Person_List.aspx,员工管理主界面如图4-9所示:

23

图4-9员工管理主界面

2、点击新增员工信息,打开新增界面。新增员工信息对应的磁盘文件为Person_Edit.aspx,该模块的设计如图4-10所示:

图4-10新增员工主界面

其中“提交”主要代码设计如下:

protected void btnOK_Click(object sender, EventArgs e) {

PersonMgr sMgr = new PersonMgr(); Person person = new Person();

24

if (this.txtPersonID.ReadOnly == false) {

if (sMgr.ExistsPerson(this.txtPersonID.Text)) {

this.SendMessage(\该登录名称已经存在\ return; }

person.Password = \ } else {

person = sMgr.GetPerson(this.txtPersonID.Text); }

person.PersonID = this.txtPersonID.Text.Trim();

person.PersonName = this.txtPersonName.Text.Trim(); if (this.txtPassword.Text != \ {

person.Password = this.txtPassword.Text; }

person.Card = this.txtCard.Text;

person.Dept.DeptID = this.lstDeptID.SelectedValue; person.Sex = this.lstSex.SelectedValue; person.Birtyday = this.txtBirthday.Text; person.WorkDate = this.txtWorkDate.Text; person.Tel = this.txtTel.Text;

person.Pay = double.Parse(this.txtPay.Text.Trim()); sMgr.UpdatePerson(person);

this.SendMessage(\信息编辑成功\ if (!this.txtPersonID.ReadOnly) {

this.ClearTextData(this); } }

3、点击某个员工的删除按钮将删除该员工的信息。 其中删除的主要代码如下:

protected void dgList_DeleteCommand(object source, DataGridCommand EventArgs e)

{

PersonMgr sMgr = new PersonMgr(); sMgr.DelPerson(e.Item.Cells[0].Text); this.initForm(); }

4、点击编辑按钮,打开修改员工信息界面。修改员工信息对的磁盘文件为

25

Person_Edit.aspx?PersonID= ,该模块的设计如图4-11所示:

图4-11修改员工信息界面

4.4.5考核项目管理模块

对企业员工的考核项目信息进行管理。

1.考核项目管理模块对应的磁盘文件为Project_List.aspx,考核项目管理界面如图4-12所示:

图4-12考核项目管理界面

26


绩效考核管理系统论文(6).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:铝液外运应急预案

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: