381382383384385386387388389390391392
Duty duty = convert(sub); // boolean success = (new File(duty.getModelFileName())).delete(); DutyDao dao = new DutyDao(); dao.update(duty); dao.delete(duty); this.refreshSubListbox(obj); }
122123124125126127128129130
this.detach(); } public void addSub() { Duty var = subviewToForm(null); DutyDao dao = new DutyDao(); dao.create(var); }
129130131132133134135136137
} public void updateSub() { Duty var = subviewToForm(dutyForm); DutyDao dao = new DutyDao(); dao.update(var); }