コード例 #1
0
ファイル: clsCtl_OrderAttachEdit.cs プロジェクト: timsanc/HIS
        /// <summary>
        /// 载入病人、附加单据信息
        /// </summary>
        public void m_LoadData()
        {
            long lngRes = 0;

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

            lngRes = m_objManage.m_lngGetPatientInfoByPatientID(m_objViewer.m_strPatientID, out objItem);
            if (lngRes > 0 && objItem != null)
            {
                m_objViewer.m_lblPATIENTNAME_CHR.Text = objItem.m_strNAME_VCHR;
                m_objViewer.m_lblSEX_CHR.Text         = objItem.m_strSEX_CHR;
                m_objViewer.m_lblINPATIENTID_CHR.Text = objItem.m_strINPATIENTID_CHR;
                m_objViewer.m_lblIDCARD_CHR.Text      = objItem.m_strIDCARD_CHR;
            }

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

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

            lngRes = m_objManage.m_lngGetTemfororderByID(strAttachID, out objResult);
            if (lngRes > 0 && objResult != null)
            {
                m_strATTACHID_CHR                       = objResult.m_strID_CHR;
                m_objViewer.m_strPatientID              = objResult.m_strPATIENTID_CHR;
                m_objViewer.m_txtDESC_VCHR.Text         = objResult.m_strDESC_VCHR;
                m_objViewer.m_cboMAZUI_CHR.SelectedItem = objResult.m_strMAZUI_CHR;
                m_objViewer.m_lblPSTATUS_CHR.Tag        = objResult.m_fltPSTATUS_CHR;
                switch (objResult.m_fltPSTATUS_CHR.ToString().Trim())
                {
                case "0":
                    m_objViewer.m_lblPSTATUS_CHR.Text = "未发送";
                    break;

                case "1":
                    m_objViewer.m_lblPSTATUS_CHR.Text = "已发送";
                    break;

                case "2":
                    m_objViewer.m_lblPSTATUS_CHR.Text = "已有结果";
                    break;

                default:
                    m_objViewer.m_lblPSTATUS_CHR.Text = "未知状态";
                    break;
                }
            }
        }