示例#1
0
        public SubRecipeController(ISubRecipeService SubRecipeService, RecipeHeaderService RecipeHeaderService, IExceptionHandler exec, IDocumentTypeService DocumentTypeServ)
        {
            _SubRecipeService    = SubRecipeService;
            _RecipeHeaderService = RecipeHeaderService;
            _exception           = exec;
            _documentTypeService = DocumentTypeServ;

            UserRoles = (List <string>)System.Web.HttpContext.Current.Session["Roles"];
        }
        public RecipeLineController(IRecipeLineService RecipeLineService, IExceptionHandler exec, IRecipeHeaderService RecipeHeaderService, IJobOrderSettingsService jobOrderSettingsServ
                                    , IDocumentValidation validator)
        {
            _RecipeLineService       = RecipeLineService;
            _RecipeHeaderService     = RecipeHeaderService;
            _jobOrderSettingsService = jobOrderSettingsServ;
            _exception = exec;
            _validator = validator;

            UserRoles = (List <string>)System.Web.HttpContext.Current.Session["Roles"];
        }
示例#3
0
        public RecipeHeaderController(IRecipeHeaderService RecipeHeaderService, IExceptionHandler exec, IDocumentTypeService DocumentTypeServ,
                                      IDocumentValidation DocValidation,
                                      IProcessService ProcessService)
        {
            _RecipeHeaderService = RecipeHeaderService;
            _exception           = exec;
            _documentTypeService = DocumentTypeServ;
            _documentValidation  = DocValidation;
            _ProcessService      = ProcessService;

            UserRoles = (List <string>)System.Web.HttpContext.Current.Session["Roles"];
        }
示例#4
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;
        }