DataSetServiceContentSmallForm.cs 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. using LYFZ.ComponentLibrary;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel;
  5. using System.Data;
  6. using System.Drawing;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Windows.Forms;
  10. namespace LYFZ.Software.UI.MembershipManage.SetSmallForm
  11. {
  12. public partial class DataSetServiceContentSmallForm : LYFZ.ComponentLibrary.BaseContentsFormMain
  13. {
  14. public DataSetServiceContentSmallForm()
  15. {
  16. InitializeComponent();
  17. this.panelEx1.BackColor = UIBlueThemeResources.AreaBackgroundColor;
  18. this.panelEx1.BorderColor = UIBlueThemeResources.BorderAreaColor;
  19. this.panelEx1.BorderStyle = BorderStyle.FixedSingle;
  20. this.Shown += MemberServicesCardContentSetSuperSmallForm_Shown;
  21. this.btnSave.Click += btnSave_Click;
  22. this.btnClear.Click += btnClear_Click;
  23. this.btnDelete.Click += btnDelete_Click;
  24. this.dgvData.CellMouseDoubleClick += dgvData_CellMouseDoubleClick;
  25. this.txtCostPrice.KeyPress += txtCostPrice_KeyPress;
  26. this.txtSalePrice.KeyPress += txtSalePrice_KeyPress;
  27. }
  28. /// <summary>
  29. /// 窗体加载事件
  30. /// </summary>
  31. /// <param name="sender"></param>
  32. /// <param name="e"></param>
  33. protected virtual void MemberServicesCardContentSetSuperSmallForm_Shown(object sender, EventArgs e)
  34. {
  35. //throw new NotImplementedException();
  36. }
  37. /// <summary>
  38. /// 保存
  39. /// </summary>
  40. /// <param name="sender"></param>
  41. /// <param name="e"></param>
  42. protected virtual void btnSave_Click(object sender, EventArgs e)
  43. {
  44. //throw new NotImplementedException();
  45. }
  46. /// <summary>
  47. /// 清空
  48. /// </summary>
  49. /// <param name="sender"></param>
  50. /// <param name="e"></param>
  51. protected virtual void btnClear_Click(object sender, EventArgs e)
  52. {
  53. //throw new NotImplementedException();
  54. }
  55. /// <summary>
  56. /// 删除
  57. /// </summary>
  58. /// <param name="sender"></param>
  59. /// <param name="e"></param>
  60. protected virtual void btnDelete_Click(object sender, EventArgs e)
  61. {
  62. //throw new NotImplementedException();
  63. }
  64. /// <summary>
  65. /// 列表双击事件
  66. /// </summary>
  67. /// <param name="sender"></param>
  68. /// <param name="e"></param>
  69. protected virtual void dgvData_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
  70. {
  71. //throw new NotImplementedException();
  72. }
  73. /// <summary>
  74. /// 成本价格限制输入
  75. /// </summary>
  76. /// <param name="sender"></param>
  77. /// <param name="e"></param>
  78. protected virtual void txtCostPrice_KeyPress(object sender, KeyPressEventArgs e)
  79. {
  80. //throw new NotImplementedException();
  81. }
  82. /// <summary>
  83. /// 销售价格限制输入
  84. /// </summary>
  85. /// <param name="sender"></param>
  86. /// <param name="e"></param>
  87. protected virtual void txtSalePrice_KeyPress(object sender, KeyPressEventArgs e)
  88. {
  89. //throw new NotImplementedException();
  90. }
  91. }
  92. }