public void OnReadObject()
 {
     if (Result == null)
     {
         Result = ActionResultData.CreateSuccessResult("操作成功");
     }
 }
Esempio n. 2
0
        internal JsonResultPageMaker(JsonResultPageMakerAttribute attr)
            : this()
        {
            SetFormat(attr);
            switch (attr.Result)
            {
            case ActionResult.Success:
                Result = ActionResultData.CreateSuccessResult(attr.Message);
                break;

            case ActionResult.ReLogOn:
                Result = ActionResultData.CreateReLogOnResult(attr.Message);
                break;

            case ActionResult.Error:
                Result = ActionResultData.CreateErrorResult(attr.Message);
                break;

            case ActionResult.Fail:
                Result = ActionResultData.CreateFailResult(attr.Message);
                break;
            }
        }