/// <summary> /// 转出 /// </summary> public void m_cmdTurnOut() { if (m_objViewer.m_txtListArea.Value == null || m_objViewer.m_txtListArea.Value == "") { MessageBox.Show(m_objViewer, "转入病区为必填项!", "提示框", MessageBoxButtons.OK, MessageBoxIcon.Information); m_objViewer.m_txtListArea.Focus(); return; } clsT_Opr_Bih_Transfer_VO objPatientVO; ValueToVoForTransfer(out objPatientVO); if (!blnDealWithOrder(objPatientVO.m_strREGISTERID_CHR)) { return; } if (objsystempower.isHasRight("住院.进出转.转出")) { try { long lngReg = new clsDcl_BIHTransfer().m_lngTurnOut(objPatientVO); if (lngReg > 0) { MessageBox.Show(m_objViewer, "转区成功!", "转病区", MessageBoxButtons.OK, MessageBoxIcon.Information); if (m_objViewer.m_cobPrint.SelectedIndex == 0) { m_mthPrintTurnOutNotice(); } m_objViewer.DialogResult = DialogResult.OK; } } catch (Exception e) { MessageBox.Show(e.Message + "!", "转出失败", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); } } else { MessageBox.Show("您没有权限"); } }
/// <summary> /// 出院 {1、空出床位;2、增加一条出院记录;} /// </summary> public void m_LeaveHospital() { long lngReg = 0; if (!IsPassInputValidate()) { return; } clsT_Opr_Bih_Leave_VO objPatientVO; ValueToVoForLeave(out objPatientVO); //检查是否可以出院 if (objPatientVO.m_intPSTATUS_INT == 1) { if (!CheckIsMayLeaveHospital(objPatientVO.m_strREGISTERID_CHR)) { return; } } if (objsystempower.isHasRight("住院.进出转.出院")) { try { lngReg = m_objRegister.m_lngLeaveHospital(objPatientVO); MessageBox.Show("操作成功!", "出院", MessageBoxButtons.OK, MessageBoxIcon.Information); m_objViewer.DialogResult = DialogResult.OK; } catch (Exception e) { MessageBox.Show(m_objViewer, e.Message, "错误提示框", MessageBoxButtons.OK, MessageBoxIcon.Error); } } else { MessageBox.Show("您没有权限"); } }