public ActionResult EditUser(string id, string OrgCode, string OrgName) { UserInfo u = null; if (!string.IsNullOrEmpty(id)) { u = sysManageService.GetUserInfo(id); if (u == null) { throw new ArgumentException("参数错误", "id"); } else { u.Password = ""; } } else { u = new UserInfo(); u.OrgCode = OrgCode; u.OrgName = OrgName; if (u.OrgCode == AppConfig.RootOrgCode) { u.OrgName = AppConfig.RootOrgName; } } return(View(u)); }