protected string getItemXML(long LIID, long UID) { Label_0017: string str = ""; //objComm.CommandText = "SELECT TOP 1 ItemFrame FROM ItemLib WHERE (LIID=" + LIID.ToString() + " AND UID=" + UID.ToString() + ") OR (LIID=" + LIID.ToString() + " AND Active>=1)"; SqlDataReader reader = new Survey_ItemLib_Layer().GetItemLib1(UID.ToString(), LIID.ToString()); int num = 2; Label_0002: switch (num) { case 0: str = reader["ItemFrame"].ToString(); num = 1; goto Label_0002; case 1: break; case 2: if (!reader.Read()) { break; } num = 0; goto Label_0002; default: goto Label_0017; } reader.Close(); reader.Dispose(); return(str); }
protected void Page_Load(object sender, EventArgs e) { long num; Label_001F: num = 0; num = ConvertHelper.ConvertLong(this.Session["UserID"]); Convert.ToInt32(base.Request.QueryString["SID"]); //this.SqlDataSource1.SelectCommand = "SELECT LIID,IID,ItemName,ItemType,Active FROM ItemLib WHERE UID=" + num.ToString() + " OR Active=1"; DataTable dtItemLib = new Survey_ItemLib_Layer().GetItemLib(num.ToString()); GridView1.DataSource = dtItemLib; GridView1.DataBind(); string str = Convert.ToString(base.Request.QueryString["A"]); long num2 = Convert.ToInt64(base.Request.QueryString["LIID"]); int num3 = 3; Label_0002: switch (num3) { case 0: num3 = 1; goto Label_0002; case 1: if (num2 <= 0) { break; } num3 = 2; goto Label_0002; case 2: { //command.CommandText = "DELETE FROM ItemLib WHERE (UID=" + num.ToString() + " AND LIID=" + num2.ToString() + ")"; new Survey_ItemLib_Layer().DelItemLib(num.ToString(), num2.ToString()); num3 = 4; goto Label_0002; } case 3: if (!(str == "Del")) { break; } num3 = 0; goto Label_0002; case 4: break; default: goto Label_001F; } }