Merge branch 'master' into wxw
| | |
| | | /// <summary> |
| | | /// 入库单号 |
| | | /// </summary> |
| | | public long orderNo { get; set; } |
| | | public string orderNo { get; set; } |
| | | /// <summary> |
| | | /// 入库单类型 |
| | | /// 0:成品入库 1:采购入库 3:退货入库 (销售退货)4:余料退回入库 8 :生产退料入库 |
| | | /// </summary> |
| | | public int billType { get; set; } |
| | | public string billType { get; set; } |
| | | /// <summary> |
| | | /// 供应商编号 |
| | | /// </summary> |
| | |
| | | /// <summary> |
| | | /// 物料编码 |
| | | /// </summary> |
| | | public long skuNo { get; set; } |
| | | public string skuNo { get; set; } |
| | | /// <summary> |
| | | /// 物料名称 |
| | | /// </summary> |
| | |
| | | /// <summary> |
| | | /// 批号 |
| | | /// </summary> |
| | | public long lotNo { get; set; } |
| | | public string lotNo { get; set; } |
| | | /// <summary> |
| | | /// 生产日期 |
| | | /// </summary> |
| | |
| | | { |
| | | foreach (var item in stockDetail) |
| | | { |
| | | if (!string.IsNullOrEmpty(item.WareHouseNo)) |
| | | if (!string.IsNullOrEmpty(item.WareHouseNo) && !string.IsNullOrEmpty(item.AreaNo)) |
| | | { |
| | | throw new Exception("该托盘未在库外,请核查!"); |
| | | if (item.AreaNo != "B06" && item.AreaNo != "B07" && item.AreaNo != "B09") |
| | | { |
| | | throw new Exception("该托盘未在库外,请核查!"); |
| | | } |
| | | } |
| | | } |
| | | iscount = 1; //回流入库 |
| | |
| | | public async Task<List<DataStockDetail>> GetStockQueryList(string locatNo, string palletNo) |
| | | { |
| | | return await Db.Queryable<DataStockDetail>() |
| | | .Where(s => s.IsDel == "0" && s.LocatNo.Contains(locatNo) && s.PalletNo.Contains(palletNo)) |
| | | .Where(s => s.IsDel == "0" && s.LocatNo.Contains(locatNo) || s.PalletNo.Contains(palletNo)) |
| | | .OrderBy(s => new { s.LotNo, s.LocatNo, s.PalletNo }) |
| | | .ToListAsync(); |
| | | |