public void not_pedidos(string sede) { int x; x = new DAOPersistencia().not_pedido(sede); if (x == 0) { estado = false; cant = x; } else { estado = true; cant = x; } }
public bool validarExistente(string cedula) { try { Cliente usu = new DAOPersistencia().ExisteCliente(Convert.ToInt32(cedula)); if (usu == null) { return(true); } else { return(false); } }catch (Exception ex) { return(true); } }
public void always_visible_panel() { int x, x1; x = new DAOPersistencia().not_asignaciones(); x1 = new DAOPersistencia().not_conflictos(); if (x == 0) { a = false; cantA = x; cantC = x1; } else { a = true; cantA = x; cantC = x1; } }