public FinishingPrintingCostCalculationFacade(IServiceProvider serviceProvider, SalesDbContext dbContext) { DbContext = dbContext; DbSet = DbContext.Set <FinishingPrintingCostCalculationModel>(); ChemicalDBSet = DbContext.Set <FinishingPrintingCostCalculationChemicalModel>(); finishingPrintingCostCalculationLogic = serviceProvider.GetService <FinishingPrintingCostCalculationLogic>(); }
public DOReturnDetailLogic(IServiceProvider serviceProvider, IIdentityService identityService, SalesDbContext dbContext) : base(identityService, serviceProvider, dbContext) { this.doReturnDetailItemLogic = serviceProvider.GetService <DOReturnDetailItemLogic>(); this.doReturnItemLogic = serviceProvider.GetService <DOReturnItemLogic>(); _dbSet = dbContext.Set <DOReturnModel>(); _detailDbSet = dbContext.Set <DOReturnDetailModel>(); _dbContext = dbContext; }
internal void InsertUnpostReason(long id, string reason) { var costCalculation = DbSet.AsNoTracking().Single(m => m.Id == id); var reasonDbSet = DbContext.Set <CostCalculationGarmentUnpostReason>(); CostCalculationGarmentUnpostReason costCalculationGarmentUnpostReason = new CostCalculationGarmentUnpostReason { CostCalculationId = costCalculation.Id, RONo = costCalculation.RO_Number, UnpostReason = reason }; EntityExtension.FlagForCreate(costCalculationGarmentUnpostReason, IdentityService.Username, "sales-service"); reasonDbSet.Add(costCalculationGarmentUnpostReason); }
public WeeklyPlanFacade(IServiceProvider serviceProvider, SalesDbContext dbContext) { DbContext = dbContext; DbSet = DbContext.Set <GarmentWeeklyPlan>(); IdentityService = serviceProvider.GetService <IdentityService>(); WeeklyPlanLogic = serviceProvider.GetService <WeeklyPlanLogic>(); }
public OverScheduleMonitoringFacade(IServiceProvider serviceProvider, SalesDbContext dbContext) { DbContext = dbContext; DbSet = DbContext.Set <GarmentSewingBlockingPlan>(); IdentityService = serviceProvider.GetService <IdentityService>(); OverScheduleMonitoringLogic = serviceProvider.GetService <OverScheduleMonitoringLogic>(); }
public FinishingPrintingSalesContractFacade(IServiceProvider serviceProvider, SalesDbContext dbContext) { DbContext = dbContext; DbSet = DbContext.Set <FinishingPrintingSalesContractModel>(); identityService = serviceProvider.GetService <IdentityService>(); finishingPrintingSalesContractLogic = serviceProvider.GetService <FinishingPrintingSalesContractLogic>(); }
public GarmentPreSalesContractFacade(IServiceProvider serviceProvider, SalesDbContext dbContext) { DbContext = dbContext; DbSet = DbContext.Set <GarmentPreSalesContract>(); identityService = serviceProvider.GetService <IdentityService>(); garmentPreSalesContractLogic = serviceProvider.GetService <GarmentPreSalesContractLogic>(); }
public AcceptedOrderMonitoringFacade(IServiceProvider serviceProvider, SalesDbContext dbContext) { DbContext = dbContext; DbSet = DbContext.Set <GarmentSewingBlockingPlanItem>(); IdentityService = serviceProvider.GetService <IdentityService>(); AcceptedOrderMonitoringLogic = serviceProvider.GetService <AcceptedOrderMonitoringLogic>(); }
public DOAvalFacade(IServiceProvider serviceProvider, SalesDbContext dbContext) { DbContext = dbContext; _serviceProvider = serviceProvider; DbSet = DbContext.Set <DOSalesModel>(); doAvalLogic = serviceProvider.GetService <DOAvalLogic>(); }
public MaxWHConfirmFacade(IServiceProvider serviceProvider, SalesDbContext dbContext) { DbContext = dbContext; DbSet = DbContext.Set <MaxWHConfirm>(); IdentityService = serviceProvider.GetService <IdentityService>(); MaxWHConfirmLogic = serviceProvider.GetService <MaxWHConfirmLogic>(); }
public EfficiencyFacade(IServiceProvider serviceProvider, SalesDbContext dbContext) { DbContext = dbContext; DbSet = DbContext.Set <Efficiency>(); identityService = serviceProvider.GetService <IdentityService>(); efficiencyLogic = serviceProvider.GetService <EfficiencyLogic>(); ServiceProvider = serviceProvider; }
public ExpiredGarmentBookingOrderFacade(IServiceProvider serviceProvider, SalesDbContext dbContext) { DbContext = dbContext; DbSet = DbContext.Set <GarmentBookingOrder>(); identityService = serviceProvider.GetService <IdentityService>(); garmentBookingOrderLogic = serviceProvider.GetService <GarmentBookingOrderLogic>(); ServiceProvider = serviceProvider; }
public GarmentSewingBlockingPlanFacade(IServiceProvider serviceProvider, SalesDbContext dbContext) { DbContext = dbContext; DbSet = DbContext.Set <GarmentSewingBlockingPlan>(); identityService = serviceProvider.GetService <IdentityService>(); garmentSewingBlockingPlanLogic = serviceProvider.GetService <GarmentSewingBlockingPlanLogic>(); ServiceProvider = serviceProvider; }
public CostCalculationGarmentFacade(IServiceProvider serviceProvider, SalesDbContext dbContext) { DbContext = dbContext; DbSet = DbContext.Set <CostCalculationGarment>(); identityService = serviceProvider.GetService <IdentityService>(); costCalculationGarmentLogic = serviceProvider.GetService <CostCalculationGarmentLogic>(); ServiceProvider = serviceProvider; }
public ProductionOrderFacade(IServiceProvider serviceProvider, SalesDbContext dbContext) { this.DbContext = dbContext; this.DbSet = DbContext.Set <ProductionOrderModel>(); this.identityService = serviceProvider.GetService <IIdentityService>(); this.productionOrderLogic = serviceProvider.GetService <ProductionOrderLogic>(); this.finishingPrintingSalesContractLogic = serviceProvider.GetService <FinishingPrintingSalesContractLogic>(); }
public SalesInvoiceFacade(IServiceProvider serviceProvider, SalesDbContext dbContext) { this.DbContext = dbContext; _serviceProvider = serviceProvider; this.DbSet = DbContext.Set <SalesInvoiceModel>(); this.identityService = serviceProvider.GetService <IdentityService>(); this.salesInvoiceLogic = serviceProvider.GetService <SalesInvoiceLogic>(); }
public DOReturnFacade(IServiceProvider serviceProvider, SalesDbContext dbContext) { this.DbContext = dbContext; _serviceProvider = serviceProvider; this.DbSet = DbContext.Set <DOReturnModel>(); this.identityService = serviceProvider.GetService <IdentityService>(); doReturnLogic = serviceProvider.GetService <DOReturnLogic>(); }
public DeliveryNoteProductionFacade(IServiceProvider serviceProvider, SalesDbContext dbContext) { this.DbContext = dbContext; _serviceProvider = serviceProvider; this.DbSet = DbContext.Set <DeliveryNoteProductionModel>(); this.identityService = serviceProvider.GetService <IdentityService>(); this.deliveryNoteProductionLogic = serviceProvider.GetService <DeliveryNoteProductionLogic>(); }
public RateFacade(IServiceProvider serviceProvider, SalesDbContext dbContext) { DbContext = dbContext; DbSet = DbContext.Set <Rate>(); identityService = serviceProvider.GetService <IdentityService>(); rateLogic = serviceProvider.GetService <RateLogic>(); ServiceProvider = serviceProvider; }
public AcceptedOrderMonitoringLogic(IIdentityService identityService, SalesDbContext dbContext) { this.identityService = identityService; this.dbContext = dbContext; dbSet = dbContext.Set <GarmentSewingBlockingPlanItem>(); }
public GenericRepository(SalesDbContext context) { this._context = context; this._dbSet = context.Set <T>(); }
public OverScheduleMonitoringLogic(IIdentityService identityService, SalesDbContext dbContext) { this.identityService = identityService; this.dbContext = dbContext; dbSet = dbContext.Set <GarmentSewingBlockingPlan>(); }
public ProfitGarmentByComodityReportLogic(IIdentityService identityService, SalesDbContext dbContext) { this.identityService = identityService; this.dbContext = dbContext; dbSet = dbContext.Set <CostCalculationGarment>(); }
public MonitoringRemainingEHLogic(IIdentityService identityService, SalesDbContext dbContext) { this.identityService = identityService; this.dbContext = dbContext; dbSet = dbContext.Set <GarmentWeeklyPlan>(); }
public GarmentSalesContractController(IIdentityService identityService, SalesDbContext dbContext, IValidateService validateService, IGarmentSalesContract facade, IMapper mapper, IServiceProvider serviceProvider) : base(identityService, validateService, facade, mapper, apiVersion) { HttpClientService = serviceProvider.GetService <IHttpClientService>(); DbContext = dbContext; DbSet = DbContext.Set <CostCalculationGarment>(); }
public SewingBlockingPlanReportLogic(IIdentityService identityService, SalesDbContext dbContext) { this.identityService = identityService; this.dbContext = dbContext; dbSet = dbContext.Set <GarmentSewingBlockingPlan>(); }
public CCGEmbroideryApprovalReportLogic(IIdentityService identityService, SalesDbContext dbContext) { this.identityService = identityService; this.dbContext = dbContext; dbSet = dbContext.Set <CostCalculationGarment>(); }
public BudgetJobOrderDisplayLogic(IIdentityService identityService, SalesDbContext dbContext) { this.identityService = identityService; this.dbContext = dbContext; dbSet = dbContext.Set <CostCalculationGarment>(); }
public BaseLogic(IIdentityService IdentityService, IServiceProvider serviceProvider, SalesDbContext dbContext) { this.DbSet = dbContext.Set <TModel>(); this.IdentityService = IdentityService; }
public BudgetExportGarmentReportLogic(IIdentityService identityService, SalesDbContext dbContext) { this.identityService = identityService; this.dbContext = dbContext; dbSet = dbContext.Set <CostCalculationGarment>(); }