




免费预览已结束,剩余24页可下载查看
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
() access2007vc+abstract in the corporations today, employees job of check on work attendance not only workload isvery large, but also time is very strong. along with development of database technology andprogress of corporation informations building, using computer to manage check on workattendance of corporations which it is necessary. it saves a mass of manpower and materialresources and greatly lightens workload of employees.attendance management system is a business-to-appraisal of the implementation ofinformation management, which aims is designed to achieve staff attendance data collection,information query and statistical process automation, improve personnel managementmodernization, and the convenience of staff to report to work, facilitate management statistics,the examination staff attendance.key words: attendance, access2007, database,vc+() 0 . 11. . 11.1. . 11.2. . 12. . 22.1. . 22.2. . 33. . 33.1. . 33.2. . 33.2.1. . 33.2.2. . 43.2.3. . 54. . 64.1. access2007 . 64.2. . 74.3. . 84.4. . 95. . 155.1. . 155.2. ado . 166. . 17 . 18 . 18()1. 01. 1.1. 41.2. 1 vc+6.0windowsvc+6.0vc1vc+6.0access 20072 ()2. 2 access2007 access excel 3access accessaccess access 3. 3.1. 1 2 3 4 vc+6.0pcodbc()4. vc+6.04.1. 1 2 3 4 5. 5.1. 5.2. 5.2.1. 1 ()6. personinfodepartmentattendanceabsentdutydeptpersonpay2 ,.3 entityrelationshipapproachererer46.1.1. 3.13.23.1 ()56.2. 3.2.3 erpersoninfo3.1 3.1 personid personname personsex dept job deptnodepartment3.2 3.2 deptno dept job pay attendance3.3 3.3 personid personname atdays dutydays abdays atmonth absent3.4 3.4 personid personname abdays abreason abmonth abremarks abpay duty3.5 ()6 3.5 personid personname dutydays dumonth dutypay personpay3.6 3.6 personid personname dutyno basepay dutypay abpay sumpay pmonth 7. 7.1. access2007accessaccess1 access2007attendance4.1 4.1 ()7 2 4.2 7.2. 7.3. stdafx.h#import c:program filescommon filessystemadomsado15.dll no_namespacerename(eof,adoeof)cattendanceappinitinstanceafxoleinit();hresult hr;m_pconnection.createinstance(_uuidof(connection);trym_pconnection-connectionstring=provider=microsoft.jet.oledb.4.0;datasource=attendance.mdb;m_pconnection-connectiontimeout=10;hr=m_pconnection-open(,admodeunknown);if(hr!=s_ok) ()8 afxmessagebox();catch(_com_error e)cstring errormessage;errormessage.format(!rn:%d,e.errormessage();afxmessagebox(errormessage);/extern cattendanceapp theapp; ,7.4. :_recordsetptr m_precper;m_precper.createinstance(_uuidof(recordset); /trym_precper-open(select*frompersoninfo,_variant_t(idispatch*)theapp.m_pconnection,true),adopendynamic,adlockoptimistic,adcmdtext);catch(_com_error e)cstring str;str.format(rn%s,e.errormessage);afxmessagebox(str);sqlm_precper-addnew();m_precper-putcollect(personid,(_variant_t)(dlg.m_strno);m_precper-putcollect(personname,(_variant_t)(dlg.m_strname);m_precper-putcollect(personsex,(_variant_t)(strsex); ()9 m_precper-putcollect(dept,(_variant_t)(dlg.m_strdept);m_precper-putcollect(job,(_variant_t)(dlg.m_strjob);m_precper-update();m_precper-close();m_precper-putcollect(personid,(_variant_t)(dlg.m_strno);m_precper-putcollect(personname,(_variant_t)(dlg.m_strname);m_precper-putcollect(personsex,(_variant_t)(strsex);m_precper-putcollect(dept,(_variant_t)(dlg.m_strdept);m_precper-putcollect(job,(_variant_t)(dlg.m_strjob);m_precper-update();m_precper-close();m_precper-delete(adaffectcurrent);m_precper-update();m_precper-close();7.5. 1 login4.1 4.1login id username =12 userpassword =16 cstring strname;strname.format(select userpassword from login where username=%s,m_strname);bstr bstrsql=strname.allocsysstring();try ()10 m_precordset-open(bstrsql,_variant_t(idispatch*)theapp.m_pconnection,true),adopenstatic,adlockoptimistic,adcmdtext);catch(_com_error e)cstring stropen;stropen.format(rn%d,e.errormessage);afxmessagebox(stropen);if(!m_precordset-adoeof)if(m_strpass=(_bstr_t)m_precordset-getcollect(userpassword)cdialog:onok();elseafxmessagebox();elseafxmessagebox();4.3 ()11 7.6. cstring str;str.format(select * from login where username=%s,m_strname);bstr bstrsql=str.allocsysstring();trym_precordset-open(bstrsql,_variant_t(idispatch*)theapp.m_pconnection,true),adopendynamic,adlockoptimistic,adcmdtext);catch(_com_error e)afxmessagebox(e.errormessage();if(m_p
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025-2030中国产品生命周期管理行业市场发展趋势与前景展望战略研究报告
- 2025-2030中国USB耳机行业市场发展趋势与前景展望战略研究报告
- 2025-2030中国龟苓膏行业市场深度调研及发展趋势与投资前景预测研究报告
- 2025-2030中国速冻油炸小食市场消费前景及供需渠道战略规划研究报告
- 2025-2030中国蝉花多糖行市场供需状况及发展战略研究研究报告
- 2025-2030中国脐血库服务行业市场发展趋势与前景展望战略研究报告
- 2025-2030中国索道缆车市场经营模式与发展规模分析研究报告
- 2025-2030中国租赁行业市场深度调研及竞争格局与投资策略研究报告
- 2025-2030中国白砂砖行业发展趋势与前景展望战略研究报告
- 2025-2030中国生物反应器软件行业风险评估及发展战略研究研究报告
- 唐山高科总部大厦幕墙工程幕墙招标技术评估总结
- 苏教版三年级下册数学 第三单元 解决问题的策略 测试卷
- 生产作业流程图
- 10kV线路拆除
- 高中学生选课指导手册
- 为老年人更换纸尿裤评分标准
- 教务管理系统UML模型PPT课件
- 吸收塔及烟囱施工方案
- 山东省医院目录
- 高中数学答题卡模板word版(共2页)
- 小型构件预制场建设方案
评论
0/150
提交评论