예제 #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;
 }
예제 #2
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());
            }
        }
예제 #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));
        }