private void load() { try { isPrint = true; SysBLL.Player("交易完成.wav"); //缴费金额 lblBalance.Text = Payment.PropPayParam.PropOrderInfo.msgrsp.realAmout; if (Payment.PropPayParam.PropType == 1) { lblPropType.Text = "房屋"; } if (Payment.PropPayParam.PropType == 2) { lblPropType.Text = "车位"; } //用户名 lblmobile.Text = Payment.PropPayParam.Mobile; } catch (Exception ex) { log.Write("error:FormPropStep06_success:load:" + ex.Message); } }
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); } }
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); } }
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); } }
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("充值失败,请稍后再试..."); } }
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); } }
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("充值失败,请稍后再试..."); } }
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); } }
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); } }
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); } }
private void load() { try { SysBLL.payCostType = 10; yingcang(); pagedn.Dispatcher.Invoke(new isShowButtonDelegate(isShowButton), pagedn, false); pageup.Dispatcher.Invoke(new isShowButtonDelegate(isShowButton), pageup, false); SysBLL.Player("正在查询.wav"); setTextBlock(lblAccountInfo, "正在查询,请稍后..."); loadlbl.Dispatcher.Invoke(new isShowLabelDelegate(isShowLabel), loadlbl, true); clear(); //查询户号线程 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:FormPropStep02:load:" + ex.Message); } }
private void read() { try { isRead = false; PrintInfo("读取中,请稍后..."); SysBLL.Player("读取中.wav"); XianfengBLL xfCard = new XianfengBLL(); GasCard card = (GasCard)(xfCard.getCardInfo(null)); string cardNo = card.CardNo; card.cardType = 2; Payment.GasPayParam.GasCard = card; GasInterface gasInterface = new GasInterface(); SysBLL.Authcode = gasInterface.GasLogin(); //执行下一步 //new FormJump().openForm(senderLoad, eLoad, this, new FormGasGoldenCardStep3(card)); ConfigSysParam.gifBusiness = GifBusiness.gas_IC; Util.JumpUtil.jumpCommonPage("FormGasGoldenCardStep03"); return; } catch (ThreadAbortException ae) { } catch (WtException e) { PrintInfo("读取失败,请重试..."); } catch (Exception e) { String msg = WtException.formatMsg(WtExceptionCode.Card.UNION_READ_CARD, e.Message); PrintInfo("读取失败,请重试..."); } finally { isRead = true; } }
private void load() { try { SysBLL.Player("正在查询.wav"); //初始化提示信息 this.lblAccountInfo.Dispatcher.Invoke(new showInfoDelegate(setShowInfo), "正在查询,请稍后..."); //显示图片 loadlbl.Dispatcher.Invoke(new isShowLabelDelegate(isShowLabel), loadlbl, true); //隐藏面板 panel.Visibility = Visibility.Hidden; //隐藏充值按钮 this.OkBtn.Dispatcher.Invoke(new isShowBtnDelegate(setBtnVisibility), OkBtn, false); //查询 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:FormUnicomStep02:load():" + ex.Message); } }
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); } }
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 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; } }
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); } }
private void UserControl_Loaded(object sender, RoutedEventArgs e) { //gjjdaikuan.Visibility = Visibility.Hidden; //gjjhuankuan.Visibility = Visibility.Hidden; SysBLL.Player("请选择服务项目.wav"); SysBLL.customerParam.queryType = -1; SysBLL.customerParam.selcnt = SysBLL.customerParam.number; SysBLL.customerParam.pwd = SysBLL.customerParam.password; }
//load事件 private void UserControl_Loaded(object sender, RoutedEventArgs e) { SysBLL.Player("请输入一卡通号码.wav"); keyboard.textBox = inputBox; //缴费类型为万通卡充值 SysBLL.payCostType = 3; inputBox.Text = string.Empty; }
private void load() { try { lblAmount.Visibility = Visibility.Hidden; if (SysBLL.payCostType == 5) { lblAmount.Visibility = Visibility.Visible; lblAmount.Content = "应缴金额:" + Payment.GasPayParam.GasCard.price + " 元";; } if (SysBLL.payCostType == 11) { lblAmount.Visibility = Visibility.Visible; lblAmount.Content = "应缴金额:" + Payment.propPayTempParam.RechageAmount + " 元";; } if (SysBLL.payCostType == 12) { lblAmount.Visibility = Visibility.Visible; lblAmount.Content = "应缴金额:" + Payment.propSecPayParam.RechageAmount + " 元";; } txtPassword.Text = ""; if (SysBLL.PasswordErrorInfo.Contains("错误")) { SysBLL.Player("密码错误.wav"); } else { SysBLL.Player("输入密码.wav"); } showinfoLbl.Text = SysBLL.PasswordErrorInfo; isCloseForm = false; if (SysBLL.payCardType == 1) { //万通支付 //pwdBLL.SetCryptMode(1);//万通卡加密方式 pwdBLL.OpenKeyboard(SysConfigHelper.readerNode("ZT598Port"), "9600", SysBLL.payCardNo); } else { //pwdBLL.SetCryptMode(0);//银行卡加密方式 pwdBLL.OpenKeyboard(SysConfigHelper.readerNode("ZT598Port"), "9600", SysBLL.payCardNo); } //扫描键盘 keyThread = new Thread(delegate() { key(); }); keyThread.Start(); new Thread(delegate() { SysBLL.Player("输入密码.wav"); }).Start(); } catch (ThreadAbortException ae) { log.Write("error:" + ae.Message); } catch (WtException we) { log.Write("error:输入密码页面异常"); } catch (Exception ex) { log.Write("error:输入密码页面异常:" + ex.Message); } }
//查询水务 public void query() { try { loadlbl.Dispatcher.Invoke(new setShowLabelDelegate(setShowLabel), loadlbl, true); WaterQueryInfo info = WaterAccess.WaterQuery(Payment.waterPayParam.Account); if (!"0000".Equals(info.msgrsp.retcode)) { //激活按钮 if (info.msgrsp.retshow.Length > 0) { printInfo(info.msgrsp.retshow); return; } else { printInfo("查询失败,请稍后再试"); return; } } if (info.msgrsp.orderlist.Count > 0) { xianshi(); printInfo("您的账单信息"); list = info.msgrsp.orderlist; pageCount = list.Count / 3; if ((list.Count % 3) != 0) { pageCount++; } setPage(page); pagelbl.Dispatcher.Invoke(new setShowTextBlockDelegate(setShowTextBlock), pagelbl, true); button4.Dispatcher.Invoke(new setShowButtonDelegate(setShowButton), button4, true); button3.Dispatcher.Invoke(new setShowButtonDelegate(setShowButton), button3, true); SysBLL.Player("继续缴费请点击充值按钮.wav"); } } catch (ThreadAbortException ae) { log.Write("error:FormWaterStep02:query():" + ae.Message); printInfo("查询失败,请稍后再试"); } catch (WtException e) { printInfo(e.Message); } catch (Exception e) { log.Write("error:FormWaterStep02:query():" + e.Message); printInfo("查询失败,请稍后再试"); } finally { loadlbl.Dispatcher.Invoke(new setShowLabelDelegate(setShowLabel), loadlbl, false); } }
//查询广电 public void query() { try { BroadCasQueryInfo info = BroadCasAccess.query(Payment.broadCasPayParam.Account); if (!"0000".Equals(info.msgrsp.retcode)) { //隐藏加载按钮 loadlbl.Dispatcher.Invoke(new isShowLabelDelegate(isShowLabel), this.loadlbl, false); if (info.msgrsp.retshow.Length > 0) { //显示提示信息 lblAccountInfo.Dispatcher.Invoke(new setTextBlockTextDelegate(setTextBlockText), this.lblAccountInfo, info.msgrsp.retshow); return; } else { lblAccountInfo.Dispatcher.Invoke(new setTextBlockTextDelegate(setTextBlockText), this.lblAccountInfo, "查询失败,请稍后再试"); return; } } PrintInfo("您的账单信息"); list = info.msgrsp.guangDianData; //账户名称 lblBalance.Dispatcher.Invoke(new setTextBlockTextDelegate(setTextBlockText), this.lblBalance, list.CUSTNAME); //账单余额 if (Convert.ToDouble(list.BANLANCE) >= 0) { lblAmountText.Dispatcher.Invoke(new setTextBlockTextDelegate(setTextBlockText), lblAmountText, "账户余额"); } else { lblAmountText.Dispatcher.Invoke(new setTextBlockTextDelegate(setTextBlockText), lblAmountText, "欠费金额"); } string price = list.BANLANCE; lblAmount.Dispatcher.Invoke(new setTextBlockTextDelegate(setTextBlockText), this.lblAmount, price); lblPayMentAmout.Dispatcher.Invoke(new setTextBlockTextDelegate(setTextBlockText), this.lblPayMentAmout, list.PAYMENTAMOUNT); btnRecharge.Dispatcher.Invoke(new isShowButtonDelegate(isShowButton), this.btnRecharge, true); panel12.Dispatcher.Invoke(new isShowGridDelegate(isShowGrid), this.panel12, true); SysBLL.Player("继续缴费请点击确定按钮.wav"); } catch (ThreadAbortException ae) { } catch (WtException e) { PrintInfo(e); } catch (Exception e) { //弹出异常提示页面 string msg = WtException.formatMsg(WtExceptionCode.Bus.BUS_QUERY, e.Message);//异常信息 PrintInfo(msg); } finally { } }
private void UserControl_Loaded(object sender, RoutedEventArgs e) { try { SysBLL.Player("请输入充值气量.wav"); keyboard.textBox = inputBox; this.inputBox.Text = string.Empty; //rqrqhints.Text = GasShowInfo.rqhints; rqrqhints.Text = PayPromptAccess.getPrompt(GcManage.gcType); } catch (Exception ex) { log.Write("error:" + ex.Message); } }
private void load() { SysBLL.Player("请选择充值金额.wav"); if ("测试".Equals(SysBLL.IsTest)) { button8.Visibility = Visibility.Visible; } else { button8.Visibility = Visibility.Hidden; } }
//load事件 private void UserControl_Loaded(object sender, RoutedEventArgs e) { try { //F001("5"); SysBLL.Player("请插入物业卡.wav"); } catch (Exception ex) { log.Write("error:FormPropStepInCard01:UserControl_Loaded:" + ex.Message); } }
private void load() { SysBLL.Player("缴费失败.wav"); if (FormTip.FormFailRefundShowinfo.Length > 0) { lblShowinfo.Text = FormTip.FormFailRefundShowinfo; } else { lblShowinfo.Text = "支付成功,正在缴费..."; } }
private void UserControl_Loaded(object sender, RoutedEventArgs e) { try { SysBLL.Player("缴费账号.wav"); inputBox.Text = ""; keyboard.textBox = inputBox; showinfo.Text = PayPromptAccess.getPrompt(GcManage.gcType); }catch (Exception ex) { log.Write("error:" + ex.Message + ex.InnerException); } }
private void load() { try { isPrint = false; SysBLL.Player("交易完成.wav"); lblBalance.Text = Payment.unicomPayParam.PhoneOn; lblAmount.Text = Payment.unicomPayParam.RechageAmount + "元"; realTimeBalanceLbl.Text = (Convert.ToDouble(Payment.unicomPayParam.Msgrsp.PAYMENT_AMOUNT) + Convert.ToDouble(Payment.unicomPayParam.RechageAmount)).ToString() + ".00"; }catch (Exception ex) { log.Write("error:FormUnicomStep06_success:load():" + ex.Message); } }
private void load() { try { SysBLL.Player("请输入充值金额.wav"); inputBox.Text = ""; keyboard.textBox = inputBox; lblShowInfo2.Foreground = Brushes.White; price = Convert.ToDouble(Payment.waterPayParam.WaterQueryInfo.msgrsp.orderlist[0].amout); showInfoTxt.Text = "充值金额:" + price + "元"; } catch (Exception ex) { } }