数据库课程设计论文人事管理系统Word文档格式.docx
- 文档编号:18844901
- 上传时间:2023-01-01
- 格式:DOCX
- 页数:19
- 大小:137.87KB
数据库课程设计论文人事管理系统Word文档格式.docx
《数据库课程设计论文人事管理系统Word文档格式.docx》由会员分享,可在线阅读,更多相关《数据库课程设计论文人事管理系统Word文档格式.docx(19页珍藏版)》请在冰豆网上搜索。
对于本系统的可行性,我们从以下三方面进行研究:
1、技术可行性现有的技术完全可以实现本系统。
我们用客户/服务器结构来实现网络环境。
选择ASP+SQLSERVER2000这两个流行软件作为我们的开发软件。
选择SQLSERVER作后台数据库是因为它本身就是大型数据库管理软件,功能强大,而且它也是微软的产品,兼容性好。
最重要的是它具有许多更先进的功能,具有使用方便、可伸缩性好、与相关软件集成程度高等优点。
2、经济可行性这个系统一旦投入使用,将会给该人才中心带来前所未有的方便和快捷。
不但会提高工作效率,减少不必要的中间环节以及不必要的开支,而且可以给其带来更大的利润。
总之,这个系统的经济效益远远大于开发成本。
3、操作可行性本系统的界面将会作的尽量友好,并且本系统将会以简单的操作使用户几乎不用进行培训凭借用户手册和联机帮助就能轻易掌握。
这一特点对于人才中心的工作人员来说,将会在对该软件的使用中切实的体会到。
总之,本系统的操作方式在该用户组织内将完全行得通。
第二章需求分析
2.1概述
管理系统用于企业的档案管理工作,如果该企业的人数增加,将会增加系统数据库中的数据。
系统一般应用于企业局域网,分布在公司各个部门,由专人负责管理。
概括的说具查询、修改、删除等功能。
系统功能描述图:
根据调查分析,我们对系统的性能要求总结出以下几点:
1、实用性本系统是本着实用的原则进行开发的,为的是开发完毕后即能尽快投入使用,使人事部门的工作人员能够尽快摆脱手工劳作的劳累。
2、易维护性易维护性是一个优秀软件所必备的性能,由于档案管理员并非专门的软件工作人员,所以我们尽量使软件易维护。
3、安全可靠性对于数据库的设计,一个关键的内容便是数据库的安全性。
比如,权限的管理(对于不同的用户分配不同的权限),数据库的备份和恢复(对数据库进行备份,以免在系统出现不可避免的错误或故障时,可以及时的恢复,而不至于造成巨大的损失。
)
4、可扩充性和标准化原则考虑到将来扩充的方便,我们尽量把文档及其代码写的标准化,并且如果将来有可能我们将实现其网络化的功能。
2.2业务流程分析
业务流程描述:
人事档案管理由公司的人事部门负责。
当有新员工进入公司时,将档案交到人事部门,审核通过后进行档案的添加,否则返回修正后再入库;
当公司员工离职、退休等情况发生时,人事部门依据相关凭证从档案库删除该员工档案;
当员工职位或者工作部门发生变动时,由人事档案管理员对档案进行修改;
此外,经理可以直接对档案库中的档案进行查询操作。
业务流程图:
2.3数据与数据流程分析
数据流程图:
2.4数据字典
数据字典
名字:
员工号
别名:
描述:
唯一地标识数据库中员工的一个特定关键字
定义:
员工号=8{字符}8
位置:
员工基本信息表
部门号
唯一地标识数据库中单位部门的一个特定关键字
部门号=8{字符}8
部门基本信息表
基本信息查询表
在指定条件下的员工基本情况查询结果的信息表
基本信息查询表=员工号+姓名+年龄+性别+出生+籍贯+家庭住址
输出到打印机
部门信息表
员工所在部门相关信息表
部门信息表=员工号+姓名+部门编号+部门名称+工作职责+办公位置
人事变更表
员工人事变更记录表
人事变更表=员工号+姓名+原部门号+原职位+新部门号+新职位+变更原因+备注
第三章系统实现
3.1编码
人事管理模块代码:
usingSystem;
usingSystem.Data;
usingSystem.Configuration;
usingSystem.Collections;
usingSystem.Web;
usingSystem.Web.Security;
usingSystem.Web.UI;
usingSystem.Web.UI.WebControls;
usingSystem.Web.UI.WebControls.WebParts;
usingSystem.Web.UI.HtmlControls;
usingSystem.Text;
usingSystem.IO;
publicpartialclassYuanRPView:
System.Web.UI.Page
{
protectedvoidPage_Load(objectsender,EventArgse)
{
if(!
Page.IsPostBack)
if(Request.Cookies["
PageIndex"
]!
=null)
intintPageIndex=int.Parse(Request.Cookies["
].Value);
intintSelectedIndex=int.Parse(Request.Cookies["
SelectedIndex"
GV_Yuan_RP.PageIndex=intPageIndex;
GV_Yuan_RP.SelectedIndex=intSelectedIndex;
Response.Cookies["
].Expires=DateTime.Today.AddDays(-10);
}
Yuan_RPyuan_rp=newYuan_RP();
DataSetds_Yuan_RP=yuan_rp.GetDataSet("
"
);
GV_Yuan_RP.DataSource=ds_Yuan_RP.Tables["
T_Yuan_RP"
];
GV_Yuan_RP.DataBind();
lbl_Count.Text=ds_Yuan_RP.Tables["
].Rows.Count.ToString();
Session["
]=ds_Yuan_RP.Tables["
Rank_Code"
publicFunctionpFunction=newpublicFunction();
StringstrRankCode=Request.Cookies["
].Value;
StringstrFunctionCode="
YuanRP"
;
StringstrReturn=pFunction.GetPurview(strRankCode,strFunctionCode);
if(strReturn.Contains("
fail"
))
Response.Redirect("
PurviewError.aspx"
protectedvoidbutAll_Click(objectsender,EventArgse)
protectedvoidbutYuan_Click(objectsender,EventArgse)
Yuan_ID="
+Yuan_ID.Value);
Yuan_Name.Text="
Yuan_ID.Value="
protectedvoidGV_Yuan_RP_SelectedIndexChanging(objectsender,GridViewSelectEventArgse)
intInt_SelectIndex=e.NewSelectedIndex;
RowIndex_jc"
].Value=Int_SelectIndex.ToString();
protectedvoidGV_Yuan_RP_RowDeleting(objectsender,GridViewDeleteEventArgse)
intInt_RowIndex=e.RowIndex;
//删除部门
yuan_rp.RowIndex_jc=Int_RowIndex;
StringstrReturn=yuan_rp.Yuan_RPDelete();
ok"
//获取新的部门信息列表
DataSetds_Yuan_RP=newDataSet();
ds_Yuan_RP=yuan_rp.GetDataSet("
elseif(strReturn.Contains("
Response.Write(strReturn.Replace("
"
));
protectedvoidlbYuanRPAdd_Click(objectsender,EventArgse)
YuanRPEdit.aspx?
Command=INSERT"
protectedvoidlbYuanRPEdit_Click(objectsender,EventArgse)
=null&
&
Request.Cookies["
].Value==GV_Yuan_RP.SelectedIndex.ToString())
].Value=GV_Yuan_RP.PageIndex.ToString();
].Value=GV_Yuan_RP.SelectedIndex.ToString();
intintRowIndex=14*GV_Yuan_RP.PageIndex+GV_Yuan_RP.SelectedIndex;
Command=UPDATE&
RowIndex_jc="
+intRowIndex.ToString());
else
Response.Write("
<
scriptlanguage=javascript>
alert('
操作失败!
'
)<
/script>
protectedvoidGV_Yuan_RP_RowDataBound(objectsender,GridViewRowEventArgse)
if(e.Row.RowType==DataControlRowType.DataRow)
e.Row.Cells[0].Text=pFunction.GetDate(DateTime.Parse(e.Row.Cells[0].Text));
protectedvoidGV_Yuan_RP_PageIndexChanging(objectsender,GridViewPageEventArgse)
DataTableT_Yuan_RP=(DataTable)Session["
GV_Yuan_RP.PageIndex=e.NewPageIndex;
GV_Yuan_RP.DataSource=T_Yuan_RP;
protectedvoidlbExport_Click(objectsender,EventArgse)
GV_Yuan_RP.Columns[5].Visible=false;
GV_Yuan_RP.Columns[6].Visible=false;
GV_Yuan_RP.BottomPagerRow.Visible=false;
GV_Yuan_RP.Caption="
员工奖惩"
//通过COM导入到Excel
stringstrExcelFileName=Server.MapPath(Request.ApplicationPath)+"
\\Report.XLS"
//通过HTML导入到Excel
Response.ContentType="
application/vnd.ms-excel"
Response.AddHeader("
Content-Disposition"
inline;
filename="
+HttpUtility.UrlEncode("
Report.xls"
Encoding.UTF8));
//如果输出为Word,修改为以下代码
//Response.ContentType="
application/ms-word"
//Response.AddHeader("
//+HttpUtility.UrlEncode(strExcelFileName,Encoding.UTF8));
StringBuildersb=newStringBuilder();
System.IO.StringWritersw=newSystem.IO.StringWriter(sb);
System.Web.UI.HtmlTextWriterhw=newSystem.Web.UI.HtmlTextWriter(sw);
sb.Append("
html>
body>
GV_Yuan_RP.RenderControl(hw);
/body>
/html>
Response.Write(sb.ToString());
Response.End();
//*/
GV_Yuan_RP.Columns[5].Visible=true;
GV_Yuan_RP.Columns[6].Visible=true;
GV_Yuan_RP.BottomPagerRow.Visible=true;
publicoverridevoidVerifyRenderingInServerForm(Controlcontrol)
}
人事统计模块代码:
singSystem;
publicpartialclassStatZongHeView:
voidfunctionQuery()
StringstrQuery="
if(Department_ID.SelectedValue!
="
All"
strQuery="
Department_ID="
+Department_ID.SelectedValue;
Yuanyuan=newYuan();
DataSetds_Yuan=yuan.GetDataSet(strQuery);
DataTableT_Yuan=ds_Yuan.Tables["
T_Yuan"
GV_Yuan.DataSource=T_Yuan;
GV_Yuan.DataBind();
]=T_Yuan;
//统计平均年龄和平均工资
intintRowCount=T_Yuan.Rows.Count;
intintOld=0;
floatintLaborage=0;
doubleintOldPJ=0;
doubleintLaboragePJ=0;
if(intRowCount>
0)
for(intintIndex=0;
intIndex<
intRowCount;
intIndex++)
DateTimeDT_Birth=DateTime.Parse(T_Yuan.Rows[intIndex]["
Yuan_Birth"
].ToString());
intintNowYear=DateTime.Today.Year;
intintBirthYear=DT_Birth.Year;
intOld+=intNowYear-intBirthYear;
intLaborage+=float.Parse(T_Yuan.Rows[intIndex]["
Yuan_Laborage"
intOldPJ=intOld/intRowCount;
intLaboragePJ=intLaborage/intRowCount;
intOldPJ=Math.Round(intOldPJ,3,MidpointRounding.AwayFromZero);
intLaboragePJ=Math.Round(intLaboragePJ,3,MidpointRounding.AwayFromZero);
lblRen.Text=intRowCount.ToString();
lblRMB.Text=intLaboragePJ.ToString();
lblOld.Text=intOldPJ.ToString();
ds_Yuan.Dispose();
//统计各学历所占的人数
XueLixueli=newXueLi();
DataSetds_XueLi=xueli.GetDataSet("
DataTableT_XueLi=ds_XueLi.Tables["
T_XueLi"
intintXueLiCount=T_XueLi.Rows.Count;
lblXueLi.Text="
intXueLiCount;
XueLi_ID="
+T_XueLi.Rows[intIndex]["
XueLi_ID"
].ToString();
+T
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 数据库 课程设计 论文 人事管理系统