protected unsafe void rpt_ItemDataBound(object sender, RepeaterItemEventArgs e) { SiteRoles roles; HtmlInputCheckBox box; Label label; int num; string str; string str2; string str3; bool flag; if (((e.Item.ItemType == 2) ? 0 : ((e.Item.ItemType == 3) == 0)) != null) { goto Label_018F; } roles = (SiteRoles)e.Item.DataItem; PageUtil.CommonFill(e.Item, roles); box = (HtmlInputCheckBox)e.Item.FindControl("cbSel"); if ((box == null) != null) { goto Label_0080; } box.Value = &roles.Id.ToString(); Label_0080: label = (Label)e.Item.FindControl("lbl_Id"); if ((label == null) != null) { goto Label_00D8; } num = (e.Item.ItemIndex + 1) + ((this.PaginationBar1.PageIndex - 1) * this.PaginationBar1.PageSize); label.Text = &num.ToString(); Label_00D8: label = (Label)e.Item.FindControl("lbl_Operation"); if ((label == null) != null) { goto Label_018E; } if (((this.nId > 0) == 0) != null) { goto Label_011E; } label.Text = " "; goto Label_018D; Label_011E: str = this.GetRefreshUrl(1, 1); str2 = str + "&act=mdy&id=" + &roles.Id.ToString(); str3 = str + "&act=del&id=" + &roles.Id.ToString(); label.Text = string.Format("<input type='button' value='修改' onclick=\"fnGo('{0}');return false;\" /> ", str2); label.Text = label.Text + string.Format("<input type='button' value='删除' onclick=\"fnDel('{0}');return false;\" /> ", str3); Label_018D :; Label_018E :; Label_018F: return; }
protected unsafe void rpt_ItemDataBound(object sender, RepeaterItemEventArgs e) { UserInfo info; HtmlInputCheckBox box; Label label; int num; UserRoles[] rolesArray; string str; UserRoles roles; string str2; string str3; string str4; bool flag; UserRoles[] rolesArray2; int num2; if (((e.Item.ItemType == 2) ? 0 : ((e.Item.ItemType == 3) == 0)) != null) { goto Label_0249; } info = (UserInfo)e.Item.DataItem; PageUtil.CommonFill(e.Item, info); box = (HtmlInputCheckBox)e.Item.FindControl("cbSel"); if ((box == null) != null) { goto Label_0080; } box.Value = &info.Id.ToString(); Label_0080: label = (Label)e.Item.FindControl("lbl_Id"); if ((label == null) != null) { goto Label_00D8; } num = (e.Item.ItemIndex + 1) + ((this.PaginationBar1.PageIndex - 1) * this.PaginationBar1.PageSize); label.Text = &num.ToString(); Label_00D8: label = (Label)e.Item.FindControl("lbl_DisplayRole"); if ((label == null) != null) { goto Label_014E; } rolesArray = UserRoles.GetUserRolesByUser(info.get_id()); str = ""; rolesArray2 = rolesArray; num2 = 0; goto Label_0136; Label_0117: roles = rolesArray2[num2]; str = str + roles.get_RoleName(); num2 += 1; Label_0136: if ((num2 < ((int)rolesArray2.Length)) != null) { goto Label_0117; } label.Text = str; Label_014E: label = (Label)e.Item.FindControl("lbl_Info"); if ((label == null) != null) { goto Label_0192; } label.Text = string.Format("<a href='#' onclick=\"fnChangePwd({0}, '{1}');return false;\">设置用户密码</a>", (int)info.get_id(), info.UserName); Label_0192: label = (Label)e.Item.FindControl("lbl_Operation"); if ((label == null) != null) { goto Label_0248; } if (((this.nId > 0) == 0) != null) { goto Label_01D8; } label.Text = " "; goto Label_0247; Label_01D8: str2 = this.GetRefreshUrl(1, 1); str3 = str2 + "&act=mdy&id=" + &info.Id.ToString(); str4 = str2 + "&act=del&id=" + &info.Id.ToString(); label.Text = string.Format("<input type='button' value='修改' onclick=\"fnGo('{0}');return false;\" /> ", str3); label.Text = label.Text + string.Format("<input type='button' value='删除' onclick=\"fnDel('{0}');return false;\" /> ", str4); Label_0247 :; Label_0248 :; Label_0249: return; }