Exemplo n.º 1
0
        //查询
        private void query()
        {
            try
            {
                //根据账号查询热力
                HeatQueryInfo info = HeatAccess.HeatQuery(Payment.heatPayParam.AccountNo);

                //if (!"0000".Equals(info.msgrsp.retcode))
                //{
                //    wtPayUtils.PrintInfo(WtException.formatMsg(WtExceptionCode.Bus.BUS_QUERY), lblAccountInfo, pictureBox4);
                //    return;
                //}
                if (!"0000".Equals(info.msgrsp.retcode))
                {
                    //激活按钮
                    //btnRecharge.Enabled = true;
                    if (info.msgrsp.retshow.Length > 0)
                    {
                        printInfo(info.msgrsp.retshow);
                        return;
                    }
                    else
                    {
                        printInfo("查询失败,请稍后再试");
                        return;
                    }
                }
                if (info.msgrsp.orderlist.Count > 0)
                {
                    panel6.Dispatcher.Invoke(new isShowGridDelegate(isShowGrid), panel6, true);
                    clear();
                    topPageBtn.Dispatcher.Invoke(new isShowButtonDelegate(isShowButton), topPageBtn, true);
                    buttomPageBtn.Dispatcher.Invoke(new isShowButtonDelegate(isShowButton), buttomPageBtn, true);
                    titlePanel.Dispatcher.Invoke(new isShowGridDelegate(isShowGrid), titlePanel, true);
                    heatList  = info.msgrsp.orderlist;
                    pageCount = heatList.Count / 3;
                    if ((heatList.Count % 3) != 0)
                    {
                        pageCount++;
                    }
                    setPage(page);
                    pagelbl.Dispatcher.Invoke(new isShowTextBlockDelegate(isShowTextBlock), pagelbl, true);
                    printInfo("您的账单信息");
                }
            }
            catch (ThreadAbortException ae) { }
            catch (Exception e)
            {
                printInfo("查询失败,请稍后再试");
                log.Write("error:FormHeatStep02:query():" + e.Message);
            }
            finally
            {
                loadlbl.Dispatcher.Invoke(new isShowLabelDelegate(isShowLabel), loadlbl, false);
            }
        }
Exemplo n.º 2
0
        public void orderInfo(ref HeatOrderInfo orderinfo, PayParam p)
        {
            //热力订单
            HeatOrderParam orderParam = new HeatOrderParam();

            orderParam.paymentno    = info.custNo; //查询的custNo
            orderParam.realAmout    = info.amout;  //查询的amout
            orderParam.paymentAmout = info.amout;
            orderParam.billDate     = info.billDate;
            orderParam.shopType     = PayAccess.isWtLkl(p.icParams);

            log.Write("发起订单:用户编号:" + orderParam.paymentno + ",缴费金额:" + info.amout);
            orderinfo = HeatAccess.HeatOrder(orderParam);
            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;
            //交易订单号
            p.orderNo = orderinfo.msgrsp.orderNo;
            Payment.heatPayParam.RechageAmount = orderinfo.msgrsp.realAmout;
            Payment.heatPayParam.HeatOrderInfo = orderinfo;
            log.Write("订单提交成功:订单号:" + orderinfo.msgrsp.orderNo);
        }