Ejemplo n.º 1
0
        private static string GetSPbyClassAndAction(string className, string action)
        {
            try
            {
                switch (className)
                {
                case "GeneralList":
                    return(GeneralList.GetSP(action));

                case "GeneralValue":
                    return(GeneralValue.GetSP(action));

                case "AppsPageHelp":
                    return(AppsPageHelp.GetSP(action));

                case "SecurityManage":
                    return(AppsSecurityManagement.GetSP(action));

                case "SISInfo":
                    return(SISInfoBase.GetSP(action));

                default:
                    return(AppsPageHelp.GetSP(action));
                }
            }
            catch (Exception ex)
            {
                string em = ex.StackTrace;
                return(className + " " + action);
            }
        }
Ejemplo n.º 2
0
        private static string GetSPbyClassAndAction(string className, string action)
        {
            try
            {
                switch (className)
                {
                case "GeneralList":
                    return(GeneralList.GetSP(action));

                case "GeneralValue":
                    return(GeneralValue.GetSP(action));

                case "CommentsBank":
                    return(CommentsBank.GetSP(action));

                case "AppsPageHelp":
                    return(AppsPageHelp.GetSP(action));

                case "SecurityManage":
                    return(AppsSecurityManagement.GetSP(action));

                case "SISInfo":
                    return(SISInfoBase.GetSP(action));

                default:
                    return(AppsPageHelp.GetSP(action));
                }
            }
            catch
            {
                return(className + " " + action);
            }
        }
Ejemplo n.º 3
0
        public static string GetValue <T>(string action)
        {
            var typeName = (typeof(T)).Name;

            switch (typeName)
            {
            case "GeneralList":
                return(GeneralList.GetSP(action));

            default:
                return("");
            }
        }
Ejemplo n.º 4
0
        private static string GetSPbyClassAndAction(string className, string action)
        {
            try
            {
                switch (className)
                {
                case "GeneralList":
                    return(GeneralList.GetSP(action));

                case "CommentsBank":
                    return(CommentsBank.GetSP(action));

                case "AppsPageHelp":
                    return(AppsPageHelp.GetSP(action));

                default:
                    return(AppsPageHelp.GetSP(action));
                }
            }
            catch (Exception ex)
            {
                return(className + " " + action);
            }
        }