public GridConfigController(IAuthenticationService authenticationService, IDiagnosticService diagnosticService, IGridConfigService gridConfigService) : base(authenticationService, diagnosticService) { _gridConfigService = gridConfigService; }
public NoteRequestController(IAuthenticationService authenticationService, IDiagnosticService diagnosticService, IGridConfigService gridConfigService, INoteRequestService noteRequestService) : base(authenticationService, diagnosticService, noteRequestService) { _noteRequestService = noteRequestService; _gridConfigService = gridConfigService; }
public TemplateController(IAuthenticationService authenticationService, IGridConfigService gridConfigService, IDiagnosticService diagnosticService, ITemplateService templateService) : base(authenticationService, diagnosticService, templateService) { _templateService = templateService; _gridConfigService = gridConfigService; }
public SystemConfigurationController(IAuthenticationService authenticationService, IGridConfigService gridConfigService, IDiagnosticService diagnosticService, ISystemConfigurationService systemConfigurationService) : base(authenticationService, diagnosticService, systemConfigurationService) { _systemConfigurationService = systemConfigurationService; _gridConfigService = gridConfigService; }
public ScheduleController(IAuthenticationService authenticationService, IDiagnosticService diagnosticService, IGridConfigService gridConfigService, IScheduleService scheduleService) : base(authenticationService, diagnosticService, scheduleService) { _scheduleService = scheduleService; _gridConfigService = gridConfigService; }
public HoldingRequestController(IAuthenticationService authenticationService, IDiagnosticService diagnosticService, IGridConfigService gridConfigService, IHoldingRequestService holdingRequestService) : base(authenticationService, diagnosticService, holdingRequestService) { _holdingRequestService = holdingRequestService; _gridConfigService = gridConfigService; }
public UserRoleController(IAuthenticationService authenticationService, IDiagnosticService diagnosticService, IUserRoleService userRoleService, IGridConfigService gridConfigService, IRenderViewToString renderViewToString) : base(authenticationService, diagnosticService, userRoleService) { _userRoleService = userRoleService; _gridConfigService = gridConfigService; _renderViewToString = renderViewToString; }
public ModuleController(IAuthenticationService authenticationService, IDiagnosticService diagnosticService, IGridConfigService gridConfigService, IRenderViewToString renderViewToString, IModuleService moduleService) : base(authenticationService, diagnosticService, moduleService) { _moduleService = moduleService; _gridConfigService = gridConfigService; _renderViewToString = renderViewToString; }
public TrackingController(IAuthenticationService authenticationService, IDiagnosticService diagnosticService, ITrackingService trackingService, IGridConfigService gridConfigService) : base(authenticationService, diagnosticService, trackingService) { _gridConfigService = gridConfigService; _trackingService = trackingService; }
public ModuleDocumentTypeOperationController(IAuthenticationService authenticationService, IDiagnosticService diagnosticService, IGridConfigService gridConfigService, IModuleDocumentTypeOperationService moduleDocumentTypeOperationService, IDocumentTypeService documentTypeService, IModuleService moduleService) : base(authenticationService, diagnosticService, moduleDocumentTypeOperationService) { _moduleDocumentTypeOperationService = moduleDocumentTypeOperationService; _documentTypeService = documentTypeService; _moduleService = moduleService; _gridConfigService = gridConfigService; }
public FranchiseeModuleController(IAuthenticationService authenticationService, IDiagnosticService diagnosticService, IGridConfigService gridConfigService, IFranchiseeModuleService franchiseeModuleService, IFranchiseeTenantService franchiseeTenantService, IModuleService moduleService) : base(authenticationService, diagnosticService, franchiseeModuleService) { _franchiseeModuleService = franchiseeModuleService; _franchiseeTenantService = franchiseeTenantService; _moduleService = moduleService; _gridConfigService = gridConfigService; }
public FranchiseeTenantController(IAuthenticationService authenticationService, IDiagnosticService diagnosticService, IGridConfigService gridConfigService, IFranchiseeConfigurationService franchiseeConfigurationService, IRenderViewToString renderViewToString, IResizeImage resizeImage, IFranchiseeTenantService franchiseeTenantService) : base(authenticationService, diagnosticService, franchiseeTenantService) { _franchiseeTenantService = franchiseeTenantService; _gridConfigService = gridConfigService; _franchiseeConfigurationService = franchiseeConfigurationService; _resizeImage = resizeImage; _renderViewToString = renderViewToString; }
public UserController(IAuthenticationService authenticationService, IRenderViewToString renderViewToString, IDiagnosticService diagnosticService, IResizeImage resizeImage, IGridConfigService gridConfigService, IUserService userService, IFranchiseeConfigurationService franchiseeConfigurationService, IWebApiConsumeUserService webApiConsumeUserService) : base(authenticationService, diagnosticService, userService) { _userService = userService; _gridConfigService = gridConfigService; _renderViewToString = renderViewToString; _franchiseeConfigurationService = franchiseeConfigurationService; _emailHandler = new EmailHandler(); _resizeImage = resizeImage; _webApiConsumeUserService = webApiConsumeUserService; }
public LocationController(IAuthenticationService authenticationService, IDiagnosticService diagnosticService, ILocationService locationService, IRenderViewToString renderViewToString, ICountryOrRegionService countryOrRegionService, IGridConfigService gridConfigService) : base(authenticationService, diagnosticService, locationService) { _gridConfigService = gridConfigService; _locationService = locationService; _renderViewToString = renderViewToString; _countryOrRegionService = countryOrRegionService; }
public RequestController(IAuthenticationService authenticationService, IGridConfigService gridConfigService, IRequestService requestService, IStaticValueService staticValueService, IRenderViewToString renderViewToString, INoteRequestService noteRequestService, ISystemEventService systemEventService, ILocationService locationService, IGoogleService googleService, IUserService userService, IHoldingRequestService holdingRequestService, ISystemConfigurationService systemConfigurationService, IDiagnosticService diagnosticService) : base(authenticationService, diagnosticService, requestService) { _requestService = requestService; _staticValueService = staticValueService; _gridConfigService = gridConfigService; _renderViewToString = renderViewToString; _noteRequestService = noteRequestService; _systemEventService = systemEventService; _locationService = locationService; _googleService = googleService; _systemConfigurationService = systemConfigurationService; _holdingRequestService = holdingRequestService; _userService = userService; _diagnosticService = diagnosticService; }
public FranchiseeConfigurationController(IAuthenticationService authenticationService, IDiagnosticService diagnosticService, IResizeImage resizeImage, IGridConfigService gridConfigService, IFranchiseeConfigurationService franchiseeConfigurationService, IFranchiseeTenantService franchiseeTenantService, IUserService userService, IWebApiPaymentService webApiPaymentService, IWebApiConsumeUserService webApiUserService, IEmailHandler emailHandler, IContactService contactService, ILocationService locationService, ISystemConfigurationService systemConfigurationService) : base(authenticationService, diagnosticService, franchiseeConfigurationService) { _resizeImage = resizeImage; _franchiseeConfigurationService = franchiseeConfigurationService; _gridConfigService = gridConfigService; _webApiUserService = webApiUserService; _diagnosticService = diagnosticService; _userService = userService; _webApiPaymentService = webApiPaymentService; _emailHandler = emailHandler; _contactService = contactService; _locationService = locationService; _systemConfigurationService = systemConfigurationService; }
/// <summary> /// Build grid /// </summary> /// <param name="gridConfigService"></param> /// <param name="initGridViewModel"></param> /// <returns></returns> public virtual GridViewModel BuildGridViewModel(IGridConfigService gridConfigService, Func <GridViewModel> initGridViewModel = null) { var modelName = typeof(TEntity).Name; //my be this is a value object, not view model var gridViewModel = initGridViewModel != null?initGridViewModel() : new GridViewModel { GridId = string.Format("{0}Grid", modelName), ModelName = modelName, //AdvancedSearchUrl = "~/Views/Shared/AdvancedSearch.cshtml" }; Func <GridConfig, GridConfigViewModel> selector = g => g.MapTo <GridConfigViewModel>(); var objGridConfig = gridConfigService.GetGridConfig(selector, AuthenticationService.GetCurrentUser().User.Id, gridViewModel.DocumentTypeId, gridViewModel.GridInternalName); var objListColumnInGridConfig = new List <ViewColumnViewModel>(); if (objGridConfig != null && objGridConfig.ViewColumns != null && objGridConfig.ViewColumns.Count != 0) { gridViewModel.Id = objGridConfig.Id; objListColumnInGridConfig = objGridConfig.ViewColumns.OrderBy(o => o.ColumnOrder).ToList(); } var defaultColumns = GetViewColumns(); foreach (var column in defaultColumns) { var configColumn = objListColumnInGridConfig.FirstOrDefault(o => o.Name == column.Name); if (configColumn != null) { column.HideColumn = configColumn.HideColumn; column.ColumnOrder = configColumn.ColumnOrder; column.ColumnWidth = configColumn.ColumnWidth; } } gridViewModel.ViewColumns = defaultColumns.OrderBy(o => o.ColumnOrder).ToList(); return(gridViewModel); }