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.

61 lines
1.7 KiB
C#

using POS.Language.Language;
using POSV.Card;
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 CardOpenResultForm : BusinessForm
{
private string cardNo ;
public CardOpenResultForm(string memberName, string cardNo, string phone, string date)
{
InitializeComponent();
this.controlBox.Text = LangProxy.ToLang("会员开户成功");
this.controlBox.ShowApplicationVersion = false;
this.memberNamelabelX.Text = memberName;//会员姓名
this.cardNolabelX.Text = cardNo;//会员卡号
this.phonelabelX.Text = phone;
this.datelabelX.Text = date;
this.cardNo = cardNo;
}
private void btn_finish(object sender, EventArgs e)
{
OnCloseTouchClick(sender, e);
}
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();
}
private void OnCloseTouchClick(object sender, EventArgs e)
{
//先关闭父窗体
if (this.Owner != null)
{
this.Owner.Close();
}
//再关闭当前窗体
this.Close();
}
public event NofityEventHandler OnRechargeClick;
}
}