获取托盘明细GetBindList增加储位地址筛选
| | |
| | | /// <param name="bitBoxMark">零箱标记</param> |
| | | /// <param name="inspectStatus">质量状态</param> |
| | | /// <returns></returns> |
| | | public List<StockDetailDto> GetBindList(string skuNo, string skuName, string palletNo, string lotNo, string boxNo, string status, string inspectMark, string bitPalletMark, string bitBoxMark, string inspectStatus, string ownerNo, string ownerName, string startTime, string endTime, string WareHouseNo, string AreaNo) |
| | | public List<StockDetailDto> GetBindList(string skuNo, string skuName, string palletNo, string lotNo, string boxNo, string status, string inspectMark, string bitPalletMark, string bitBoxMark, string inspectStatus, string ownerNo, string ownerName, string startTime, string endTime, string WareHouseNo, string AreaNo,string locatNo) |
| | | { |
| | | string str = $@"select detail.*,house.WareHouseNo+'-'+house.WareHouseName as WareHouseName,roadway.RoadwayNo+'-'+roadway.RoadwayName as RoadwayName,area.AreaNo+'-'+area.AreaName as AreaName |
| | | from DataStockDetail detail |
| | |
| | | { |
| | | str += $" and detail.AreaNo='{AreaNo}'"; |
| | | } |
| | | if (!string.IsNullOrEmpty(locatNo)) |
| | | { |
| | | str += $" and detail.LocatNo='{locatNo}'"; |
| | | } |
| | | |
| | | int i = 0; |
| | | //在箱码明细中获取相应数据 |
| | |
| | | /// <param name="bitBoxMark">零箱标记</param> |
| | | /// <param name="inspectStatus">质量状态</param> |
| | | /// <returns></returns> |
| | | List<StockDetailDto> GetBindList(string skuNo, string skuName, string palletNo, string lotNo, |
| | | string boxNo, string status, string inspectMark, string bitPalletMark, string bitBoxMark, |
| | | string inspectStatus, string ownerNo, string ownerName, string startTime, string endTIme, |
| | | string WareHouseNo, string AreaNo); |
| | | List<StockDetailDto> GetBindList(string skuNo, string skuName, string palletNo, string lotNo, string boxNo, string status, string inspectMark, string bitPalletMark, string bitBoxMark, string inspectStatus, string ownerNo, string ownerName, string startTime, string endTIme, string WareHouseNo, string AreaNo, string locatNo); |
| | | void EditStockDetailDemo(int id, string demo, int userId); |
| | | |
| | | /// <summary> |
| | |
| | | |
| | | #region 托盘明细 |
| | | |
| | | |
| | | /// <summary> |
| | | /// 获取托盘明细 |
| | | /// </summary> |
| | |
| | | /// <param name="bitPalletMark">零托标记</param> |
| | | /// <param name="bitBoxMark">零箱标记</param> |
| | | /// <param name="inspectStatus">质量状态</param> |
| | | /// <param name="ownerNo">货主编码</param> |
| | | /// <param name="ownerName">货主名称</param> |
| | | /// <param name="startTime">开始时间</param> |
| | | /// <param name="endTIme">结束时间</param> |
| | | /// <param name="WareHouseNo">所属仓库</param> |
| | | /// <param name="AreaNo">所属区域</param> |
| | | /// <param name="locatNo">储位地址</param> |
| | | /// <returns></returns> |
| | | [HttpGet] |
| | | public IActionResult GetBindList(string skuNo, string skuName, string palletNo, string lotNo, string boxNo, string status, string inspectMark, string bitPalletMark, string bitBoxMark, string inspectStatus, string ownerNo, string ownerName, string startTime, string endTIme, string WareHouseNo, string AreaNo) |
| | | public IActionResult GetBindList(string skuNo, string skuName, string palletNo, string lotNo, string boxNo, string status, string inspectMark, string bitPalletMark, string bitBoxMark, string inspectStatus, string ownerNo, string ownerName, string startTime, string endTIme, string WareHouseNo, string AreaNo, string locatNo) |
| | | { |
| | | try |
| | | { |
| | | List<StockDetailDto> boxInfoList = _stockDetail.GetBindList(skuNo, skuName, palletNo, lotNo, boxNo, status, inspectMark, bitPalletMark, bitBoxMark, inspectStatus, ownerNo, ownerName, startTime, endTIme, WareHouseNo, AreaNo); |
| | | List<StockDetailDto> boxInfoList = _stockDetail.GetBindList(skuNo, skuName, palletNo, lotNo, boxNo, status, inspectMark, bitPalletMark, bitBoxMark, inspectStatus, ownerNo, ownerName, startTime, endTIme, WareHouseNo, AreaNo, locatNo); |
| | | return Ok(new { data = boxInfoList, code = 0, msg = "获取托盘明细成功" }); |
| | | } |
| | | catch (Exception e) |
| | |
| | | /// <param name="status">状态</param> |
| | | /// <param name="inspectMark">检验标记</param> |
| | | /// <param name="inspectStatus">质量状态</param> |
| | | /// <param name="locatNo">储位地址</param> |
| | | /// <returns></returns> |
| | | [HttpGet] |
| | | public IActionResult GetEmergencyWarning(string skuNo, string skuName, string lotNo, string palletNo, string status, string inspectMark, string inspectStatus) |
| | | public IActionResult GetEmergencyWarning(string skuNo, string skuName, string lotNo, string palletNo, string status, string inspectMark, string inspectStatus, string locatNo) |
| | | { |
| | | try |
| | | { |
| | | List<AdventBoxInfoDto> stockList = _dataBoxInfo.GetEmergencyWarning(skuNo, skuName, lotNo, palletNo, status, inspectMark, inspectStatus); |
| | | List<AdventBoxInfoDto> stockList = _dataBoxInfo.GetEmergencyWarning(skuNo, skuName, lotNo, palletNo, status, inspectMark, inspectStatus, locatNo); |
| | | return Ok(new { data = stockList, code = 0, msg = "获取临期预警成功" }); |
| | | } |
| | | catch (Exception e) |