123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154 |
- using System;
- using System.Collections;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Windows.Forms;
- namespace LYFZ.Software.MainBusiness.MembershipManage.SetSmallForm
- {
- public partial class SuperiorQuerySmallForm : LYFZ.Software.UI.MembershipManage.SetSmallForm.SuperiorQuerySmallForm
- {
- public SuperiorQuerySmallForm()
- {
- this.Load += SuperiorQuerySmallForm_Load;
- this.btnOK.Click += btnOK_Click;
- this.btnCancel.Click += btnCancel_Click;
- this.txtAvailableAmountEnd.KeyPress += txtAvailableAmountEnd_KeyPress;
- this.txtAvailableAmountStart.KeyPress += txtAvailableAmountStart_KeyPress;
- this.txtAvailablePointsEnd.KeyPress += txtAvailablePointsEnd_KeyPress;
- this.txtAvailablePointsStart.KeyPress += txtAvailablePointsStart_KeyPress;
- this.txtSeriesAmountEnd.KeyPress += txtSeriesAmountEnd_KeyPress;
- this.txtSeriesAmountStart.KeyPress += txtSeriesAmountStart_KeyPress;
- }
- /// <summary>
- /// 确定后返回的数据
- /// </summary>
- public Hashtable htData = new Hashtable();
- /// <summary>
- /// 是否保存
- /// </summary>
- public bool IsSaveed = false;
- /// <summary>
- /// 窗体加载事件
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- void SuperiorQuerySmallForm_Load(object sender, EventArgs e)
- {
- }
- /// <summary>
- /// 确定
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- void btnOK_Click(object sender, EventArgs e)
- {
- htData["AvailableAmountStart"]=this.txtAvailableAmountStart.Text.Trim();
- htData["AvailableAmountEnd"]=this.txtAvailableAmountEnd.Text.Trim();
- htData["AvailablePointsStart"] = this.txtAvailablePointsStart.Text.Trim();
- htData["AvailablePointsEnd"] = this.txtAvailablePointsEnd.Text.Trim();
- htData["SeriesAmountStart"] = this.txtSeriesAmountStart.Text.Trim();
- htData["SeriesAmountEnd"] = this.txtSeriesAmountEnd.Text.Trim();
- htData["ClientBirthdayStart"] = this.dtpClientBirthdayStart.DateValue.Trim();
- htData["ClientBirthdayEnd"] = this.dtpClientBirthdayEnd.DateValue.Trim();
- htData["OpenCardStart"] = this.dtpOpenCardStart.DateValue.Trim();
- htData["OpenCardEnd"] = this.dtpOpenCardEnd.DateValue.Trim();
- htData["ServiceStartNumber"] = this.tb_StartServiceNumber.Text.Trim();
- htData["ServiceEndNumber"] = this.tb_EndServiceNumber.Text.Trim();
- htData["StartTotalMoney"] = this.tb_StartTotalMoney.Text.Trim();
- htData["EndTotalMoney"] = this.tb_EndTotalMoney.Text.Trim();
- this.IsSaveed = true;
- this.Close();
- }
- /// <summary>
- /// 取消
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- void btnCancel_Click(object sender, EventArgs e)
- { this.Close(); }
-
- /// <summary>
- /// 可用金额(结束)
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- void txtAvailableAmountEnd_KeyPress(object sender, KeyPressEventArgs e)
- {
- if (Convert.ToString(e.KeyChar) == ".")
- { }
- else if (!Char.IsNumber(e.KeyChar) && !Char.IsControl(e.KeyChar))
- { e.Handled = true; }
- }
- /// <summary>
- /// 可用金额(开始)
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- void txtAvailableAmountStart_KeyPress(object sender, KeyPressEventArgs e)
- {
- if (Convert.ToString(e.KeyChar) == ".")
- { }
- else if (!Char.IsNumber(e.KeyChar) && !Char.IsControl(e.KeyChar))
- { e.Handled = true; }
- }
- /// <summary>
- /// 可用积分(结束)
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- void txtAvailablePointsEnd_KeyPress(object sender, KeyPressEventArgs e)
- {
- if (Convert.ToString(e.KeyChar) == ".")
- { }
- else if (!Char.IsNumber(e.KeyChar) && !Char.IsControl(e.KeyChar))
- { e.Handled = true; }
- }
- /// <summary>
- /// 可用积分(开始)
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- void txtAvailablePointsStart_KeyPress(object sender, KeyPressEventArgs e)
- {
- if (Convert.ToString(e.KeyChar) == ".")
- { }
- else if (!Char.IsNumber(e.KeyChar) && !Char.IsControl(e.KeyChar))
- { e.Handled = true; }
- }
- /// <summary>
- /// 返现套系金额(结束)
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- void txtSeriesAmountEnd_KeyPress(object sender, KeyPressEventArgs e)
- {
- if (Convert.ToString(e.KeyChar) == ".")
- { }
- else if (!Char.IsNumber(e.KeyChar) && !Char.IsControl(e.KeyChar))
- { e.Handled = true; }
- }
- /// <summary>
- /// 返现套系金额(开始)
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- void txtSeriesAmountStart_KeyPress(object sender, KeyPressEventArgs e)
- {
- if (Convert.ToString(e.KeyChar) == ".")
- { }
- else if (!Char.IsNumber(e.KeyChar) && !Char.IsControl(e.KeyChar))
- { e.Handled = true; }
- }
- }
- }
|