Exemplo n.º 1
0
 public StockInHandController(IStockInHandService StockInHandService, IUnitOfWork unitOfWork, IExceptionHandlingService exec)
 {
     _StockInHandService = StockInHandService;
     _unitOfWork         = unitOfWork;
     _exception          = exec;
 }
        public ProductCategorySettingsController(IProductCategorySettingsService ProductCategorySettingsService, IUnitOfWork unitOfWork, IExceptionHandlingService exec)
        {
            _ProductCategorySettingsService = ProductCategorySettingsService;
            _unitOfWork = unitOfWork;
            _exception  = exec;

            UserRoles = (List <string>)System.Web.HttpContext.Current.Session["Roles"];

            //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;
        }
Exemplo n.º 3
0
 public ProductUidController(IProductUidService ProductUidService, IUnitOfWork unitOfWork, IExceptionHandlingService exec)
 {
     _ProductUidService = ProductUidService;
     _unitOfWork        = unitOfWork;
     _exception         = exec;
 }
        public GatePassLineController(IGatePassLineService GatePass, IUnitOfWork unitOfWork, IExceptionHandlingService exec)
        {
            _GatePassLineService = GatePass;
            _unitOfWork          = unitOfWork;
            _exception           = exec;

            UserRoles = (List <string>)System.Web.HttpContext.Current.Session["Roles"];

            //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;
        }
Exemplo n.º 5
0
        public GatePassController(IGatePassHeaderService GatePassService, IUnitOfWork unitOfWork, IExceptionHandlingService exec)
        {
            _GatePassService = GatePassService;
            _unitOfWork      = unitOfWork;
            _exception       = exec;

            /*  if (!PurchaseOrderEvents.Initialized)
             * {
             *    PurchaseOrderEvents Obj = new PurchaseOrderEvents();
             * }
             */
            UserRoles = (List <string>)System.Web.HttpContext.Current.Session["Roles"];

            //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;
        }
Exemplo n.º 6
0
 public LogHistoryController()
 {
     _exception = new ExceptionHandlingService();
 }
        public PurchaseOrderCancelWizardController(IPurchaseOrderCancelHeaderService _service, IUnitOfWork unitOfWork, IExceptionHandlingService exec)
        {
            _PurchaseOrderCancelHeaderService = _service;
            _exception  = exec;
            _unitOfWork = unitOfWork;
            if (!PurchaseOrderCancelEvents.Initialized)
            {
                PurchaseOrderCancelEvents Obj = new PurchaseOrderCancelEvents();
            }

            UserRoles = (List <string>)System.Web.HttpContext.Current.Session["Roles"];

            //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;
        }
Exemplo n.º 8
0
 public AgentController(IAgentService AgentService, IBusinessEntityService BusinessEntityService, IAccountService AccountService, IPersonService PersonService, IPersonRegistrationService PersonRegistrationService, IPersonAddressService PersonAddressService, IPersonProcessService PersonProcessService, IActivityLogService ActivityLogService, IUnitOfWork unitOfWork, IExceptionHandlingService exec)
 {
     _AgentService              = AgentService;
     _PersonService             = PersonService;
     _PersonAddressService      = PersonAddressService;
     _BusinessEntityService     = BusinessEntityService;
     _AccountService            = AccountService;
     _PersonProcessService      = PersonProcessService;
     _PersonRegistrationService = PersonRegistrationService;
     _ActivityLogService        = ActivityLogService;
     _unitOfWork = unitOfWork;
     _exception  = exec;
 }
 public Display_ProdOrderBalanceController(IDisplay_ProdOrderBalanceService Display_ProdOrderBalanceService, IUnitOfWork unitOfWork, IExceptionHandlingService exec)
 {
     _ProdOrderBalanceService = Display_ProdOrderBalanceService;
     _exception  = exec;
     _unitOfWork = unitOfWork;
 }
Exemplo n.º 10
0
 public StockProcessDisplayController(IStockProcessDisplayService StockProcessDisplayService, IUnitOfWork unitOfWork, IExceptionHandlingService exec)
 {
     _StockProcessDisplayService = StockProcessDisplayService;
     _unitOfWork = unitOfWork;
     _exception  = exec;
 }
Exemplo n.º 11
0
        public PackingHeaderWithBuyerDetailController(IPackingHeaderService PackingHeaderService, IActivityLogService ActivityLogService, IStockService StockService, IUnitOfWork unitOfWork, IExceptionHandlingService exec)
        {
            _PackingHeaderService = PackingHeaderService;
            _ActivityLogService   = ActivityLogService;
            _StockService         = StockService;
            _unitOfWork           = unitOfWork;
            _exception            = exec;

            UserRoles = (List <string>)System.Web.HttpContext.Current.Session["Roles"];

            //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;
        }
Exemplo n.º 12
0
        public CustomDetailController(ICustomDetailService CustomDetailService, IActivityLogService ActivityLogService, IUnitOfWork unitOfWork, IExceptionHandlingService exec)
        {
            _CustomDetailService = CustomDetailService;
            _ActivityLogService  = ActivityLogService;
            _unitOfWork          = unitOfWork;
            _exception           = exec;

            //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;
        }
Exemplo n.º 13
0
        public MaterialRequestHeaderController(IRequisitionHeaderService PurchaseOrderHeaderService, IActivityLogService ActivityLogService, IUnitOfWork unitOfWork, IExceptionHandlingService exec)
        {
            _RequisitionHeaderService = PurchaseOrderHeaderService;
            _ActivityLogService       = ActivityLogService;
            _exception  = exec;
            _unitOfWork = unitOfWork;
            if (!MaterialRequestEvents.Initialized)
            {
                MaterialRequestEvents Obj = new MaterialRequestEvents();
            }

            UserRoles = (List <string>)System.Web.HttpContext.Current.Session["Roles"];

            //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;
        }
Exemplo n.º 14
0
 public PersonProcessController(IPersonProcessService PersonProcess, IPersonService Person, IUnitOfWork unitOfWork, IExceptionHandlingService exec)
 {
     _PersonProcessService = PersonProcess;
     _PersonService        = Person;
     _unitOfWork           = unitOfWork;
     _exception            = exec;
 }
Exemplo n.º 15
0
 public UpdateJobOrderExpiryController(IUpdateJobExpiryService JobExpiryService, IUnitOfWork unitOfWork, IExceptionHandlingService exec)
 {
     _JobExpiryService = JobExpiryService;
     _exception        = exec;
     _unitOfWork       = unitOfWork;
 }
        public CalculationLineLedgerAccountController(ICalculationLineLedgerAccountService SaleOrder, IUnitOfWork unitOfWork, IExceptionHandlingService exec)
        {
            _CalculationLineLedgerAccountService = SaleOrder;
            _unitOfWork = unitOfWork;
            _exception  = exec;

            UserRoles = (List <string>)System.Web.HttpContext.Current.Session["Roles"];

            //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;
        }
 public TaxCalculationController(IUnitOfWork unitOfWork, IExceptionHandlingService exec)
 {
     _unitOfWork = unitOfWork;
     _exception  = exec;
 }
        public MaterialPlanCancelHeaderController(IMaterialPlanCancelHeaderService MaterialPlanCancelHeaderService, IUnitOfWork unitOfWork, IExceptionHandlingService exec)
        {
            _MaterialPlanCancelHeaderService = MaterialPlanCancelHeaderService;
            _unitOfWork = unitOfWork;
            _exception  = exec;

            UserRoles = (List <string>)System.Web.HttpContext.Current.Session["Roles"];

            //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;
        }
        public DesignConsumptionLineController(IBomDetailService BomDetail, IUnitOfWork unitOfWork, IExceptionHandlingService exec)
        {
            _BomDetailService = BomDetail;
            _unitOfWork       = unitOfWork;
            _exception        = exec;

            //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;
        }
Exemplo n.º 20
0
        public ProcessSequenceHeaderController(IProcessSequenceHeaderService PurchaseOrderHeaderService, IActivityLogService ActivityLogService, IUnitOfWork unitOfWork, IExceptionHandlingService exec)
        {
            _ProcessSequenceHeaderService = PurchaseOrderHeaderService;
            _ActivityLogService           = ActivityLogService;
            _unitOfWork = unitOfWork;
            _exception  = exec;

            //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;
        }
Exemplo n.º 21
0
 public ActivityLogController(IActivityLogService ActivityLogService, IUnitOfWork unitOfWork, IExceptionHandlingService exec)
 {
     _ActivityLogService = ActivityLogService;
     _unitOfWork         = unitOfWork;
     _exception          = exec;
 }
Exemplo n.º 22
0
 public FinishedProductConsumptionLineController(IBomDetailService BomDetail, IUnitOfWork unitOfWork, IExceptionHandlingService exec)
 {
     _BomDetailService = BomDetail;
     _unitOfWork       = unitOfWork;
     _exception        = exec;
 }
Exemplo n.º 23
0
        public SaleDeliveryOrderHeaderController(ISaleDeliveryOrderHeaderService PurchaseOrderHeaderService, IActivityLogService ActivityLogService, IUnitOfWork unitOfWork, IExceptionHandlingService exec)
        {
            _SaleDeliveryOrderHeaderService = PurchaseOrderHeaderService;
            _unitOfWork = unitOfWork;
            _exception  = exec;

            UserRoles = (List <string>)System.Web.HttpContext.Current.Session["Roles"];

            //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;
        }
        public DesignConsumptionHeaderController(IBomDetailService BomDetailService, IProductService ProductService, IActivityLogService ActivityLogService, IUnitOfWork unitOfWork, IExceptionHandlingService exec)
        {
            _BomDetailService   = BomDetailService;
            _ProductService     = ProductService;
            _ActivityLogService = ActivityLogService;
            _unitOfWork         = unitOfWork;
            _exception          = exec;

            UserRoles = (List <string>)System.Web.HttpContext.Current.Session["Roles"];

            //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;
        }
 public PurchaseWaybillController(IPurchaseWaybillService PurchaseWaybillService, IUnitOfWork unitOfWork, IExceptionHandlingService exec)
 {
     _PurchaseWaybillService = PurchaseWaybillService;
     _unitOfWork             = unitOfWork;
     _exception = exec;
 }
Exemplo n.º 26
0
        public ProductTypeController(IProductTypeService productTypeService, IUnitOfWork unitOfWork, IExceptionHandlingService exec)
        {
            _ProductTypeService = productTypeService;
            _unitOfWork         = unitOfWork;
            _exception          = exec;

            //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;
        }
 public FinancialDisplayController(IFinancialDisplayService FinancialDisplayService, IUnitOfWork unitOfWork, IExceptionHandlingService exec)
 {
     _FinancialDisplayService = FinancialDisplayService;
     _exception  = exec;
     _unitOfWork = unitOfWork;
 }
        public JobOrderRateAmendmentWizardController(IJobOrderAmendmentHeaderService JobOrderAmendmentHeaderService, IUnitOfWork unitOfWork, IExceptionHandlingService exec)
        {
            _JobOrderAmendmentHeaderService = JobOrderAmendmentHeaderService;
            _exception  = exec;
            _unitOfWork = unitOfWork;
            if (!JobOrderAmendmentEvents.Initialized)
            {
                JobOrderAmendmentEvents Obj = new JobOrderAmendmentEvents();
            }

            UserRoles = (List <string>)System.Web.HttpContext.Current.Session["Roles"];

            //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;
        }
Exemplo n.º 29
0
 public JobWorkerController(IJobWorkerService JobWorkerService, IBusinessEntityService BusinessEntityService, IAccountService AccountService, IPersonService PersonService, IPersonRegistrationService PersonRegistrationService, IPersonAddressService PersonAddressService, IPersonProcessService PersonProcessService, IUnitOfWork unitOfWork, IExceptionHandlingService exec)
 {
     _JobWorkerService          = JobWorkerService;
     _PersonService             = PersonService;
     _PersonAddressService      = PersonAddressService;
     _BusinessEntityService     = BusinessEntityService;
     _AccountService            = AccountService;
     _PersonProcessService      = PersonProcessService;
     _PersonRegistrationService = PersonRegistrationService;
     _unitOfWork = unitOfWork;
     _exception  = exec;
 }
        public SaleDeliveryLineController(IStockService StockService, ISaleDeliveryLineService SaleDelivery, IUnitOfWork unitOfWork, IExceptionHandlingService exec, IPackingLineService packLineServ)
        {
            _SaleDeliveryLineService = SaleDelivery;
            _StockService            = StockService;
            _PackingLineService      = packLineServ;
            _unitOfWork = unitOfWork;
            _exception  = exec;

            UserRoles = (List <string>)System.Web.HttpContext.Current.Session["Roles"];

            //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;
        }
		/// <summary>
		///     Initializes a new instance of the <see cref="DefaultViewModelExceptionHandlingService" /> class.
		/// </summary>
		/// <param name="exceptionHandlingService">The exception handling service.</param>
		public DefaultViewModelExceptionHandlingService( IExceptionHandlingService exceptionHandlingService )
		{
			_exceptionHandlingService = exceptionHandlingService;
		}