878889909192939495
public void addSub() { buildingDocForm = viewToForm(); BuildingDocDao dao = new BuildingDocDao(); dao.create(buildingDocForm); }
96979899100101102103104
public void updateSub() { buildingDocForm = viewToForm(); BuildingDocDao dao = new BuildingDocDao(); dao.update(buildingDocForm); }
334335336337338339340341342343
BuildingDoc doc = convert(sub); boolean success = (new File(doc.getModelFileName())).delete(); BuildingDocDao dao = new BuildingDocDao(); dao.delete(doc); this.refreshSubListbox(obj); }