SuperiorQuerySmallForm.cs 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. using System;
  2. using System.Collections;
  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.MainBusiness.MembershipManage.SetSmallForm
  11. {
  12. public partial class SuperiorQuerySmallForm : LYFZ.Software.UI.MembershipManage.SetSmallForm.SuperiorQuerySmallForm
  13. {
  14. public SuperiorQuerySmallForm()
  15. {
  16. this.Load += SuperiorQuerySmallForm_Load;
  17. this.btnOK.Click += btnOK_Click;
  18. this.btnCancel.Click += btnCancel_Click;
  19. this.txtAvailableAmountEnd.KeyPress += txtAvailableAmountEnd_KeyPress;
  20. this.txtAvailableAmountStart.KeyPress += txtAvailableAmountStart_KeyPress;
  21. this.txtAvailablePointsEnd.KeyPress += txtAvailablePointsEnd_KeyPress;
  22. this.txtAvailablePointsStart.KeyPress += txtAvailablePointsStart_KeyPress;
  23. this.txtSeriesAmountEnd.KeyPress += txtSeriesAmountEnd_KeyPress;
  24. this.txtSeriesAmountStart.KeyPress += txtSeriesAmountStart_KeyPress;
  25. }
  26. /// <summary>
  27. /// 确定后返回的数据
  28. /// </summary>
  29. public Hashtable htData = new Hashtable();
  30. /// <summary>
  31. /// 是否保存
  32. /// </summary>
  33. public bool IsSaveed = false;
  34. /// <summary>
  35. /// 窗体加载事件
  36. /// </summary>
  37. /// <param name="sender"></param>
  38. /// <param name="e"></param>
  39. void SuperiorQuerySmallForm_Load(object sender, EventArgs e)
  40. {
  41. }
  42. /// <summary>
  43. /// 确定
  44. /// </summary>
  45. /// <param name="sender"></param>
  46. /// <param name="e"></param>
  47. void btnOK_Click(object sender, EventArgs e)
  48. {
  49. htData["AvailableAmountStart"]=this.txtAvailableAmountStart.Text.Trim();
  50. htData["AvailableAmountEnd"]=this.txtAvailableAmountEnd.Text.Trim();
  51. htData["AvailablePointsStart"] = this.txtAvailablePointsStart.Text.Trim();
  52. htData["AvailablePointsEnd"] = this.txtAvailablePointsEnd.Text.Trim();
  53. htData["SeriesAmountStart"] = this.txtSeriesAmountStart.Text.Trim();
  54. htData["SeriesAmountEnd"] = this.txtSeriesAmountEnd.Text.Trim();
  55. htData["ClientBirthdayStart"] = this.dtpClientBirthdayStart.DateValue.Trim();
  56. htData["ClientBirthdayEnd"] = this.dtpClientBirthdayEnd.DateValue.Trim();
  57. htData["OpenCardStart"] = this.dtpOpenCardStart.DateValue.Trim();
  58. htData["OpenCardEnd"] = this.dtpOpenCardEnd.DateValue.Trim();
  59. htData["ServiceStartNumber"] = this.tb_StartServiceNumber.Text.Trim();
  60. htData["ServiceEndNumber"] = this.tb_EndServiceNumber.Text.Trim();
  61. htData["StartTotalMoney"] = this.tb_StartTotalMoney.Text.Trim();
  62. htData["EndTotalMoney"] = this.tb_EndTotalMoney.Text.Trim();
  63. this.IsSaveed = true;
  64. this.Close();
  65. }
  66. /// <summary>
  67. /// 取消
  68. /// </summary>
  69. /// <param name="sender"></param>
  70. /// <param name="e"></param>
  71. void btnCancel_Click(object sender, EventArgs e)
  72. { this.Close(); }
  73. /// <summary>
  74. /// 可用金额(结束)
  75. /// </summary>
  76. /// <param name="sender"></param>
  77. /// <param name="e"></param>
  78. void txtAvailableAmountEnd_KeyPress(object sender, KeyPressEventArgs e)
  79. {
  80. if (Convert.ToString(e.KeyChar) == ".")
  81. { }
  82. else if (!Char.IsNumber(e.KeyChar) && !Char.IsControl(e.KeyChar))
  83. { e.Handled = true; }
  84. }
  85. /// <summary>
  86. /// 可用金额(开始)
  87. /// </summary>
  88. /// <param name="sender"></param>
  89. /// <param name="e"></param>
  90. void txtAvailableAmountStart_KeyPress(object sender, KeyPressEventArgs e)
  91. {
  92. if (Convert.ToString(e.KeyChar) == ".")
  93. { }
  94. else if (!Char.IsNumber(e.KeyChar) && !Char.IsControl(e.KeyChar))
  95. { e.Handled = true; }
  96. }
  97. /// <summary>
  98. /// 可用积分(结束)
  99. /// </summary>
  100. /// <param name="sender"></param>
  101. /// <param name="e"></param>
  102. void txtAvailablePointsEnd_KeyPress(object sender, KeyPressEventArgs e)
  103. {
  104. if (Convert.ToString(e.KeyChar) == ".")
  105. { }
  106. else if (!Char.IsNumber(e.KeyChar) && !Char.IsControl(e.KeyChar))
  107. { e.Handled = true; }
  108. }
  109. /// <summary>
  110. /// 可用积分(开始)
  111. /// </summary>
  112. /// <param name="sender"></param>
  113. /// <param name="e"></param>
  114. void txtAvailablePointsStart_KeyPress(object sender, KeyPressEventArgs e)
  115. {
  116. if (Convert.ToString(e.KeyChar) == ".")
  117. { }
  118. else if (!Char.IsNumber(e.KeyChar) && !Char.IsControl(e.KeyChar))
  119. { e.Handled = true; }
  120. }
  121. /// <summary>
  122. /// 返现套系金额(结束)
  123. /// </summary>
  124. /// <param name="sender"></param>
  125. /// <param name="e"></param>
  126. void txtSeriesAmountEnd_KeyPress(object sender, KeyPressEventArgs e)
  127. {
  128. if (Convert.ToString(e.KeyChar) == ".")
  129. { }
  130. else if (!Char.IsNumber(e.KeyChar) && !Char.IsControl(e.KeyChar))
  131. { e.Handled = true; }
  132. }
  133. /// <summary>
  134. /// 返现套系金额(开始)
  135. /// </summary>
  136. /// <param name="sender"></param>
  137. /// <param name="e"></param>
  138. void txtSeriesAmountStart_KeyPress(object sender, KeyPressEventArgs e)
  139. {
  140. if (Convert.ToString(e.KeyChar) == ".")
  141. { }
  142. else if (!Char.IsNumber(e.KeyChar) && !Char.IsControl(e.KeyChar))
  143. { e.Handled = true; }
  144. }
  145. }
  146. }