Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Piano Economico Progetto - Gestione Tab per anno
- Loading branch information
1 parent
8626552
commit fe3e79e
Showing
10 changed files
with
384 additions
and
79 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
...jb/src/main/java/it/cnr/contab/progettiric00/bp/ProgettoPianoEconomicoCRUDController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package it.cnr.contab.progettiric00.bp; | ||
|
||
import java.rmi.RemoteException; | ||
|
||
import it.cnr.contab.progettiric00.core.bulk.ProgettoBulk; | ||
import it.cnr.contab.util.Utility; | ||
import it.cnr.jada.action.ActionContext; | ||
import it.cnr.jada.bulk.OggettoBulk; | ||
import it.cnr.jada.bulk.ValidationException; | ||
import it.cnr.jada.comp.ComponentException; | ||
|
||
public class ProgettoPianoEconomicoCRUDController extends it.cnr.jada.util.action.SimpleDetailCRUDController { | ||
|
||
public ProgettoPianoEconomicoCRUDController(String name, Class modelClass, String listPropertyName, it.cnr.jada.util.action.FormController parent) { | ||
super(name, modelClass, listPropertyName, parent); | ||
} | ||
|
||
public void validateForDelete(ActionContext context, OggettoBulk detail) throws ValidationException | ||
{ | ||
if (!detail.isToBeCreated()) { | ||
try { | ||
Utility.createProgettoRicercaComponentSession().validaCancellazionePianoEconomicoAssociato( | ||
context.getUserContext(), | ||
(ProgettoBulk)getParentModel(), | ||
detail); | ||
} catch (ComponentException e) { | ||
throw new ValidationException(e.getMessage()); | ||
} catch (RemoteException e) { | ||
throw new ValidationException(e.getMessage()); | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.