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

正文內(nèi)容

37、辦公室日常管理信息系統(tǒng)(編輯修改稿)

2024-10-11 09:53 本頁面
 

【文章內(nèi)容簡介】 (select * from password where user=39。%s39。,m_strUser)。 if(!(AFX_DB_USE_DEFAULT_TYPE,strSQL)) { MessageBox(打開數(shù)據(jù)庫失敗 !,數(shù)據(jù)庫錯誤 ,MB_OK)。 return 。 } if(()) {//增加新用戶 //判斷用戶是否已經(jīng)存在 if(()!=0) { ()。 MessageBox(該用戶已經(jīng)存 在! )。 return。 } ()。 = m_strUser。 = m_strPass。 = m_bIsAdmin。 ()。 MessageBox(用戶添加成功!請記住用戶名和密碼! )。 ()。 } else {//修改用戶信息 //判斷用戶是否不存在 if(()==0) { ()。 MessageBox(該用戶不存在!請更新數(shù)據(jù)庫 )。 return。 } ()。 = m_strUser。 = m_strPass。 = m_bIsAdmin。 ()。 MessageBox(用戶修改成功!請記住用戶名和密碼! )。 ()。 } (FALSE)。 //更新用戶列表 RefreshData()。 } void CUserDlg::OnButtonCancel() { // TODO: Add your control notification handler code here m_strUser = 。 m_strPass = 。 m_strRePass = 。 m_bIsAdmin = FALSE。 (FALSE)。 UpdateData(FALSE)。 } 主窗體 1. 主體框架:使用 MFC AppWizard 創(chuàng)建一個單文檔結(jié)構(gòu)的應(yīng)用程序工程,建立起系統(tǒng)主體框架,生成應(yīng)用程序類( CmanagerApp) ,文檔類( CmanagerDoc) ,視圖類( CmanagerView)和主框架類( CmainFram) . 2. 菜單和工具欄:根據(jù)系統(tǒng)的 總體設(shè)計中功能模塊的劃分,使用資源編輯器創(chuàng)建系統(tǒng)菜單和工具欄。 3. 背景圖:通過修改系統(tǒng)的視圖類 Paintg 事件處理函數(shù) OnPaint()來實現(xiàn)加載背景圖,其具體代碼如下: void CManagerView::OnPaint() { CPaintDC* pDC=new CPaintDC(this)。 // device context for painting CBitmap bmp。 RECT Rect。 RECT RectView。 POINT ptSize。 CDC dcmem。 BITMAP bm。 int b = (IDB_BITMAP_BG)。 //將位圖取出; (pDC)。 //創(chuàng)建兼容設(shè)備上下文。 (amp。bmp)。 //用設(shè)備上下文選擇位圖; (pDCGetMapMode())。 //設(shè)置映射方式; GetObject(, sizeof(BITMAP), (LPSTR)amp。bm)。 //映射位圖; GetClientRect(amp。Rect)。 =。 =。 pDCDPtoLP((LPPOINT)amp。ptSize,1)。//設(shè)備單元 to 邏輯單元 。 GetClientRect(amp。RectView)。 CRect RectBmp = RectView。 if(( ) ) //位圖寬度容納不下; { = + ( ) / 2。 = 。 } else { = 。 = 。 } if(( ) ) { = + ( ) / 2。 = 。 } else { = 。 = 。 } pDCStretchBlt(, , ,\ , amp。dcmem, 0, 0, , ,\ SRCCOPY)。 ()。 } 職工基本信息模塊及界面設(shè)計 可以添加員工基本信息,員工編號,員工姓名,學(xué)歷,專業(yè)??等等。 代碼設(shè)如下: CDeptSet DeptSet 。 //部門 strSQL=select * from dept。 if(!(AFX_DB_USE_DEFAULT_TYPE,strSQL)) { MessageBox(打開數(shù)據(jù)庫失敗 !,數(shù)據(jù)庫錯誤 ,MB_OK)。 } while(!()) { ()。 ()。 } ()。 //職工職務(wù) CDutySet DutySet 。 strSQL=select * from duty。 if(!(AFX_DB_USE_DEFAULT_TYPE,strSQL)) { MessageBox(打開數(shù)據(jù)庫失敗 !,數(shù)據(jù)庫錯誤 ,MB_OK)。 } while(!()) { ()。 ()。 } ()。 //職工職稱 CTechnicalSet TechnicalSet 。 strSQL=select * from technical。 if(!(AFX_DB_USE_DEFAULT_TYPE,strSQL)) { MessageBox(打開數(shù)據(jù)庫失敗 !,數(shù)據(jù)庫錯誤 ,MB_OK)。 } while(!()) { ()。 ()。 } ()。 //職工類型 CWorkerStatusSet WorkerStatusSet 。 strSQL=select * from status。 if(!(AFX_DB_USE_DEFAULT_TYPE,strSQL)) { MessageBox(打開數(shù)據(jù)庫失敗 !,數(shù)據(jù)庫錯誤 ,MB_OK)。 } while(!()) { ()。 ()。 } ()。 //工資類別 CAboutPaySet AboutPaySet 。 strSQL=select * from aboutpay。 if(!(AFX_DB_USE_DEFAULT_TYPE,strSQL)) { MessageBox(打開數(shù)據(jù)庫失敗 !,數(shù)據(jù)庫錯誤 ,MB_OK)。 } while(!()) { ()。 ()。 } ()。 //職工民族 CFolkSet FolkSet 。 strSQL=select * from folk。 if(!(AFX_DB_USE_DEFAULT_TYPE,strSQL)) { MessageBox(打開數(shù)據(jù)庫失敗 !,數(shù)據(jù)庫錯誤 ,MB_OK)。 } while(!()) { ()。 ()。 } ()。 //政治面貌 CPoliticalSet PoliticalSet 。 strSQL=select * from political。 if(!(AFX_DB_USE_DEFAULT_TYPE,strSQL)) { MessageBox(打開數(shù)據(jù)庫失敗 !,數(shù)據(jù)庫錯誤 ,MB_OK)。 } while(!()) { ()。 ()。 } ()。 //文化程度 CEducationSet EducationSet 。 strSQL=select * from education。 if(!(AFX_DB_USE_DEFAULT_TYPE,strSQL)) { MessageBox(打開數(shù)據(jù)庫失敗 !,數(shù)據(jù)庫錯誤 ,MB_OK)。 } while(!()) { ()。 ()。 } ()。 return TRUE。 // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE } void CBaseInfoDlg::RefreshData() { CString strSQL。 (select * from person where ID=39。%s39。,m_strID)。 if(!m_pPersonSetOpen(AFX_DB_USE_DEFAULT_TYPE,strSQL)) { MessageBox(打開數(shù)據(jù)庫失敗 !,數(shù)據(jù)庫錯誤 ,MB_OK)。 return。 } BOOL CBaseInfoDlg::Save() { UpdateData()。 if(m_strID==) { MessageBox(員工號不 能為空,請輸入員工號 )。 return FALSE。 } if(m_strName==) { MessageBox(姓名不能為空,請輸入姓名 )。 return FALSE。 } CString strSQL。 (select * from person where ID=39。%s39。,m_strID)。 if(!m_pPersonSetOpen(AFX_DB_USE_DEFAULT_TYPE,strSQL)) { MessageBox(打開數(shù)據(jù)庫失敗 !,數(shù)據(jù)庫錯誤 ,MB_OK)。 return FALSE。 } if(m_pPersonSetGetRecordCount()!=0) { MessageBox(該員工已經(jīng)存在! )。 m_pPersonSetClose()。 return FALSE。 } BOOL CBaseInfoDlg::Modify() { UpdateData()。 if(m_strID==) { MessageBox(員工號不能為空,請輸入員工號 )。 return FALSE。 } if(m_strName==) { MessageBox(姓名不能為空,請輸入姓名 )。 return FALSE。 } CString strSQL。 (select * from person where ID=39。%s39。,m_strID)。 if(!m_pPersonSetOpen(AFX_DB_USE_DEFAULT_TYPE,strSQL)) { MessageBox(打開數(shù)據(jù)庫失敗 !,數(shù)據(jù)庫 錯誤 ,MB_OK)。 return FALSE。 } if(m_pPersonSetGetRecordCount()==0) { MessageBox(該員工不存在! )。 m_pPersonSetClose()。 return FALSE。 } m_pPersonSetEdit ()。 ?????????????????????????????????????????? 考勤信息的窗體的設(shè)計 考勤管理模塊主要劃分成五個子模塊:出記錄管理,加班記錄管理 ,出差記錄管理,請假記錄管理和考統(tǒng)計。其中各個考記錄子模塊主要提供考的月度統(tǒng)計功能。這五個模塊分別是通過定義五個類來實現(xiàn)的。 代碼設(shè)計如下: Void CAttStatDlg::OnChangeStatEdtSeekpersonid() { UpdateData()。 CPersonSet rs。 = ID=39。 + m_strPersonID
點擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1