Exemplo n.º 1
0
 /// <summary>
 /// 返回错误消息
 /// </summary>
 /// <param name="msg">消息</param>
 /// <param name="url">跳转链接</param>
 /// <param name="isEval">是否需要eval执行</param>
 /// <returns></returns>
 public ActionResult Success(string msg, string url = "Index", bool isEval = true)
 {
     url = Utils.GetActionUrl(url);
     if (isEval)
     {
         return(Content(ResObj.LayerScript(msg, Icon.Success, url)));
     }
     return(Content(ResObj.LayerMsg(msg, Icon.Success, url)));
 }
Exemplo n.º 2
0
 public ActionResult Index(int type)
 {
     if (type > 0)
     {
         GetCode(type);
     }
     else
     {
         var list = _DataItemService.LoadEntities(c => true).ToList();
         foreach (var item in list)
         {
             GetCode(item.Id);
         }
     }
     return(Content(ResObj.LayerScript("执行成功!", Icon.Success)));
 }