| | |
| | | /// <summary> |
| | | /// App生产看板 |
| | | /// </summary> |
| | | /// <param name="stu_torgcode">组织编码</param> |
| | | /// <param name="stu_torgtypecode">组织类型</param> |
| | | /// <param name="usercode">登录人员</param> |
| | | /// <param name="Ratetime">时间</param> |
| | | /// <param name="defecttype">缺陷统计类型</param> |
| | | /// <returns></returns> |
| | | [Route(template: "ProductionKanban")] |
| | | [HttpGet] |
| | | public HttpResponseMessage ProductionKanban(string usercode, string Ratetime,string defecttype) |
| | | public HttpResponseMessage ProductionKanban(string stu_torgcode,string stu_torgtypecode,string usercode, string Ratetime,string defecttype) |
| | | { |
| | | string startopendate = ""; //开始时间 |
| | | string endclosedate = ""; //结束时间 |
| | |
| | | startopendate = Ratetime.Split('~')[0].ToString(); |
| | | endclosedate = Ratetime.Split('~')[1].ToString(); |
| | | } |
| | | mes = AppAnalyticsBLL.ProductionKanban(usercode, startopendate, endclosedate, defecttype); |
| | | mes = AppAnalyticsBLL.ProductionKanban(stu_torgcode, stu_torgtypecode,usercode, startopendate, endclosedate, defecttype); |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |
| | |
| | | /// <summary> |
| | | /// App生产进度看板单据信息 |
| | | /// </summary> |
| | | /// <param name="stu_torgcode">组织编码</param> |
| | | /// <param name="stu_torgtypecode">组织类型</param> |
| | | /// <param name="ordertype">单据类型(SO:销售订单、MO:生产订单、PO:生产工单)</param> |
| | | /// <param name="partcode">产品信息(可多个)</param> |
| | | /// <param name="Ratetime">单据日期范围</param> |
| | | /// <returns></returns> |
| | | [Route(template: "ProductionScheduleKanban")] |
| | | [HttpGet] |
| | | public HttpResponseMessage ProductionScheduleKanban(string ordertype, string partcode=null, string Ratetime=null) |
| | | public HttpResponseMessage ProductionScheduleKanban(string stu_torgcode, string stu_torgtypecode, string ordertype, string partcode=null, string Ratetime=null) |
| | | { |
| | | string startopendate = ""; //开始时间 |
| | | string endclosedate = ""; //结束时间 |
| | |
| | | startopendate = Ratetime.Split('~')[0].ToString(); |
| | | endclosedate = Ratetime.Split('~')[1].ToString(); |
| | | } |
| | | mes = AppAnalyticsBLL.ProductionScheduleKanban(ordertype,partcode, startopendate, endclosedate); |
| | | mes = AppAnalyticsBLL.ProductionScheduleKanban(stu_torgcode, stu_torgtypecode,ordertype, partcode, startopendate, endclosedate); |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |