warehouseController.setVisibleColumn("warehouseCodeWAR01", true);
warehouseController.setVisibleColumn("descriptionWAR01", true);
warehouseController.setPreferredWidthColumn("warehouseCodeWAR01", 100);
warehouseController.setPreferredWidthColumn("descriptionWAR01", 250);
warehouseController.setFramePreferedSize(new Dimension(400,500));
warehouseController.addLookupListener(new LookupListener() {
public void beforeLookupAction(ValueObject parentVO) {
UserParametersVO vo = (UserParametersVO)retailPanel.getVOModel().getValueObject();
if (vo!=null) {
warehouseDataLocator.getLookupFrameParams().put(ApplicationConsts.COMPANY_CODE_SYS01,vo.getCompanyCodeSys01SYS19());
warehouseDataLocator.getLookupValidationParameters().put(ApplicationConsts.COMPANY_CODE_SYS01,vo.getCompanyCodeSys01SYS19());
}
}
public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) { }
public void codeValidated(boolean validated) { }
public void forceValidate() { }
});
// credit account code lookup...
controlCreditsCode.setLookupController(creditController);
controlCreditsCode.setControllerMethodName("getAccounts");
creditController.setLookupDataLocator(creditDataLocator);
creditDataLocator.setGridMethodName("loadAccounts");
creditDataLocator.setValidationMethodName("validateAccountCode");
creditController.setFrameTitle("accounts");
creditController.setLookupValueObjectClassName("org.jallinone.accounting.accounts.java.AccountVO");
creditController.addLookup2ParentLink("accountCodeACC02", "creditAccountCodeAcc02SAL07");
creditController.addLookup2ParentLink("descriptionSYS10","creditAccountDescrSAL07");
creditController.setFramePreferedSize(new Dimension(400,400));
creditController.setAllColumnVisible(false);
creditController.setVisibleColumn("accountCodeACC02", true);
creditController.setVisibleColumn("descriptionSYS10", true);
creditController.setFilterableColumn("accountCodeACC02", true);
creditController.setFilterableColumn("descriptionSYS10", true);
creditController.setSortedColumn("accountCodeACC02", "ASC", 1);
creditController.setSortableColumn("accountCodeACC02", true);
creditController.setSortableColumn("descriptionSYS10", true);
creditController.setPreferredWidthColumn("accountCodeACC02",100);
creditController.setPreferredWidthColumn("descriptionSYS10",290);
creditController.addLookupListener(new LookupListener() {
public void codeValidated(boolean validated) {}
public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) { }
public void beforeLookupAction(ValueObject parentVO) {
creditDataLocator.getLookupFrameParams().put(ApplicationConsts.COMPANY_CODE_SYS01,controlCompanies.getValue());
creditDataLocator.getLookupValidationParameters().put(ApplicationConsts.COMPANY_CODE_SYS01,controlCompanies.getValue());
}
public void forceValidate() {}
});
// items account code lookup...
controlItemsCode.setLookupController(itemsController);
controlItemsCode.setControllerMethodName("getAccounts");
itemsController.setLookupDataLocator(itemsDataLocator);
itemsDataLocator.setGridMethodName("loadAccounts");
itemsDataLocator.setValidationMethodName("validateAccountCode");
itemsController.setFrameTitle("accounts");
itemsController.setLookupValueObjectClassName("org.jallinone.accounting.accounts.java.AccountVO");
itemsController.addLookup2ParentLink("accountCodeACC02", "itemsAccountCodeAcc02SAL07");
itemsController.addLookup2ParentLink("descriptionSYS10","itemsAccountDescrSAL07");
itemsController.setFramePreferedSize(new Dimension(400,400));
itemsController.setAllColumnVisible(false);
itemsController.setFilterableColumn("accountCodeACC02", true);
itemsController.setFilterableColumn("descriptionSYS10", true);
itemsController.setSortedColumn("accountCodeACC02", "ASC", 1);
itemsController.setSortableColumn("accountCodeACC02", true);
itemsController.setSortableColumn("descriptionSYS10", true);
itemsController.setVisibleColumn("accountCodeACC02", true);
itemsController.setVisibleColumn("descriptionSYS10", true);
itemsController.setPreferredWidthColumn("accountCodeACC02",100);
itemsController.setPreferredWidthColumn("descriptionSYS10",290);
itemsController.addLookupListener(new LookupListener() {
public void codeValidated(boolean validated) {}
public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) { }
public void beforeLookupAction(ValueObject parentVO) {
itemsDataLocator.getLookupFrameParams().put(ApplicationConsts.COMPANY_CODE_SYS01,controlCompanies.getValue());
itemsDataLocator.getLookupValidationParameters().put(ApplicationConsts.COMPANY_CODE_SYS01,controlCompanies.getValue());
}
public void forceValidate() {}
});
// activities account code lookup...
controlActCode.setLookupController(actController);
controlActCode.setControllerMethodName("getAccounts");
actController.setLookupDataLocator(actDataLocator);
actDataLocator.setGridMethodName("loadAccounts");
actDataLocator.setValidationMethodName("validateAccountCode");
actController.setFrameTitle("accounts");
actController.setLookupValueObjectClassName("org.jallinone.accounting.accounts.java.AccountVO");
actController.addLookup2ParentLink("accountCodeACC02", "activitiesAccountCodeAcc02SAL07");
actController.addLookup2ParentLink("descriptionSYS10","activitiesAccountDescrSAL07");
actController.setFramePreferedSize(new Dimension(400,400));
actController.setAllColumnVisible(false);
actController.setFilterableColumn("accountCodeACC02", true);
actController.setFilterableColumn("descriptionSYS10", true);
actController.setSortedColumn("accountCodeACC02", "ASC", 1);
actController.setSortableColumn("accountCodeACC02", true);
actController.setSortableColumn("descriptionSYS10", true);
actController.setVisibleColumn("accountCodeACC02", true);
actController.setVisibleColumn("descriptionSYS10", true);
actController.setPreferredWidthColumn("accountCodeACC02",100);
actController.setPreferredWidthColumn("descriptionSYS10",290);
actController.addLookupListener(new LookupListener() {
public void codeValidated(boolean validated) {}
public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) { }
public void beforeLookupAction(ValueObject parentVO) {
actDataLocator.getLookupFrameParams().put(ApplicationConsts.COMPANY_CODE_SYS01,controlCompanies.getValue());
actDataLocator.getLookupValidationParameters().put(ApplicationConsts.COMPANY_CODE_SYS01,controlCompanies.getValue());
}
public void forceValidate() {}
});
// charges account code lookup...
controlChargesCode.setLookupController(chargesController);
controlChargesCode.setControllerMethodName("getAccounts");
chargesController.setLookupDataLocator(chargesDataLocator);
chargesDataLocator.setGridMethodName("loadAccounts");
chargesDataLocator.setValidationMethodName("validateAccountCode");
chargesController.setFrameTitle("accounts");
chargesController.setLookupValueObjectClassName("org.jallinone.accounting.accounts.java.AccountVO");
chargesController.addLookup2ParentLink("accountCodeACC02", "chargesAccountCodeAcc02SAL07");
chargesController.addLookup2ParentLink("descriptionSYS10","chargesAccountDescrSAL07");
chargesController.setFramePreferedSize(new Dimension(400,400));
chargesController.setAllColumnVisible(false);
chargesController.setFilterableColumn("accountCodeACC02", true);
chargesController.setFilterableColumn("descriptionSYS10", true);
chargesController.setSortedColumn("accountCodeACC02", "ASC", 1);
chargesController.setSortableColumn("accountCodeACC02", true);
chargesController.setSortableColumn("descriptionSYS10", true);
chargesController.setVisibleColumn("accountCodeACC02", true);
chargesController.setVisibleColumn("descriptionSYS10", true);
chargesController.setPreferredWidthColumn("accountCodeACC02",100);
chargesController.setPreferredWidthColumn("descriptionSYS10",290);
chargesController.addLookupListener(new LookupListener() {
public void codeValidated(boolean validated) {}
public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) { }
public void beforeLookupAction(ValueObject parentVO) {
chargesDataLocator.getLookupFrameParams().put(ApplicationConsts.COMPANY_CODE_SYS01,controlCompanies.getValue());
chargesDataLocator.getLookupValidationParameters().put(ApplicationConsts.COMPANY_CODE_SYS01,controlCompanies.getValue());
}
public void forceValidate() {}
});
// debit account code lookup...
controlDebitsCode.setLookupController(debitController);
controlDebitsCode.setControllerMethodName("getAccounts");
debitController.setLookupDataLocator(debitDataLocator);
debitDataLocator.setGridMethodName("loadAccounts");
debitDataLocator.setValidationMethodName("validateAccountCode");
debitController.setFrameTitle("accounts");
debitController.setLookupValueObjectClassName("org.jallinone.accounting.accounts.java.AccountVO");
debitController.addLookup2ParentLink("accountCodeACC02", "debitAccountCodeAcc02PUR01");
debitController.addLookup2ParentLink("descriptionSYS10","debitAccountDescrPUR01");
debitController.setFramePreferedSize(new Dimension(400,400));
debitController.setAllColumnVisible(false);
debitController.setVisibleColumn("accountCodeACC02", true);
debitController.setVisibleColumn("descriptionSYS10", true);
debitController.setFilterableColumn("accountCodeACC02", true);
debitController.setFilterableColumn("descriptionSYS10", true);
debitController.setSortedColumn("accountCodeACC02", "ASC", 1);
debitController.setSortableColumn("accountCodeACC02", true);
debitController.setSortableColumn("descriptionSYS10", true);
debitController.setPreferredWidthColumn("accountCodeACC02",100);
debitController.setPreferredWidthColumn("descriptionSYS10",290);
debitController.addLookupListener(new LookupListener() {
public void codeValidated(boolean validated) {}
public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) { }
public void beforeLookupAction(ValueObject parentVO) {
debitDataLocator.getLookupFrameParams().put(ApplicationConsts.COMPANY_CODE_SYS01,controlCompanies.getValue());
debitDataLocator.getLookupValidationParameters().put(ApplicationConsts.COMPANY_CODE_SYS01,controlCompanies.getValue());
}
public void forceValidate() {}
});
// costs account code lookup...
controlCostsCode.setLookupController(costsController);
controlCostsCode.setControllerMethodName("getAccounts");
costsController.setLookupDataLocator(costsDataLocator);
costsDataLocator.setGridMethodName("loadAccounts");
costsDataLocator.setValidationMethodName("validateAccountCode");
costsController.setFrameTitle("accounts");
costsController.setLookupValueObjectClassName("org.jallinone.accounting.accounts.java.AccountVO");
costsController.addLookup2ParentLink("accountCodeACC02", "costsAccountCodeAcc02PUR01");
costsController.addLookup2ParentLink("descriptionSYS10","costsAccountDescrPUR01");
costsController.setFramePreferedSize(new Dimension(400,400));
costsController.setAllColumnVisible(false);
costsController.setVisibleColumn("accountCodeACC02", true);
costsController.setVisibleColumn("descriptionSYS10", true);
costsController.setFilterableColumn("accountCodeACC02", true);
costsController.setFilterableColumn("descriptionSYS10", true);
costsController.setSortedColumn("accountCodeACC02", "ASC", 1);
costsController.setSortableColumn("accountCodeACC02", true);
costsController.setSortableColumn("descriptionSYS10", true);
costsController.setPreferredWidthColumn("accountCodeACC02",100);
costsController.setPreferredWidthColumn("descriptionSYS10",290);
costsController.addLookupListener(new LookupListener() {
public void codeValidated(boolean validated) {}
public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) { }
public void beforeLookupAction(ValueObject parentVO) {
costsDataLocator.getLookupFrameParams().put(ApplicationConsts.COMPANY_CODE_SYS01,controlCompanies.getValue());
costsDataLocator.getLookupValidationParameters().put(ApplicationConsts.COMPANY_CODE_SYS01,controlCompanies.getValue());
}
public void forceValidate() {}
});
// case account code lookup...
controlCaseCode.setLookupController(caseController);
controlCaseCode.setControllerMethodName("getAccounts");
caseController.setLookupDataLocator(caseDataLocator);
caseDataLocator.setGridMethodName("loadAccounts");
caseDataLocator.setValidationMethodName("validateAccountCode");
caseController.setFrameTitle("accounts");
caseController.setLookupValueObjectClassName("org.jallinone.accounting.accounts.java.AccountVO");
caseController.addLookup2ParentLink("accountCodeACC02", "caseAccountCodeAcc02DOC19");
caseController.addLookup2ParentLink("descriptionSYS10","caseAccountDescrDOC19");
caseController.setFramePreferedSize(new Dimension(400,400));
caseController.setAllColumnVisible(false);
caseController.setVisibleColumn("accountCodeACC02", true);
caseController.setVisibleColumn("descriptionSYS10", true);
caseController.setFilterableColumn("accountCodeACC02", true);
caseController.setFilterableColumn("descriptionSYS10", true);
caseController.setSortedColumn("accountCodeACC02", "ASC", 1);
caseController.setSortableColumn("accountCodeACC02", true);
caseController.setSortableColumn("descriptionSYS10", true);
caseController.setPreferredWidthColumn("accountCodeACC02",100);
caseController.setPreferredWidthColumn("descriptionSYS10",290);
caseController.addLookupListener(new LookupListener() {
public void codeValidated(boolean validated) {}
public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) { }
public void beforeLookupAction(ValueObject parentVO) {
caseDataLocator.getLookupFrameParams().put(ApplicationConsts.COMPANY_CODE_SYS01,controlCompanies.getValue());
caseDataLocator.getLookupValidationParameters().put(ApplicationConsts.COMPANY_CODE_SYS01,controlCompanies.getValue());
}
public void forceValidate() {}
});
// bank account code lookup...
controlBankCode.setLookupController(bankController);
controlBankCode.setControllerMethodName("getAccounts");
bankController.setLookupDataLocator(bankDataLocator);
bankDataLocator.setGridMethodName("loadAccounts");
bankDataLocator.setValidationMethodName("validateAccountCode");
bankController.setFrameTitle("accounts");
bankController.setLookupValueObjectClassName("org.jallinone.accounting.accounts.java.AccountVO");
bankController.addLookup2ParentLink("accountCodeACC02", "bankAccountCodeAcc02DOC19");
bankController.addLookup2ParentLink("descriptionSYS10","bankAccountDescrDOC19");
bankController.setFramePreferedSize(new Dimension(400,400));
bankController.setAllColumnVisible(false);
bankController.setVisibleColumn("accountCodeACC02", true);
bankController.setVisibleColumn("descriptionSYS10", true);
bankController.setFilterableColumn("accountCodeACC02", true);
bankController.setFilterableColumn("descriptionSYS10", true);
bankController.setSortedColumn("accountCodeACC02", "ASC", 1);
bankController.setSortableColumn("accountCodeACC02", true);
bankController.setSortableColumn("descriptionSYS10", true);
bankController.setPreferredWidthColumn("accountCodeACC02",100);
bankController.setPreferredWidthColumn("descriptionSYS10",290);
bankController.addLookupListener(new LookupListener() {
public void codeValidated(boolean validated) {}
public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) { }
public void beforeLookupAction(ValueObject parentVO) {
bankDataLocator.getLookupFrameParams().put(ApplicationConsts.COMPANY_CODE_SYS01,controlCompanies.getValue());
bankDataLocator.getLookupValidationParameters().put(ApplicationConsts.COMPANY_CODE_SYS01,controlCompanies.getValue());
}
public void forceValidate() {}
});
// vatEnd account code lookup...
controlVatEndCode.setLookupController(vatEndController);
controlVatEndCode.setControllerMethodName("getAccounts");
vatEndController.setLookupDataLocator(vatEndDataLocator);
vatEndDataLocator.setGridMethodName("loadAccounts");
vatEndDataLocator.setValidationMethodName("validateAccountCode");
vatEndController.setFrameTitle("accounts");
vatEndController.setLookupValueObjectClassName("org.jallinone.accounting.accounts.java.AccountVO");
vatEndController.addLookup2ParentLink("accountCodeACC02", "vatEndAccountCodeAcc02DOC19");
vatEndController.addLookup2ParentLink("descriptionSYS10","vatEndAccountDescrDOC19");
vatEndController.setFramePreferedSize(new Dimension(400,400));
vatEndController.setAllColumnVisible(false);
vatEndController.setVisibleColumn("accountCodeACC02", true);
vatEndController.setVisibleColumn("descriptionSYS10", true);
vatEndController.setFilterableColumn("accountCodeACC02", true);
vatEndController.setFilterableColumn("descriptionSYS10", true);
vatEndController.setSortedColumn("accountCodeACC02", "ASC", 1);
vatEndController.setSortableColumn("accountCodeACC02", true);
vatEndController.setSortableColumn("descriptionSYS10", true);
vatEndController.setPreferredWidthColumn("accountCodeACC02",100);
vatEndController.setPreferredWidthColumn("descriptionSYS10",290);
vatEndController.addLookupListener(new LookupListener() {
public void codeValidated(boolean validated) {}
public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) { }