SheQu/Models/MessageResult.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using System.Text;
using System.Threading.Tasks;
namespace SheQu
{
public class MessageResult : ActionResult
{
//statusCode = "200", message = "保存成功!", navTabId = "c74355b3-459a-423f-a787-f59bc77bbe68",
//callbackType="closeCurrent"
public string statusCode { get; set; }//状态 成功 200 失败 300
public string message { get; set; }//消息 不管成功 和失败都 赋值
public bool closeCurrent { get; set; }//callbacktype="closeCurrent" 这个是死的
public string tabid { get; set; }//菜单的 rel =“” 添加 修改操作跳转的页面 string类型,不是int
public string forward { get; set; }//跳转的链接
public string forwardConfirm { get; set; }//跳转url前的确认提示信息。
//public object data { get; set; }
//public object data1 { get; set; }
//public Encoding ContentEncoding { get; set; }
//public string ContentType { get; set; }
public MessageResult()
{
this.statusCode = "200";
this.message = "操作成功!";
this.forward = "";
this.closeCurrent = true;
this.forwardConfirm = "";
this.tabid = "";
}
//public JsonRequestBehavior JsonRequestBehavior { get; set; }
public override void ExecuteResult(ControllerContext context)
{
if (context == null)
{
throw new ArgumentNullException("context");
}
//if ((this.JsonRequestBehavior == JsonRequestBehavior.DenyGet) &&
// string.Equals(context.HttpContext.Request.HttpMethod, "GET", StringComparison.OrdinalIgnoreCase))
//{
// throw new InvalidOperationException("Get not allowed");
//}
HttpResponseBase response = context.HttpContext.Response;
//if (!string.IsNullOrEmpty(this.ContentType))
//{
// response.ContentType = this.ContentType;
//}
后面还有 50 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
