◆ afterSave()
void org.turro.financials.document.logic.DocumentComposer.afterSave |
( |
| ) |
|
◆ beforeDelete()
boolean org.turro.financials.document.logic.DocumentComposer.beforeDelete |
( |
| ) |
|
|
protected |
◆ beforeSave()
boolean org.turro.financials.document.logic.DocumentComposer.beforeSave |
( |
| ) |
|
|
protected |
◆ doFinally()
void org.turro.financials.document.logic.DocumentComposer.doFinally |
( |
| ) |
throws Exception |
Reimplemented from org.turro.jpa.composer.EntityComposer< E, ID >.
Definition at line 382 of file DocumentComposer.java.
385 acceptance.setVisible(
false);
386 entInf.setVisible(
false);
387 properties.setVisible(
false);
389 contract.setVisible(
false);
399 updateExpiriesOptions();
403 reportsend.setImage(Images.getImage(
"mail_send"));
404 reportsend.setTooltiptext(I_.get(
"Send documents"));
void setEntity(Object entity)
void setContract(Contract contract)
void setContractDefinition(ContractDefinition contractDefinition)
void setGrid(DocumentLinesGrid grid)
void setDocument(Document document)
◆ doOnDelete()
void org.turro.financials.document.logic.DocumentComposer.doOnDelete |
( |
| ) |
|
|
protected |
Reimplemented from org.turro.jpa.composer.EntityComposer< E, ID >.
Definition at line 324 of file DocumentComposer.java.
325 DocumentWrapper w = (DocumentWrapper)
getWrapper();
326 PhraseBuilder pb =
new PhraseBuilder();
327 boolean wrongDate = !w.checkSave(pb);
328 boolean batchs = !w.checkBatchs(pb);
329 if(wrongDate || batchs) {
331 Messages.info(I_.get(
"Can't delete")).add(pb.toString()).show();
333 }
else if(wrongDate && !Application.getApplication().isInRole(
"finan-model:edit")) {
335 Messages.info(I_.get(
"Can't delete")).add(pb.toString()).show();
337 pb.addWord(I_.get(
"Proceed anyway"));
338 Messages.question().add(pb.toString()).show(() -> {
339 DocumentComposer.super.doOnDelete();
◆ doOnSave()
void org.turro.financials.document.logic.DocumentComposer.doOnSave |
( |
| ) |
|
|
protected |
Reimplemented from org.turro.jpa.composer.EntityComposer< E, ID >.
Definition at line 348 of file DocumentComposer.java.
349 DocumentWrapper w = (DocumentWrapper)
getWrapper();
350 PhraseBuilder pb =
new PhraseBuilder();
351 boolean wrongDate = !w.checkSave(pb);
352 boolean duplicates = !w.checkDuplicates(pb);
353 if(wrongDate || duplicates) {
354 if(wrongDate && !Application.getApplication().isInRole(
"finan-model:edit")) {
356 Messages.info(I_.get(
"Can't delete")).add(pb.toString()).show();
358 pb.addWord(I_.get(
"Proceed anyway"));
359 Messages.question().add(pb.toString()).show(() -> {
360 DocumentComposer.super.doOnSave();
◆ getAttributeName()
String org.turro.financials.document.logic.DocumentComposer.getAttributeName |
( |
| ) |
|
|
protected |
◆ getEntityInstance()
Document org.turro.financials.document.logic.DocumentComposer.getEntityInstance |
( |
Long |
id | ) |
|
|
protected |
◆ getWrapperInstance()
DaoEntity org.turro.financials.document.logic.DocumentComposer.getWrapperInstance |
( |
Component |
comp | ) |
|
|
protected |
◆ inDeleteRole()
boolean org.turro.financials.document.logic.DocumentComposer.inDeleteRole |
( |
| ) |
|
|
protected |
◆ inSaveRole()
boolean org.turro.financials.document.logic.DocumentComposer.inSaveRole |
( |
| ) |
|
|
protected |
◆ onAppendRow()
void org.turro.financials.document.logic.DocumentComposer.onAppendRow |
( |
| ) |
|
◆ onContractChange()
void org.turro.financials.document.logic.DocumentComposer.onContractChange |
( |
| ) |
|
Definition at line 183 of file DocumentComposer.java.
185 DocumentWrapper w = (DocumentWrapper)
getWrapper();
194 updateExpiriesOptions();
void updateContractDefinition(ContractDefinition contractDefinition)
void updateDocument(Document document)
◆ onCopyLines()
void org.turro.financials.document.logic.DocumentComposer.onCopyLines |
( |
| ) |
|
◆ onDeleteRow()
void org.turro.financials.document.logic.DocumentComposer.onDeleteRow |
( |
| ) |
|
◆ onDocProcess()
void org.turro.financials.document.logic.DocumentComposer.onDocProcess |
( |
| ) |
|
◆ onDocumentClone()
void org.turro.financials.document.logic.DocumentComposer.onDocumentClone |
( |
| ) |
|
◆ onDocumentDefinitionChange()
void org.turro.financials.document.logic.DocumentComposer.onDocumentDefinitionChange |
( |
| ) |
|
◆ onInsertRow()
void org.turro.financials.document.logic.DocumentComposer.onInsertRow |
( |
| ) |
|
◆ onLinesChange()
void org.turro.financials.document.logic.DocumentComposer.onLinesChange |
( |
| ) |
|
◆ onPasteLines()
void org.turro.financials.document.logic.DocumentComposer.onPasteLines |
( |
| ) |
|
◆ onProperties()
void org.turro.financials.document.logic.DocumentComposer.onProperties |
( |
| ) |
|
Definition at line 217 of file DocumentComposer.java.
218 DocumentWrapper w = (DocumentWrapper)
getWrapper();
219 w.changeContract(
new Command() {
221 public Object execute(Context context) {
227 updateExpiriesOptions();
◆ onRelationsChange()
void org.turro.financials.document.logic.DocumentComposer.onRelationsChange |
( |
| ) |
|
◆ onSelectBatchOf()
void org.turro.financials.document.logic.DocumentComposer.onSelectBatchOf |
( |
| ) |
|
◆ onSelectExpiries()
void org.turro.financials.document.logic.DocumentComposer.onSelectExpiries |
( |
| ) |
|
◆ onSelectFlow()
void org.turro.financials.document.logic.DocumentComposer.onSelectFlow |
( |
| ) |
|
◆ onSelectLines()
void org.turro.financials.document.logic.DocumentComposer.onSelectLines |
( |
| ) |
|
◆ onSelectRegister()
void org.turro.financials.document.logic.DocumentComposer.onSelectRegister |
( |
| ) |
|
◆ onSelectRelations()
void org.turro.financials.document.logic.DocumentComposer.onSelectRelations |
( |
| ) |
|
◆ retrieveEntity()
void org.turro.financials.document.logic.DocumentComposer.retrieveEntity |
( |
| ) |
|
|
protected |
◆ shouldBeSaved()
boolean org.turro.financials.document.logic.DocumentComposer.shouldBeSaved |
( |
| ) |
|
|
protected |
The documentation for this class was generated from the following file: