Пример #1
0
        private void btnReturnToPausedQueue_Click(object sender, EventArgs e)
        {
            DialogResult result = XtraMessageBox.Show("Do you put this Patient to the Paused Queue ?", "Note",
                                                      MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1, DefaultBoolean.Default);

            switch (result)
            {
            case DialogResult.Yes:
                PEMRBusinessLogic.UpdateAll(PEMRBusinessLogic.ActivePEMRObject);
                MerkDBBusinessLogicEngine.UpdateAndSave_QueueManagerStatus(QueueResult.QueueManagerID,
                                                                           DB_QueueManagerStatus.Paused);
                PEMRContainer.ShowLeftQueuePanel(false);
                PEMRContainer.ShowPEMRHistoryContainer(QueueResult, ActiveVisitTiming, false);
                ClearControls(true);
                SetupTabs();
                break;
            }
        }