Exemplo n.º 1
0
        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;
            }
        }
Exemplo n.º 2
0
 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);
     }
 }
Exemplo n.º 3
0
        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;
            }
        }