public ActionResult UserInfo(int sysNo = 0, int companysysno = 0) { SystemUser user = new SystemUser(); if (companysysno == 0) { throw new BusinessException("请传入公司编号"); } if (sysNo < 1) { user.CommonStatus = CommonStatus.Actived; } else { var userr = user_service.LoadSystemUserBySysNo(sysNo, ConstValue.ApplicationID); if (CurrUser.MasterSysNo.GetValueOrDefault() > 0) { companysysno = CurrUser.MasterSysNo.Value; } if (userr == null || (!userr.MasterSysNo.HasValue) || (userr.MasterSysNo.Value != companysysno)) { throw new BusinessException("用户不存在"); } user = userr; } user.MasterSysNo = companysysno; return(PartialView("~/Views/Company/_UserInfo.cshtml", user)); }