| | |
| | | { |
| | | [RoutePrefix(prefix: "api/ReportManager")] |
| | | [ControllerGroup("报表管理", "在线接口")] |
| | | [ChannelActionFilter] |
| | | //[ChannelActionFilter] |
| | | public class ReportManagerController : ApiController |
| | | { |
| | | //定义全局信息返回变量 |
| | |
| | | /// <param name="prop">排序字段</param> |
| | | /// <param name="order">排序规则</param> |
| | | /// <param name="wkshopcode">车间编码</param> |
| | | /// <param name="eqpcode">设备编码</param> |
| | | /// <param name="calltypecode">呼叫类型编码</param> |
| | | /// <param name="calldate">呼叫时间</param> |
| | | /// <param name="responddate">响应时间</param> |
| | | /// <returns></returns> |
| | | [Route(template: "AnDonReportSumSearch")] |
| | | [HttpGet] |
| | | public HttpResponseMessage AnDonReportSumSearch(int page, int rows, string prop, string order, string wkshopcode = null, string calltypecode = null, string calldate = null, string responddate = null) |
| | | public HttpResponseMessage AnDonReportSumSearch(int page, int rows, string prop, string order, string wkshopcode = null,string eqpcode=null, string calltypecode = null, string calldate = null, string responddate = null) |
| | | { |
| | | string callopendate = ""; //呼叫开始时间 |
| | | string callclosedate = ""; //呼叫结束时间 |
| | |
| | | } |
| | | int startNum = rows * (page - 1) + 1; //起始记录rowNum |
| | | int endNum = rows * page; //结束记录 rowNum |
| | | mes = ReportManagerBLL.AnDonReportSumSearch(wkshopcode, calltypecode, callopendate, callclosedate, respondopendate, respondclosedate, startNum, endNum, prop, order); |
| | | mes = ReportManagerBLL.AnDonReportSumSearch(wkshopcode, eqpcode, calltypecode, callopendate, callclosedate, respondopendate, respondclosedate, startNum, endNum, prop, order); |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |
| | |
| | | /// 安灯报表汇总导出 |
| | | /// </summary> |
| | | /// <param name="wkshopcode">车间编码</param> |
| | | /// <param name="eqpcode">设备编码</param> |
| | | /// <param name="calltypecode">呼叫类型编码</param> |
| | | /// <param name="calldate">呼叫时间</param> |
| | | /// <param name="responddate">响应时间</param> |
| | | /// <returns></returns> |
| | | [Route(template: "AnDonReportSumExcelSearch")] |
| | | [HttpGet] |
| | | public HttpResponseMessage AnDonReportSumExcelSearch(string wkshopcode = null, string calltypecode = null, string calldate = null, string responddate = null) |
| | | public HttpResponseMessage AnDonReportSumExcelSearch(string wkshopcode = null,string eqpcode=null, string calltypecode = null, string calldate = null, string responddate = null) |
| | | { |
| | | string callopendate = ""; //呼叫开始时间 |
| | | string callclosedate = ""; //呼叫结束时间 |
| | |
| | | respondopendate = responddate.Split('~')[0].ToString(); |
| | | respondclosedate = responddate.Split('~')[1].ToString(); |
| | | } |
| | | mes = ReportManagerBLL.AnDonReportSumExcelSearch(wkshopcode, calltypecode, callopendate, callclosedate, respondopendate, respondclosedate); |
| | | mes = ReportManagerBLL.AnDonReportSumExcelSearch(wkshopcode, eqpcode, calltypecode, callopendate, callclosedate, respondopendate, respondclosedate); |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |