/// <summary> /// 车位查询 /// </summary> /// <param name="mobile"></param> /// <returns></returns> public static ParkingLotQueryInfo ParkingLotQuery(string mobile) { ParkingLotQueryParam param = new ParkingLotQueryParam(); SysBLL.Authcode = login(); param.authcode = SysBLL.Authcode; // 认证码 not null param.servicename = "WY003"; // 交易号 not null param.trandateTime = SysBLL.getYYYYMMDDHHMMSSTime(); // 交易时间 格式:YYYYMMDDHHMMSS param.reqsn = SysBLL.getSerialNum(); // 请求流水号 not null param.loginId = SysBLL.getCpuNo(); // 交互终端的设备编号(用于自助终端) param.mobile = mobile; // not null return(access.ParkingLotQuery(param)); }
/// <summary> /// 车位查询 /// </summary> /// <param name="param"></param> /// <returns></returns> public ParkingLotQueryInfo ParkingLotQuery(ParkingLotQueryParam param) { 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); // string jsonText = HttpHelper.getHttp(SysConfigHelper.readerNode("PropParkingLotQuery"), parameters, null); log.Write("物业车位json:" + jsonText); //反序列化JSON字符串,将JSON字符串转换成LIST列表 ParkingLotQueryInfo info = JsonConvert.DeserializeObject <ParkingLotQueryInfo>(jsonText); return(info); }