|
|
|
|
@ -43,10 +43,10 @@ public class PresencasActionFactory implements ActionFactory<Presenca>
|
|
|
|
|
switch( TIPO )
|
|
|
|
|
{
|
|
|
|
|
case SHST_DESMARCOU:
|
|
|
|
|
return new DesmarcadoSHSTAction( DesmarcadoSHSTAction.MULTIPLE );
|
|
|
|
|
return new DesmarcadoSHSTAction( DesmarcadoSHSTAction.MULTIPLE, objects );
|
|
|
|
|
|
|
|
|
|
case FALTOU:
|
|
|
|
|
return new FaltouAction( FaltouAction.MULTIPLE );
|
|
|
|
|
return new FaltouAction( FaltouAction.MULTIPLE, objects );
|
|
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
return null;
|
|
|
|
|
@ -58,19 +58,19 @@ public class PresencasActionFactory implements ActionFactory<Presenca>
|
|
|
|
|
switch( TIPO )
|
|
|
|
|
{
|
|
|
|
|
case REALIZOU:
|
|
|
|
|
return new RealizouAction();
|
|
|
|
|
return new RealizouAction( object );
|
|
|
|
|
|
|
|
|
|
case REALIZOU_PARCIALMENTE:
|
|
|
|
|
return new RealizouParcialmenteAction( object );
|
|
|
|
|
|
|
|
|
|
case TRABALHADOR_DESMARCOU:
|
|
|
|
|
return new DesmarcadoTrabalhadorAction();
|
|
|
|
|
return new DesmarcadoTrabalhadorAction( object );
|
|
|
|
|
|
|
|
|
|
case SHST_DESMARCOU:
|
|
|
|
|
return new DesmarcadoSHSTAction( DesmarcadoSHSTAction.SINGLE );
|
|
|
|
|
return new DesmarcadoSHSTAction( DesmarcadoSHSTAction.SINGLE, new Presenca[]{ object } );
|
|
|
|
|
|
|
|
|
|
case FALTOU:
|
|
|
|
|
return new FaltouAction( FaltouAction.SINGLE );
|
|
|
|
|
return new FaltouAction( FaltouAction.SINGLE, new Presenca[]{ object } );
|
|
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
return null;
|
|
|
|
|
|