F_PAM_0504.cs 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. /*******************************************************************************
  2. * Copyright(c) 2014 DongkeSoft All rights reserved. / Confidential
  3. * 类的信息:
  4. * 1.程序名称:F_PAM_0504.cs
  5. * 2.功能描述:行政考核审核
  6. * 编辑履历:
  7. * 作者 日期 版本 修改内容
  8. * 张国印 2014/09/25 1.00 新建
  9. *******************************************************************************/
  10. using System;
  11. using Dongke.IBOSS.PRD.Basics.BaseControls;
  12. using Dongke.IBOSS.PRD.Basics.BaseResources;
  13. using Dongke.IBOSS.PRD.Client.CommonModule;
  14. using Dongke.IBOSS.PRD.Client.Controls;
  15. using Dongke.IBOSS.PRD.WCF.DataModels;
  16. using Dongke.IBOSS.PRD.WCF.Proxys;
  17. namespace Dongke.IBOSS.PRD.Client.HRModule
  18. {
  19. /// <summary>
  20. /// 行政奖惩新建/编辑
  21. /// </summary>
  22. public partial class F_PAM_0504 : DKFormBase
  23. {
  24. #region 成员变量
  25. private string ids = null;
  26. #endregion
  27. #region 构造函数
  28. /// <summary>
  29. /// 构造函数
  30. /// </summary>
  31. /// <param name="editStatus"></param>
  32. /// <param name="pRapID"></param>
  33. public F_PAM_0504(string ids)
  34. {
  35. InitializeComponent();
  36. this.ids = ids;
  37. }
  38. #endregion
  39. #region 属性
  40. #endregion
  41. #region 事件
  42. /// <summary>
  43. /// 保存按钮
  44. /// </summary>
  45. /// <param name="sender"></param>
  46. /// <param name="e"></param>
  47. private void btnSave_Click(object sender, EventArgs e)
  48. {
  49. try
  50. {
  51. Constant.AuditStatus AuditStatus = Constant.AuditStatus.Agree;
  52. if (rbt2.Checked)
  53. {
  54. AuditStatus = Constant.AuditStatus.Disagree;
  55. }
  56. ServiceResultEntity sre = DoAsync<ServiceResultEntity>(() =>
  57. {
  58. return PAMModuleProxy.Service.AuditAdminEXA(ids, AuditStatus);
  59. }
  60. );
  61. if (sre.Status == Constant.ServiceResultStatus.Success)
  62. {
  63. DKMessageBox.ShowDialog(this, DKMessageCode.I_CMN_S_002);
  64. }
  65. //else
  66. //{
  67. // DKMessageBox.ShowDialog(this, DKMessageCode.W_CMN_S_004, "数据已被修改");
  68. //}
  69. this.Close();
  70. }
  71. catch (Exception ex)
  72. {
  73. // 对异常进行共通处理
  74. ExceptionManager.HandleEventException(this.ToString(),
  75. System.Reflection.MethodBase.GetCurrentMethod().Name, this.Text, ex);
  76. }
  77. }
  78. #endregion
  79. private void btnCancel_Click(object sender, EventArgs e)
  80. {
  81. this.Close();
  82. }
  83. #region 私有方法
  84. #endregion
  85. }
  86. }