F_HR_0103.cs 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. /*******************************************************************************
  2. * Copyright(c) 2014 DongkeSoft All rights reserved. / Confidential
  3. * 类的信息:
  4. * 1.程序名称:F_HR_0103.cs
  5. * 2.功能描述:选择员工状态页面
  6. * 编辑履历:
  7. * 作者 日期 版本 修改内容
  8. * 王鑫 2014/09/09 1.00 新建
  9. *******************************************************************************/
  10. using System;
  11. using System.Data;
  12. using System.Windows.Forms;
  13. using Dongke.IBOSS.PRD.Basics.BaseResources;
  14. using Dongke.IBOSS.PRD.Client.DataModels;
  15. using Dongke.IBOSS.PRD.Basics.BaseControls;
  16. namespace Dongke.IBOSS.PRD.Client.HRModule
  17. {
  18. public partial class F_HR_0103 : FormBase
  19. {
  20. #region 成员变量
  21. //员工状态
  22. private int? _staffStatus;
  23. #endregion
  24. #region 属性
  25. /// <summary>
  26. /// 当前员工实体
  27. /// </summary>
  28. public int? StaffStatus
  29. {
  30. get { return _staffStatus; }
  31. set { _staffStatus = value; }
  32. }
  33. #endregion
  34. #region 构造函数
  35. public F_HR_0103()
  36. {
  37. InitializeComponent();
  38. SetFromTitleInfo();
  39. }
  40. #endregion
  41. #region 事件处理
  42. /// <summary>
  43. /// 确定按钮
  44. /// </summary>
  45. /// <param name="sender"></param>
  46. /// <param name="e"></param>
  47. private void btnOK_Click(object sender, EventArgs e)
  48. {
  49. try
  50. {
  51. if(this.chkStaffStatus0.Checked)
  52. {
  53. this.StaffStatus = 0;
  54. }
  55. else if(this.chkStaffStatus1.Checked)
  56. {
  57. this.StaffStatus = 1;
  58. }
  59. else if(this.chkStaffStatus2.Checked)
  60. {
  61. this.StaffStatus = 2;
  62. }
  63. this.DialogResult = System.Windows.Forms.DialogResult.OK;
  64. }
  65. catch (Exception ex)
  66. {
  67. throw ex;
  68. }
  69. }
  70. /// <summary>
  71. /// 关闭按钮
  72. /// </summary>
  73. /// <param name="sender"></param>
  74. /// <param name="e"></param>
  75. private void btnClose_Click(object sender, EventArgs e)
  76. {
  77. this.Close();
  78. }
  79. #endregion
  80. #region 私有方法
  81. /// <summary>
  82. /// 设置窗体按钮的文本信息
  83. /// </summary>
  84. private void SetFromTitleInfo()
  85. {
  86. this.Text = FormTitles.F_HR_0103;
  87. this.btnOK.Text = ButtonText.BTN_OK;
  88. this.btnClose.Text = ButtonText.BTN_CANCEL;
  89. }
  90. #endregion
  91. }
  92. }