📄 dmain.cpp
字号:
CString sName,stime;
CTime ttime;
brst.Open("员工离职离休视图");
sName="员工离职离休表";
ttime=ttime.GetCurrentTime();
stime=CTimeToCString(ttime);
m_ps.MainCaption=sName;
m_ps.DeckCaptionNumber=2;
ttime=ttime.GetCurrentTime();
stime=CTimeToCString(ttime);
m_ps.DeckCaptionFontSize=180;
m_ps.MainCaptionFontSize=400;
m_ps.DeckCaptions[0]="日期:"+stime;
m_ps.DeckCaptions[1]="操作员:"+OP;
CDBaseQuery dlg;
CCSperationInfo nextdlg;
dlg.Show("员工离职离休基本信息","员工离职离休视图",&nextdlg,m_ps);
dlg.DoModal();
}
void CDMain::OnJqglBtn() //员工假期管理函数
{
// TODO: Add your control notification handler code here
RxRecordset brst;
CString sName,stime;
CTime ttime;
brst.Open("员工假期视图");
sName="员工假期信息表";
ttime=ttime.GetCurrentTime();
stime=CTimeToCString(ttime);
m_ps.MainCaption=sName;
m_ps.DeckCaptionNumber=2;
ttime=ttime.GetCurrentTime();
stime=CTimeToCString(ttime);
m_ps.DeckCaptionFontSize=180;
m_ps.MainCaptionFontSize=400;
m_ps.DeckCaptions[0]="日期:"+stime;
m_ps.DeckCaptions[1]="操作员:"+OP;
CDBaseQuery dlg;
CDHoliday nextdlg;
dlg.Show("假期信息查询","员工假期视图",&nextdlg,m_ps);
dlg.DoModal();
}
void CDMain::OnXtbfBtn() //数据备份
{
// TODO: Add your control notification handler code here
CBAK dlg;
dlg.m_sCaption="数据备份";
dlg.DoModal();
}
void CDMain::OnKqglBtn() //员工考勤管理函数080925XLW
{
// TODO: Add your control notification handler code here
RxRecordset brst;
CString sName,stime;
CTime ttime;
brst.Open("员工考勤视图");
sName="员工考勤查询";
ttime=ttime.GetCurrentTime();
stime=CTimeToCString(ttime);
m_ps.MainCaption=sName;
m_ps.DeckCaptionNumber=2;
ttime=ttime.GetCurrentTime();
stime=CTimeToCString(ttime);
m_ps.DeckCaptionFontSize=180;
m_ps.MainCaptionFontSize=400;
m_ps.DeckCaptions[0]="日期:"+stime;
m_ps.DeckCaptions[1]="操作员:"+OP;
CDBaseQuery dlg;
CCAttendInfo nextdlg;
dlg.Show("员工考勤查询","员工考勤视图",&nextdlg,m_ps);
dlg.DoModal();
}
void CDMain::OnDdglBtn() //员工调动管理函数080925XLW
{
// TODO: Add your control notification handler code here
RxRecordset brst;
CString sName,stime;
CTime ttime;
brst.Open("员工调动视图");
sName="员工调动表";
ttime=ttime.GetCurrentTime();
stime=CTimeToCString(ttime);
m_ps.MainCaption=sName;
m_ps.DeckCaptionNumber=2;
ttime=ttime.GetCurrentTime();
stime=CTimeToCString(ttime);
m_ps.DeckCaptionFontSize=180;
m_ps.MainCaptionFontSize=400;
m_ps.DeckCaptions[0]="日期:"+stime;
m_ps.DeckCaptions[1]="操作员:"+OP;
CDBaseQuery dlg;
CMobilizeInfo nextdlg;
dlg.Show("员工调动基本信息","员工调动视图",&nextdlg,m_ps);
//CMobilizeInfo dlg;
dlg.DoModal();
}
void CDMain::OnBmglBtn() //部门信息管理函数
{
// TODO: Add your control notification handler code here
RxRecordset brst;
CString sName,stime;
CTime ttime;
brst.Open("部门视图");
sName="部门信息表";
ttime=ttime.GetCurrentTime();
stime=CTimeToCString(ttime);
m_ps.MainCaption=sName;
m_ps.DeckCaptionNumber=2;
ttime=ttime.GetCurrentTime();
stime=CTimeToCString(ttime);
m_ps.DeckCaptionFontSize=180;
m_ps.MainCaptionFontSize=400;
m_ps.DeckCaptions[0]="日期:"+stime;
m_ps.DeckCaptions[1]="操作员:"+OP;
CDBaseQuery dlg;
CDep nextdlg;
dlg.Show("部门信息查询","部门视图",&nextdlg,m_ps);
dlg.DoModal();
}
void CDMain::OnCcglBtn() //员工出差函数
{
// TODO: Add your control notification handler code here
RxRecordset brst;
CString sName,stime;
CTime ttime;
brst.Open("员工出差视图");
sName="员工出差信息表";
ttime=ttime.GetCurrentTime();
stime=CTimeToCString(ttime);
m_ps.MainCaption=sName;
m_ps.DeckCaptionNumber=2;
ttime=ttime.GetCurrentTime();
stime=CTimeToCString(ttime);
m_ps.DeckCaptionFontSize=180;
m_ps.MainCaptionFontSize=400;
m_ps.DeckCaptions[0]="日期:"+stime;
m_ps.DeckCaptions[1]="操作员:"+OP;
CDBaseQuery dlg;
CDEvect nextdlg;
dlg.Show("员工出差信息查询","员工出差视图",&nextdlg,m_ps);
dlg.DoModal();
}
void CDMain::OnYhglBtn() //用户管理函数
{
// TODO: Add your control notification handler code here
CYHSZ dlg;
dlg.DoModal();
}
void CDMain::OnYgpxBtn() //员工培训函数080925XLW
{
// TODO: Add your control notification handler code here
RxRecordset brst;
CString sName,stime;
CTime ttime;
brst.Open("员工培训视图");
sName="员工培训表";
ttime=ttime.GetCurrentTime();
stime=CTimeToCString(ttime);
m_ps.MainCaption=sName;
m_ps.DeckCaptionNumber=2;
ttime=ttime.GetCurrentTime();
stime=CTimeToCString(ttime);
m_ps.DeckCaptionFontSize=180;
m_ps.MainCaptionFontSize=400;
m_ps.DeckCaptions[0]="日期:"+stime;
m_ps.DeckCaptions[1]="操作员:"+OP;
CDBaseQuery dlg;
CCTraingInfo nextdlg;
dlg.Show("员工培训基本信息","员工培训视图",&nextdlg,m_ps);
dlg.DoModal();
}
void CDMain::OnYgjcBtn() //员工奖惩函数080925XLW
{
// TODO: Add your control notification handler code here
RxRecordset brst;
CString sName,stime;
CTime ttime;
brst.Open("员工奖惩视图");
sName="员工奖惩表";
ttime=ttime.GetCurrentTime();
stime=CTimeToCString(ttime);
m_ps.MainCaption=sName;
m_ps.DeckCaptionNumber=2;
ttime=ttime.GetCurrentTime();
stime=CTimeToCString(ttime);
m_ps.DeckCaptionFontSize=180;
m_ps.MainCaptionFontSize=400;
m_ps.DeckCaptions[0]="日期:"+stime;
m_ps.DeckCaptions[1]="操作员:"+OP;
CDBaseQuery dlg;
CCIncentiveInfo nextdlg;
dlg.Show("员工奖惩基本信息","员工奖惩视图",&nextdlg,m_ps);
dlg.DoModal();
}
void CDMain::OnHtglBtn() //合同管理函数
{
// TODO: Add your control notification handler code here
RxRecordset brst;
CString sName,stime;
CTime ttime;
brst.Open("合同视图");
sName="合同信息表";
ttime=ttime.GetCurrentTime();
stime=CTimeToCString(ttime);
m_ps.MainCaption=sName;
m_ps.DeckCaptionNumber=2;
ttime=ttime.GetCurrentTime();
stime=CTimeToCString(ttime);
m_ps.DeckCaptionFontSize=180;
m_ps.MainCaptionFontSize=400;
m_ps.DeckCaptions[0]="日期:"+stime;
m_ps.DeckCaptions[1]="操作员:"+OP;
CDBaseQuery dlg;
CDCont nextdlg;
dlg.Show("合同信息查询","合同视图",&nextdlg,m_ps);
dlg.DoModal();
}
void CDMain::OnXthyBtn() //数据恢复函数
{
// TODO: Add your control notification handler code here
CBAK dlg;
dlg.m_sCaption="数据恢复";
dlg.DoModal();
}
void CDMain::OnQxglBtn() //权限管理函数
{
// TODO: Add your control notification handler code here
RxRecordset brst;
CString sName,stime;
CTime ttime;
brst.Open("用户查询视图");
sName="用户信息表";
ttime=ttime.GetCurrentTime();
stime=CTimeToCString(ttime);
m_ps.MainCaption=sName;
m_ps.DeckCaptionNumber=2;
ttime=ttime.GetCurrentTime();
stime=CTimeToCString(ttime);
m_ps.DeckCaptionFontSize=180;
m_ps.MainCaptionFontSize=400;
m_ps.DeckCaptions[0]="日期:"+stime;
m_ps.DeckCaptions[1]="操作员:"+OP;
CDBaseQuery dlg;
CDOp nextdlg;
dlg.Show("用户信息查询","用户查询视图",&nextdlg,m_ps);
dlg.DoModal();
}
void CDMain::Close()//系统关闭
{
CRsglxtApp * app=(CRsglxtApp *)AfxGetApp();
try{
app->m_pMainWnd->DestroyWindow();
}
catch(...)
{
}
this->OnCancel();
}
void CDMain::OnWageBtn()
{
// TODO: Add your control notification handler code here
RxRecordset brst;
CString sName,stime;
CTime ttime;
brst.Open("工资视图");
sName="工资信息表";
ttime=ttime.GetCurrentTime();
stime=CTimeToCString(ttime);
m_ps.MainCaption=sName;
m_ps.DeckCaptionNumber=2;
ttime=ttime.GetCurrentTime();
stime=CTimeToCString(ttime);
m_ps.DeckCaptionFontSize=180;
m_ps.MainCaptionFontSize=400;
m_ps.DeckCaptions[0]="日期:"+stime;
m_ps.DeckCaptions[1]="操作员:"+OP;
CDBaseQuery dlg;
CWage nextdlg;
dlg.Show("工资信息查询","工资视图",&nextdlg,m_ps);
dlg.DoModal();
}
void CDMain::OnGzszBtn()
{
// TODO: Add your control notification handler code here
m_Rsda_btn.ShowWindow(SW_HIDE);
m_Kqgl_btn.ShowWindow(SW_HIDE);
m_Ygpx_btn.ShowWindow(SW_HIDE);
m_Zckh_btn.ShowWindow(SW_HIDE);
m_Ddgl_btn.ShowWindow(SW_HIDE);
m_Ygjc_btn.ShowWindow(SW_HIDE);
m_Lzlx_btn.ShowWindow(SW_HIDE);
m_Bmgl_btn.ShowWindow(SW_HIDE);
m_Htgl_btn.ShowWindow(SW_HIDE);
m_Jqgl_btn.ShowWindow(SW_HIDE);
m_Ccgl_btn.ShowWindow(SW_HIDE);
m_Xtbf_btn.ShowWindow(SW_HIDE);
m_Xthy_btn.ShowWindow(SW_HIDE);
m_Wage_btn.ShowWindow(SW_SHOW);
m_Gzhz_btn.ShowWindow(SW_SHOW);
m_Yhgl_btn.ShowWindow(SW_HIDE);
m_Qxgl_btn.ShowWindow(SW_HIDE);
m_Rsgl_btn.EnableWindow(true);
m_Xtsz_btn.EnableWindow(true);
m_Yhsz_btn.EnableWindow(true);
m_Zhgl_btn.EnableWindow(true);
m_Exit_btn.EnableWindow(true);
}
void CDMain::OnGzhzBtn()
{
// TODO: Add your control notification handler code here
CDWagecollect dlg;
CString s="超级管理员";
if(Lever!=s)//进行权限匹配
{
MessageBox("你无权进行操作,请与系统管理员联系!","系统提示",MB_OK|MB_ICONSTOP);
return;
}
else
dlg.DoModal();
}
void CDMain::OnClose()
{
// TODO: Add your message handler code here and/or call default
if(AfxMessageBox("您确定要退出系统吗?",MB_OKCANCEL)==IDCANCEL)
{
return;
}
CDialog::OnClose();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -