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.4 KiB
C#

using POS.Language.Language;
using POSV.Card;
using POSV.Utils;
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 CardRechargeResultForm : BusinessForm
{
private CardRechargeRequest request;
private CardRechargeResponse response;
public CardRechargeResultForm(CardRechargeRequest request, CardRechargeResponse response)
{
InitializeComponent();
this.controlBox.Text = LangProxy.ToLang("会员卡充值成功");
this.controlBox.ShowApplicationVersion = false;
this.request = request;
this.response = response;
}
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
this.memberNamelabelX.Text = request.MemberName;//会员姓名
this.cardNolabelX.Text = request.CardNo;//会员卡号
this.moneylabelX.Text = StringUtils.GetString(response.Amount / 100.00M);
this.giveMoneylabelX.Text = StringUtils.GetString(response.GiftAmount / 100.00M);
this.preMoneylabelX.Text = StringUtils.GetString(response.PreAmount / 100.00M);
this.afterMoneylabelX.Text = StringUtils.GetString(response.AftAmount / 100.00M);
this.givePointlabelX.Text = StringUtils.GetString(response.GiftPoint / 100.00M);
this.afterPointlabelX.Text = StringUtils.GetString(response.AftPoint / 100.00M);
this.giflabelX.Text = response.GiftDetail.Name == null ? "" : response.GiftDetail.Name;
this.gifNumlabelX.Text = string.Format("{0}", response.GiftDetail.Num);
this.coupslabelX.Text = "DISCOUNT".Equals(response.CouponDetail.CouponType) ? LangProxy.ToLang("折扣券") : LangProxy.ToLang("代金券");
this.coupsNamelabelX.Text = response.CouponDetail.CouponDesc == null ? "" : response.CouponDetail.CouponDesc;
}
private void OnCloseTouchClick(object sender, EventArgs e)
{
//先关闭父窗体
if (this.Owner != null)
{
this.Owner.Close();
}
//再关闭当前窗体
this.Close();
}
private void btn_exit_Click(object sender, EventArgs e)
{
OnCloseTouchClick(sender, e);
}
}
}