Exemplo n.º 1
0
        public InterfazInscribirSocioCategoria(InterfazListaSocio ventana, ModelSocioPersona socio)
        {
            Padre   = ventana;
            MiSocio = socio;
            InitializeComponent();

            dtvListarCategorias.AllowUserToAddRows = false;
            dtvListarCategorias.Visible            = false;
            lblInfoCategoria.Text = "";

            ControladorDeporte  Cdeporte = new ControladorDeporte();
            List <ModelDeporte> lista    = new List <ModelDeporte>();

            lista = Cdeporte.ListarTodosDeportes();
            lista.Insert(0, new ModelDeporte()
            {
                IdDeporte = 0, Nombre = "Seleccione un deporte"
            });
            cbxDeporteCategoria.DataSource    = lista;
            cbxDeporteCategoria.ValueMember   = "IdDeporte";
            cbxDeporteCategoria.DisplayMember = "Nombre";

            this.CategoriaBindingSource.DataSource = typeof(ProjectGimnasiaYEsgrima.Modelo.ModelCategoria);

            CargarCamposFocus();
            CargarInterfazBuena();
        }
Exemplo n.º 2
0
        public InterfazModificarSocio(InterfazListaSocio padre, ModelSocioPersona socio)
        {
            this.Padre = padre;
            this.Socio = socio;
            InitializeComponent();



            txtNombreSocio.Text   = Socio.Nombre;
            txtApellidoSocio.Text = Socio.Apellido;

            dtFechaNacimientoSocio.Value = Socio.MiPersona.FechaNacimiento;
            txtDocumentoSocio.Text       = Convert.ToString(Socio.DNI);

            txtDireccionSocio.Text = Socio.MiSocio.Direccion;
            txtLocalidadSocio.Text = Socio.MiSocio.Localidad;
            txtTelefonoSocio.Text  = Socio.MiSocio.Telefono;
            txtTipoDocSocio.Text   = Socio.MiSocio.TipoDocumento.ToString();

            txtDocumentoSocio.ReadOnly = true;
            txtTipoDocSocio.ReadOnly   = true;


            cbxCategoria.DataSource = Enum.GetValues(typeof(EnumCategoriaSocio));
            CargarCamposFocus();
            CargarInterfazBuena();
        }
Exemplo n.º 3
0
 public InterfazAltaSocio(InterfazListaSocio padre)
 {
     Padre = padre;
     InitializeComponent();
     cbxTipoDocumentoSocio.DataSource = Enum.GetValues(typeof(EnumTipoDocumento));
     cbxCategoria.DataSource          = Enum.GetValues(typeof(EnumCategoriaSocio));
     CargarCamposFocus();
     CargarInterfazBuena();
 }
Exemplo n.º 4
0
        public InterfazGeneradorDeCupones(InterfazListaSocio ventana, List <ModelImpresionCuponSocio> models1, List <ModelImpresionCuponSocio> models2)
        {
            MiVentana  = ventana;
            MiModelos1 = models1;
            MiModelos2 = models2;
            InitializeComponent();

            reportViewer1.ProcessingMode = ProcessingMode.Local;
            this.reportViewer1.LocalReport.ReportEmbeddedResource = "ProjectGimnasiaYEsgrima.Utils.Cupon.rdlc";
            CargarInterfazBuena();
        }
Exemplo n.º 5
0
        public InterfazEmitirCarnet(InterfazListaSocio ventana, ModelSocioPersona socio)
        {
            MiSocio   = socio;
            MiVentana = ventana;
            InitializeComponent();



            reportViewer1.ProcessingMode = ProcessingMode.Local;
            this.reportViewer1.LocalReport.ReportEmbeddedResource = "ProjectGimnasiaYEsgrima.Utils.Socio.rdlc";



            CargarInterfazBuena();
        }
Exemplo n.º 6
0
 public InterfazEmisionCuponPago(InterfazListaSocio ventana, Socio socio)
 {
     MiVentana = ventana;
     MiSocio   = socio;
     InitializeComponent();
     dgvListaCuponesSocio.AllowUserToAddRows = false;
     CargarInterfazBuena();
     ActualizarTabla();
     foreach (DataGridViewRow i in dgvListaCuponesSocio.Rows)
     {
         i.Cells["Confirmación"].Value = true;
     }
     cbxFechaEmisionInicial.SelectedIndex = 0;
     cbxFechaEmisionFinal.SelectedIndex   = 11;
 }