Beispiel #1
0
        private void ButtonReleaseToService(object sender, EventArgs e)
        {
            if (_directivesViewer.SelectedItem == null)
            {
                return;
            }

            var wp = _directivesViewer.SelectedItem;

            GlobalObjects.WorkPackageCore.LoadWorkPackageItems(wp);

            //ConcatenatePdfDocuments(wp);

            var form = new SelectWPPrintTasksForm(wp);

            form.ShowDialog();
            //e.Cancel = true;
        }
Beispiel #2
0
        /// <summary>
        /// Запрашивает распечатку рабочего пакета
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ToolStripMenuItemDeletePrintWP(object sender, EventArgs e)
        {
            if (_directivesViewer.SelectedItem == null)
            {
                return;
            }

            var wp = _directivesViewer.SelectedItem;

            if (wp.WorkPackageItemsLoaded == false)
            {
                GlobalObjects.WorkPackageCore.GetWorkPackageItemsWithCalculate(wp);
            }

            var form = new SelectWPPrintTasksForm(wp);

            form.ShowDialog();
        }