Пример #1
0
        public DocumentsPrinterDlg(IUnitOfWork uow, RouteList routeList, RouteListPrintableDocuments selectedType)
        {
            this.Build();
            TabName = "Печать документов МЛ";
            entitiyDocumentsPrinter = new EntitiyDocumentsPrinter(uow, routeList, selectedType);
            currentRouteList        = routeList;

            Configure();
        }
Пример #2
0
        public DocumentsPrinterDlg(Order order)
        {
            this.Build();

            TabName = "Печать документов заказа";

            entitiyDocumentsPrinter = new EntitiyDocumentsPrinter(order);
            if (!string.IsNullOrEmpty(entitiyDocumentsPrinter.ODTTemplateNotFoundMessages))
            {
                MessageDialogHelper.RunWarningDialog(entitiyDocumentsPrinter.ODTTemplateNotFoundMessages);
            }
            currentOrder = order;

            Configure();
        }