Пример #1
0
        public HorizontalIntegrationReportFormController(HorizontalIntegrationReportForm frmHorizontalIntegration)
            : base(frmHorizontalIntegration)
        {
            this.frmHorizontalIntegration = frmHorizontalIntegration;

            this.srvERPCustomer    = SamsaraAppContext.Resolve <IERPCustomerService>();
            this.srvProductSubline = SamsaraAppContext.Resolve <IProductSublineService>();
            this.srvProductFamily  = SamsaraAppContext.Resolve <IProductFamilyService>();

            this.InitializeFormControls();
        }
Пример #2
0
        public VerticalIntegrationReportFormController(VerticalIntegrationReportForm frmVerticalIntegration)
            : base(frmVerticalIntegration)
        {
            this.frmVerticalIntegration = frmVerticalIntegration;

            this.srvCustomer       = SamsaraAppContext.Resolve <ICustomerService>();
            this.srvProductLine    = SamsaraAppContext.Resolve <IProductLineService>();
            this.srvProductSubline = SamsaraAppContext.Resolve <IProductSublineService>();
            this.srvProductFamily  = SamsaraAppContext.Resolve <IProductFamilyService>();

            lstLines = this.srvProductLine.GetAll()
                       .AsParallel().OrderBy(x => x.Name).ToList();

            this.InitializeFormControls();
        }