private async Task <OrganizationTypeCreateGet> CreateAddDropDownBoxes(OrganizationTypeCreateGet OrganizationType, string UserId) { var icons = await _masterListProvider.IconList(UserId); OrganizationType.Icons = icons; return(OrganizationType); }
private async Task <ProcessTypeStageTypeCreateGet> CreateAddDropDownBoxes(ProcessTypeStageTypeCreateGet ProcessTypeStageType, string UserId) { var icons = await _masterListProvider.IconList(UserId); ProcessTypeStageType.Icons = icons; return(ProcessTypeStageType); }
public async Task <IActionResult> Create(int Id) { var CurrentUser = await _userManager.GetUserAsync(User); if (await _claimCheck.CheckClaim(CurrentUser, "ApplicationRight", this.ControllerContext.RouteData.Values["controller"].ToString() + "\\" + this.ControllerContext.RouteData.Values["action"].ToString())) { var UserMenuCreateGet = new UserMenuCreateGet(); var iconslist = await _masterListProvider.IconList(CurrentUser.Id); var Pages = await _pageProvider.ListForMenu(CurrentUser.Id); var UserMenuCreateGetSequences = await _frontUserMenuProvider.CreateGetSequence(CurrentUser.Id); UserMenuCreateGet.UserMenuTypesLeft = await _userMenuTypeProvider.LeftList(CurrentUser.Id); UserMenuCreateGet.UserMenuTypesRight = await _userMenuTypeProvider.RightList(CurrentUser.Id); UserMenuCreateGetSequences.Add(new SequenceList { Sequence = UserMenuCreateGetSequences.Count, Name = "Add at the end" }); UserMenuCreateGet.UserMenus = UserMenuCreateGetSequences; UserMenuCreateGet.Icons = iconslist; UserMenuCreateGet.Pages = Pages; UserMenuCreateGet.UserId = CurrentUser.Id; return(Ok(UserMenuCreateGet)); } return(BadRequest(new { IsSuccess = false, Message = "No rights", })); }
private async Task <PersonRelationTypeCreateGet> CreateAddDropDownBoxes(PersonRelationTypeCreateGet PersonRelationType, string UserId) { var icons = await _masterListProvider.IconList(UserId); PersonRelationType.Icons = icons; return(PersonRelationType); }
private async Task <ProjectTypeCreateGet> CreateAddDropDownBoxes(ProjectTypeCreateGet ProjectType, string UserId) { var icons = await _masterListProvider.IconList(UserId); ProjectType.CodeTypes = await _codeTypeProvider.List(UserId); ProjectType.Icons = icons; return(ProjectType); }
public async Task <IActionResult> Update(int Id) { var CurrentUser = await _userManager.GetUserAsync(User); if (await _claimCheck.CheckClaim(CurrentUser, "ApplicationRight", this.ControllerContext.RouteData.Values["controller"].ToString() + "\\" + this.ControllerContext.RouteData.Values["action"].ToString())) { if (await _checkProvider.CheckIfRecordExists("Classifications", "ClassificationID", Id) == 0) { return(BadRequest(new { IsSuccess = false, Message = "No record with this ID", })); } var x = await _classificationProvider.UpdateGet(CurrentUser.Id, Id); var u = await _classificationProvider.CreateGetSequence(CurrentUser.Id); var z = await _masterListProvider.StatusList(CurrentUser.Id); var icons = await _masterListProvider.IconList(CurrentUser.Id); x.Icons = icons; x.DropDownSequences = u; x.Statuses = z; return(Ok(x)); } return(BadRequest(new { IsSuccess = false, Message = "No rights", })); }
private async Task <ClassificationCreateGet> CreateAddDropDownBoxes(ClassificationCreateGet Classification, string UserId) { var ClassificationCreateGetSequences = await _classificationProvider.CreateGetSequence(UserId); var Statuses = await _masterListProvider.StatusList(UserId); var icons = await _masterListProvider.IconList(UserId); var UserLanguage = await _masterProvider.UserLanguageUpdateGet(UserId); Classification.LanguageId = UserLanguage.LanguageId; Classification.LanguageName = UserLanguage.Name; Classification.Icons = icons; Classification.Statuses = Statuses; Classification.Sequences = ClassificationCreateGetSequences; Classification.Sequences.Add(new SequenceList { Sequence = ClassificationCreateGetSequences.Count + 1, Name = "Add at the end" }); return(Classification); }
private async Task <ProcessTypeCreateGet> CreateAddDropDownBoxes(ProcessTypeCreateGet ProcessType, string UserId) { var Sequences = await _processTypeProvider.CreateGetSequence(UserId); var Icons = await _masterListProvider.IconList(UserId); var ProcessTypeGroups = await _processTypeGroupProvider.List(UserId); var UserLanguage = await _masterProvider.UserLanguageUpdateGet(UserId); ProcessType.LanguageId = UserLanguage.LanguageId; ProcessType.LanguageName = UserLanguage.Name; ProcessType.Icons = Icons; ProcessType.ProcessTypes = Sequences; ProcessType.ProcessTypes.Add(new SequenceList { Sequence = Sequences.Count + 1, Name = "Add at the end" }); ProcessType.ProcessTypeGroups = ProcessTypeGroups; return(ProcessType); }
private async Task <UserMenuTemplateOptionCreateGet> CreateAddDropDownBoxes(UserMenuTemplateOptionCreateGet UserMenuTemplateOption, string UserId, int UserMenuTemplateId) { var iconslist = await _masterListProvider.IconList(UserId); var Pages = await _pageProvider.ListForMenuTemplate(UserId); var UserMenuTemplateOptionCreateGetSequences = await _userMenuTemplateOptionProvider.CreateGetSequence(UserId, UserMenuTemplateId); UserMenuTemplateOption.UserMenuTypesLeft = await _userMenuTypeProvider.LeftList(UserId); UserMenuTemplateOption.UserMenuTypesRight = await _userMenuTypeProvider.RightList(UserId); UserMenuTemplateOptionCreateGetSequences.Add(new SequenceList { Sequence = UserMenuTemplateOptionCreateGetSequences.Count, Name = "Add at the end" }); UserMenuTemplateOption.UserMenuTemplateOptions = UserMenuTemplateOptionCreateGetSequences; UserMenuTemplateOption.Icons = iconslist; UserMenuTemplateOption.Pages = Pages; UserMenuTemplateOption.UserMenuTemplateId = UserMenuTemplateId; return(UserMenuTemplateOption); }
private async Task <ContentTypeCreateGet> CreateAddDropDownBoxes(ContentTypeCreateGet ContentType, string UserId) { var ContentTypeGroups = await _contentTypeGroupProvider.List(UserId); var ProcessTypes = await _contentTypeProvider.CreateGetProcessTypes(UserId); var SecurityLevels = await _securityLevelProvider.List(UserId); var UserLanguage = await _masterProvider.UserLanguageUpdateGet(UserId); var Icons = await _masterListProvider.IconList(UserId); var ContentTypeClassificationStatuses = await _contentTypeClassificationStatusProvider.List(UserId); var ContentTypeClassifications = await _contentTypeClassificationProvider.CreateGetClassifications(UserId); ContentType.ContentTypeGroups = ContentTypeGroups; ContentType.Icons = Icons; ContentType.SecurityLevels = SecurityLevels; ContentType.ProcessTypes = ProcessTypes; ContentType.ContentTypeClassificationStatuses = ContentTypeClassificationStatuses; ContentType.ContentTypeClassifications = ContentTypeClassifications; return(ContentType); }
private async Task <ContentTypeGroupCreateGet> CreateAddDropDownBoxes(ContentTypeGroupCreateGet ContentTypeGroup, string UserId) { var ContentTypeGroupCreateGetSequences = await _contentTypeGroupProvider.CreateGetSequence(UserId); var Statuses = await _masterListProvider.StatusList(UserId); var icons = await _masterListProvider.IconList(UserId); var UserLanguage = await _masterProvider.UserLanguageUpdateGet(UserId); ContentTypeGroup.LanguageId = UserLanguage.LanguageId; ContentTypeGroup.LanguageName = UserLanguage.Name; ContentTypeGroup.Sequences = ContentTypeGroupCreateGetSequences; ContentTypeGroup.Sequences.Add(new SequenceList { Sequence = ContentTypeGroupCreateGetSequences.Count + 1, Name = "Add at the end" }); return(ContentTypeGroup); }