Exemplo n.º 1
0
 //查询广电
 public void query()
 {
     try
     {
         BroadCasQueryInfo info = BroadCasAccess.query(Payment.broadCasPayParam.Account);
         if (!"0000".Equals(info.msgrsp.retcode))
         {
             //隐藏加载按钮
             loadlbl.Dispatcher.Invoke(new isShowLabelDelegate(isShowLabel), this.loadlbl, false);
             if (info.msgrsp.retshow.Length > 0)
             {
                 //显示提示信息
                 lblAccountInfo.Dispatcher.Invoke(new setTextBlockTextDelegate(setTextBlockText), this.lblAccountInfo, info.msgrsp.retshow);
                 return;
             }
             else
             {
                 lblAccountInfo.Dispatcher.Invoke(new setTextBlockTextDelegate(setTextBlockText), this.lblAccountInfo, "查询失败,请稍后再试");
                 return;
             }
         }
         PrintInfo("您的账单信息");
         list = info.msgrsp.guangDianData;
         //账户名称
         lblBalance.Dispatcher.Invoke(new setTextBlockTextDelegate(setTextBlockText), this.lblBalance, list.CUSTNAME);
         //账单余额
         if (Convert.ToDouble(list.BANLANCE) >= 0)
         {
             lblAmountText.Dispatcher.Invoke(new setTextBlockTextDelegate(setTextBlockText), lblAmountText, "账户余额");
         }
         else
         {
             lblAmountText.Dispatcher.Invoke(new setTextBlockTextDelegate(setTextBlockText), lblAmountText, "欠费金额");
         }
         string price = list.BANLANCE;
         lblAmount.Dispatcher.Invoke(new setTextBlockTextDelegate(setTextBlockText), this.lblAmount, price);
         lblPayMentAmout.Dispatcher.Invoke(new setTextBlockTextDelegate(setTextBlockText), this.lblPayMentAmout, list.PAYMENTAMOUNT);
         btnRecharge.Dispatcher.Invoke(new isShowButtonDelegate(isShowButton), this.btnRecharge, true);
         panel12.Dispatcher.Invoke(new isShowGridDelegate(isShowGrid), this.panel12, true);
         SysBLL.Player("继续缴费请点击确定按钮.wav");
     }
     catch (ThreadAbortException ae) { }
     catch (WtException e)
     {
         PrintInfo(e);
     }
     catch (Exception e)
     {
         //弹出异常提示页面
         string msg = WtException.formatMsg(WtExceptionCode.Bus.BUS_QUERY, e.Message);//异常信息
         PrintInfo(msg);
     }
     finally
     {
     }
 }
 private void load()
 {
     try
     {
         isPrint   = true;
         list      = Payment.broadCasPayParam.List;
         orderInfo = Payment.broadCasPayParam.BroadCasOrderInfo;
         SysBLL.Player("交易完成.wav");
         //缴费金额
         lblBalance.Text = list.BANLANCE + "元";
         //用户名
         lblTotal.Text = list.CUSTNAME;
     }
     catch (Exception ex)
     {
         log.Write("error:FormBroadCasStep06_success:load():" + ex.Message);
     }
 }
Exemplo n.º 3
0
        private void load()
        {
            try
            {
                list     = Payment.broadCasPayParam.List;
                pwd      = Payment.broadCasPayParam.Pwd;
                icParams = Payment.broadCasPayParam.IcParams;
                SysBLL.Player("交易处理中,请稍后.wav");
                payThread = new Thread(delegate() { pay(); });
                payThread.Start();

                timerLoad          = new DispatcherTimer();
                timerLoad.Interval = TimeSpan.FromMilliseconds(400);
                timerLoad.Tick    += new EventHandler(timer_Tick);
                timerLoad.Start();
            }
            catch (Exception ex)
            {
                log.Write("error:FormBroadCasStep06:load():" + ex.Message);
            }
        }