Esempio n. 1
0
        private static void SetupScheduleRoutes()
        {
            List <string> entityNamesSchedule = new List <string>(new string[]        {
                "CustomTimeLog", "Schedule", "ScheduleDetail",
                "ScheduleHistory", "ScheduleItem", "ScheduleQuestion", "ScheduleState", "VacationPlan", "ScheduleView"
            });

            foreach (string entity in entityNamesSchedule)
            {
                var oApplicationRouteDataModel = new ApplicationRouteDataModel();

                oApplicationRouteDataModel.EntityName = entity;
                var route1 = string.Empty;

                var items = ApplicationRouteDataManager.GetEntityDetails(oApplicationRouteDataModel, Global.GetStartupProfile());

                foreach (var dataItem in items)
                {
                    if (dataItem.RouteName.Equals(dataItem.EntityName + "EntityRoute"))
                    {
                        dataItem.RelativeRoute = string.Format("~/BM/Scheduling/{0}/{{action}}.aspx", dataItem.EntityName);
                    }
                    else if (dataItem.RouteName.Equals(dataItem.EntityName + "EntityRouteSuperKey"))
                    {
                        dataItem.RelativeRoute = string.Format("~/BM/Scheduling/{0}/{{action}}.aspx", dataItem.EntityName);
                    }
                    else if (dataItem.RouteName.Equals(dataItem.EntityName + "EntityRouteSearch"))
                    {
                        dataItem.RelativeRoute = string.Format("~/BM/Scheduling/{0}/Default.aspx", dataItem.EntityName);
                    }
                    ApplicationRouteDataManager.Update(dataItem, Global.GetStartupProfile());
                }
            }
        }
Esempio n. 2
0
        private static void SetupAptitudeRoutes()
        {
            List <string> entityNamesProductivity = new List <string>(new string[]    {
                "Competency", "CompetencyXSkill", "Skill", "SkillLevel", "SkillXPersonXSkillLevel"
            });

            foreach (string entity in entityNamesProductivity)
            {
                var oApplicationRouteDataModel = new ApplicationRouteDataModel();

                oApplicationRouteDataModel.EntityName = entity;
                var route1 = string.Empty;

                var items = ApplicationRouteDataManager.GetEntityDetails(oApplicationRouteDataModel, Global.GetStartupProfile());

                foreach (var dataItem in items)
                {
                    if (dataItem.RouteName.Equals(dataItem.EntityName + "EntityRoute"))
                    {
                        dataItem.RelativeRoute = string.Format("~/BM/Aptitude/{0}/{{action}}.aspx", dataItem.EntityName);
                    }
                    else if (dataItem.RouteName.Equals(dataItem.EntityName + "EntityRouteSuperKey"))
                    {
                        dataItem.RelativeRoute = string.Format("~/BM/Aptitude/{0}/{{action}}.aspx", dataItem.EntityName);
                    }
                    else if (dataItem.RouteName.Equals(dataItem.EntityName + "EntityRouteSearch"))
                    {
                        dataItem.RelativeRoute = string.Format("~/BM/Aptitude/{0}/Default.aspx", dataItem.EntityName);
                    }
                    ApplicationRouteDataManager.Update(dataItem, Global.GetStartupProfile());
                }
            }
        }
Esempio n. 3
0
        private static void SetupRiskAndRewardRoutes()
        {
            List <string> entityNamesRiskAndReward = new List <string>(new string[]   {
                "Reward", "Risk"
            });

            foreach (string entity in entityNamesRiskAndReward)
            {
                var oApplicationRouteDataModel = new ApplicationRouteDataModel();

                oApplicationRouteDataModel.EntityName = entity;
                var route1 = string.Empty;

                var items = ApplicationRouteDataManager.GetEntityDetails(oApplicationRouteDataModel, Global.GetStartupProfile());

                foreach (var dataItem in items)
                {
                    if (dataItem.RouteName.Equals(dataItem.EntityName + "EntityRoute"))
                    {
                        dataItem.RelativeRoute = string.Format("~/BM/RiskAndReward/{0}/{{action}}.aspx", dataItem.EntityName);
                    }
                    else if (dataItem.RouteName.Equals(dataItem.EntityName + "EntityRouteSuperKey"))
                    {
                        dataItem.RelativeRoute = string.Format("~/BM/RiskAndReward/{0}/{{action}}.aspx", dataItem.EntityName);
                    }
                    else if (dataItem.RouteName.Equals(dataItem.EntityName + "EntityRouteSearch"))
                    {
                        dataItem.RelativeRoute = string.Format("~/BM/RiskAndReward/{0}/Default.aspx", dataItem.EntityName);
                    }
                    ApplicationRouteDataManager.Update(dataItem, Global.GetStartupProfile());
                }
            }
        }
Esempio n. 4
0
        private static void SetupClientRoute()
        {
            var oApplicationRouteDataModel = new ApplicationRouteDataModel();

            oApplicationRouteDataModel.EntityName = "Client";

            var items = ApplicationRouteDataManager.GetEntityDetails(oApplicationRouteDataModel, Global.GetStartupProfile());

            foreach (var dataItem in items)
            {
                if (dataItem.RouteName.Equals(dataItem.EntityName + "EntityRoute"))
                {
                    dataItem.RelativeRoute = string.Format("~/PMO/{0}/{{action}}.aspx", dataItem.EntityName);
                }
                else if (dataItem.RouteName.Equals(dataItem.EntityName + "EntityRouteSuperKey"))
                {
                    dataItem.RelativeRoute = string.Format("~/PMO/{0}/{{action}}.aspx", dataItem.EntityName);
                }
                else if (dataItem.RouteName.Equals(dataItem.EntityName + "EntityRouteSearch"))
                {
                    dataItem.RelativeRoute = string.Format("~/PMO/{0}/Default.aspx", dataItem.EntityName);
                }

                ApplicationRouteDataManager.Update(dataItem, Global.GetStartupProfile());
            }
        }
Esempio n. 5
0
        private static void SetupApplicationDevelopmentRoutes()
        {
            List <string> entityNamesAppDev = new List <string>(new string[]  {
                "AllEntityDetail", "DeveloperRole", "EntityOwner", "FeatureOwnerStatus", "Functionality", "FunctionalityActiveStatus",
                "FunctionalityEntityStatus", "FunctionalityEntityStatusArchive", "FunctionalityHistory", "FunctionalityImage",
                "FunctionalityImageAttribute", "FunctionalityImageInstance", "FunctionalityOwner", "FunctionalityPriority",
                "FunctionalityStatus", "FunctionalityXFunctionalityActiveStatus", "FunctionalityXFunctionalityImage",
                "Module", "ModuleOwner"
            });

            foreach (string entity in entityNamesAppDev)
            {
                var oApplicationRouteDataModel = new ApplicationRouteDataModel();

                oApplicationRouteDataModel.EntityName = entity;
                var route1 = string.Empty;

                var items = ApplicationRouteDataManager.GetEntityDetails(oApplicationRouteDataModel, Global.GetStartupProfile());

                foreach (var dataItem in items)
                {
                    if (dataItem.RouteName.Equals(dataItem.EntityName + "EntityRoute"))
                    {
                        if (route1 != string.Empty)
                        {
                            dataItem.RelativeRoute = string.Format(route1 + "{0}/{{action}}.aspx", dataItem.EntityName);
                        }
                        else
                        {
                            dataItem.RelativeRoute = string.Format("~/MA/ApplicationDevelopment/{0}/{{action}}.aspx", dataItem.EntityName);
                        }
                    }
                    else if (dataItem.RouteName.Equals(dataItem.EntityName + "EntityRouteSuperKey"))
                    {
                        if (route1 != string.Empty)
                        {
                            dataItem.RelativeRoute = string.Format(route1 + "{0}/{{action}}.aspx", dataItem.EntityName);
                        }
                        else
                        {
                            dataItem.RelativeRoute = string.Format("~/MA/ApplicationDevelopment/{0}/{{action}}.aspx", dataItem.EntityName);
                        }
                    }
                    else if (dataItem.RouteName.Equals(dataItem.EntityName + "EntityRouteSearch"))
                    {
                        if (route1 != string.Empty)
                        {
                            dataItem.RelativeRoute = string.Format(route1 + "{0}/Default.aspx", dataItem.EntityName);
                        }
                        else
                        {
                            dataItem.RelativeRoute = string.Format("~/MA/ApplicationDevelopment/{0}/Default.aspx", dataItem.EntityName);
                        }
                    }

                    ApplicationRouteDataManager.Update(dataItem, Global.GetStartupProfile());
                }
            }
        }
Esempio n. 6
0
        private static void SetupENRoutes()
        {
            List <string> entityNamesAppDev = new List <string>(new string[]  {
                "NotificationEventType", "NotificationPublisher",
                "NotificationPublisherXEventType", "NotificationRegistrar", "NotificationSubscriber"
            });

            foreach (string entity in entityNamesAppDev)
            {
                var oApplicationRouteDataModel = new ApplicationRouteDataModel();

                oApplicationRouteDataModel.EntityName = entity;
                var route1 = string.Empty;

                var items = ApplicationRouteDataManager.GetEntityDetails(oApplicationRouteDataModel, Global.GetStartupProfile());

                foreach (var dataItem in items)
                {
                    if (dataItem.RouteName.Equals(dataItem.EntityName + "EntityRoute"))
                    {
                        if (route1 != string.Empty)
                        {
                            dataItem.RelativeRoute = string.Format(route1 + "{0}/{{action}}.aspx", dataItem.EntityName);
                        }
                        else
                        {
                            dataItem.RelativeRoute = string.Format("~/MS/EventNotification/{0}/{{action}}.aspx", dataItem.EntityName);
                        }
                    }
                    else if (dataItem.RouteName.Equals(dataItem.EntityName + "EntityRouteSuperKey"))
                    {
                        if (route1 != string.Empty)
                        {
                            dataItem.RelativeRoute = string.Format(route1 + "{0}/{{action}}.aspx", dataItem.EntityName);
                        }
                        else
                        {
                            dataItem.RelativeRoute = string.Format("~/MS/EventNotification/{0}/{{action}}.aspx", dataItem.EntityName);
                        }
                    }
                    else if (dataItem.RouteName.Equals(dataItem.EntityName + "EntityRouteSearch"))
                    {
                        if (route1 != string.Empty)
                        {
                            dataItem.RelativeRoute = string.Format(route1 + "{0}/Default.aspx", dataItem.EntityName);
                        }
                        else
                        {
                            dataItem.RelativeRoute = string.Format("~/MS/EventNotification/{0}/Default.aspx", dataItem.EntityName);
                        }
                    }

                    ApplicationRouteDataManager.Update(dataItem, Global.GetStartupProfile());
                }
            }
        }
Esempio n. 7
0
        private static void SetupEMRoutes()
        {
            List <string> entityNamesAuthAndAuth = new List <string>(new string[] {
                "ApplicationMonitoredEvent", "ApplicationMonitoredEventEmail",
                "ApplicationMonitoredEventProcessingState", "ApplicationMonitoredEventSource"
            });

            foreach (string entity in entityNamesAuthAndAuth)
            {
                var oApplicationRouteDataModel = new ApplicationRouteDataModel();

                oApplicationRouteDataModel.EntityName = entity;
                var route1 = string.Empty;

                var items = ApplicationRouteDataManager.GetEntityDetails(oApplicationRouteDataModel, Global.GetStartupProfile());

                foreach (var dataItem in items)
                {
                    if (dataItem.RouteName.Equals(dataItem.EntityName + "EntityRoute"))
                    {
                        if (route1 != string.Empty)
                        {
                            dataItem.RelativeRoute = string.Format(route1 + "{0}/{{action}}.aspx", dataItem.EntityName);
                        }
                        else
                        {
                            dataItem.RelativeRoute = string.Format("~/MS/EventMonitoring/{0}/{{action}}.aspx", dataItem.EntityName);
                        }
                    }
                    else if (dataItem.RouteName.Equals(dataItem.EntityName + "EntityRouteSuperKey"))
                    {
                        if (route1 != string.Empty)
                        {
                            dataItem.RelativeRoute = string.Format(route1 + "{0}/{{action}}.aspx", dataItem.EntityName);
                        }
                        else
                        {
                            dataItem.RelativeRoute = string.Format("~/MS/EventMonitoring/{0}/{{action}}.aspx", dataItem.EntityName);
                        }
                    }
                    else if (dataItem.RouteName.Equals(dataItem.EntityName + "EntityRouteSearch"))
                    {
                        if (route1 != string.Empty)
                        {
                            dataItem.RelativeRoute = string.Format(route1 + "{0}/Default.aspx", dataItem.EntityName);
                        }
                        else
                        {
                            dataItem.RelativeRoute = string.Format("~/MS/EventMonitoring/{0}/Default.aspx", dataItem.EntityName);
                        }
                    }

                    ApplicationRouteDataManager.Update(dataItem, Global.GetStartupProfile());
                }
            }
        }
Esempio n. 8
0
        private static void SetupAuthAndAuthRoutes()
        {
            List <string> entityNamesAuthAndAuth = new List <string>(new string[] {
                "ApplicationOperation", "ApplicationRole", "ApplicationUser",
                "ApplicationUserProfileImage", "ApplicationUserProfileImageMaster", "ApplicationUserTitle"
            });

            foreach (string entity in entityNamesAuthAndAuth)
            {
                var oApplicationRouteDataModel = new ApplicationRouteDataModel();

                oApplicationRouteDataModel.EntityName = entity;
                var route1 = string.Empty;

                var items = ApplicationRouteDataManager.GetEntityDetails(oApplicationRouteDataModel, Global.GetStartupProfile());

                foreach (var dataItem in items)
                {
                    if (dataItem.RouteName.Equals(dataItem.EntityName + "EntityRoute"))
                    {
                        if (route1 != string.Empty)
                        {
                            dataItem.RelativeRoute = string.Format(route1 + "{0}/{{action}}.aspx", dataItem.EntityName);
                        }
                        else
                        {
                            dataItem.RelativeRoute = string.Format("~/MA/AuthenticationAndAuthorization/{0}/{{action}}.aspx", dataItem.EntityName);
                        }
                    }
                    else if (dataItem.RouteName.Equals(dataItem.EntityName + "EntityRouteSuperKey"))
                    {
                        if (route1 != string.Empty)
                        {
                            dataItem.RelativeRoute = string.Format(route1 + "{0}/{{action}}.aspx", dataItem.EntityName);
                        }
                        else
                        {
                            dataItem.RelativeRoute = string.Format("~/MA/AuthenticationAndAuthorization/{0}/{{action}}.aspx", dataItem.EntityName);
                        }
                    }
                    else if (dataItem.RouteName.Equals(dataItem.EntityName + "EntityRouteSearch"))
                    {
                        if (route1 != string.Empty)
                        {
                            dataItem.RelativeRoute = string.Format(route1 + "{0}/Default.aspx", dataItem.EntityName);
                        }
                        else
                        {
                            dataItem.RelativeRoute = string.Format("~/MA/AuthenticationAndAuthorization/{0}/Default.aspx", dataItem.EntityName);
                        }
                    }

                    ApplicationRouteDataManager.Update(dataItem, Global.GetStartupProfile());
                }
            }
        }
Esempio n. 9
0
        private static void SetupApplicationManagementRoutes()
        {
            List <string> entityNamesAppMgmt = new List <string>(new string[] {
                "HelpPage", "HelpPageContext"
            });

            foreach (string entity in entityNamesAppMgmt)
            {
                var oApplicationRouteDataModel = new ApplicationRouteDataModel();

                oApplicationRouteDataModel.EntityName = entity;
                var route1 = string.Empty;

                var items = ApplicationRouteDataManager.GetEntityDetails(oApplicationRouteDataModel, Global.GetStartupProfile());

                foreach (var dataItem in items)
                {
                    if (dataItem.RouteName.Equals(dataItem.EntityName + "EntityRoute"))
                    {
                        if (route1 != string.Empty)
                        {
                            dataItem.RelativeRoute = string.Format(route1 + "{0}/{{action}}.aspx", dataItem.EntityName);
                        }
                        else
                        {
                            dataItem.RelativeRoute = string.Format("~/MA/ApplicationManagement/{0}/{{action}}.aspx", dataItem.EntityName);
                        }
                    }
                    else if (dataItem.RouteName.Equals(dataItem.EntityName + "EntityRouteSuperKey"))
                    {
                        if (route1 != string.Empty)
                        {
                            dataItem.RelativeRoute = string.Format(route1 + "{0}/{{action}}.aspx", dataItem.EntityName);
                        }
                        else
                        {
                            dataItem.RelativeRoute = string.Format("~/MA/ApplicationManagement/{0}/{{action}}.aspx", dataItem.EntityName);
                        }
                    }
                    else if (dataItem.RouteName.Equals(dataItem.EntityName + "EntityRouteSearch"))
                    {
                        if (route1 != string.Empty)
                        {
                            dataItem.RelativeRoute = string.Format(route1 + "{0}/Default.aspx", dataItem.EntityName);
                        }
                        else
                        {
                            dataItem.RelativeRoute = string.Format("~/MA/ApplicationManagement/{0}/Default.aspx", dataItem.EntityName);
                        }
                    }

                    ApplicationRouteDataManager.Update(dataItem, Global.GetStartupProfile());
                }
            }
        }
Esempio n. 10
0
        private static void SetupTasksAndWorkflowRoutes()
        {
            List <string> entityNamesAuthAndAuth = new List <string>(new string[] {
                "TaskEntity", "TaskEntityType", "TaskRun", "TaskSchedule", "TaskScheduleType"
            });

            foreach (string entity in entityNamesAuthAndAuth)
            {
                var oApplicationRouteDataModel = new ApplicationRouteDataModel();

                oApplicationRouteDataModel.EntityName = entity;
                var route1 = string.Empty;

                var items = ApplicationRouteDataManager.GetEntityDetails(oApplicationRouteDataModel, Global.GetStartupProfile());

                foreach (var dataItem in items)
                {
                    if (dataItem.RouteName.Equals(dataItem.EntityName + "EntityRoute"))
                    {
                        if (route1 != string.Empty)
                        {
                            dataItem.RelativeRoute = string.Format(route1 + "{0}/{{action}}.aspx", dataItem.EntityName);
                        }
                        else
                        {
                            dataItem.RelativeRoute = string.Format("~/MS/TasksAndWorkflow/{0}/{{action}}.aspx", dataItem.EntityName);
                        }
                    }
                    else if (dataItem.RouteName.Equals(dataItem.EntityName + "EntityRouteSuperKey"))
                    {
                        if (route1 != string.Empty)
                        {
                            dataItem.RelativeRoute = string.Format(route1 + "{0}/{{action}}.aspx", dataItem.EntityName);
                        }
                        else
                        {
                            dataItem.RelativeRoute = string.Format("~/MS/TasksAndWorkflow/{0}/{{action}}.aspx", dataItem.EntityName);
                        }
                    }
                    else if (dataItem.RouteName.Equals(dataItem.EntityName + "EntityRouteSearch"))
                    {
                        if (route1 != string.Empty)
                        {
                            dataItem.RelativeRoute = string.Format(route1 + "{0}/Default.aspx", dataItem.EntityName);
                        }
                        else
                        {
                            dataItem.RelativeRoute = string.Format("~/MS/TasksAndWorkflow/{0}/Default.aspx", dataItem.EntityName);
                        }
                    }

                    ApplicationRouteDataManager.Update(dataItem, Global.GetStartupProfile());
                }
            }
        }
Esempio n. 11
0
        private static void SetupConfigurationRoutes()
        {
            var entityNames = new List <string>(new string[]     {
                "Application", "ApplicationMode", "ApplicationModeXFieldConfigurationMode", "ApplicationRoute", "ApplicationRouteParameter",
                "DateRangeTitle", "FieldConfiguration", "FieldConfigurationMode", "FieldConfigurationAccessMode",
                "FieldConfigurationModeCategory", "FieldConfigurationModeCategoryXFCMode", "FieldConfigurationModeXApplicationRole",
                "FieldConfigurationModeXApplicationRole", "Language", "Menu", "MenuCategory", "MenuCategoryXMenu",
                "SystemForeignRelationship", "SystemForeignRelationshipDatabase", "SystemForeignRelationshipType",
                "TabChildStructure", "TabParentStructure", "Theme", "ThemeCategory", "ThemeDetail", "ThemeKey",
                "UserPreference", "UserPreferenceCategory", "UserPreferenceKey", "UserPreferenceDataType", "UserPreferenceSelectedItem"
            });

            foreach (string entity in entityNames)
            {
                var oApplicationRouteDataModel = new ApplicationRouteDataModel();

                oApplicationRouteDataModel.EntityName = entity;

                var items = ApplicationRouteDataManager.GetEntityDetails(oApplicationRouteDataModel, Global.GetStartupProfile());

                foreach (var dataItem in items)
                {
                    if (dataItem.RouteName.Equals(dataItem.EntityName + "EntityRoute"))
                    {
                        dataItem.RelativeRoute = string.Format("~/Configuration/{0}/{{action}}.aspx", dataItem.EntityName);
                    }
                    else if (dataItem.RouteName.Equals(dataItem.EntityName + "EntityRouteSuperKey"))
                    {
                        dataItem.RelativeRoute = string.Format("~/Configuration/{0}/{{action}}.aspx", dataItem.EntityName);
                    }
                    else if (dataItem.RouteName.Equals(dataItem.EntityName + "EntityRouteSearch"))
                    {
                        dataItem.RelativeRoute = string.Format("~/Configuration/{0}/Default.aspx", dataItem.EntityName);
                    }

                    ApplicationRouteDataManager.Update(dataItem, Global.GetStartupProfile());
                    //break;
                }
                //break;
            }
        }
Esempio n. 12
0
        private static void SetupQuestionRoutes()
        {
            List <string> entityNamesPMO = new List <string>(new string[]     {
                "Question", "QuestionCategory"
            });

            foreach (string entity in entityNamesPMO)
            {
                var oApplicationRouteDataModel = new ApplicationRouteDataModel();

                oApplicationRouteDataModel.EntityName = entity;
                var route1 = string.Empty;

                var items = ApplicationRouteDataManager.GetEntityDetails(oApplicationRouteDataModel, Global.GetStartupProfile());
                switch (entity)
                {
                case "QuestionCategory":
                    route1 = "~/BM/Question/";
                    break;
                }

                foreach (var dataItem in items)
                {
                    if (dataItem.RouteName.Equals(dataItem.EntityName + "EntityRoute"))
                    {
                        if (route1 != string.Empty)
                        {
                            dataItem.RelativeRoute = string.Format(route1 + "{0}/{{action}}.aspx", dataItem.EntityName);
                        }
                        else
                        {
                            dataItem.RelativeRoute = string.Format("~/BM/{0}/{{action}}.aspx", dataItem.EntityName);
                        }
                    }
                    else if (dataItem.RouteName.Equals(dataItem.EntityName + "EntityRouteSuperKey"))
                    {
                        if (route1 != string.Empty)
                        {
                            dataItem.RelativeRoute = string.Format(route1 + "{0}/{{action}}.aspx", dataItem.EntityName);
                        }
                        else
                        {
                            dataItem.RelativeRoute = string.Format("~/BM/{0}/{{action}}.aspx", dataItem.EntityName);
                        }
                    }
                    else if (dataItem.RouteName.Equals(dataItem.EntityName + "EntityRouteSearch"))
                    {
                        if (route1 != string.Empty)
                        {
                            dataItem.RelativeRoute = string.Format(route1 + "{0}/Default.aspx", dataItem.EntityName);
                        }
                        else
                        {
                            dataItem.RelativeRoute = string.Format("~/BM/{0}/Default.aspx", dataItem.EntityName);
                        }
                    }

                    ApplicationRouteDataManager.Update(dataItem, Global.GetStartupProfile());
                }
            }
        }
Esempio n. 13
0
        private static void SetupWBSRoutes()
        {
            var entityNamesWBS = new List <string>(new string[]      {});

            foreach (string entity in entityNamesWBS)
            {
                var oApplicationRouteDataModel = new ApplicationRouteDataModel();

                oApplicationRouteDataModel.EntityName = entity;
                var route1 = string.Empty;

                var items = ApplicationRouteDataManager.GetEntityDetails(oApplicationRouteDataModel, Global.GetStartupProfile());
                switch (entity)
                {
                case "DeliverableArtifactStatus":
                    route1 = "~/WBS/DeliverableArtifact/";
                    break;
                    //default:
                    //	route1 = "~/WBS/";
                    //	break;
                }

                foreach (var dataItem in items)
                {
                    if (dataItem.RouteName.Equals(dataItem.EntityName + "EntityRoute"))
                    {
                        if (route1 != string.Empty)
                        {
                            dataItem.RelativeRoute = string.Format(route1 + "{0}/{{action}}.aspx", dataItem.EntityName);
                        }
                        else
                        {
                            dataItem.RelativeRoute = string.Format("~/WBS/{0}/{{action}}.aspx", dataItem.EntityName);
                        }
                    }
                    else if (dataItem.RouteName.Equals(dataItem.EntityName + "EntityRouteSuperKey"))
                    {
                        if (route1 != string.Empty)
                        {
                            dataItem.RelativeRoute = string.Format(route1 + "{0}/{{action}}.aspx", dataItem.EntityName);
                        }
                        else
                        {
                            dataItem.RelativeRoute = string.Format("~/WBS/{0}/{{action}}.aspx", dataItem.EntityName);
                        }
                    }
                    else if (dataItem.RouteName.Equals(dataItem.EntityName + "EntityRouteSearch"))
                    {
                        if (route1 != string.Empty)
                        {
                            dataItem.RelativeRoute = string.Format(route1 + "{0}/Default.aspx", dataItem.EntityName);
                        }
                        else
                        {
                            dataItem.RelativeRoute = string.Format("~/WBS/{0}/Default.aspx", dataItem.EntityName);
                        }
                    }

                    ApplicationRouteDataManager.Update(dataItem, Global.GetStartupProfile());
                }
            }
        }
Esempio n. 14
0
        private static void SetupTCMRoutes()
        {
            List <string> entityNamesTCM = new List <string>(new string[] {
                "TestCase", "TestCaseOwner", "TestCasePriority", "TestCaseStatus",
                "TestRun", "TestSuite", "TestSuiteXTestCase",
                "TestSuiteXTestCaseArchive"
            });

            foreach (string entity in entityNamesTCM)
            {
                var oApplicationRouteDataModel = new ApplicationRouteDataModel();

                oApplicationRouteDataModel.EntityName = entity;
                var route1 = string.Empty;

                var items = ApplicationRouteDataManager.GetEntityDetails(oApplicationRouteDataModel, Global.GetStartupProfile());
                switch (entity)
                {
                case "TestCase":
                case "TestCaseOwner":
                case "TestCasePriority":
                case "TestCaseStatus":
                case "TestRun":
                case "TestSuite":
                case "TestSuiteXTestCase":
                case "TestSuiteXTestCaseArchive":
                    route1 = "~/BM/TCM/";
                    break;
                }

                foreach (var dataItem in items)
                {
                    if (dataItem.RouteName.Equals(dataItem.EntityName + "EntityRoute"))
                    {
                        if (route1 != string.Empty)
                        {
                            dataItem.RelativeRoute = string.Format(route1 + "{0}/{{action}}.aspx", dataItem.EntityName);
                        }
                        else
                        {
                            dataItem.RelativeRoute = string.Format("~/BM/TCM/{0}/{{action}}.aspx", dataItem.EntityName);
                        }
                    }
                    else if (dataItem.RouteName.Equals(dataItem.EntityName + "EntityRouteSuperKey"))
                    {
                        if (route1 != string.Empty)
                        {
                            dataItem.RelativeRoute = string.Format(route1 + "{0}/{{action}}.aspx", dataItem.EntityName);
                        }
                        else
                        {
                            dataItem.RelativeRoute = string.Format("~/BM/TCM/{0}/{{action}}.aspx", dataItem.EntityName);
                        }
                    }
                    else if (dataItem.RouteName.Equals(dataItem.EntityName + "EntityRouteSearch"))
                    {
                        if (route1 != string.Empty)
                        {
                            dataItem.RelativeRoute = string.Format(route1 + "{0}/Default.aspx", dataItem.EntityName);
                        }
                        else
                        {
                            dataItem.RelativeRoute = string.Format("~/BM/TCM/{0}/Default.aspx", dataItem.EntityName);
                        }
                    }

                    ApplicationRouteDataManager.Update(dataItem, Global.GetStartupProfile());
                }
            }
        }
Esempio n. 15
0
        private static void SetupPMORoutes()
        {
            List <string> entityNamesPMO = new List <string>(new string[]     {
                "Client", "ClientXProject", "Layer", "Milestone",
                "MilestoneFeatureState", "MilestoneXFeature", "MilestoneXFeatureArchive",
                "Project", "ProjectTimeLine",
                "ProjectPortfolio", "ProjectPortfolioGroup", "ProjectPortfolioGroupXProjectPortfolio"
            });

            foreach (string entity in entityNamesPMO)
            {
                var oApplicationRouteDataModel = new ApplicationRouteDataModel();

                oApplicationRouteDataModel.EntityName = entity;
                var route1 = string.Empty;

                var items = ApplicationRouteDataManager.GetEntityDetails(oApplicationRouteDataModel, Global.GetStartupProfile());
                switch (entity)
                {
                case "Client":
                case "ClientXProject":
                case "Layer":
                case "Milestone":
                    route1 = "~/BM/PMO/";
                    break;

                case "MilestoneFeatureState":
                case "MilestoneXFeature":
                case "MilestoneXFeatureArchive":
                    route1 = "~/BM/PMO/Milestone/";
                    break;

                case "Project":
                case "ProjectTimeLine":
                    route1 = "~/BM/PMO/ProjectManagement/";
                    break;

                case "ProjectPortfolio":
                case "ProjectPortfolioGroup":
                case "ProjectPortfolioGroupXProjectPortfolio":
                    route1 = "~/BM/PMO/ProjectManagement/Project/";
                    break;
                }

                foreach (var dataItem in items)
                {
                    if (dataItem.RouteName.Equals(dataItem.EntityName + "EntityRoute"))
                    {
                        if (route1 != string.Empty)
                        {
                            dataItem.RelativeRoute = string.Format(route1 + "{0}/{{action}}.aspx", dataItem.EntityName);
                        }
                        else
                        {
                            dataItem.RelativeRoute = string.Format("~/BM/PMO/{0}/{{action}}.aspx", dataItem.EntityName);
                        }
                    }
                    else if (dataItem.RouteName.Equals(dataItem.EntityName + "EntityRouteSuperKey"))
                    {
                        if (route1 != string.Empty)
                        {
                            dataItem.RelativeRoute = string.Format(route1 + "{0}/{{action}}.aspx", dataItem.EntityName);
                        }
                        else
                        {
                            dataItem.RelativeRoute = string.Format("~/BM/PMO/{0}/{{action}}.aspx", dataItem.EntityName);
                        }
                    }
                    else if (dataItem.RouteName.Equals(dataItem.EntityName + "EntityRouteSearch"))
                    {
                        if (route1 != string.Empty)
                        {
                            dataItem.RelativeRoute = string.Format(route1 + "{0}/Default.aspx", dataItem.EntityName);
                        }
                        else
                        {
                            dataItem.RelativeRoute = string.Format("~/BM/PMO/{0}/Default.aspx", dataItem.EntityName);
                        }
                    }

                    ApplicationRouteDataManager.Update(dataItem, Global.GetStartupProfile());
                }
            }
        }
Esempio n. 16
0
        private static void SetupRARoutes()
        {
            List <string> entityNamesRA = new List <string>(new string[]      {
                "Feature", "FeatureGroup", "FeatureGroupXFeature", "FeatureRule", "FeatureRuleCategory", "FeatureRuleStatus",
                "FeatureXFeatureRule", "Need", "NeedXFeature", "ProjectUseCaseStatus", "ProjectUseCaseStatusArchieve",
                "ProjectXNeed", "ProjectXUseCase", "UseCase", "UseCaseActor", "UseCaseActorXUseCase",
                "UseCasePackage", "UseCasePackageXUseCase", "UseCaseRelationship", "UseCaseStep",
                "UseCaseWorkFlowCategory", "UseCaseXUseCaseStep"
            });

            foreach (string entity in entityNamesRA)
            {
                var oApplicationRouteDataModel = new ApplicationRouteDataModel();

                oApplicationRouteDataModel.EntityName = entity;
                var route1 = string.Empty;

                var items = ApplicationRouteDataManager.GetEntityDetails(oApplicationRouteDataModel, Global.GetStartupProfile());
                switch (entity)
                {
                case "FeatureGroup":
                case "FeatureGroupXFeature":
                case "FeatureRule":
                case "FeatureRuleCategory":
                case "FeatureRuleStatus":
                case "FeatureXFeatureRule":
                    route1 = "~/BM/RequirementAnalysis/Feature/";
                    break;
                }

                foreach (var dataItem in items)
                {
                    if (dataItem.RouteName.Equals(dataItem.EntityName + "EntityRoute"))
                    {
                        if (route1 != string.Empty)
                        {
                            dataItem.RelativeRoute = string.Format(route1 + "{0}/{{action}}.aspx", dataItem.EntityName);
                        }
                        else
                        {
                            dataItem.RelativeRoute = string.Format("~/BM/RequirementAnalysis/{0}/{{action}}.aspx", dataItem.EntityName);
                        }
                    }
                    else if (dataItem.RouteName.Equals(dataItem.EntityName + "EntityRouteSuperKey"))
                    {
                        if (route1 != string.Empty)
                        {
                            dataItem.RelativeRoute = string.Format(route1 + "{0}/{{action}}.aspx", dataItem.EntityName);
                        }
                        else
                        {
                            dataItem.RelativeRoute = string.Format("~/BM/RequirementAnalysis/{0}/{{action}}.aspx", dataItem.EntityName);
                        }
                    }
                    else if (dataItem.RouteName.Equals(dataItem.EntityName + "EntityRouteSearch"))
                    {
                        if (route1 != string.Empty)
                        {
                            dataItem.RelativeRoute = string.Format(route1 + "{0}/Default.aspx", dataItem.EntityName);
                        }
                        else
                        {
                            dataItem.RelativeRoute = string.Format("~/BM/RequirementAnalysis/{0}/Default.aspx", dataItem.EntityName);
                        }
                    }

                    ApplicationRouteDataManager.Update(dataItem, Global.GetStartupProfile());
                }
            }
        }
Esempio n. 17
0
        private static void SetupWBSRoutes()
        {
            List <string> entityNamesWBS = new List <string>(new string[]     {
                "Activity", "ActivityState", "ActivityXDeliverableArtifact",
                "DeliverableArtifact", "DeliverableArtifactStatus", "FeatureXTask", "Task", "TaskAlgorithm", "TaskAlgorithmItem", "TaskFormulation",
                "TaskNote", "TaskPackage", "TaskPackageXOwnerXTask", "TaskPersonMapping", "TaskPriorityType",
                "TaskPriorityXApplicationUser", "TaskTiskRewardRankingPerson", "TaskRole", "TaskStatusType", "TaskType", "TaskXActivityInstance",
                "TaskXCompetency", "TaskXDeliverableArtifact"
            });

            foreach (string entity in entityNamesWBS)
            {
                var oApplicationRouteDataModel = new ApplicationRouteDataModel();

                oApplicationRouteDataModel.EntityName = entity;
                var route1 = string.Empty;

                var items = ApplicationRouteDataManager.GetEntityDetails(oApplicationRouteDataModel, Global.GetStartupProfile());
                switch (entity)
                {
                case "DeliverableArtifactStatus":
                    route1 = "~/BM/WBS/DeliverableArtifact/";
                    break;
                    //default:
                    //	route1 = "~/WBS/";
                    //	break;
                }

                foreach (var dataItem in items)
                {
                    if (dataItem.RouteName.Equals(dataItem.EntityName + "EntityRoute"))
                    {
                        if (route1 != string.Empty)
                        {
                            dataItem.RelativeRoute = string.Format(route1 + "{0}/{{action}}.aspx", dataItem.EntityName);
                        }
                        else
                        {
                            dataItem.RelativeRoute = string.Format("~/BM/WBS/{0}/{{action}}.aspx", dataItem.EntityName);
                        }
                    }
                    else if (dataItem.RouteName.Equals(dataItem.EntityName + "EntityRouteSuperKey"))
                    {
                        if (route1 != string.Empty)
                        {
                            dataItem.RelativeRoute = string.Format(route1 + "{0}/{{action}}.aspx", dataItem.EntityName);
                        }
                        else
                        {
                            dataItem.RelativeRoute = string.Format("~/BM/WBS/{0}/{{action}}.aspx", dataItem.EntityName);
                        }
                    }
                    else if (dataItem.RouteName.Equals(dataItem.EntityName + "EntityRouteSearch"))
                    {
                        if (route1 != string.Empty)
                        {
                            dataItem.RelativeRoute = string.Format(route1 + "{0}/Default.aspx", dataItem.EntityName);
                        }
                        else
                        {
                            dataItem.RelativeRoute = string.Format("~/BM/WBS/{0}/Default.aspx", dataItem.EntityName);
                        }
                    }

                    ApplicationRouteDataManager.Update(dataItem, Global.GetStartupProfile());
                }
            }
        }