Example #1
0
 public System.Data.DataTable ListarDeCronograma(int idCronograma)
 {
     try
     {
         DCronogrmaTurno_ = new Datos.CronogramaTurno();
         return(DCronogrmaTurno_.ListarDeCronograma(idCronograma));
     }
     catch (System.Exception ex)
     {
         throw new System.Exception("CronogramaTurno: Error al listar. \n" + ex.Message);
     }
 }
Example #2
0
 public System.Data.DataTable ListarCronogramaTurno(string condicion, params object[] args)
 {
     try
     {
         DCronogrmaTurno_ = new Datos.CronogramaTurno();
         return(DCronogrmaTurno_.Listar(condicion, args));
     }
     catch (System.Exception ex)
     {
         throw new System.Exception("CronogramaTurno: Error al listar. \n" + ex.Message);
     }
 }
Example #3
0
 public System.Data.DataRow ObtenerCronogramaTurno(System.Int32 id)
 {
     try
     {
         DCronogrmaTurno_    = new Datos.CronogramaTurno();
         DCronogrmaTurno_.id = id;
         return(DCronogrmaTurno_.Obtener());
     }
     catch (System.Exception ex)
     {
         throw new System.Exception("CronogramaTurno: Error al obtener datos. \n" + ex.Message);
     }
 }
Example #4
0
 public void EliminarCronogramaTurno(System.Int32 id)
 {
     try
     {
         DCronogrmaTurno_    = new Datos.CronogramaTurno();
         DCronogrmaTurno_.id = id;
         DCronogrmaTurno_.Eliminar();
     }
     catch (System.Exception ex)
     {
         throw new System.Exception("CronogramaTurno: Error al eliminar. \n" + ex.Message);
     }
 }
Example #5
0
 public void EliminarCronogramaTurno( System.Int32 id )
 {
     try
     {
         DCronogrmaTurno_ = new Datos.CronogramaTurno ();
         DCronogrmaTurno_.id = id;
         DCronogrmaTurno_.Eliminar ();
     }
     catch ( System.Exception ex )
     {
         throw new System.Exception ( "CronogramaTurno: Error al eliminar. \n" + ex.Message );
     }
 }
Example #6
0
 public void ActualizarCronogramaTurno(System.Int32 id, System.DateTime fecha, System.Int32 activo, System.Int32 idCronograma, System.Int32 idTurno)
 {
     try
     {
         DCronogrmaTurno_              = new Datos.CronogramaTurno();
         DCronogrmaTurno_.id           = id;
         DCronogrmaTurno_.fecha        = fecha;
         DCronogrmaTurno_.activo       = activo;
         DCronogrmaTurno_.idCronograma = idCronograma;
         DCronogrmaTurno_.idTurno      = idTurno;
         ;
         DCronogrmaTurno_.Actualizar();
     }
     catch (System.Exception ex)
     {
         throw new System.Exception("CronogramaTurno: Error al actualizar. \n" + ex.Message);
     }
 }
Example #7
0
 public void ActualizarCronogramaTurno( System.Int32 id, System.DateTime fecha, System.Int32 activo, System.Int32 idCronograma, System.Int32 idTurno )
 {
     try
     {
         DCronogrmaTurno_ = new Datos.CronogramaTurno ();
         DCronogrmaTurno_.id = id;
         DCronogrmaTurno_.fecha = fecha;
         DCronogrmaTurno_.activo = activo;
         DCronogrmaTurno_.idCronograma = idCronograma;
         DCronogrmaTurno_.idTurno = idTurno;
         ;
         DCronogrmaTurno_.Actualizar ();
     }
     catch ( System.Exception ex )
     {
         throw new System.Exception ( "CronogramaTurno: Error al actualizar. \n" + ex.Message );
     }
 }
Example #8
0
 public System.Int32 InsertarCronogramaTurno(System.DateTime fecha, System.Int32 activo, System.Int32 idCronograma, System.Int32 idTurno)
 {
     try
     {
         DCronogrmaTurno_              = new Datos.CronogramaTurno();
         DCronogrmaTurno_.fecha        = fecha;
         DCronogrmaTurno_.activo       = activo;
         DCronogrmaTurno_.idCronograma = idCronograma;
         DCronogrmaTurno_.idTurno      = idTurno;
         int i = DCronogrmaTurno_.Insertar();
         if (i < 0)
         {
             throw new System.Exception("CronogramaTurno: Error al insertar. \n");
         }
         return(i);
     }
     catch (System.Exception ex)
     {
         throw new System.Exception("CronogramaTurno: Error al insertar. \n" + ex.Message);
     }
 }
Example #9
0
 public System.Data.DataTable ListarCronogramaTurno()
 {
     DCronogrmaTurno_ = new Datos.CronogramaTurno();
     return(DCronogrmaTurno_.Listar());
 }
Example #10
0
 public System.Data.DataRow ObtenerCronogramaTurno( System.Int32 id )
 {
     try
     {
         DCronogrmaTurno_ = new Datos.CronogramaTurno ();
         DCronogrmaTurno_.id = id;
         return DCronogrmaTurno_.Obtener ();
     }
     catch ( System.Exception ex )
     {
         throw new System.Exception ( "CronogramaTurno: Error al obtener datos. \n" + ex.Message );
     }
 }
Example #11
0
 public System.Data.DataTable ListarDeCronograma( int idCronograma )
 {
     try
     {
         DCronogrmaTurno_ = new Datos.CronogramaTurno ();
         return DCronogrmaTurno_.ListarDeCronograma ( idCronograma );
     }
     catch ( System.Exception ex )
     {
         throw new System.Exception ( "CronogramaTurno: Error al listar. \n" + ex.Message );
     }
 }
Example #12
0
 public System.Data.DataTable ListarCronogramaTurno( string condicion, params object[] args )
 {
     try
     {
         DCronogrmaTurno_ = new Datos.CronogramaTurno ();
         return DCronogrmaTurno_.Listar ( condicion, args );
     }
     catch ( System.Exception ex )
     {
         throw new System.Exception ( "CronogramaTurno: Error al listar. \n" + ex.Message );
     }
 }
Example #13
0
 public System.Data.DataTable ListarCronogramaTurno()
 {
     DCronogrmaTurno_ = new Datos.CronogramaTurno ();
     return DCronogrmaTurno_.Listar ();
 }
Example #14
0
 public System.Int32 InsertarCronogramaTurno( System.DateTime fecha, System.Int32 activo, System.Int32 idCronograma, System.Int32 idTurno )
 {
     try
     {
         DCronogrmaTurno_ = new Datos.CronogramaTurno ();
         DCronogrmaTurno_.fecha = fecha;
         DCronogrmaTurno_.activo = activo;
         DCronogrmaTurno_.idCronograma = idCronograma;
         DCronogrmaTurno_.idTurno = idTurno;
         int i = DCronogrmaTurno_.Insertar ();
         if ( i < 0 )
             throw new System.Exception ( "CronogramaTurno: Error al insertar. \n" );
         return i;
     }
     catch ( System.Exception ex )
     {
         throw new System.Exception ( "CronogramaTurno: Error al insertar. \n" + ex.Message );
     }
 }