public void Operation() { String userIds = ctx.PostIdList("choice"); if (strUtil.IsNullOrEmpty(userIds)) { redirect(Index); return; } String condition = "Id in (" + userIds + ") "; String cmd = ctx.Post("action"); String action = ""; if ("pick" == cmd) { action = "set Status=" + MemberStatus.Pick; } else if ("unpick" == cmd) { action = "set Status=" + MemberStatus.Normal; } else if ("approve" == cmd) { action = "set Status=" + MemberStatus.Normal; } else if ("delete" == cmd) { action = "set Status=" + MemberStatus.Deleted; } else if ("undelete" == cmd) { action = "set Status=" + MemberStatus.Normal; } else if ("deletetrue" == cmd) { User.deleteBatch(condition); redirect(Index); return; } else if ("category" == cmd) { int roleId = ctx.PostInt("categoryId"); action = "set RoleId=" + roleId; } User.updateBatch(action, condition); logUser(SiteLogString.AdminUser(cmd), userIds); content("ok"); }