📄 mainframe.cs
字号:
{
if(this.CheckIsExistMDIForm("popedom"))
{
return;
}
str="权限管理";
UserOperatorHistory(str);
popedom log=new popedom();
log.MdiParent=this;
log.Show();
}
//修改密码...
private void menuModifyPassword_Click(object sender, System.EventArgs e)
{
if(this.CheckIsExistMDIForm("ModifyPasswordFrame"))
{
return;
}
str="修改密码";
UserOperatorHistory(str);
ModifyPasswordFrame log=new ModifyPasswordFrame();
log.MdiParent=this;
log.Show();
}
//系统备份...
private void menuBack_Click(object sender, System.EventArgs e)
{
if(this.CheckIsExistMDIForm("backFrame"))
{
return;
}
str="系统备份";
UserOperatorHistory(str);
backFrame log=new backFrame();
log.MdiParent=this;
log.Show();
}
//系统还原...
private void menuRestore_Click(object sender, System.EventArgs e)
{
if(this.CheckIsExistMDIForm("RestroreFrame"))
{
return;
}
str="系统还原";
UserOperatorHistory(str);
RestroreFrame log=new RestroreFrame();
log.MdiParent=this;
log.Show();
}
//系统基本设置...
private void menuBasicDesign_Click(object sender, System.EventArgs e)
{
if(this.CheckIsExistMDIForm("SystemBasicDesignFrame"))
{
return;
}
str="系统基本设置";
UserOperatorHistory(str);
SystemBasicDesignFrame log=new SystemBasicDesignFrame();
log.MdiParent=this;
log.Show();
}
//离开挂起....
private void menuLeave_Click(object sender, System.EventArgs e)
{
str="离开挂起";
UserOperatorHistory(str);
this.PopedomTimer.Enabled=false;
landFrame log=new landFrame();
navigationFrame login=new navigationFrame();
log.btnCancel.Visible=false;
log.btnZhuChe.Visible=false;
loginRead();
log.TitleLabel.Text="切换用户";
log.ShowDialog();
login.Close();
this.ModifyPopedomTimer.Enabled=true;
}
//水平排列...
private void menulevel_Click(object sender, System.EventArgs e)
{
str="水平排列";
UserOperatorHistory(str);
LayoutMdi(MdiLayout.TileHorizontal);
}
//垂直排列...
private void menuApeak_Click(object sender, System.EventArgs e)
{
str="垂直排列";
UserOperatorHistory(str);
LayoutMdi(MdiLayout.TileVertical);
}
//层叠排列...
private void menuLayer_Click(object sender, System.EventArgs e)
{
str="层叠排列";
UserOperatorHistory(str);
LayoutMdi(MdiLayout.Cascade);
}
//正常排列...
private void menuHormal_Click(object sender, System.EventArgs e)
{
LayoutMdi(MdiLayout.ArrangeIcons);
}
//工具栏
private void menuTool_Click(object sender, System.EventArgs e)
{
str="工具栏";
UserOperatorHistory(str);
this.menuTool.Checked=!this.menuTool.Checked;
this.tool.Visible=!this.tool.Visible;
}
//状态栏
private void menuStatus_Click(object sender, System.EventArgs e)
{
str="状态栏";
UserOperatorHistory(str);
this.menuStatus.Checked=!this.menuStatus.Checked;
this.statusPanel.Visible=!this.statusPanel.Visible;
}
//版权...
private void menuCopyright_Click(object sender, System.EventArgs e)
{
if(this.CheckIsExistMDIForm("copyrightFrame"))
{
return;
}
str="版权";
UserOperatorHistory(str);
copyrightFrame log=new copyrightFrame();
log.MdiParent=this;
log.Show();
}
//软件注册...
private void menuSoftWareEnrol_Click(object sender, System.EventArgs e)
{
if(this.CheckIsExistMDIForm("SoftWareLoginFrame"))
{
return;
}
str="软件注册";
UserOperatorHistory(str);
SoftWareLoginFrame log=new SoftWareLoginFrame();
log.MdiParent=this;
log.Show();
}
//软件使用...
private void menuSoftUsed_Click(object sender, System.EventArgs e)
{
if(this.CheckIsExistMDIForm("SoftUserFrame"))
{
return;
}
str="软件使用";
UserOperatorHistory(str);
SoftUserFrame log=new SoftUserFrame();
log.MdiParent=this;
log.Show();
}
//关于版本...
private void menuAbout_Click(object sender, System.EventArgs e)
{
if(this.CheckIsExistMDIForm("AboutFrame"))
{
return;
}
str="关于版本";
UserOperatorHistory(str);
AboutFrame log=new AboutFrame();
log.MdiParent=this;
log.Show();
}
//导航栏...
private void menuNavigation_Click(object sender, System.EventArgs e)
{
if(this.CheckIsExistMDIForm("navigationFrame"))
{
return;
}
str="导航栏";
UserOperatorHistory(str);
navigationFrame log=new navigationFrame();
log.MdiParent=this;
log.Left=0;
log.Top=0;
this.menuNavigation.Checked=false;
log.startLoadQuanXian.Enabled=true;
log.Show();
// this.menuNavigation.Checked=true;
}
// 退出系统...
private void menuExit_Click(object sender, System.EventArgs e)
{
str="退出系统";
UserOperatorHistory(str);
DialogResult dialog=MessageBox.Show(this,"是否退出系统呢???","提示信息",MessageBoxButtons.YesNo,MessageBoxIcon.Information);
if(dialog.Equals(DialogResult.Yes))
{
Application.Exit();
}
else
{
return;
}
}
//请假查询...
private void menuQingJia_Click(object sender, System.EventArgs e)
{
str="请假查询";
UserOperatorHistory(str);
if(this.CheckIsExistMDIForm("LeaveSearchFrame"))
{
return;
}
LeaveSearchFrame login=new LeaveSearchFrame();
login.MdiParent=this;
login.Show();
}
//迟到查询...
private void menuLateSearch_Click(object sender, System.EventArgs e)
{
str="迟到查询";
UserOperatorHistory(str);
if(this.CheckIsExistMDIForm("LateFrame"))
{
return;
}
LateFrame login=new LateFrame();
login.MdiParent=this;
login.Show();
}
//早退查询...
private void menuZhaoTui_Click(object sender, System.EventArgs e)
{
str="早退查询";
UserOperatorHistory(str);
// if(this.CheckIsExistMDIForm("ZhaoTuiSearchFrame"))
// {
// return;
// }
// ZhaoTuiSearchFrame login=new ZhaoTuiSearchFrame();
// login.MdiParent=this;
// login.Show();
}
//未到查询...
private void menuWeiDao_Click(object sender, System.EventArgs e)
{
str="未到查询";
UserOperatorHistory(str);
if(this.CheckIsExistMDIForm("WeiShuaSearchFrame"))
{
return;
}
WeiShuaSearchFrame login=new WeiShuaSearchFrame();
login.MdiParent=this;
login.Show();
}
//窗体被关闭时事件....
private void mainFrame_Closed(object sender, System.EventArgs e)
{
str="窗体被关闭时事件";
UserOperatorHistory(str);
DialogResult result=MessageBox.Show(this,"是否真的要退出系统吗???","提示信息",MessageBoxButtons.YesNo,MessageBoxIcon.Information);
if(result.Equals(DialogResult.Yes))
{
Application.Exit();
}
else
{
try
{
// this.Dispose();
mainFrame log=new mainFrame();
log.ShowDialog();
//Application.Run(new mainFrame());
}
catch(Exception exe)
{
MessageBox.Show(exe.ToString());
}
return;
}
}
//发卡操作....
private void menuFaKaZhaoZuo_Click(object sender, System.EventArgs e)
{
str="发卡操作";
UserOperatorHistory(str);
if(this.CheckIsExistMDIForm("FaKaFrame"))
{
return;
}
FaKaFrame log=new FaKaFrame();
log.MdiParent=this;
log.textBuHao.Enabled=false;
log.textBuName.Enabled=false;
log.empIDBu.Enabled=false;
log.buCheckBox.Enabled=false;
log.FaCheckBox.Enabled=false;
log.Show();
}
//补卡操作...
private void menuBuKaCaoZuo_Click(object sender, System.EventArgs e)
{
str="补卡操作";
UserOperatorHistory(str);
if(this.CheckIsExistMDIForm("FaKaFrame"))
{
return;
}
FaKaFrame log=new FaKaFrame();
log.MdiParent=this;
log.textFaHao.Enabled=false;
log.textFaName.Enabled=false;
log.empIDFa.Enabled=false;
log.Show();
}
//历史卡录...
private void menuHistoryKa_Click(object sender, System.EventArgs e)
{
str="历史卡录";
UserOperatorHistory(str);
if(this.CheckIsExistMDIForm("KaHaoHistoryFrame"))
{
return;
}
KaHaoHistoryFrame log=new KaHaoHistoryFrame();
log.MdiParent=this;
log.Show();
}
//员工信息管理
private void menuEmp_Manager_Click(object sender, System.EventArgs e)
{
str="员工信息管理";
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -