private void frmPATSPECREMARK_Load(object sender, EventArgs e) { ucPatientInfo1.Status = 9; //if (m_blload) //{ frmCommonFind f = new frmCommonFind("病人查找", 9); if (f.ShowDialog() == DialogResult.OK) { zyh = f.Zyh; ucPatientInfo1.m_mthFind(zyh, 2); ((clsCtl_PATSPECREMARK)this.objController).m_strCurrentRegisterID = ucPatientInfo1.RegisterID; } else { Cancel = true; this.Hide(); return; } // m_blload = false; // } ((clsCtl_PATSPECREMARK)this.objController).LoadData(((clsCtl_PATSPECREMARK)this.objController).m_strCurrentRegisterID); }
private void frmMessageChange_Load(object sender, EventArgs e) { m_mthSetEnter2Tab(new System.Windows.Forms.Control[] { m_txtOutPatientDoctor2, m_txtAREAID_CHR1 }); //初始化下拉框 ((clsCtl_MessageChange)this.objController).InitializationComboBox(); //清空并初始化 //this.m_cboInpatientNoType2.SelectedIndex = 0; ((clsCtl_MessageChange)this.objController).SetCurrentDoctor(this.LoginInfo); //载入科室对应的病区 ((clsCtl_MessageChange)this.objController).LoadAreaID(); //载入门诊医生信息 glzhang 2005.08.12 ((clsCtl_MessageChange)this.objController).m_mthLoadMainDoctor(); if (m_blload) { string zyh = ""; frmCommonFind f = new frmCommonFind(); if (f.ShowDialog() == DialogResult.OK) { zyh = f.Zyh; //((clsCtl_MessageChange)this.objController).m_strInPatientID = zyh.Trim(); ((clsCtl_MessageChange)this.objController).m_strRegisterID = f.RegisterID.Trim(); } else { return; } m_blload = false; } ((clsCtl_MessageChange)this.objController).QueryPatient(); }
/// <summary> /// 查找 /// </summary> public void m_mthFind() { frmCommonFind f = new frmCommonFind("查找在院病人资料", this.m_objViewer.ucPatientInfo.Status); if (f.ShowDialog() == DialogResult.OK) { //this.m_objViewer.ucPatientInfo.m_mthShortCurFind(); this.m_objViewer.ucPatientInfo.m_mthFind(f.RegisterID, 3); if (this.m_objViewer.ucPatientInfo.IsChanged) { this.m_mthGetPrePayHistoryInfo(); } } else { if (this.m_objViewer.InitFlag) { this.m_objViewer.DirClose = true; } else { if (this.m_objViewer != null) { this.m_objViewer.Close(); } } } }
/// <summary> /// 查找 /// </summary> /// <param name="type">类型: 1 查找当前在院病人;2 查找历史住院病人</param> public void m_mthFind(int type) { string title = ""; if (type == 1) { title = "查找在院病人资料"; } else if (type == 2) { title = "查找出院病人资料"; } else { return; } int tmp = 1; if (type == 2) { tmp = 3; } frmCommonFind ff = new frmCommonFind(title, tmp); if (ff.ShowDialog() == DialogResult.OK) { this.m_mthSetval(ff.Zyh, type); if (type == 1) { this.m_mthCheckHisinfo(ff.PatientID, ff.InType); } } }
private void btnFind_Click(object sender, EventArgs e) { frmCommonFind f = new frmCommonFind("查找病人资料", 0); if (f.ShowDialog() == DialogResult.OK) { this.txtZyh.Text = f.Zyh; this.lblZycs.Text = f.Zycs.ToString(); this.lblName.Text = f.PatName; } }
/// <summary> /// 查找 /// </summary> public void m_mthFind() { frmCommonFind f = new frmCommonFind("查找在院病人资料", this.m_objViewer.ucPatientInfo.Status); if (f.ShowDialog() == DialogResult.OK) { this.m_objViewer.ucPatientInfo.m_mthFind(f.RegisterID, 3); if (this.m_objViewer.ucPatientInfo.IsChanged) { this.m_mthGetData(); } } }
private void buttonXP1_Click(object sender, EventArgs e) { frmCommonFind f = new frmCommonFind("病人查找", 9); if (f.ShowDialog() == DialogResult.OK) { zyh = f.Zyh; ucPatientInfo1.m_mthFind(zyh, 2); ((clsCtl_PATSPECREMARK)this.objController).m_strCurrentRegisterID = ucPatientInfo1.RegisterID; } else { return; } ((clsCtl_PATSPECREMARK)this.objController).bindtheTextBox(((clsCtl_PATSPECREMARK)this.objController).m_strCurrentRegisterID); }
private void buttonXP1_Click(object sender, EventArgs e) { string zyh = ""; frmCommonFind f = new frmCommonFind(); if (f.ShowDialog() == DialogResult.OK) { zyh = f.Zyh; //((clsCtl_MessageChange)this.objController).m_strInPatientID = zyh.Trim(); ((clsCtl_MessageChange)this.objController).m_strRegisterID = f.RegisterID.Trim(); } else { return; } cmdRefurbish_Click(null, null); }
/// <summary> /// 查找 /// </summary> public void m_mthFind() { frmCommonFind f = new frmCommonFind("查找出院病人资料", this.m_objViewer.ucPatientInfo.Status); if (f.ShowDialog() == DialogResult.OK) { this.m_objViewer.ucPatientInfo.m_mthFind(f.RegisterID, 3); if (this.m_objViewer.ucPatientInfo.IsChanged) { if (this.m_objViewer.ucPatientInfo.BihPatient_VO.Status == 2) { this.m_mthShowAllFeeDetail(this.m_objViewer.ucPatientInfo.RegisterID); } else if (this.m_objViewer.ucPatientInfo.BihPatient_VO.Status == 3) { this.m_mthShowAllFeeDetail(this.m_objViewer.ucPatientInfo.RegisterID); } } } }
/// <summary> /// 查找 /// </summary> public void m_mthFind() { frmCommonFind f = new frmCommonFind("查找出院病人资料", this.m_objViewer.ucPatientInfo.Status); if (f.ShowDialog() == DialogResult.OK) { this.m_objViewer.ucPatientInfo.m_mthFind(f.RegisterID, 3); if (this.m_objViewer.ucPatientInfo.IsChanged) { this.m_blnChargePatch(); if (this.m_objViewer.cboDeptClass.SelectedIndex == 0) { this.m_mthShowFeeCat(this.m_objViewer.ucPatientInfo.RegisterID, 1); } else { this.m_objViewer.cboDeptClass.SelectedIndex = 0; } } } }
/// <summary> /// 根据入院登记ID获取病人住院信息 /// </summary> /// <param name="p_strRegisterID">入院登记ID</param> public void m_mthGetBIHPatientInfo() { frmCommonFind frm = new frmCommonFind(); if (frm.ShowDialog() == DialogResult.OK) { p_objRrecord = null; decBalance = 0; decUnclearCharge = 0; try { long lngRes = m_objManage.m_lngGetBIHPatientInfoAndCharge(frm.RegisterID, 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(); 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; 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; 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; // 2008-01-29 m_objViewer.m_txtBedNo2.Text = p_objRrecord.m_strCODE_CHR; if (p_objRrecord.m_strINPATIENTNOTYPE_INT == "2") { m_objViewer.m_txtInType.Text = "留观"; } else { m_objViewer.m_txtInType.Text = "正式"; } m_objViewer.m_cmbBabyOrder.SelectedIndex = -1; m_objViewer.m_cmBabySex.SelectedIndex = -1; if (m_objViewer.intEditMode == 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(); m_objViewer.m_cmbBabyOrder.SelectedIndex = 0; } else if (m_objViewer.intEditMode == 2) { //获取婴儿胎次 int intBornNum = 1; ArrayList arrBornNum = new ArrayList(); //lngRes = m_objManage.m_lngGetBabyBornNumByID(((clsBIHBed)m_objViewer.m_txtBedNo2.Tag).m_objPatient.m_strRegisterID, ref intBornNum); lngRes = m_objManage.m_lngGetBabyBornNumByID(p_objRrecord.m_strREGISTERID_CHR, ref arrBornNum); if (lngRes > 0) { m_objViewer.m_cmbBabyOrder.Items.Clear(); //for (int i1 = 1; i1 <= intBornNum; i1++) //{ // m_objViewer.m_cmbBabyOrder.Items.Add(i1.ToString()); //} foreach (Object obj in arrBornNum) { m_objViewer.m_cmbBabyOrder.Items.Add(obj.ToString()); } if (arrBornNum.Count > 0) { m_objViewer.m_cmbBabyOrder.SelectedIndex = 0; } else { m_objViewer.m_cmbBabyOrder.SelectedIndex = -1; } if (arrBornNum.Count > 0) { //获取婴儿入院登记信息 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); } } }