Exemplo n.º 1
0
 public cInventario BuscarPorID(String ID)
 {
     try
     {
         return(InventarioDA.BuscarPorID(ID));
     }
     catch (Exception Ex)
     {
         throw Ex;
     }
 }
Exemplo n.º 2
0
 public cInventario BuscarPorID(Int64 ID)
 {
     //REALIZAMOS UNA BUSQUEDA DEL ARTICULO POR SU CODIGO
     try
     {
         return(InventarioDA.BuscarPorID(ID));
     }
     catch (Exception Ex)
     {
         throw Ex;
     }
 }
Exemplo n.º 3
0
        private Boolean ValidacionTipoArticulo(Int64 InventarioID)
        {
            try
            {
                //Validamos el tipo de articulo a agregarse al combo, no se admiten combos.
                string TipoArticulo = InventarioDA.BuscarPorID(InventarioID).TipoArticulo;


                if (TipoArticulo != "C")
                {
                    return(true);
                }
                else
                {
                    return(false);
                }
            }

            catch (Exception Ex)
            {
                throw Ex;
            }
        }