| | |
| | | var queryable = db.Queryable<Location>() |
| | | .LeftJoin<LocCntrRel>((a, b) => a.S_CODE == b.S_LOC_CODE) |
| | | .LeftJoin<CntrItemDetail>((a, b, c) => b.S_CNTR_CODE == c.S_CNTR_CODE) |
| | | .Where((a, b, c) => a.N_CURRENT_NUM > 0 && a.N_LOCK_STATE == 0 && a.S_AREA_CODE == areaCode); |
| | | .Where((a, b, c) => a.N_CURRENT_NUM > 0 && a.N_LOCK_STATE == 0 && a.S_AREA_CODE == areaCode ); |
| | | //六位码匹配前六位,其他的全部配置 |
| | | if (ItemCode.Trim().Length == 6) |
| | | { |
| | |
| | | queryable = db.Queryable<Location>() |
| | | .LeftJoin<LocCntrRel>((a, b) => a.S_CODE == b.S_LOC_CODE) |
| | | .LeftJoin<CntrItemDetail>((a, b, c) => b.S_CNTR_CODE == c.S_CNTR_CODE) |
| | | .Where((a, b, c) => a.N_CURRENT_NUM > 0 && a.N_LOCK_STATE == 0 && a.S_AREA_CODE == areaCode); |
| | | .Where((a, b, c) => a.N_CURRENT_NUM > 0 && a.N_LOCK_STATE == 0 && a.S_AREA_CODE == areaCode ); |
| | | //六位码匹配前六位,其他的全部配置 |
| | | if (ItemCode.Trim().Length == 6) |
| | | { |
| | |
| | | { |
| | | db.BeginTran(); |
| | | var lcrList = db.Queryable<LocCntrRel>().Where(a => a.S_LOC_CODE.Trim() == loc).ToList(); |
| | | if (!string.IsNullOrEmpty(location.S_NOTE.Trim()) && (location.S_NOTE.Trim() == "叠盘" || location.S_NOTE.Trim() == "片胶堆叠位")) |
| | | //if (!string.IsNullOrEmpty(location.S_NOTE) && lcrList.Count > 0) |
| | | //{ |
| | | // if (location.S_NOTE == "叠盘" || location.S_NOTE.Trim() == "片胶堆叠位") |
| | | // { |
| | | // LogHelper.Info("叠盘货位删除托盘"); |
| | | // cntrs = lcrList.Select(a => a.S_CNTR_CODE).ToList(); |
| | | |
| | | // } |
| | | //} |
| | | if (lcrList.Count > 0) |
| | | { |
| | | cntrs = lcrList.Select(a => a.S_CNTR_CODE).ToList(); |
| | | } |