@ -790,12 +790,21 @@ namespace Rs.MotionPlat
SysConfigParam . Update ( "TestMode" , cboxTestMode . SelectedItem . ToString ( ) ) ;
if ( cboxTestMode . SelectedItem ! = null & & ( cboxTestMode . SelectedItem . ToString ( ) = = "GRR" | | cboxTestMode . SelectedItem . ToString ( ) = = "AUDIT" ) )
{
SysConfigParam . Update ( "GrrProductNum" , txtGrrProductNum . Text ) ;
SysConfigParam . Update ( "GrrTestNum" , txtGrrTestNum . Text ) ;
GlobalTray . GrrTray . ChangeStatus ( ESlotStatus . NotHave ) ;
for ( int i = 0 ; i < GlobalVar . GrrProductNum ; i + + )
int . TryParse ( txtGrrProductNum . Text , out int productNum ) ;
if ( productNum > TestFixtureManager . Instance . GetEnableFixtureList ( ) . Count + 1 & & cboxTestMode . SelectedItem . ToString ( ) = = "GRR" )
{
Msg . ShowError ( "1. The number of products can be less than that of the fixtures.\r\n2. The number of products is equal to that of the fixtures.\r\n3. The number of products is 1 more than that of the fixtures." ) ;
return ;
}
else
{
GlobalTray . GrrTray . ChangeStatus ( i + 1 , ESlotStatus . Have ) ;
SysConfigParam . Update ( "GrrProductNum" , txtGrrProductNum . Text ) ;
SysConfigParam . Update ( "GrrTestNum" , txtGrrTestNum . Text ) ;
GlobalTray . GrrTray . ChangeStatus ( ESlotStatus . NotHave ) ;
for ( int i = 0 ; i < GlobalVar . GrrProductNum ; i + + )
{
GlobalTray . GrrTray . ChangeStatus ( i + 1 , ESlotStatus . Have ) ;
}
}
}
SysConfigParam . Update ( "Mtcp" , cboxMtcp . Checked . ToString ( ) ) ;