Example #1
0
 // Token: 0x0600003A RID: 58 RVA: 0x00003D28 File Offset: 0x00001F28
 protected override void OnInit(EventArgs e)
 {
     base.OnInit(e);
     if (this.sortid > 0)
     {
         this.sortinfo = SortBll.GetSortInfo(this.sortid);
     }
     this.parentid = this.sortinfo.parentid;
 }
Example #2
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));
        }
Example #3
0
        // Token: 0x06000274 RID: 628 RVA: 0x000087E4 File Offset: 0x000069E4
        public static void UpdateSortPosts(int sortid, int posts)
        {
            SortInfo sortInfo = SortBll.GetSortInfo(sortid);

            if (sortInfo.id != 0)
            {
                StringBuilder stringBuilder = new StringBuilder();
                stringBuilder.AppendFormat("UPDATE [{0}WMS_SortInfo] SET [posts]=[posts]+{1} WHERE [id] IN({2})|", DbConfigs.Prefix, posts, sortInfo.parentlist);
                stringBuilder.AppendFormat("UPDATE [{0}WMS_SortInfo] SET [posts]=0 WHERE [posts]<0", DbConfigs.Prefix);
                DbHelper.ExecuteSql(stringBuilder.ToString());
            }
        }
Example #4
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));
        }
Example #5
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));
        }