freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

畢業(yè)論文-企業(yè)日常工作排班系統(tǒng)(編輯修改稿)

2025-02-12 20:08 本頁(yè)面
 

【文章內(nèi)容簡(jiǎn)介】 是否輸入 if(()) { AfxMessageBox(請(qǐng)輸入用戶名! )。 ()。 return。 } if(()) { AfxMessageBox(請(qǐng)輸入密碼! )。 ()。 return。 } //從用戶表中檢查卡號(hào)密碼是否正確 (select * from password where ID=39。%s39。 AND passwd=39。%s39。,m_strUser,m_strPass)。 if(!(AFX_DB_USE_DEFAULT_TYPE,strSQL)) { MessageBox(打開(kāi)數(shù)據(jù)庫(kù)失敗 !,數(shù)據(jù)庫(kù)錯(cuò)誤 ,MB_OK)。 return 。 } if(()==0) { //密碼錯(cuò)誤處理 ()。 MessageBox(密碼錯(cuò)誤,請(qǐng)重新輸入! )。 m_strPass=。 ()。 UpdateData(FALSE)。 } else { //分配用戶權(quán)限 ptheAppm_bIsAdmin = 。 ()。 CDialog::OnOK()。 } } 2) 添加 職工卡 號(hào) (圖 53) void CUserDlg::OnOK() { UpdateData()。 if(()) {//增加新用戶的輸入檢查 if(m_strUser==) { MessageBox(請(qǐng)?zhí)顚?xiě)用戶名 ! )。 ()。 return。 } } else {//修改用戶信息的輸入檢查 if(m_strUser==) { MessageBox(請(qǐng)選擇一個(gè)用戶! )。 return。 } } //限制密碼不能為空 if(m_strPass==) { MessageBox(密碼不能為空,請(qǐng)輸入密碼! )。 ()。 return。 } //驗(yàn)證密碼與確認(rèn)密碼是否 一致 if(m_strPass!=m_strRePass) { MessageBox(兩次輸入地密碼不一致,請(qǐng)重新輸入密碼! )。 ()。 m_strPass = 。 m_strRePass = 。 UpdateData(FALSE)。 return。 } if(m_ctrID==) { MessageBox(卡號(hào)不能為空,請(qǐng)輸入卡號(hào)! )。 ()。 return。 } //打開(kāi)記錄集 CString strSQL。 (select * from password where user=39。%s39。AND ID=39。%s39。,m_strUser,m_ctrID)。 if(!(AFX_DB_USE_DEFAULT_TYPE,strSQL)) { MessageBox(打開(kāi)數(shù)據(jù)庫(kù)失敗 !,數(shù)據(jù)庫(kù)錯(cuò)誤 ,MB_OK)。 return 。 } if(()) {//增加新用戶 //判斷用戶是否已經(jīng)存在 if(()!=0) { ()。 MessageBox(該用戶已經(jīng)存在! )。 return。 } ()。 = m_strUser。 = m_strPass。 = m_ctrID。 = m_bIsAdmin。 ()。 MessageBox(用戶添加成功!請(qǐng)記住用戶名和密碼! )。 ()。 CShiftSet m_set。 ()。 ()。 = atol(m_ctrID)。 = m_strUser。 ()。 ()。 } else {//修改用戶信息 //判斷用戶是否不存在 if(()==0) { ()。 MessageBox(該用戶不存在!請(qǐng)更新數(shù)據(jù)庫(kù) )。 return。 } ()。 = m_strUser。 = m_strPass。 = m_ctrID。 = m_bIsAdmin。 ()。 MessageBox(用戶修改成功!請(qǐng)記住用戶名和密碼! )。 ()。 } (FALSE)。 //更新用戶列表 RefreshData()。 } 3) 刪除 職工卡 號(hào) (圖 54) void CUserDlg::OnButtonDelete() { UpdateData(TRUE)。 //判斷是否指定用戶 if(m_ctrID==) { MessageBox(請(qǐng)選擇一個(gè)用戶! )。 return。 } CString strSQL。 (select * from password where id=39。%s39。,m_ctrID)。 if(!(AFX_DB_USE_DEFAULT_TYPE,strSQL)) { MessageBox(打開(kāi)數(shù)據(jù)庫(kù)失敗 !,數(shù)據(jù)庫(kù)錯(cuò)誤 ,MB_OK)。 return 。 } //刪除該用戶 ()。 ()。 (select * from shift where id=%d,atol(m_ctrID))。 if(!(AFX_DB_USE_DEFAULT_TYPE,strSQL)) { MessageBox(打開(kāi)數(shù)據(jù)庫(kù)失敗 !,數(shù)據(jù)庫(kù)錯(cuò)誤 ,MB_OK)。 return 。 } //刪除該用戶 ()。 ()。 m_strUser = 。 m_strPass = 。 m_strRePass = 。 m_ctrID =。 m_bIsAdmin = FALSE。 UpdateData(FALSE)。 //刪除排班 //刷新用戶列表 RefreshData()。 } 4) 基礎(chǔ)數(shù)據(jù)管理 (圖 55) void CDoctorQue::OnRadioLevel() { if(1 == thisGetRadioState()) return 。 ResetData()。 thisSetRadioState(1)。 (_T())。 //(0)。 (1)。 (FALSE)。 (TRUE)。 (FALSE)。 ()。 } void CDoctorQue::OnComLevelChange() { ()。 CString strSql。 ((),m_strLevel)。 (Lselect * from doctor where DLevel = 39。%s39。,m_strLevel)。 (CRecordset::forwardOnly,strSql)。 for(int i=0。i()。i++) { InsertItem(m_doctorSet)。 ()。 } ()。 } 5) 排班管理實(shí)現(xiàn) void CShiftDlg::OnOK() { // TODO: Add extra validation here if(MessageBox(確定排班嗎 ?,提示 ,MB_OKCANCEL) == IDOK) { int row = 0。 while(row ()) { CString strSQL。 long lID = atol((row,0))。 (select * from shift where id = %d,lID)。 if(!(AFX_DB_USE_DEFAULT_TYPE,strSQL)) { MessageBox(打開(kāi)數(shù)據(jù)庫(kù)失敗 !,數(shù)據(jù)庫(kù)錯(cuò)誤 ,MB_OK)。 return 。 } ()。 = (row,2)。 ()。 ()。 row++。 } } } 6) 考勤管理實(shí)現(xiàn) BOOL CAttDlg::OnInitDialog() { CDialog::OnInitDialog()。 // TODO: Add extra initialization here (amp。m_Page1)。 // 加載出勤記錄頁(yè) (amp。m_Page2)。 // 加載加班記錄頁(yè) (amp。m_Page3)。 // 加載請(qǐng)假記錄頁(yè) (amp。m_Page4)。 // 加載出差記錄頁(yè) (this, WS_CHILD | WS_VISIBLE, 0)。 (0, WS_EX_CONTROLPARENT)。 ( 0, WS_TABSTOP )。 // 設(shè)置屬性頁(yè)位置 ( NULL, 0, 100, 0, 0, SWP_NOZORDER | SWP_NOSIZE | SWP_NOACTIVATE )。 return TRUE。 // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE } 7) 數(shù)據(jù)庫(kù)管理實(shí)現(xiàn) void CMainFrame::OnDatabaseBackup() //備份 { // TODO: Add your mand handler code here if(AfxMessageBox(您確 定要備份數(shù)據(jù) 嗎 ?,MB_OKCANCEL)==IDCANCEL) { return。 } if(CopyFile(.\\,.\\backup\\,FALSE)) AfxMessageBox(數(shù)據(jù)庫(kù)備份成功! )。 else AfxMessageBox(數(shù)據(jù)庫(kù)備份失??! )。 } void CMainFrame::OnDatabaseRecover() //還原 { // TODO: Add your mand handler code here if(AfxMessageBox(還原數(shù)據(jù)庫(kù)將覆蓋原來(lái)的數(shù)據(jù)庫(kù)。您確定要還原嗎 ?,MB_OKCANCEL)==IDCANCEL) { return。 } if(CopyFile(.\\backup\\,.\\,FALSE)) AfxMessageBox(數(shù)據(jù)庫(kù)還原成功! )。 else AfxMessageBox(數(shù)據(jù)庫(kù)還原失??! )。 } 普通職工 模塊 1) 查詢 個(gè)人信息 (圖 58) void CBrowseDlg::OnSelchangeComboCondition() { // TODO: Add your control notification handler code here UpdateData()。 CString strSQL。 //清空 ComboBox查詢內(nèi)容 ////////////////////// int nCount=()。 for(int i=0。inCount。i++) { (0)。 } /////////////////////////////////////////// //按照選擇的查詢條件,添加查詢內(nèi)容 /////////////////////////////////// if(0==m_nCondition) {//按部門(mén)查詢 CDeptSet recordset 。 strSQL=select * from dept。 if(!(AFX_DB_USE_DEFAULT_TYPE,strSQL)) { MessageBox(打開(kāi)數(shù)據(jù)庫(kù)失敗 !,數(shù)據(jù)庫(kù)錯(cuò)誤 ,MB_OK)。 return 。 } while(!()) { ()。 ()。 } ()。 } else if(1==m_nCondition) {//按職工職務(wù)查詢 CDutySet recordset 。 strSQL=select * from duty。 if(!(AFX_DB_USE_DEFAULT_TYPE,strSQL)) { MessageBox(打開(kāi)數(shù)據(jù)庫(kù)失敗 !,數(shù)據(jù)庫(kù)錯(cuò)誤 ,MB_OK)。 return 。 } while(!()) { ()。 ()。 } ()。 } else if(2==m_nCondition) {//按職工職稱查詢 CTechnicalSet
點(diǎn)擊復(fù)制文檔內(nèi)容
法律信息相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1