Example #1
0
        private void IncializaControles()
        {
            Afiliado a = Afiliado.GetById(this.IdAfiliado);

            if (a != null)
            {
                //this.
                this.lbltxtId.Text           = a.ID.ToString();
                this.lblTxtDocumento.Text    = a.Documento;
                this.lbltxtNombre.Text       = a.Nombre;
                this.lbltxtApellido.Text     = a.Apellido;
                this.lbltxtDireccion.Text    = a.Direccion;
                this.lbltxtCodigoPostal.Text = a.CodigoPostal;
                this.lbltxtEmpresa.Text      = a.NombreEmpresa;
                this.lbltxtCategoria.Text    = a.NombreCategoria;
                this.lbltxtPoliza.Text       = a.Poliza;
                this.lbltxtPatente.Text      = a.Patente;
                this.lbltxtFechaDesde.Text   = a.FechaDesde.ToShortDateString();
                this.lbltxtFechaHasta.Text   = a.FechaHasta.ToShortDateString();
                this.lbltxtaño.Text          = a.Año;
                this.lbltxtColor.Text        = a.Color;
                this.lbltxtMarca.Text        = a.Marca;
                this.lblTxtHogar.Text        = a.Hogar ? "SI" : "NO";
                this.lblTxtModelo.Text       = a.Modelo;
            }
        }