CNCEC_SUBQHSE_WUHUAN/SGGL/WebAPI/Controllers/HSSE/ChartAnalysisController.cs

40 lines
1.2 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using BLL;
using System;
using System.Linq;
using System.Web.Http;
namespace WebAPI.Controllers
{
/// <summary>
/// 图型分信息
/// </summary>
public class ChartAnalysisController : ApiController
{
#region
/// <summary>
/// 根据类型获取图型数据
/// </summary>
/// <param name="projectId">项目ID</param>
/// <param name="type">1按单位2按类型</param>
/// <param name="startDate">开始时间</param>
/// <param name="endDate">结束时间</param>
/// <returns></returns>
public Model.ResponeData getChartAnalysisByType(string projectId, string type,string startDate,string endDate)
{
var responeData = new Model.ResponeData();
try
{
responeData.data = BLL.APIChartAnalysisService.getChartAnalysisByType(projectId, type, startDate, endDate);
}
catch (Exception ex)
{
responeData.code = 0;
responeData.message = ex.Message;
}
return responeData;
}
#endregion
}
}