Ejemplo n.º 1
0
        private void btnBuscar_Click(object sender, EventArgs e)
        {
            int    mes       = Convert.ToInt32(this.cmbMeses.SelectedIndex + 1);
            string mesNombre = cmbMeses.SelectedItem.ToString();

            DataSet sociosResultado = empresa.devolverCumpleMes(mes);

            if (sociosResultado.Tables["sociosCumpleMes"].Rows.Count > 0)
            {
                for (int n = 0; n <= sociosResultado.Tables["sociosCumpleMes"].Rows.Count - 1; n++)
                {
                    string socio_apellido = sociosResultado.Tables["sociosCumpleMes"].Rows[n][3].ToString();
                    string socio_nombre   = sociosResultado.Tables["sociosCumpleMes"].Rows[n][2].ToString();
                    string numerocobro    = sociosResultado.Tables["sociosCumpleMes"].Rows[n][4].ToString();
                    string numeroSocio    = sociosResultado.Tables["sociosCumpleMes"].Rows[n][1].ToString();
                    string fechaNac       = sociosResultado.Tables["sociosCumpleMes"].Rows[n][5].ToString();
                    string baja           = sociosResultado.Tables["sociosCumpleMes"].Rows[n][14].ToString();
                    string telefono       = sociosResultado.Tables["sociosCumpleMes"].Rows[n][13].ToString();
                    string oficina        = sociosResultado.Tables["sociosCumpleMes"].Rows[n][16].ToString();
                    string Inciso         = sociosResultado.Tables["sociosCumpleMes"].Rows[n][17].ToString();

                    ingresadosEn.SociosIngresadosEn.Rows.Add(socio_apellido, socio_nombre, numeroSocio, fechaNac, baja, telefono, mesNombre, mesNombre, Inciso, oficina, numerocobro);
                }
                frmVerReportes reporte = new frmVerReportes(ingresadosEn, "SOCIOS_CUMPLE");
                reporte.ShowDialog();
                ingresadosEn.SociosIngresadosEn.Rows.Clear();
            }
            else
            {
                MessageBox.Show("No hay socios cuyo cumpleaños sea en " + mesNombre);
            }
        }
Ejemplo n.º 2
0
        private void btnBuscar_Click(object sender, EventArgs e)
        {
            int    mes       = Convert.ToInt32(this.cmbMeses.SelectedIndex + 1);
            string mesNombre = cmbMeses.SelectedItem.ToString();;
            string anio      = cmbAnios.SelectedItem.ToString();

            string presupuesto;

            if (mes < 10)
            {
                presupuesto = "0" + mes + "/" + anio;
            }
            else
            {
                presupuesto = mes + "/" + anio;
            }
            DE.Clear();

            DataSet prestamosPresupuesto = empresa.devolverPresupuestoDelMes(presupuesto);

            if (prestamosPresupuesto.Tables["presupuestoMes"].Rows.Count > 0)
            {
                for (int n = 0; n <= prestamosPresupuesto.Tables["presupuestoMes"].Rows.Count - 1; n++)
                {
                    string socio_apellido    = prestamosPresupuesto.Tables["presupuestoMes"].Rows[n][0].ToString();
                    string socio_nombre      = prestamosPresupuesto.Tables["presupuestoMes"].Rows[n][1].ToString();
                    string numerocobro       = prestamosPresupuesto.Tables["presupuestoMes"].Rows[n][2].ToString();
                    string cantidadcuotas    = prestamosPresupuesto.Tables["presupuestoMes"].Rows[n][3].ToString();
                    string nrocuotas         = prestamosPresupuesto.Tables["presupuestoMes"].Rows[n][4].ToString();
                    Double AmortizacionCuota = Convert.ToDouble(prestamosPresupuesto.Tables["presupuestoMes"].Rows[n][5].ToString());
                    Double InteresCuota      = Convert.ToDouble(prestamosPresupuesto.Tables["presupuestoMes"].Rows[n][6].ToString());
                    Double iva                = Convert.ToDouble(prestamosPresupuesto.Tables["presupuestoMes"].Rows[n][7].ToString());
                    Double aportecapital      = Convert.ToDouble(prestamosPresupuesto.Tables["presupuestoMes"].Rows[n][8].ToString());
                    Double excedido           = Convert.ToDouble(prestamosPresupuesto.Tables["presupuestoMes"].Rows[n][9].ToString());
                    Double mora               = Convert.ToDouble(prestamosPresupuesto.Tables["presupuestoMes"].Rows[n][10].ToString());
                    Double ivaMora            = Convert.ToDouble(prestamosPresupuesto.Tables["presupuestoMes"].Rows[n][11].ToString());
                    Double totalADescontar    = Convert.ToDouble(prestamosPresupuesto.Tables["presupuestoMes"].Rows[n][12].ToString());
                    Double AmortizacionVencer = Convert.ToDouble(prestamosPresupuesto.Tables["presupuestoMes"].Rows[n][13].ToString());
                    Double InteresVencer      = Convert.ToDouble(prestamosPresupuesto.Tables["presupuestoMes"].Rows[n][14].ToString());
                    Double IvaVencer          = Convert.ToDouble(prestamosPresupuesto.Tables["presupuestoMes"].Rows[n][15].ToString());
                    String oficina            = prestamosPresupuesto.Tables["presupuestoMes"].Rows[n][17].ToString();
                    String Inciso             = prestamosPresupuesto.Tables["presupuestoMes"].Rows[n][16].ToString();
                    String fecha              = DateTime.Today.ToLongDateString();

                    // DE.InformePresupuesto.Rows.Add(socio_apellido, socio_nombre, numerocobro, cantidadcuotas, nrocuotas, AmortizacionCuota.ToString("##0.00"), InteresCuota.ToString("##0.00"), iva.ToString("##0.00"), aportecapital.ToString("##0.00"), excedido.ToString("##0.00"), mora.ToString("##0.00"), ivaMora.ToString("##0.00"), totalADescontar.ToString("##0.00"), AmortizacionVencer.ToString("##0.00"), InteresVencer.ToString("##0.00"), IvaVencer.ToString("##0.00"), oficina, Inciso, fecha, presupuesto);
                    DE.InformePresupuesto.Rows.Add(socio_apellido, socio_nombre, numerocobro, cantidadcuotas, nrocuotas, AmortizacionCuota.ToString("#,##0.00"), InteresCuota.ToString("#,##0.00"), iva.ToString("#,##0.00"), aportecapital.ToString("#,##0.00"), excedido.ToString("#,##0.00"), mora.ToString("#,##0.00"), ivaMora.ToString("#,##0.00"), totalADescontar.ToString("#,##0.00"), AmortizacionVencer.ToString("#,##0.00"), InteresVencer.ToString("#,##0.00"), IvaVencer.ToString("#,##0.00"), oficina, Inciso, fecha, presupuesto);
                }

                frmVerReportes reporte = new frmVerReportes(DE, "PRESUPUESTO_MES");
                reporte.ShowDialog();
            }
            else
            {
                MessageBox.Show("Sin registros");
            }
        }
        private void btnImprimirCobranza_Click(object sender, EventArgs e)
        {
            btnGuardarSocio.Enabled = true;

            DE.cancelacion.Rows.Add(txtCiCA.Text, txtNroCobroCA.Text, txtOficinaCA.Text + "/" + txtIncisoCA.Text, txtApeNomCA.Text, txtNroPrestamoCA.Text, txtCuotasPactadasCA.Text, txtCuotasPagadasCA.Text, txtAmortizacionAVencerCA.Text, txtInteresesAVencerCA.Text, txtPresupuestoDeCancelacion.Text, DateTime.Today, Utilidades.UsuarioLogueado.Alias.ToString(), "( " + empresa.ESCNUM(txtAmortizacionAVencerCA.Text) + " )");
            frmVerReportes reporte = new frmVerReportes(DE, "CANCELACION");

            reporte.ShowDialog();
            DE.cancelacion.Rows.Clear();
        }
Ejemplo n.º 4
0
        private void btnBuscar_Click(object sender, EventArgs e)
        {
            int    mes       = Convert.ToInt32(this.cmbMeses.SelectedIndex + 1);
            string mesNombre = cmbMeses.SelectedItem.ToString();;
            string anio      = cmbAnios.SelectedItem.ToString();

            string presupuesto;

            if (mes < 10)
            {
                presupuesto = "0" + mes + "/" + anio;
            }
            else
            {
                presupuesto = mes + "/" + anio;
            }

            DataSet interfacesGenerales = empresa.devolverInterfacesGeneralesInforme(presupuesto);

            if (interfacesGenerales.Tables["interfacesInforme"].Rows.Count > 0)
            {
                for (int n = 0; n <= interfacesGenerales.Tables["interfacesInforme"].Rows.Count - 1; n++)
                {
                    String numeroPrestamo = interfacesGenerales.Tables["interfacesInforme"].Rows[n][1].ToString();
                    String cedula         = interfacesGenerales.Tables["interfacesInforme"].Rows[n][2].ToString();
                    Double importeCuota   = Convert.ToDouble(interfacesGenerales.Tables["interfacesInforme"].Rows[n][3].ToString());
                    Double aportecapital  = Convert.ToDouble(interfacesGenerales.Tables["interfacesInforme"].Rows[n][4].ToString());
                    String numeroCobro    = interfacesGenerales.Tables["interfacesInforme"].Rows[n][5].ToString();

                    String inciso  = interfacesGenerales.Tables["interfacesInforme"].Rows[n][6].ToString();
                    String oficina = interfacesGenerales.Tables["interfacesInforme"].Rows[n][7].ToString();

                    String nombres   = interfacesGenerales.Tables["interfacesInforme"].Rows[n][13].ToString();
                    String apellidos = interfacesGenerales.Tables["interfacesInforme"].Rows[n][14].ToString();

                    Double Excedido = Convert.ToDouble(interfacesGenerales.Tables["interfacesInforme"].Rows[n][10].ToString());
                    Double Mora     = Convert.ToDouble(interfacesGenerales.Tables["interfacesInforme"].Rows[n][11].ToString());
                    Double IvaMora  = Convert.ToDouble(interfacesGenerales.Tables["interfacesInforme"].Rows[n][12].ToString());

                    Double resultadoInter = importeCuota + aportecapital + Excedido + Mora + IvaMora;

                    String fecha = DateTime.Today.ToLongDateString();

                    tablaInterface.Interface.Rows.Add(cedula, nombres, apellidos, numeroCobro, /* resultadoInter.ToString("##0.00"),*/ resultadoInter.ToString("#,##0.00"), inciso, oficina, presupuesto, fecha);
                }
                frmVerReportes reporte = new frmVerReportes(tablaInterface, "INTERFACES_GENERALES");
                reporte.ShowDialog();
                tablaInterface.Interface.Rows.Clear();
            }
            else
            {
                MessageBox.Show("No se encuentran registros");
            }
        }
        private void btnBuscar_Click(object sender, EventArgs e)
        {
            int    mes       = Convert.ToInt32(this.cmbMeses.SelectedIndex + 1);
            string mesNombre = cmbMeses.SelectedItem.ToString();;
            string anio      = cmbAnios.SelectedItem.ToString();

            string presupuesto;

            if (mes < 10)
            {
                presupuesto = "0" + mes + "/" + anio;
            }
            else
            {
                presupuesto = mes + "/" + anio;
            }

            DataSet cancelacionesAnticipadas = empresa.devolverCanelacionesPresupuesto(presupuesto);

            if (cancelacionesAnticipadas.Tables["canelacionesAnticipadas"].Rows.Count > 0)
            {
                for (int n = 0; n <= cancelacionesAnticipadas.Tables["canelacionesAnticipadas"].Rows.Count - 1; n++)
                {
                    DateTime FechaCancelacion   = Convert.ToDateTime(cancelacionesAnticipadas.Tables["canelacionesAnticipadas"].Rows[n][0].ToString());
                    String   socio_nro          = cancelacionesAnticipadas.Tables["canelacionesAnticipadas"].Rows[n][1].ToString();
                    String   socio_nombre       = cancelacionesAnticipadas.Tables["canelacionesAnticipadas"].Rows[n][2].ToString();
                    String   socio_apellido     = cancelacionesAnticipadas.Tables["canelacionesAnticipadas"].Rows[n][3].ToString();
                    String   NumeroPrestamo     = cancelacionesAnticipadas.Tables["canelacionesAnticipadas"].Rows[n][4].ToString();
                    int      CuotasPactadas     = Convert.ToInt32(cancelacionesAnticipadas.Tables["canelacionesAnticipadas"].Rows[n][5].ToString());
                    int      CuotasPagadas      = Convert.ToInt32(cancelacionesAnticipadas.Tables["canelacionesAnticipadas"].Rows[n][6].ToString());
                    Double   Tasa               = Convert.ToDouble(cancelacionesAnticipadas.Tables["canelacionesAnticipadas"].Rows[n][7].ToString());
                    Double   MontoVale          = Convert.ToDouble(cancelacionesAnticipadas.Tables["canelacionesAnticipadas"].Rows[n][8].ToString());
                    Double   ImporteCuota       = Convert.ToDouble(cancelacionesAnticipadas.Tables["canelacionesAnticipadas"].Rows[n][9].ToString());
                    Double   AmortizacionVencer = Convert.ToDouble(cancelacionesAnticipadas.Tables["canelacionesAnticipadas"].Rows[n][10].ToString());
                    Double   InteresesVencer    = Convert.ToDouble(cancelacionesAnticipadas.Tables["canelacionesAnticipadas"].Rows[n][11].ToString());

                    String fecha = DateTime.Today.ToShortDateString();

                    cancelaciones.cancelacion.Rows.Add(FechaCancelacion, socio_nro, socio_nombre, socio_apellido, NumeroPrestamo, CuotasPactadas, CuotasPagadas, Tasa.ToString("#,##0.00"), MontoVale.ToString("#,##0.00"), ImporteCuota.ToString("#,##0.00"), AmortizacionVencer.ToString("#,##0.00"), InteresesVencer.ToString("#,##0.00"), presupuesto, fecha);
                }

                frmVerReportes reporte = new frmVerReportes(cancelaciones, "CANCELACION_ANTICIPADA");
                reporte.ShowDialog();
                cancelaciones.cancelacion.Rows.Clear();
            }
            else
            {
                MessageBox.Show("No se encuentran cancelaciones anticipadas para el presupuesto buscado");
            }
        }
Ejemplo n.º 6
0
 private void btnImprimirRecibo_Click(object sender, EventArgs e)
 {
     if (!(txtNroCheque.Text.Trim() == ""))
     {
         reciboImpreso = true;
         dsD.Clear();
         dsD.utilidad.Rows.Add(lblTotal.Text, txtCedula.Text, lblNombresApellidos.Text, dtpFechaPago.Value.ToShortDateString(), txtNroCheque.Text, primerEjercicio, ultimoEjercicio, "");
         frmVerReportes reporte = new frmVerReportes(dsD, "UTILIDAD");
         reporte.ShowDialog();
     }
     else
     {
         MessageBox.Show("No ha impreso Recibo.");
     }
 }
Ejemplo n.º 7
0
        private void btnBuscar_Click(object sender, EventArgs e)
        {
            int    mes       = Convert.ToInt32(this.cmbMeses.SelectedIndex + 1);
            string mesNombre = cmbMeses.SelectedItem.ToString();;
            string anio      = cmbAnios.SelectedItem.ToString();

            string presupuesto;

            if (mes < 10)
            {
                presupuesto = "0" + mes + "/" + anio;
            }
            else
            {
                presupuesto = mes + "/" + anio;
            }

            DataSet pagoExcedidosPresupuesto = empresa.PagoDeExcedidosPorPresupuesto(presupuesto);

            if (pagoExcedidosPresupuesto.Tables["pagoExecidosPorPresupuesto"].Rows.Count > 0)
            {
                for (int n = 0; n <= pagoExcedidosPresupuesto.Tables["pagoExecidosPorPresupuesto"].Rows.Count - 1; n++)
                {
                    String socio_apellido     = pagoExcedidosPresupuesto.Tables["pagoExecidosPorPresupuesto"].Rows[n][0].ToString();
                    String socio_nombre       = pagoExcedidosPresupuesto.Tables["pagoExecidosPorPresupuesto"].Rows[n][1].ToString();
                    String socio_nroCobro     = pagoExcedidosPresupuesto.Tables["pagoExecidosPorPresupuesto"].Rows[n][2].ToString();
                    String socio_nro          = pagoExcedidosPresupuesto.Tables["pagoExecidosPorPresupuesto"].Rows[n][3].ToString();
                    String presupuestodelpago = pagoExcedidosPresupuesto.Tables["pagoExecidosPorPresupuesto"].Rows[n][4].ToString();
                    Double aretener           = Convert.ToDouble(pagoExcedidosPresupuesto.Tables["pagoExecidosPorPresupuesto"].Rows[n][5].ToString());
                    Double retenido           = Convert.ToDouble(pagoExcedidosPresupuesto.Tables["pagoExecidosPorPresupuesto"].Rows[n][6].ToString());
                    Double deuda   = Convert.ToDouble(pagoExcedidosPresupuesto.Tables["pagoExecidosPorPresupuesto"].Rows[n][7].ToString());
                    Double mora    = Convert.ToDouble(pagoExcedidosPresupuesto.Tables["pagoExecidosPorPresupuesto"].Rows[n][8].ToString());
                    Double total   = Convert.ToDouble(pagoExcedidosPresupuesto.Tables["pagoExecidosPorPresupuesto"].Rows[n][9].ToString());
                    String inciso  = pagoExcedidosPresupuesto.Tables["pagoExecidosPorPresupuesto"].Rows[n][10].ToString();
                    String oficina = pagoExcedidosPresupuesto.Tables["pagoExecidosPorPresupuesto"].Rows[n][11].ToString();

                    tmpDsPagoExcedidosPresupuesto.excedidos.Rows.Add(socio_apellido, socio_nombre, socio_nroCobro, socio_nro, presupuestodelpago, aretener.ToString("#,##0"), retenido.ToString("#,##0"), deuda.ToString("#,##0"), mora.ToString("#,##0"), total.ToString("#,##0"), inciso, oficina, presupuesto);
                }

                frmVerReportes reporte = new frmVerReportes(tmpDsPagoExcedidosPresupuesto, "PAGO_EXCEDIDOS_PRESUPUESTO");
                reporte.ShowDialog();
                tmpDsPagoExcedidosPresupuesto.excedidos.Rows.Clear();
            }
            else
            {
                MessageBox.Show("No se encuentran excedidos para el presupuesto " + presupuesto);
            }
        }
Ejemplo n.º 8
0
        private void btnBuscar_Click(object sender, EventArgs e)
        {
            int    mes       = Convert.ToInt32(this.cmbMeses.SelectedIndex + 1);
            string mesNombre = cmbMeses.SelectedItem.ToString();;
            string anio      = cmbAnios.SelectedItem.ToString();

            string presupuesto;

            if (mes < 10)
            {
                presupuesto = "0" + mes + "/" + anio;
            }
            else
            {
                presupuesto = mes + "/" + anio;
            }
            DE.Clear();

            DataSet prestamosPresupuesto = empresa.devolverPrestamosOtorgadosPresupuesto(presupuesto);

            if (prestamosPresupuesto.Tables["prestamosOtorgadosPresupuesto"].Rows.Count > 0)
            {
                for (int n = 0; n <= prestamosPresupuesto.Tables["prestamosOtorgadosPresupuesto"].Rows.Count - 1; n++)
                {
                    string   numerocobro        = prestamosPresupuesto.Tables["prestamosOtorgadosPresupuesto"].Rows[n][0].ToString();
                    string   cedula             = prestamosPresupuesto.Tables["prestamosOtorgadosPresupuesto"].Rows[n][1].ToString();
                    DateTime fecha              = Convert.ToDateTime(prestamosPresupuesto.Tables["prestamosOtorgadosPresupuesto"].Rows[n][2].ToString());
                    int      NumeroPrestamo     = Convert.ToInt32(prestamosPresupuesto.Tables["prestamosOtorgadosPresupuesto"].Rows[n][3].ToString());
                    Double   monto              = Convert.ToDouble(prestamosPresupuesto.Tables["prestamosOtorgadosPresupuesto"].Rows[n][4].ToString());
                    Double   saldoAnterior      = Convert.ToDouble(prestamosPresupuesto.Tables["prestamosOtorgadosPresupuesto"].Rows[n][5].ToString());
                    Double   total              = Convert.ToDouble(prestamosPresupuesto.Tables["prestamosOtorgadosPresupuesto"].Rows[n][6].ToString());
                    Double   totalIntereses     = Convert.ToDouble(prestamosPresupuesto.Tables["prestamosOtorgadosPresupuesto"].Rows[n][7].ToString());
                    Double   interesesDeducidos = Convert.ToDouble(prestamosPresupuesto.Tables["prestamosOtorgadosPresupuesto"].Rows[n][8].ToString());
                    Double   saldoIntereses     = Convert.ToDouble(prestamosPresupuesto.Tables["prestamosOtorgadosPresupuesto"].Rows[n][9].ToString());
                    String   inciso             = prestamosPresupuesto.Tables["prestamosOtorgadosPresupuesto"].Rows[n][10].ToString();
                    String   oficina            = prestamosPresupuesto.Tables["prestamosOtorgadosPresupuesto"].Rows[n][11].ToString();

                    DE.PrestamosPresupuseto.Rows.Add(numerocobro, cedula, fecha.ToShortDateString(), NumeroPrestamo, monto.ToString("#,##0.00"), saldoAnterior.ToString("#,##0.00"), total.ToString("#,##0.00"), totalIntereses.ToString("#,##0.00"), interesesDeducidos.ToString("#,##0.00"), saldoIntereses.ToString("#,##0.00"), inciso, oficina, presupuesto);
                }

                frmVerReportes reporte = new frmVerReportes(DE, "PRESTAMOS_PRESUPUESTO");
                reporte.ShowDialog();
            }
            else
            {
                MessageBox.Show("Sin registros");
            }
        }
Ejemplo n.º 9
0
        private void btnBuscar_Click(object sender, EventArgs e)
        {
            int    mes       = Convert.ToInt32(this.cmbMeses.SelectedIndex + 1);
            string mesNombre = cmbMeses.SelectedItem.ToString();
            string anio      = cmbAnios.SelectedItem.ToString();

            DateTime fechaInicial = Convert.ToDateTime(anio + "-" + mes + "-" + "01");
            DateTime fechaFinal   = fechaInicial.AddMonths(1).AddDays(-1);

            DataSet sociosResultado = empresa.devolverIngresadosEntreFechas(fechaInicial, fechaFinal);

            if (sociosResultado.Tables["sociosEntreFechas"].Rows.Count > 0)
            {
                for (int n = 0; n <= sociosResultado.Tables["sociosEntreFechas"].Rows.Count - 1; n++)
                {
                    string socio_apellido = sociosResultado.Tables["sociosEntreFechas"].Rows[n][3].ToString();
                    string socio_nombre   = sociosResultado.Tables["sociosEntreFechas"].Rows[n][2].ToString();
                    string numerocobro    = sociosResultado.Tables["sociosEntreFechas"].Rows[n][4].ToString();
                    string numeroSocio    = sociosResultado.Tables["sociosEntreFechas"].Rows[n][1].ToString();
                    string fechaIngreso   = sociosResultado.Tables["sociosEntreFechas"].Rows[n][6].ToString();
                    //DateTime fechaIngresoFormateada = (Convert.ToDateTime(fechaIngreso.ToString())).ToShortDateString();
                    string baja          = sociosResultado.Tables["sociosEntreFechas"].Rows[n][18].ToString();
                    string bajaResultado = "NO";

                    if (baja == "0")
                    {
                        bajaResultado = "SI";
                    }

                    string telefono = sociosResultado.Tables["sociosEntreFechas"].Rows[n][13].ToString();
                    string oficina  = sociosResultado.Tables["sociosEntreFechas"].Rows[n][16].ToString();
                    string Inciso   = sociosResultado.Tables["sociosEntreFechas"].Rows[n][17].ToString();

                    ingresadosEn.SociosIngresadosEn.Rows.Add(socio_apellido, socio_nombre, numeroSocio, fechaIngreso, bajaResultado, telefono, mesNombre, anio, Inciso, oficina, numerocobro);
                }
                frmVerReportes reporte = new frmVerReportes(ingresadosEn, "SOCIOS_INGRESADOS_EN");
                reporte.ShowDialog();
                ingresadosEn.SociosIngresadosEn.Rows.Clear();
            }
            else
            {
                MessageBox.Show("No se encuentran socios ingresados en las fechas seleccionadas");
            }
        }
Ejemplo n.º 10
0
        private void btnBuscar_Click(object sender, EventArgs e)
        {
            string departamento = cmbDepartamento.SelectedValue.ToString();
            string signo        = cmbSigno.SelectedItem.ToString();

            DataSet sociosResultado = empresa.listadoSociosDepartamento(signo, departamento);

            if (sociosResultado.Tables["sociosDepartamento"].Rows.Count > 0)
            {
                for (int n = 0; n <= sociosResultado.Tables["sociosDepartamento"].Rows.Count - 1; n++)
                {
                    string socio_apellido = sociosResultado.Tables["sociosDepartamento"].Rows[n][3].ToString();
                    string socio_nombre   = sociosResultado.Tables["sociosDepartamento"].Rows[n][2].ToString();
                    string numerocobro    = sociosResultado.Tables["sociosDepartamento"].Rows[n][4].ToString();
                    string numeroSocio    = sociosResultado.Tables["sociosDepartamento"].Rows[n][1].ToString();
                    string direccion      = sociosResultado.Tables["sociosDepartamento"].Rows[n][14].ToString();
                    string baja           = sociosResultado.Tables["sociosDepartamento"].Rows[n][18].ToString();
                    string bajaResultado  = "NO";

                    if (baja == "0")
                    {
                        bajaResultado = "SI";
                    }

                    string telefono = sociosResultado.Tables["sociosDepartamento"].Rows[n][13].ToString();
                    string oficina  = sociosResultado.Tables["sociosDepartamento"].Rows[n][16].ToString();
                    string Inciso   = sociosResultado.Tables["sociosDepartamento"].Rows[n][17].ToString();

                    ingresadosEn.SociosIngresadosEn.Rows.Add(socio_apellido, socio_nombre, numeroSocio, direccion, bajaResultado, telefono, DateTime.Today.ToShortDateString(), DateTime.Today.ToShortTimeString(), Inciso, oficina, numerocobro);
                }
                frmVerReportes reporte = new frmVerReportes(ingresadosEn, "SOCIOS_LISTADO_DEPTO");
                reporte.ShowDialog();
                ingresadosEn.SociosIngresadosEn.Rows.Clear();
            }
            else
            {
                MessageBox.Show("No se encuentran socios en el departamento seleccionado");
            }
        }
Ejemplo n.º 11
0
        private void btnActualizar_Click(object sender, EventArgs e)
        {
            eventosDataSet = empresa.devolverEventosEntreFechas(this.dtpFechaDesde.Value, this.dtpFechaHasta.Value);

            if (eventosDataSet.Tables["eventos"].Rows.Count > 0)
            {
                for (int n = 0; n <= eventosDataSet.Tables["eventos"].Rows.Count - 1; n++)
                {
                    DateTime fecha       = eventosDataSet.Tables["eventos"].Rows[n].Field <DateTime>("fecha");
                    String   descripcion = eventosDataSet.Tables["eventos"].Rows[n].Field <String>("descripcion");

                    DE.evento.Rows.Add(fecha.ToString("dd/MM/yyyy"), descripcion);
                }
                frmVerReportes reporte = new frmVerReportes(DE, "RP_EVENTOS");
                reporte.ShowDialog();
                DE.evento.Rows.Clear();
            }
            else
            {
                MessageBox.Show("No se encuentran registros para las fechas seleccionadas");
            }
        }
Ejemplo n.º 12
0
        private void button1_Click(object sender, EventArgs e)
        {
            DataSet planesResultado = empresa.DevolverPlanes();
            String  fechaActual     = DateTime.Today.ToShortDateString();

            if (planesResultado.Tables["planprestamo"].Rows.Count > 0)
            {
                for (int n = 0; n <= planesResultado.Tables["planprestamo"].Rows.Count - 1; n++)
                {
                    string plan_NroCuotas = planesResultado.Tables["planprestamo"].Rows[n][1].ToString();
                    string importe        = planesResultado.Tables["planprestamo"].Rows[n][6].ToString();
                    tmpPlanesPrestamo.planes.Rows.Add(plan_NroCuotas, Convert.ToDouble(importe).ToString("###.00"), "", "", "", "");
                }

                frmVerReportes reporte = new frmVerReportes(tmpPlanesPrestamo, "REPORTE_PLANES_CADA_1000");
                reporte.ShowDialog();
                tmpPlanesPrestamo.Clear();
            }
            else
            {
                MessageBox.Show("No se encuentran planes de préstamos");
            }
        }
Ejemplo n.º 13
0
        private void btnReporte_Click(object sender, EventArgs e)
        {
            DataSet planesResultado = empresa.DevolverPlanes();
            String  fechaActual     = DateTime.Today.ToShortDateString();

            if (planesResultado.Tables["planprestamo"].Rows.Count > 0)
            {
                for (int n = 0; n <= planesResultado.Tables["planprestamo"].Rows.Count - 1; n++)
                {
                    string plan_NroCuotas         = planesResultado.Tables["planprestamo"].Rows[n][1].ToString();
                    string plan_TasaAnualEfectiva = planesResultado.Tables["planprestamo"].Rows[n][2].ToString();
                    string plan_IvaSobreIntereses = planesResultado.Tables["planprestamo"].Rows[n][3].ToString();
                    string plan_vigente           = planesResultado.Tables["planprestamo"].Rows[n][4].ToString();
                    string plan_nombre            = planesResultado.Tables["planprestamo"].Rows[n][5].ToString();

                    if (plan_vigente == "1")
                    {
                        plan_vigente = "Sí";
                    }
                    else
                    {
                        plan_vigente = "No";
                    }

                    tmpPlanesPrestamo.planes.Rows.Add(plan_NroCuotas, Convert.ToDouble(plan_TasaAnualEfectiva).ToString("###.00"), Convert.ToDouble(plan_IvaSobreIntereses).ToString("###.00"), plan_vigente, plan_nombre, fechaActual);
                }

                frmVerReportes reporte = new frmVerReportes(tmpPlanesPrestamo, "REPORTE_PLANES_PRESTAMOS");
                reporte.ShowDialog();
                tmpPlanesPrestamo.Clear();
            }
            else
            {
                MessageBox.Show("No se encuentran planes de préstamos");
            }
        }
Ejemplo n.º 14
0
        private void btnNuevoBanco_Click(object sender, EventArgs e)
        {
            string   id_banco   = cmbBusqueda.SelectedValue.ToString();
            DateTime fechaDesde = dtpFechaDesde.Value;
            DateTime fechaHasta = dtpFechaHasta.Value;
            String   concepto   = txtConcepto.Text;
            Double   totalHaber = 0;
            Double   totalDebe  = 0;

            DataSet cuentaCorriente = empresa.devolverCuentaCorriente(Convert.ToInt32(id_banco), fechaDesde, fechaHasta, concepto);

            if (cuentaCorriente.Tables["cuentacorriente"].Rows.Count > 0)
            {
                if (cuentaCorriente.Tables["cuentacorriente"].Rows.Count > 0)
                {
                    for (int n = 0; n <= cuentaCorriente.Tables["cuentacorriente"].Rows.Count - 1; n++)
                    {
                        string   nombrebanco      = cuentaCorriente.Tables["cuentacorriente"].Rows[n][0].ToString();
                        string   numerocta        = cuentaCorriente.Tables["cuentacorriente"].Rows[n][1].ToString();
                        string   moneda           = cuentaCorriente.Tables["cuentacorriente"].Rows[n][2].ToString();
                        string   movimiento       = cuentaCorriente.Tables["cuentacorriente"].Rows[n][3].ToString();
                        DateTime fecha            = Convert.ToDateTime(cuentaCorriente.Tables["cuentacorriente"].Rows[n][4].ToString());
                        string   numerodocumento  = cuentaCorriente.Tables["cuentacorriente"].Rows[n][5].ToString();
                        string   conceptoCompleto = cuentaCorriente.Tables["cuentacorriente"].Rows[n][6].ToString();
                        string   debehaber        = cuentaCorriente.Tables["cuentacorriente"].Rows[n][7].ToString();
                        string   importe          = cuentaCorriente.Tables["cuentacorriente"].Rows[n][8].ToString();
                        string   saldo            = cuentaCorriente.Tables["cuentacorriente"].Rows[n][9].ToString();

                        string fechaActual = DateTime.Today.ToLongDateString();

                        string debe  = "";
                        string haber = "";

                        if (debehaber == "Deposito")
                        {
                            debe       = "";
                            haber      = importe;
                            totalHaber = totalHaber + Convert.ToDouble(importe);

                            saldo = (Convert.ToDouble(saldo) + Convert.ToDouble(importe)).ToString("##0.00");
                        }

                        if (debehaber == "Cheque")
                        {
                            debe      = importe;
                            haber     = "";
                            totalDebe = totalDebe + Convert.ToDouble(importe);

                            saldo = (Convert.ToDouble(saldo) - Convert.ToDouble(importe)).ToString("##0.00");
                        }
                        tablaCuentaCorriente.CuentaCorriente.Rows.Add(nombrebanco, numerocta, moneda, movimiento, fecha.ToString("dd/MM/yyyy"), numerodocumento, conceptoCompleto, debe, haber, importe, saldo, fechaActual, totalDebe, totalHaber);
                    }
                }

                frmVerReportes reporte = new frmVerReportes(tablaCuentaCorriente, "CUENTAS_CORRIENTES");
                reporte.ShowDialog();
                tablaCuentaCorriente.CuentaCorriente.Rows.Clear();
            }
            else
            {
                MessageBox.Show("No hay registros para los datos ingresados");
            }
        }
Ejemplo n.º 15
0
        private void consultaEjercicio()
        {
            int anio = Convert.ToInt32(cmbAnio.SelectedItem.ToString());

            for (int i = 10; i <= 12; i++)
            {
                int mes = i;

                DataSet presupuesto = empresa.devolverDatosPresupuesto(mes + "/" + anio);

                if (presupuesto.Tables["datosPresupuesto"].Rows.Count > 0)
                {
                    for (int n = 0; n <= presupuesto.Tables["datosPresupuesto"].Rows.Count - 1; n++)
                    {
                        String Presupuesto = presupuesto.Tables["datosPresupuesto"].Rows[n][0].ToString();

                        if (Presupuesto != "")
                        {
                            Double InteresVencer      = Convert.ToDouble(presupuesto.Tables["datosPresupuesto"].Rows[n][1].ToString());
                            Double AmortizacionVencer = Convert.ToDouble(presupuesto.Tables["datosPresupuesto"].Rows[n][2].ToString());
                            Double mora      = Convert.ToDouble(presupuesto.Tables["datosPresupuesto"].Rows[n][3].ToString());
                            String ejercicio = txtEjercicio.Text;
                            tmpDsDatosPresupuesto.datos.Rows.Add(Presupuesto, InteresVencer.ToString("#,##0.00"), AmortizacionVencer.ToString("#,##0.00"), mora.ToString("#,##0.00"), ejercicio);
                        }
                        else
                        {
                            tmpDsDatosPresupuesto.datos.Rows.Add(mes + "/" + anio, 0, 0, 0, "---");
                        }
                    }
                }
            }

            anio = anio + 1;

            for (int i = 1; i <= 9; i++)
            {
                int mes = i;

                DataSet presupuesto = empresa.devolverDatosPresupuesto("0" + mes + "/" + anio);

                if (presupuesto.Tables["datosPresupuesto"].Rows.Count > 0)
                {
                    for (int n = 0; n <= presupuesto.Tables["datosPresupuesto"].Rows.Count - 1; n++)
                    {
                        String Presupuesto = presupuesto.Tables["datosPresupuesto"].Rows[n][0].ToString();

                        if (Presupuesto != "")
                        {
                            Double InteresVencer      = Convert.ToDouble(presupuesto.Tables["datosPresupuesto"].Rows[n][1].ToString());
                            Double AmortizacionVencer = Convert.ToDouble(presupuesto.Tables["datosPresupuesto"].Rows[n][2].ToString());
                            Double mora = Convert.ToDouble(presupuesto.Tables["datosPresupuesto"].Rows[n][3].ToString());

                            tmpDsDatosPresupuesto.datos.Rows.Add(Presupuesto, InteresVencer.ToString("##0.00"), AmortizacionVencer.ToString("##0.00"), mora.ToString("##0.00"), this.txtEjercicio.Text);
                        }
                        else
                        {
                            tmpDsDatosPresupuesto.datos.Rows.Add("0" + mes + "/" + anio, 0, 0, 0, "---");
                        }
                    }
                }
            }

            frmVerReportes reporte = new frmVerReportes(tmpDsDatosPresupuesto, "DATOS_PRSUPUESTO");

            reporte.ShowDialog();
            tmpDsDatosPresupuesto.datos.Rows.Clear();
        }