public void LeftCallBack() { long lngReg = 0; try { clsDclBihLeaHos domain = new clsDclBihLeaHos(); lngReg = domain.RecallHospital(this.m_leaveVO, this.m_objViewer.LoginInfo.m_strEmpID); } catch (Exception e) { MessageBox.Show(m_objViewer, e.Message, "错误提示框", MessageBoxButtons.OK, MessageBoxIcon.Error); } //操作结果提示 if (lngReg > 0) { MessageBox.Show(m_objViewer, "成功召回!", "提示框", MessageBoxButtons.OK, MessageBoxIcon.Information); m_objViewer.Close(); } else { MessageBox.Show(m_objViewer, "召回失败!", "提示框", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
private void m_cmdFind_Click(object sender, EventArgs e) { string filter = this.m_txtFind.Text.Trim(); if (filter == null || filter == "") { return; } this.m_dwDisease.SetRedrawOff(); this.Cursor = Cursors.WaitCursor; long lngReg = -1; DataTable dt; lngReg = new clsDclBihLeaHos().GetDisease(filter.ToUpper(), out dt); if (lngReg > 0) { this.m_dwDisease.Retrieve(dt); //this.m_dvDiagnoses = new DataView(dt); } this.m_dwDisease.SetRedrawOn(); this.m_dwDisease.Refresh(); this.Cursor = Cursors.Default; }
private void m_cmdOk_Click(object sender, EventArgs e) { if (this.m_txtDiagnoses.Text == null || this.m_txtDiagnoses.Text.Trim() == "") { MessageBox.Show("不能保存空白诊断。", "提示"); return; } if (this.m_intType == 1) { //医嘱界面调用,直接保存出院诊断到入院登记表 //long lngReg = new clsDclBihLeaHos().UpdateRegisterOutDiagnose(this.m_strRegisterId, this.m_txtDiagnoses.Text.Trim()); long lngReg = new clsDclBihLeaHos().UpdateRegisterOutDiagnose(this.m_strRegisterId, this.m_txtDiagnoses.Text.Trim(), this.chkDiseasetype.Checked); if (lngReg > 0) { this.DialogResult = DialogResult.OK; this.Close(); } else { MessageBox.Show("保存出院诊断失败。", "错误"); return; } } else { this.DialogResult = DialogResult.OK; this.Close(); } }
public void LeaveHospital() { if (!IsPassInputValidate()) { return; } clsT_Opr_Bih_Leave_VO objPatientVO; ValueToVoForLeave(out objPatientVO); try { DateTime outDate; outDate = Convert.ToDateTime(this.m_objViewer.m_dtpOutDate.Text); System.TimeSpan diff1 = outDate.Subtract(DateTime.Now); if (diff1.Days < 0) { MessageBox.Show("出院日期不能早于今天", "提示"); this.m_objViewer.m_dtpOutDate.Focus(); return; } long lngReg = -1; clsDclBihLeaHos domainObj = new clsDclBihLeaHos(); lngReg = domainObj.LeaveHospital(objPatientVO); if (lngReg > 0) { string msg = "操作成功!" + this.m_objViewer.m_lblPatientName.Text + "将于" + this.m_objViewer.m_dtpOutDate.Text + "出院。"; MessageBox.Show(msg, "出院", MessageBoxButtons.OK, MessageBoxIcon.Information); m_objViewer.DialogResult = DialogResult.OK; } else { MessageBox.Show("出院失败!", "出院", MessageBoxButtons.OK, MessageBoxIcon.Information); m_objViewer.DialogResult = DialogResult.No; } } catch (Exception e) { m_objViewer.DialogResult = DialogResult.No; MessageBox.Show(m_objViewer, e.Message, "错误提示框", MessageBoxButtons.OK, MessageBoxIcon.Error); } if (m_objViewer.DialogResult == DialogResult.OK && this.m_objViewer.m_ckbPrint.Checked) { // 打印出院通知单 frmPrintLeaveNotice printLeaveNotice = new frmPrintLeaveNotice(this.m_objViewer.m_bedManageVO, objPatientVO); printLeaveNotice.ShowDialog(); } }
/// <summary> /// 根据入院登记流水号查询有效的预出院记录 /// </summary> /// <param name="p_strRegisterid_chr">入院登记流水号</param> /// <param name="p_objResult"></param> /// <returns></returns> private void GetLeaveByRegisterID(string p_strRegisterid, string p_pstatus) { clsDclBihLeaHos domain = new clsDclBihLeaHos(); long lngRe = 0; lngRe = domain.GetLeaveByRegisterID(p_strRegisterid, p_pstatus, out this.m_leaveVO); if (lngRe < 1 || m_leaveVO == null) { MessageBox.Show("错误找不到病人的出院记录。", "提示"); this.m_objViewer.m_cmdRecall.Visible = false; } }
private void m_dwDisease_DataWindowCreated(object sender, Sybase.DataWindow.DataWindowCreatedEventArgs e) { this.Cursor = Cursors.WaitCursor; long lngReg = -1; DataTable dt; lngReg = new clsDclBihLeaHos().GetDisease(out dt); if (lngReg > 0) { this.m_dwDisease.Retrieve(dt); this.m_dvDiagnoses = new DataView(dt); } this.Cursor = Cursors.Default; }
/// <summary> /// 撤消入院 /// </summary> public void m_mthCancleInHospital() { if (this.m_objViewer.m_ucPatientInfo.RegisterID == "") { MessageBox.Show("请输入病人信息!", "撤消入院", MessageBoxButtons.OK, MessageBoxIcon.Information); return; } if (this.m_objViewer.m_ucPatientInfo.BihPatient_VO.Status.ToString().Trim() == "3") { MessageBox.Show("该病人已经出院!", "撤消入院", MessageBoxButtons.OK, MessageBoxIcon.Information); return; } if (this.m_objViewer.m_ucPatientInfo.Status == -1) { MessageBox.Show("该病人已经撤消入院!", "撤消入院", MessageBoxButtons.OK, MessageBoxIcon.Information); return; } //bool hasNotExcOrder; clsDclBihLeaHos leaHosDomain = new clsDclBihLeaHos(); //检查是否存在尚为执行的临嘱 int count; long l = leaHosDomain.m_lngGetNotStopOrderByRegID(this.m_objViewer.m_ucPatientInfo.RegisterID, out count); if (count > 0) { if (MessageBox.Show(m_objViewer, "该病人有新开的医嘱,是否继续撤消入院操作?", "提示框", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.No) { return; } } if (this.m_objViewer.m_ucPatientInfo.BihPatient_VO.WaitChargeFee > 0 || this.m_objViewer.m_ucPatientInfo.BihPatient_VO.WaitClearFee > 0) { MessageBox.Show("有费用未清,不能撤消入院操作!", "撤消入院", MessageBoxButtons.OK, MessageBoxIcon.Information); return; } if (this.m_objViewer.m_ucPatientInfo.BalancePrepayMoney > 0) { MessageBox.Show("有预交金未清,不能作撤消入院操作!", "撤消入院", MessageBoxButtons.OK, MessageBoxIcon.Information); return; } if (MessageBox.Show("确认撤消入院么?", "撤消入院", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.OK) { p_objRrecord = new clsBIHpatientVO(); p_objRrecord.m_strREGISTERID_CHR = this.m_objViewer.m_ucPatientInfo.RegisterID; p_objRrecord.m_strINPATIENTID_CHR = this.m_objViewer.m_ucPatientInfo.BihPatient_VO.Zyh; p_objRrecord.m_strPSTATUS = this.m_objViewer.m_ucPatientInfo.BihPatient_VO.Status.ToString().Trim(); p_objRrecord.m_strRemark = m_objViewer.m_txtRemark.Text.Trim(); //p_objRrecord.m_strINPATIENTCOUNT_INT = this.m_objViewer.m_ucPatientInfo.BihPatient_VO.InsuredZycs.ToString(); p_objRrecord.m_strINPATIENTCOUNT_INT = this.m_objViewer.m_ucPatientInfo.BihPatient_VO.Zycs.ToString();//住院次数 p_objRrecord.m_strPATIENTID_CHR = this.m_objViewer.m_ucPatientInfo.BihPatient_VO.PatientID; p_objRrecord.m_strINPATIENTNOTYPE_INT = this.m_objViewer.m_ucPatientInfo.BihPatient_VO.InType; try { p_objRrecord.m_strOpearID = m_objViewer.LoginInfo.m_strEmpID; if (p_objRrecord.m_strOpearID == "" || p_objRrecord.m_strOpearID == null) { p_objRrecord.m_strOpearID = "0000001"; } long lngRes = m_objManage.m_lngCancleBeInHospital(p_objRrecord); if (lngRes > 0) { MessageBox.Show("撤消入院成功!", "撤消入院", MessageBoxButtons.OK, MessageBoxIcon.Information); this.m_objViewer.m_ucPatientInfo.m_mthReset(); //this.m_objViewer.cmdCancle.Enabled = false; m_mthClearControl(); decBalance = 0; decUnclearCharge = 0; p_objRrecord = null; } else { MessageBox.Show("撤消入院失败!", "撤消入院", MessageBoxButtons.OK, MessageBoxIcon.Error); m_mthGetBIHPatientInfo(p_objRrecord.m_strREGISTERID_CHR); } } catch (Exception e) { MessageBox.Show(e.Message, "撤消入院", MessageBoxButtons.OK, MessageBoxIcon.Information); m_mthGetBIHPatientInfo(p_objRrecord.m_strREGISTERID_CHR); } } }
public clsCtlModifyOutDate() { m_objManage = new clsDclBihLeaHos(); }
public clsCtlOutDiagnoses() { m_objDomain = new clsDclBihLeaHos(); }
public void PreLeaveHospital() { if (!IsPassInputValidate()) { return; } //try //{ // DateTime outDate; // outDate = Convert.ToDateTime(this.m_dtpOutDate.Text); // System.TimeSpan diff1 = outDate.Subtract(DateTime.Now); // if (diff1.Days > 0) // { // MessageBox.Show("出院日期不能早于今天", "提示"); // this.m_objViewer.m_dtpOutDate.Focus(); // return; // } //} //catch //{ } clsT_Opr_Bih_Leave_VO objPatientVO; ValueToVoForLeave(out objPatientVO); try { DateTime outDate; outDate = Convert.ToDateTime(this.m_objViewer.m_dtpOutDate.Text).Date; System.TimeSpan diff1 = outDate.Subtract(DateTime.Today); if (diff1.Days < 0) { MessageBox.Show("预出院日期不能早于今天", "提示"); this.m_objViewer.m_dtpOutDate.Focus(); return; } if (diff1.Days > 1) { MessageBox.Show("预出院日期不能迟于明天", "提示"); this.m_objViewer.m_dtpOutDate.Focus(); return; } //调用算费接口 bool charge; charge = clsPublic.m_blnChargeContinueItem(objPatientVO.m_strREGISTERID_CHR, objPatientVO.m_strOPERATORID_CHR); if (!charge) { MessageBox.Show("调用费用接口失败", "提示"); //this.m_objViewer.m_dtpOutDate.Focus(); return; } long lngReg = -1; clsDclBihLeaHos domainObj = new clsDclBihLeaHos(); //bool HasDisExcOrder; //domainObj.IfHasDisExcOrder(objPatientVO.m_strREGISTERID_CHR, out HasDisExcOrder); //if (HasDisExcOrder == true) //{ // string message = "该病人有医嘱未处理,请处理完毕才可以办理出院手续。是否继续?"; // string caption = "提示"; // MessageBoxButtons buttons = MessageBoxButtons.YesNo; // DialogResult result; // result = MessageBox.Show(this.m_objViewer, message, caption, buttons, // MessageBoxIcon.Question, MessageBoxDefaultButton.Button1, // MessageBoxOptions.RightAlign); // if (result == DialogResult.No) // { // return; // } //} lngReg = domainObj.PreLeaveHospital(objPatientVO); if (lngReg > 0) { string msg = "操作成功!" + this.m_objViewer.m_lblPatientName.Text + "将于" + this.m_objViewer.m_dtpOutDate.Text + "出院。"; MessageBox.Show(msg, "预出院", MessageBoxButtons.OK, MessageBoxIcon.Information); m_objViewer.DialogResult = DialogResult.OK; } else { MessageBox.Show("预出院失败!", "预出院", MessageBoxButtons.OK, MessageBoxIcon.Information); m_objViewer.DialogResult = DialogResult.No; } } catch (Exception e) { m_objViewer.DialogResult = DialogResult.No; MessageBox.Show(m_objViewer, e.Message, "错误提示框", MessageBoxButtons.OK, MessageBoxIcon.Error); } if (m_objViewer.DialogResult == DialogResult.OK && this.m_objViewer.m_ckbPrint.Checked) { // 打印出院通知单 frmPrintLeaveNotice printLeaveNotice = new frmPrintLeaveNotice(this.m_objViewer.m_bedManageVO, objPatientVO); printLeaveNotice.Show(); printLeaveNotice.Hide(); printLeaveNotice.m_cmdPrint_Click(null, null); } }