@ -185,7 +185,7 @@ namespace Rs.MotionPlat.Flow
}
}
button = Msgbox . ShowTipDialog ( EButtonType . Ok | EButtonType . Cancel , "Are you sure clean data ?\r\n clean click OK\r\n no clean click Cancel") ;
button = Msgbox . ShowTipDialog ( EButtonType . Ok | EButtonType . Cancel , "Are you sure you want to clear the data ?\r\n clear click OK\r\n not clear click Cancel") ;
if ( button = = EButtonType . Ok )
{
logInfo = GetClassName ( ) + "选择了OK" ;
@ -194,12 +194,13 @@ namespace Rs.MotionPlat.Flow
//lastFixtureIndex = TestFixtureManager.Instance.GetEnableFixtureList().Select(f => f.Index).Min() - 1;
//lastFixtureIndex = checkFixtureList[0] - 1;
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 ( ) ;
//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();
TestFixtureManager . Instance . ClearDataAll ( ) ;
GlobalTray . NgTray . ChangeStatus ( ESlotStatus . NotHave ) ;
GlobalTray . RetestTray . ChangeStatus ( ESlotStatus . NotHave ) ;
GlobalTray . OkTary . ChangeStatus ( ESlotStatus . NotHave ) ;
@ -210,28 +211,7 @@ namespace Rs.MotionPlat.Flow
}
else
{
var t1 = Task . Run ( ( ) = > {
StockManager . CloseTray ( 1 ) ;
} ) ;
var t2 = Task . Run ( ( ) = > {
StockManager . CloseTray ( 2 ) ;
} ) ;
var t3 = Task . Run ( ( ) = > {
StockManager . CloseTray ( 3 ) ;
} ) ;
Task . WaitAll ( new [ ] { t1 , t2 , t3 } ) ;
var t4 = Task . Run ( ( ) = > {
StockManager . OpenTray ( 1 ) ;
} ) ;
var t5 = Task . Run ( ( ) = > {
StockManager . OpenTray ( 2 ) ;
} ) ;
var t6 = Task . Run ( ( ) = > {
StockManager . OpenTray ( 3 ) ;
} ) ;
Task . WaitAll ( new [ ] { t4 , t5 , t6 } ) ;
StockManager . ClampAfterReleaseAll ( ) ;
flowStep = EDischargeFlowStep . 工 作 前 准 备 ;
}
@ -240,35 +220,7 @@ namespace Rs.MotionPlat.Flow
{
logInfo = GetClassName ( ) + "选择了Cancel" ;
MessageQueue . Instance . Insert ( logInfo ) ;
var t1 = Task . Run ( ( ) = > {
StockManager . CloseTray ( 1 ) ;
} ) ;
var t2 = Task . Run ( ( ) = > {
StockManager . CloseTray ( 2 ) ;
} ) ;
var t3 = Task . Run ( ( ) = > {
StockManager . CloseTray ( 3 ) ;
} ) ;
Task . WaitAll ( new [ ] { t1 , t2 , t3 } ) ;
var t4 = Task . Run ( ( ) = > {
StockManager . OpenTray ( 1 ) ;
} ) ;
var t5 = Task . Run ( ( ) = > {
StockManager . OpenTray ( 2 ) ;
} ) ;
var t6 = Task . Run ( ( ) = > {
StockManager . OpenTray ( 3 ) ;
} ) ;
Task . WaitAll ( new [ ] { t4 , t5 , t6 } ) ;
//StockManager.CloseTray(1);
//StockManager.CloseTray(2);
//StockManager.CloseTray(3);
//StockManager.OpenTray(1);
//StockManager.OpenTray(2);
//StockManager.OpenTray(3);
StockManager . ClampAfterReleaseAll ( ) ;
flowStep = EDischargeFlowStep . 工 作 前 准 备 ;
}
}