Esempio n. 1
0
        public _00006_ABM_Agente()
            : base("ABM de Agentes")
        {
            InitializeComponent();

            _agenteServicio = new AgenteServicio();

            this.txtLegajo.Enter += new EventHandler(Control_Enter);
            this.txtApellido.Enter += new EventHandler(Control_Enter);
            this.txtNombre.Enter += new EventHandler(Control_Enter);
            this.txtNroDocumento.Enter += new EventHandler(Control_Enter);
            this.txtTelefono.Enter += new EventHandler(Control_Enter);
            this.txtCelular.Enter += new EventHandler(Control_Enter);
            this.txtMail.Enter += new EventHandler(Control_Enter);

            this.txtLegajo.Leave += new EventHandler(Control_Leave);
            this.txtApellido.Leave += new EventHandler(Control_Leave);
            this.txtNombre.Leave += new EventHandler(Control_Leave);
            this.txtNroDocumento.Leave += new EventHandler(Control_Leave);
            this.txtTelefono.Leave += new EventHandler(Control_Leave);
            this.txtCelular.Leave += new EventHandler(Control_Leave);
            this.txtMail.Leave += new EventHandler(Control_Leave);

            this.txtApellido.Validating += (sender, e) => Validacion.VerificarNoVacios(sender, e, errorProviderMensaje);
            this.txtNombre.Validating += (sender, e) => Validacion.VerificarNoVacios(sender, e, errorProviderMensaje);
            this.txtLegajo.Validating += (sender, e) => Validacion.VerificarNoVacios(sender, e, errorProviderMensaje);
            this.txtNroDocumento.Validating += (sender, e) => Validacion.VerificarNoVacios(sender, e, errorProviderMensaje);
        }
 public _00015_ComisionServicio(string titulo)
     : this()
 {
     this.Text = titulo;
     _comisionServicio = new ComisionServicio();
     _agenteServicio = new AgenteServicio();
 }
Esempio n. 3
0
        public _00006_ABM_Agente()
            : base("ABM de Agentes")
        {
            InitializeComponent();

            _agenteServicio = new AgenteServicio();

            this.txtLegajo.Enter       += new EventHandler(Control_Enter);
            this.txtApellido.Enter     += new EventHandler(Control_Enter);
            this.txtNombre.Enter       += new EventHandler(Control_Enter);
            this.txtNroDocumento.Enter += new EventHandler(Control_Enter);
            this.txtTelefono.Enter     += new EventHandler(Control_Enter);
            this.txtCelular.Enter      += new EventHandler(Control_Enter);
            this.txtMail.Enter         += new EventHandler(Control_Enter);

            this.txtLegajo.Leave       += new EventHandler(Control_Leave);
            this.txtApellido.Leave     += new EventHandler(Control_Leave);
            this.txtNombre.Leave       += new EventHandler(Control_Leave);
            this.txtNroDocumento.Leave += new EventHandler(Control_Leave);
            this.txtTelefono.Leave     += new EventHandler(Control_Leave);
            this.txtCelular.Leave      += new EventHandler(Control_Leave);
            this.txtMail.Leave         += new EventHandler(Control_Leave);

            this.txtApellido.Validating     += (sender, e) => Validacion.VerificarNoVacios(sender, e, errorProviderMensaje);
            this.txtNombre.Validating       += (sender, e) => Validacion.VerificarNoVacios(sender, e, errorProviderMensaje);
            this.txtLegajo.Validating       += (sender, e) => Validacion.VerificarNoVacios(sender, e, errorProviderMensaje);
            this.txtNroDocumento.Validating += (sender, e) => Validacion.VerificarNoVacios(sender, e, errorProviderMensaje);
        }
Esempio n. 4
0
 public _00014_ABM_Lactancia()
 {
     InitializeComponent();
     _agenteServicio         = new AgenteServicio();
     _lactanciaServicio      = new LactanciaServicio();
     _listaLactancia         = new List <LactanciaDTO>();
     _lactanciaSeleccionada  = new LactanciaDTO();
     this.btnGuardar.Enabled = false;
 }
Esempio n. 5
0
 public _00014_ABM_Lactancia()
 {
     InitializeComponent();
     _agenteServicio = new AgenteServicio();
     _lactanciaServicio = new LactanciaServicio();
     _listaLactancia = new List<LactanciaDTO>();
     _lactanciaSeleccionada = new LactanciaDTO();
     this.btnGuardar.Enabled = false;
 }
Esempio n. 6
0
 public _00011_ABM_Horario()
 {
     InitializeComponent();
     _horarioServicio    = new HorarioServicio();
     _agenteServicio     = new AgenteServicio();
     listaHorarios       = new List <DetalleHorarioDTO>();
     listaTemporal       = new List <DetalleHorarioDTO>();
     _horaEntradaParcial = new TimeSpan?();
     _horaSalidaParcial  = new TimeSpan?();
 }
Esempio n. 7
0
 public _10001_Acceso()
 {
     InitializeComponent();
     _agenteServicio = new AgenteServicio();
     _accesoServicio = new AccesoServicio();
     _tipoAcceso = new TipoAcceso();
     _diccionario = new Dictionary<TipoAcceso, string>();
     Inicializador.InicializadorAccesos.CargarAccesos(ref _diccionario);
     _agenteId = -1;
 }
Esempio n. 8
0
 public _10001_Acceso()
 {
     InitializeComponent();
     _agenteServicio = new AgenteServicio();
     _accesoServicio = new AccesoServicio();
     _tipoAcceso     = new TipoAcceso();
     _diccionario    = new Dictionary <TipoAcceso, string>();
     Inicializador.InicializadorAccesos.CargarAccesos(ref _diccionario);
     _agenteId = -1;
 }
Esempio n. 9
0
        public _00005_Agentes()
            : base("Consulta de Agentes", "Lista de Agentes", new _00006_ABM_Agente())
        {
            InitializeComponent();

            _agenteServicio          = new AgenteServicio();
            this.btnImprimir.Visible = false;

            this.WindowState          = FormWindowState.Maximized;
            this.btnLactancia.Visible = true;
        }
Esempio n. 10
0
        public _00021_ReporteMensual()
        {
            InitializeComponent();
            WindowState = FormWindowState.Maximized;

            _agenteServicio     = new AgenteServicio();
            _sectorServicio     = new SectorServicio();
            _subsectorServicio  = new SubSectorServicio();
            _agenteSeleccionado = null;

            _filaAgente = -1;
        }
Esempio n. 11
0
        public _00017_NovedadAgente()
        {
            InitializeComponent();
            _agenteServicio = new AgenteServicio();
            _tipoNovedadAgente = new TipoNovedadAgenteServicio();
            _novedadAgente = new NovedadAgenteServicio();
            listaNovedades = new List<NovedadAgenteDTO>();

            PoblarGrilla();
            FormatearGrilla(this.dgvNovedadAgente);
            PoblarComboBox(this.cmbTipoNovedadAgente, _tipoNovedadAgente.ObtenerTodo(), "Descripcion");

            this.btnGrabar.Image = Imagenes.BotonEjecutar;
            this.btnLimpiar.Image = Imagenes.BotonLimpiar;
            this.btnTipoNovedad.Image = Imagenes.BotonModificar;
            this.btnSalir.Image = Imagenes.BotonSalir;
        }
Esempio n. 12
0
        public _00017_NovedadAgente()
        {
            InitializeComponent();
            _agenteServicio    = new AgenteServicio();
            _tipoNovedadAgente = new TipoNovedadAgenteServicio();
            _novedadAgente     = new NovedadAgenteServicio();
            listaNovedades     = new List <NovedadAgenteDTO>();

            PoblarGrilla();
            FormatearGrilla(this.dgvNovedadAgente);
            PoblarComboBox(this.cmbTipoNovedadAgente, _tipoNovedadAgente.ObtenerTodo(), "Descripcion");

            this.btnGrabar.Image      = Imagenes.BotonEjecutar;
            this.btnLimpiar.Image     = Imagenes.BotonLimpiar;
            this.btnTipoNovedad.Image = Imagenes.BotonModificar;
            this.btnSalir.Image       = Imagenes.BotonSalir;
        }
Esempio n. 13
0
        public ReporteMensualServicio(long AgenteId, DateTime fecha)
        {
            _agenteId   = AgenteId;
            _fecha      = fecha;
            _diasDelMes = DateTime.DaysInMonth(_fecha.Year, _fecha.Month);

            _agenteServicio    = new AgenteServicio();
            _accesoServicio    = new AccesoServicio();
            _horarioServicio   = new HorarioServicio();
            _comisionServicio  = new ComisionServicio.ComisionServicio();
            _novedadesServicio = new NovedadAgenteServicio();
            _lactanciaServicio = new LactanciaServicio();

            _listaHorarios      = _horarioServicio.ObtenerHorariosPorId(_agenteId).AsParallel().ToList();
            _listaAccesosDelMes = _accesoServicio.ObtenerPorId(_agenteId).Where(acceso => acceso.FechaHora.Month == _fecha.Month).AsParallel().ToList();
            _listaComisiones    = _comisionServicio.ObtenerPorFiltro(_agenteId).AsParallel().ToList();
            _listaNovedades     = _novedadesServicio.ObtenerPorId(_agenteId).AsParallel().ToList();
            _listaLactancias    = _lactanciaServicio.ObtenerPorFiltro(_agenteId).AsParallel().ToList();

            _minutosToleranciaAusente      = ConfiguracionServicio.MinutosToleranciaAusente ?? 15;
            _minutosToleranciaLlegadaTarde = ConfiguracionServicio.MinutosToleranciaLlegadaTarde ?? 10;
        }
Esempio n. 14
0
        public ReporteMensualServicio(long AgenteId, DateTime fecha)
        {
            _agenteId = AgenteId;
            _fecha = fecha;
            _diasDelMes = DateTime.DaysInMonth(_fecha.Year, _fecha.Month);

            _agenteServicio = new AgenteServicio();
            _accesoServicio = new AccesoServicio();
            _horarioServicio = new HorarioServicio();
            _comisionServicio = new ComisionServicio.ComisionServicio();
            _novedadesServicio = new NovedadAgenteServicio();
            _lactanciaServicio = new LactanciaServicio();

            _listaHorarios = _horarioServicio.ObtenerHorariosPorId(_agenteId).AsParallel().ToList();
            _listaAccesosDelMes = _accesoServicio.ObtenerPorId(_agenteId).Where(acceso => acceso.FechaHora.Month == _fecha.Month).AsParallel().ToList();
            _listaComisiones = _comisionServicio.ObtenerPorFiltro(_agenteId).AsParallel().ToList();
            _listaNovedades = _novedadesServicio.ObtenerPorId(_agenteId).AsParallel().ToList();
            _listaLactancias = _lactanciaServicio.ObtenerPorFiltro(_agenteId).AsParallel().ToList();

            _minutosToleranciaAusente = ConfiguracionServicio.MinutosToleranciaAusente ?? 15;
            _minutosToleranciaLlegadaTarde = ConfiguracionServicio.MinutosToleranciaLlegadaTarde ?? 10;
        }
Esempio n. 15
0
 public _00012_Lactancia()
 {
     InitializeComponent();
     _lactanciaServicio = new LactanciaServicio();
     _agenteServicio    = new AgenteServicio();
 }
Esempio n. 16
0
 public _00012_Lactancia()
 {
     InitializeComponent();
     _lactanciaServicio = new LactanciaServicio();
     _agenteServicio = new AgenteServicio();
 }
Esempio n. 17
0
 public _00010_Horarios()
 {
     InitializeComponent();
     _agenteServicio  = new AgenteServicio();
     _horarioServicio = new HorarioServicio();
 }
Esempio n. 18
0
 public _00015_ComisionServicio(string titulo) : this()
 {
     this.Text         = titulo;
     _comisionServicio = new ComisionServicio();
     _agenteServicio   = new AgenteServicio();
 }
Esempio n. 19
0
 public _00010_Horarios()
 {
     InitializeComponent();
     _agenteServicio = new AgenteServicio();
     _horarioServicio = new HorarioServicio();
 }