/// <summary> /// 获取订单 /// </summary> /// <param name="param"></param> /// <returns></returns> public static MobileOrderInfo order(MobileOrderParam param, MobileQueryInfo info) { param.trandateTime = SysBLL.getYYYYMMDDHHMMSSTime(); param.servicename = "YD100"; param.reqsn = SysBLL.getSerialNum(); param.loginId = SysBLL.getCpuNo(); //param.mobile =; param.authcode = SysBLL.Authcode; //param.paymentAmout =; return(mobileInterface.order(param, info)); }
/// <summary> /// 小区物业获取订单 /// </summary> /// <param name="param"></param> /// <returns></returns> public static PropOrderInfo getPropOrder(PropOrderParam param) { SysBLL.Authcode = login(); param.authcode = SysBLL.Authcode; // 认证码 not null param.servicename = "WY5102 "; // 交易号 not null param.trandateTime = SysBLL.getYYYYMMDDHHMMSSTime(); // 交易时间 格式:YYYYMMDDHHMMSS param.reqsn = SysBLL.getSerialNum(); // 请求流水号 not null param.loginId = SysBLL.getCpuNo(); // 交互终端的设备编号(用于自助终端) return(access.getPropOrder(param)); }
/// <summary> /// 提交订单 /// </summary> /// <param name="param"></param> /// <returns></returns> public static PropOrderInfo Order(PropOrderParam param) { param.authcode = SysBLL.Authcode; // 认证码 not null param.servicename = "WY008"; // 交易号 not null param.trandateTime = SysBLL.getYYYYMMDDHHMMSSTime(); // 交易时间 格式:YYYYMMDDHHMMSS param.reqsn = SysBLL.getSerialNum(); // 请求流水号 not null param.loginId = SysBLL.getCpuNo(); // 交互终端的设备编号(用于自助终端) //parameters.Add("queryid", param.queryid);// 费用编码【物业费用查询(WY004)时的queryid】 String 否 由WY002接口返回 //parameters.Add("paymentAmout", param.paymentAmout);// 缴费金额 String 否 由WY004接口返回【可单笔缴费,对应每一笔的money,可整体缴费,所有缴费金额和】 return(access.Order(param)); }
/// <summary> /// 万通卡发送短信验证码 /// </summary> /// <param name="param"></param> /// <returns></returns> public static WintopSendValidateCodeInfo sendValidateCode(WintopSendValidateCodeParam param) { WintopInterface access = new WintopInterface(); param.Authcode = WintopLogin(); param.Servicename = "WT005"; param.TrandateTime = SysBLL.getYYYYMMDDHHMMSSTime(); param.Reqsn = SysBLL.getSerialNum(); param.LoginId = SysBLL.getCpuNo(); return(access.sendValidateCode(param));; }
/// <summary> /// 冲正 /// </summary> /// <param name="param"></param> /// <returns></returns> public PayResultInfo CorrectAcc(CorrectParam param) { Dictionary <String, String> parameters = new Dictionary <String, String>(); parameters.Add("loginId", SysBLL.getCpuNo()); parameters.Add("correctMsg", param.correctMsg); parameters.Add("remarks", param.remarks); string jsonText = HttpHelper.getHttp(SysConfigHelper.readerNode("BusLoginName"), parameters, null); //反序列化JSON字符串,将JSON字符串转换成LIST列表 return(JsonConvert.DeserializeObject <PayResultInfo>(jsonText)); }
/// <summary> /// 物业2读卡 /// </summary> /// <param name="param"></param> /// <returns></returns> public PropSecQueryInfo query(PropSecQueryParam param) { param.trandateTime = SysBLL.getYYYYMMDDHHMMSSTime(); param.servicename = "SC001"; param.reqsn = SysBLL.getSerialNum(); param.loginId = SysBLL.getCpuNo(); param.authcode = login(); //param.SC10009; //param.SC10010; //param.SC10011; return(access.query(param)); }
/// <summary> /// 物业2登录认证 /// </summary> /// <param name="param"></param> /// <returns></returns> public string login() { PropSecLoginInfo info = null; PropSecLoginParam loginParam = new PropSecLoginParam(); loginParam.trandateTime = SysBLL.getYYYYMMDDHHMMSSTime(); loginParam.servicename = "DL001"; loginParam.reqsn = SysBLL.getSerialNum(); loginParam.loginId = SysBLL.getCpuNo(); SysBLL.Authcode = access.login(loginParam).msgrsp.authcode; return(access.login(loginParam).msgrsp.authcode); }
/// <summary> /// 广电提交订单 /// </summary> /// <param name="param"></param> /// <returns></returns> public static BroadCasOrderInfo order(BroadCasOrderParam param) { BroadCasInterface access = new BroadCasInterface(); param.authcode = SysBLL.Authcode; param.trandateTime = SysBLL.getYYYYMMDDHHMMSSTime(); param.servicename = "GD002"; param.reqsn = SysBLL.getSerialNum(); param.loginId = SysBLL.getCpuNo(); //设备ID param.shopType = param.shopType; //*********************************** return(access.BroadCasOrder(param)); }
public static string MobileLogin() { MobileLoginParam loginParam = new MobileLoginParam(); loginParam.trandateTime = SysBLL.getYYYYMMDDHHMMSSTime(); loginParam.servicename = "DL001"; loginParam.reqsn = SysBLL.getSerialNum(); loginParam.loginId = SysBLL.getCpuNo(); //loginParam.loginId = "92820921"; return(mobileInterface.BroadCasLogin(loginParam)); }
/// <summary> /// 物业费用查询 /// </summary> /// <param name="param"></param> /// <returns></returns> public static PropCostsQueryInfo CostQuery(PropCostsQueryParam param) { param.authcode = SysBLL.Authcode; // 认证码 not null param.servicename = "WY004"; // 交易号 not null param.trandateTime = SysBLL.getYYYYMMDDHHMMSSTime(); // 交易时间 格式:YYYYMMDDHHMMSS param.reqsn = SysBLL.getSerialNum(); // 请求流水号 not null param.loginId = SysBLL.getCpuNo(); // 交互终端的设备编号(用于自助终端) //param.queryid", param.queryid);// 房屋编码【houseid】或者车位编码【parkingid】 String 否 //param.communityid", param.communityid);// 小区编码【communityid】 String 否 //param.isPark="";// 费用编号 String 房屋费用 1,车位费用 0 return(access.CostQuery(param)); }
/// <summary> /// 广电支付通知 /// </summary> /// <param name="param"></param> /// <returns></returns> public static BroadCasPayresInfo payres(BroadCasPayresParam param) { BroadCasInterface access = new BroadCasInterface(); param.authcode = SysBLL.Authcode; param.trandateTime = SysBLL.getYYYYMMDDHHMMSSTime(); param.servicename = "DD004"; param.reqsn = SysBLL.getSerialNum(); param.loginId = SysBLL.getCpuNo(); //设备ID //param.payCode= param.payCode; //param.trandeNo=SysBLL.getSerialNum(); return(access.BroadCasPayres(param)); }
public static BusPayresInfo BusPayres(BusPayresParam param) { BusInterface access = new BusInterface(); param.authcode = SysBLL.Authcode; param.servicename = "DD004"; param.trandateTime = SysBLL.getYYYYMMDDHHMMSSTime();; param.reqsn = SysBLL.getSerialNum(); param.loginId = SysBLL.getCpuNo(); param.payCode = "Z000000004"; param.trandeNo = SysBLL.getHHMMSSITime10();; return(access.BusPayres(param)); }
/// <summary> /// 查询 /// </summary> /// <param name="param"></param> /// <returns></returns> public static MobileQueryInfo query(string mobile) { SysBLL.Authcode = MobileLogin(); MobileQueryParam param = new MobileQueryParam(); param.authcode = SysBLL.Authcode; param.servicename = "YD001"; param.trandateTime = SysBLL.getYYYYMMDDHHMMSSTime(); param.reqsn = SysBLL.getSerialNum(); param.loginId = SysBLL.getCpuNo(); param.mobile = mobile; return(mobileInterface.query(param)); }
/// <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="account"></param> /// <returns></returns> public static BroadCasQueryInfo query(string account) { BroadCasInterface access = new BroadCasInterface(); BroadCasQueryParam param = new BroadCasQueryParam(); SysBLL.Authcode = BroadCasLogin(); param.authcode = SysBLL.Authcode; param.trandateTime = SysBLL.getYYYYMMDDHHMMSSTime(); param.servicename = "GD001"; param.reqsn = SysBLL.getSerialNum(); param.loginId = SysBLL.getCpuNo(); //设备ID param.paymentno = account; return(access.BroadCasQuery(param)); }
public static GasPayresInfo Payres(GasPayresParam param) { GasInterface access = new GasInterface(); param.authcode = SysBLL.Authcode; param.servicename = "DD004"; param.trandateTime = SysBLL.getYYYYMMDDHHMMSSTime(); param.reqsn = SysBLL.getSerialNum(); //param.trandeNo = SysBLL.getYYYYMMDDHHMMSSTime(); param.loginId = SysBLL.getCpuNo(); GasPayresInfo info = access.Payres(param); return(info); }
public static WaterPayresInfo WaterPayres(WaterPayresParam param) { WaterPayresInfo info = null; WaterInterface access = new WaterInterface(); param.Authcode = SysBLL.Authcode; param.Servicename = "DD004"; param.TrandateTime = SysBLL.getYYYYMMDDHHMMSSTime();//交易时间 格式:YYYYMMDDHHMMSS param.Reqsn = SysBLL.getSerialNum(); param.LoginId = SysBLL.getCpuNo(); //param.trandeNo= SysBLL.getSerialNum(); info = access.WaterPayres(param); return(info); }
/// <summary> /// 物业支付通知 /// </summary> /// <param name="param"></param> /// <returns></returns> public static PropPayResInfo payRes(PropPayResParam param) { param.authcode = SysBLL.Authcode; // 认证码 not null param.servicename = "DD004"; // 交易号 not null param.trandateTime = SysBLL.getYYYYMMDDHHMMSSTime(); // 交易时间 格式:YYYYMMDDHHMMSS param.reqsn = SysBLL.getSerialNum(); // 请求流水号 not null param.loginId = SysBLL.getCpuNo(); // 交互终端的设备编号(用于自助终端) //param.orderno", param.orderno);// 订单编号 not null //param.mobile", param.mobile);// 缴费电话号码 Not null //param.chargeseids", param.chargeseids);// 费用编码 String 否 WY004返回的chargeid。多个使用“-”分隔 【单笔缴费传单笔缴费金额对应的chargeid 多笔合计缴费传多笔对应的chargeid,'-'连接】 //param.trandeNo", param.trandeNo);// 支付渠道交易流水号 not null【银行支付流水号】 //param.realAmout", param.realAmout);// 实际支付金额 not null //param.payCode", param.payCode);// 支付渠道编码 not null return(access.payRes(param)); }
/// <summary> /// 万通卡密码修改 /// </summary> /// <param name="param"></param> /// <returns></returns> public static WintopUpdateWtPwdInfo updateWtPwd(WintopUpdateWtPwdParam param) { WintopInterface access = new WintopInterface(); param.Authcode = WintopLogin(); param.Servicename = "WT101"; param.TrandateTime = SysBLL.getYYYYMMDDHHMMSSTime(); param.Reqsn = SysBLL.getSerialNum(); param.LoginId = SysBLL.getCpuNo(); //wtcardid //newpassword //password //type return(access.updateWtPwd(param));; }
/// <summary> /// 万通卡充值明细查询 /// </summary> /// <param name="param"></param> /// <returns></returns> public static WintopRechargeDetailInfo RechargeDetail(WintopRechargeDetailParam param) { WintopInterface access = new WintopInterface(); param.Authcode = WintopLogin(); param.Servicename = "WT009"; param.TrandateTime = SysBLL.getYYYYMMDDHHMMSSTime(); param.Reqsn = SysBLL.getSerialNum(); param.LoginId = SysBLL.getCpuNo(); //wtcardid //password //pageNo //pageSize return(access.RechargeDetail(param));; }
/// <summary> /// 充值优惠信息查询 /// </summary> /// <param name="param"></param> /// <returns></returns> public WintopDiscountInfo queryDiscount(WintopDiscountParam param) { Dictionary <String, String> parameters = new Dictionary <String, String>(); parameters.Add("authcode", param.authcode); parameters.Add("servicename", "WT103"); parameters.Add("trandateTime", SysBLL.getYYYYMMDDHHMMSSTime()); parameters.Add("reqsn", SysBLL.getSerialNum()); parameters.Add("loginId", SysBLL.getCpuNo()); parameters.Add("wtcardid", param.wtcardid); string jsonText = HttpHelper.getHttp(SysConfigHelper.readerNode("queryDiscountName"), parameters, null); //反序列化JSON字符串,将JSON字符串转换成LIST列表 return(JsonConvert.DeserializeObject <WintopDiscountInfo>(jsonText)); }
public static ElecQueryUserInfo QueryUser(string account) { ElecInterface access = new ElecInterface(); ElecQueryUserParam param = new ElecQueryUserParam(); param.authcode = SysBLL.Authcode; // 认证码 not null param.servicename = "DW005"; // 交易编号 not null param.trandateTime = SysBLL.getYYYYMMDDHHMMSSTime(); //交易时间 格式:YYYYMMDDHHMMSS param.reqsn = SysBLL.getSerialNum(); //请求流水号 not null param.yhbh = account; //缴费户号 not null 44646465 param.queryId = "01"; //查询条件 not null【01 - 新户号 02 - 原户号 03 - 户名】 param.loginId = SysBLL.getCpuNo(); //交互终端的设备编号(用于自助终端) not null ElecQueryUserInfo info = access.ElecQueryUser(param); return(info); }
/// <summary> /// 查询水务 /// </summary> /// <param name="paymentno">户号</param> /// <returns></returns> public static WaterQueryInfo WaterQuery(string paymentno) { SysBLL.Authcode = WaterLogin(); WaterInterface access = new WaterInterface(); WaterQueryParam param = new WaterQueryParam(); WaterQueryInfo info = null; param.authcode = SysBLL.Authcode; // 认证码 not null param.servicename = "SW001"; //交易编号 not null param.trandateTime = SysBLL.getYYYYMMDDHHMMSSTime(); //交易时间 格式:YYYYMMDDHHMMSS param.reqsn = SysBLL.getSerialNum(); //请求流水号 not null param.paymentno = paymentno; //缴费户号 not null param.loginId = SysBLL.getCpuNo(); //交互终端的设备编号(用于自助终端) not null info = access.WaterQuery(param); return(info); }
/// <summary> /// 查询电费 /// </summary> /// <param name="account"></param> /// <returns></returns> public static ElecQueryElecInfo QueryElec(string account) { SysBLL.Authcode = ElecLogin(); ElecInterface access = new ElecInterface(); ElecQueryElecParam param = new ElecQueryElecParam(); param.authcode = SysBLL.Authcode;; // 认证码 not null param.servicename = "DW001"; //交易编号 not null param.trandateTime = SysBLL.getYYYYMMDDHHMMSSTime(); //交易时间 格式:YYYYMMDDHHMMSS param.reqsn = SysBLL.getSerialNum(); //请求流水号 not null param.yhbh = account; //用户名 not null param.loginId = SysBLL.getCpuNo(); //交互终端的设备编号(用于自助终端) not null ElecQueryElecInfo info = access.ElecQueryElec(param); return(info); }
/// <summary> /// 物业2提交订单 /// </summary> /// <param name="param"></param> /// <returns></returns> public PropSecOrderInfo order(PropSecOrderParam param) { param.trandateTime = SysBLL.getYYYYMMDDHHMMSSTime(); param.servicename = "SC002"; param.reqsn = SysBLL.getSerialNum(); param.loginId = SysBLL.getCpuNo(); param.authcode = login(); //param.shopType //param.AMOUNT //param.paymentAmout //param.SC10009 //param.SC10010 //param.SC10007 //param.SC10008 return(access.order(param)); }
/// <summary> /// 退款 /// </summary> /// <param name="param"></param> /// <returns></returns> public PayResultInfo RefundAcc(RefundParam param) { Dictionary <String, String> parameters = new Dictionary <String, String>(); parameters.Add("loginId", SysBLL.getCpuNo()); parameters.Add("reqsn", SysBLL.getSerialNum()); parameters.Add("refundType", param.refundType); parameters.Add("authcode", param.authcode); parameters.Add("orderno", param.orderno); parameters.Add("refundMsg", param.refundMsg); parameters.Add("remarks", param.remarks); string jsonText = HttpHelper.getHttp(SysConfigHelper.readerNode("BusLoginName"), parameters, null); //反序列化JSON字符串,将JSON字符串转换成LIST列表 return(JsonConvert.DeserializeObject <PayResultInfo>(jsonText)); }
/// <summary> /// 热力查询 /// </summary> /// <param name="paymentno"></param> /// <returns></returns> public static HeatQueryInfo HeatQuery(string paymentno) { SysBLL.Authcode = HeatLogin(); HeatInterface access = new HeatInterface(); HeatQueryParam param = new HeatQueryParam(); param.authcode = SysBLL.Authcode; param.servicename = "RL001"; param.trandateTime = SysBLL.getYYYYMMDDHHMMSSTime(); param.reqsn = SysBLL.getSerialNum(); param.loginId = SysBLL.getCpuNo(); param.paymentno = paymentno; HeatQueryInfo info = access.HeatQuery(param); return(info); }
public static BusCpuCardInfo GetOrder(BusReChangeParam busReChangeParam, BusCpuCardParam param, string paycode) { Boolean isSuccess = false; //签到 BusRegisterInfo busRegisterInfo = BusAccess.BusRegister(); if (busRegisterInfo.cpumsg.OUTPUT != null) { isSuccess = true; } if (isSuccess == false) { throw new WtException(WtExceptionCode.Bus.BUS_PAY); } isSuccess = false; //公交卡充值 param.authcode = SysBLL.Authcode;; // 认证码 not null param.servicename = "DD006"; //交易类型编号 not null param.trandateTime = SysBLL.getYYYYMMDDHHMMSSTime(); //交易日期:YYYYMMDDHHMMSS not null param.resqn = SysBLL.getSerialNum(); //请求流水号 not null param.paymentno = busReChangeParam.paymentno; //用户名 用户编号 not null param.paymentAmout = busReChangeParam.paymentAmout + "00"; //账单金额 not null param.billDate = DateTime.Now.Year.ToString(); //账单日期 not null param.merchantNo = "S000000200"; //缴费单位编号 not null param.step = "0"; //执行第几步 Not null param.money = busReChangeParam.paymentAmout + "00"; //充值金额 Not null param.serno = SysBLL.getSerialNum().Substring(0, 12); //业务流水号 not null param.appsid = busReChangeParam.appsid; //应用序列号 param.btype = "1931"; //业务类型 not null param.opno = busRegisterInfo.cpumsg.OUTPUT.OPNO; //操作员卡号 not null param.scode = busRegisterInfo.cpumsg.OUTPUT.SCODE; //签到码 not null param.terno = SysBLL.getMac(); //终端编号 Not null param.loginId = SysBLL.getCpuNo(); //设备ID param.CMTYPE = "0"; param.WMONEY = busReChangeParam.wmoney; param.inapdu = "no"; param.tradeno = busReChangeParam.trandeNo; //param.payCode = paycode; //param.orderno = busReChangeParam.orderno; BusInterface access = new BusInterface(); BusCpuCardInfo busCpuCardInfo1 = access.BusCpuCard(param); // orderno = busCpuCardInfo1.msgrsp.orderno; return(busCpuCardInfo1); }
/// <summary> /// 万通挂失 /// </summary> /// <param name="param"></param> /// <returns></returns> public static WintopLossReportInfo LossReport(WintopLossReportParam param) { WintopInterface access = new WintopInterface(); WintopLossReportInfo wintopLossReportInfo = null; param.Authcode = WintopLogin(); param.Servicename = "WT004"; param.TrandateTime = SysBLL.getYYYYMMDDHHMMSSTime(); param.Reqsn = SysBLL.getSerialNum(); param.LoginId = SysBLL.getCpuNo(); //parameters.Add("wtcardid", param.Wtcardid); //parameters.Add("validatecode", param.Validatecode); //反序列化JSON字符串,将JSON字符串转换成LIST列表 wintopLossReportInfo = access.LossReport(param); return(wintopLossReportInfo); }
private string SendRefundRequest(string authcode, string serviceName, string orderNo, string transType, string conName, string reqsn, string trandNo, string rqFlushesCode) { Dictionary <String, String> parameters = new Dictionary <String, String>(); parameters.Add("servicename", serviceName); // TK001 not null parameters.Add("loginId", SysBLL.getCpuNo()); //交互终端的设备编号(用于自助终端)not null parameters.Add("authcode", authcode); // 认证码 not null //parameters.Add("reqsn", SysBLL.getSerialNum());//请求流水号 not null parameters.Add("trandateTime", SysBLL.getYYYYMMDDHHMMSSTime()); // 交易时间 格式:YYYYMMDDHHMMSS not null parameters.Add("orderno", orderNo); //订单编号 not null parameters.Add("transType", transType); //线上线下 not null parameters.Add("conName", conName); parameters.Add("reqsn", reqsn); parameters.Add("trandeNo", trandNo); parameters.Add("rqFlushesCode", rqFlushesCode); return(HttpHelper.getHttp(SysConfigHelper.readerNode("refund"), parameters, null)); }