Beispiel #1
0
        private void alcoholProtocolBtn_Click(object sender, EventArgs e)
        {
            AlcoIntoxication form = new AlcoIntoxication(service, hospitalSession);

            form.ShowDialog();
        }
Beispiel #2
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();
            }
        }