public ActionResult EditSurvey(int id, string mode = "edit") { SurveyInfo model = _cdeSurveyManager.GetCdeSurveyInfoById(id); if (model == null || model.TenantId != CurrentUser.TenantId) { model = new SurveyInfo(); } _cdeSurveyManager.LoadSendUsers(model); ViewBag.config = _configManager.GetConfig(CurrentTenant.TenantId); ViewBag.mode = string.IsNullOrEmpty(mode) ? "edit" : mode; return(View(model)); }
//设置我的评估中参与人员 public ActionResult SetParticipate(int id) { SurveyInfo surveyInfo = _surveyManager.GetCdeSurveyInfoById(id); Cde_Configuration config = _configManager.GetConfig(CurrentTenant.TenantId); ViewBag.surveyConfig = config; int userSurveyId = _userSurveyManager.GetUserSurveyId(CurrentUser.UserId, id); ViewBag.userSurvey = _userSurveyManager.GetUserSurvey(userSurveyId); List <Cde_SurveySendUsers> list = _userSendSurveyManager.GetSurveySendUsers(userSurveyId); ViewBag.userSurveyId = userSurveyId; ViewBag.plist = list; ViewBag.leader = _userManager.GetUserById(CurrentUser.Leader); return(View(surveyInfo)); }