Esempio n. 1
0
 private void btnBloodAnalysisClick(object sender, EventArgs e)
 {
     if (transfusion == null)
     {
         AnalysisContainer container = new AnalysisContainer(service, hospitalSession, DdtBloodAnalysis.NAME, BloodAnalysisId);
         container.Owner = this;
         container.ShowDialog();
     }
     else
     {
         AnalysisContainer container = new AnalysisContainer(service, hospitalSession, DdtBloodAnalysis.NAME, transfusion.BloodAnalysis);
         container.Owner = this;
         container.ShowDialog();
     }
 }
Esempio n. 2
0
        private void oncologicMarkersItem_Click(object sender, EventArgs e)
        {
            AnalysisContainer container = new AnalysisContainer(service, hospitalitySession, DdtOncologicMarkers.NAME, null);

            container.ShowDialog();
        }
Esempio n. 3
0
        private void xrayMenuItem_Click(object sender, EventArgs e)
        {
            AnalysisContainer container = new AnalysisContainer(service, hospitalitySession, DdtXRay.NAME, null);

            container.ShowDialog();
        }
Esempio n. 4
0
        private void koagulogrammItem_Click(object sender, EventArgs e)
        {
            AnalysisContainer container = new AnalysisContainer(service, hospitalitySession, DdtCoagulogram.NAME, null);

            container.ShowDialog();
        }
Esempio n. 5
0
        private void specialistItem_Click(object sender, EventArgs e)
        {
            AnalysisContainer container = new AnalysisContainer(service, hospitalitySession, DdtSpecialistConclusion.NAME, null);

            container.ShowDialog();
        }
Esempio n. 6
0
        private void editMenu_Click(object sender, EventArgs e)
        {
            IEnumerator it        = patientHistoryGrid.SelectedRows.GetEnumerator();
            string      firstId   = null;
            string      firstType = null;

            if (it.MoveNext())
            {
                DataGridViewRow          row          = (DataGridViewRow)it.Current;
                DataGridViewCell         cell         = row.Cells[3];
                DataGridViewCheckBoxCell checkBoxCell = (DataGridViewCheckBoxCell)row.Cells[0];
                firstId   = cell.Value.ToString();
                firstType = row.Cells[2].Value.ToString();
            }

            Form form = null;

            if (DdtAnamnesis.NAME.Equals(firstType, StringComparison.Ordinal))
            {
                form = new FirstInspection(service, hospitalitySession);
            }
            else if (DdtJournalDay.NAME.Equals(firstType, StringComparison.Ordinal))
            {
                DdtJournalDay journal = service.GetDdtJournalDayService().GetById(firstId);
                if (journal.JournalType == (int)DdtJournalDsiType.AfterKag)
                {
                    form = new JournalAfterKAG(service, hospitalitySession, firstId);
                }
                else
                {
                    form = new JournalBeforeKag(service, hospitalitySession, firstId, -1);
                }
            }
            else if (DdtIssuedMedicineList.NAME.Equals(firstType, StringComparison.Ordinal))
            {
                form = new IssuedMedicine(this.service, hospitalitySession, firstId);
            }
            else if (DdtEgds.NAME.Equals(firstType, StringComparison.Ordinal) || DdtXRay.NAME.Equals(firstType, StringComparison.Ordinal) ||
                     DdtUrineAnalysis.NAME.Equals(firstType, StringComparison.Ordinal) || DdtEkg.NAME.Equals(firstType, StringComparison.Ordinal) ||
                     DdtSpecialistConclusion.NAME.Equals(firstType, StringComparison.Ordinal) || DdtUzi.NAME.Equals(firstType, StringComparison.Ordinal) ||
                     DdtKag.NAME.Equals(firstType, StringComparison.Ordinal) || DdtHolter.NAME.Equals(firstType, StringComparison.Ordinal) ||
                     DdtBloodAnalysis.NAME.Equals(firstType, StringComparison.Ordinal) || DdtHormones.NAME.Equals(firstType, StringComparison.Ordinal) ||
                     DdtCoagulogram.NAME.Equals(firstType, StringComparison.Ordinal) || DdtOncologicMarkers.NAME.Equals(firstType, StringComparison.Ordinal))
            {
                form = new AnalysisContainer(service, hospitalitySession, firstType, firstId);
            }
            else if (DdtConsilium.NAME.Equals(firstType, StringComparison.Ordinal))
            {
                form = new Consilium(service, hospitalitySession, firstId);
            }
            else if (DdtSerology.NAME.Equals(firstType, StringComparison.Ordinal))
            {
                form = new Serology(service, hospitalitySession);
            }
            else if (DdtInspection.NAME.Equals(firstType, StringComparison.Ordinal))
            {
                form = new Inspection(service, hospitalitySession, firstId);
            }
            else if (DdtEpicrisis.NAME.Equals(firstType, StringComparison.Ordinal))
            {
                form = new PreoperativeEpicrisiscs(service, hospitalitySession, firstId);
            }
            else if (DdtHospital.NAME.Equals(firstType, StringComparison.Ordinal))
            {
                form = new PatientAdmission(service, hospitalitySession);
            }
            else if (DdtAlcoProtocol.NAME.Equals(firstType, StringComparison.Ordinal))
            {
                form = new AlcoIntoxication(service, hospitalitySession);
            }
            else if (DdtTransfusion.NAME.Equals(firstType, StringComparison.Ordinal))
            {
                form = new Transfusion(service, hospitalitySession, firstId);
            }

            if (form != null)
            {
                form.ShowDialog();
            }
        }