Пример #1
0
        public UserReport(
            ParametrosReport p_ParametrosReport,
            ILayoutService p_LayoutService,
            IUserService p_UserService

            ) : base(p_ParametrosReport, p_LayoutService)
        {
            _userService = p_UserService;
        }
Пример #2
0
        public static IReport CM_GetReport(ParametrosReport p_ParametroReport, Dictionary <String, Object> services)
        {
            var layoutService = (ILayoutService)services[DictionaryServices.LAYOUT_SERVICE_KEY];

            switch (p_ParametroReport.ds_tipo_report)
            {
            case "PRODUCT_REPORT":
                return(new ProdutosReport(p_ParametroReport, layoutService));

            case "USER_REPORT":
                var userService = (IUserService)services[DictionaryServices.USER_SERVICE_KEY];
                return(new UserReport(p_ParametroReport, layoutService, userService));
            }
            throw new ApplicationException("Report não encontrado.");
        }
Пример #3
0
 public IReport(ParametrosReport p_ParametrosReport, ILayoutService p_LayoutService)
 {
     C_ParametrosReport = p_ParametrosReport;
     C_LayoutService    = p_LayoutService;
 }
Пример #4
0
 public ProdutosReport(ParametrosReport p_ParametrosReport, ILayoutService p_LayoutService) : base(p_ParametrosReport, p_LayoutService)
 {
 }