public void delItem(long SID1, long IID1)
        {
Label_0017:
            checkState.checkState state = new checkState.checkState();
            int num = 2;

Label_0002:
            switch (num)
            {
            case 0:
                break;

            case 1:
                base.Response.End();
                num = 0;
                goto Label_0002;

            case 2:
                if (state.getState(SID1, this.UID) < 1)
                {
                    break;
                }
                num = 1;
                goto Label_0002;

            default:
                goto Label_0017;
            }
            //command.CommandText = "UPDATE ItemTable SET Sort=Sort-1 WHERE SID=" + this.SID.ToString() + " AND UID=" + this.UID.ToString() + " AND PageNo=(SELECT TOP 1 PageNo FROM ItemTable WHERE SID=" + SID1.ToString() + " AND IID=" + IID1.ToString() + " AND UID=" + this.UID.ToString() + ") AND Sort>(SELECT TOP 1 Sort FROM ItemTable WHERE SID=" + SID1.ToString() + " AND IID=" + IID1.ToString() + " AND UID=" + this.UID.ToString() + ")";
            new Survey_ItemList_Layer().CreateItemText_UpdateItemTable(this.SID.ToString(), this.UID.ToString(), SID1.ToString(), IID1.ToString());
            //command.CommandText = " DELETE FROM ItemTable WHERE SID=" + SID1.ToString() + " AND (IID=" + IID1.ToString() + " OR ParentID=" + IID1.ToString() + ") AND UID=" + this.UID.ToString();
            new Survey_ItemList_Layer().DeleteItemTable(SID1.ToString(), IID1.ToString(), IID1.ToString(), this.UID.ToString());
            //command.CommandText = " DELETE FROM OptionTable WHERE SID=" + SID1.ToString() + " AND IID=" + IID1.ToString() + " AND UID=" + this.UID.ToString();
            new Survey_ItemList_Layer().DeleteOptionTable(SID1.ToString(), IID1.ToString(), this.UID.ToString());
            this.DataBd();
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            long  num;
            int   num2;
            long  num3;
            short num4;
            short num5;

            checkState.checkState state;
            SqlDataReader         reader = null; //И││шох
            int num6;

            goto Label_0033;
Label_0002:
            switch (num6)
            {
            case 0:
                //command.CommandText = "UPDATE PageTable SET PageNo=PageNo-1 WHERE SID=" + num.ToString() + " AND UID=" + num3.ToString() + " AND PageNo = " + Convert.ToString((int)(num4 + 1));
                new Survey_MovePage_Layer().UpdatePageTable(num.ToString(), num3.ToString(), Convert.ToString((int)(num4 + 1)));
                //command.CommandText = " UPDATE PageTable SET PageNo=PageNo+1 WHERE SID=" + num.ToString() + " AND UID=" + num3.ToString() + " AND PID=" + num2.ToString();
                new Survey_MovePage_Layer().UpdatePageTable1(num.ToString(), num3.ToString(), num2.ToString());
                //command.CommandText = " UPDATE ItemTable SET PageNo=0 WHERE SID=" + num.ToString() + " AND UID=" + num3.ToString() + " AND PageNo=" + Convert.ToString((int)(num4 + 1));
                new Survey_MovePage_Layer().UpdateItemTable(num.ToString(), num3.ToString(), Convert.ToString((int)(num4 + 1)));
                //command.CommandText = " UPDATE ItemTable SET PageNo=PageNo+1 WHERE SID=" + num.ToString() + " AND UID=" + num3.ToString() + " AND PageNo=" + num4.ToString();
                new Survey_MovePage_Layer().UpdateItemTable1(num.ToString(), num3.ToString(), num4.ToString());
                //command.CommandText = " UPDATE ItemTable SET PageNo=" + num4.ToString() + " WHERE SID=" + num.ToString() + " AND UID=" + num3.ToString() + " AND PageNo=0";
                new Survey_MovePage_Layer().UpdateItemTable2(num4.ToString(), num.ToString(), num3.ToString());

                num6 = 2;
                goto Label_0002;

            case 1:
                base.Response.End();
                num6 = 9;
                goto Label_0002;

            case 2:
            case 5:
                this.sClientJs = "PID=" + num2.ToString() + "\nd=" + num5.ToString();
                return;

            case 3:
                if (state.getState(num, num3) < 1)
                {
                    goto Label_04F2;
                }
                num6 = 1;
                goto Label_0002;

            case 4:
                if (!reader.Read())
                {
                    goto Label_05A3;
                }
                num6 = 6;
                goto Label_0002;

            case 6:
                num4 = Convert.ToInt16(reader[0]);
                num6 = 8;
                goto Label_0002;

            case 7:
                if (num5 != 1)
                {
                    //command.CommandText = "UPDATE PageTable SET PageNo=PageNo+1 WHERE SID=" + num.ToString() + " AND UID=" + num3.ToString() + " AND PageNo = " + Convert.ToString((int)(num4 - 1));
                    new Survey_MovePage_Layer().UpdatePageTable2(num.ToString(), num3.ToString(), Convert.ToString((int)(num4 - 1)));
                    //command.CommandText = " UPDATE PageTable SET PageNo=PageNo-1 WHERE SID=" + num.ToString() + " AND UID=" + num3.ToString() + " AND PID=" + num2.ToString();
                    new Survey_MovePage_Layer().UpdatePageTable3(num.ToString(), num3.ToString(), num2.ToString());
                    //command.CommandText = " UPDATE ItemTable SET PageNo=0 WHERE SID=" + num.ToString() + " AND UID=" + num3.ToString() + " AND PageNo=" + Convert.ToString((int)(num4 - 1));
                    new Survey_MovePage_Layer().UpdateItemTable(num.ToString(), num3.ToString(), Convert.ToString((int)(num4 - 1)));
                    //command.CommandText = " UPDATE ItemTable SET PageNo=PageNo-1 WHERE SID=" + num.ToString() + " AND UID=" + num3.ToString() + " AND PageNo=" + num4.ToString();
                    new Survey_MovePage_Layer().UpdateItemTable3(num.ToString(), num3.ToString(), num4.ToString());
                    //command.CommandText = " UPDATE ItemTable SET PageNo=" + num4.ToString() + " WHERE SID=" + num.ToString() + " AND UID=" + num3.ToString() + " AND PageNo=0";
                    new Survey_MovePage_Layer().UpdateItemTable2(num4.ToString(), num.ToString(), num3.ToString());
                    num6 = 5;
                }
                else
                {
                    num6 = 0;
                }
                goto Label_0002;

            case 8:
                goto Label_05A3;

            case 9:
                goto Label_04F2;
            }
Label_0033:
            num  = 0;
            num2 = 0;
            num3 = 0;
            num3 = ConvertHelper.ConvertLong(this.Session["UserID"]);
            num4 = 0;
            num5 = 0;
            num  = Convert.ToInt64(base.Request.QueryString["SID"]);
            num2 = Convert.ToInt32(base.Request.QueryString["PID"]);

            state = new checkState.checkState();
            num6  = 3;
            goto Label_0002;
Label_04F2:
            num5 = Convert.ToInt16(base.Request.QueryString["d"]);
            //command.CommandText = "SELECT TOP 1 PageNo FROM PageTable WHERE SID=" + num.ToString() + " AND UID=" + num3.ToString() + " AND PID=" + num2.ToString();
            reader = new Survey_MovePage_Layer().GetPageTable(num.ToString(), num3.ToString(), num2.ToString());
            num6   = 4;
            goto Label_0002;
Label_05A3:
            reader.Close();
            num6 = 7;
            goto Label_0002;
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            string str;
            long   num;
            long   num2;
            long   num3;
            short  num4;
            short  num5;

            checkState.checkState state;
            SqlDataReader         reader = null; //И││шох
            int num6;

            goto Label_0023;
Label_0002:
            switch (num6)
            {
            case 0:
                goto Label_0142;

            case 1:
                reader.Close();
                //command.CommandText = "UPDATE ItemTable SET Sort=Sort-1 WHERE Sort>" + num5.ToString() + " AND UID=" + num3.ToString() + " AND SID=" + num.ToString() + " AND PageNo=" + num4.ToString();
                new Survey_DelItem_Layer().UpdateItemTable(num5.ToString(), num3.ToString(), num.ToString(), num4.ToString());
                //command.CommandText = " DELETE FROM ItemTable WHERE (IID=" + num2.ToString() + " AND  UID=" + num3.ToString() + " AND SID=" + num.ToString() + ") OR (ParentID=" + num2.ToString() + " AND UID=" + num3.ToString() + " AND SID=" + num.ToString() + ")";
                new Survey_DelItem_Layer().DeleteItemTable(num2.ToString(), num3.ToString(), num.ToString(), num2.ToString());
                //command.CommandText = " DELETE FROM OptionTable WHERE IID=" + num2.ToString() + " AND  UID=" + num3.ToString() + " AND SID=" + num.ToString();
                new Survey_DelItem_Layer().DeleteOptionTable(num2.ToString(), num3.ToString(), num.ToString());
                return;

            case 2:
                if (!reader.Read())
                {
                    return;
                }
                num6 = 3;
                goto Label_0002;

            case 3:
                num4 = Convert.ToInt16(reader[0]);
                num5 = Convert.ToInt16(reader[1]);
                num6 = 1;
                goto Label_0002;

            case 4:
                base.Response.End();
                num6 = 0;
                goto Label_0002;

            case 5:
                if (state.getState(num, num3) < 1)
                {
                    goto Label_0142;
                }
                if ((1 != 0) && (0 != 0))
                {
                }
                num6 = 4;
                goto Label_0002;
            }
Label_0023:
            num            = 0;
            num2           = 0;
            num3           = 0;
            num3           = ConvertHelper.ConvertLong(this.Session["UserID"]);
            num4           = 0;
            num5           = 0;
            num            = Convert.ToInt64(base.Request.QueryString["SID"]);
            num2           = Convert.ToInt64(base.Request.QueryString["IID"]);
            this.sClientJs = "SID=" + num.ToString() + ";\n";
            state          = new checkState.checkState();
            num6           = 5;
            goto Label_0002;
Label_0142:
            //command.CommandText = "SELECT TOP 1 PageNo,Sort FROM ItemTable WHERE SID=" + num.ToString() + " AND UID=" + num3.ToString() + " AND IID=" + num2.ToString();
            reader = new Survey_DelItem_Layer().GetItemTable(num.ToString(), num3.ToString(), num2.ToString());
            num6   = 2;
            goto Label_0002;
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            string str;
            int    num;
            long   num2;
            long   num3;
            int    num4;

            checkState.checkState state;
            SqlDataReader         reader = null; //И││шох
            bool flag = false;                   //И││шох
            int  num5;

            goto Label_0037;
Label_0002:
            switch (num5)
            {
            case 0:
                goto Label_0157;

            case 1:
                if (!flag)
                {
                    return;
                }
                num5 = 10;
                goto Label_0002;

            case 2:
                if (state.getState(num3, num2) < 1)
                {
                    goto Label_0157;
                }
                num5 = 7;
                goto Label_0002;

            case 3:
                goto Label_0139;

            case 4:
                if ((1 == 0) || (0 == 0))
                {
                    goto Label_0344;
                }
                goto Label_0139;

            case 5:
                if (!reader.Read())
                {
                    goto Label_0344;
                }
                num5 = 6;
                goto Label_0002;

            case 6:
                num4 = Convert.ToInt16(reader[0]);
                num5 = 9;
                goto Label_0002;

            case 7:
                base.Response.End();
                num5 = 0;
                goto Label_0002;

            case 8:
                return;

            case 9:
                if (num4 != 1)
                {
                    flag = true;
                    num5 = 4;
                }
                else
                {
                    num5 = 3;
                }
                goto Label_0002;

            case 10:
                //command.CommandText = "UPDATE PageTable SET PageNo=PageNo-1 WHERE PageNo>" + num4.ToString() + " AND UID=" + num2.ToString() + " AND SID=" + num3.ToString();
                new Survey_DelPage_Layer().UpdatePageTable(num4.ToString(), num2.ToString(), num3.ToString());
                //command.CommandText = " DELETE FROM PageTable WHERE SID=" + num3.ToString() + " AND UID=" + num2.ToString() + " AND PID=" + num.ToString();
                new Survey_DelPage_Layer().DeletePageTable(num3.ToString(), num2.ToString(), num.ToString());
                //command.CommandText = "UPDATE ItemTable SET PageNo=PageNo-1 WHERE PageNo>=" + num4.ToString() + " AND SID=" + num3.ToString() + " AND UID=" + num2.ToString();
                new Survey_DelPage_Layer().UpdateItemTable(num4.ToString(), num2.ToString(), num3.ToString());
                num5 = 8;
                goto Label_0002;
            }
Label_0037:
            num  = 0;
            num2 = 0;
            num3 = 0;
            //new loginClass().checkLogin(out num2, "0");
            num2           = ConvertHelper.ConvertLong(this.Session["UserID"]);
            num4           = 0;
            num3           = Convert.ToInt64(base.Request.QueryString["SID"]);
            num            = Convert.ToInt32(base.Request.QueryString["PID"]);
            state          = new checkState.checkState();
            this.sClientJs = "SID=" + num3.ToString() + ";\n";
            num5           = 2;
            goto Label_0002;
Label_0139:
            this.sClientJs = this.sClientJs + "PageNo=1;\n";
            return;

Label_0157:
            //command.CommandText = "SELECT TOP 1 PageNo FROM PageTable WHERE SID=" + num3.ToString() + " AND UID=" + num2.ToString() + " AND PID=" + num.ToString();
            reader = new Survey_DelPage_Layer().GetPageTable(num3.ToString(), num2.ToString(), num.ToString());
            flag   = false;
            num5   = 5;
            goto Label_0002;
Label_0344:
            reader.Close();
            num5 = 1;
            goto Label_0002;
        }
Example #5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string str;
            long   num;
            long   num2;
            long   num3;
            short  num4;
            short  num5;
            short  num6;

            checkState.checkState state;
            SqlDataReader         reader = null; //И││шох
            int num7;

            goto Label_0033;
Label_0002:
            switch (num7)
            {
            case 0:
                if (state.getState(num, num3) < 1)
                {
                    goto Label_0139;
                }
                num7 = 6;
                goto Label_0002;

            case 1:
            case 8:
                this.sClientJs = "IID=" + num2.ToString() + "\nd=" + num6.ToString();
                return;

            case 2:
                reader.Close();
                num7 = 9;
                goto Label_0002;

            case 3:
                num5 = Convert.ToInt16(reader[0]);
                num4 = Convert.ToInt16(reader[1]);
                num7 = 2;
                goto Label_0002;

            case 4:
                goto Label_0139;

            case 5:
                if (!reader.Read())
                {
                    return;
                }
                num7 = 3;
                goto Label_0002;

            case 6:
                base.Response.End();
                num7 = 4;
                goto Label_0002;

            case 7:
                //command.CommandText = "UPDATE ItemTable SET Sort=Sort-1 WHERE PageNo=" + num5.ToString() + " AND UID=" + num3.ToString() + " AND SID=" + num.ToString() + " AND Sort=" + Convert.ToString((int)(num4 + 1));
                new Survey_MoveItem_Layer().UpdateItemTable(num5.ToString(), num3.ToString(), num.ToString(), Convert.ToString((int)(num4 + 1)));
                //command.CommandText = " UPDATE ItemTable SET Sort=Sort+1 WHERE  UID=" + num3.ToString() + " AND SID=" + num.ToString() + " AND IID=" + num2.ToString();
                new Survey_MoveItem_Layer().UpdateItemTable2(num3.ToString(), num.ToString(), num2.ToString());
                num7 = 8;
                goto Label_0002;

            case 9:
                if (num6 != 1)
                {
                    //command.CommandText = "UPDATE ItemTable SET Sort=Sort+1 WHERE PageNo=" + num5.ToString() + " AND UID=" + num3.ToString() + " AND SID=" + num.ToString() + " AND Sort=" + Convert.ToString((int)(num4 - 1));
                    new Survey_MoveItem_Layer().UpdateItemTable1(num5.ToString(), num3.ToString(), num.ToString(), Convert.ToString((int)(num4 - 1)));
                    //command.CommandText = " UPDATE ItemTable SET Sort=Sort-1 WHERE  UID=" + num3.ToString() + " AND SID=" + num.ToString() + " AND IID=" + num2.ToString();
                    new Survey_MoveItem_Layer().UpdateItemTable3(num3.ToString(), num.ToString(), num2.ToString());
                    num7 = 1;
                }
                else
                {
                    num7 = 7;
                }
                goto Label_0002;
            }
Label_0033:
            num   = 0;
            num2  = 0;
            num3  = 0;
            num3  = ConvertHelper.ConvertLong(this.Session["UserID"]);
            num4  = 0;
            num5  = 0;
            num6  = 0;
            num   = Convert.ToInt64(base.Request.QueryString["SID"]);
            num2  = Convert.ToInt64(base.Request.QueryString["IID"]);
            state = new checkState.checkState();
            num7  = 0;
            goto Label_0002;
Label_0139:
            num6 = Convert.ToInt16(base.Request.QueryString["d"]);
            //command.CommandText = "SELECT TOP 1 PageNo,Sort FROM ItemTable WHERE SID=" + num.ToString() + " AND UID=" + num3.ToString() + " AND IID=" + num2.ToString();
            reader = new Survey_MoveItem_Layer().GetItemTable(num.ToString(), num3.ToString(), num2.ToString());
            num7   = 5;
            goto Label_0002;
        }