Exemplo n.º 1
0
        private void dgvTratoInicial_DoubleClick(object sender, EventArgs e)
        {
            if (dgvTratoInicial.CurrentRow.Cells[6].Value.ToString() == "Pendiente")
            {
                Pagos p = new Pagos();
                p.FolioContrato = cto.FolioContrato;
                p.Consec        = Convert.ToInt32(dgvTratoInicial.CurrentRow.Cells[8].Value.ToString());

                p.ConsultaPago(p);
                p.ImportePendiente(p, cto, p.idTippag, p.NoEnganche);

                if (p.Importe == p.MontoPagado)
                {
                    p.EngContrato(p);
                    MessageBox.Show("Se actualizo la información del pago");
                    Consultar();
                }
                else
                {
                    MessageBox.Show("INFORMACIÓN ENGANCHE NO. " + p.NoEnganche.ToString() + System.Environment.NewLine
                                    + "TOTAL A PAGAR: " + p.Importe.ToString("N2") + System.Environment.NewLine
                                    + "MONTO PAGADO: " + p.MontoPagado.ToString("N2") + System.Environment.NewLine
                                    + "PENDIENTE POR PAGAR: " + (p.Importe - p.MontoPagado).ToString("N4"));
                }
            }
        }
Exemplo n.º 2
0
        private void PagPendientes(Pagos p)
        {
            p.ConsultaEng(p);


            if (p.EngConsec > 0)
            {
                p.Consec = p.EngConsec;

                p.ConsultaPago(p);
                p.ImportePendiente(p, cto, p.idTippag, p.NoEnganche);

                if (p.Importe == p.MontoPagado)
                {
                    p.EngContrato(p);
                    pendiente = false;

                    PagPendientes(p);
                }
                else
                {
                    pendiente = true;
                }
            }
            else
            {
                pendiente = false;
            }
        }
Exemplo n.º 3
0
        private void bttnCCont_Click(object sender, EventArgs e)
        {
            Pagos p = new Pagos();

            p.FolioContrato = cto.FolioContrato;

            p.ConsultaCxc(p, cto);

            if (p.noPagosCxc == 1 || (p.noPagosCxc > 1 && p.CCCobrado != p.MontoPagado))
            {
                p.Consec = 2;
                p.ConsultaPago(p);
                p.ImportePendiente(p, cto, 2, 0);

                if (p.FechaPago.ToString("d") == DateTime.Today.ToString("d") || p.FechaPago.ToString("d") == DateTime.Today.AddDays(-1).ToString("d"))
                {
                    cc = new PagoCC(cto.FolioContrato);
                    cc.ShowDialog();
                    Consultar();
                }

                else
                {
                    MessageBox.Show("Esta opción solo aplica el dia " + p.FechaPago.ToString("d") + " en que se realizo el pago del Costo de Cierre");
                }
            }
            else
            {
                MessageBox.Show("El Costo de Cierre de este socio ya fue tratado");
            }
        }
Exemplo n.º 4
0
 private void inicia()
 {
     p.ConsultaPago(p);
     p.ImportePendiente(p, cto, 1, p.NoEnganche);
     pendiente = p.Importe - p.MontoPagado;
     tipCam.LeerTipoCambio();
     Asigna();
 }
Exemplo n.º 5
0
 public PagoDetalle(int folio, int consec)
 {
     InitializeComponent();
     Limpiar();
     p.FolioContrato = folio;
     p.Consec        = consec;
     p.ConsultaPago(p);
     Asignar();
 }
Exemplo n.º 6
0
 private void inicia()
 {
     p.Consec = 2;
     p.ConsultaPago(p);
     p.ImportePendiente(p, cto, 2, 0);
     pendiente = p.CCCobrado - p.MontoPagado;
     acumulado = p.MontoPagado;
     NoTarjetas();
     Asigna();
 }