Esempio n. 1
0
        public override void CargarDatos()
        {
            try
            {
                base.CargarDatos();

                if (base._entidadId.HasValue)
                {
                    var entidad = _agenteServicio.ObtenerPorId(base._entidadId.Value);

                    this.txtLegajo.Text        = entidad.Legajo;
                    this.txtApellido.Text      = entidad.Apellido;
                    this.txtNombre.Text        = entidad.Nombre;
                    this.txtNroDocumento.Text  = entidad.DNI;
                    this.txtTelefono.Text      = entidad.Telefono;
                    this.txtCelular.Text       = entidad.Celular;
                    this.txtMail.Text          = entidad.Mail;
                    this.chkVisualizar.Checked = entidad.Visualizar;

                    if (base._operacion == PresentacionBase.TipoOperacion.Eliminar)
                    {
                        DesactivarControles(this, false);
                    }
                }
                else
                {
                    this.chkVisualizar.Checked = true;
                }
            }
            catch (Exception)
            {
                Mensaje.Mostrar("Ocurrió un error al Cargar los datos", TipoMensaje.Error);
            }
        }
Esempio n. 2
0
        private void _00012_Lactancia_Load(object sender, EventArgs e)
        {
            var _agente = _agenteServicio.ObtenerPorId(AgenteId);

            this.txtApyNom.Text = _agente.Apellido + ", " + _agente.Nombre;
            this.txtDni.Text    = _agente.DNI;
            this.txtLegajo.Text = _agente.Legajo;

            Actualizar();
        }
Esempio n. 3
0
 private void dgvNovedadAgente_RowEnter(object sender, DataGridViewCellEventArgs e)
 {
     if (this.dgvNovedadAgente.RowCount > 0)
     {
         current_id = (long)this.dgvNovedadAgente["Id", e.RowIndex].Value;
         var agente = _agenteServicio.ObtenerPorId(current_id);
         this.txtApyNom.Text = agente.Apellido + " " + agente.Nombre;
         this.txtLegajo.Text = agente.Legajo;
     }
 }
Esempio n. 4
0
        private void _00010_Horarios_Load(object sender, EventArgs e)
        {
            //var agente = _agenteServicio.ObtenerPorId(ayuda.idmio);
            var agente = _agenteServicio.ObtenerPorId(IdAgente);

            this.txtApyNom.Text = agente.Apellido + " " + agente.Nombre;
            this.txtLegajo.Text = agente.Legajo.ToString();
            this.txtDni.Text    = agente.DNI.ToString();
            ActualizarGrilla();
        }
Esempio n. 5
0
        private void _00015_ComisionServicio_Load(object sender, EventArgs e)
        {
            var _agente = _agenteServicio.ObtenerPorId(AgenteId);

            this.lblApyNom.Text = _agente.Apellido + ", " + _agente.Nombre;
            this.lblDNI.Text    = string.Format("{0:##0,000,000}", Int32.Parse(_agente.DNI));
            this.lblLegajo.Text = string.Format("{0:###,000}", Int32.Parse(_agente.Legajo));

            Actualizar();
        }
Esempio n. 6
0
        private void _00011_ABM_Horario_Load(object sender, EventArgs e)
        {
            var agente = _agenteServicio.ObtenerPorId(IdAgente);

            this.txtApyNom.Text = agente.Apellido + " " + agente.Nombre;
            this.txtLegajo.Text = agente.Legajo.ToString();
            this.txtDni.Text    = agente.DNI.ToString();
            ResetearHorayFecha();
            HabilitarTodosLosDIas();
        }