public void forceValidate() {}
});
Response res = ClientUtils.getData("loadItemTypes",new GridParams());
final Domain d = new Domain("ITEM_TYPES");
if (!res.isError()) {
ItemTypeVO vo = null;
java.util.List list = ((VOListResponse)res).getRows();
for(int i=0;i<list.size();i++) {
vo = (ItemTypeVO)list.get(i);
d.addDomainPair(vo.getProgressiveHie02ITM02(),vo.getDescriptionSYS10());
}
}
controlItemType.setDomain(d);
controlItemType.getComboBox().addItemListener(new ItemListener() {
public void itemStateChanged(ItemEvent e) {
if (e.getStateChange()==e.SELECTED && detailPanel.getMode()!=Consts.READONLY) {
DetailSaleDocRowVO vo = (DetailSaleDocRowVO)detailPanel.getVOModel().getValueObject();
vo.setItemCodeItm01DOC02(null);
vo.setDescriptionSYS10(null);
vo.setMinSellingQtyUmCodeReg02DOC02(null);
vo.setVatCodeItm01DOC02(null);
vo.setVatDescriptionDOC02(null);
vo.setDeductibleReg01DOC02(null);
vo.setValueReg01DOC02(null);
vo.setValueSal02DOC02(null);
vo.setQtyDOC02(null);
int selIndex = ((JComboBox)e.getSource()).getSelectedIndex();
Object selValue = d.getDomainPairList()[selIndex].getCode();
treeLevelDataLocator.getTreeNodeParams().put(ApplicationConsts.COMPANY_CODE_SYS01,vo.getCompanyCodeSys01DOC02());
treeLevelDataLocator.getTreeNodeParams().put(ApplicationConsts.PROGRESSIVE_HIE02,selValue);
detailPanel.pull(controlItemCode.getAttributeName());
try {