//查询 public void query() { try { HouseQueryInfo info = PropAccess.HouseQuery(Payment.PropPayParam.Mobile); //if (!"0000".Equals(info.msgrsp.retcode)) //{ // wtPayUtils.PrintInfo(WtException.formatMsg(WtExceptionCode.Bus.BUS_QUERY), lblAccountInfo, loadPct); // return; //} if (!"0000".Equals(info.msgrsp.retcode)) { //激活按钮 //btnRecharge.Enabled = true; if (info.msgrsp.retshow.Length > 0) { setTextBlock(lblAccountInfo, info.msgrsp.retshow); return; } else { setTextBlock(lblAccountInfo, "查询失败,请稍后再试"); return; } } if (info.msgrsp.wyDataHouseList.Count > 0) { xianshi(); setTextBlock(lblAccountInfo, "您的房屋信息"); list = info.msgrsp.wyDataHouseList; pageCount = list.Count / 3; if (list.Count <= 3) { pageCount = 0; } if ((list.Count % 3) != 0) { pageCount++; } setPage(page); pagedn.Dispatcher.Invoke(new isShowButtonDelegate(isShowButton), pagedn, true); pagedn.Dispatcher.Invoke(new isShowButtonDelegate(isShowButton), pageup, true); } else { setTextBlock(lblAccountInfo, "查询无数据,请稍后再试"); return; } } catch (ThreadAbortException ae) { } catch (Exception e) { log.Write("error:FormPropStep02_house:query:" + e.Message + e.InnerException); setTextBlock(lblAccountInfo, "查询失败..."); } finally { loadlbl.Dispatcher.Invoke(new isShowLabelDelegate(isShowLabel), loadlbl, false); } }
static void Main() { PropAccess ob = new PropAccess(); Console.WriteLine("Original value of ob.MyProp: " + ob.MyProp); // ob.MyProp = 100; // can't access set ob.IncrProp(); Console.WriteLine("Value of ob.MyProp after increment: " + ob.MyProp); }
private void orderInfo(ref PropOrderInfo orderinfo, PayParam p) { PropOrderParam param = new PropOrderParam(); //获取订单 try { if (payParam.PropType == 1) { //房屋 param.queryid = payParam.HouseInfo.houseid; param.isPark = "1"; } else if (payParam.PropType == 2) { //车位 param.queryid = payParam.ParkInfo.parkingid; param.isPark = "0"; } param.paymentAmout = payParam.ChargeList.money; param.shopType = PayAccess.isWtLkl(p.icParams); param.merchantNo = Payment.PropPayParam.MerchantNo; log.Write("发起订单:用户电话号码:" + payParam.Mobile + ",账单金额:" + payParam.ChargeList.money); orderinfo = PropAccess.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; //交易订单号 p.orderNo = orderinfo.msgrsp.orderNo; Payment.PropPayParam.PropOrderInfo = orderinfo; log.Write("订单提交成功:订单号:" + orderinfo.msgrsp.orderNo); } catch (Exception ex1) { log.Write("error:物业获取缴费订单失败!" + ex1.Message + ex1.InnerException); return; } }
public void query() { try { ParkingLotQueryInfo info = PropAccess.ParkingLotQuery(Payment.PropPayParam.Mobile); if (!"0000".Equals(info.msgrsp.retcode)) { //激活按钮 //btnRecharge.Enabled = true; if (info.msgrsp.retshow.Length > 0) { setTextBlock(lblAccountInfo, info.msgrsp.retshow); return; } else { setTextBlock(lblAccountInfo, "查询失败,请稍后再试"); return; } } if (info.msgrsp.wyDataParkList.Count > 0) { xianshi(); setTextBlock(lblAccountInfo, "您的车位信息"); list = info.msgrsp.wyDataParkList; pageCount = list.Count / 3; if (list.Count <= 3) { pageCount = 0; } if ((list.Count % 3) != 0) { pageCount++; } setPage(page); pagedn.Dispatcher.Invoke(new isShowButtonDelegate(isShowButton), pagedn, true); pageup.Dispatcher.Invoke(new isShowButtonDelegate(isShowButton), pageup, true); } } catch (ThreadAbortException ae) { } catch (Exception e) { setTextBlock(lblAccountInfo, "查询失败..."); } finally { loadlbl.Dispatcher.Invoke(new isShowLabelDelegate(isShowLabel), loadlbl, false); } }
private void orderInfo(ref PropOrderInfo orderinfo, PayParam p) { PropOrderParam param = new PropOrderParam(); //获取订单 try { param.paymentno = Payment.propPayTempParam.AccountNo; param.merchantNo = Payment.propPayTempParam.MerchantNo; param.AMOUNT = Payment.propPayTempParam.UserInputMoney; param.HOUSEID = Payment.propPayTempParam.House; param.paymentAmout = Payment.propPayTempParam.RechageAmount; param.shopType = PayAccess.isWtLkl(p.icParams); param.TYPE = Payment.propPayTempParam.PropType; //log.Write("发起订单:用户电话号码:" + payParam.Mobile + ",账单金额:" + payParam.ChargeList.money); orderinfo = PropAccess.getPropOrder(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; //交易订单号 p.orderNo = orderinfo.msgrsp.orderNo; Payment.propPayTempParam.PropOrderInfo = orderinfo; log.Write("订单提交成功:订单号:" + orderinfo.msgrsp.orderNo); } catch (Exception ex1) { log.Write("error:物业获取缴费订单失败!" + ex1.Message + ex1.InnerException); return; } }
private bool propTempQuery() { return(true); PropFeeQueryParam param = new PropFeeQueryParam(); param.AMOUNT = Payment.propPayTempParam.UserInputMoney; param.paymentno = Payment.propPayTempParam.AccountNo; param.TYPE = Payment.propPayTempParam.PropType; PropFeeQueryInfo info = PropAccess.PropFeeQuery(param); if (!"0000".Equals(info.msgrsp.retcode)) { return(false); } Payment.propPayTempParam.RechageAmount = info.msgrsp.result.MONEY; Payment.propPayTempParam.MerchantNo = info.msgrsp.merchantNo; Payment.propPayTempParam.House = info.msgrsp.result.HOUSEID; return(true); }
public void query() { PropCostsQueryInfo info = null; PropCostsQueryParam param = new PropCostsQueryParam(); try { if (Payment.PropPayParam.PropType == 1) { param.queryid = Payment.PropPayParam.HouseInfo.houseid; param.communityid = Payment.PropPayParam.HouseInfo.communityid; param.isPark = "1"; //房屋查询 } else if (Payment.PropPayParam.PropType == 2) { //车位查询 param.queryid = Payment.PropPayParam.ParkInfo.parkingid; param.communityid = Payment.PropPayParam.ParkInfo.communityid; param.isPark = "0"; } info = PropAccess.CostQuery(param); Payment.PropPayParam.MerchantNo = info.msgrsp.merchantNo; //param.queryid", param.queryid);// 房屋编码【houseid】或者车位编码【parkingid】 String 否 //param.communityid", param.communityid);// 小区编码【communityid】 String 否 //param.isPark="";// 费用编号 String 房屋费用 1,车位费用 0 //if (!"0000".Equals(info.msgrsp.retcode)) //{ // wtPayUtils.PrintInfo(WtException.formatMsg(WtExceptionCode.Bus.BUS_QUERY), lblAccountInfo, loadPct); // return; //} if (!"0000".Equals(info.msgrsp.retcode)) { //激活按钮 //btnRecharge.Enabled = true; if (info.msgrsp.retshow.Length > 0) { setTextBlock(lblAccountInfo, info.msgrsp.retshow); return; } else { setTextBlock(lblAccountInfo, "查询失败,请稍后再试..."); return; } } if (info.msgrsp.wyDataChargeList.Count > 0) { xianshi(); setTextBlock(lblAccountInfo, "您的账单信息"); list = info.msgrsp.wyDataChargeList; pageCount = list.Count / 3; if ((list.Count % 3) != 0) { pageCount++; } setPage(page); pagedn.Dispatcher.Invoke(new isShowButtonDelegate(isShowButton), pagedn, true); pageup.Dispatcher.Invoke(new isShowButtonDelegate(isShowButton), pageup, true); SysBLL.Player("继续缴费请点击充值按钮.wav"); } else { setTextBlock(lblAccountInfo, "您的已完成本项缴费"); return; } } catch (ThreadAbortException ae) { } catch (Exception e) { log.Write("error:FormPropStep02:query:" + e.Message + e.InnerException); setTextBlock(lblAccountInfo, "查询失败..."); } finally { loadlbl.Dispatcher.Invoke(new isShowLabelDelegate(isShowLabel), loadlbl, false); } }