MaintainEventTypeDao dao = new MaintainEventTypeDao();
delete(dao, obj);
}
public void objToView(Object obj) {
MaintainEventType var = (MaintainEventType) obj;
Combobox systemTypeCB = (Combobox) getFellow("system");
Textbox maintainEventTypeTB = (Textbox) getFellow("maintainEventType");
Iterator stItr = systemTypeCB.getItems().iterator();
while (stItr.hasNext()) {
Comboitem item = (Comboitem) stItr.next();
String s = (String) item.getValue();
if (s.equals(var.getSystemType())) {
systemTypeCB.setSelectedItem(item);
}
}
maintainEventTypeTB.setText(var.getMaintainEventType());
}