| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110 |
- /*******************************************************************************
- * Copyright(c) 2014 DongkeSoft All rights reserved. / Confidential
- * 类的信息:
- * 1.程序名称:F_HR_0103.cs
- * 2.功能描述:选择员工状态页面
- * 编辑履历:
- * 作者 日期 版本 修改内容
- * 王鑫 2014/09/09 1.00 新建
- *******************************************************************************/
- using System;
- using System.Data;
- using System.Windows.Forms;
- using Dongke.IBOSS.PRD.Basics.BaseResources;
- using Dongke.IBOSS.PRD.Client.DataModels;
- using Dongke.IBOSS.PRD.Basics.BaseControls;
- namespace Dongke.IBOSS.PRD.Client.HRModule
- {
- public partial class F_HR_0103 : FormBase
- {
- #region 成员变量
- //员工状态
- private int? _staffStatus;
- #endregion
- #region 属性
- /// <summary>
- /// 当前员工实体
- /// </summary>
- public int? StaffStatus
- {
- get { return _staffStatus; }
- set { _staffStatus = value; }
- }
- #endregion
- #region 构造函数
- public F_HR_0103()
- {
- InitializeComponent();
- SetFromTitleInfo();
- }
- #endregion
- #region 事件处理
- /// <summary>
- /// 确定按钮
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void btnOK_Click(object sender, EventArgs e)
- {
- try
- {
- if(this.chkStaffStatus0.Checked)
- {
- this.StaffStatus = 0;
- }
- else if(this.chkStaffStatus1.Checked)
- {
- this.StaffStatus = 1;
- }
- else if(this.chkStaffStatus2.Checked)
- {
- this.StaffStatus = 2;
- }
- this.DialogResult = System.Windows.Forms.DialogResult.OK;
- }
- catch (Exception ex)
- {
- throw ex;
- }
- }
- /// <summary>
- /// 关闭按钮
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void btnClose_Click(object sender, EventArgs e)
- {
- this.Close();
- }
- #endregion
- #region 私有方法
- /// <summary>
- /// 设置窗体按钮的文本信息
- /// </summary>
- private void SetFromTitleInfo()
- {
- this.Text = FormTitles.F_HR_0103;
- this.btnOK.Text = ButtonText.BTN_OK;
- this.btnClose.Text = ButtonText.BTN_CANCEL;
- }
- #endregion
- }
- }
|