F_PP_0121.cs 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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.Collections.Generic;
  12. using System.Data;
  13. using System.Reflection;
  14. using System.Windows.Forms;
  15. using Dongke.IBOSS.PRD.Basics.BaseResources;
  16. using Dongke.IBOSS.PRD.Client.CommonModule;
  17. using Dongke.IBOSS.PRD.Client.Controls;
  18. using Dongke.IBOSS.PRD.Client.DataModels;
  19. using Dongke.IBOSS.PRD.WCF.DataModels;
  20. using Dongke.IBOSS.PRD.WCF.Proxys;
  21. namespace Dongke.IBOSS.PRD.Client.PPModule
  22. {
  23. /// <summary>
  24. /// 年计划窗体
  25. /// </summary>
  26. public partial class F_PP_0121 : DKDockPanelBase
  27. {
  28. #region 单例模式 防止窗体被重复创建
  29. private static F_PP_0121 _instance = null;
  30. public static F_PP_0121 Instance
  31. {
  32. get
  33. {
  34. if (_instance == null)
  35. {
  36. _instance = new F_PP_0121();
  37. }
  38. return _instance;
  39. }
  40. }
  41. private void F_PP_0121_FormClosed(object sender, FormClosedEventArgs e)
  42. {
  43. _instance = null;
  44. }
  45. #endregion
  46. #region 构造函数
  47. /// <summary>
  48. /// 年计划窗体
  49. /// </summary>
  50. public F_PP_0121()
  51. {
  52. InitializeComponent();
  53. //this.Text = "年计划";
  54. this.tsbtnAdaptive.Text = ButtonText.TSBTN_ADAPTIVE;
  55. this.tsbtnClose.Text = ButtonText.TSBTN_CLOSE;
  56. this.dgvPlan.AutoGenerateColumns = false;
  57. }
  58. #endregion
  59. /// <summary>
  60. /// 画面加载
  61. /// </summary>
  62. /// <param name="sender"></param>
  63. /// <param name="e"></param>
  64. private void F_PP_0121_Load(object sender, System.EventArgs e)
  65. {
  66. try
  67. {
  68. // 加载权限
  69. FormPermissionManager.FormPermissionControl(this.Name, this,
  70. LogInUserInfo.CurrentUser.CurrentUserEntity.UserRightData,
  71. LogInUserInfo.CurrentUser.CurrentUserEntity.FunctionData);
  72. }
  73. catch (Exception ex)
  74. {
  75. // 对异常进行共通处理
  76. ExceptionManager.HandleEventException(this.ToString(),
  77. MethodBase.GetCurrentMethod().Name, this.Text, ex);
  78. }
  79. }
  80. /// <summary>
  81. /// 自适应列宽
  82. /// </summary>
  83. /// <param name="sender"></param>
  84. /// <param name="e"></param>
  85. private void tsbtnAdaptive_Click(object sender, EventArgs e)
  86. {
  87. this.dgvPlan.AutoResizeColumns();
  88. }
  89. /// <summary>
  90. /// 关闭画面
  91. /// </summary>
  92. /// <param name="sender"></param>
  93. /// <param name="e"></param>
  94. private void tsbtnClose_Click(object sender, EventArgs e)
  95. {
  96. this.Close();
  97. }
  98. /// <summary>
  99. /// 获取数据
  100. /// </summary>
  101. private void TsbtnSearch_Click(object sender, EventArgs e)
  102. {
  103. }
  104. /// <summary>
  105. /// 清空条件
  106. /// </summary>
  107. private void TsbtnClearCondition_Click(object sender, EventArgs e)
  108. {
  109. }
  110. private void BtnSearch_Click(object sender, EventArgs e)
  111. {
  112. }
  113. }
  114. }