Esempio n. 1
0
 public ReporteDiarioDTO(long agenteId
     , DateTime fechaBuscar
     , Horario horario
     ,Novedad novedad
     , ComisionServicio comision
     , Lactancia lactancia
     ,RelojDefectuoso reloj)
 {
     AgenteId = agenteId;
     FechaReporte = fechaBuscar;
     _reporteServicio = new ReporteServicio();
     _agente = _reporteServicio.BuscarPorId(AgenteId);
     _horario = horario;
     _accesos = _reporteServicio.obtenerAccesos(AgenteId, fechaBuscar);
     _toleraciaLlegadaTarde = _reporteServicio.obtenerMinutosLlegadaTarde();
     _toleraciaAusente = _reporteServicio.obtenerMinutosAusentes();
     _minutosLactancia = _reporteServicio.obtenerMinutosLactancia();
     _lactancia = lactancia;
     _novedad = novedad;
     _comision = comision;
     _reloj = reloj;
     if (_novedad!=null)
     {
         _tipoNovedad = new TipoNovedad();
         _tipoNovedad = _reporteServicio.obtenerTipo(_novedad.Id);
     }
 }
Esempio n. 2
0
 public ReporteDiarioDTO(long agenteId
                         , DateTime fechaBuscar
                         , Horario horario
                         , Novedad novedad
                         , ComisionServicio comision
                         , Lactancia lactancia
                         , RelojDefectuoso reloj)
 {
     AgenteId               = agenteId;
     FechaReporte           = fechaBuscar;
     _reporteServicio       = new ReporteServicio();
     _agente                = _reporteServicio.BuscarPorId(AgenteId);
     _horario               = horario;
     _accesos               = _reporteServicio.obtenerAccesos(AgenteId, fechaBuscar);
     _toleraciaLlegadaTarde = _reporteServicio.obtenerMinutosLlegadaTarde();
     _toleraciaAusente      = _reporteServicio.obtenerMinutosAusentes();
     _minutosLactancia      = _reporteServicio.obtenerMinutosLactancia();
     _lactancia             = lactancia;
     _novedad               = novedad;
     _comision              = comision;
     _reloj = reloj;
     if (_novedad != null)
     {
         _tipoNovedad = new TipoNovedad();
         _tipoNovedad = _reporteServicio.obtenerTipo(_novedad.Id);
     }
 }