コード例 #1
0
        public void LoadDiagnoses()
        {
            try
            {
                if (this.Patient == null || this.Patient.PatientId == 0)
                {
                    return;
                }

                int patientId = this.Patient.PatientId;
                var diagnoses = DiagnosesDataAccess.GetDiagnosesByPatientId(patientId);
                this.View.Diagnosis = diagnoses;
            }
            catch (Exception e)
            {
                string message = "Грешка при зареждане на диагнозите за пациент!\n" + e.Message;
                View.Message = message;
            }
        }
コード例 #2
0
        public void LoadDiagnoses()
        {
            try
            {
                if (this.Patient == null || this.Patient.PatientId == 0)
                {
                    return;
                }

                int patientId = this.Patient.PatientId;
                var diagnoses = DiagnosesDataAccess.GetDiagnosesByPatientId(patientId);
                this.View.Diagnosis = diagnoses;
            }
            catch (Exception e)
            {
                string message = "Ошибка при загрузке диагнозов для пациента!\n" + e.Message;
                View.Message = message;
            }
        }