public StatusTransaction SendManualOnStation(ref string sendMessege) { try { frmChoiceRoom frm = new frmChoiceRoom(); if (frm.ShowDialog() == System.Windows.Forms.DialogResult.OK) { int tpr_id = Program.CurrentRegis.tpr_id; int end_tps_id = Program.CurrentPatient_queue.tps_id; int end_mrm_id = Program.CurrentRoom.mrm_id; int send_mrm_id = frm.GetMrmID; int send_mvt_id = frm.mvtID; return(SendToStation(tpr_id, end_tps_id, end_mrm_id, send_mrm_id, send_mvt_id, ref sendMessege)); } else { return(StatusTransaction.False); } } catch (Exception ex) { Program.MessageError("SendManaulCls", "SendManualOnStation", ex, false); return(StatusTransaction.Error); } }
private StatusTransaction SendManualPendingCheckB(ref trn_patient_regi tpr, ref string messegeSend, string currentRoom) { try { StatusTransaction remainStation = new Class.FunctionDataCls().checkRemainEvent(tpr.tpr_id); if (remainStation == StatusTransaction.True) { frmChoiceRoom frm = new frmChoiceRoom(); if (frm.ShowDialog() == System.Windows.Forms.DialogResult.OK) { int mrm_id = frm.GetMrmID; int mvt_id = frm.mvtID; new TransactionQueueCls().SendToRoom(ref tpr, ref messegeSend, mrm_id, mvt_id); return(StatusTransaction.True); } else { return(StatusTransaction.False); } } else if (remainStation == StatusTransaction.False) { if (tpr.tpr_PRM_check == true && tpr.tpr_pe_status == "RS" && currentRoom == "PT") { frmChoicePRM frm = new frmChoicePRM(); var result = frm.ShowDialog(); if (result == DialogResult.Yes) { if (Program.CurrentSite.mhs_extra_pe_type == true && tpr.tpr_pe_site2 == 'N' && (tpr.tpr_pd_pe_site2 == null || tpr.tpr_pd_pe_site2 == false)) { new TransactionQueueCls().SendToCheckC(ref tpr, ref messegeSend, true); new TransactionQueueCls().SendToBook(ref tpr, ref messegeSend); return(StatusTransaction.True); } else { new TransactionQueueCls().SendToCheckC(ref tpr, ref messegeSend); return(StatusTransaction.True); } } else { new TransactionQueueCls().SendToBook(ref tpr, ref messegeSend); return(StatusTransaction.True); } } else { if (Program.CurrentSite.mhs_extra_pe_type == true && tpr.tpr_pe_site2 == 'N' && (tpr.tpr_pd_pe_site2 == null || tpr.tpr_pd_pe_site2 == false)) { new TransactionQueueCls().SendToCheckC(ref tpr, ref messegeSend, true); new TransactionQueueCls().SendToBook(ref tpr, ref messegeSend); return(StatusTransaction.True); } else { new TransactionQueueCls().SendToCheckC(ref tpr, ref messegeSend); return(StatusTransaction.True); } } } else { return(StatusTransaction.Error); } } catch (Exception ex) { Program.MessageError("SendManual", "SendManualPendingCheckB", ex, false); return(StatusTransaction.Error); } }