protected void save() { bool Result = false; string dotype = Utils.GetQueryStringValue("dotype"); string RoleId = Utils.GetQueryStringValue("id"); EyouSoft.Model.SSOStructure.MGuanLiYuanInfo model = new EyouSoft.Model.SSOStructure.MGuanLiYuanInfo(); Eyousoft_yhq.BLL.User BComRoleBll = new Eyousoft_yhq.BLL.User(); int length = Utils.GetFormValues("chk_id").Length; for (int i = 0; i < length; i++) { model.Privs += Utils.GetFormValues("chk_id")[i] + ","; } if (!string.IsNullOrEmpty(model.Privs)) { model.Privs = model.Privs.Trim(','); } model.UserId = RoleId; Result = BComRoleBll.UpdatePrivs(model); if (Result) { Response.Write(UtilsCommons.AjaxReturnJson("1", "授权成功!")); } else { Response.Write(UtilsCommons.AjaxReturnJson("0", "授权失败!")); } Response.End(); }