public PrintLabelPageViewModel(ILabelPrintService printService, IPageDialogService pageDialog) { BooshCommand = new DelegateCommand(Boosh); _printService = printService; _pageDialog = pageDialog; }
/// <summary> /// Initiate controller with IoC. /// </summary> /// <param name="managementOfProductLabelDomain"></param> /// <param name="exportReportDomain"></param> /// <param name="configurationService"></param> public ManagementOfProductLabelController( IManagementOfProductLabelDomain managementOfProductLabelDomain, IExportReportDomain exportReportDomain, IConfigurationService configurationService, ILabelPrintService labelPrintService, IIdentityService identityService ) { _managementOfProductLabelDomain = managementOfProductLabelDomain; _exportReportDomain = exportReportDomain; _configurationService = configurationService; _labelPrintService = labelPrintService; _identityService = identityService; }
public LabelPrintModule( ILabelPrintService labelPrintService, IFacadeWithSearchReturnTen <Address, int, AddressResource, AddressResource> addressService, IFacadeWithSearchReturnTen <Supplier, int, SupplierResource, SupplierResource> supplierService) { this.labelPrintService = labelPrintService; this.addressService = addressService; this.supplierService = supplierService; this.Get("production/maintenance/labels/print", _ => this.GetApp()); this.Get("production/maintenance/labels/suppliers", _ => this.SearchSuppliers()); this.Get("production/maintenance/labels/addresses", _ => this.SearchAddresses()); this.Get("production/maintenance/labels/address/{id*}", parameters => this.GetAddress(parameters.id)); this.Post("production/maintenance/labels/print", _ => this.Print()); this.Get("production/maintenance/labels/printers", _ => this.GetPrinters()); this.Get("production/maintenance/labels/label-types", _ => this.GetLabelsTypes()); }
/// <summary> /// Initiate controller with dependency injections. /// </summary> /// <param name="preProductManagementDomain"></param> /// <param name="identityDomain"></param> /// <param name="commonDomain"></param> /// <param name="configurationService"></param> /// <param name="labelPrintService"></param> /// <param name="exportReportDomain"></param> /// <param name="log"></param> public StorageOfPreProductController( IPreProductManagementDomain preProductManagementDomain, IIdentityService identityDomain, ICommonDomain commonDomain, IConfigurationService configurationService, ILabelPrintService labelPrintService, IExportReportDomain exportReportDomain, ILog log) { _identityDomain = identityDomain; _preProductManagementDomain = preProductManagementDomain; _identityDomain = identityDomain; _commonDomain = commonDomain; _configurationService = configurationService; _labelPrintService = labelPrintService; _exportReportDomain = exportReportDomain; _log = log; }