//************czlt-2010-8-24*end********* #endregion #region 【构造函数】 public FrmArrendanceAdd(int type,FrmAttendanceManger frmAttendance) { InitializeComponent(); //加载班制信息到下拉列表框 infoClassBll.InfoClass_BindComboBox(cmbClass); m_type = type; m_FrmAttendance = frmAttendance; switch (type) { case 1://添加 this.Text = "新增班次"; //班制下拉列表框默认选择第一个 cmbClass.SelectedIndex = 0; cmbBeginTime.SelectedIndex = 0; cmbData.SelectedIndex = 0; cmbEndTime.SelectedIndex = 0; break; case 2://修改 this.Text = "修改班次"; txtClassName.Enabled = false; break; default://查看 this.Text = "查看班次"; btnClose.Visible = false; btnReset.Visible = false; btnSave.Visible = false; break; } }
//************czlt-2010-8-24*end********* #endregion #region 【构造函数】 public FrmArrendanceAdd(int type, FrmAttendanceManger frmAttendance) { InitializeComponent(); //加载班制信息到下拉列表框 infoClassBll.InfoClass_BindComboBox(cmbClass); m_type = type; m_FrmAttendance = frmAttendance; switch (type) { case 1: //添加 this.Text = "新增班次"; //班制下拉列表框默认选择第一个 cmbClass.SelectedIndex = 0; cmbBeginTime.SelectedIndex = 0; cmbData.SelectedIndex = 0; cmbEndTime.SelectedIndex = 0; break; case 2: //修改 this.Text = "修改班次"; txtClassName.Enabled = false; break; default: //查看 this.Text = "查看班次"; btnClose.Visible = false; btnReset.Visible = false; btnSave.Visible = false; break; } }
//考勤 private void tsmiAttendanceConfig_Click(object sender, EventArgs e) { if (Searcher.FindFormByName("FrmAttendanceManger")) { return; } //验证用户密码 if (!IsValidate()) { return; } ILogger.Write(EnumLogType.OperateLog, strLogPath + DateTime.Now.ToString("yyyy-MM-dd") + ".xml", LoginBLL.user, "打开考勤菜单"); AttendanceInfoSet.FrmAttendanceManger frmE = new AttendanceInfoSet.FrmAttendanceManger(); frmE.Show(dockPanel1, DockState.Document); }