F_PP_0121.cs 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. /*******************************************************************************
  2. * Copyright(c) 2019 DongkeSoft All rights reserved. / Confidential
  3. * 类的信息:
  4. * 1.程序名称:F_PP_0121.cs
  5. * 2.功能描述:年计划分析
  6. * 编辑履历:
  7. * 作者 日期 版本 修改内容
  8. * 徐伟 2019/08/27 1.00 新建
  9. *******************************************************************************/
  10. using System;
  11. using System.Reflection;
  12. using System.Windows.Forms;
  13. using Dongke.IBOSS.PRD.Basics.BaseResources;
  14. using Dongke.IBOSS.PRD.Client.CommonModule;
  15. using Dongke.IBOSS.PRD.Client.Controls;
  16. using Dongke.IBOSS.PRD.Client.DataModels;
  17. namespace Dongke.IBOSS.PRD.Client.PPModule
  18. {
  19. /// <summary>
  20. /// 年计划窗体
  21. /// </summary>
  22. public partial class F_PP_0121 : DKDockPanelBase
  23. {
  24. #region 单例模式 防止窗体被重复创建
  25. private static F_PP_0121 _instance = null;
  26. public static F_PP_0121 Instance
  27. {
  28. get
  29. {
  30. if (_instance == null)
  31. {
  32. _instance = new F_PP_0121();
  33. }
  34. return _instance;
  35. }
  36. }
  37. private void F_PP_0121_FormClosed(object sender, FormClosedEventArgs e)
  38. {
  39. _instance = null;
  40. }
  41. #endregion
  42. #region 构造函数
  43. /// <summary>
  44. /// 年计划窗体
  45. /// </summary>
  46. public F_PP_0121()
  47. {
  48. InitializeComponent();
  49. //this.Text = "年计划";
  50. this.tsbtnAdaptive.Text = ButtonText.TSBTN_ADAPTIVE;
  51. this.tsbtnClose.Text = ButtonText.TSBTN_CLOSE;
  52. this.dgvPlan.AutoGenerateColumns = false;
  53. }
  54. #endregion
  55. /// <summary>
  56. /// 画面加载
  57. /// </summary>
  58. /// <param name="sender"></param>
  59. /// <param name="e"></param>
  60. private void F_PP_0121_Load(object sender, System.EventArgs e)
  61. {
  62. try
  63. {
  64. // 加载权限
  65. FormPermissionManager.FormPermissionControl(this.Name, this,
  66. LogInUserInfo.CurrentUser.CurrentUserEntity.UserRightData,
  67. LogInUserInfo.CurrentUser.CurrentUserEntity.FunctionData);
  68. }
  69. catch (Exception ex)
  70. {
  71. // 对异常进行共通处理
  72. ExceptionManager.HandleEventException(this.ToString(),
  73. MethodBase.GetCurrentMethod().Name, this.Text, ex);
  74. }
  75. }
  76. /// <summary>
  77. /// 自适应列宽
  78. /// </summary>
  79. /// <param name="sender"></param>
  80. /// <param name="e"></param>
  81. private void tsbtnAdaptive_Click(object sender, EventArgs e)
  82. {
  83. this.dgvPlan.AutoResizeColumns();
  84. }
  85. /// <summary>
  86. /// 关闭画面
  87. /// </summary>
  88. /// <param name="sender"></param>
  89. /// <param name="e"></param>
  90. private void tsbtnClose_Click(object sender, EventArgs e)
  91. {
  92. this.Close();
  93. }
  94. /// <summary>
  95. /// 获取数据
  96. /// </summary>
  97. private void TsbtnSearch_Click(object sender, EventArgs e)
  98. {
  99. }
  100. /// <summary>
  101. /// 清空条件
  102. /// </summary>
  103. private void TsbtnClearCondition_Click(object sender, EventArgs e)
  104. {
  105. }
  106. private void BtnSearch_Click(object sender, EventArgs e)
  107. {
  108. }
  109. }
  110. }