示例#1
0
 public JsonUploadResult(bool success, Guid id, object targetElementId, JsonRefreshMode refreshMode, string absoluteFilePath, string relativeFilePath)
     : base(success, targetElementId, refreshMode)
 {
     Id = id;
     AbsoluteFilePath = absoluteFilePath;
     RelativeFilePath = relativeFilePath;
 }
示例#2
0
 protected JsonTreeResult(bool success, Guid?parentId, object targetElementId, JsonRefreshMode refreshMode, string message, string afterAction)
     : base(success, targetElementId, refreshMode, message, afterAction)
 {
     ParentId = parentId;
 }
示例#3
0
 public JsonDialogResult(bool success, object targetId, string action, JsonRefreshMode refreshMode)
     : this(success, refreshMode)
 {
     TargetId = targetId;
     Action   = action;
 }
示例#4
0
 public JsonDialogResult(bool success, JsonRefreshMode refreshMode)
 {
     Success     = success;
     RefreshMode = refreshMode;
 }
示例#5
0
 public JsonResult CreateFail(object targetElementId, JsonRefreshMode refreshMode)
 {
     return(new JsonResult(false, targetElementId, refreshMode));
 }
示例#6
0
 public JsonResult CreateSuccess(object targetElementId, JsonRefreshMode refreshMode)
 {
     return(new JsonResult(true, targetElementId, refreshMode));
 }
示例#7
0
 protected JsonResult(bool success, object targetElementId, JsonRefreshMode refreshMode)
 {
     Success         = success;
     TargetElementId = targetElementId;
     RefreshMode     = refreshMode;
 }
示例#8
0
 private JsonWizardResult(bool success, Guid id, object targetElementId, JsonRefreshMode refreshMode, string message, string afterAction, int nextStepIndex)
     : base(success, targetElementId, refreshMode, message, afterAction)
 {
     Id            = id;
     NextStepIndex = nextStepIndex;
 }
示例#9
0
 public static JsonUploadResult CreateSuccess(Guid id, object targetElementId, JsonRefreshMode refreshMode, string absoluteFilePath, string relativeFilePath)
 {
     return(new JsonUploadResult(true, id, targetElementId, refreshMode, absoluteFilePath, relativeFilePath));
 }
        protected override ActionResult RedirectToActionAfterSuccessCreate(Guid id, string actionName, string controllerName, object routeValues, string targetHtmlId, JsonRefreshMode refreshMode)
        {
            Guid?parentId = GetService().GetParentId(id);

            if (parentId.HasValue)
            {
                return(base.RedirectToActionAfterSuccessCreate(id, actionName, controllerName, routeValues, parentId.Value.ToString(), JsonRefreshMode.TREE));
            }
            return(base.RedirectToActionAfterSuccessCreate(id, actionName, controllerName, routeValues, targetHtmlId, JsonRefreshMode.FULL));
        }
 protected override ActionResult RedirectToActionAfterSuccessDelete(Guid id, string actionName, string controllerName, string targetId, object routeValues, JsonRefreshMode refreshMode)
 {
     if (!Guid.Empty.Equals(id))
     {
         return(RedirectToActionAfterSuccessDelete(id, actionName, controllerName, targetId, routeValues, JsonRefreshMode.TREE));
     }
     return(RedirectToActionAfterSuccessDelete(id, actionName, controllerName, targetId, routeValues, JsonRefreshMode.FULL));
 }
 public JsonFileSelectDialogResult(bool success, string thumbnailPath, string path, JsonRefreshMode refreshMode)
     : base(success, refreshMode)
 {
     ThumbnailPath = thumbnailPath;
     Path          = path;
 }
示例#13
0
 protected virtual ActionResult RedirectToActionAfterSuccessCreate(Guid id, string actionName, string controllerName, object routeValues, string targetHtmlId, JsonRefreshMode jsonRefreshMode)
 {
     return(RedirectToAction(actionName, controllerName, routeValues));
 }
示例#14
0
 protected virtual ActionResult RedirectToActionAfterSuccessDelete(Guid id, string actionName, string controllerName, string targetId, object routeValues, JsonRefreshMode refreshMode)
 {
     return(Json(new JsonDialogResult(true, targetId, Url.Action(actionName, controllerName, routeValues), refreshMode)));
 }
示例#15
0
 protected override ActionResult RedirectToActionAfterSuccessCreate(Guid id, string actionName, string controllerName, object routeValues, string targetHtmlId, JsonRefreshMode refreshMode)
 {
     return(Json(new JsonDialogResult(true, targetHtmlId, Url.Action(actionName, controllerName, routeValues), JsonRefreshMode.FULL)));
 }
示例#16
0
 protected JsonDialogResult(bool success, object targetElementId, JsonRefreshMode refreshMode, string message, string afterAction)
     : base(success, targetElementId, refreshMode)
 {
     Message     = message;
     AfterAction = afterAction;
 }