using System;
using System.Collections.Generic;
using System.Linq;
using BLL;
using System.Web.Http;
namespace WebApi.Controllers
{
public class ReportQueryController : ApiController
{
#region 根据焊工号获取焊工业绩
///
/// 根据焊工号获取焊工业绩
///
///
///
///
public Model.ResponeData GetWelderPerformanceByWelderCode(string projectId, string welderCode)
{
var responeData = new Model.ResponeData();
try
{
responeData.data = APIReportQueryService.GetWelderPerformanceByWelderCode(projectId, welderCode);
}
catch (Exception ex)
{
responeData.code = 0;
responeData.message = ex.Message;
}
return responeData;
}
#endregion
#region 根据条件获取管线综合信息
///
/// 根据条件获取管线综合信息
///
/// 项目
/// 区域
/// 管线号
///
public Model.ResponeData GetPipeLineInfo(string projectId, string workAreaId, string pipelineCode)
{
var responeData = new Model.ResponeData();
try
{
responeData.data = APIReportQueryService.GetPipeLineInfo(projectId, workAreaId, pipelineCode);
}
catch (Exception ex)
{
responeData.code = 0;
responeData.message = ex.Message;
}
return responeData;
}
#endregion
#region 焊接工作量查询
///
/// 焊接工作量查询
///
/// 项目区域
/// 项目Id
///
public Model.ResponeData GetWeldWorkload(string projectArea, string projectId)
{
var responeData = new Model.ResponeData();
try
{
responeData.data = APIReportQueryService.GetWeldWorkload(projectArea, projectId);
}
catch (Exception ex)
{
responeData.code = 0;
responeData.message = ex.Message;
}
return responeData;
}
#endregion
#region 拍片工作量查询
///
/// 焊接工作量查询
///
/// 项目区域
/// 项目Id
///
public Model.ResponeData GetWeldNdtFilm(string projectArea, string projectId)
{
var responeData = new Model.ResponeData();
try
{
responeData.data = APIReportQueryService.GetWeldNdtFilm(projectArea, projectId);
}
catch (Exception ex)
{
responeData.code = 0;
responeData.message = ex.Message;
}
return responeData;
}
#endregion
}
}