Exemplo n.º 1
0
        /// <summary>
        /// 根据入院登记ID获取病人预出院信息
        /// </summary>
        public void GetPatientPreLeaveInfo()
        {
            if (this.m_objViewer.m_ucPatientInfo.BihPatient_VO.RegisterID == "" || this.m_objViewer.m_ucPatientInfo.Status != 2)
            {
                this.m_objViewer.m_ucPatientInfo.m_mthReset();
                return;
            }

            p_objRrecord = null;
            long lngRes = m_objManage.GetPreLeaveByRegisterID(this.m_objViewer.m_ucPatientInfo.BihPatient_VO.RegisterID, out p_objRrecord);

            if (lngRes > 0 && p_objRrecord != null)
            {
                if (p_objRrecord.m_strOUTHOSPITAL_DAT != null && p_objRrecord.m_strOUTHOSPITAL_DAT != "")
                {
                    this.m_objViewer.m_dtpOldDate.Value = Convert.ToDateTime(p_objRrecord.m_strOUTHOSPITAL_DAT);
                    this.m_objViewer.m_txtRemark.Text   = p_objRrecord.m_strDES_VCHR;
                }
            }
            else
            {
                MessageBox.Show("对不起,找不到该病人的预出院信息!", "查找病人", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }