版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
VisualStudio2005和OfficeAccess2003的使用方法和软件设计设置,政治面貌设置,部门类别设置,工资类别设置,类别设置,职务类别设置这82叶伟平()完成了基本数据的管理(民族设置,职工类型设置,文化程度设(( 工具,用OfficeAccess2003作为数据库,完成一个人事管理使用VisualStudio2005和OfficeAccess2003 数据 概念结构E-R 建立 人事浏 人事查 结 系统结构:C/S数据库系统:OfficeAccess数据库连接方式:ODBC开发工具:VisualVisualStudioWindows平台应用程序开发环9.0VisualStudio2008。VisualStudio可以用来创建WindowsWindows应用程序和网络应用程序,也可以OfficeVisualStudio2005,专业开发人使用集成的可视化数据库设计和报告工具,创建SQLServer2005解决方案;使用VisualStudioSDK创建可以扩展VisualStudioIDE的工具;专业开发人员喜欢自由的使用.NETFramework2.0VisualStudio集成开a系统管理(设置用户和退出系统部门类别设置,工资类别设置,类别设置,职务类别设置。c人事管理(人事浏览,人事资料查询,人事资料统计1)2)数据项名称:用户简述:用户的,用来证验登陆的用户是否合法。长度1)数据结构名称:用户名和信息组成:用户名,,是否管理员2)数据结构名称:民族设置数据结构名称:类别设组成:类别编号,类别名称 组成:编号,员工号,成员,关系,出生日期,工作单位,担任职配记录则允许其登陆系统。用户帐号和可以在系统中添加和删除。E-RE-R民族3.1E-R浏览,查浏览,查3.12E-R说明:对于E-R1,一个用户可以设置多个民族的情况,一个民工的能被多个用户浏览。E-R图转换得到的关系模式如下:用户(用户名,,是否管理员)民族设置(民族编号,民族名称)工资类别设置(工资类别编号,工资类别名称类别设置(类别编号,类别名称)职工表(职工编号,职工名,出生日期,,民族,状况,,家庭,电子本设计用OfficeAccess2003作为数据库,在MSSQLServerAccess表表表表首先在stdafx.h文件中添加头文件afxdb.h, #include<afxdb.h>和数据库API头文件, #include<odbcinst.h>//ODBC数据库API头文件。然后在manager.cpp的BOOLCManagerApp::InitInstance()函数中添加如下代码"AccessDriver(*.mdb)",manager.cpp#includeskins\SkinPlusPlus.h"BOOLCManagerApp::InitInstance()函数中添加建立IDD_DIALOG_BROWSE框,之后为此框的部分控件建立关联变量。添加代码实现人事浏览功能voidCBrowseDlg::OnButtonSearch(){//TODO:Addyourcontrolnotificationhandlercodehere{}{}CStringstrSQL;strSQL.Format("select*from wheredept='%s'",m_strContent);}elsestrSQL.Format("select*from whereduty='%s'",m_strContent);}else{//按职工查strSQL.Format("select*from wheretechnical='%s'",m_strContent);}elsestrSQL.Format("select*from whereisworker='%s'",m_strContent);}elsestrSQL.Format("select*from whereaboutpay='%s'",m_strContent);}else{//按职工查strSQL.Format("select*from }else{//按状况查strSQL.Format("select* where}elsestrSQL.Format("select*from wherefolk='%s'",m_strContent);}elsestrSQL.Format("select*from wherepolitical='%s'",m_strContent);}elsestrSQL.Format("select*from whereeducation='%s'",m_strContent);}m_bNew=FALSE;}void{//TODO:Addyourcontrolnotificationhandlercodehere{}{}CStringstrSQL;strSQL.Format("select*from wheredept='%s'",m_strContent);}elsestrSQL.Format("select*from whereduty='%s'",m_strContent);}else{//按职工查strSQL.Format("select*from wheretechnical='%s'",m_strContent);}elsestrSQL.Format("select*from whereisworker='%s'",m_strContent);}elsestrSQL.Format("select*from whereaboutpay='%s'",m_strContent);}else{//按职工查strSQL.Format("select*from }else{//按状况查strSQL.Format("select*from whereismarry='%s'",m_strContent);}elsestrSQL.Format("select*from wherefolk='%s'",m_strContent);}elsestrSQL.Format("select*from wherepolitical='%s'",m_strContent);}elsestrSQL.Format("select*from whereeducation='%s'",m_strContent);}m_bNew=FALSE;} void{//TODO:AddyourcontrolnotificationhandlercodehereCStringCStringCString bNoCondition=strType="=strType="like//根据查询条件构造SQL语句///////////////////////////////////////////////strSQL="select*from where";{strTemp.Format("aboutpay%s'%s'",strType,m_strAboutPay);strSQL+="and";strSQL+=strTemp;bNoCondition=FALSE;}{strTemp.Format("dept%s'%s'",strType,m_strDept);strSQL+="and";strSQL+=strTemp;bNoCondition=FALSE;}{strTemp.Format("duty%s'%s'",strType,m_strDuty);strSQL+="and";strSQL+=strTemp;bNoCondition=FALSE;}{strTemp.Format("education%s'%s'",strType,m_strEducation);strSQL+="and";strSQL+=strTemp;bNoCondition=FALSE;}{strTemp.Format("folk%s'%s'",strType,m_strFolk);strSQL+="and";strSQL+=strTemp;bNoCondition=FALSE;}{strTemp.Format("isworker%s'%s'",strType,m_strIsWorker);strSQL+="and";strSQL+=strTemp;bNoCondition=FALSE;}{strTemp.Format("ismarry%s'%s'",strType,m_strMarry);strSQL+="and";strSQL+=strTemp;bNoCondition=FALSE;}{strTemp.Format("political%s'%s'",strType,m_strPolitical);strSQL+="and";strSQL+=strTemp;bNoCondition=FALSE;} { %s'%s'",strType,m_str strSQL+="and";strSQL+=strTemp;bNoCondition=FALSE;}{strTemp.Format("technical%s'%s'",strType,m_strTechnical);strSQL+="and";strSQL+=strTemp;bNoCondition=FALSE;}{strTemp.Format("age=%d",strType,m_nAge);strSQL+="and";strSQL+=strTemp;bNoCondition=FALSE;} {strTemp.Format("dept2%s'%s'",strType,m_strDept2);strSQL+="and";strSQL+=strTemp;bNoCondition=FALSE;}{strTemp.Format("dept3%s'%s'",strType,m_strDept3);strSQL+="and";strSQL+=strTemp;bNoCondition=FALSE;}{strTemp.Format("name%s'%s'",strType,m_strName);strSQL+="and";strSQL+=strTemp;bNoCondition=FALSE;}{strTemp.Format("native%s'%s'",strType,m_strNative);strSQL+="and";strSQL+=strTemp;bNoCondition=FALSE;}{strSQL="select* }if(!m_{return;}charbuffer[20]; inti=0;{}{ m_}}voidCStatDlg::OnClickList1(NMHDR*pNMHDR,LRESULT*{//TODO:AddyourcontrolnotificationhandlercodehereCStringstrSQL;CStringCDatabasedb;CRecordsetintnType=m_ctrList.GetSelectionMark();inti=0;{case0://按统计m_ctrResult.InsertColumn(0,"strSQL="selectcount(ID)asnum group {return;}{ }case1://按统计strSQL="selectcount(ID)asnum,agefrom groupbyage";{return;}{}case2://按民族统计strSQL="selectcount(ID)asnum,folkfrom groupbyfolk";{return;}{}case3://按籍贯统计strSQL="selectcount(ID)asnum,nativefrom groupbynative";{return;}{}case4://按职务类别统计strSQL="selectcount(ID)asnum,dutyfrom groupbyduty";{return;}{}case5://按类别统计strSQL="selectcount(ID)asnum,technicalfrom groupbytechnical";{}{}case6://按文化程度统计strSQL="selectcount(ID)asnum,educationfrom groupbyeducation";{return;}{}case7://按政治面貌统计strSQL="selectcount(ID)asnum,politicalfrom groupbypolitical";{return;}{}case8://按所在部门统计strSQL="selectcount(ID)asnum,deptfrom groupbydept";{return;}{}case9://按职工类型统计strSQL="selectcount(ID)asnum,isworkerfrom groupbyisworker";{return;}{}case10://按工资类型统计strSQL="selectcount(ID)asnum,aboutpayfrom groupbyaboutpay";{return;}{}case11://按状况统计strSQL="selectcount(ID)asnum,ismarry groupby{return;}{}}*pResult=}void{//TODO:Addyourcommandhandlercode{}}
void{//TODO:Addyourcommandhan
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 五金劳保采购制度
- 交通局政府采购内控制度
- 计量管理采购验收制度
- 器材采购制度
- 易制毒采购制度
- 供应商采购审计制度
- 政府计算机采购制度
- 日本政府采购救济制度
- 采购流程管理制度细则范本大全
- 代购采购日常管理制度
- 2024年浙江出版联团招聘真题
- GB/T 3917.3-2025纺织品织物撕破性能第3部分:梯形试样撕破强力的测定
- DB37-T 4401-2021 养老机构分级护理服务规范
- 2025-2030年中国土砂石开采行业市场竞争格局规划分析报告
- 人机配合安全
- 导数中的同构问题【八大题型】解析版-2025年新高考数学一轮复习
- ANCA相关性小血管炎肾损伤病因介绍
- 旅游行业兼职业务员聘用合同
- (合同范本)中介佣金协议书
- 2024年法律职业资格考试(试卷一)客观题试卷与参考答案
- 厂家冰柜投放协议书模板
评论
0/150
提交评论