示例#1
0
        public static List <Dictionary <string, object> > QueryFieldsByEntityId(Guid entityId)
        {
            var records = SharedService.ExecuteGetSqlStoredProcedure("[eduq].[Field_queryfieldsbyentityid]",
                                                                     new List <SqlParameter> {
                new SqlParameter("@entityId", entityId)
            });

            return(records);
        }
示例#2
0
        public static Dictionary <string, object> QueryEntityById(Guid entityId)
        {
            var records = SharedService.ExecuteGetSqlStoredProcedure("[eduq].[Entity_queryentitybyentityid]",
                                                                     new List <SqlParameter> {
                new SqlParameter("@entityId", entityId)
            });

            if (records != null && records.Count == 1)
            {
                return(records[0]);
            }
            return(null);
        }
示例#3
0
        public static Dictionary <string, object> QueryAppUserById(Guid appUserId)
        {
            var records = SharedService.ExecuteGetSqlStoredProcedure("[eduq].[Appuser_querybyid]",
                                                                     new List <SqlParameter> {
                new SqlParameter("@appUserId", appUserId)
            });

            if (records != null && records.Count == 1)
            {
                return(records[0]);
            }
            return(null);
        }
示例#4
0
        public static Dictionary <string, object> QueryFieldById(Guid fieldId)
        {
            var records = SharedService.ExecuteGetSqlStoredProcedure("[eduq].[Field_queryfieldbyfieldid]",
                                                                     new List <SqlParameter> {
                new SqlParameter("@fieldId", fieldId)
            });

            if (records != null && records.Count == 1)
            {
                return(records[0]);
            }
            return(null);
        }
示例#5
0
        public static Dictionary <string, object> QueryFieldTypeByName(string fieldTypeName)
        {
            var records = SharedService.ExecuteGetSqlStoredProcedure("[eduq].[Fieldtype_querybyname]",
                                                                     new List <SqlParameter> {
                new SqlParameter("@fieldTypeName", fieldTypeName)
            });

            if (records != null && records.Count == 1)
            {
                return(records[0]);
            }
            return(null);
        }
示例#6
0
        public static List <Dictionary <string, object> > QuerySideMenuItems()
        {
            var records = SharedService.ExecuteGetSqlStoredProcedure("[eduq].[Sidemenuitem_queryall]", null);

            return(records);
        }
示例#7
0
        public static List <Dictionary <string, object> > QueryEntities()
        {
            var records = SharedService.ExecuteGetSqlStoredProcedure("[eduq].[Entity_queryall]", null);

            return(records);
        }