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; } /// /// 确定后返回的数据 /// public Hashtable htData = new Hashtable(); /// /// 是否保存 /// public bool IsSaveed = false; /// /// 窗体加载事件 /// /// /// void SuperiorQuerySmallForm_Load(object sender, EventArgs e) { } /// /// 确定 /// /// /// 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(); } /// /// 取消 /// /// /// void btnCancel_Click(object sender, EventArgs e) { this.Close(); } /// /// 可用金额(结束) /// /// /// 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; } } /// /// 可用金额(开始) /// /// /// 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; } } /// /// 可用积分(结束) /// /// /// 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; } } /// /// 可用积分(开始) /// /// /// 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; } } /// /// 返现套系金额(结束) /// /// /// 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; } } /// /// 返现套系金额(开始) /// /// /// 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; } } } }