public void codeValidated(boolean validated) {
}
public void codeChanged(ValueObject parentVO, Collection parentChangedAttributes) {
MeasureVO vo = (MeasureVO) umController.getLookupVO();
if (vo.getUmCodeREG02() != null) {
controlMinSellQty.setDecimals(vo.getDecimalsREG02().intValue());
controlMinSellQty.setValue(null);
if (vo.getDecimalsREG02().doubleValue() > 0) {
controlSerialNumRequired.setEnabled(false);
} else if (formPanel.getMode() == Consts.INSERT) {
controlSerialNumRequired.setEnabled(true);
}
} else {
controlSerialNumRequired.setEnabled(false);
}
}
public void beforeLookupAction(ValueObject parentVO) {
}
public void forceValidate() {
}
});
// u.m. gross weight...
controlUMGW.setLookupController(umGWController);
controlUMGW.setControllerMethodName("getMeasureUnitsList");
umGWController.setLookupDataLocator(umDataLocator);
umGWController.setFrameTitle("measures");
umGWController.setLookupValueObjectClassName("org.jallinone.registers.measure.java.MeasureVO");
umGWController.addLookup2ParentLink("umCodeREG02", "grossWeightUmCodeReg02ITM01");
umGWController.addLookup2ParentLink("decimalsREG02", "grossWeightDecimalsREG02");
umGWController.setAllColumnVisible(false);
umGWController.setVisibleColumn("umCodeREG02", true);
CustomizedColumns umGWCust = new CustomizedColumns(ApplicationConsts.ID_UM_GRID, umGWController);
umGWController.addLookupListener(new LookupListener() {
public void codeValidated(boolean validated) {
}
public void codeChanged(ValueObject parentVO, Collection parentChangedAttributes) {
MeasureVO vo = (MeasureVO) umGWController.getLookupVO();
if (vo != null && vo.getDecimalsREG02() != null) {
controlGW.setDecimals(vo.getDecimalsREG02().intValue());
}
controlGW.setValue(null);
}
public void beforeLookupAction(ValueObject parentVO) {
}
public void forceValidate() {
}
});
// u.m. net weight...
controlUMNW.setLookupController(umNWController);
controlUMNW.setControllerMethodName("getMeasureUnitsList");
umNWController.setLookupDataLocator(umDataLocator);
umNWController.setFrameTitle("measures");
umNWController.setLookupValueObjectClassName("org.jallinone.registers.measure.java.MeasureVO");
umNWController.addLookup2ParentLink("umCodeREG02", "netWeightUmCodeReg02ITM01");
umNWController.addLookup2ParentLink("decimalsREG02", "netWeightDecimalsREG02");
umNWController.setAllColumnVisible(false);
umNWController.setVisibleColumn("umCodeREG02", true);
CustomizedColumns umNWCust = new CustomizedColumns(ApplicationConsts.ID_UM_GRID, umNWController);
umNWController.addLookupListener(new LookupListener() {
public void codeValidated(boolean validated) {
}
public void codeChanged(ValueObject parentVO, Collection parentChangedAttributes) {
MeasureVO vo = (MeasureVO) umNWController.getLookupVO();
controlNW.setDecimals(vo.getDecimalsREG02().intValue());
controlNW.setValue(null);
}
public void beforeLookupAction(ValueObject parentVO) {
}
public void forceValidate() {
}
});
// u.m. width...
controlUMW.setLookupController(umWController);
controlUMW.setControllerMethodName("getMeasureUnitsList");
umWController.setLookupDataLocator(umDataLocator);
umWController.setFrameTitle("measures");
umWController.setLookupValueObjectClassName("org.jallinone.registers.measure.java.MeasureVO");
umWController.addLookup2ParentLink("umCodeREG02", "widthUmCodeReg02ITM01");
umWController.addLookup2ParentLink("decimalsREG02", "widthDecimalsREG02");
umWController.setAllColumnVisible(false);
umWController.setVisibleColumn("umCodeREG02", true);
CustomizedColumns umWCust = new CustomizedColumns(ApplicationConsts.ID_UM_GRID, umWController);
umWController.addLookupListener(new LookupListener() {
public void codeValidated(boolean validated) {
}
public void codeChanged(ValueObject parentVO, Collection parentChangedAttributes) {
MeasureVO vo = (MeasureVO) umWController.getLookupVO();
controlW.setDecimals(vo.getDecimalsREG02().intValue());
controlW.setValue(null);
}
public void beforeLookupAction(ValueObject parentVO) {
}
public void forceValidate() {
}
});
// u.m. height...
controlUMH.setLookupController(umHController);
controlUMH.setControllerMethodName("getMeasureUnitsList");
umHController.setLookupDataLocator(umDataLocator);
umHController.setFrameTitle("measures");
umHController.setLookupValueObjectClassName("org.jallinone.registers.measure.java.MeasureVO");
umHController.addLookup2ParentLink("umCodeREG02", "heightUmCodeReg02ITM01");
umHController.addLookup2ParentLink("decimalsREG02", "heightDecimalsREG02");
umHController.setAllColumnVisible(false);
umHController.setVisibleColumn("umCodeREG02", true);
CustomizedColumns umHCust = new CustomizedColumns(ApplicationConsts.ID_UM_GRID, umHController);
umHController.addLookupListener(new LookupListener() {
public void codeValidated(boolean validated) {
}
public void codeChanged(ValueObject parentVO, Collection parentChangedAttributes) {
MeasureVO vo = (MeasureVO) umHController.getLookupVO();
controlH.setDecimals(vo.getDecimalsREG02().intValue());
controlH.setValue(null);
}
public void beforeLookupAction(ValueObject parentVO) {
}