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;
 }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
 public WeeklyPlanFacade(IServiceProvider serviceProvider, SalesDbContext dbContext)
 {
     DbContext       = dbContext;
     DbSet           = DbContext.Set <GarmentWeeklyPlan>();
     IdentityService = serviceProvider.GetService <IdentityService>();
     WeeklyPlanLogic = serviceProvider.GetService <WeeklyPlanLogic>();
 }
Ejemplo n.º 5
0
 public OverScheduleMonitoringFacade(IServiceProvider serviceProvider, SalesDbContext dbContext)
 {
     DbContext                   = dbContext;
     DbSet                       = DbContext.Set <GarmentSewingBlockingPlan>();
     IdentityService             = serviceProvider.GetService <IdentityService>();
     OverScheduleMonitoringLogic = serviceProvider.GetService <OverScheduleMonitoringLogic>();
 }
Ejemplo n.º 6
0
 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>();
 }
Ejemplo n.º 10
0
 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;
 }
Ejemplo n.º 12
0
 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;
 }
Ejemplo n.º 14
0
 public CostCalculationGarmentFacade(IServiceProvider serviceProvider, SalesDbContext dbContext)
 {
     DbContext                   = dbContext;
     DbSet                       = DbContext.Set <CostCalculationGarment>();
     identityService             = serviceProvider.GetService <IdentityService>();
     costCalculationGarmentLogic = serviceProvider.GetService <CostCalculationGarmentLogic>();
     ServiceProvider             = serviceProvider;
 }
Ejemplo n.º 15
0
 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>();
 }
Ejemplo n.º 17
0
 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>();
 }
Ejemplo n.º 18
0
 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>();
 }
Ejemplo n.º 19
0
 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>();
 }
Ejemplo n.º 21
0
 public GenericRepository(SalesDbContext context)
 {
     this._context = context;
     this._dbSet   = context.Set <T>();
 }
Ejemplo n.º 22
0
 public OverScheduleMonitoringLogic(IIdentityService identityService, SalesDbContext dbContext)
 {
     this.identityService = identityService;
     this.dbContext       = dbContext;
     dbSet = dbContext.Set <GarmentSewingBlockingPlan>();
 }
Ejemplo n.º 23
0
 public ProfitGarmentByComodityReportLogic(IIdentityService identityService, SalesDbContext dbContext)
 {
     this.identityService = identityService;
     this.dbContext       = dbContext;
     dbSet = dbContext.Set <CostCalculationGarment>();
 }
Ejemplo n.º 24
0
 public MonitoringRemainingEHLogic(IIdentityService identityService, SalesDbContext dbContext)
 {
     this.identityService = identityService;
     this.dbContext       = dbContext;
     dbSet = dbContext.Set <GarmentWeeklyPlan>();
 }
Ejemplo n.º 25
0
 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>();
 }
Ejemplo n.º 26
0
 public SewingBlockingPlanReportLogic(IIdentityService identityService, SalesDbContext dbContext)
 {
     this.identityService = identityService;
     this.dbContext       = dbContext;
     dbSet = dbContext.Set <GarmentSewingBlockingPlan>();
 }
Ejemplo n.º 27
0
 public CCGEmbroideryApprovalReportLogic(IIdentityService identityService, SalesDbContext dbContext)
 {
     this.identityService = identityService;
     this.dbContext       = dbContext;
     dbSet = dbContext.Set <CostCalculationGarment>();
 }
Ejemplo n.º 28
0
 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>();
 }