Ejemplo n.º 1
0
 public System.Data.DataTable Listar(string condicion, params object[] args)
 {
     try
     {
         DCronograma_ = new Datos.Cronograma();
         return(DCronograma_.Listar(condicion, args));
     }
     catch (System.Exception ex)
     {
         throw new System.Exception("Cronograma: Error al listar. \n" + ex.Message);
     }
 }
Ejemplo n.º 2
0
 public void Eliminar( System.Int32 id )
 {
     try
     {
         DCronograma_ = new Datos.Cronograma ();
         DCronograma_.id = id;
         DCronograma_.Eliminar ();
     }
     catch ( System.Exception ex )
     {
         throw new System.Exception ( "Cronograma: Error al eliminar. \n" + ex.Message );
     }
 }
Ejemplo n.º 3
0
 public void Eliminar(System.Int32 id)
 {
     try
     {
         DCronograma_    = new Datos.Cronograma();
         DCronograma_.id = id;
         DCronograma_.Eliminar();
     }
     catch (System.Exception ex)
     {
         throw new System.Exception("Cronograma: Error al eliminar. \n" + ex.Message);
     }
 }
Ejemplo n.º 4
0
        public System.Data.DataRow Obtener(System.Int32 id)
        {
            try
            {
                DCronograma_    = new Datos.Cronograma();
                DCronograma_.id = id;

                return(DCronograma_.Obtener());
            }
            catch (System.Exception ex)
            {
                throw new System.Exception("Cronograma: Error al obtener datos. \n" + ex.Message);
            }
        }
Ejemplo n.º 5
0
 public void Actualizar(System.Int32 id, System.String descripcion, System.DateTime fechaIni, System.DateTime fechaFin)
 {
     try
     {
         DCronograma_             = new Datos.Cronograma();
         DCronograma_.id          = id;
         DCronograma_.descripcion = descripcion;
         DCronograma_.fechaIni    = fechaIni;
         DCronograma_.fechaFin    = fechaFin;
         ;
         DCronograma_.Actualizar();
     }
     catch (System.Exception ex)
     {
         throw new System.Exception("Cronograma: Error al actualizar. \n" + ex.Message);
     }
 }
Ejemplo n.º 6
0
 public void Actualizar( System.Int32 id, System.String descripcion, System.DateTime fechaIni, System.DateTime fechaFin )
 {
     try
     {
         DCronograma_ = new Datos.Cronograma ();
         DCronograma_.id = id;
         DCronograma_.descripcion = descripcion;
         DCronograma_.fechaIni = fechaIni;
         DCronograma_.fechaFin = fechaFin;
         ;
         DCronograma_.Actualizar ();
     }
     catch ( System.Exception ex )
     {
         throw new System.Exception ( "Cronograma: Error al actualizar. \n" + ex.Message );
     }
 }
Ejemplo n.º 7
0
        public System.Int32 Insertar(System.String descripcion, System.DateTime fechaIni, System.DateTime fechaFin)
        {
            try
            {
                DCronograma_             = new Datos.Cronograma();
                DCronograma_.descripcion = descripcion;
                DCronograma_.fechaIni    = fechaIni;
                DCronograma_.fechaFin    = fechaFin;
                int i = DCronograma_.Insertar();
                if (i < 0)
                {
                    throw new System.Exception("Cronograma: Error al insertar. \n");
                }

                return(i);
            }
            catch (System.Exception ex)
            {
                throw new System.Exception("Cronograma: Error al insertar. \n" + ex.Message);
            }
        }
Ejemplo n.º 8
0
 public System.Data.DataTable Listar()
 {
     DCronograma_ = new Datos.Cronograma();
     return(DCronograma_.Listar());
 }
Ejemplo n.º 9
0
        public System.Int32 Insertar( System.String descripcion, System.DateTime fechaIni, System.DateTime fechaFin )
        {
            try
            {
                DCronograma_ = new Datos.Cronograma ();
                DCronograma_.descripcion = descripcion;
                DCronograma_.fechaIni = fechaIni;
                DCronograma_.fechaFin = fechaFin;
                int i = DCronograma_.Insertar ();
                if ( i < 0 )
                    throw new System.Exception ( "Cronograma: Error al insertar. \n" );

                return i;
            }
            catch ( System.Exception ex )
            {
                throw new System.Exception ( "Cronograma: Error al insertar. \n" + ex.Message );
            }
        }
Ejemplo n.º 10
0
        public System.Data.DataRow Obtener( System.Int32 id )
        {
            try
            {
                DCronograma_ = new Datos.Cronograma ();
                DCronograma_.id = id;

                return DCronograma_.Obtener ();
            }
            catch ( System.Exception ex )
            {
                throw new System.Exception ( "Cronograma: Error al obtener datos. \n" + ex.Message );
            }
        }
Ejemplo n.º 11
0
 public System.Data.DataTable Listar( string condicion, params object[] args )
 {
     try
     {
         DCronograma_ = new Datos.Cronograma ();
         return DCronograma_.Listar ( condicion, args );
     }
     catch ( System.Exception ex )
     {
         throw new System.Exception ( "Cronograma: Error al listar. \n" + ex.Message );
     }
 }
Ejemplo n.º 12
0
 public System.Data.DataTable Listar()
 {
     DCronograma_ = new Datos.Cronograma ();
     return DCronograma_.Listar ();
 }