private void buttonDelete_Click(object sender, EventArgs e) { if (!CheckData()) { return; } DepartmentBean b = new DepartmentBean(); b.Id = (int)treeList.FocusedNode["Id"]; DepartmentDAO dao = new DepartmentDAO(); dao.DeleteDepartment(b); LoadData(); }
public int DeleteDepartment(string mabp) { return(departmentDAO.DeleteDepartment(mabp)); }
public static void DeleteDepartment(long itemId) { DepartmentDAO.DeleteDepartment(itemId); }
public static void DeleteDepartment(int iD) { DepartmentDAO.DeleteDepartment(iD); }