Exemple #1
0
 public void HabilitarHorario(int idHorario, bool habilitado)
 {
     try
     {
         using (BusinessDiasHorario negocio = new BusinessDiasHorario())
         {
             negocio.HabilitarHorario(idHorario, habilitado);
         }
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
Exemple #2
0
 public void ActualizarHorario(Horario horario)
 {
     try
     {
         using (BusinessDiasHorario negocio = new BusinessDiasHorario())
         {
             negocio.ActualizarHorario(horario);
         }
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
Exemple #3
0
 public Horario ObtenerHorarioById(int idHorario)
 {
     try
     {
         using (BusinessDiasHorario negocio = new BusinessDiasHorario())
         {
             return(negocio.ObtenerHorarioById(idHorario));
         }
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
Exemple #4
0
 public DiasFeriados ObtenerDiasFeriadosUserById(int id)
 {
     try
     {
         using (BusinessDiasHorario negocio = new BusinessDiasHorario())
         {
             return(negocio.ObtenerDiasFeriadosUserById(id));
         }
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
Exemple #5
0
 public List <Horario> ObtenerHorarioConsulta(string filtro)
 {
     try
     {
         using (BusinessDiasHorario negocio = new BusinessDiasHorario())
         {
             return(negocio.ObtenerHorarioConsulta(filtro));
         }
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
Exemple #6
0
 public List <DiasFeriados> ObtenerDiasFeriadosUser(bool insertarSeleccion)
 {
     try
     {
         using (BusinessDiasHorario negocio = new BusinessDiasHorario())
         {
             return(negocio.ObtenerDiasFeriadosUser(insertarSeleccion));
         }
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
Exemple #7
0
 public void CrearDiasFestivos(DiasFeriados item)
 {
     try
     {
         using (BusinessDiasHorario negocio = new BusinessDiasHorario())
         {
             negocio.CrearDiasFestivos(item);
         }
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
Exemple #8
0
 public DiaFeriado ObtenerDiaByFecha(DateTime fecha)
 {
     try
     {
         using (BusinessDiasHorario negocio = new BusinessDiasHorario())
         {
             return(negocio.ObtenerDiaByFecha(fecha));
         }
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
Exemple #9
0
 public void AgregarDiaFeriado(DiaFeriado dia)
 {
     try
     {
         using (BusinessDiasHorario negocio = new BusinessDiasHorario())
         {
             negocio.AgregarDiaFeriado(dia);
         }
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
Exemple #10
0
 public List <DiaFestivoDefault> ObtenerDiasDefault(bool insertarSeleccion)
 {
     try
     {
         using (BusinessDiasHorario negocio = new BusinessDiasHorario())
         {
             return(negocio.ObtenerDiasDefault(insertarSeleccion));
         }
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }