コード例 #1
0
        public DyeingService(IUnitOfWork unit, IRepository <JobReceiveHeader> RecipeRepo,
                             IJobReceiveLineService JobReceiveLineService,
                             IJobReceiveLineStatusService JobReceiveLineStatusService,
                             IJobReceiveHeaderExtendedService JobReceiveHeaderExtendedService,
                             IStockService StockServ, IStockProcessService StockPRocServ,
                             ILogger log, IModificationCheck modificationCheck, IRepository <Product> ProductRepo, IRepository <Unit> UnitRepo)
        {
            _unitOfWork          = unit;
            _DyeingRepository    = RecipeRepo;
            _stockProcessService = StockPRocServ;
            _stockService        = StockServ;
            _logger                          = log;
            _modificationCheck               = modificationCheck;
            _productRepository               = ProductRepo;
            _unitRepository                  = UnitRepo;
            _JobReceiveLineService           = JobReceiveLineService;
            _JobReceiveLineStatusService     = JobReceiveLineStatusService;
            _JobReceiveHeaderExtendedService = JobReceiveHeaderExtendedService;

            //Log Initialization
            logVm.SessionId      = 0;
            logVm.ControllerName = System.Web.HttpContext.Current.Request.RequestContext.RouteData.GetRequiredString("controller");
            logVm.ActionName     = System.Web.HttpContext.Current.Request.RequestContext.RouteData.GetRequiredString("action");
            logVm.User           = System.Web.HttpContext.Current.Request.RequestContext.HttpContext.User.Identity.Name;
        }
コード例 #2
0
ファイル: DARService.cs プロジェクト: radtek/HomeFurnishing
 public DARService(IRepository <DAR> darRepository, IUnitOfWork unitofwork, IRepository <Tasks> TaskRepository, IModificationCheck ModificationCheck)
 {
     _DARRepository     = darRepository;
     _TaskRepository    = TaskRepository;
     _uniOfWork         = unitofwork;
     _ModificationCheck = ModificationCheck;
 }
コード例 #3
0
        public ReportLineService(IUnitOfWork unitOfWork, IRepository <ReportLine> ReportLineRepo, ILogger log,
                                 IDocumentTypeService DoctypeServ, IModificationCheck modificationcheck)
        {
            _unitOfWork           = unitOfWork;
            _ReportLineRepository = ReportLineRepo;
            _logger = log;
            _DocumentTypeService = DoctypeServ;
            _modificationCheck   = modificationcheck;

            //Log Initialization
            LogVm.SessionId      = 0;
            LogVm.ControllerName = System.Web.HttpContext.Current.Request.RequestContext.RouteData.GetRequiredString("controller");
            LogVm.ActionName     = System.Web.HttpContext.Current.Request.RequestContext.RouteData.GetRequiredString("action");
            LogVm.User           = System.Web.HttpContext.Current.Request.RequestContext.HttpContext.User.Identity.Name;
        }
コード例 #4
0
        public PersonRateGroupController(IPersonRateGroupService PersonRateGroupService, IDocumentTypeService DocumentTypeService, IExceptionHandler exec,
                                         ILogger log, IModificationCheck modificationCheck, IDocumentValidation DocValidation)
        {
            _PersonRateGroupService = PersonRateGroupService;
            _DocumentTypeService    = DocumentTypeService;
            _exception          = exec;
            _documentValidation = DocValidation;
            _logger             = log;
            _modificationCheck  = modificationCheck;

            UserRoles            = (List <string>)System.Web.HttpContext.Current.Session["Roles"];
            logVm.SessionId      = 0;
            logVm.ControllerName = System.Web.HttpContext.Current.Request.RequestContext.RouteData.GetRequiredString("controller");
            logVm.ActionName     = System.Web.HttpContext.Current.Request.RequestContext.RouteData.GetRequiredString("action");
            logVm.User           = System.Web.HttpContext.Current.Request.RequestContext.HttpContext.User.Identity.Name;
        }
コード例 #5
0
        public SubRecipeService(IUnitOfWork unit,
                                IJobOrderHeaderService JobOrderHeaderService,
                                IJobOrderLineService JobOrderLineService,
                                IRecipeHeaderService RecipeHeaderService,
                                ILogger log, IModificationCheck modificationCheck)
        {
            _unitOfWork            = unit;
            _logger                = log;
            _modificationCheck     = modificationCheck;
            _JobOrderHeaderService = JobOrderHeaderService;
            _JobOrderLineService   = JobOrderLineService;
            _RecipeHeaderService   = RecipeHeaderService;

            //Log Initialization
            logVm.SessionId      = 0;
            logVm.ControllerName = System.Web.HttpContext.Current.Request.RequestContext.RouteData.GetRequiredString("controller");
            logVm.ActionName     = System.Web.HttpContext.Current.Request.RequestContext.RouteData.GetRequiredString("action");
            logVm.User           = System.Web.HttpContext.Current.Request.RequestContext.HttpContext.User.Identity.Name;
        }
コード例 #6
0
        public BinLocationController(IBinLocationService BinLocationService, IDocumentTypeService DocumentTypeService, IExceptionHandler exec, IGodownService GodownService,
                                     ILogger log,
                                     IModificationCheck modificationCheck,
                                     IJobOrderSettingsService jobOrderSettingsServ
                                     , IDocumentValidation validator)
        {
            _BinLocationService      = BinLocationService;
            _GodownService           = GodownService;
            _DocumentTypeService     = DocumentTypeService;
            _jobOrderSettingsService = jobOrderSettingsServ;
            _logger            = log;
            _exception         = exec;
            _validator         = validator;
            _modificationCheck = modificationCheck;

            UserRoles            = (List <string>)System.Web.HttpContext.Current.Session["Roles"];
            LogVm.SessionId      = 0;
            LogVm.ControllerName = System.Web.HttpContext.Current.Request.RequestContext.RouteData.GetRequiredString("controller");
            LogVm.ActionName     = System.Web.HttpContext.Current.Request.RequestContext.RouteData.GetRequiredString("action");
            LogVm.User           = System.Web.HttpContext.Current.Request.RequestContext.HttpContext.User.Identity.Name;
        }
コード例 #7
0
        public JobReceiveLineService(IUnitOfWork unitOfWork, IRepository <JobReceiveLine> JobReceiveLineRepo, IRepository <JobReceiveHeader> JobReceiveHeaderRepo,
                                     ILogger log
                                     , IStockService stockSErv, IStockProcessService stockProcServ,
                                     IModificationCheck modificationCheck
                                     //, IJobReceiveSettingsService JobReceiveSettingsServ
                                     )
        {
            _unitOfWork = unitOfWork;
            _JobReceiveLineRepository   = JobReceiveLineRepo;
            _JobReceiveHeaderRepository = JobReceiveHeaderRepo;
            _stockProcessService        = stockProcServ;
            _stockService      = stockSErv;
            _modificationCheck = modificationCheck;
            _logger            = log;
            // _jobreceiveSettingsService = JobReceiveSettingsServ;

            //Log Initialization
            LogVm.SessionId      = 0;
            LogVm.ControllerName = System.Web.HttpContext.Current.Request.RequestContext.RouteData.GetRequiredString("controller");
            LogVm.ActionName     = System.Web.HttpContext.Current.Request.RequestContext.RouteData.GetRequiredString("action");
            LogVm.User           = System.Web.HttpContext.Current.Request.RequestContext.HttpContext.User.Identity.Name;
        }
コード例 #8
0
ファイル: TasksService.cs プロジェクト: radtek/HomeFurnishing
 public TasksService(IRepository <Tasks> TaskRepository, IUnitOfWork unitofwork, IModificationCheck ModificationCheck)
 {
     _TaskRepository    = TaskRepository;
     _uniOfWork         = unitofwork;
     _ModificationCheck = ModificationCheck;
 }
コード例 #9
0
 public ProjectService(IRepository <Project> ProjectRepository, IUnitOfWork unitofwork, IModificationCheck ModificationCheck)
 {
     _ProjectRepository = ProjectRepository;
     _uniOfWork         = unitofwork;
     _ModificationCheck = ModificationCheck;
 }