Esempio n. 1
0
 //查询
 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);
     }
 }
Esempio n. 2
0
        /// <summary>
        /// 获取房屋信息
        /// </summary>
        /// <param name="param"></param>
        /// <returns></returns>
        public HouseQueryInfo HouseQuery(HouseQueryParam param)
        {
            HouseQueryInfo info = null;
            Dictionary <String, String> parameters = new Dictionary <String, String>();

            parameters.Add("authcode", param.authcode);         // 认证码 not null
            parameters.Add("servicename", param.servicename);   // 交易号 not null
            parameters.Add("trandateTime", param.trandateTime); // 交易时间  格式:YYYYMMDDHHMMSS
            parameters.Add("reqsn", param.reqsn);               // 请求流水号 not null
            parameters.Add("loginId", param.loginId);           // 交互终端的设备编号(用于自助终端)
            parameters.Add("mobile", param.mobile);             // not null
            string jsonText = HttpHelper.getHttp(SysConfigHelper.readerNode("PropQuery"), parameters, null);

            log.Write("物业房屋查询json:" + jsonText);
            //反序列化JSON字符串,将JSON字符串转换成LIST列表
            info = JsonConvert.DeserializeObject <HouseQueryInfo>(jsonText);
            return(info);
        }