|
|
|
|
@ -20,7 +20,6 @@ namespace Khd.Core.Wcs.Wcs
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class FiveFloorCTU
|
|
|
|
|
{
|
|
|
|
|
List<BasePlcpoint> ScanPoint { get; set; }//点位信息
|
|
|
|
|
private readonly IHost _host;
|
|
|
|
|
private readonly LoggerUtils _logger = new LoggerUtils();
|
|
|
|
|
private readonly BasePlcpoint LineRFID;
|
|
|
|
|
@ -151,13 +150,10 @@ namespace Khd.Core.Wcs.Wcs
|
|
|
|
|
{
|
|
|
|
|
if (task.taskType == StaticTaskType.FiveAccessoryOut)
|
|
|
|
|
{
|
|
|
|
|
dbContext.WcsTask.Where(t => t.objid == task.objid).Delete();
|
|
|
|
|
//dbContext.WcsTask.Where(t => t.objid == task.objid).Delete();
|
|
|
|
|
#region 如果已经开始入库,还有出库任务,删除出库任务
|
|
|
|
|
List<WcsTask> outTasks = dbContext.WcsTask.Where(t => t.taskType == StaticTaskType.FiveAccessoryOut && t.taskStatus == 6).ToList();
|
|
|
|
|
if(outTasks!=null && outTasks.Count > 0)
|
|
|
|
|
{
|
|
|
|
|
dbContext.RemoveRange(outTasks);
|
|
|
|
|
}
|
|
|
|
|
dbContext.RemoveRange(outTasks);
|
|
|
|
|
#endregion
|
|
|
|
|
//根据rfid找到库位
|
|
|
|
|
//生成入库任务
|
|
|
|
|
|