Ejemplo n.º 1
0
 private void btnLog_Click(object sender, EventArgs e)
 {
     GlobalVal.FormShow = this;
     FormLogManage frm = new FormLogManage();
     frm.Show();
 }
Ejemplo n.º 2
0
 private void btn_Click(object sender, EventArgs e)
 {
     string btnName=string.Empty;
     btnName = ((Button)sender).Name;
     switch (btnName)
     {
         case "btnLogManage"://日志管理
             GlobalVal.FormShow.Hide();
             GlobalVal.SplashObj = SplashObject.GetLoading();
             //GlobalVal.FormLogManage.ShowDialog();//为了每次打开都是最新数据
             FormLogManage fromlogManage = new FormLogManage();
             fromlogManage.ShowDialog();
             break;
         case "btnSearch"://查询
         case "btnPrint"://打印
         case "btnInfoEdite"://体检信息维护
             GlobalVal.FormShow.Hide();
             GlobalVal.SplashObj = SplashObject.GetLoading();
             GlobalVal.FormSearch.ShowDialog();
             break;
         //case "btnInfoEdite"://体检信息维护
         //    GlobalVal.SplashObj = SplashObject.GetLoading();
         //    GlobalVal.FormInfoEdite.ShowDialog();
         //    break;
         case "btnEmployee"://教职工管理
             GlobalVal.FormShow.Hide();
             GlobalVal.SplashObj = SplashObject.GetLoading();
             GlobalVal.FormEmpManage.ShowDialog();
             //EmployeeManage employeeManage = new EmployeeManage();
             //employeeManage.ShowDialog();
             break;
         case "btnUserManage"://用户管理
             GlobalVal.FormShow.Hide();
             GlobalVal.SplashObj = SplashObject.GetLoading();
             //GlobalVal.FormUserManage.ShowDialog();
             FormUserManage userManage = new FormUserManage();
             userManage.ShowDialog();
             break;
         case "btnDepartmentManage"://部门管理
             GlobalVal.FormShow.Hide();
             GlobalVal.SplashObj = SplashObject.GetLoading();
             //GlobalVal.FormDepartmentManage.ShowDialog();
             FormDepartmentManage DepManage = new FormDepartmentManage();
             DepManage.ShowDialog();
             break;
         case "btnProject"://项目检查状况
             GlobalVal.FormShow.Hide();
             GlobalVal.SplashObj = SplashObject.GetLoading();
             //EmployeeCheckNum CheckProject = new EmployeeCheckNum();
             //CheckProject.ShowDialog();
             GlobalVal.FormCheckNum.ShowDialog();
             break;
         case "btnStatistics"://信息统计
             GlobalVal.FormShow.Hide();
             GlobalVal.SplashObj = SplashObject.GetLoading();
             //GlobalVal.FormConfig.ShowDialog();
             FormStatistics statistics = new FormStatistics();
             statistics.ShowDialog();
             break;
         case "btnConfig"://参数设置
             GlobalVal.FormShow.Hide();
             GlobalVal.SplashObj = SplashObject.GetLoading();
             //GlobalVal.FormConfig.ShowDialog();
             FormConfig config = new FormConfig();
             config.ShowDialog();
             break;
         case "btnSystem"://系统设置
             GlobalVal.FormShow.Hide();
             GlobalVal.SplashObj = SplashObject.GetLoading();
             //GlobalVal.FormConfig.ShowDialog();
             FormSystem formSystem = new FormSystem();
             formSystem.ShowDialog();
             break;
         case "btnHelp"://帮助
             GlobalVal.FormShow.Hide();
             GlobalVal.SplashObj = SplashObject.GetLoading();
             //GlobalVal.FormConfig.ShowDialog();
             FormHelp formHelp = new FormHelp();
             formHelp.ShowDialog();
             break;
     }
 }