Ejemplo n.º 1
0
 /// <summary>
 /// Selecciona un registro desde la tabla Zona.
 /// </summary>
 /// <returns>DataSet</returns>
 /// <remarks>
 /// </remarks>
 /// <history>
 ///     [JEISOLO]	23/09/2017 22:58:17
 /// </history>
 public static DataSet Select(int idZona)
 {
     try
     {
         return(DALZona.Select(idZona));
     }
     catch (Exception)
     {
         throw;
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Suprime un registro de la tabla Zona por una clave primaria(primary key).
 /// </summary>
 /// <remarks>
 /// </remarks>
 /// <history>
 ///     [JEISOLO]	23/09/2017 22:58:17
 /// </history>
 public static void Delete(int idZona)
 {
     try
     {
         DALZona.Delete(idZona);
     }
     catch (Exception)
     {
         throw;
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Inserta registros dentro de la tabla Zona.
 /// </summary>
 /// <param name="descripcion"></param>
 /// <returns></returns>
 /// <remarks>
 /// </remarks>
 /// <history>
 ///     [JEISOLO]	23/09/2017 22:58:17
 /// </history>
 public static int Insert(string descripcion, string direccion, decimal precioKm)
 {
     try
     {
         return(DALZona.Insert(descripcion, direccion, precioKm));
     }
     catch (Exception)
     {
         throw;
     }
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Selecciona todos los registros de la tabla Zona.
 /// </summary>
 /// <returns>DataSet</returns>
 /// <remarks>
 /// </remarks>
 /// <history>
 ///     [JEISOLO]	23/09/2017 22:58:17
 /// </history>
 public static DataSet SelectAll()
 {
     try
     {
         return(DALZona.SelectAll());
     }
     catch (Exception)
     {
         throw;
     }
 }
Ejemplo n.º 5
0
        /// <summary>
        /// Actualiza registros de la tabla Zona.
        /// </summary>
        /// <param name="idZona"></param>
        /// <param name="descripcion"></param>
        /// <remarks>
        /// </remarks>
        /// <history>
        ///     [JEISOLO]	23/09/2017 22:58:17
        /// </history>
        public static void Update(int idZona, string descripcion, string direccion, decimal precioKm)
        {
            try
            {
                DALZona.Update(idZona, descripcion, direccion, precioKm);
            }
            catch (Exception ex)
            {
                string pepe = ex.Message;

                throw;
            }
        }