Beispiel #1
0
 /// <summary>
 /// 挂失
 /// </summary>
 private void lossReport()
 {
     try {
         step2.Dispatcher.Invoke(new setTextBlockDelegate(setTextBlock), step2, "挂失");
         step3.Dispatcher.Invoke(new setTextBlockDelegate(setTextBlock), step3, "验证");
         WintopLossReportInfo info = WintopAccess.LossReport(Payment.wintopReChargeParam.WintopLossReportParam);
         if ("0000".Equals(info.msgrsp.retcode))
         {
             showInfo("挂失成功");
             //img1.Dispatcher.Invoke(new setImageImgDelegate(setImageImg),img1,succcesImage);
         }
         else
         {
             if (info.msgrsp.retshow.Length != 0)
             {
                 showInfo(info.msgrsp.retshow);
             }
             else
             {
                 showInfo("万通卡挂失失败");
             }
             //img1.Dispatcher.Invoke(new setImageImgDelegate(setImageImg), img1, errorImage);
         }
     }
     catch (ThreadAbortException ae) { log.Write("error:FormCitizenStepLoad:" + ae.Message); }
     catch (Exception ex)
     {
         log.Write("error:FormCitizenStepLoad:lossReport():" + ex.Message);
         showInfo("万通卡挂失失败");
         //img1.Dispatcher.Invoke(new setImageImgDelegate(setImageImg), img1, errorImage);
     }
 }
Beispiel #2
0
        /// <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);
        }
Beispiel #3
0
        /// <summary>
        /// 万通卡挂失
        /// </summary>
        /// <param name="param"></param>
        /// <returns></returns>
        public WintopLossReportInfo LossReport(WintopLossReportParam param)
        {
            WintopLossReportInfo        wintopLossReportInfo = null;
            Dictionary <String, String> parameters           = new Dictionary <String, String>();

            parameters.Add("authcode", param.Authcode);
            parameters.Add("servicename", param.Servicename);
            parameters.Add("trandateTime", param.TrandateTime);
            parameters.Add("reqsn", param.Reqsn);
            parameters.Add("wtcardid", param.Wtcardid);
            parameters.Add("loginId", param.LoginId);
            parameters.Add("validatecode", param.Validatecode);

            string jsonText = HttpHelper.getHttp(SysConfigHelper.readerNode("WintoplossReport"), parameters, null);

            //反序列化JSON字符串,将JSON字符串转换成LIST列表
            wintopLossReportInfo = JsonConvert.DeserializeObject <WintopLossReportInfo>(jsonText);

            return(wintopLossReportInfo);
        }