예제 #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);
            }
        }
예제 #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);
            }
        }
예제 #3
0
        public static string GetValue <T>(string action)
        {
            var typeName = (typeof(T)).Name;

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

            default:
                return("");
            }
        }
예제 #4
0
        private static List <NameValueList> ListDataSource(string JsonSource, string ddlType, CommonListParameter parameter, string action)
        {
            List <NameValueList> myListData;

            if (JsonSource == "")
            {
                parameter.Operate = ddlType;
                //  string SP = SPandParameters.GetSPNameAndParameters("General", "DDList");
                //   myListData = CommonListExecute<NVListItem>.GeneralList(SP, parameter);
                myListData = GeneralList.CommonList <NameValueList>(_db, action, parameter); //  CommonExcute<CommonList>.ListOfT(SP, parameter);
            }
            else
            {
                myListData = GeneralList.JsonSourceList <NameValueList>(JsonSource, ddlType, action);
            }
            return(myListData);
        }
예제 #5
0
파일: CommonDb.cs 프로젝트: FrankMi101/ASM
        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);
            }
        }