Esempio n. 1
0
        private void BTProceder_Click(object sender, EventArgs e)
        {
            if (GridCuotas.Rows.Count > 0 && nroCuenta1.ValidarEstadoCuenta() == true)
            {
                GetCuotasMethods = new CuotasMethods();
                int i = GridCuotas.CurrentCell.RowIndex;
                //   int i = GridCuotas.CurrentRow.Cells[0].Value;
                //  Convert.ToInt32(GridCuotas[i, 0].Value);
                StatusStrip o      = this.TopLevelControl.Controls.Find("stStatus", true).FirstOrDefault() as StatusStrip;
                CuotasModel cuotas = new CuotasModel();
                cuotas.CuotaID = Convert.ToInt32(GridCuotas[0, i].Value);
                cuotas.Usuario = o.Items[1].Text;
                cuotas.RowVer  = CuotasModel[i].RowVer;
                //nroCuenta1.VersionCuenta
                var a = GetCuotasMethods.CuotasInsert(cuotas);
                if (a.Equals("Transferido"))
                {
                    MessageBox.Show("Pago Realizado");

                    efectivoNetoCuotas.obtenerEfectivo(Session);
                    Recibo recibo = new Recibo();
                    recibo.Show();
                }
                else
                {
                    MessageBox.Show("No se realizo el pago: " + a);
                }
            }
        }
Esempio n. 2
0
        private void BTBuscarCuota_Click(object sender, EventArgs e)
        {
            GetCuotasMethods = new CuotasMethods();

            //     MessageBox.Show(GetCuotasMethods.ObtenerPrestamos(nroCuenta1.TBNroCuenta.Text).ToString());
            var bindingList = new BindingList <object>(GetCuotasMethods.ObtenerPrestamos(nroCuenta1.TBNroCuenta.Text));
            var source      = new BindingSource(bindingList, null);

            GridPrestamos.DataSource = source;
            // this.GridPrestamos.DataSource = GetCuotasMethods.ObtenerPrestamos(nroCuenta1.TBNroCuenta.Text);
            //   this.GridPrestamos.DataSource = new BindingSource(GetCuotasMethods.ObtenerPrestamos(nroCuenta1.TBNroCuenta.Text));
        }