private void butCopy_Click(object sender, System.EventArgs e)
 {
     if (comboCopyFrom.SelectedIndex == -1)
     {
         MsgBox.Show(this, "Please pick a fee schedule first.");
         return;
     }
     if (!MsgBox.Show(this, true, "This will overwrite all values of the current fee schedule showing in the main window.  Are you sure you want to continue?"))
     {
         return;
     }
     //clear current
     Fees.ClearFeeSched(SchedNum);
     //copy any values over
     Fees.CopyFees(FeeSchedC.ListShort[comboCopyFrom.SelectedIndex].FeeSchedNum, SchedNum);
     for (int i = 0; i < Fees.Listt.Count; i++)
     {
         //ignore all but the OLD fee schedule.
         if (Fees.Listt[i].FeeSched != FeeSchedC.ListShort[comboCopyFrom.SelectedIndex].FeeSchedNum)
         {
             continue;
         }
         SecurityLogs.MakeLogEntry(Permissions.ProcFeeEdit, 0, Lan.g(this, "Procedure") + ": " + ProcedureCodes.GetStringProcCode(Fees.Listt[i].CodeNum)
                                   + ", " + Lan.g(this, "Fee") + ": " + Fees.Listt[i].Amount.ToString("c") + ", " + Lan.g(this, "Fee Schedule") + ": " + FeeScheds.GetDescription(Fees.Listt[i].FeeSched)
                                   + ". " + Lan.g(this, "Fee copied from") + " " + FeeScheds.GetDescription(FeeSchedC.ListShort[comboCopyFrom.SelectedIndex].FeeSchedNum) + " " + Lan.g(this, "using Fee Tools."), Fees.Listt[i].CodeNum);
     }
     DialogResult = DialogResult.OK;
 }
Beispiel #2
0
 private void butCopy_Click(object sender, System.EventArgs e)
 {
     if (comboCopyFrom.SelectedIndex == -1)
     {
         MsgBox.Show(this, "Please pick a fee schedule first.");
         return;
     }
     if (!MsgBox.Show(this, true, "This will overwrite all values of the current fee schedule showing in the main window.  Are you sure you want to continue?"))
     {
         return;
     }
     //clear current
     Fees.ClearFeeSched(SchedNum);
     //copy any values over
     Fees.CopyFees(comboCopyFrom.SelectedIndex, SchedNum);
     DialogResult = DialogResult.OK;
 }