Example #1
0
 public HttpResponseMessage GetSupplyDataReport([FromUri] HomeRequest request)
 {
     try
     {
         var data = _Home.GetSupplyDataReport(request);
         return(AjaxResult.Success(data).ToJsonApi());
     }
     catch (Exception)
     {
         return(AjaxResult.Error("操作失败").ToJsonApi());
     }
 }
Example #2
0
        /// <summary>
        /// 供货单统计图
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        public ActionResult GetSupplyDataReport(HomeRequest request)
        {
            var data = _Home.GetSupplyDataReport(request);

            return(Content(data.ToJson()));
        }