public void refreshObjEntities() {
refreshObjEntities("Equipment.getAll", objListRenderer);
}
public Object viewToObj(Object var) {
Equipment obj = new Equipment();
if (var != null) {
try {
BeanUtils.copyProperties(obj, var);
} catch (Exception iae) {
iae.printStackTrace();
}
}
Radiogroup isEquipment = (Radiogroup) getFellow("isEquipment");
Textbox equipmentNameTB = (Textbox) getFellow("equipmentName");
Combobox supplierIdCB = (Combobox) getFellow("supplierId");
Textbox pccCodeTB = (Textbox) getFellow("pccCode");
Textbox venderCodeTB = (Textbox) getFellow("venderCode");
obj.setIsEquipment(isEquipment.getSelectedItem().getValue());
obj.setEquipmentName(equipmentNameTB.getText());
obj.setSupplier((Supplier) supplierIdCB.getSelectedItem().getValue());
obj.setPccCode(pccCodeTB.getText());
obj.setVenderCode(venderCodeTB.getText());
Textbox insideCodeTB = (Textbox) getFellow("insideCode");
Combobox priorityCB = (Combobox) getFellow("priority");
Doublebox latestPriceTB = (Doublebox) getFellow("latestPrice");
Intbox inventoryAmountTB = (Intbox) getFellow("inventoryAmount");
Combobox systemTypeCB = (Combobox) getFellow("system");
obj.setInsideCode(insideCodeTB.getText());
obj.setPriority(priorityCB.getSelectedItem().getValue().toString());
obj.setLatestPrice(latestPriceTB.getValue());
obj.setInventoryAmount(inventoryAmountTB.getValue());
obj.setSystemType(systemTypeCB.getSelectedItem().getValue().toString());
return obj;
}