Exemple #1
0
 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("");
 }
Exemple #2
0
        /// <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));
        }
Exemple #3
0
        /// <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));
        }
Exemple #4
0
        /// <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));
        }