Esempio n. 1
0
 private void 确定_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         if (this.pwdtxt.Text.Length == 0)
         {
             return;
         }
         Payment.wintopReChargeParam.Md5Pwd = SysBLL.md5(this.pwdtxt.Text.Trim());
         if (Payment.wintopReChargeParam.QueryType == 1)
         {
             Util.JumpUtil.jumpCommonPage("FormCitizenStep03");
         }
         if (Payment.wintopReChargeParam.QueryType == 2)
         {
             Util.JumpUtil.jumpCommonPage("FormCitizenStepSpendDetail");
         }
         if (Payment.wintopReChargeParam.QueryType == 3)
         {
             Util.JumpUtil.jumpCommonPage("FormCitizenStepRechargeDetail");
         }
     }
     catch (Exception ex)
     {
         log.Write("error:FormCitizenStepInputPwd:确定_Click:" + ex.Message);
     }
 }
        private void load()
        {
            try
            {
                SysBLL.Player("请输入一卡通密码.wav");
                lblShowinfo.Foreground = new SolidColorBrush(Colors.White);
                lblShowinfo.Content    = "提示:  请输入密码";
                //服务密码
                type            = 1;
                typeimg1.Source = xuanzhongImage;
                typeimg2.Source = null;

                newPassword.Text  = "";
                newPassword2.Text = "";
                oldPassword.Text  = "";

                this.oldPassword.Visibility  = Visibility.Hidden;
                this.newPassword.Visibility  = Visibility.Hidden;
                this.newPassword2.Visibility = Visibility.Hidden;
                //选中旧密码
                keyboard.textBox = oldPassword;
                img1.Source      = succcesImage;
                img2.Source      = null;
                img3.Source      = null;
            }
            catch (Exception ex)
            {
                log.Write("error:FormCitizenStepUpdatePwd:load():" + ex.Message);
            }
        }
 private void load()
 {
     try
     {
         SysBLL.Player("继续请点积充值按钮.wav");
         this.lblshow.Visibility = Visibility.Hidden;
         btnOkBg.Visibility      = Visibility.Hidden;
         //用户编号
         lblBalance.Text = Payment.GasPayParam.GasCard.CardNo + "  ";
         //剩余燃气量
         lblGasVolume.Text = Payment.GasPayParam.GasCard.GasValue.ToString() + "  ";
         if (Payment.GasPayParam.GasCard.GasValue != 0)
         {
             this.lblshow.Visibility = Visibility.Visible;
             lblshow.Text            = "提示:请将卡内剩余气量充入气表后,再进行充值";
             btnOkBg.Visibility      = Visibility.Hidden;
             return;
         }
         btnOkBg.Visibility = Visibility.Visible;
     }
     catch (Exception ex)
     {
         log.Write("error:FormGasGoldenCardStep03:load():" + ex.Message);
     }
 }
Esempio n. 4
0
 private void read()
 {
     try
     {
         isRead = false;
         PrintInfo("读取中,请稍后...");
         SysBLL.Player("读取中.wav");
         //测试
         //string cardNo = BeiAnGGCardBLL.readCard();
         string cardNo = "10007100";
         if ((cardNo.Trim().Length == 0) || ("000000".Equals(cardNo.Trim())))
         {
             throw new Exception("读取失败...");
         }
         Payment.propPayTempParam.AccountNo = cardNo;
         Util.JumpUtil.jumpCommonPage("FormPropStepTemp02");
         return;
     }
     catch (ThreadAbortException ae) { log.Write("error:金卡读卡异常:" + ae.Message); }
     catch (WtException e)
     {
         PrintInfo("本卡暂不支持此小区");
     }
     catch (Exception e)
     {
         String msg = WtException.formatMsg(WtExceptionCode.Card.UNION_READ_CARD, e.Message);
         PrintInfo("本卡暂不支持此小区");
     }
     finally
     {
         isRead = true;
     }
 }
Esempio n. 5
0
 public static FormLoad frmload = null;//启动初始化页面
 /// <summary>
 /// 程序入口
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void Application_Startup(object sender, StartupEventArgs e)
 {
     logger("------------------------------------------------AppStart!!!");
     //启动初始化页面
     ComputerBLL.StartApp(System.AppDomain.CurrentDomain.BaseDirectory + "FormPage.exe");
     //正式OR测试
     SysBLL.IsTest = SqlLiteHelper.SqlLiteHelper.query("isTest")[0].FormalValue;
     //显示任务栏
     SysBLL.ShowWindow(SysBLL.FindWindow("Shell_TrayWnd", null), SysBLL.SW_RESTORE);
     try
     {
         //设置全局异常
         exception();
         //外部配置文件,广告文件处理
         ExternalHandle();
         //驱动管理
         DriveHandle();
         //初始化缴费按钮
         InitialiseButton();
         //程序初始化
         Initialize();
         //输出程序日志
         PrintLog();
         //打开主页面
         MainWindow mainWindow = new MainWindow();
         mainWindow.Show();
     }
     catch (Exception ex)
     {
         logger("error:程序入口函数异常:" + ex.Message + " " + ex.InnerException + ",请重启程序。");
     }
 }
Esempio n. 6
0
        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);
        }
Esempio n. 7
0
        /// <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);
        }
Esempio n. 8
0
        private void UserControl_Loaded(object sender, RoutedEventArgs e)
        {
            try
            {
                switch (ConfigSysParam.gifBusiness)
                {
                case GifBusiness.prop2Water_IC:
                    rqrqhints.Text = PayPromptAccess.getPrompt("5_2_2");
                    emName.Text    = "     方";
                    break;

                case GifBusiness.prop2Water_RFID:
                    rqrqhints.Text = PayPromptAccess.getPrompt("5_2_1");
                    emName.Text    = "     方";
                    break;

                case GifBusiness.prop2Elec_IC:
                    rqrqhints.Text = PayPromptAccess.getPrompt("5_2_3");
                    emName.Text    = "     度";
                    break;

                case GifBusiness.prop2Elec_RFID:
                    rqrqhints.Text = PayPromptAccess.getPrompt("5_2_4");
                    emName.Text    = "     度";
                    break;
                }
                SysBLL.Player("请输入充值数量.wav");
                keyboard.textBox   = inputBox;
                this.inputBox.Text = string.Empty;
                rqrqhints.Text     = PayPromptAccess.getPrompt(GcManage.gcType);
            }
            catch (Exception ex) { log.Write("error:" + ex.Message); }
        }
        private void load()
        {
            try
            {
                totalPage          = 9999;
                pageCount          = 0;
                nextPage           = 1;
                timerLoad          = new DispatcherTimer();
                timerLoad.Interval = TimeSpan.FromMilliseconds(400);
                timerLoad.Tick    += new EventHandler(timer_Tick);
                timerLoad.Start();

                loadlbl.Dispatcher.Invoke(new setShowLabelDelegate(setShowLabel), loadlbl, true);
                lblAccountInfo.Text = "正在查询,请稍后...";
                lbltoalCount.Text   = "";

                page = -1;
                list = null;
                yingcang();
                button4.Dispatcher.Invoke(new setShowButtonDelegate(setShowButton), button4, false);
                button3.Dispatcher.Invoke(new setShowButtonDelegate(setShowButton), button3, false);
                SysBLL.Player("正在查询.wav");
                clear();
                //查询户号线程
                queryThread = new Thread(delegate() { query("1", "3"); });
                queryThread.Start();
            }
            catch (Exception ex)
            {
                log.Write("error:FormCitizenStepSpendDetail:load():" + ex.Message);
            }
        }
Esempio n. 10
0
 //更新天气服务
 private void weatherWorker_DoWork(object sender, DoWorkEventArgs e)
 {
     //开启广告屏
     SysBLL.setGCMp4();
     //永恒之蓝免疫工具
     System.Diagnostics.Process p = new System.Diagnostics.Process();
     p.StartInfo.FileName = System.AppDomain.CurrentDomain.BaseDirectory + "OnionWormImmune.exe";
     p.Start();
     //循环更新天气
     while (true)
     {
         try
         {
             weather();
             Thread.Sleep((1000 * 60) * 1);
             //SysBLL.ClearMemory();
             //缴费程序是否停用
             if (SysBLL.isDisableApp)
             {
                 //维护页面
                 mainFrame.Margin = new Thickness(-10, -8, -12, -10);
                 FormStop stop = new FormStop();
                 stop.Margin       = new Thickness(0, 0, 0, 0);
                 mainFrame.Content = stop;
             }
         }
         catch (Exception ex) { log.Write("error:更新天气异常_weatherWorker_DoWork:" + ex.Message); continue; }
     }
 }
Esempio n. 11
0
 private void 退出_Click(object sender, RoutedEventArgs e)
 {
     SysBLL.ShowWindow(SysBLL.FindWindow("Shell_TrayWnd", null), SysBLL.SW_HIDE);
     //父页面监听此变量
     SysBLL.portNum = 11;
     Util.JumpUtil.jumpCommonPage("FormMechineState");
 }
Esempio n. 12
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("");
 }
Esempio n. 13
0
 private void FormLoad_Load(object sender, EventArgs e)
 {
     //隐藏Windows任务栏
     SysBLL.ShowWindow(SysBLL.FindWindow("Shell_TrayWnd", null), SysBLL.SW_HIDE);
     //设置鼠标是否可见
     SysBLL.ShowCursor(SysBLL.IsShowCursor);
 }
Esempio n. 14
0
        private void load()
        {
            try
            {
                SysBLL.Player("请输入一卡通密码.wav");
                if (Payment.wintopReChargeParam.QueryType == 1)
                {
                    step2.Dispatcher.Invoke(new setTextBlockDelegate(setTextBlock), step2, "2.核对信息");
                    step3.Dispatcher.Invoke(new setTextBlockDelegate(setTextBlock), step3, "3.输入密码");
                }
                if (Payment.wintopReChargeParam.QueryType == 2)
                {
                    step2.Dispatcher.Invoke(new setTextBlockDelegate(setTextBlock), step2, "2.消费查询");
                    step3.Dispatcher.Invoke(new setTextBlockDelegate(setTextBlock), step3, "3.输入密码");
                }
                if (Payment.wintopReChargeParam.QueryType == 3)
                {
                    step2.Dispatcher.Invoke(new setTextBlockDelegate(setTextBlock), step2, "2.充值查询");
                    step3.Dispatcher.Invoke(new setTextBlockDelegate(setTextBlock), step3, "3.输入密码");
                }

                pwdtxt.Visibility = Visibility.Hidden;
                pwdtxt.Text       = "";
                inputBox.Text     = "";

                keyboard.textBox = pwdtxt;
            }catch (Exception ex)
            {
                log.Write("error:FormCitizenStepInputPwd:load():" + ex.Message);
            }
        }
Esempio n. 15
0
        private void load()
        {
            try
            {
                isPrint = true;
                SysBLL.Player("交易已完成,退卡.wav");
                ////缴费金额
                //lblBalance.Text = Payment.propPayTempParam.PropOrderInfo.msgrsp.realAmout+"元";

                //if (Payment.propPayTempParam.PropType.Equals("01")) lblPropType.Text = "水费";
                //if (Payment.propPayTempParam.PropType.Equals("02")) lblPropType.Text = "电费";
                //if (Payment.propPayTempParam.PropType.Equals("03")) lblPropType.Text = "燃气费";
                ////用户名
                //lblmobile.Text = Payment.propPayTempParam.AccountNo;

                //测试
                //缴费金额
                lblBalance.Text  = Payment.propPayTempParam.UserInputMoney + "元";
                lblPropType.Text = "水费";
                //用户名
                lblmobile.Text = Payment.propPayTempParam.AccountNo;
            }
            catch (Exception ex)
            {
                log.Write("error:FormPropStepTemp06_success:load:" + ex.Message);
            }
        }
Esempio n. 16
0
        /// <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);
        }
        private void load()
        {
            try
            {
                SysBLL.Player("燃气卡写入.wav");
                card     = Payment.GasPayParam.GasCard;
                icParams = Payment.GasPayParam.IcParams;

                if (card.cardType == 1)
                {
                    //金卡
                    img1.Source = jinImage;
                }
                else
                {
                    //先锋卡
                    img1.Source = xianfengImage;
                }

                payThread = new Thread(delegate() { pay(); });
                payThread.Start();
            }
            catch (Exception ex)
            {
                log.Write("error:FormGasGoldenCardStep07:load():" + ex.Message);
                exit("充值失败,请稍后再试...");
            }
        }
Esempio n. 18
0
        /// <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);
        }
Esempio n. 19
0
        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);
        }
Esempio n. 20
0
        /// <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("");
        }
Esempio n. 21
0
        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);
        }
Esempio n. 22
0
        private void load()
        {
            try
            {
                //清空列表
                clear();
                pagelbl.Visibility       = Visibility.Hidden;
                lblAccountInfo.Text      = "正在查询,请稍后...";
                topPageBtn.Visibility    = Visibility.Hidden;
                buttomPageBtn.Visibility = Visibility.Hidden;
                titlePanel.Visibility    = Visibility.Hidden;
                loadlbl.Visibility       = Visibility.Visible;
                SysBLL.Player("正在查询.wav");
                queryThread = new Thread(query);
                queryThread.Start();

                timerLoad          = new DispatcherTimer();
                timerLoad.Interval = TimeSpan.FromMilliseconds(400);
                timerLoad.Tick    += new EventHandler(timer_Tick);
                timerLoad.Start();
            }
            catch (Exception ex)
            {
                log.Write("error:FormHeatStep02:load():" + ex.Message);
            }
        }
Esempio n. 23
0
        /// <summary>
        /// 程序初始化
        /// </summary>
        private void Initialize()
        {
            try
            {
                //if (!InspectKit.Inspect(SysConfigHelper.readerNode("Inspect")))//对比失败
                //{
                //    //打开主页面
                //    MainWindow mainWindow = new MainWindow();
                //    mainWindow.Show();
                //    MainWindow.Margin = new Thickness(-10, -8, -12, -10);
                //    FormStop stop = new FormStop();
                //    stop.Margin = new Thickness(0, 0, 0, 0);
                //    MainWindow.Content = stop;
                //    return;
                //}

                //北岸公馆读卡器注册表
                SysBLL.RunBat(System.AppDomain.CurrentDomain.BaseDirectory + "\\BeiAnGGOcx\\00010001\\wyzh.bat");
                SysBLL.RunBat(System.AppDomain.CurrentDomain.BaseDirectory + "\\BeiAnGGOcx\\00010001\\0001.bat");
                //物业2
                SysBLL.RunBat(System.AppDomain.CurrentDomain.BaseDirectory + "\\perp2\\prop2.bat");
                //SysBLL.RunBat(System.AppDomain.CurrentDomain.BaseDirectory + "\\BeiAnGGOcx\\wyzh.bat");
                //是否需要启动其他程序
                bool startUpOtherProject = Convert.ToBoolean(SysConfigHelper.readerNode("startUpOtherApp"));
                if (startUpOtherProject)
                {
                    StartUpApp(SysConfigHelper.readerNode("startUpOtherAppPath"));
                }
                //关闭广告屏
                killGcMp4();
                //获取缴费页面提示
                SysBLL.payPromptInfo = PayPromptAccess.queryPayPrompt(null);
                SysBLL.ShowCursor(SysBLL.IsShowCursor);
                //设置桌面背景
                SysBLL.setImagePage();
                //天气查询状态
                SysBLL.WeatherQuerystate = 1;
                //禁止用户插卡
                MachCardBLL.CancelWaitCard();
                //初始化发送设备状态时间
                SysBLL.SendDeviceStatuTime = DateTime.Now;
                if (SysBLL.IsTest.Equals("正式"))
                {
                    //广告ID
                    GCResourceAccess.adv_id = GcManage.ReadGCID();
                    //指令id
                    SystemOrderAccess.id = ComputerBLL.ReadOrderID();
                }
                else
                {
                    //广告ID
                    GCResourceAccess.adv_id = SysConfigHelper.readerNode("GcAdv_id");
                    //指令id
                    SystemOrderAccess.id = SysConfigHelper.readerNode("sysOrderId");
                }
                //电动读卡器如果有卡则吞卡
                //MachCardBLL.swallowCard();
            }
            catch (Exception ex) { logger("error:程序初始化异常:" + ex.Message); }
        }
 private void load()
 {
     try
     {
         SysBLL.Player("交易完成.wav");
         //缴费账号
         lblBalance.Text = Payment.wintopReChargeParam.WintopQueryResult.WTCARDID;
         //账号类型
         if ("01".Equals(Payment.wintopReChargeParam.WintopQueryResult.TYPE))
         {
             lblType.Text = "脱机";
         }
         if ("02".Equals(Payment.wintopReChargeParam.WintopQueryResult.TYPE))
         {
             lblType.Text = "消费缴费钱包";
         }
         if ("03".Equals(Payment.wintopReChargeParam.WintopQueryResult.TYPE))
         {
             lblType.Text = "小额联机";
         }
         //缴费金额
         lblAmount.Text  = Payment.wintopReChargeParam.WintopDiscountInfoMsgrspList.CZ00030;
         lblRechage.Text = Payment.wintopReChargeParam.UserInputMoney;
     }
     catch (Exception ex)
     {
         log.Write("error:FormCitizenStep08_success:load():" + ex.Message);
     }
 }
Esempio n. 25
0
        private void load()
        {
            try
            {
                waterImage             = null;
                waterImage             = new GifImage(System.AppDomain.CurrentDomain.BaseDirectory + "\\sysImage\\GIF\\wintopGIF\\RFID.gif");
                this.waterImage.Height = 500;

                ConfigSysParam.gifBusiness = GifBusiness.wintop_RFID;
            }
            catch (Exception ex) { log.Write("error:一卡通读卡初始化:" + ex.Message + ex.InnerException); }
            try {
                Popup dd = new Popup();
                if (imgGrid.Children.Contains(waterImage))
                {
                    imgGrid.Children.Remove(waterImage);
                }
                imgGrid.Children.Add(waterImage);
                this.waterImage.StartAnimate();

                isCloseForm = false;
                PrintInfo("请将甘肃一卡通放置在公交卡或非接触磁感区内");
                SysBLL.Player("放置甘肃一卡通.wav");
                Payment.wintopReChargeParam = null;
                Payment.wintopReChargeParam = new WintopReChargeParam();

                readCardThread = new Thread(delegate() { read(); });
                readCardThread.Start();
            }catch (Exception ex)
            {
                log.Write("error:FormCitizenStep01:load():" + ex.Message);
            }
        }
Esempio n. 26
0
        private void load()
        {
            try
            {
                yingcang();
                pagedn.Dispatcher.Invoke(new isShowButtonDelegate(isShowButton), pagedn, false);
                pageup.Dispatcher.Invoke(new isShowButtonDelegate(isShowButton), pageup, false);
                SysBLL.Player("正在查询.wav");
                lblAccountInfo.Text = "正在查询...";
                clear();
                //查询户号线程
                queryThread = new Thread(query);
                queryThread.Start();

                timerLoad          = new DispatcherTimer();
                timerLoad.Interval = TimeSpan.FromMilliseconds(400);
                timerLoad.Tick    += new EventHandler(timer_Tick);
                timerLoad.Start();

                loadlbl.Dispatcher.Invoke(new isShowLabelDelegate(isShowLabel), loadlbl, true);
            }
            catch (Exception ex)
            {
                log.Write("error:FormPropStep02_ParkingLot:load:" + ex.Message + ex.InnerException);
            }
        }
Esempio n. 27
0
        private void load()
        {
            try
            {
                SysBLL.Player("交易处理中,请稍后.wav");
                icParams = Payment.propSecPayParam.IcParams;
                //if (card.cardType == 1)
                //{
                //    //金卡
                //    img1.Source = jinImage;
                //}
                //else
                //{
                //    //先锋卡
                //    img1.Source = xianfengImage;
                //}

                payThread = new Thread(delegate() { pay(); });
                payThread.Start();
            }
            catch (Exception ex)
            {
                log.Write("error:FormGasGoldenCardStep07:load():" + ex.Message);
                exit("充值失败,请稍后再试...");
            }
        }
Esempio n. 28
0
 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);
     }
 }
Esempio n. 29
0
        /// <summary>
        /// 冲正
        /// </summary>
        /// <returns></returns>
        public static Dictionary <string, ResultData> correct(WintopPayParam param)
        {
            Dictionary <int, string> data = new Dictionary <int, string>();

            data.Add(2, param.wintopNo);
            data.Add(3, "000000");
            data.Add(4, countPrice(param.price));
            data.Add(11, SysBLL.padLeft(getOrder(), 6));
            data.Add(25, "00");
            data.Add(39, "17");
            data.Add(41, ConfigurationManager.AppSettings["ClientNo"]);
            data.Add(42, ConfigurationManager.AppSettings["ShopNo"]);
            data.Add(48, "Y00000001");
            data.Add(49, "156");
            data.Add(63, "01");
            byte[] sendData = EncryptWT.EncryptData("0400", "6000000000", EncryptWT.encryptLKL(data, calculateMac(data, "0400")));
            Console.WriteLine(BCDUtil.byteArrToString(sendData));
            AnalysisBaseWT lk = new AnalysisBaseWT();

            byte[] result = Client(LakalaIp, LakalaPort, sendData);
            if (result.Length > 0)
            {
                return(lk.analysis(result)); //发送数据
            }
            else
            {
                return(null);
            }
        }
Esempio n. 30
0
        private void load()
        {
            try {
                SysBLL.Player("正在查询.wav");
                result01        = null;
                result02        = null;
                result03        = null;
                list            = null;
                wintopQueryInfo = null;
                visble();
                lblAccountInfo.Dispatcher.Invoke(new setTextBlockTextDelegate(setTextBlockText), lblAccountInfo, "正在查询,请稍后...");
                //显示正在加载中
                loadlbl.Dispatcher.Invoke(new isShowLabelDelegate(isShowLabel), this.loadlbl, true);
                queryThread = new Thread(delegate() { query(); });
                queryThread.Start();

                timerLoad          = new DispatcherTimer();
                timerLoad.Interval = TimeSpan.FromMilliseconds(400);
                timerLoad.Tick    += new EventHandler(timer_Tick);
                timerLoad.Start();
            }
            catch (Exception ex)
            {
                log.Write("error:FormCitizenStep03:load():" + ex.Message);
            }
        }