|
|
|
@ -140,7 +140,47 @@ namespace Rs.MotionPlat.Flow
|
|
|
|
|
switch (flowStep)
|
|
|
|
|
{
|
|
|
|
|
case EDischargeFlowStep.等待启动:
|
|
|
|
|
flowStep = EDischargeFlowStep.工作前准备;
|
|
|
|
|
{
|
|
|
|
|
//EButtonType button = Msgbox.ShowDialog(EButtonType.Ok | EButtonType.Cancel, "清除 NG料盘 数据 确定清除 选择OK 保留 选择否Cancel");
|
|
|
|
|
//if(button== EButtonType.Ok)
|
|
|
|
|
//{
|
|
|
|
|
// GlobalTray.NgTray.ChangeStatus(ESlotStatus.NotHave);
|
|
|
|
|
//}
|
|
|
|
|
//button = Msgbox.ShowDialog(EButtonType.Ok | EButtonType.Cancel, "清除 OK料盘 数据 确定清除 选择OK 保留 选择否Cancel");
|
|
|
|
|
//if (button == EButtonType.Ok)
|
|
|
|
|
//{
|
|
|
|
|
// GlobalTray.NgTray.ChangeStatus(ESlotStatus.NotHave);
|
|
|
|
|
//}
|
|
|
|
|
//EButtonType button = Msgbox.ShowDialog(EButtonType.Ok | EButtonType.Cancel, "请确认 LOT 信息 信息正确 选择OK 信息错误退出重写 选择Cancel");
|
|
|
|
|
EButtonType button =Msgbox.ShowDialog(EButtonType.Ok | EButtonType.Cancel, "请确认 LOT信息\r\n信息正确 选择OK\r\n信息错误退出重写 选择Cancel");
|
|
|
|
|
if(button== EButtonType.Ok)
|
|
|
|
|
{
|
|
|
|
|
button = Msgbox.ShowDialog(EButtonType.Ok | EButtonType.Cancel, "是否清除之前数据?\r\n清除点击OK\r\n不清楚点击Cancel");
|
|
|
|
|
if(button== EButtonType.Ok)
|
|
|
|
|
{
|
|
|
|
|
TestFixtureManager.Instance.GetTestFixture(1).ClearData();
|
|
|
|
|
TestFixtureManager.Instance.GetTestFixture(2).ClearData();
|
|
|
|
|
TestFixtureManager.Instance.GetTestFixture(3).ClearData();
|
|
|
|
|
TestFixtureManager.Instance.GetTestFixture(4).ClearData();
|
|
|
|
|
TestFixtureManager.Instance.GetTestFixture(5).ClearData();
|
|
|
|
|
TestFixtureManager.Instance.GetTestFixture(6).ClearData();
|
|
|
|
|
GlobalTray.NgTray.ChangeStatus(ESlotStatus.NotHave);
|
|
|
|
|
GlobalTray.RetestTray.ChangeStatus(ESlotStatus.NotHave);
|
|
|
|
|
GlobalTray.OkTary.ChangeStatus(ESlotStatus.NotHave);
|
|
|
|
|
flowStep = EDischargeFlowStep.工作前准备;
|
|
|
|
|
}
|
|
|
|
|
else if(button== EButtonType.Cancel)
|
|
|
|
|
{
|
|
|
|
|
flowStep = EDischargeFlowStep.工作前准备;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
else if(button== EButtonType.Cancel)
|
|
|
|
|
{
|
|
|
|
|
Ops.Stop();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//flowStep = EDischargeFlowStep.判断是否需要从料仓取料;
|
|
|
|
|
break;
|
|
|
|
|
#region 临时屏蔽
|
|
|
|
|