Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
 public int DeleteDepartment(string mabp)
 {
     return(departmentDAO.DeleteDepartment(mabp));
 }
Ejemplo n.º 3
0
 public static void DeleteDepartment(long itemId)
 {
     DepartmentDAO.DeleteDepartment(itemId);
 }
 public static void DeleteDepartment(int iD)
 {
     DepartmentDAO.DeleteDepartment(iD);
 }