//查询广电
 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
     {
     }
 }
Esempio n. 2
0
 /// <summary>
 /// 初始化资源,所有要用的资源都在这里加载,防止内存泄露
 /// </summary>
 private void initResouces()
 {
     //加载页面
     new ResourceInitialise().LoadForm();
     try
     {
         //上送版本号
         WtPayAccess.insertVersion();
         //设置系统时间
         SysBLL.SetSystemTime(BroadCasAccess.getSystemTime());
         //设备签到
         string mechineNo = ConfigurationManager.AppSettings["MechineNo"];
         SysBLL.MechineSign(mechineNo);
         //万通拉卡拉签到
         PayAccess.LklWtSign();
         //燃气注册表
         SysBLL.RunBat(System.AppDomain.CurrentDomain.BaseDirectory + SysConfigHelper.readerNode("regist"));
     }
     catch (Exception ex)
     {
         log.Write("error:MainWindow:weatherWorker_DoWork:" + ex.Message);
     }
 }
Esempio n. 3
0
        public void orderInfo(ref BroadCasOrderInfo orderinfo, PayParam p)
        {
            //获取订单
            BroadCasOrderParam param = new BroadCasOrderParam();

            param.paymentno    = list.CUSTNO;
            param.paymentAmout = list.BANLANCE;
            //param.balenceNO = list.balenceNO;
            param.shopType = PayAccess.isWtLkl(p.icParams);
            log.Write("获取订单:用户编号:" + param.paymentno + ",账单金额:" + param.paymentAmout + ",余额账本编码:" + param.balenceNO);
            //发送缴费订单
            orderinfo = BroadCasAccess.order(param);
            if ("9999".Equals(orderinfo.msgrsp.retcode))
            {
                return;
            }
            if ("1234".Equals(orderinfo.msgrsp.retcode))
            {
                return;
            }
            if (!"0000".Equals(orderinfo.msgrsp.retcode))
            {
                return;
            }
            //获取商户号
            p.MERCHANTNO_shopNo = orderinfo.msgrsp.MERCHANTNO;
            //获取终端号
            p.TERMINALNO_clientNo = orderinfo.msgrsp.TERMINALNO;
            //交易金额
            p.rechageAmount = orderinfo.msgrsp.realAmout;
            Payment.broadCasPayParam.RechageAmount = orderinfo.msgrsp.realAmout;
            //交易订单号
            p.orderNo = orderinfo.msgrsp.orderNo;
            Payment.broadCasPayParam.BroadCasOrderInfo = orderinfo;
            log.Write("订单提交成功:订单号:" + orderinfo.msgrsp.orderNo);
        }