コード例 #1
0
 private void butDelete_Click(object sender, EventArgs e)
 {
     if (!MsgBox.Show(this, MsgBoxButtons.OKCancel, "Delete?"))
     {
         return;
     }
     EhrMeasureEvents.Delete(MeasCur.EhrMeasureEventNum);
     DialogResult = DialogResult.Cancel;
 }
コード例 #2
0
 private void butDelete_Click(object sender, EventArgs e)
 {
     if (gridReconcileEvents.SelectedIndices.Length < 1)
     {
         MessageBox.Show("Please select at least one record to delete.");
         return;
     }
     for (int i = 0; i < gridReconcileEvents.SelectedIndices.Length; i++)
     {
         EhrMeasureEvents.Delete(ehrMeasureEventsList[gridReconcileEvents.SelectedIndices[i]].EhrMeasureEventNum);
     }
     FillReconcilesGrid();
 }
コード例 #3
0
        private void butDelete_Click(object sender, EventArgs e)
        {
            if (!MsgBox.Show(this, MsgBoxButtons.OKCancel, "Delete?"))
            {
                return;
            }
            string logEntry = Lan.g(this, "Ehr Measure Event was deleted.") + "  "
                              + Lan.g(this, "Date") + ": " + PIn.DateT(textDateTime.Text) + "  "
                              + Lan.g(this, "Type") + ": " + _measureEventCur.EventType.ToString() + "  "
                              + Lan.g(this, "Patient") + ": " + textPatient.Text;

            SecurityLogs.MakeLogEntry(Permissions.EhrMeasureEventEdit, _measureEventCur.PatNum, logEntry);
            EhrMeasureEvents.Delete(_measureEventCur.EhrMeasureEventNum);
            DialogResult = DialogResult.Cancel;
        }