




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)
文檔簡介
1、() 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
2、 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 collect
3、ion,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.
4、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 v
5、c+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.
6、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. access2007accessacce
7、ss1 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.je
8、t.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. :_recor
9、dsetptr 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
10、_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_p
11、recper-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-u
12、pdate();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_preco
13、rdset-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()
14、;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. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 舊屋面防水施工方案
- 毛坯粉墻涂料施工方案
- YD B 050-2010 VRLA蓄電池組在線診斷技術(shù)要求和測試方法
- 2025年度美容院顧客資源與合同權(quán)益轉(zhuǎn)讓書
- 腳手架班組承包協(xié)議(2025年度)包含環(huán)保責(zé)任條款
- 二零二五年度轉(zhuǎn)租協(xié)議甲乙丙三方房屋租賃合同
- 二零二五年度主播與網(wǎng)絡(luò)文學(xué)出版社解除合同
- 2025年度男女分手后共同子女保險權(quán)益處理協(xié)議
- 二零二五年度返利協(xié)議書:健康體檢機(jī)構(gòu)返利合作協(xié)議
- 二零二五年度校園借車免責(zé)協(xié)議實施細(xì)則
- 順豐快遞員工入職合同范本
- 山東省德州市禹城市2023-2024學(xué)年度下學(xué)期期末考試八年級物理試題(無答案)
- 35kV輸電線路工程施工安全保障措施
- 新媒體營銷:營銷方式推廣技巧案例實訓(xùn)( 第2版)全套教學(xué)課件
- 2024年宜昌伍家新城投資控股集團(tuán)有限公司招聘筆試沖刺題(帶答案解析)
- 人教版小學(xué)英語單詞表(完整版)
- NY 1420-2007 溫室工程質(zhì)量驗收通則
- 2024陜西省人民檢察院書記員招聘筆試參考題庫含答案解析
- 2024年江蘇農(nóng)牧科技職業(yè)學(xué)院單招職業(yè)適應(yīng)性測試題庫及答案1套
- 水平四 足球大單元教案打印版
- 2024年江蘇農(nóng)林職業(yè)技術(shù)學(xué)院單招職業(yè)適應(yīng)性測試題庫新版
評論
0/150
提交評論