Esempio n. 1
0
        /// <summary>
        /// 载入病人、附加单据信息
        /// </summary>
        public void m_LoadData()
        {
            long lngRes = 0;

            //载入病人信息
            if (m_objViewer.m_strPatientID.Trim() == "")
            {
                return;
            }
            DataTable dtbResult = new DataTable();

            lngRes = m_objManage.lngGetOrderPatientBIHInfo(m_objViewer.m_strOrderID, out dtbResult);
            if (lngRes > 0 && dtbResult != null && dtbResult.Rows.Count > 0)
            {
                m_objViewer.m_lblPATIENTNAME_CHR.Text = dtbResult.Rows[0]["NAME_VCHR"].ToString().Trim();
                m_objViewer.m_lblSEX_CHR.Text         = dtbResult.Rows[0]["SEX_CHR"].ToString().Trim();
                m_objViewer.m_lblINPATIENTID_CHR.Text = dtbResult.Rows[0]["INPATIENTID_CHR"].ToString().Trim();
                m_objViewer.m_lblIDCARD_CHR.Text      = dtbResult.Rows[0]["IDCARD_CHR"].ToString().Trim();
                //入院登记流水号
                m_strREGISTERID_CHR = dtbResult.Rows[0]["REGISTERID_CHR"].ToString().Trim();
                //病区、病床
                m_objViewer.m_lblOUTAREAID_CHR.Text = dtbResult.Rows[0]["AreaName"].ToString().Trim();
                m_objViewer.m_lblOUTAREAID_CHR.Tag  = dtbResult.Rows[0]["AREAID_CHR"].ToString().Trim();
                m_objViewer.m_lblOUTBEDID_CHR.Text  = dtbResult.Rows[0]["BedCode"].ToString().Trim();
                m_objViewer.m_lblOUTBEDID_CHR.Tag   = dtbResult.Rows[0]["BEDID_CHR"].ToString().Trim();
            }

            //载入附加单据信息
            string strAttachID = m_objViewer.m_strAttachID.Trim();

            if (strAttachID == "")
            {
                return;
            }
            clsT_Opr_Bih_OrderAttach_Leave_Vo objResult = null;

            lngRes = m_objManage.m_lngGetOrderAttachLeaveByID(strAttachID, out objResult);
            if (lngRes > 0 && objResult != null)
            {
                m_strATTACHID_CHR   = objResult.m_strLEAVEID_CHR;
                m_strREGISTERID_CHR = objResult.m_strREGISTERID_CHR;
                m_objViewer.m_cboTYPE_INT.SelectedIndex    = objResult.m_intTYPE_INT;
                m_objViewer.m_lblOUTAREAID_CHR.Text        = objResult.m_strOutAreaName;
                m_objViewer.m_lblOUTAREAID_CHR.Tag         = objResult.m_strOUTAREAID_CHR;
                m_objViewer.m_lblOUTBEDID_CHR.Text         = objResult.m_strOutBedNo;
                m_objViewer.m_lblOUTBEDID_CHR.Tag          = objResult.m_strOUTBEDID_CHR;
                m_objViewer.m_cboPSTATUS_INT.SelectedIndex = objResult.m_intPSTATUS_INT;
                m_objViewer.m_lblSTATUS_INT.Text           = objResult.m_strStatusName;
                m_objViewer.m_lblSTATUS_INT.Tag            = objResult.m_intSTATUS_INT;
                m_objViewer.m_chkISACTIVE_INT.Checked      = (objResult.m_intISACTIVE_INT == 1)?true:false;
                m_objViewer.m_lblACTIVEEMPID_CHR.Text      = objResult.m_strActiveEmpName;
                m_objViewer.m_lblACTIVEEMPID_CHR.Tag       = objResult.m_strACTIVEEMPID_CHR;
                m_objViewer.m_lblACTIVEDATE_DAT.Text       = objResult.m_strACTIVEDATE_DAT;
                m_objViewer.m_txtDESC_VCHR.Text            = objResult.m_strDES_VCHR;
                if (objResult.m_intSTATUS_INT == 1 && objResult.m_intISACTIVE_INT != 1)
                {
                    m_objViewer.cmdBecomeEffective.Enabled = true;
                }
            }
        }