Beispiel #1
0
        private void DGMovimientos_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (!(e.RowIndex > -1) || Sesion.codRol == 2)
            {
                return;
            }

            DGMovimientos.CurrentCell = null;
            foreach (DataGridViewRow row in DGMovimientos.Rows)
            {
                if (row.Index == e.RowIndex)
                {
                    if (row.Cells["Tipo_Movimiento"].Value.ToString().Substring(0, 6).Trim() == "Apertu")
                    {
                        return;
                    }

                    codFondosMov = row.Cells["Codigo"].Value.ToString();
                    string pInfo = row.Cells["Concepto"].Value.ToString();
                    string pregunta;
                    pregunta = "¿Desea anular el movimiento de caja numero " + codFondosMov + "?";

                    PreguntaRespuesta pForm = new PreguntaRespuesta("Anular Movimiento",
                                                                    pregunta,
                                                                    pInfo,
                                                                    "NO",
                                                                    "SI");

                    pForm.ShowDialog();

                    if (pForm.SIoNO == "1")
                    {
                        DBRegistros objRegistro = new DBRegistros(codFondosMov,
                                                                  "Fondos_Mov",
                                                                  pForm.concepto,
                                                                  "CodFondoMov");

                        Alertas alert = new Alertas(objRegistro.AnularRegistro(), "");
                        alert.Show();

                        if (objRegistro.getCodigo() != "")
                        {
                            PrevisualizarReportes ViewReport = new PrevisualizarReportes();
                            ViewReport.Codigo  = objRegistro.getCodigo();
                            ViewReport.Reporte = "ReporteAnulacion";
                            ViewReport.Show();
                        }

                        CargarMovimientos();
                    }

                    this.codFondosMov = "";
                    return;
                }
            }
        }
Beispiel #2
0
 private void btnReImprimir_Click(object sender, EventArgs e)
 {
     if (codFondosMov != "")
     {
         PrevisualizarReportes ViewReport = new PrevisualizarReportes();
         ViewReport.Codigo  = codFondosMov;
         ViewReport.Reporte = "ReporteMovCaja";
         ViewReport.Show();
     }
 }
 private void btnReImprimir_Click(object sender, EventArgs e)
 {
     if (codRecibo != "")
     {
         PrevisualizarReportes ViewReport = new PrevisualizarReportes();
         ViewReport.Codigo  = codRecibo;
         ViewReport.Reporte = "ReciboDePagoCuota";
         ViewReport.Show();
     }
 }
Beispiel #4
0
        private void btnHistorialPago_Click(object sender, EventArgs e)
        {
            PagosClientesCreditos PagosCreditosForm = new PagosClientesCreditos(codCliente, lblNombre.Text);

            PagosCreditosForm.ShowDialog();

            if (PagosCreditosForm.Msj != "")
            {
                Alertas alert;
                alert = new Alertas(PagosCreditosForm.Msj, "");
                alert.Show();

                if (PagosCreditosForm.NroRecibo != "")
                {
                    PrevisualizarReportes ViewReport = new PrevisualizarReportes();
                    ViewReport.Codigo  = PagosCreditosForm.NroRecibo;
                    ViewReport.Reporte = "ReciboDePagoCuota";
                    ViewReport.Show();
                }
            }
        }
Beispiel #5
0
        private void FormAltaMov(string tipoMov)
        {
            AltaMovimientos AltaMovForm = new AltaMovimientos(tipoMov);

            AltaMovForm.ShowDialog();

            if (AltaMovForm.CodMovimiento != "")
            {
                PrevisualizarReportes ViewReport = new PrevisualizarReportes();
                ViewReport.Codigo  = AltaMovForm.CodMovimiento;
                ViewReport.Reporte = "ReporteMovCaja";
                ViewReport.Show();
            }

            CargarMovimientos();

            if (AltaMovForm.getMsj() != "")
            {
                Alertas alert = new Alertas(AltaMovForm.getMsj(), "");
                alert.Show();
            }
        }