setSize(750,640);
setMinimumSize(new Dimension(750,640));
organizationPanel.setFunctionId("REG04_CONTACTS");
organizationPanel.setVOClassName("org.jallinone.subjects.java.OrganizationVO");
organizationPanel.getVOModel().setValueObject(new OrganizationVO());
organizationPanel.setFormController(callOutSubjectController);
organizationPanel.setInsertButton(insertButton5);
organizationPanel.setEditButton(editButton5);
organizationPanel.setSaveButton(saveButton5);
organizationPanel.setReloadButton(reloadButton5);
peoplePanel.setFunctionId("REG04_CONTACTS");
peoplePanel.setVOClassName("org.jallinone.subjects.java.PeopleVO");
peoplePanel.getVOModel().setValueObject(new PeopleVO());
peoplePanel.setFormController(callOutSubjectController);
peoplePanel.setInsertButton(insertButton5);
peoplePanel.setEditButton(editButton5);
peoplePanel.setSaveButton(saveButton5);
peoplePanel.setReloadButton(reloadButton5);
calloutPanel.setFormController(controller);
CustomizedControls customizedControls = new CustomizedControls(tab,calloutPanel,ApplicationConsts.ID_CALL_OUTS);
// people lookup...
peopleDataLocator.setGridMethodName("loadSubjectPerName");
peopleDataLocator.setValidationMethodName("");
filterPeopleButton.setLookupController(peopleController);
peopleController.setLookupDataLocator(peopleDataLocator);
peopleController.setFrameTitle("people");
peopleController.setLookupValueObjectClassName("org.jallinone.subjects.java.PeopleVO");
peopleController.setAllColumnVisible(false);
peopleController.setVisibleColumn("name_1REG04", true);
peopleController.setVisibleColumn("name_2REG04", true);
peopleController.setVisibleColumn("addressREG04", true);
peopleController.setVisibleColumn("cityREG04", true);
peopleController.setVisibleColumn("provinceREG04", true);
peopleController.setVisibleColumn("countryREG04", true);
peopleController.setVisibleColumn("zipREG04", true);
peopleController.setHeaderColumnName("addressREG04", "address");
peopleController.setHeaderColumnName("cityREG04", "city");
peopleController.setHeaderColumnName("provinceREG04", "prov");
peopleController.setHeaderColumnName("countryREG04", "country");
peopleController.setHeaderColumnName("zipREG04", "zip");
peopleController.setPreferredWidthColumn("name_1REG04", 120);
peopleController.setPreferredWidthColumn("name_2REG04", 120);
peopleController.setPreferredWidthColumn("addressREG04", 200);
peopleController.setPreferredWidthColumn("provinceREG04", 50);
peopleController.setPreferredWidthColumn("countryREG04", 70);
peopleController.setPreferredWidthColumn("zipREG04", 50);
peopleController.setFramePreferedSize(new Dimension(740,500));
peopleController.addLookupListener(new LookupListener() {
public void codeValidated(boolean validated) {}
public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) {
PeopleVO vo = (PeopleVO)peopleController.getLookupVO();
peoplePanel.getVOModel().setValueObject(vo);
peoplePanel.setMode(Consts.READONLY);
peoplePanel.pull();
tab.setEnabledAt(1,true);
controlCompaniesCombo.setEnabled(false);
controlSubjectType.setEnabled(false);
}
public void beforeLookupAction(ValueObject parentVO) {
peopleDataLocator.getLookupFrameParams().put(ApplicationConsts.COMPANY_CODE_SYS01,controlCompaniesCombo.getValue());
peopleDataLocator.getLookupFrameParams().put(ApplicationConsts.SUBJECT_TYPE,ApplicationConsts.SUBJECT_PEOPLE);
}
public void forceValidate() {}
});
// organization lookup...
orgDataLocator.setGridMethodName("loadSubjectPerName");
orgDataLocator.setValidationMethodName("");
filterOrgButton.setLookupController(orgController);
orgController.setLookupDataLocator(orgDataLocator);
orgController.setFrameTitle("organizations");
orgController.setLookupValueObjectClassName("org.jallinone.subjects.java.OrganizationVO");
orgController.setAllColumnVisible(false);
orgController.setVisibleColumn("name_1REG04", true);
orgController.setVisibleColumn("addressREG04", true);
orgController.setVisibleColumn("cityREG04", true);
orgController.setVisibleColumn("provinceREG04", true);
orgController.setVisibleColumn("countryREG04", true);
orgController.setVisibleColumn("zipREG04", true);
orgController.setHeaderColumnName("addressREG04", "address");
orgController.setHeaderColumnName("cityREG04", "city");
orgController.setHeaderColumnName("provinceREG04", "prov");
orgController.setHeaderColumnName("countryREG04", "country");
orgController.setHeaderColumnName("zipREG04", "zip");
orgController.setPreferredWidthColumn("name_1REG04", 150);
orgController.setPreferredWidthColumn("addressREG04", 200);
orgController.setPreferredWidthColumn("provinceREG04", 50);
orgController.setPreferredWidthColumn("zipREG04", 50);
orgController.setFramePreferedSize(new Dimension(740,500));
orgController.addLookupListener(new LookupListener() {
public void codeValidated(boolean validated) {}
public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) {
OrganizationVO vo = (OrganizationVO)orgController.getLookupVO();
organizationPanel.getVOModel().setValueObject(vo);
organizationPanel.setMode(Consts.READONLY);
organizationPanel.pull();
tab.setEnabledAt(1,true);
controlCompaniesCombo.setEnabled(false);
controlSubjectType.setEnabled(false);
}
public void beforeLookupAction(ValueObject parentVO) {
orgDataLocator.getLookupFrameParams().put(ApplicationConsts.COMPANY_CODE_SYS01,controlCompaniesCombo.getValue());
orgDataLocator.getLookupFrameParams().put(ApplicationConsts.SUBJECT_TYPE,ApplicationConsts.SUBJECT_ORGANIZATION);
}
public void forceValidate() {}
});
// call-out code lookup...
callOutDataLocator.setGridMethodName("loadCallOuts");
callOutDataLocator.setValidationMethodName("validateCallOutCode");
controlCallOutCode.setLookupController(callOutController);
controlCallOutCode.setControllerMethodName("getCallOuts");
callOutController.setCodeSelectionWindow(callOutController.TREE_GRID_FRAME);
callOutController.setLookupDataLocator(callOutDataLocator);
callOutTreeLevelDataLocator.setServerMethodName("loadCompanyHierarchy");
callOutDataLocator.setTreeDataLocator(callOutTreeLevelDataLocator);
callOutController.setFrameTitle("call-outs");
callOutController.setLookupValueObjectClassName("org.jallinone.scheduler.callouts.java.CallOutVO");
callOutController.addLookup2ParentLink("callOutCodeSCH10", "callOutCodeSch10SCH03");
callOutController.addLookup2ParentLink("descriptionSYS10", "callOutDescriptionSYS10");
callOutController.setAllColumnVisible(false);
callOutController.setVisibleColumn("callOutCodeSCH10", true);
callOutController.setVisibleColumn("descriptionSYS10", true);
callOutController.setPreferredWidthColumn("descriptionSYS10",250);
callOutController.setFramePreferedSize(new Dimension(600,500));
callOutDataLocator.setNodeNameAttribute("descriptionSYS10");
callOutController.addLookupListener(new LookupListener() {
public void codeValidated(boolean validated) {}
public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) {
DetailCallOutRequestVO vo = (DetailCallOutRequestVO)calloutPanel.getVOModel().getValueObject();
vo.setDescriptionSCH03(vo.getCallOutDescriptionSYS10());
calloutPanel.pull("descriptionSCH03");
}
public void beforeLookupAction(ValueObject parentVO) {
DetailCallOutRequestVO vo = (DetailCallOutRequestVO)calloutPanel.getVOModel().getValueObject();
if (vo.getCompanyCodeSys01SCH03()==null)
vo.setCompanyCodeSys01SCH03((String)controlCompaniesCombo.getValue());
callOutTreeLevelDataLocator.getTreeNodeParams().put(ApplicationConsts.PROGRESSIVE_HIE02,vo.getProgressiveHie02SCH10());
callOutTreeLevelDataLocator.getTreeNodeParams().put(ApplicationConsts.COMPANY_CODE_SYS01,vo.getCompanyCodeSys01SCH03());
callOutDataLocator.getLookupFrameParams().put(ApplicationConsts.PROGRESSIVE_HIE02,vo.getProgressiveHie02SCH10());
callOutDataLocator.getLookupValidationParameters().put(ApplicationConsts.PROGRESSIVE_HIE02,vo.getProgressiveHie02SCH10());
callOutDataLocator.getLookupFrameParams().put(ApplicationConsts.COMPANY_CODE_SYS01,vo.getCompanyCodeSys01SCH03());
callOutDataLocator.getLookupValidationParameters().put(ApplicationConsts.COMPANY_CODE_SYS01,vo.getCompanyCodeSys01SCH03());
}
public void forceValidate() {}
});