private void lblChaXun_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(SkyComm.cardInfoStruct.CardNo)) { int intResult = SkyComm.ReadCard("查询"); if (intResult == 0) { return; } } FrmInquireMain frm = new FrmInquireMain(); try { frm.ShowDialog(this); } catch (Exception ex) { Skynet.LoggingService.LogService.GlobalInfoMessage("自助查询失败:" + ex.Message); SkyComm.ShowMessageInfo("自助查询出错!" + ex.Message); } finally { frm.Dispose(); } }
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(); } }
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 MoneyTransfer(IWin32Window owner) { if (string.IsNullOrEmpty(SkyComm.cardInfoStruct.CardNo)) { int intResult = SkyComm.ReadCard("门诊预存转住院预存"); if (intResult == 0) { return; } } FrmMoneyTransfer frm = new FrmMoneyTransfer(); try { frm.ShowDialog(owner); } catch (Exception ex) { Skynet.LoggingService.LogService.GlobalInfoMessage("调用门诊预存转住院预存模块失败,原因:" + ex.Message); SkyComm.ShowMessageInfo("调用门诊预存转住院预存模块失败!" + ex.Message); } finally { frm.Dispose(); ExitScanCard(); } }
public void SurveyInfo(IWin32Window owner) { if (string.IsNullOrEmpty(SkyComm.cardInfoStruct.CardNo)) { int intResult = SkyComm.ReadCard("满意度调查"); if (intResult == 0) { return; } } FrmEvaluation frm = new FrmEvaluation(); try { frm.ShowDialog(owner); } 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(); } }
public void LeaveHosCostPrint(IWin32Window owner) { if (string.IsNullOrEmpty(SkyComm.cardInfoStruct.CardNo)) { int intResult = SkyComm.ReadCard("住院一日清单打印"); if (intResult == 0) { return; } } FrmInhosCostListPrint frm = new FrmInhosCostListPrint(); try { frm.ShowDialog(owner); } catch (Exception ex) { Skynet.LoggingService.LogService.GlobalInfoMessage("调用住院一日清单打印模块失败,原因:" + ex.Message); SkyComm.ShowMessageInfo("调用住院一日清单打印模块失败!" + ex.Message); } finally { frm.Dispose(); ExitScanCard(); } }
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(); } }
public void PrintListReport(IWin32Window owner) { if (string.IsNullOrEmpty(SkyComm.cardInfoStruct.CardNo)) { int intResult = SkyComm.ReadCard("打印"); if (intResult == 0) { return; } } //AutoServiceManage.AutoPrint.FrmPrintMain frm = new AutoPrint.FrmPrintMain(); Form frm = new Form(); try { if (SkyComm.getvalue("LIS厂商类型").ToString() == "智方") { frm = new FrmPrintListReport(); frm.ShowDialog(owner); } else if (SkyComm.getvalue("LIS厂商类型").ToString() == "杏和") { frm = new FrmPrintLisReportXH(); frm.ShowDialog(owner); } } catch (Exception ex) { Skynet.LoggingService.LogService.GlobalInfoMessage("自助打印失败:" + ex.Message); SkyComm.ShowMessageInfo("自助打印出错!" + ex.Message); } finally { frm.Dispose(); ExitScanCard(); } }
/// <summary> /// 医技预约 wangchao add 2016-07-11 /// </summary> /// <param name="owner"></param> public void MedicalReserve(IWin32Window owner) { if (string.IsNullOrEmpty(SkyComm.cardInfoStruct.CardNo)) { int intResult = SkyComm.ReadCard("医技预约"); if (intResult == 0) { return; } } FrmChooseReserve frm = new FrmChooseReserve(); try { //if (SystemInfo.SystemConfigs["医技预约方式"].DefaultValue.ToString()=="1") if (SkyComm.getvalue("医技预约方式").ToString() == "1") { WebForm webfrm = new WebForm(); webfrm.ShowDialog(); } else//HIS { frm.ShowDialog(owner); } } catch (Exception ex) { Skynet.LoggingService.LogService.GlobalInfoMessage("医技预约失败:" + ex.Message); SkyComm.ShowMessageInfo("调用医技预约出错!" + ex.Message); } finally { frm.Dispose(); ExitScanCard(); } }
private void lblQianDao_Click(object sender, EventArgs e) { //如果已经有卡号时,则表示已经读过卡,则不需要再重新读卡 if (string.IsNullOrEmpty(SkyComm.cardInfoStruct.CardNo)) { int intResult = SkyComm.ReadCard("挂号"); if (intResult == 0) { return; } } //this.AnsyWorker(ui => { //根据是否有预约信息,如果有预约信息,弹出界面选择。 double minutes = Convert.ToDouble(SystemInfo.SystemConfigs["预约挂号报到延时时间"].DefaultValue); BespeakRegisterFacade bespeakFacade = new BespeakRegisterFacade(); CommonFacade commonFacade = new CommonFacade(); DateTime ServerdateTime = commonFacade.GetServerDateTime(); DataSet bespeakInfoData = bespeakFacade.FindCurrentBespeakByDiagnoseID(SkyComm.DiagnoseID, 1, ServerdateTime.AddMinutes(-minutes)); bool IsQueryBespeakData = false; //ui.SynUpdateUI(() => { if (bespeakInfoData.Tables[0].Rows.Count == 0) { #region 没有预约信息时查询预约 SkyComm.ShowMessageInfo("没有查询到预约信息,如果已经预约请到相应窗口取号!"); return; #endregion } //有预约信息时 if (bespeakInfoData == null || bespeakInfoData.Tables[0].Rows.Count > 0) { #region 预约信息确认取号 //有预约信息,再判断预约信息是几条 FrmBespeakList frm = new FrmBespeakList(); try { frm.dsBespeak = bespeakInfoData; frm.IsQueryBespeakData = IsQueryBespeakData; if (frm.ShowDialog(this) == System.Windows.Forms.DialogResult.OK) { SkyComm.GetCardBalance(); } } catch (Exception ex) { Skynet.LoggingService.LogService.GlobalInfoMessage("就诊号:" + SkyComm.DiagnoseID + "取号失败:" + ex.Message); } finally { frm.Dispose(); } #endregion } } //); } //); }
private void lblYuCun_Click(object sender, EventArgs e) { SkyComm.CardSavingType = 0; if (!string.IsNullOrEmpty(AutoHostConfig.PosInterfaceType) && !string.IsNullOrEmpty(AutoHostConfig.CashBoxType)) { FrmCardSavingMain frm = new FrmCardSavingMain(); frm.ShowDialog(this); frm.Dispose(); } else if (!string.IsNullOrEmpty(AutoHostConfig.CashBoxType)) { #region 直接现金预存 //现金预存前先刷卡 //如果已经有卡号时,则表示已经读过卡,则不需要再重新读卡 if (string.IsNullOrEmpty(SkyComm.cardInfoStruct.CardNo)) { int intResult = SkyComm.ReadCard("现金预存"); if (intResult == 0) { return; } } //拍照 switch (AutoHostConfig.ReadCardType) { case "XUHUI": AutoServiceSDK.SdkService.Common_XH camera = new AutoServiceSDK.SdkService.Common_XH(); camera.TakeCamera(SkyComm.cardInfoStruct.CardNo, SkyComm.eCardAuthorizationData.Tables[0].Rows[0]["PATIENTNAME"].ToString(), AutoHostConfig.Machineno); break; default: break; } FrmCardSavingCash frm = new FrmCardSavingCash(); frm.CallType = 0; if (frm.ShowDialog(this) == DialogResult.Cancel) { frm.Dispose(); return; } frm.Dispose(); #endregion } else if (!string.IsNullOrEmpty(AutoHostConfig.PosInterfaceType)) { #region 直接银行预存 //现金预存前先刷卡 //如果已经有卡号时,则表示已经读过卡,则不需要再重新读卡 if (string.IsNullOrEmpty(SkyComm.cardInfoStruct.CardNo)) { int intResult = SkyComm.ReadCard("银行预存"); if (intResult == 0) { return; } } FrmCardSavingBank frm = new FrmCardSavingBank(); frm.CallType = 0; if (frm.ShowDialog(this) == DialogResult.Cancel) { frm.Dispose(); return; } frm.Dispose(); #endregion } if (SkyComm.CardSavingType == 1) { lblQianDao_Click(null, null); } else if (SkyComm.CardSavingType == 2) { lblJiaoFei_Click(null, null); } }
public void BespeakSignIn(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; } } //根据是否有预约信息,如果有预约信息,弹出界面选择。 double minutes = Convert.ToDouble(SystemInfo.SystemConfigs["预约挂号报到延时时间"].DefaultValue); BespeakRegisterFacade bespeakFacade = new BespeakRegisterFacade(); CommonFacade commonFacade = new CommonFacade(); DateTime ServerdateTime = commonFacade.GetServerDateTime(); DataSet bespeakInfoData = bespeakFacade.FindCurrentBespeakByDiagnoseID(SkyComm.DiagnoseID, 1, ServerdateTime.AddMinutes(-minutes)); bool IsQueryBespeakData = false; //ui.SynUpdateUI(() => { if (bespeakInfoData.Tables[0].Rows.Count == 0) { #region 没有预约信息时查询预约 SkyComm.ShowMessageInfo("没有查询到预约信息,如果已经预约请到相应窗口取号!"); return; #endregion } //有预约信息时 if (bespeakInfoData == null || bespeakInfoData.Tables[0].Rows.Count > 0) { #region 预约信息确认取号 //有预约信息,再判断预约信息是几条 FrmBespeakList frm = new FrmBespeakList(); try { frm.dsBespeak = bespeakInfoData; frm.IsQueryBespeakData = IsQueryBespeakData; if (frm.ShowDialog(owner) == System.Windows.Forms.DialogResult.OK) { SkyComm.GetCardBalance(); } } catch (Exception ex) { Skynet.LoggingService.LogService.GlobalInfoMessage("就诊号:" + SkyComm.DiagnoseID + "取号失败:" + ex.Message); } finally { frm.Dispose(); } #endregion } } ExitScanCard(); }
public void AddInHosMoney(IWin32Window owner) { if (!string.IsNullOrEmpty(AutoHostConfig.PosInterfaceType) && !string.IsNullOrEmpty(AutoHostConfig.CashBoxType)) { //如果已经有卡号时,则表示已经读过卡,则不需要再重新读卡 if (string.IsNullOrEmpty(SkyComm.cardInfoStruct.CardNo)) { int intResult = SkyComm.ReadCard("现金预存"); if (intResult == 0) { return; } } FrmInhosAdvance frm = new FrmInhosAdvance(); frm.ShowDialog(owner); frm.Dispose(); } else if (!string.IsNullOrEmpty(AutoHostConfig.CashBoxType)) { #region 直接现金预存 //现金预存前先刷卡 //如果已经有卡号时,则表示已经读过卡,则不需要再重新读卡 if (string.IsNullOrEmpty(SkyComm.cardInfoStruct.CardNo)) { int intResult = SkyComm.ReadCard("现金预存"); if (intResult == 0) { return; } } //拍照 switch (AutoHostConfig.ReadCardType) { case "XUHUI": case "XUHUIM1": AutoServiceSDK.SdkService.Common_XH camera = new AutoServiceSDK.SdkService.Common_XH(); camera.TakeCamera(SkyComm.cardInfoStruct.CardNo, SkyComm.eCardAuthorizationData.Tables[0].Rows[0]["PATIENTNAME"].ToString(), AutoHostConfig.Machineno); break; default: break; } FrmInHosSavingCash frm = new FrmInHosSavingCash(); if (frm.ShowDialog(owner) == DialogResult.Cancel) { frm.Dispose(); return; } frm.Dispose(); #endregion } else if (!string.IsNullOrEmpty(AutoHostConfig.PosInterfaceType)) { #region 直接银行预存 //现金预存前先刷卡 //如果已经有卡号时,则表示已经读过卡,则不需要再重新读卡 if (string.IsNullOrEmpty(SkyComm.cardInfoStruct.CardNo)) { int intResult = SkyComm.ReadCard("银行预存"); if (intResult == 0) { return; } } FrmInHosSavingBank frm = new FrmInHosSavingBank(); if (frm.ShowDialog(owner) == DialogResult.Cancel) { frm.Dispose(); return; } frm.Dispose(); #endregion } ExitScanCard(); }