liuwf 1 year ago
parent c9014a6c6f
commit 41565429de

@ -67,56 +67,56 @@ namespace Khd.Core.Wcs
} }
//创建定时器 //创建定时器
SystemTimer systemTimer = new SystemTimer(_host); //SystemTimer systemTimer = new SystemTimer(_host);
systemTimer.Start(); //systemTimer.Start();
//创建任务 ////创建任务
CreateTaskByRecord createTaskByRecord = new(_host); //CreateTaskByRecord createTaskByRecord = new(_host);
createTaskByRecord.StartPoint(); //createTaskByRecord.StartPoint();
//一楼提升机以及接驳位 ////一楼提升机以及接驳位
FirstFloor firstFloor = new(_host); //FirstFloor firstFloor = new(_host);
firstFloor.StartPoint(); //firstFloor.StartPoint();
//二层接驳位 ////二层接驳位
SecondFloorPoint secondFloorPoint = new(_host, 2); //SecondFloorPoint secondFloorPoint = new(_host, 2);
secondFloorPoint.StartPoint(); //secondFloorPoint.StartPoint();
////二层AGV //////二层AGV
SecondFloorAGV secondFloorAGV = new(_host, 2); //SecondFloorAGV secondFloorAGV = new(_host, 2);
secondFloorAGV.StartPoint(); //secondFloorAGV.StartPoint();
//二楼线体 ////二楼线体
SecondFloorLine secondFloorLine = new(_host, 2); //SecondFloorLine secondFloorLine = new(_host, 2);
secondFloorLine.StartPoint(); //secondFloorLine.StartPoint();
//三层接驳位 ////三层接驳位
ThirdFloorPoint thirdFloorPoint = new(_host, 3); //ThirdFloorPoint thirdFloorPoint = new(_host, 3);
thirdFloorPoint.StartPoint(); //thirdFloorPoint.StartPoint();
// 三层AGV //// 三层AGV
ThirdFloorAGV thirdFloorAGV = new(_host, 3); //ThirdFloorAGV thirdFloorAGV = new(_host, 3);
thirdFloorAGV.StartPoint(); //thirdFloorAGV.StartPoint();
//四楼接驳位 ////四楼接驳位
FourthFloorPoint fourthFloorPoint = new FourthFloorPoint(_host, 4); //FourthFloorPoint fourthFloorPoint = new FourthFloorPoint(_host, 4);
fourthFloorPoint.StartPoint(); //fourthFloorPoint.StartPoint();
//五层接驳位 ////五层接驳位
FiveFloorPoint fifthFloorPoint = new(_host, 5); //FiveFloorPoint fifthFloorPoint = new(_host, 5);
fifthFloorPoint.StartPoint(); //fifthFloorPoint.StartPoint();
//五层CTU //五层CTU
FiveFloorCTU fiveFloorCTU = new(_host, 5); FiveFloorCTU fiveFloorCTU = new(_host, 5);
fiveFloorCTU.StartPoint(); fiveFloorCTU.StartPoint();
//五层AGV ////五层AGV
FiveFloorAGV fifthFloorAGV = new(_host, 5); //FiveFloorAGV fifthFloorAGV = new(_host, 5);
fifthFloorAGV.StartPoint(); //fifthFloorAGV.StartPoint();
////背负式Agv //////背负式Agv
FiveFloorBearAgv fiveFloorBearAgv = new(_host, 5); //FiveFloorBearAgv fiveFloorBearAgv = new(_host, 5);
fiveFloorBearAgv.StartPoint(); //fiveFloorBearAgv.StartPoint();
} }
catch (Exception ex) catch (Exception ex)
{ {

@ -149,7 +149,7 @@ namespace Khd.Core.Wcs.Wcs
} }
else else
{ {
if (task.taskType == StaticTaskType.FiveAccessoryOut || task.taskType == StaticTaskType.FiveAccessoryRemove) if (task.taskType == StaticTaskType.FiveAccessoryOut || task.taskType == StaticTaskType.FiveAccessoryRemove || task.taskType == StaticTaskType.FiveAccessoryStorage)
{ {
dbContext.WcsTask.Where(t => t.objid == task.objid).Delete(); dbContext.WcsTask.Where(t => t.objid == task.objid).Delete();
#region 暂不使用-因为删除之后ctu无法知道还有几个箱子///如果已经开始入库,还有出库任务,删除出库任务 #region 暂不使用-因为删除之后ctu无法知道还有几个箱子///如果已经开始入库,还有出库任务,删除出库任务

Loading…
Cancel
Save