/// <summary>
 /// 新增修改查看
 /// </summary>
 /// <param name="sysUserId">用户ID</param>
 /// <param name="pageState">窗口状态</param>
 /// <param name="departmentId">部门ID</param>
 public ActionResult Create(ModelSysUserManageCreate model, Guid? departmentId)
 {
     model.DepartmentId = departmentId;
     ViewBag.PageState = model.PageState;
     model.RetriveData();
     return View(model);
 }
 public ActionResult Create(ModelSysUserManageCreate model)
 {
     try
     {
         model.Save();
         var option = DialogOption.GetDefaultInstance();
         option.RefreshOpenerAsynchronous = false;
         return Content(WebTools.ScriptCloseEmbeddedFrameDialog(DialogOption.GetDefaultInstance()));
     }
     catch
     {
         Error = CNDreams.Resources.Properties.Resources.M00002E;
         model.RetriveData();
         return View(model);
     }
 }