| | |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | |
| | | #region[物流检验记录查询] |
| | | /// <summary> |
| | | /// 物流检验记录查询 |
| | | /// </summary> |
| | | /// <param name="page">页码</param> |
| | | /// <param name="rows">每页显示数据条数</param> |
| | | /// <param name="prop">排序字段</param> |
| | | /// <param name="order">排序规则</param> |
| | | /// <param name="checktypecode">检验类型编码</param> |
| | | /// <param name="partcode">物料编码</param> |
| | | /// <param name="partname">物料名称</param> |
| | | /// <param name="partspec">规格型号</param> |
| | | /// <param name="labcode">条码编号</param> |
| | | /// <param name="customercode">往来单位编码</param> |
| | | /// <param name="batchno">批次条码</param> |
| | | /// <param name="checkuser">检验人员</param> |
| | | /// <param name="checkdate">检验时间</param> |
| | | /// <returns></returns> |
| | | [Route(template: "LogisticsCheckSearch")] |
| | | [HttpGet] |
| | | public HttpResponseMessage LogisticsCheckSearch(int page, int rows, string prop, string order, string checktypecode = null, string partcode = null, string partname = null, string partspec = null, string labcode = null,string customercode=null,string batchno=null,string checkuser=null,string checkdate=null) |
| | | { |
| | | string opencheckdate = ""; //响应开始时间 |
| | | string closecheckdate = ""; //响应结束时间 |
| | | if (checkdate != "" && checkdate != null) |
| | | { |
| | | opencheckdate = checkdate.Split('~')[0].ToString(); |
| | | closecheckdate = checkdate.Split('~')[1].ToString(); |
| | | } |
| | | int startNum = rows * (page - 1) + 1; //起始记录rowNum |
| | | int endNum = rows * page; //结束记录 rowNum |
| | | mes = ReportManagerBLL.LogisticsCheckSearch(checktypecode,partcode,partname,partspec,labcode,customercode,batchno,checkuser, opencheckdate, closecheckdate, startNum, endNum, prop, order); |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |
| | | |
| | | #region[物流检验,查看检验明细] |
| | | /// <summary> |
| | | /// 物流检验,查看检验明细 |
| | | /// </summary> |
| | | /// <param name="checkid">检验记录ID</param> |
| | | /// <returns></returns> |
| | | [Route(template: "LogisticsCheckSubSearch")] |
| | | [HttpGet] |
| | | public HttpResponseMessage LogisticsCheckSubSearch(string checkid) |
| | | { |
| | | mes = ReportManagerBLL.LogisticsCheckSubSearch(checkid); |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |
| | | } |
| | | } |