Example #1
0
        //初始化UI
        /// <summary>
        /// 初始化
        /// </summary>
        /// <param name="card">身份证信息</param>
        /// <param name="money">充值金额</param>
        /// <param name="status">流程</param>
        /// <param name="offical">是否办理会员</param>
        private void InitUI(StructCard card, int money, FLOW_STATUS status, PRECHARGE_TYPE offical)
        {
            InitializeComponent();
            this.titleLabel.Text = "用户充值";
            this.recharge        = money;
            this.prechargeType   = offical;
            this.rechargeCard    = new StructCard.Builder(card).Build();
            this.flowstatus      = status;

            //如果进入充值。进入充值入口
            if (status == FLOW_STATUS.NORMAL_STATUS)
            {
                BeginRecharge();
            }
            //直接获取二维码
            else
            {
                GetRechargeCode();
            }
        }
Example #2
0
        private StructCard openCard;                              //需要开通会员的身份证信息

        #region 初始化方法
        /// <summary>
        /// 声明开通会员(激活时进入。不监听读卡)
        /// </summary>
        /// <param name="status"></param>
        /// <param name="card"></param>
        public OpenMemberView(FLOW_STATUS status, StructCard card)
        {
            InitializeComponent();
            this.flowstatus = status;
            InitUI(card);
        }
Example #3
0
 /// <summary>
 /// 声明
 /// </summary>
 /// <param name="card">身份证号</param>
 /// <param name="money">充值金额</param>
 /// <param name="status">流程状态</param>
 /// <param name="offical">是否办理会员</param>
 public UserScanCodeView(StructCard card, int money, FLOW_STATUS status, PRECHARGE_TYPE offical)
 {
     InitUI(card, money, status, offical);
 }