//启用 protected void btnEabled_Command(object sender, CommandEventArgs e) { if (e.CommandArgument == null) { return; } int id = Convert.ToInt32(e.CommandArgument); ISysAccountService userService = IoC.Resolve <ISysAccountService>(); userService.Enable(id); this.InitData(); JsAlert("启用成功!"); }