新增明细 加判断条件
计数页面修改 散料入新增条件 出库单据接口 修改判断条件
This commit is contained in:
1 parent
4334683c6f
commit
1365920fee
15 files changed
+66
-32
No files matched your search
@@ -28,7 +28,7 @@ namespace HHWMS.Web
|
||||
var _unitwork = new UnitWork(Wtm);
|
||||
|
||||
var PTask = _unitwork.Find<TaskHeader>(x =>x.TaskNo.Contains("PLoop")).Include(x => x.TaskDetails).ToList();
|
||||
var STask = _unitwork.Find<TaskHeader>(x => x.TaskNo.Contains("SLoop")).Include(x => x.TaskDetails).ToList();
|
||||
//var STask = _unitwork.Find<TaskHeader>(x => x.TaskNo.Contains("SLoop")).Include(x => x.TaskDetails).ToList();
|
||||
//没有盘料循环任务
|
||||
if (PTask.Count() == 0)
|
||||
{
|
||||
@@ -100,7 +100,7 @@ namespace HHWMS.Web
|
||||
if (station != null && count > 0)
|
||||
{
|
||||
var container = _unitwork.Find<Location>(x => x.Row == station.Row && x.Type == LocationTypeEnum.盘料库位
|
||||
&& (x.Status == LocationStatus.有货 || x.Status == LocationStatus.空容器) && x.Length == Length && !x.IsStop && x.Height < inventory.Qty)
|
||||
&& (x.Status == LocationStatus.有货 || x.Status == LocationStatus.空容器) && x.Length == Length && !x.IsStop && x.Height < 1)
|
||||
.OrderBy(x => x.Height).FirstOrDefault();
|
||||
if (Length == 23 && container == null && station.Row == 3)
|
||||
{
|
||||
@@ -108,7 +108,7 @@ namespace HHWMS.Web
|
||||
&& x.Status != LocationStatus.任务锁 && x.Row == 1).FirstOrDefault();
|
||||
|
||||
container = _unitwork.Find<Location>(x => x.Row == station.Row && x.Type == LocationTypeEnum.盘料库位
|
||||
&& (x.Status == LocationStatus.有货 || x.Status == LocationStatus.空容器) && x.Length == Length && !x.IsStop && x.Height < inventory.Qty)
|
||||
&& (x.Status == LocationStatus.有货 || x.Status == LocationStatus.空容器) && x.Length == Length && !x.IsStop && x.Height < 1)
|
||||
.OrderBy(x => x.Height).FirstOrDefault();
|
||||
}
|
||||
if (station != null && container != null)
|
||||
@@ -195,7 +195,7 @@ namespace HHWMS.Web
|
||||
var locCon = _unitwork.Find<Location>(x => x.Type == Inventory.ZoneCode
|
||||
&& (x.Status == LocationStatus.有货 || x.Status == LocationStatus.空容器)
|
||||
&& x.Length == Length
|
||||
&& x.Height < Inventory.Qty).Count();
|
||||
&& x.Height < 1).Count();
|
||||
if (locCon == 0)
|
||||
{
|
||||
Inventory.Qty += 1;
|
||||
@@ -269,7 +269,7 @@ namespace HHWMS.Web
|
||||
}
|
||||
}
|
||||
}
|
||||
if (STask.Count() ==0)
|
||||
/*if (STask.Count() ==0)
|
||||
{
|
||||
Location location = _unitwork.Find<Location>(x => x.Type == LocationTypeEnum.散料库站台 && !string.IsNullOrEmpty(x.ContainerCode)).FirstOrDefault();
|
||||
//创建入库任务
|
||||
@@ -327,7 +327,7 @@ namespace HHWMS.Web
|
||||
_unitwork.Add(task);
|
||||
}
|
||||
}
|
||||
}
|
||||
}*/
|
||||
#region 更新时间
|
||||
|
||||
var job = _unitwork.FindSingle<SysJob>(x => x.JobName == context.JobDetail.Key.Name);
|
||||
|
||||
Reference in new issue
Block a user