Esempio n. 1
0
        private void lblJiaoFei_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(SkyComm.cardInfoStruct.CardNo))
            {
                int intResult = SkyComm.ReadCard("缴费");
                if (intResult == 0)
                {
                    return;
                }
            }
            FrmChargeMain frm = new FrmChargeMain();

            try
            {
                DataSet dsRecipe = GetRecipeInfo();
                if (dsRecipe == null)
                {
                    return;
                }

                frm.dsRecipe = dsRecipe;
                frm.ShowDialog(this);
            }
            catch (Exception ex)
            {
                Skynet.LoggingService.LogService.GlobalInfoMessage("缴费失败:" + ex.Message);
                SkyComm.ShowMessageInfo("调用自助缴费出错!" + ex.Message);
            }
            finally
            {
                frm.Dispose();
            }
        }
Esempio n. 2
0
        public void Charge(IWin32Window owner)
        {
            if (string.IsNullOrEmpty(SkyComm.cardInfoStruct.CardNo))
            {
                int intResult = SkyComm.ReadCard("缴费");
                if (intResult == 0)
                {
                    return;
                }
            }

            //判断打印机是否有纸
            if (AutoHostConfig.ReadCardType == "XUHUI")
            {
                PrintManage_XH thePrintManage = new PrintManage_XH();
                string         CheckInfo      = thePrintManage.CheckPrintStatus();
                if (!string.IsNullOrEmpty(CheckInfo))
                {
                    SkyComm.ShowMessageInfo(CheckInfo);
                    return;
                }
            }

            FrmChargeMain frm = new FrmChargeMain();

            try
            {
                DataSet dsRecipe = GetRecipeInfo();
                if (dsRecipe == null)
                {
                    return;
                }

                frm.dsRecipe = dsRecipe;
                frm.ShowDialog(owner);
            }
            catch (Exception ex)
            {
                Skynet.LoggingService.LogService.GlobalInfoMessage("缴费失败:" + ex.Message);
                SkyComm.ShowMessageInfo("调用自助缴费出错!" + ex.Message);
            }
            finally
            {
                frm.Dispose();
                ExitScanCard();
            }
        }