You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
2.0 KiB
C#

9 months ago
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace POSV.Member
{
public partial class CardGoRechargeForm : BusinessForm
{
private string cardNo;
public CardGoRechargeForm(string memberName,string cardNo , string faceNo, decimal memberAmount,decimal memberPoint)
{
InitializeComponent();
this.controlBox.Text = "会员消费提醒";
this.controlBox.ShowApplicationVersion = false;
this.memberNamelabelX.Text = memberName;//会员姓名
this.cardNolabelX.Text = faceNo;//会员卡号
this.yelabelX.Text = string.Format("{0}", memberAmount);
this.jflabelX.Text = string.Format("{0}", memberPoint);
this.cardNo = cardNo;
}
private void Btn_Cancel(object sender, EventArgs e)
{
OnCloseTouchClick(sender, e);
}
private void OnCloseTouchClick(object sender, EventArgs e)
{
//先关闭父窗体
if (this.Owner != null)
{
this.Owner.Close();
}
//再关闭当前窗体
this.Close();
}
/// <summary>
/// 去充值
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void Btn_Recharge(object sender, EventArgs e)
{
OnRechargeClick?.Invoke(sender, new NotifyEventArgs(NotifyAction.Notify, "memberRecharge", this.cardNo));
//先关闭父窗体
if (this.Owner != null)
{
this.Owner.Close();
}
//再关闭当前窗体
this.Close();
}
public event NofityEventHandler OnRechargeClick;
private void OnControlBoxCloseClick(object sender, EventArgs e)
{
OnCloseTouchClick(sender, e);
}
}
}