修改
This commit is contained in:
1 parent
c494b7b1ef
commit
523dee5e38
15 files changed
+304
-128
No files matched your search
@@ -38,13 +38,25 @@ public class ShipOutController : BaseController
|
||||
[HttpPost]
|
||||
public ActionResult ScanBox(string code)
|
||||
{
|
||||
Location box = new Location();
|
||||
if (code.Contains("C"))
|
||||
{
|
||||
box = _unitWork.FindSingle<Location>(x => x.ContainerCode.Equals(code) && x.Type == LocationTypeEnum.散料库站台);
|
||||
}
|
||||
else if (code.Contains("L"))
|
||||
{
|
||||
box = _unitWork.FindSingle<Location>(x => x.Code.Equals(code));
|
||||
}
|
||||
// 判断箱号是否合理
|
||||
var box = _unitWork.FindSingle<Location>(x => x.Code.Equals(code));
|
||||
if (box != null)
|
||||
{
|
||||
if (box.Type == LocationTypeEnum.散料库站台 || box.Type == LocationTypeEnum.料塔)
|
||||
{
|
||||
var inv = _unitWork.Find<Inventory>(x => x.LocationCode.Equals(code));
|
||||
if (code.Contains("C"))
|
||||
{
|
||||
inv = _unitWork.Find<Inventory>(x => x.ContainerCode.Equals(code));
|
||||
}
|
||||
return JsonMore(inv);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user