protected int getMaxPage(SqlDataReader dr, long SID, long UID1) { Label_0017: if ((1 != 0) && (0 != 0)) { } int num = 1; //objComm.CommandText = "SELECT Max(PageNo) FROM PageTable WHERE UID=" + UID1.ToString() + " AND SID=" + SID.ToString(); dr = new Survey_SortOutPage_Layer().GetPageTable1(UID1.ToString(), SID.ToString()); int num2 = 2; Label_0002: switch (num2) { case 0: num = Convert.ToInt32(dr[0]); num2 = 1; goto Label_0002; case 1: break; case 2: if (!dr.Read()) { break; } num2 = 0; goto Label_0002; default: goto Label_0017; } dr.Close(); dr.Dispose(); return(num); }
protected string getItemAndPageList(SqlDataReader dr, long SID, long UID1) { string str; Label_002B: str = ""; int num = 0; //objComm.CommandText = "SELECT IID,ItemName,PageNo FROM ItemTable WHERE UID=" + UID1.ToString() + " AND SID=" + SID.ToString() + " AND ParentID=0 ORDER BY PageNo"; dr = new Survey_SortOutPage_Layer().GetItemTable(UID1.ToString(), SID.ToString()); int num2 = 7; Label_0002: switch (num2) { case 0: case 7: if ((1 != 0) && (0 != 0)) { } num2 = 6; goto Label_0002; case 1: dr.Close(); return(str); case 2: case 4: num2 = 5; goto Label_0002; case 3: dr.Close(); num = 0; //objComm.CommandText = "SELECT PID,PageNo FROM PageTable WHERE UID=" + UID1.ToString() + " AND SID=" + SID.ToString() + " ORDER BY PageNo"; dr = new Survey_SortOutPage_Layer().GetPageTable(UID1.ToString(), SID.ToString()); num2 = 2; goto Label_0002; case 5: if (dr.Read()) { object obj5 = str + "arrPage[" + num.ToString() + "] = new Array();\n"; object obj6 = string.Concat(new object[] { obj5, "arrPage[", num.ToString(), "][0] =", dr[0], ";\n" }); str = string.Concat(new object[] { obj6, "arrPage[", num.ToString(), "][1] =", dr[1], ";\n" }); num++; num2 = 4; } else { num2 = 1; } goto Label_0002; case 6: if (dr.Read()) { object obj2 = str + "arrItem[" + num.ToString() + "] = new Array();\n"; object obj3 = string.Concat(new object[] { obj2, "arrItem[", num.ToString(), "][0] =", dr[0], ";\n" }); object obj4 = string.Concat(new object[] { obj3, "arrItem[", num.ToString(), "][1] ='", dr[1], "';\n" }); str = string.Concat(new object[] { obj4, "arrItem[", num.ToString(), "][2] =", dr[2], ";\n" }); num++; num2 = 0; } else { num2 = 3; } goto Label_0002; } goto Label_002B; }