/// <summary> /// <returns></returns> /// </summary> /// <param name="parkingId">车场编号</param> /// <param name="GateID"></param> /// <param name="AccountID"></param> /// <param name="OrderSource"></param> /// <returns></returns> public static TempParkingFeeResult WXScanCodeTempParkingFeeByParkGateID(string parkingId, string GateID, string AccountID, OrderSource OrderSource) { TxtLogServices.WriteTxtLogEx("BWYInterfaceProcess", string.Format("WXScanCodeTempParkingFeeByParkGateID,GateID:{0},AccountID:{1},OrderSource:{2},parkingId:{3}", GateID, AccountID, (int)OrderSource, parkingId)); if (parkingId == SystemDefaultConfig.SFMPKID) { string[] sPData = GateID.Split('$'); if (sPData.Length == 2) { return(SFMTempParkingFeeResult(sPData[0], sPData[1])); } else { TempParkingFeeResult r = new TempParkingFeeResult(); r.Result = APPResult.OtherException; return(r); } } if (parkingId == SystemDefaultConfig.BWPKID) { return(BWYTempParkingFeeResult(GateID)); } WXServiceClient client = ServiceUtil <WXServiceClient> .GetServiceClient("WXService"); string result = client.WXScanCodeTempParkingFeeByGateID(GateID, AccountID, (int)OrderSource); client.Close(); client.Abort(); return(JsonHelper.GetJson <TempParkingFeeResult>(result)); }
/// <summary> /// 预约记录 /// </summary> /// <param name="AccountID">账号编号</param> /// <returns></returns> public static List <ParkReserveBit> WXReserveBitPay(string AccountID) { //List<ParkReserveBit> models = new List<ParkReserveBit>(); //ParkReserveBit model = new ParkReserveBit(); //model.PKName = "车场名称"; //model.BitNo = "BitNo"; //model.StartTime = DateTime.Now; //model.EndTime = DateTime.Now; //model.Remark = "Remark"; //model.CreateTime = DateTime.Now; //model.PlateNumber = "PlateNumber"; //model.Status = 0; //models.Add(model); //ParkReserveBit model1 = new ParkReserveBit(); //model1.PKName = "车场名称"; //model1.BitNo = "BitNo"; //model1.StartTime = DateTime.Now; //model1.EndTime = DateTime.Now; //model1.Remark = "Remark"; //model1.CreateTime = DateTime.Now; //model1.PlateNumber = "PlateNumber"; //model1.Status = 0; //models.Add(model1); //return models; WXServiceClient client = ServiceUtil <WXServiceClient> .GetServiceClient("WXService"); string result = client.WXGetReservePKBit(AccountID); client.Close(); client.Abort(); return(JsonHelper.GetJson <List <ParkReserveBit> >(result)); }
/// <summary> /// 发送客户端通知 /// </summary> /// <param name="sellerID"></param> /// <param name="VID"></param> /// <returns></returns> public static void SendNotify(string title, string text) { WXServiceClient client = ServiceUtil <WXServiceClient> .GetServiceClient("WXService"); client.SendNotify(title, text); client.Close(); client.Abort(); }
/// <summary> /// 月租卡续费 /// </summary> /// <param name="CardID">卡片ID</param> /// <param name="ParkingID">车场ID</param> /// <param name="SystemID">平台ID</param> /// <param name="MonthNum">月数</param> /// <param name="Amount">金额</param> /// <returns></returns> public static MonthlyRenewalResult WXMonthlyRenewals(string CardID, string ParkingID, int MonthNum, decimal Amount, string AccountID, int PayWay, OrderSource orderSource, string OnlineOrderID, DateTime payDate) { WXServiceClient client = ServiceUtil <WXServiceClient> .GetServiceClient("WXService"); string result = client.WXMonthlyRenewals(CardID, ParkingID, MonthNum, Amount, AccountID, PayWay, (int)orderSource, OnlineOrderID, payDate); client.Close(); client.Abort(); return(JsonHelper.GetJson <MonthlyRenewalResult>(result)); }
/// <summary> /// <returns>0进成功、1出成功、1001参数错误、1002扫码入场失败、1003代理连接断开,1004通道无车</returns> /// </summary> /// <param name="parkingId"></param> /// <param name="gateNo"></param> /// <param name="openId"></param> /// <returns></returns> public static int WXScanCodeInOut(string parkingId, string gateNo, string openId) { WXServiceClient client = ServiceUtil <WXServiceClient> .GetServiceClient("WXService"); int result = client.WXScanCodeInOut(parkingId, gateNo, openId); client.Close(); client.Abort(); return(result); }
/// <summary> /// 岗亭缴费 /// </summary> /// <param name="PlateNumber"></param> /// <param name="CardNo"></param> /// <param name="ParkingID"></param> /// <param name="SystemID"></param> /// <param name="AccountID"></param> /// <returns></returns> public static TempParkingFeeResult WXScanCodeTempParkingFee(string boxId, string accountId) { WXServiceClient client = ServiceUtil <WXServiceClient> .GetServiceClient("WXService"); string result = client.WXScanCodeTempParkingFee(boxId, accountId, 1); client.Close(); client.Abort(); return(JsonHelper.GetJson <TempParkingFeeResult>(result)); }
/// <summary> /// 绑定交易密码 /// </summary> /// <param name="OpenID">微信编号</param> /// <param name="TradePassword">交易密码</param> /// <param name="Mobile">手机号</param> /// <returns>accountId</returns> public static bool WXBindingMobilePhone(string accountId, string mobile) { WXServiceClient client = ServiceUtil <WXServiceClient> .GetServiceClient("WXService"); bool result = client.WXBindingMobilePhone(accountId, mobile); client.Close(); client.Abort(); return(result); }
/// <summary> /// 取消关注 /// </summary> /// <param name="openId">微信编号</param> /// <returns></returns> public static bool WXUnsubscribe(string openId) { WXServiceClient client = ServiceUtil <WXServiceClient> .GetServiceClient("WXService"); bool result = client.WXUnsubscribe(openId); client.Close(); client.Abort(); return(result); }
/// <summary> /// 查询信息 /// </summary> /// <param name="accountplate"></param> /// <returns></returns> public static WX_CarInfo GetCarInfoByPlateNo(string accountId, string plateNo) { WXServiceClient client = ServiceUtil <WXServiceClient> .GetServiceClient("WXService"); string result = client.GetCarInfoByPlateNo(accountId, plateNo); client.Close(); client.Abort(); return(JsonHelper.GetJson <WX_CarInfo>(result)); }
/// <summary> ///获取车场信息 /// </summary> /// <param name="accountId"></param> /// <returns></returns> public static BaseParkinfo GetBaseParkinfoByPKID(string ParkingID) { WXServiceClient client = ServiceUtil <WXServiceClient> .GetServiceClient("WXService"); string result = client.GetBaseParkinfoByPKID(ParkingID); client.Close(); client.Abort(); return(JsonHelper.GetJson <BaseParkinfo>(result)); }
/// <summary> /// 测试代理服务是否开启 /// </summary> /// <param name="ParkingID">车场编号</param> /// <param name="SystemID"></param> /// <returns></returns> public static bool WXTestClientProxyConnectionByPKID(string ParkingID) { WXServiceClient client = ServiceUtil <WXServiceClient> .GetServiceClient("WXService"); bool result = client.WXTestClientProxyConnectionByPKID(ParkingID); client.Close(); client.Abort(); return(result); }
/// <summary> /// /// </summary> /// <param name="userId">用户编号</param> /// <param name="parkingId">车场编号</param> /// <param name="gateId">通道编号</param> /// <param name="remark">备注</param> /// <returns>0-成功 1-车场网络异常 2-通道不支持远程开门 3-开闸失败</returns> public static int RemoteGate(string userId, string parkingId, string gateId, string remark) { WXServiceClient client = ServiceUtil <WXServiceClient> .GetServiceClient("WXService"); int result = client.WXRemoteGate(userId, parkingId, gateId, remark); client.Close(); client.Abort(); return(result); }
/// <summary> /// 修改商户密码 /// </summary> /// <param name="SellerID"></param> /// <param name="Pwd"></param> /// <param name="ProxyNo"></param> /// <returns></returns> public static bool WXEditSellerPwd(string SellerID, string Pwd, string ProxyNo) { WXServiceClient client = ServiceUtil <WXServiceClient> .GetServiceClient("WXService"); bool result = client.WXEditSellerPwd(SellerID, Pwd, string.Empty); client.Close(); client.Abort(); return(result); }
/// <summary> /// 判断订单是否有效 /// </summary> /// <param name="interfaceOrderId">接口订单号</param> /// <returns>0-订单已失效 1-可正常支付 2-重复支付</returns> public static int OrderWhetherEffective(string interfaceOrderId, string parkingID, string ioRecordID) { WXServiceClient client = ServiceUtil <WXServiceClient> .GetServiceClient("WXService"); int result = client.OrderWhetherEffectiveNew(interfaceOrderId, parkingID, ioRecordID); client.Close(); client.Abort(); return(result); }
/// <summary> /// 消费打折 /// </summary> /// <param name="IORecordID"></param> /// <param name="DerateID"></param> /// <param name="VID"></param> /// <param name="SellerID"></param> /// <param name="DerateMoney"></param> /// <param name="ProxyNo"></param> /// <returns></returns> public static ConsumerDiscountResult WXDiscountPlateNumber(string IORecordID, string DerateID, string VID, string SellerID, decimal DerateMoney) { WXServiceClient client = ServiceUtil <WXServiceClient> .GetServiceClient("WXService"); string result = client.WXDiscountPlateNumber(IORecordID, DerateID, VID, SellerID, DerateMoney, string.Empty); client.Close(); client.Abort(); return(JsonHelper.GetJson <ConsumerDiscountResult>(result)); }
/// <summary> /// 获取商户信息 /// </summary> /// <param name="SellerNo"></param> /// <param name="PWD"></param> /// <param name="SellerID"></param> /// <param name="ProxyNo"></param> /// <returns></returns> public static ParkSeller WXGetSellerInfo(string SellerNo, string PWD) { WXServiceClient client = ServiceUtil <WXServiceClient> .GetServiceClient("WXService"); string result = client.WXGetSellerInfo(SellerNo, PWD, string.Empty, string.Empty); client.Close(); client.Abort(); return(JsonHelper.GetJson <ParkSeller>(result)); }
/// <summary> /// 获取车牌进场信息 /// </summary> /// <param name="PlateNumber"></param> /// <param name="VID"></param> /// <param name="SellerID"></param> /// <returns></returns> public static List <ParkIORecord> WXGetIORecordByPlateNumber(string PlateNumber, string VID, string SellerID) { WXServiceClient client = ServiceUtil <WXServiceClient> .GetServiceClient("WXService"); string result = client.WXGetIORecordByPlateNumber(PlateNumber, VID, SellerID, string.Empty); client.Close(); client.Abort(); return(JsonHelper.GetJson <List <ParkIORecord> >(result)); }
/// <summary> /// 获取商户优免规则 /// </summary> /// <param name="sellerID"></param> /// <param name="VID"></param> /// <returns></returns> public static List <ParkDerate> WXGetParkDerate(string sellerID, string VID) { WXServiceClient client = ServiceUtil <WXServiceClient> .GetServiceClient("WXService"); string result = client.WXGetParkDerate(sellerID, VID, string.Empty); client.Close(); client.Abort(); return(JsonHelper.GetJson <List <ParkDerate> >(result)); }
/// <summary> /// 获取商家打折详情 /// </summary> /// <param name="parms"></param> /// <param name="rows"></param> /// <param name="pageindex"></param> /// <param name="ProxyNo"></param> /// <returns></returns> public static Pagination WXGetParkCarDerate(string parms, int rows, int pageindex) { WXServiceClient client = ServiceUtil <WXServiceClient> .GetServiceClient("WXService"); string result = client.WXGetParkCarDerate(parms, rows, pageindex, string.Empty); client.Close(); client.Abort(); return(JsonHelper.GetJson <Pagination>(result)); }
/// <summary> /// 查询微信账户信息 /// </summary> /// <param name="openId"></param> /// <returns></returns> public static WX_Info QueryWXByOpenId(string openId) { WXServiceClient client = ServiceUtil <WXServiceClient> .GetServiceClient("WXService"); string result = client.QueryWXByOpenId(openId); client.Close(); client.Abort(); return(JsonHelper.GetJson <WX_Info>(result)); }
/// <summary> /// 预约支付 /// </summary> /// <param name="ReserveID">预约ID</param> /// <param name="OrderID">订单编号</param> /// <param name="Amount">金额</param> /// <param name="PKID">车场ID</param> /// <param name="OnlineOrderID">线上订单编码</param> /// <returns></returns> public static bool WXReserveBitPay(string ReserveID, string OrderID, decimal Amount, string PKID, string OnlineOrderID) { WXServiceClient client = ServiceUtil <WXServiceClient> .GetServiceClient("WXService"); bool result = client.WXReserveBitPay(ReserveID, OrderID, Amount, PKID, OnlineOrderID); client.Close(); client.Abort(); return(result); }
/// <summary> /// 判断订单是否有效 /// </summary> /// <param name="interfaceOrderId">接口订单号</param> /// <returns>0-订单已失效 1-可正常支付 2-重复支付</returns> public static int OrderWhetherEffective(string interfaceOrderId) { WXServiceClient client = ServiceUtil <WXServiceClient> .GetServiceClient("WXService"); int result = client.OrderWhetherEffective(interfaceOrderId); client.Close(); client.Abort(); return(result); }
/// <summary> /// 临时卡缴费 /// </summary> /// <param name="OrderID"></param> /// <param name="PayWay"></param> /// <param name="Amount"></param> /// <param name="OrderSource"></param> /// <param name="ParkingID"></param> /// <param name="SystemID"></param> /// <param name="OnlineOrderID"></param> /// <returns></returns> public static TempStopPaymentResult WXTempStopPayment(string OrderID, int PayWay, decimal Amount, string ParkingID, string AccountID, string OnlineOrderID, DateTime payDate) { WXServiceClient client = ServiceUtil <WXServiceClient> .GetServiceClient("WXService"); string result = client.WXTempStopPayment(OrderID, PayWay, Amount, ParkingID, OnlineOrderID, AccountID, payDate); client.Close(); client.Abort(); return(JsonHelper.GetJson <TempStopPaymentResult>(result)); }
/// <summary> /// 解锁 /// </summary> /// <param name="accountID"></param> /// <param name="parkingID"></param> /// <param name="plateNumber"></param> /// <param name="systemID"></param> /// <returns>0成功,1代理断开,2失败</returns> public static int WXUlockCarInfo(string accountID, string parkingID, string plateNumber) { WXServiceClient client = ServiceUtil <WXServiceClient> .GetServiceClient("WXService"); int result = client.WXUlockCarInfo(accountID, parkingID, plateNumber); client.Close(); client.Abort(); return(result); }
/// <summary> /// 获取账号信息 /// </summary> /// <param name="id"></param> /// <returns></returns> public static WX_Account GetAccountByID(string accountId) { WXServiceClient client = ServiceUtil <WXServiceClient> .GetServiceClient("WXService"); string result = client.QueryAccountByAccountID(accountId); client.Close(); client.Abort(); return(JsonHelper.GetJson <WX_Account>(result)); }
/// <summary> /// 删除车牌信息 /// </summary> /// <param name="id"></param> /// <returns></returns> public static bool DelWX_CarInfo(string recordId) { WXServiceClient client = ServiceUtil <WXServiceClient> .GetServiceClient("WXService"); bool result = client.DelWX_CarInfo(recordId); client.Close(); client.Abort(); return(result); }
/// <summary> /// 修改支付车牌号(暂时无用) /// </summary> /// <param name="OpenID"></param> /// <param name="LastPlateNumber"></param> /// <returns></returns> public static bool EidtWX_infoLastPlateNumber(string OpenID, string LastPlateNumber) { WXServiceClient client = ServiceUtil <WXServiceClient> .GetServiceClient("WXService"); bool result = client.EidtWX_infoLastPlateNumber(OpenID, LastPlateNumber); client.Close(); client.Abort(); return(result); }
/// <summary> /// 添加车牌号 /// </summary> /// <param name="model"></param> /// <returns></returns> public static int AddWX_CarInfo(WX_CarInfo model) { string plate = JsonHelper.GetJsonString(model); WXServiceClient client = ServiceUtil <WXServiceClient> .GetServiceClient("WXService"); int result = client.AddWX_CarInfo(plate); client.Close(); client.Abort(); return(result); }
/// <summary> /// 车牌号缴费 /// </summary> /// <param name="PlateNumber"></param> /// <param name="CardNo"></param> /// <param name="ParkingID"></param> /// <param name="SystemID"></param> /// <param name="AccountID"></param> /// <returns></returns> public static TempParkingFeeResult WXTempParkingFee(string PlateNumber, string ParkingID, string AccountID, DateTime CalculatDate) { WXServiceClient client = ServiceUtil <WXServiceClient> .GetServiceClient("WXService"); string result = client.WXTempParkingFee(PlateNumber, ParkingID, CalculatDate, AccountID, 1); client.Close(); client.Abort(); TempParkingFeeResult model = JsonHelper.GetJson <TempParkingFeeResult>(result); try { if (!string.IsNullOrWhiteSpace(BWYInterfaceUrl) && !string.IsNullOrWhiteSpace(BWYSessionID) && !string.IsNullOrWhiteSpace(BWPKID)) { if (model.Result == APPResult.NotFindIn || model.Result == APPResult.ProxyException || model.Result == APPResult.NoTempCard || model.Result == APPResult.NotFindCard || model.Result == APPResult.OtherException) { BWYOrderQueryResult bwyResult = BWYInterfaceProcess.TempParkingFee(PlateNumber); if (bwyResult != null) { //return TransforTempParkingFeeResult(model, bwyResult, PlateNumber); model = BWYTransforTempParkingFeeResult(model, bwyResult, PlateNumber); } } } } catch (Exception ex) { TxtLogServices.WriteTxtLogEx("BWYInterfaceProcess", string.Format("WXTempParkingFee方法,异常:{0}", ex.Message)); } try { if (model.Result == APPResult.NotFindIn || model.Result == APPResult.ProxyException || model.Result == APPResult.NoTempCard || model.Result == APPResult.NotFindCard || model.Result == APPResult.OtherException) { if (!string.IsNullOrWhiteSpace(SFMInterfaceUrl) && !string.IsNullOrWhiteSpace(SFMSecretKey) && !string.IsNullOrWhiteSpace(SFMPKID)) { PlateQueryResult sfmResult = SFMInterfaceProcess.GetCarPrice(PlateNumber); if (sfmResult != null) { model = SFMTransforTempParkingFeeResult(model, sfmResult); } } } } catch (Exception ex) { TxtLogServices.WriteTxtLogEx("SFMError", string.Format("WXTempParkingFee方法,异常:{0}", ex.Message)); } return(model); }
/// <summary> /// 查询待锁车或已锁车车辆 /// </summary> /// <param name="accountID"></param> public static List <WX_LockCar> GetLockCarByAccountID(string accountID) { WXServiceClient client = ServiceUtil <WXServiceClient> .GetServiceClient("WXService"); string result = client.GetLockCarByAccountID(accountID); client.Close(); client.Abort(); if (string.IsNullOrWhiteSpace(result)) { return(new List <WX_LockCar>()); } return(JsonHelper.GetJson <List <WX_LockCar> >(result)); }