private void LblDaYin_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(SkyComm.cardInfoStruct.CardNo)) { int intResult = SkyComm.ReadCard("打印"); if (intResult == 0) { return; } } AutoServiceManage.AutoPrint.FrmPrintMain frm = new AutoPrint.FrmPrintMain(); try { frm.ShowDialog(this); } catch (Exception ex) { Skynet.LoggingService.LogService.GlobalInfoMessage("自助打印失败:" + ex.Message); SkyComm.ShowMessageInfo("自助打印出错!" + ex.Message); } finally { frm.Dispose(); } }
public void AutoPrint(IWin32Window owner) { if (string.IsNullOrEmpty(SkyComm.cardInfoStruct.CardNo)) { int intResult = SkyComm.ReadCard("打印"); if (intResult == 0) { return; } } AutoServiceManage.AutoPrint.FrmPrintMain frm = new AutoPrint.FrmPrintMain(); try { frm.ShowDialog(owner); } catch (Exception ex) { Skynet.LoggingService.LogService.GlobalInfoMessage("自助打印失败:" + ex.Message); SkyComm.ShowMessageInfo("自助打印出错!" + ex.Message); } finally { frm.Dispose(); ExitScanCard(); } }