private void GetPatientProperty()
        {
            if (this.PatientInfo != null)
            {
                Neusoft.HISFC.BizLogic.Order.OutPatient.Order orderManager = new Neusoft.HISFC.BizLogic.Order.OutPatient.Order();

                this.patientInfo.PatientNo   = myPatientInfo.PID.CardNO;                    //门诊病例号
                this.patientInfo.Sex         = myPatientInfo.Sex.Name;                      //性别
                this.patientInfo.Age         = orderManager.GetAge(myPatientInfo.Birthday); //年龄
                this.patientInfo.RegDoct     = myPatientInfo.DoctorInfo.Templet.Doct.Name;
                this.patientInfo.RegDept     = myPatientInfo.DoctorInfo.Templet.Dept.Name;  //科室
                this.patientInfo.PatientName = myPatientInfo.Name;                          //姓名
                this.patientInfo.RegLevel    = myPatientInfo.DoctorInfo.Templet.RegLevel.Name;
                this.patientInfo.RegDate     = myPatientInfo.DoctorInfo.SeeDate.ToShortDateString();
                this.patientInfo.PactName    = myPatientInfo.Pact.Name;
            }

            this.propertyGrid1.SelectedObject = patientInfo;
//			propertyGrid1.SelectedObjects = new object[]{patientInfo,Patient.Patient,Patient.PayKind,Patient.PVisit,Patient.SIMainInfo,Patient.Caution,Patient.Diagnoses,Patient.Disease};
        }
예제 #2
0
        /// <summary>
        /// 设置患者基本信息
        /// </summary>
        private void SetPatient()
        {
            this.GetArgument();
            if (this.myRegister == null)
            {
                return;
            }
            DateTime myOperDate = System.DateTime.MinValue;

            myOperDate = this.orderManagement.QueryMaxOperTimeByClinicCode(this.myRegister.ID);
            Neusoft.HISFC.Models.Order.OutPatient.ClinicCaseHistory clinicCaseHistory = new Neusoft.HISFC.Models.Order.OutPatient.ClinicCaseHistory();
            clinicCaseHistory = this.orderManagement.QueryCaseHistoryByClinicCode(this.myRegister.ID, myOperDate.ToString("yyyy-MM-dd HH:mm:ss"));
            if (clinicCaseHistory != null)
            {
                if (clinicCaseHistory.ID != "" && clinicCaseHistory.ID != null)
                {
                    this.lblDiagnose.Text = clinicCaseHistory.CaseDiag;
                }
                else
                {
                    this.lblDiagnose.Text = "";
                }
            }
            else
            {
                this.lblDiagnose.Text = "";
            }

            #region 病历中不存在诊断则去met_com_diagnose中找门诊诊断  {787A81FD-9E3D-4cc3-A932-95A686A89B0A}
            if (this.lblDiagnose.Text == "")
            {
                ArrayList alDiagnoses = this.diagnoseIntegrate.QueryDiagnoseNoOps(this.myRegister.ID);
                if (alDiagnoses != null)
                {
                    foreach (Neusoft.HISFC.Models.HealthRecord.Diagnose diagnose in alDiagnoses)
                    {
                        if (diagnose.DiagInfo.DiagType.ID == "10")
                        {
                            if (this.lblDiagnose.Text != "")
                            {
                                this.lblDiagnose.Text += "|" + diagnose.DiagInfo.Name;
                            }
                            else
                            {
                                this.lblDiagnose.Text = diagnose.DiagInfo.Name;
                            }
                        }
                    }
                }
            }
            #endregion
            #region {B8B67F3B-397F-4e21-9A87-56BD52E0C042}
            this.lbHosName.Text = managerIntegrate.GetHospitalName();
            #endregion
            this.lblPact.Text = this.myRegister.Pact.Name;
            this.lblDept.Text = this.myRegister.DoctorInfo.Templet.Dept.Name;

            this.lblName.Text    = this.myRegister.Name;
            this.lblCardNO.Text  = this.myRegister.PID.CardNO;
            this.lblSex.Text     = this.myRegister.Sex.Name;
            this.lblAge.Text     = orderManagement.GetAge(this.myRegister.Birthday);
            this.lblSeeDate.Text = this.myRegister.DoctorInfo.SeeDate.ToString("yyyy年MM月dd日");
        }