Ejemplo n.º 1
0
        public ReportLineController(IReportLineService ReportLineService, IExceptionHandler exec, IReportHeaderService ReportHeaderServ)
        {
            _ReportLineService   = ReportLineService;
            _ReportHeaderService = ReportHeaderServ;
            _exception           = exec;

            UserRoles = (List <string>)System.Web.HttpContext.Current.Session["Roles"];
        }
        public ReportHeaderController(IReportHeaderService ReportHeaderService, IUnitOfWork unitOfWork, IExceptionHandler exec)
        {
            _ReportHeaderService = ReportHeaderService;
            _unitOfWork          = unitOfWork;
            _exception           = exec;

            UserRoles = (List <string>)System.Web.HttpContext.Current.Session["Roles"];
        }
        public ReportHeaderController(IReportHeaderService ReportHeaderService, IUnitOfWork unitOfWork, IExceptionHandlingService exec)
        {
            _ReportHeaderService = ReportHeaderService;
            _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;
        }
Ejemplo n.º 4
0
        public Report_ReportPrintController(IReportLineService line, IReportHeaderService ReportHeader, ILogger logger, IDocumentTypeService DoctypeServ
                                            , IReportUIDValuesService reportUidValuesServ)
        {
            _ReportLineService   = line;
            _ReportHeaderService = ReportHeader;
            _logger = logger;
            _documentTypeService    = DoctypeServ;
            _reportUidValuesService = reportUidValuesServ;

            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 ReportLayoutController(IReportLineService line, IReportHeaderService ReportHeaderServ)
 {
     _ReportLineService   = line;
     _ReportHeaderservice = ReportHeaderServ;
 }