use of com.storedobject.ui.Application in project SODevelopment by syampillai.
the class Statement method process.
@Override
protected boolean process() {
close();
Application a = Application.get();
PDFReport statement = new com.storedobject.report.AccountStatement(a, accountField.getObject(), datePeriodField.getValue());
a.view("Statement", statement);
return true;
}
use of com.storedobject.ui.Application in project SODevelopment by syampillai.
the class TrialBalance method process.
@Override
protected boolean process() {
close();
if (systemEntity == null) {
systemEntity = entityField.getObject();
}
if (date == null) {
date = dateField.getValue();
}
Application a = Application.get();
a.view("Trial Balance", new com.storedobject.report.TrialBalance(a, systemEntity, date));
return true;
}
use of com.storedobject.ui.Application in project SODevelopment by syampillai.
the class DataTransfer method process.
@Override
protected boolean process() {
if (getObjectClass() == null) {
return true;
}
if (actionField.getValue() == 0) {
TextContentProducer cp = new TextContentProducer() {
@Override
public void generateContent() throws Exception {
Writer w = getWriter();
for (StoredObject so : StoredObject.list(objectClass, where, orderBy, any)) {
so.save(w);
}
}
};
((Application) getApplication()).view(cp);
return true;
}
return true;
}
use of com.storedobject.ui.Application in project SODevelopment by syampillai.
the class SelectStore method getStore.
public static InventoryStore getStore() {
Application a = Application.get();
if (a == null) {
return null;
}
Assignment assignment = a.getData(Assignment.class);
if (assignment != null && assignment.store != null) {
return assignment.store;
}
InventoryStore store = a.getTransactionManager().getUser().listLinks(InventoryStore.class, true).single(false);
if (store == null) {
return null;
}
if (assignment == null) {
assignment = new Assignment();
a.setData(Assignment.class, assignment);
}
assignment.store = store;
return store;
}
Aggregations