protected void btn_out_Click(object sender, System.EventArgs e) { BBS_BoardUserMemberBLL userMemberbll = new BBS_BoardUserMemberBLL(); BBS_BoardBLL boardbll = new BBS_BoardBLL((int)ViewState["BoardID"]); //便历listbox得到选中的的人员id if (boardbll.Model.IsPublic == "2") { for (int i = 0; i < lbBoardMasterList.Items.Count; i++) { if (lbBoardMasterList.Items[i].Selected) { userMemberbll.UpdateRoleByUserNameAndBoard(lbBoardMasterList.Items[i].Value, (int)ViewState["BoardID"], 4); } } BindView(); } else { for (int i = 0; i < lbBoardMasterList.Items.Count; i++) { if (lbBoardMasterList.Items[i].Selected) { userMemberbll.DeleteByUserNameAndBoard(lbBoardMasterList.Items[i].Value, (int)ViewState["BoardID"]); } } BindPublic(); } }
protected void btn_in_Click(object sender, System.EventArgs e) { BBS_BoardUserMemberBLL userMemberbll = new BBS_BoardUserMemberBLL(); BBS_BoardBLL boardbll = new BBS_BoardBLL((int)ViewState["BoardID"]); //便历listbox得到选中的带成为板主的人员id if (boardbll.Model.IsPublic == "2") { for (int i = 0; i < lbRemainStaff.Items.Count; i++) { if (lbRemainStaff.Items[i].Selected) { userMemberbll.UpdateRoleByUserNameAndBoard(lbRemainStaff.Items[i].Value, (int)ViewState["BoardID"], 1); } } BindView(); } else { for (int i = 0; i < lbRemainStaff.Items.Count; i++) { if (lbRemainStaff.Items[i].Selected) { userMemberbll.Model.Board = (int)ViewState["BoardID"]; userMemberbll.Model.UserName = lbRemainStaff.Items[i].Value; userMemberbll.Model.Role = 1; userMemberbll.Add(); } } BindPublic(); } }
protected void btn_in_Click(object sender, System.EventArgs e) { BBS_BoardUserMemberBLL userMemberbll = new BBS_BoardUserMemberBLL(); BBS_BoardBLL boardbll = new BBS_BoardBLL((int)ViewState["BoardID"]); //便历listbox得到选中的带成为板主的人员id if (boardbll.Model.IsPublic == "2") { for (int i = 0; i < lbRemainStaff.Items.Count; i++) { if (lbRemainStaff.Items[i].Selected) { userMemberbll.UpdateRoleByUserNameAndBoard(lbRemainStaff.Items[i].Value, (int)ViewState["BoardID"], 1); } } BindView(); } else { for (int i = 0; i < lbRemainStaff.Items.Count; i++) { if (lbRemainStaff.Items[i].Selected) { userMemberbll.Model.Board = (int)ViewState["BoardID"]; userMemberbll.Model.UserName = lbRemainStaff.Items[i].Value; userMemberbll.Model.Role = 1; userMemberbll.Add(); } } BindPublic(); } }
protected void btn_out_Click(object sender, System.EventArgs e) { BBS_BoardUserMemberBLL userMemberbll = new BBS_BoardUserMemberBLL(); BBS_BoardBLL boardbll = new BBS_BoardBLL((int)ViewState["BoardID"]); //便历listbox得到选中的的人员id if (boardbll.Model.IsPublic == "2") { for (int i = 0; i < lbBoardMasterList.Items.Count; i++) { if (lbBoardMasterList.Items[i].Selected) { userMemberbll.UpdateRoleByUserNameAndBoard(lbBoardMasterList.Items[i].Value, (int)ViewState["BoardID"], 4); } } BindView(); } else { for (int i = 0; i < lbBoardMasterList.Items.Count; i++) { if (lbBoardMasterList.Items[i].Selected) { userMemberbll.DeleteByUserNameAndBoard(lbBoardMasterList.Items[i].Value, (int)ViewState["BoardID"]); } } BindPublic(); } }
protected void btn_PublicOut_Click(object sender, EventArgs e) { BBS_BoardUserMemberBLL userMemberbll = new BBS_BoardUserMemberBLL(); //便历listbox得到选中的发布者id for (int i = 0; i < lbPublicStaff.Items.Count; i++) { if (lbPublicStaff.Items[i].Selected) { userMemberbll.UpdateRoleByUserNameAndBoard(lbPublicStaff.Items[i].Value, (int)ViewState["BoardID"], 3); } } BindView(); }
protected void btn_out_Click(object sender, System.EventArgs e) { BBS_BoardUserMemberBLL userMemberbll = new BBS_BoardUserMemberBLL(); //便历listbox得到选中的讨论者id for (int i = 0; i < lbDiscussStaff.Items.Count; i++) { if (lbDiscussStaff.Items[i].Selected) { userMemberbll.UpdateRoleByUserNameAndBoard(lbDiscussStaff.Items[i].Value, (int)ViewState["BoardID"], 4); } } BindView(); }