Beispiel #1
0
        private void m_listV_DoubleClick(object sender, EventArgs e)
        {
            if (m_listV.SelectedItems.Count == 0)
            {
                return;
            }
            string[]      strPatientArr = (string[])m_listV.SelectedItems[0].Tag;
            clsPeopleInfo objPeopleInfo = new clsPeopleInfo();

            objPeopleInfo.m_StrFirstName = m_listV.SelectedItems[0].Text;
            clsPatient objSelectPatient = new clsPatient(strPatientArr[1], strPatientArr[3], objPeopleInfo);

            objSelectPatient.m_StrPatientID = strPatientArr[7];
            objSelectPatient.m_strDeptNewID = strPatientArr[5];
            objSelectPatient.m_strAreaNewID = strPatientArr[6];
            int seleDetInt = 0;

            if (objDeptInfoArr.Length > 0)
            {
                for (int i1 = 0; i1 < objDeptInfoArr.Length; i1++)
                {
                    if (objDeptInfoArr[i1].m_strDEPTID_CHR == (string)this.m_txtDept.Tag)
                    {
                        seleDetInt = i1;
                        break;
                    }
                }
            }
            com.digitalwave.emr.BEDExplorer.frmHRPExplorer.objpCurrentDepartment = objDeptInfoArr[seleDetInt];
            frmInHospitalMainRecord_GX MainRecord = new frmInHospitalMainRecord_GX();

            MainRecord.m_mthSetPatient(objSelectPatient);
            MainRecord.MdiParent = this.ParentForm;
            MainRecord.Show();
        }
Beispiel #2
0
        /// <summary>
        /// 获取查询出的病人信息
        /// </summary>
        /// <param name="p_strPatientID"></param>
        /// <param name="p_objPatient"></param>
        public void m_mthInitPatientInfo(string p_strPatientID, string p_strPatientName, out clsPatient p_objPatient)
        {
            p_objPatient = null;
            if (p_strPatientID == null)
            {
                return;
            }

            clsPatientManagerService objServ =
                (clsPatientManagerService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsPatientManagerService));

            string strEMRID = null;
            long   m_lngRes = objServ.m_lngGetEMRIDByHISID(p_strPatientID, out strEMRID);

            if (strEMRID != null)
            {
                clsPeopleInfo objPeo = new clsPeopleInfo();
                objPeo.m_StrLastName = p_strPatientName;
                p_objPatient         = new clsPatient(strEMRID, p_strPatientID.Trim(), objPeo);
            }
        }