Пример #1
0
        private void DeleteLowerLevelOverrides(SummaryWorkbenchInfo.SummaryLever summaryLever, string leverType)
        {
            if (Question.YesNo("Are you sure you want to submit the job to remove all the Lower Level Overrides?", "Confirm"))
            {

                this.Cursor = Cursors.WaitCursor;
                base.UpdateStatusMessage("Processing...");
                Application.DoEvents();

                _summaryWorkbenchInfo.MustReleaseLocks = false; // ensure locking is handled by the AS400 process

                SummaryItem summaryItem = (SummaryItem)GetCurrentView().GetFocusedRow() ;
                CheckFileLocks(GetCurrentView());

                _summaryWorkbenchInfo.DeleteLowerLevelOverrides(summaryItem, leverType);

                EditMode = false;
                BuildAllViews();

                _summaryWorkbenchInfo.AliasDrop();
                this.Cursor = Cursors.Default;
                UpdateStatusMessage("Lever changes have been applied");

                _summaryWorkbenchInfo.RemoveOverridesBelowLevel(summaryItem, summaryLever);
            }
        }
Пример #2
0
 public virtual void ShowSummaryForm(SummaryWorkbenchInfo summaryWorkbenchInfo)
 {
 }
Пример #3
0
        public override void ShowSummaryForm(SummaryWorkbenchInfo summaryWorkbenchInfo)
        {
            _summaryWorkbenchInfo = summaryWorkbenchInfo;

            _summaryWorkbenchInfo.ProgressEvent += ((message, percentageComplete) =>
                {
                    base.UpdateProgress(message, percentageComplete);
                });

            _summaryWorkbenchInfo.ExceptionHandler.ExceptionEvent += ((ex, extraInfo, terminateApplication)=>
                {
                    ErrorDialog.Show(ex, extraInfo, terminateApplication);
                });

            _summaryWorkbenchInfo.ExceptionHandler.AlertEvent +=((message, caption, alertType)=>
                {
                    ErrorDialog.ShowAlert(message, caption, alertType);
                });

            _summaryWorkbenchInfo.SelectedSummaryLevel = 16;
            DepartmentSelector.RefreshControls();
            this.Show();
        }