Exemplo n.º 1
0
        private void createDefferedJournalMenu_Click(object sender, EventArgs e)
        {
            JournalNoKAGControl goodJournalBefore = new JournalNoKAGControl(this, null, (int)DdtJournalDsiType.BeforeKag, hospitalitySession.CuringDoctor);

            if (journalContainer.Controls.Count > 0)
            {
                JournalNoKAGControl lastJournal = (JournalNoKAGControl)journalContainer.Controls[journalContainer.Controls.Count - 1];
                goodJournalBefore.initTime(lastJournal.getJournalDateTime().AddHours(1));
                goodJournalBefore.initDocName(lastJournal.getDocName());
                goodJournalBefore.initRhytm(lastJournal.isGoodRhytm());
            }
            journalContainer.Controls.Add(goodJournalBefore);

            JournalNoKAGControl badJournal = new JournalNoKAGControl(this, null, (int)DdtJournalDsiType.PendingJustification, hospitalitySession.CuringDoctor);

            badJournal.initTime(goodJournalBefore.getJournalDateTime().AddHours(1));
            badJournal.initDocName(goodJournalBefore.getDocName());
            badJournal.initRhytm(goodJournalBefore.isGoodRhytm());
            journalContainer.Controls.Add(badJournal);

            JournalNoKAGControl goodJournal = new JournalNoKAGControl(this, null, (int)DdtJournalDsiType.AfterPending, hospitalitySession.CuringDoctor);

            goodJournal.initTime(badJournal.getJournalDateTime().AddMinutes(15));
            goodJournal.initDocName(badJournal.getDocName());
            goodJournal.initRhytm(badJournal.isGoodRhytm());
            journalContainer.Controls.Add(goodJournal);
            sh();
        }
Exemplo n.º 2
0
        private void createJournalMenu_Click(object sender, EventArgs e)
        {
            JournalNoKAGControl nextJournal = new JournalNoKAGControl(this, null, (int)DdtJournalDsiType.BeforeKag, hospitalitySession.CuringDoctor);

            if (journalContainer.Controls.Count > 0)
            {
                JournalNoKAGControl lastJournal = (JournalNoKAGControl)journalContainer.Controls[journalContainer.Controls.Count - 1];
                nextJournal.initTime(lastJournal.getJournalDateTime().AddHours(4));
                nextJournal.initDocName(lastJournal.getDocName());
                nextJournal.initRhytm(lastJournal.isGoodRhytm());
            }
            journalContainer.Controls.Add(nextJournal);
            sh();
        }