Пример #1
0
        private void ABMCuotas_Load(object sender, EventArgs e)
        {
            this._inscrialu = new ClassCursos();

            this._cuotas = this._inscrialu.BuscarDatosSocioInscripto(this._idcurso, "S", "Socio");

            if (this._cuotas.Tables["Socio"].Rows.Count > 0)
            {
                this.txtApellido.Text        = this._cuotas.Tables["Socio"].Rows[0][0].ToString();
                this.txtNombre.Text          = this._cuotas.Tables["Socio"].Rows[0][1].ToString();
                this.txtDni.Text             = this._cuotas.Tables["Socio"].Rows[0][2].ToString();
                this.txtEmail.Text           = this._cuotas.Tables["Socio"].Rows[0][3].ToString();
                this.txtPunto.Text           = this._cuotas.Tables["Socio"].Rows[0][4].ToString();
                this.txtTipoClase.Text       = this._cuotas.Tables["Socio"].Rows[0][5].ToString();
                this.txtNombreClase.Text     = this._cuotas.Tables["Socio"].Rows[0][6].ToString();
                this.txtMontoCuotaTotal.Text = this._cuotas.Tables["Socio"].Rows[0][7].ToString();

                this.dgvHistorialCuotas.DataSource = this._inscrialu.BuscarDatosSocioInscripto(this._idcurso, "C", "CuotasSocio");
                this.dgvHistorialCuotas.DataMember = "CuotasSocio";

                if (this.dgvHistorialCuotas.Rows.Count > 0)
                {
                    //Idcurso
                    this.dgvHistorialCuotas.Columns[0].Visible = false;
                    //Fecha real pago
                    this.dgvHistorialCuotas.Columns[2].Visible = false;
                }
            }
        }
Пример #2
0
        private void Principal_Load(object sender, EventArgs e)
        {
            this._loginper = new ClassPersonas();

            Login formlogin = new Login();

            formlogin.ShowDialog();

            this._loginper.idpersona   = formlogin.idpersona;
            this._loginper.apellido    = formlogin.apellido;
            this._loginper.nombre      = formlogin.nombre;
            this._loginper.tipopersona = formlogin.tipopersona;
            this._loginper.idpunto     = "0";
            this._loginper.punto       = formlogin.punto;

            this.lblTituloForm.Text = "Movimientos - Usuario: " + this._loginper.apellido + ", " + this._loginper.nombre + " - Cargo: " + this._loginper.tipopersona + " - Punto: " + this._loginper.punto;

            this.txtBusFechaIni.Text = DateTime.Now.ToString("dd/MM/yyyy");
            this.txtBusFechaFin.Text = this.txtBusFechaIni.Text;

            DataTable _puntos = this._loginper.BuscarPuntos(this._loginper);

            this.cbBusPuntos.DataSource    = _puntos;
            this.cbBusPuntos.ValueMember   = "idpunto";
            this.cbBusPuntos.DisplayMember = "nombrepunto";
            this.cbBusPuntos.Text          = "";

            this._cursos             = new ClassCursos();
            this._cursos.idpunto     = "0";
            this._cursos.tipodeclase = "";

            this.PoblarComboTipoDeClases();

            this.cbBusNombreClase.Enabled = false;
        }
        private void ABMInscripcionCursos_Load(object sender, EventArgs e)
        {
            try
            {
                this.txtDni.Text   = _dni;
                this.txtPunto.Text = _punto;
                //Cargar Tipo de clase
                this._cursos = new ClassCursos();
                this._cursos.idtipodeclase = "0";
                this._cursos.tipodeclase   = "";
                this._cursos.idpunto       = this._idpunto;

                this._clases = new ClassTiposDeClases();

                this._clases.idclase       = "0";
                this._clases.idtipodeclase = "1";
                this._clases.nombreclase   = "";

                DataTable _todasclases = this._clases.BuscarTiposDeClases(this._clases);

                //Agrupar o borrar las filas repetidas de la lista que se recupera de la consulta
                _todasclases = this._clases.EliminarFilasDuplicadas(_todasclases, "tipodeclase");

                //Muestra datos en el combo
                this.cbTipoClase.DataSource    = _todasclases;
                this.cbTipoClase.ValueMember   = "idtipodeclase";
                this.cbTipoClase.DisplayMember = "tipodeclase";

                this.txtFechaPago.Text = DateTime.Now.ToString("dd/MM/yyyy");

                if ((this._bandera == "M") || (this._bandera == "B"))
                {
                    this._resp = new DataSet();
                    this._resp = this._cursos.BuscarInscripcionesCursosSocios(this._idcurso, this._dni, "Inscripciones");

                    this.txtDni.Text      = this._resp.Tables["Inscripciones"].Rows[0][1].ToString();
                    this.txtPunto.Text    = this._resp.Tables["Inscripciones"].Rows[0][2].ToString();
                    this.cbTipoClase.Text = this._resp.Tables["Inscripciones"].Rows[0][3].ToString();
                    this.btnBusClases_Click(sender, e);
                    this.cbNombreClase.Text = this._resp.Tables["Inscripciones"].Rows[0][4].ToString();
                    this.txtMontoCuota.Text = this._resp.Tables["Inscripciones"].Rows[0][5].ToString();
                    this._idcuota           = this._resp.Tables["Inscripciones"].Rows[0][6].ToString();
                    this.txtFechaPago.Text  = DateTime.Parse(this._resp.Tables["Inscripciones"].Rows[0][7].ToString()).ToString("dd/MM/yyyy");
                }
            }
            catch (Exception err)
            {
            }
        }
Пример #4
0
        private void ABMSocios_Load(object sender, EventArgs e)
        {
            this._socios = new ClassPersonas();
            this._cursos = new ClassCursos();

            this._socios.idpunto     = "0";
            this._socios.nombrepunto = "";

            DataTable _puntos = this._socios.BuscarPuntos(this._socios);

            this.cbBusPuntos.DataSource    = _puntos;
            this.cbBusPuntos.ValueMember   = "idpunto";
            this.cbBusPuntos.DisplayMember = "nombrepunto";

            this.cbPuntos.DataSource    = _puntos;
            this.cbPuntos.ValueMember   = "idpunto";
            this.cbPuntos.DisplayMember = "nombrepunto";
        }