/// <summary> /// 获取婴儿入院登记信息 /// </summary> internal void m_mthGetBabyInfo() { DataTable dtbBabyInfo = null; if (p_objRrecord == null) { return; } long lngRes = m_objManage.m_lngGetBabyRegisterInfoByID(p_objRrecord.m_strREGISTERID_CHR, Convert.ToInt32(m_objViewer.m_cmbBabyOrder.Text), out dtbBabyInfo); if (lngRes > 0 && dtbBabyInfo.Rows.Count > 0) { m_objBabyRegisterInfoArr = new clsT_Opr_Bih_Register_VO[dtbBabyInfo.Rows.Count]; m_objPatientInfoArr = new clsPatient_VO[dtbBabyInfo.Rows.Count]; for (int i1 = 0; i1 < dtbBabyInfo.Rows.Count; i1++) { m_objBabyRegisterInfoArr[i1] = new clsT_Opr_Bih_Register_VO(); m_objPatientInfoArr[i1] = new clsPatient_VO(); m_objBabyRegisterInfoArr[i1].m_strREGISTERID_CHR = dtbBabyInfo.Rows[i1]["registerid_chr"].ToString().Trim(); m_objBabyRegisterInfoArr[i1].m_strPAYTYPEID_CHR = dtbBabyInfo.Rows[i1]["paytypeid_chr"].ToString().Trim(); m_objPatientInfoArr[i1].m_strSEX_CHR = dtbBabyInfo.Rows[i1]["sex_chr"].ToString().Trim(); m_objPatientInfoArr[i1].m_strLASTNAME_VCHR = dtbBabyInfo.Rows[i1]["lastname_vchr"].ToString().Trim(); m_objPatientInfoArr[i1].m_strBIRTH_DAT = dtbBabyInfo.Rows[i1]["birth_dat"].ToString().Trim(); m_objPatientInfoArr[i1].m_strLASTNAME_VCHR = dtbBabyInfo.Rows[i1]["lastname_vchr"].ToString().Trim(); m_objBabyRegisterInfoArr[i1].m_intIsShunchan = Convert.ToInt32(dtbBabyInfo.Rows[i1]["isshunchan"].ToString().Trim());//顺产标志 add by zxm } } }
/// <summary> /// 载入住院信息 [根据入院登记流水号] /// </summary> public void LoadBIHInfo() { if (m_objViewer.m_strRegisterID == string.Empty) { return; } clsT_Opr_Bih_Register_VO m_objItem = new clsT_Opr_Bih_Register_VO(); long lngReg = m_objRegister.m_lngGetBinRegisterByRegisterID(m_objViewer.m_strRegisterID, out m_objItem); if (lngReg <= 0 || m_objItem == null) { return; } //入院时间 m_objViewer.m_lblINPATIENT_DAT.Text = Convert.ToDateTime(m_objItem.m_strINPATIENT_DAT.ToString()).ToString("yyyy年MM月dd日"); //住院天数 try { System.TimeSpan diff1 = System.DateTime.Now.Subtract(Convert.ToDateTime(m_objItem.m_strINPATIENT_DAT)); //m_objViewer.m_lblBIHDays.Text =diff1.Days.ToString(); m_objViewer.m_lblBIHDays.Text = Convert.ToString(diff1.Days + 1); } catch {} //入院科室、病区、床号 m_objViewer.m_lblDEPTID_CHR.Text = m_objItem.m_strDeptName; m_objViewer.m_lblAREAID_CHR.Text = m_objItem.m_strAreaName; m_objViewer.m_lblBEDID_CHR.Text = m_objItem.m_strBedNo; m_objViewer.m_dtpOutDate.Text = DateTime.Now.ToString("yyyy年MM月dd日HH时mm分"); if (m_objViewer.m_bedManageVO.m_strINTERNALFLAG_INT == "2") { //医保病人 //this.m_objViewer.m_ckbDiseasType.Checked = true; this.m_objViewer.m_ckbDiseasType.Enabled = true; } else { //this.m_objViewer.m_ckbDiseasType.Checked = false; this.m_objViewer.m_ckbDiseasType.Enabled = false; } if (m_objItem.m_intDiseaseType == 1) { this.m_objViewer.m_ckbDiseasType.Enabled = false; this.m_objViewer.m_ckbDiseasType.Checked = true; } this.m_objViewer.m_tbDiagnose.Text = m_objItem.m_strOutDiagnose; }
/// <summary> /// 保存婴儿入院登记(修改) /// </summary> public void m_mthChangeBabyRegister() { if (p_objRrecord == null || p_objRrecord.m_strREGISTERID_CHR == "") { MessageBox.Show("请输入病人信息!", "婴儿登记", MessageBoxButtons.OK, MessageBoxIcon.Information); return; } if (m_objViewer.m_txtBabyName.Text.Trim() == "") { MessageBox.Show("婴儿姓名不能为空!", "婴儿登记", MessageBoxButtons.OK, MessageBoxIcon.Information); return; } else if (m_objViewer.m_txtBabyName.Tag == null || string.IsNullOrEmpty(m_objViewer.m_txtBabyName.Tag.ToString())) { MessageBox.Show("请选择婴儿!", "婴儿登记", MessageBoxButtons.OK, MessageBoxIcon.Information); return; } try { //明细表 clsPatient_VO m_objPatientInfo = new clsPatient_VO(); m_objPatientInfo.m_strFIRSTNAME_VCHR = m_objViewer.m_txtBabyName.Text.Trim(); m_objPatientInfo.m_strLASTNAME_VCHR = m_objViewer.m_txtBabyName.Text.Trim(); m_objPatientInfo.m_strNAME_VCHR = m_objViewer.m_txtBabyName.Text.Trim(); m_objPatientInfo.m_strSEX_CHR = m_objViewer.m_cmBabySex.Text; m_objPatientInfo.m_strBIRTH_DAT = Convert.ToDateTime(m_objViewer.m_datBabyBrithday.Text).ToString("yyyy-MM-dd HH:mm:ss"); //主表 clsT_Opr_Bih_Register_VO m_objBabyRegisterInfo = new clsT_Opr_Bih_Register_VO(); m_objBabyRegisterInfo.m_intBORNNUM_INT = m_objViewer.m_cmbBabyOrder.SelectedIndex + 1; m_objBabyRegisterInfo.m_strPAYTYPEID_CHR = (string)m_objViewer.m_cmdBabyPayType.SelectedValue; m_objBabyRegisterInfo.m_strREGISTERID_CHR = (string)m_objViewer.m_txtBabyName.Tag; m_objBabyRegisterInfo.m_intIsShunchan = m_objViewer.chk_isSC.Checked ? 1 : 0;// 是否顺产 by zmx long lngRes = m_objManage.m_lngChangeBabyRegister(m_objPatientInfo, m_objBabyRegisterInfo); if (lngRes > 0) { MessageBox.Show("保存成功!", "婴儿登记", MessageBoxButtons.OK, MessageBoxIcon.Information); m_mthClearControl(); } else { MessageBox.Show("保存失败!", "婴儿登记", MessageBoxButtons.OK, MessageBoxIcon.Error); } } catch (Exception e) { MessageBox.Show(e.Message, "婴儿登记", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
/// <summary> /// 安排床位 /// </summary> public void m_mthArrangeBed() { if (m_objViewer.m_cmbBed.SelectedItem == null) { MessageBox.Show("床位为必选项!", "安排床位", MessageBoxButtons.OK, MessageBoxIcon.Information); m_objViewer.m_cmbBed.Focus(); return; } if (m_objViewer.m_lsvPatientInfo.SelectedItems.Count < 1) { MessageBox.Show("病人为必选项!", "安排床位", MessageBoxButtons.OK, MessageBoxIcon.Information); return; } if (m_objViewer.m_txtMaindoctor.Value == null) { MessageBox.Show("主治医生为必选项!", "安排床位", MessageBoxButtons.OK, MessageBoxIcon.Information); m_objViewer.m_txtMaindoctor.Focus(); return; } if (m_objViewer.m_cboSTATE_INT.SelectedIndex == 0) { MessageBox.Show("病情不能为空!", "安排床位", MessageBoxButtons.OK, MessageBoxIcon.Information); m_objViewer.m_cboSTATE_INT.Focus(); return; } clsT_Bse_Bed_VO bedVO = (clsT_Bse_Bed_VO)m_objViewer.m_cmbBed.SelectedItem; string strSex = m_objViewer.m_lsvPatientInfo.SelectedItems[0].SubItems[3].Text.Trim(); if (bedVO.m_strSexName != "不限" && strSex != bedVO.m_strSexName) { if (MessageBox.Show("您确定将此" + strSex + "病人转到" + bedVO.m_strSexName + "病床吗?", "安排床位", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.No) { return; } } clsT_Opr_Bih_Transfer_VO p_objRecord = new clsT_Opr_Bih_Transfer_VO(); p_objRecord.m_strTARGETDEPTID_CHR = m_objViewer.m_strDeptID; p_objRecord.m_strTARGETAREAID_CHR = m_objViewer.m_strAreaID; p_objRecord.m_strTARGETBEDID_CHR = bedVO.m_strBEDID_CHR; p_objRecord.m_strREGISTERID_CHR = (string)m_objViewer.m_lsvPatientInfo.SelectedItems[0].Tag; p_objRecord.m_strDES_VCHR = m_objViewer.m_txtMaindoctor.Value; p_objRecord.m_strOPERATORID_CHR = m_objViewer.LoginInfo.m_strEmpID; p_objRecord.m_strHisInpatientDate = m_objViewer.m_inAreaDate.Text; clsT_Opr_Bih_Register_VO objRegVO = new clsT_Opr_Bih_Register_VO(); objRegVO.m_strREGISTERID_CHR = p_objRecord.m_strREGISTERID_CHR; objRegVO.m_intSTATE_INT = this.m_objViewer.m_cboSTATE_INT.SelectedIndex; objRegVO.m_strOPERATORID_CHR = this.m_objViewer.LoginInfo.m_strEmpID; objRegVO.m_strCASEDOCTOR_CHR = p_objRecord.m_strDES_VCHR = m_objViewer.m_txtMaindoctor.Value; if (this.m_objViewer.m_txtNurse.Value != null) { objRegVO.m_strNurseOrderdic = this.m_objViewer.m_txtNurse.Value; if (this.m_objViewer.m_txtNurse.Text.Contains("特级")) { objRegVO.m_intNursingClass = 0; } else if (this.m_objViewer.m_txtNurse.Text.Contains("一级")) { objRegVO.m_intNursingClass = 1; } else if (this.m_objViewer.m_txtNurse.Text.Contains("二级")) { objRegVO.m_intNursingClass = 2; } else if (this.m_objViewer.m_txtNurse.Text.Contains("三级")) { objRegVO.m_intNursingClass = 3; } } else { objRegVO.m_strNurseOrderdic = ""; } if (this.m_objViewer.m_txtEat.Value != null) { objRegVO.m_strEatOrderdic = this.m_objViewer.m_txtEat.Value; } else { objRegVO.m_strEatOrderdic = ""; } try { long lngRes = m_objManage.m_lngArrangeBed(p_objRecord, objRegVO); if (lngRes > 0) { MessageBox.Show("转入成功!", "安排床位", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); if ((new clsDcl_BedAdmin()).IsYbReg(p_objRecord.m_strREGISTERID_CHR)) { frmYBRegisterZY frmYb = new frmYBRegisterZY(); frmYb.IsNurseModify = true; frmYb.strRegisterId = p_objRecord.m_strREGISTERID_CHR; frmYb.ShowDialog(); } m_mthGetEmptyBed(); m_objViewer.m_lsvPatientInfo.SelectedItems[0].Remove(); if (m_objViewer.m_lsvPatientInfo.Items.Count > 0) { m_objViewer.m_lsvPatientInfo.Items[0].Selected = true; } m_objViewer.m_intFlag = 1; } } catch (Exception ex) { MessageBox.Show(ex.Message + "!", "安排床位失败", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); m_mthGetEmptyBed(); m_mthGetTurnInNotAccept(); } }
private void refreshTheData() { p_objRrecord = null; decBalance = 0; decUnclearCharge = 0; try { long lngRes = m_objManage.m_lngGetBIHPatientInfoAndCharge(((clsBIHBed)m_objViewer.m_txtBedNo2.Tag).m_objPatient.m_strRegisterID, out p_objRrecord); if (lngRes > 0 && p_objRrecord != null) { if (p_objRrecord.m_strSEX_CHR != "女") { MessageBox.Show("应选择女性!", "婴儿登记", MessageBoxButtons.OK, MessageBoxIcon.Information); //frm = null; //m_mthGetBIHPatientInfo(); this.m_objViewer.m_txtBedNo2.Focus(); return; } if (p_objRrecord.m_strINPATIENTID_CHR.EndsWith("B") == true) { MessageBox.Show("应选择婴儿的母亲!", "婴儿登记", MessageBoxButtons.OK, MessageBoxIcon.Information); //frm = null; //m_mthGetBIHPatientInfo(); this.m_objViewer.m_txtBedNo2.Focus(); return; } if (p_objRrecord.m_strPSTATUS_INT == "3" && p_objRrecord.m_strSTATUS_INT != "1") { MessageBox.Show("只能对在院病人对婴儿登记!", "婴儿登记", MessageBoxButtons.OK, MessageBoxIcon.Information); //frm = null; //m_mthGetBIHPatientInfo(); return; } //frm = null; if (p_objRrecord.m_strUnclearCharge != "" && p_objRrecord.m_strUnclearCharge == null) { decUnclearCharge = Convert.ToDecimal(p_objRrecord.m_strUnclearCharge); } if (p_objRrecord.m_strBalance != "" && p_objRrecord.m_strBalance == null) { decBalance = Convert.ToDecimal(p_objRrecord.m_strBalance); } m_objViewer.m_txtName.Text = p_objRrecord.m_strNAME_VCHR; m_objViewer.m_txtInHospitalID.Text = p_objRrecord.m_strINPATIENTID_CHR; m_objViewer.m_txtSex.Text = p_objRrecord.m_strSEX_CHR; m_objViewer.m_txtAge.Text = new clsBrithdayToAge().m_strGetAge(p_objRrecord.m_strBIRTH_DAT); m_objViewer.m_txtArear.Text = p_objRrecord.m_strAREANAME; decimal.TryParse(p_objRrecord.m_strBalance, out decBalance); m_objViewer.m_txtBalance.Text = decBalance.ToString("0.00"); m_objViewer.m_txtBedCode.Text = p_objRrecord.m_strCODE_CHR; m_objViewer.m_txtStatus.Text = p_objRrecord.m_strSTATUS; m_objViewer.m_txtPstatus.Text = p_objRrecord.m_strPSTATUS; decimal.TryParse(p_objRrecord.m_strUnclearCharge, out decUnclearCharge); m_objViewer.m_txtUnclearCharge.Text = decUnclearCharge.ToString("0.00"); m_objViewer.m_txtDese.Text = p_objRrecord.m_strICD10DIAGTEXT_VCHR; m_objViewer.m_txtInHospitalTime.Text = p_objRrecord.m_strINPATIENT_DAT; m_objViewer.m_txtInTime.Text = p_objRrecord.m_strINPATIENTCOUNT_INT; if (p_objRrecord.m_strINPATIENTNOTYPE_INT == "2") { m_objViewer.m_txtInType.Text = "留观"; } else { m_objViewer.m_txtInType.Text = "正式"; } m_objViewer.m_cmBabySex.SelectedIndex = 0; if (m_objViewer.intEditMode == 0) { m_objViewer.m_cmbBabyOrder.SelectedIndex = 0; m_objViewer.m_txtBabyName.Text = p_objRrecord.m_strNAME_VCHR + "B"; } else { m_objViewer.m_txtBabyName.Text = string.Empty; m_objViewer.m_txtBabyName.Tag = null; } if (m_objViewer.m_cmdBabyPayType.Items.Count > 0) { this.m_objViewer.m_cmdBabyPayType.SelectedIndex = 0; } if (m_objViewer.intEditMode == 0) { m_objViewer.m_cmbBabyOrder.Focus(); } else if (m_objViewer.intEditMode == 2) { //获取婴儿胎次 int intBornNum = 1; ArrayList arrBronNum = new ArrayList(); //lngRes = m_objManage.m_lngGetBabyBornNumByID(((clsBIHBed)m_objViewer.m_txtBedNo2.Tag).m_objPatient.m_strRegisterID, ref intBornNum); lngRes = m_objManage.m_lngGetBabyBornNumByID(((clsBIHBed)m_objViewer.m_txtBedNo2.Tag).m_objPatient.m_strRegisterID, ref arrBronNum); if (lngRes > 0) { m_objViewer.m_cmbBabyOrder.Items.Clear(); //for (int i1 = 1; i1 <= intBornNum; i1++) //{ // m_objViewer.m_cmbBabyOrder.Items.Add(i1.ToString()); //} //if (intBornNum > 0) //{ // m_objViewer.m_cmbBabyOrder.SelectedIndex = 0; //} foreach (Object obj in arrBronNum) { m_objViewer.m_cmbBabyOrder.Items.Add(obj.ToString()); } if (arrBronNum.Count > 0) { m_objViewer.m_cmbBabyOrder.SelectedIndex = 0; } else { MessageBox.Show("没有婴儿资料!", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information); m_objViewer.m_txtBedNo2.Focus(); return; } //获取婴儿入院登记信息 DataTable dtbBabyInfo = null; lngRes = m_objManage.m_lngGetBabyRegisterInfoByID(p_objRrecord.m_strREGISTERID_CHR, Convert.ToInt32(m_objViewer.m_cmbBabyOrder.Text), out dtbBabyInfo); if (lngRes > 0 && dtbBabyInfo.Rows.Count > 0) { m_objBabyRegisterInfoArr = new clsT_Opr_Bih_Register_VO[dtbBabyInfo.Rows.Count]; m_objPatientInfoArr = new clsPatient_VO[dtbBabyInfo.Rows.Count]; for (int i1 = 0; i1 < dtbBabyInfo.Rows.Count; i1++) { m_objBabyRegisterInfoArr[i1] = new clsT_Opr_Bih_Register_VO(); m_objPatientInfoArr[i1] = new clsPatient_VO(); m_objBabyRegisterInfoArr[i1].m_strREGISTERID_CHR = dtbBabyInfo.Rows[i1]["registerid_chr"].ToString().Trim(); m_objBabyRegisterInfoArr[i1].m_strPAYTYPEID_CHR = dtbBabyInfo.Rows[i1]["paytypeid_chr"].ToString().Trim(); m_objPatientInfoArr[i1].m_strSEX_CHR = dtbBabyInfo.Rows[i1]["sex_chr"].ToString().Trim(); m_objPatientInfoArr[i1].m_strLASTNAME_VCHR = dtbBabyInfo.Rows[i1]["lastname_vchr"].ToString().Trim(); m_objPatientInfoArr[i1].m_strBIRTH_DAT = dtbBabyInfo.Rows[i1]["birth_dat"].ToString().Trim(); m_objPatientInfoArr[i1].m_strLASTNAME_VCHR = dtbBabyInfo.Rows[i1]["lastname_vchr"].ToString().Trim(); m_objBabyRegisterInfoArr[i1].m_intIsShunchan = Convert.ToInt32(dtbBabyInfo.Rows[i1]["isshunchan"].ToString().Trim());//顺产标志 add by zxm } m_objViewer.m_txtBabyName.Text = m_objPatientInfoArr[0].m_strLASTNAME_VCHR; m_objViewer.m_txtBabyName.Tag = m_objBabyRegisterInfoArr[0].m_strREGISTERID_CHR; m_objViewer.m_datBabyBrithday.Value = Convert.ToDateTime(m_objPatientInfoArr[0].m_strBIRTH_DAT); m_objViewer.chk_isSC.Checked = (m_objBabyRegisterInfoArr[0].m_intIsShunchan == 1) ? true : false;//顺产标志 add by zxm //性别 for (int i1 = 0; i1 < m_objViewer.m_cmBabySex.Items.Count; i1++) { if (m_objViewer.m_cmBabySex.Items[i1].ToString().Equals(m_objPatientInfoArr[0].m_strSEX_CHR)) { m_objViewer.m_cmBabySex.SelectedIndex = i1; break; } }//for //病人身份 for (int i1 = 0; i1 < m_objViewer.m_cmdBabyPayType.Items.Count; i1++) { if (p_objRecordArr[i1].m_strPayTypeID.Equals(m_objBabyRegisterInfoArr[0].m_strPAYTYPEID_CHR)) //if (m_objViewer.m_cmdBabyPayType.ValueMember[i1].ToString().Equals(m_objBabyRegisterInfoArr[0].m_strPAYTYPEID_CHR) ) { m_objViewer.m_cmdBabyPayType.SelectedIndex = i1; break; } } //for } //if } // m_objViewer.m_cmbBabyOrder.Focus(); } } else { MessageBox.Show("对不起,找不到该病人信息!", "查找病人", MessageBoxButtons.OK, MessageBoxIcon.Information); } } catch (Exception ex) { MessageBox.Show(ex.Message, "查找病人失败!", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
/// <summary> /// 保存住院信息 /// </summary> public void m_thSaveInHospInfo() { clsT_Opr_Bih_Register_VO p_objRecord = new clsT_Opr_Bih_Register_VO(); p_objRecord.m_strREGISTERID_CHR = m_strRegisterID; if (m_objViewer.m_cboSTATE_INT.SelectedIndex == 0) { MessageBox.Show("病情不能为空!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); this.m_objViewer.m_cboSTATE_INT.Focus(); return; } if (m_objViewer.m_txtMaindoctor.Value == null) { MessageBox.Show("主治医生为必选项!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); this.m_objViewer.m_txtMaindoctor.Focus(); return; } else { p_objRecord.m_strCASEDOCTOR_CHR = m_objViewer.m_txtMaindoctor.Value.Trim(); } if (m_objViewer.m_txtICD.Text.Trim() == "") { p_objRecord.m_strICD10DIAGID_VCHR = ""; } else { p_objRecord.m_strICD10DIAGID_VCHR = m_objViewer.m_txtICD.Tag.ToString().Trim(); } p_objRecord.m_strICD10DIAGTEXT_VCHR = m_objViewer.m_txtICD.Text.Trim(); if (m_objViewer.m_txtDIAGNOSE.Text.Trim() == "" || m_bolProtect == false) { p_objRecord.m_strDIAGNOSEID_CHR = ""; p_objRecord.m_strDIAGNOSE_VCHR = ""; } else { p_objRecord.m_strDIAGNOSEID_CHR = m_objViewer.m_txtDIAGNOSE.Tag.ToString().Trim(); p_objRecord.m_strDIAGNOSE_VCHR = m_objViewer.m_txtDIAGNOSE.Text.Trim(); } p_objRecord.m_strINAREADATE_DAT = m_objViewer.m_inAreaDate.Text.Trim(); p_objRecord.m_strOPERATORID_CHR = m_objViewer.LoginInfo.m_strEmpID; m_objViewer.Cursor = Cursors.WaitCursor; try { string firstOrderDate; //根据入院登记ID获取病人最早的医嘱时间 this.m_objManage.GetFirstOrderDateByRegId(this.m_strRegisterID, out firstOrderDate); if (firstOrderDate != "") { if (Convert.ToDateTime(p_objRecord.m_strINAREADATE_DAT) > Convert.ToDateTime(firstOrderDate)) { MessageBox.Show("入病区时间不能迟于医嘱时间!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); this.m_objViewer.m_inAreaDate.Focus(); return; } } if (Convert.ToDateTime(p_objRecord.m_strINAREADATE_DAT) < Convert.ToDateTime(m_objViewer.m_txtINPATIENT_DAT.Text.Trim())) { MessageBox.Show("入病区时间不能早于入院时间!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); this.m_objViewer.m_inAreaDate.Focus(); return; } p_objRecord.m_intSTATE_INT = this.m_objViewer.m_cboSTATE_INT.SelectedIndex; p_objRecord.m_strEatOrderdic = this.m_objViewer.m_txtEat.Value; p_objRecord.m_strNurseOrderdic = this.m_objViewer.m_txtNurse.Value; if (this.m_objViewer.m_txtNurse.Text.Contains("特级")) { p_objRecord.m_intNursingClass = 0; } else if (this.m_objViewer.m_txtNurse.Text.Contains("一级")) { p_objRecord.m_intNursingClass = 1; } else if (this.m_objViewer.m_txtNurse.Text.Contains("二级")) { p_objRecord.m_intNursingClass = 2; } else if (this.m_objViewer.m_txtNurse.Text.Contains("三级")) { p_objRecord.m_intNursingClass = 3; } long lngReg = m_objManage.m_lngModifyRegInfo(p_objRecord); if (lngReg > 0) { m_objViewer.DialogResult = System.Windows.Forms.DialogResult.OK; MessageBox.Show("保存成功!", "床位管理", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { MessageBox.Show("保存失败!", "床位管理", MessageBoxButtons.OK, MessageBoxIcon.Warning); } } catch (Exception ex) { MessageBox.Show(ex.Message, "床位管理"); } finally { m_objViewer.Cursor = Cursors.Default; } }