public override ConvertServiceResponse ProcessServiceRequest(ConvertServiceRequest request, ModuleUtilsBase moduleUtils) { _moduleUtils = moduleUtils; _moduleName = request.Parameters[CommonParameters.ModuleName]; return new ConvertServiceResponse() { ResponseData = GetModel(request) }; }
public override ConvertServiceResponse ProcessServiceRequest(ConvertServiceRequest request, ModuleUtilsBase moduleUtils) { _moduleUtils = moduleUtils; _moduleName = request.Parameters[CommonParameters.ModuleName]; var entityId = request.Parameters[CommonParameters.EntityId]; if (entityId.ToUpperInvariant() != RecordActions.New.ToUpperInvariant()) _servicesId = int.Parse(entityId, CultureInfo.InvariantCulture); return new ConvertServiceResponse() { ResponseData = GetModel(request) }; }
private void AddRecord(string displayName, string moduleName, string primaryEntityName, string moduleImageUrl, ModuleUtilsBase moduleUtils, bool addSettingsLink) { var record = new Record { ModuleName = displayName, ImageUrl = ServiceContext.ServicesBaseUrl + moduleImageUrl, SubRecords = new List<Record>() }; Record subrecord; foreach (var item in moduleUtils.CreateSubEntityNavLinks()) { subrecord = new Record { ModuleName = item.Name, AdminUrl = ServiceContext.ServicesBaseUrl + "/admin/v1/modules/" + moduleName + "/" + item.EntityName, FontAwesomeClassName = item.FontAwesomeClassName }; subrecord.AdminUrl = DashboardUtils.AddStandardUrlParameters(subrecord.AdminUrl); record.SubRecords.Add(subrecord); } if (addSettingsLink) { subrecord = new Record { ModuleName = "Settings", AdminUrl = ServiceContext.ServicesBaseUrl + "/admin/v1/modules/" + moduleName + "/settings", FontAwesomeClassName = "fa-gear" }; subrecord.AdminUrl = DashboardUtils.AddStandardUrlParameters(subrecord.AdminUrl); record.SubRecords.Add(subrecord); } _viewModel.Records.Add(record); }
public override ConvertServiceResponse ProcessServiceRequest(ConvertServiceRequest request, ModuleUtilsBase moduleUtils) { _moduleUtils = moduleUtils; _moduleName = request.Parameters[CommonParameters.ModuleName]; var entityId = request.Parameters[CommonParameters.EntityId]; if (entityId.ToUpperInvariant() != RecordActions.New.ToUpperInvariant()) _dynamicColumnId = int.Parse(entityId, CultureInfo.InvariantCulture); if (request.Parameters.ContainsKey("Command")) { if (request.Parameters["Command"] == "DataTypeChanged") return HandleDataTypeChanged(request); } return new ConvertServiceResponse() { ResponseData = GetModel(request) }; }