コード例 #1
0
        /// <summary>
        /// 清空控件文本
        /// </summary>
        private void m_mthClearControl()
        {
            p_objRrecord = null;
            m_blnSetName = false;
            // m_objViewer.m_cmbBabyOrder.Items.Clear();
            m_objViewer.m_txtBabyName.Tag            = null;
            m_objViewer.m_cmbBabyOrder.SelectedIndex = -1;
            m_objViewer.m_cmBabySex.SelectedIndex    = -1;
            if (m_objViewer.m_cmdBabyPayType.Items.Count > 0)
            {
                this.m_objViewer.m_cmdBabyPayType.SelectedIndex = 0;
            }
            m_objViewer.m_txtBabyName.Text = "";
            foreach (object obj in m_objViewer.m_groMathorInfo.Controls)
            {
                if (obj is TextBox)
                {
                    ((TextBox)obj).Text = "";
                }
            }

            this.m_objViewer.m_txtArea.Focus();
            this.m_objViewer.m_txtBedNo2.Text = "";
            this.m_objViewer.chk_isSC.Checked = false;//add by zxm
        }
コード例 #2
0
        /// <summary>
        /// 根据入院登记ID获取病人住院信息
        /// </summary>
        /// <param name="p_strRegisterID">入院登记ID</param>
        public void m_mthGetBIHPatientInfo(string p_strRegisterID)
        {
            p_objRrecord     = null;
            decBalance       = 0;
            decUnclearCharge = 0;
            long lngRes = m_objManage.m_lngGetBIHPatientInfoAndCharge(p_strRegisterID, out p_objRrecord);

            if (lngRes > 0 && p_objRrecord != 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);
                }

                //this.m_objViewer.cmdCancle.Enabled = true;
                //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;
                //if (p_objRrecord.m_strINPATIENTNOTYPE_INT == "2")
                //{
                //    m_objViewer.m_txtInType.Text = "留观";
                //}
                //else
                //{
                //    m_objViewer.m_txtInType.Text = "正式";
                //}
            }
            else
            {
                MessageBox.Show("对不起,找不到该病人信息!", "查找病人", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
コード例 #3
0
        /// <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);
                }
            }
        }
コード例 #4
0
        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);
            }
        }