public static ElecPayresInfo HeatPayres(ElecPayresParam payParam, string payCode) { ElecInterface access = new ElecInterface(); ElecPayresParam parameters = new ElecPayresParam(); parameters.authcode = SysBLL.Authcode; parameters.servicename = "DD004"; parameters.trandateTime = SysBLL.getYYYYMMDDHHMMSSTime(); parameters.reqsn = SysBLL.getSerialNum(); parameters.loginId = SysBLL.getCpuNo(); parameters.orderno = payParam.orderno; parameters.realAmout = payParam.realAmout; //账单金额 parameters.payCode = payCode; //支付渠道编码 parameters.trandeNo = payParam.trandeNo; //支付渠道交易流水号 parameters.dzpc = payParam.dzpc; // parameters.yhbh = payParam.yhbh; parameters.ysje = payParam.ysje; parameters.isPrint = payParam.isPrint; parameters.jfbs = payParam.jfbs; parameters.jfmx = payParam.jfmx; parameters.terminalNo = payParam.terminalNo; ElecPayresInfo info = access.HeatPayres(parameters); return(info); }
public static WintopPayresInfo payres(WintopReChargeParam wintopReChargeParam) { WintopPayresInfo info = null; WintopInterface access = new WintopInterface(); WintopPayresParam wintopPayresParam = new WintopPayresParam(); wintopPayresParam.authcode = SysBLL.Authcode; // 认证码 not null wintopPayresParam.servicename = "DD004"; //交易号 wintopPayresParam.trandateTime = SysBLL.getYYYYMMDDHHMMSSTime(); //交易时间 wintopPayresParam.reqsn = SysBLL.getSerialNum(); //请求流水号 wintopPayresParam.loginId = SysBLL.getCpuNo(); //设备ID wintopPayresParam.orderno = wintopReChargeParam.WintopOrderInfo.msgrsp.orderNo; //订单编号 not null wintopPayresParam.realAmout = wintopReChargeParam.WintopOrderInfo.msgrsp.realAmout; // 账单金额 Not null 【根据查询产生的账单金额】 wintopPayresParam.payCode = wintopReChargeParam.PayCode; wintopPayresParam.trandeNo = wintopReChargeParam.TradeNo; // 支付渠道交易流水号 not null【银行支付流水号】 wintopPayresParam.wtcardid = wintopReChargeParam.WintopOrderInfo.msgrsp.wtcardid; //万通卡号【获取万通卡信息接口方法返回即query方法返回】 wintopPayresParam.wtuserid = wintopReChargeParam.WintopQueryResult.USERID; //用户编号【获取万通卡信息接口方法返回即query方法返回】 wintopPayresParam.type = wintopReChargeParam.WintopQueryResult.TYPE; //账户类型【获取万通卡信息接口方法返回即query方法返回】 wintopPayresParam.terminalNo = wintopReChargeParam.TerminalNo; //终端编号 not null wintopPayresParam.terminalno = wintopReChargeParam.Terminalno; //终端编号 not null wintopPayresParam.operators = "162"; //操作员编号 not null wintopPayresParam.deptno = "0108"; //网点编号 not null info = access.payres(wintopPayresParam); return(info); }
public static string getSystemTime() { log.Write("XXXXXXXXXXXXXX广电登录认证:获取时间"); try { BroadCasInterface access = new BroadCasInterface(); BroadCasLoginParam param = new BroadCasLoginParam(); param.trandateTime = SysBLL.getYYYYMMDDHHMMSSTime(); param.servicename = "DL001"; param.reqsn = SysBLL.getSerialNum(); param.loginId = SysBLL.getCpuNo(); //设备ID BroadCasLoginInfo info = access.BroadCasLogin(param); if (info != null) { if (info.msgrsp != null) { if (info.msgrsp.authcode != null) { return(info.msghead.trandatetime); } } } }catch (Exception ex) { log.Write("error:getSystemTime" + ex.Message); } return(""); }
public static string ElecLogin() { //电力登录认证 ElecInterface access = new ElecInterface(); ElecLoginParam param = new ElecLoginParam(); param.trandateTime = SysBLL.getYYYYMMDDHHMMSSTime(); //交易时间 格式:YYYYMMDDHHMMSS param.servicename = "DL001"; //交易号 not null param.reqsn = SysBLL.getSerialNum(); //请求流水号 not null param.loginId = SysBLL.getCpuNo(); //设备ID ElecLoginInfo info = access.ElecLogin(param); //同步系统时间 SysBLL.SetSystemTime(info.msghead.trandatetime); if (info != null) { if (info.msgrsp != null) { if (info.msgrsp.authcode != null) { return(info.msgrsp.authcode); } } } return(null); }
private string RefundRequestLogin(string type) { if ("bus".Equals(type)) { BusInterface access = new BusInterface(); BusLoginParam param = new BusLoginParam(); param.trandateTime = SysBLL.getYYYYMMDDHHMMSSTime(); param.servicename = "DL001"; param.resqn = SysBLL.getSerialNum(); param.loginId = SysBLL.getCpuNo(); //设备ID BusLoginInfo info = access.BusLogin(param); if (info != null) { if (info.msgrsp != null) { if (info.msgrsp.authcode != null) { return(info.msgrsp.authcode); } } } return(null); } else { return(SysBLL.Authcode); } }
/// <summary> /// 公交登陆认证 /// </summary> /// <returns></returns> public static string BusLogin() { BusInterface access = new BusInterface(); BusLoginParam param = new BusLoginParam(); param.trandateTime = SysBLL.getYYYYMMDDHHMMSSTime(); param.servicename = "DL001"; param.resqn = SysBLL.getSerialNum(); param.loginId = SysBLL.getCpuNo(); //设备ID BusLoginInfo info = access.BusLogin(param); //同步系统时间 SysBLL.SetSystemTime(info.msghead.trandatetime); if (info != null) { if (info.msgrsp != null) { if (info.msgrsp.authcode != null) { return(info.msgrsp.authcode); } } } return(null); }
/// <summary> /// 公交签到 /// </summary> /// <returns></returns> public static BusRegisterInfo BusRegister() { SysBLL.Authcode = BusLogin(); string reqsn = SysBLL.getSerialNum(); //公交卡签到 BusInterface access = new BusInterface(); BusRegisterParam param = new BusRegisterParam(); param.authcode = SysBLL.Authcode; // 认证码 not nullA param.servicename = "DL002"; //交易类型编号 not nullA param.trandateTime = SysBLL.getYYYYMMDDHHMMSSTime(); //交易日期 YYYYMMDDHHMMSS not nullA param.resqn = reqsn; //请求流水号 not nullA param.btype = "0010"; //业务类型 not nullA param.terno = SysBLL.getMac(); //终端编号 not nullA param.tradeno = SysBLL.getHHMMSSITime10(); //交易流水号 not nullA param.loginId = SysBLL.getCpuNo(); //设备ID BusRegisterInfo busRegisterInfo1 = access.BusRegister(param); param.btype = "0011"; //业务类型 not nullA param.authcode = busRegisterInfo1.msgrsp.authcode; // 认证码 not nullA param.opno = busRegisterInfo1.cpumsg.OUTPUT.OPNO; //操作员卡号 null param.random = busRegisterInfo1.cpumsg.OUTPUT.RANDOM; BusRegisterInfo busRegisterInfo2 = access.BusRegister(param); busRegisterInfo2.msgrsp = new BusRegisterMsgrsp(); busRegisterInfo2.msgrsp.authcode = busRegisterInfo1.msgrsp.authcode; busRegisterInfo2.cpumsg.OUTPUT.OPNO = busRegisterInfo1.cpumsg.OUTPUT.OPNO; return(busRegisterInfo2); }
/// <summary> /// 万通卡登陆认证 /// </summary> /// <returns></returns> public static string WintopLogin() { //万通卡登录认证 WintopInterface access = new WintopInterface(); WintopLoginParam param = new WintopLoginParam(); param.trandateTime = SysBLL.getYYYYMMDDHHMMSSTime(); //交易时间 格式:YYYYMMDDHHMMSS param.servicename = "DL001"; //交易号 not null param.resqn = SysBLL.getSerialNum(); //请求流水号 not null param.loginId = SysBLL.getCpuNo(); //设备ID WintopLoginInfo info = access.WintopLogin(param); //同步系统时间 SysBLL.SetSystemTime(info.msghead.trandatetime); if (info != null) { if (info.msgrsp != null) { if (info.msgrsp.authcode != null) { SysBLL.Authcode = info.msgrsp.authcode; return(info.msgrsp.authcode); } } } return(null); }
/// <summary> /// 燃气卡认证登录 /// </summary> /// <param name="loginParam"></param> /// <returns></returns> public string GasLogin() { GasLoginInfo info = null; Dictionary <String, String> parameters = new Dictionary <String, String>(); try { parameters.Add("trandateTime", SysBLL.getYYYYMMDDHHMMSSTime()); parameters.Add("servicename", "DL001"); parameters.Add("reqsn", SysBLL.getSerialNum()); parameters.Add("loginId", SysBLL.getCpuNo()); string jsonText = jsonText = HttpHelper.getHttp(SysConfigHelper.readerNode("GasLoginName"), parameters, null); //反序列化JSON字符串,将JSON字符串转换成LIST列表 info = JsonConvert.DeserializeObject <GasLoginInfo>(jsonText); //同步系统时间 SysBLL.SetSystemTime(info.msghead.trandatetime); GasShowInfo.rqhints = info.msgtext.rqhints; if (info != null) { if (info.msgrsp != null) { if (info.msgrsp.authcode != null) { return(info.msgrsp.authcode); } } } }catch (Exception ex) { log.Write("error:燃气登录认证异常:" + ex.Message); } return(""); }
/// <summary> /// 小区物业缴费信息查询 /// </summary> /// <param name="param"></param> /// <returns></returns> public static PropFeeQueryInfo PropFeeQuery(PropFeeQueryParam param) { param.authcode = login(); // 认证码 not null param.servicename = "WY5101"; // 交易号 not null param.trandateTime = SysBLL.getYYYYMMDDHHMMSSTime(); // 交易时间 格式:YYYYMMDDHHMMSS param.reqsn = SysBLL.getSerialNum(); // 请求流水号 not null param.loginId = SysBLL.getCpuNo(); // 交互终端的设备编号(用于自助终端) return(access.PropFeeQuery(param)); }
/// <summary> /// 登录认证 /// </summary> /// <returns></returns> public static string login() { ElecLoginParam param = new ElecLoginParam(); param.trandateTime = SysBLL.getYYYYMMDDHHMMSSTime(); //交易时间 格式:YYYYMMDDHHMMSS param.servicename = "DL001"; //交易号 not null param.reqsn = SysBLL.getSerialNum(); //请求流水号 not null param.loginId = SysBLL.getCpuNo(); //设备ID return(access.Login(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 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 UnicomPayResInfo payres(UnicomPayResParam param) { param.authcode = SysBLL.Authcode; param.servicename = "DD004"; param.trandateTime = SysBLL.getYYYYMMDDHHMMSSTime(); param.reqsn = SysBLL.getSerialNum(); param.loginId = SysBLL.getCpuNo(); //param.trandeNo = SysBLL.getSerialNum(); //param.payCode = "Z000000004"; return(access.payres(param)); }
/// <summary> /// 查询表具列表 /// </summary> /// <param name="SC10007"></param> /// <param name="SC10008"></param> /// <returns></returns> public PropMeterInfo queryMeter(string SC10007, string SC10008) { PropSecOrderParam param = new PropSecOrderParam(); param.trandateTime = SysBLL.getYYYYMMDDHHMMSSTime(); param.servicename = "SC003"; param.reqsn = SysBLL.getSerialNum(); param.loginId = SysBLL.getCpuNo(); param.authcode = login(); return(access.queryMeter(param, SC10007, SC10008)); }
/// <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> /// 物业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> /// 物业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> /// 物业费用查询 /// </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 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 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="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 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)); }
/// <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)); }
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)); }
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); }
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); }
/// <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)); }
/// <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));; }