Пример #1
0
        public override string LoadKendoComboBoxSources(string fieldName, TextBox txtBox, PlaceHolder plcControlHolder)
        {
            if (fieldName == "ApplicationId")
            {
                TextBoxApplicationIdClientId = txtBox.ClientID;
            }

            var configString = string.Empty;

            switch (fieldName)
            {
            case "Functionality":
                configString = AjaxHelper.GetCascadeKendoComboBoxConfigScript("GetFunctionalityList", "Name", "FunctionalityId",
                                                                              plcControlHolder, TextBoxApplicationIdClientId);
                break;

            case "SystemEntityType":
                configString = AjaxHelper.GetKendoComboBoxConfigScript("GetSystemEntityList", "EntityName", "systemEntityTypeId", plcControlHolder);
                break;

            case "ApplicationId":
                configString = AjaxHelper.GetKendoComboBoxConfigScript("GetApplicationList", "Name", "ApplicationId", plcControlHolder);
                break;

            case "FunctionalityActiveStatus":
                configString = AjaxHelper.GetKendoComboBoxConfigScript("GetFunctionalityActiveStatusList", "Name", "FunctionalityActiveStatusId", plcControlHolder);
                break;
            }
            return(configString);
        }
Пример #2
0
        public virtual string LoadKendoComboBoxSources(string fieldName, TextBox txtBox, PlaceHolder plcHolder)
        {
            var configString = string.Empty;

            switch (fieldName)
            {
            case "ApplicationId":
            case "SubscriberApplicationId":
            case "PublisherApplicationId":
            case "Application":
                configString = AjaxHelper.GetKendoComboBoxConfigScript("GetApplicationList", "Name", "ApplicationId", plcHolder, true);
                break;

            case "ApplicationUserId":
            case "ApplicationUser":
                configString = AjaxHelper.GetKendoComboBoxConfigScript("GetApplicationUserList", "FullName", "ApplicationUserId", plcHolder);
                break;

            case "UserName":
                configString = AjaxHelper.GetKendoComboBoxConfigScript("GetApplicationUserList", "FullName", "FullName", plcHolder);
                break;

            case "Task":
            case "TaskId":
                configString = AjaxHelper.GetKendoComboBoxConfigScript("GetTaskList", "Name", "TaskId", plcHolder);
                break;

            case "CompetencyId":
                configString = AjaxHelper.GetKendoComboBoxConfigScript("GetCompetencyList", "Name", "CompetencyId", plcHolder);
                break;

            case "ScheduleDetailActivityCategory":
            case "ScheduleDetailActivityCategoryId":
                configString = AjaxHelper.GetKendoComboBoxConfigScript("GetScheduleDetailActivityCategoryList", "Name", "ScheduleDetailActivityCategoryId", plcHolder);
                break;

            case "Activity":
            case "ActivityId":
                configString = AjaxHelper.GetKendoComboBoxConfigScript("GetTaskList", "Name", "TaskId", plcHolder);
                break;

            case "EntityId":
                configString = AjaxHelper.GetKendoComboBoxConfigScript("GetEntityList", "FullName", "EntityId", plcHolder);
                break;

            case "ScheduleStateId":
            case "ScheduleStateName":
                configString = AjaxHelper.GetKendoComboBoxConfigScript("GetScheduleStateList", "Name", "ScheduleStateId", plcHolder);
                break;

            case "DeliverableArtifactId":
                configString = AjaxHelper.GetKendoComboBoxConfigScript("GetDeliverableArtifactList", "Name", "DeliverableArtifactId", plcHolder);
                break;

            case "DeliverableArtifactStatusId":
                configString = AjaxHelper.GetKendoComboBoxConfigScript("GetDeliverableArtifactStatusList", "Name", "DeliverableArtifactStatusId", plcHolder);
                break;

            case "Person":
            case "PersonId":
                configString = AjaxHelper.GetKendoComboBoxConfigScript("GetApplicationUserList", "FullName", "ApplicationUserId", plcHolder);
                break;

            case "ProjectId":
            case "Project":
                configString = AjaxHelper.GetKendoComboBoxConfigScript("GetProjectList", "Name", "ProjectId", plcHolder);
                break;

            case "FeatureXFeatureRuleId":
                configString = AjaxHelper.GetKendoComboBoxConfigScript("GetProjectList", "Name", "ProjectId", plcHolder);
                break;


            //case "ReleaseLogId":
            //	configString = AjaxHelper.GetKendoComboBoxConfigScript("GetReleaseLogList", "Name", "ReleaseLogId", plcHolder);
            //	break;

            case "ReleasePublishCategoryId":
                configString = AjaxHelper.GetKendoComboBoxConfigScript("GetReleasePublishCategoryList", "Name", "ReleasePublishCategoryId", plcHolder);
                break;

            case "ReleaseIssueTypeId":
                configString = AjaxHelper.GetKendoComboBoxConfigScript("GetReleaseIssueTypeList", "Name", "ReleaseIssueTypeId", plcHolder);
                break;

            case "ThemeId":
                configString = AjaxHelper.GetKendoComboBoxConfigScript("GetThemeList", "Name", "ThemeId", plcHolder);
                break;

            case "ThemeCategoryId":
                configString = AjaxHelper.GetKendoComboBoxConfigScript("GetThemeCategoryList", "Name", "ThemeCategoryId", plcHolder);
                break;

            case "ThemeKeyId":
                configString = AjaxHelper.GetKendoComboBoxConfigScript("GetThemeKeyList", "Name", "ThemeKeyId", plcHolder);
                break;

            case "Entity":
                configString = AjaxHelper.GetKendoComboBoxConfigScript("GetEntityList", "items", "SystemEntityTypeId", plcHolder);
                break;

            //case "ModuleId":
            //	configString = AjaxHelper.GetKendoComboBoxConfigScript("GetModuleList", "Name", "ModuleId", plcHolder);
            //	break;

            //case "ReleaseFeatureId":
            //	configString = AjaxHelper.GetKendoComboBoxConfigScript("GetReleaseFeatureList", "Name", "ReleaseFeatureId", plcHolder);
            //	break;


            case "FunctionalityActiveStatus":
                configString = AjaxHelper.GetKendoComboBoxConfigScript("GetFunctionalityActiveStatusList", "Name", "Value", plcHolder);
                break;

            case "TaskEntityId":
                configString = AjaxHelper.GetKendoComboBoxConfigScript("GetTaskEntityList", "Name", "TaskEntityId", plcHolder);
                break;

            case "TaskTypeId":
                configString = AjaxHelper.GetKendoComboBoxConfigScript("GetTaskTypeList", "Name", "TaskTypeId", plcHolder);
                break;

            case "TaskScheduleId":
                configString = AjaxHelper.GetKendoComboBoxConfigScript("GetTaskScheduleList", "Name", "TaskScheduleId", plcHolder);
                break;

            case "TaskPackageId":
                configString = AjaxHelper.GetKendoComboBoxConfigScript("GetTaskPackageList", "Name", "TaskPackageId", plcHolder);
                break;

            case "FunctionalityImage":
                configString = AjaxHelper.GetKendoComboBoxConfigScript("GetFunctionalityImageList", "Name", "FunctionalityImageId", plcHolder);
                break;

            case "Title":
                configString = AjaxHelper.GetKendoComboBoxConfigScript("GetFunctionalityImageList", "Name", "FunctionalityImageId", plcHolder);
                break;

            case "ProfileTitle":
                configString = AjaxHelper.GetKendoComboBoxConfigScript("GetApplicationUserProfileImageMasterList", "Title", "Title", plcHolder);
                break;

            case "FeatureOwnerStatusId":
                configString = AjaxHelper.GetKendoComboBoxConfigScript("GetFeatureOwnerStatusList", "Name", "FeatureOwnerStatusId", plcHolder);
                break;

            case "DeveloperRoleId":
                configString = AjaxHelper.GetKendoComboBoxConfigScript("GetDeveloperRoleList", "Name", "DeveloperRoleId", plcHolder);
                break;

            case "FunctionalityImageAttribute":
                configString = AjaxHelper.GetKendoComboBoxConfigScript("GetFunctionalityImageAttributeList", "Name", "FunctionalityImageAttributeId", plcHolder);
                break;

            case "Module":
                configString = AjaxHelper.GetKendoComboBoxConfigScript("GetModuleList", "Name", "ModuleId", plcHolder);
                break;

            case "FunctionalityId":
                configString = AjaxHelper.GetKendoComboBoxConfigScript("GetFunctionalityList", "Name", "FunctionalityId", plcHolder);
                break;

            case "QuestionCategoryId":
                configString = AjaxHelper.GetKendoComboBoxConfigScript("GetQuestionCategoryList", "Name", "QuestionCategoryId", plcHolder);
                break;

            case "Category":
                configString = AjaxHelper.GetKendoComboBoxConfigScript("GetQuestionCategoryList", "Name", "QuestionCategoryId", plcHolder);
                break;
            //case "SystemEntityType":
            //case "SystemEntityTypeId":
            //case "PrimaryEntity":
            //	configString = AjaxHelper.GetKendoComboBoxConfigScript("GetSystemEntityList", "EntityName", "SystemEntityTypeId", plcHolder);
            //	break;

            case "SubscriberApplicationRoleId":
                configString = AjaxHelper.GetKendoComboBoxConfigScript("GetSubscriberApplicationRoleList", "Name", "SubscriberApplicationRoleId", plcHolder);
                break;

            case "ParentMenuId":
                configString = AjaxHelper.GetCascadeKendoComboBoxConfigScript("GetParentMenuList", "MenuDisplayName", "MenuId",
                                                                              plcHolder, BaseSearchFilterControl.TextBoxApplicationIdClientId);
                break;

            case "ModuleId":
                configString = AjaxHelper.GetCascadeKendoComboBoxConfigScript("GetModuleList", "Name", "ModuleId",
                                                                              plcHolder, BaseSearchFilterControl.TextBoxApplicationIdClientId);
                break;

            case "NeedId":
                configString = AjaxHelper.GetKendoComboBoxConfigScript("GetNeedList", "Name", "NeedId", plcHolder);
                break;

            case "UseCaseId":
                configString = AjaxHelper.GetKendoComboBoxConfigScript("GetUseCaseList", "Name", "UseCaseId", plcHolder);
                break;

            case "ProjectUseCaseStatusId":
                configString = AjaxHelper.GetKendoComboBoxConfigScript("GetProjectUseCaseStatusList", "Name", "ProjectUseCaseStatusId", plcHolder);
                break;

            case "UseCaseWorkFlowCatgeoryId":
                configString = AjaxHelper.GetKendoComboBoxConfigScript("GetUseCaseWorkFlowCatgeoryList", "Name", "UseCaseWorkFlowCatgeoryId", plcHolder);
                break;

            case "UseCaseStepId":
                configString = AjaxHelper.GetKendoComboBoxConfigScript("GetUseCaseStepList", "Name", "UseCaseStepId", plcHolder);
                break;

            case "UseCaseActorId":
                configString = AjaxHelper.GetKendoComboBoxConfigScript("GetUseCaseActorList", "Name", "UseCaseActorId",
                                                                       plcHolder);
                break;

            case "UseCaseRelationshipId":
                configString = AjaxHelper.GetKendoComboBoxConfigScript("GetUseCaseRelationshipList", "Name", "UseCaseRelationshipId",
                                                                       plcHolder);
                break;

            case "FeatureId":
                configString = AjaxHelper.GetKendoComboBoxConfigScript("GetFeatureList", "Name", "FeatureId", plcHolder);
                break;

            case "FeatureRuleId":
                configString = AjaxHelper.GetKendoComboBoxConfigScript("GetFeatureRuleList", "Name", "FeatureRuleId",
                                                                       plcHolder);
                break;

            case "FeatureRuleStatusId":
                configString = AjaxHelper.GetKendoComboBoxConfigScript("GetFeatureRuleStatusList", "Name", "FeatureRuleStatusId",
                                                                       plcHolder);
                break;

            case "TabParentStructureId":
                configString = AjaxHelper.GetCascadeKendoComboBoxConfigScript("GetTabParentStructureList", "Name", "TabParentStructureId",
                                                                              plcHolder, BaseSearchFilterControl.TextBoxApplicationIdClientId);
                break;

            case "ReleaseFeatureId":
                configString = AjaxHelper.GetCascadeKendoComboBoxConfigScript("GetReleaseFeatureList", "Name", "ReleaseFeatureId",
                                                                              plcHolder, BaseSearchFilterControl.TextBoxApplicationIdClientId);
                break;

            case "ReleaseLogId":
                configString = AjaxHelper.GetCascadeKendoComboBoxConfigScript("GetReleaseLogList", "Name", "ReleaseLogId",
                                                                              plcHolder, BaseSearchFilterControl.TextBoxApplicationIdClientId);
                break;

            case "NotificationEventTypeId":
                configString = AjaxHelper.GetCascadeKendoComboBoxConfigScript("GetNotificationEventTypeList", "Name", "ReleaseLogId",
                                                                              plcHolder, BaseSearchFilterControl.TextBoxApplicationIdClientId);
                break;

            case "NotificationPublisherId":
                configString = AjaxHelper.GetCascadeKendoComboBoxConfigScript("GetNotificationPublisherList", "Name", "ReleaseLogId",
                                                                              plcHolder, BaseSearchFilterControl.TextBoxApplicationIdClientId);
                break;

            case "SystemEntityTypeId":
                configString = AjaxHelper.GetKendoComboBoxConfigScript("GetSystemEntityList", "EntityName", "SystemEntityTypeId", plcHolder);
                break;

            case "SystemEntityType":
            //case "SystemEntityTypeId":
            case "PrimaryEntity":
                configString = AjaxHelper.GetCascadeKendoComboBoxConfigScript("GetSystemEntityList", "EntityName", "SystemEntityTypeId",
                                                                              plcHolder, BaseSearchFilterControl.TextBoxApplicationIdClientId);
                break;

            case "FieldConfigurationModeId":
                configString = AjaxHelper.GetCascadeKendoComboBoxConfigScript("GetFieldConfigurationModeList", "Name", "FieldConfigurationModeId",
                                                                              plcHolder, BaseSearchFilterControl.TextBoxApplicationIdClientId);
                break;

            case "EntityDateRangeStateTypeId":
                configString = AjaxHelper.GetKendoComboBoxConfigScript("GetEnityDateRangeStateList", "Name", "EntityDateRangeStateId", plcHolder);
                break;

            case "UserLoginStatusId":
                configString = AjaxHelper.GetKendoComboBoxConfigScript("GetUserLoginStatusList", "UserLoginStatusCode", "UserLoginStatusId", plcHolder);
                break;

            case "ExcludeItems":
                configString = AjaxHelper.GetKendoComboBoxConfigScript("CheckExcludeItemsListBoxItems", "Name", "Value", plcHolder, false);
                break;

            default:
                break;
            }

            return(configString);
        }