F_PM_3502.cs 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. /*******************************************************************************
  2. * Copyright(c) 2015 DongkeSoft All rights reserved. / Confidential
  3. * 类的信息:
  4. * 1.程序名称:F_RPT_010201_1.cs
  5. * 2.功能描述:发货单编辑
  6. * 编辑履历:
  7. * 作者 日期 版本 修改内容
  8. * 冯林勇 2023/1/11 1.00 新建
  9. *******************************************************************************/
  10. using Dongke.IBOSS.PRD.Client.CommonModule;
  11. using Dongke.IBOSS.PRD.Client.Controls;
  12. using System;
  13. using System.Windows.Forms;
  14. namespace Dongke.IBOSS.PRD.Client.PMModule
  15. {
  16. public partial class F_PM_3502 : DKDockPanelBase
  17. {
  18. #region 成员变量
  19. // 窗体的单例模式
  20. private static F_PM_3502 _instance;
  21. #endregion
  22. #region 构造函数
  23. public F_PM_3502()
  24. {
  25. InitializeComponent();
  26. }
  27. #endregion
  28. #region 单例模式
  29. /// <summary>
  30. /// 单例模式,防止重复创建窗体
  31. /// </summary>
  32. public static F_PM_3502 Instance
  33. {
  34. get
  35. {
  36. if (_instance == null || _instance.IsDisposed)
  37. {
  38. _instance = new F_PM_3502();
  39. }
  40. return _instance;
  41. }
  42. }
  43. #endregion
  44. #region 事件处理
  45. /// <summary>
  46. /// 窗体加载事件
  47. /// </summary>
  48. /// <param name="sender"></param>
  49. /// <param name="e"></param>
  50. private void F_PM_3502_Load(object sender, EventArgs e)
  51. {
  52. try
  53. {
  54. }
  55. catch (Exception ex)
  56. {
  57. // 对异常进行共通处理
  58. ExceptionManager.HandleEventException(this.ToString(),
  59. System.Reflection.MethodBase.GetCurrentMethod().Name, this.Text, ex);
  60. }
  61. }
  62. /// <summary>
  63. /// 窗体关闭事件
  64. /// </summary>
  65. /// <param name="sender"></param>
  66. /// <param name="e"></param>
  67. private void F_PM_3502_FormClosed(object sender, FormClosedEventArgs e)
  68. {
  69. _instance = null;
  70. }
  71. /// <summary>
  72. /// 保存
  73. /// </summary>
  74. /// <param name="sender"></param>
  75. /// <param name="e"></param>
  76. private void btnSave_Click(object sender, EventArgs e)
  77. {
  78. try
  79. {
  80. }
  81. catch (Exception ex)
  82. {
  83. this.btnSave.Enabled = true;
  84. // 对异常进行共通处理
  85. ExceptionManager.HandleEventException(this.ToString(),
  86. System.Reflection.MethodBase.GetCurrentMethod().Name, this.Text, ex);
  87. }
  88. }
  89. #endregion
  90. }
  91. }