Пример #1
0
        // Token: 0x06000276 RID: 630 RVA: 0x00008900 File Offset: 0x00006B00
        public static string ResetSortPosts <T>(int sortid)
        {
            string   childSorts = SortBll.GetChildSorts(sortid);
            SqlParam sqlParam   = DbHelper.MakeAndWhere("sortid", WhereType.In, childSorts);
            int      num        = DbHelper.ExecuteCount <T>(new SqlParam[]
            {
                sqlParam
            });
            string sqlstring = string.Format("UPDATE [{0}WMS_SortInfo] SET [posts]={1} WHERE [id]={2}", DbConfigs.Prefix, num, sortid);

            return(DbHelper.ExecuteSql(sqlstring));
        }
Пример #2
0
        // Token: 0x06000277 RID: 631 RVA: 0x00008960 File Offset: 0x00006B60
        public static string ResetSortPosts <T>(List <SortInfo> sortlist)
        {
            string text = "";

            foreach (SortInfo sortInfo in sortlist)
            {
                string   childSorts = SortBll.GetChildSorts(sortInfo);
                SqlParam sqlParam   = DbHelper.MakeAndWhere("sortid", WhereType.In, childSorts);
                int      num        = DbHelper.ExecuteCount <T>(new SqlParam[]
                {
                    sqlParam
                });
                if (text != "")
                {
                    text += "|";
                }
                text += string.Format("UPDATE [{0}WMS_SortInfo] SET [posts]={1} WHERE [id]={2}", DbConfigs.Prefix, num, sortInfo.id);
            }
            return(DbHelper.ExecuteSql(text));
        }
Пример #3
0
        // Token: 0x06000272 RID: 626 RVA: 0x000086F0 File Offset: 0x000068F0
        public static string GetChildSorts(int sortid)
        {
            SortInfo sortInfo = SortBll.GetSortInfo(sortid);

            return(SortBll.GetChildSorts(sortInfo));
        }