133134135136137138139140141142143144
} obj.setParentBom(parentBom); } BomDao dao = new BomDao(); dao.create(obj); // refresh bom by building selectBomByBuilding(); // set selected
179180181182183184185186187188189190
} } // get new value from the view, then update to the database Bom obj = (Bom) viewToObj(form); BomDao dao = new BomDao(); dao.update(obj); // refresh bom by building selectBomByBuilding(); // set selected
230231232233234235236237238239240
// get new value from the view, then update to the database Bom obj = (Bom) viewToObj(form); BomDao dao = new BomDao(); dao.delete(obj); // refresh bom by building selectBomByBuilding(); }