18 package org.turro.financials.portfolio;
20 import java.util.Collection;
21 import java.util.Date;
22 import org.turro.financials.contract.logic.ContractWrapper;
23 import org.turro.financials.document.logic.DocumentDefinitionWrapper;
24 import org.turro.financials.entity.Contract;
25 import org.turro.financials.entity.DocumentDefinition;
26 import org.turro.financials.model.contract.ContractSortedSet;
27 import org.turro.i18n.I_;
28 import org.turro.zul.frame.Framework;
36 private boolean accumulated =
false, autosave =
false,
37 stopOnContract =
true, conciliateRegister =
false;
38 private int storeMode = 0;
40 private int dateMode = 0;
46 this.documentDefinition = documentDefinition;
47 this.contract = contract;
63 this.accumulated = accumulated;
68 return I_.
format(
"Accumulate in a single %s", documentDefinition.
getName());
76 this.autosave = autosave;
98 this.dateMode = dateMode;
103 return stopOnContract;
107 this.stopOnContract = stopOnContract;
125 this.storeMode = storeMode;
130 return conciliateRegister;
134 this.conciliateRegister = conciliateRegister;
139 Collection<Contract> stores;
142 if(stores.isEmpty()) {
String getFullDescription()
static void clearInactives(Collection< Contract > contracts)
Collection< Contract > getRelatedStores(Contract contract)
String getAccumulatedString()
boolean isStopOnContract()
PortfolioOptions(DocumentDefinition documentDefinition, Contract contract)
String getContractString()
void setStoreMode(int storeMode)
void setConciliateRegister(boolean conciliateRegister)
void setStore(Contract store)
void setAccumulated(boolean accumulated)
boolean isConciliateRegister()
void setDateMode(int dateMode)
void setAutosave(boolean autosave)
void setStopOnContract(boolean stopOnContract)
static String format(String msg, Object... arguments)
static Object getAttribute(Object object, String key)
static void setAttribute(Object object, String key, Object value)