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 read() { try { isRead = false; PrintInfo("读取中,请稍后..."); SysBLL.Player("读取中.wav"); GasCard card = (GasCard)(jinCard.getCardInfo(null)); string cardNo = card.CardNo; card.cardType = 1; Payment.GasPayParam.GasCard = card; GasInterface gasInterface = new GasInterface(); SysBLL.Authcode = gasInterface.GasLogin(); //int rechageNum = 10; //if (!jinCard.Recharge(card.CardNo, rechageNum)) //{ // throw new Exception(); //} //执行下一步 //new FormJump().openForm(senderLoad, eLoad, this, new FormGasGoldenCardStep3(card)); ConfigSysParam.gifBusiness = GifBusiness.gas_IC; Util.JumpUtil.jumpCommonPage("FormGasGoldenCardStep03"); return; } catch (ThreadAbortException ae) { log.Write("error:金卡读卡异常:" + ae.Message); } catch (WtException e) { PrintInfo("读取失败,请重试..."); } catch (Exception e) { PrintInfo("读取失败,请重试..."); } finally { isRead = true; } }