Exemplo n.º 1
0
        private void Buscar(Int32 CodGarantia)
        {
            cGarantia gar  = new cGarantia();
            DataTable trdo = gar.GetGarantiaxCodigo(CodGarantia);

            if (trdo.Rows.Count > 0)
            {
                txtPatente.Text  = trdo.Rows[0]["Patente"].ToString();
                txtImporte.Text  = trdo.Rows[0]["Importe"].ToString();
                txtSaldo.Text    = trdo.Rows[0]["Saldo"].ToString();
                txtCodOrden.Text = trdo.Rows[0]["CodOrden"].ToString();
                if (txtImporte.Text != "")
                {
                    txtImporte.Text = fun.SepararDecimales(txtImporte.Text);
                    txtImporte.Text = fun.FormatoEnteroMiles(txtImporte.Text);
                }

                if (txtSaldo.Text != "")
                {
                    txtSaldo.Text = fun.SepararDecimales(txtSaldo.Text);
                    txtSaldo.Text = fun.FormatoEnteroMiles(txtSaldo.Text);
                }
            }
            if (txtSaldo.Text == "0")
            {
                btnGrabar.Enabled = false;
                btnAnular.Enabled = true;
            }
            else
            {
                btnGrabar.Enabled = true;
                btnAnular.Enabled = false;
            }
        }
Exemplo n.º 2
0
        private void btnBuscarOrden_Click(object sender, EventArgs e)
        {
            if (fun.ValidarFecha(txtFechaDesde.Text) == false)
            {
                Mensaje("La fecha desde es incorrecta");
                return;
            }

            if (fun.ValidarFecha(txtFechaHasta.Text) == false)
            {
                Mensaje("La fecha hasta es incorrecta");
                return;
            }

            DateTime  fechaDesde = Convert.ToDateTime(txtFechaDesde.Text);
            DateTime  fechaHasta = Convert.ToDateTime(txtFechaHasta.Text);
            cGarantia gar        = new cGarantia();
            DataTable trdo       = gar.GetGarantiasxFecha(fechaDesde, fechaHasta, txtPatente.Text);

            trdo = fun.TablaaMiles(trdo, "Importe");
            trdo = fun.TablaaMiles(trdo, "Saldo");
            Grilla.DataSource            = trdo;
            Grilla.Columns[0].Visible    = false;
            Grilla.Columns[1].HeaderText = "Orden";
            Grilla.Columns[5].Width      = 150;
            Grilla.Columns[6].Width      = 160;
            txtTotal.Text = fun.TotalizarColumna(trdo, "Saldo").ToString();
            txtTotal.Text = fun.FormatoEnteroMiles(txtTotal.Text);
        }
Exemplo n.º 3
0
        private double GetSaldoGarantia(Int32 CodOrden)
        {
            double    Saldo    = 0;
            cGarantia garantia = new cGarantia();

            Saldo = garantia.GetSaldoGarantiaxCodOrden(CodOrden);
            return(Saldo);
        }
Exemplo n.º 4
0
        private void Buscar()
        {
            cMovimiento mov      = new cMovimiento();
            double      Efectivo = mov.GetTotalEfectivo();

            txtEfectivo.Text = Efectivo.ToString();
            txtEfectivo.Text = fun.SepararDecimales(txtEfectivo.Text);
            txtEfectivo.Text = fun.FormatoEnteroMiles(txtEfectivo.Text);
            cDocumento doc        = new cDocumento();
            double     ImporteDoc = doc.GetTotalDocumentos();

            txtDocumentos.Text = ImporteDoc.ToString();
            txtDocumentos.Text = fun.SepararDecimales(txtDocumentos.Text);
            txtDocumentos.Text = fun.FormatoEnteroMiles(txtDocumentos.Text);
            cCobroTarjeta cobro = new cCobroTarjeta();

            txtTotalTarjeta.Text = cobro.GetTotal().ToString();
            txtTotalTarjeta.Text = fun.SepararDecimales(txtTotalTarjeta.Text);
            txtTotalTarjeta.Text = fun.FormatoEnteroMiles(txtTotalTarjeta.Text);
            cCheque cheque = new cCheque();

            txtTotalCheque.Text = cheque.GetTotalCheque().ToString();
            txtTotalCheque.Text = fun.SepararDecimales(txtTotalCheque.Text);
            txtTotalCheque.Text = fun.FormatoEnteroMiles(txtTotalCheque.Text);

            cGarantia garantia = new cGarantia();

            txtGarantia.Text = garantia.GetTotalGarantia().ToString();
            txtGarantia.Text = fun.SepararDecimales(txtGarantia.Text);
            txtGarantia.Text = fun.FormatoEnteroMiles(txtGarantia.Text);

            cInsumo insumo = new cInsumo();

            txtTotalInsumo.Text = insumo.GetTotalInsumo().ToString();
            txtTotalInsumo.Text = fun.SepararDecimales(txtTotalInsumo.Text);
            txtTotalInsumo.Text = fun.FormatoEnteroMiles(txtTotalInsumo.Text);

            cVale vale = new cVale();

            txtTotalVale.Text = vale.GetTotalVales().ToString();
            txtTotalVale.Text = fun.SepararDecimales(txtTotalVale.Text);
            txtTotalVale.Text = fun.FormatoEnteroMiles(txtTotalVale.Text);

            cTransferencia tra = new Clases.cTransferencia();

            txtTotalTransferencia.Text = tra.GetTotal().ToString();
            txtTotalTransferencia.Text = fun.SepararDecimales(txtTotalTransferencia.Text);
            txtTotalTransferencia.Text = fun.FormatoEnteroMiles(txtTotalTransferencia.Text);

            cCuentaCorriente cuenta        = new cCuentaCorriente();
            Double           ImporteCuenta = cuenta.GetTotal();

            txtCuentaCorriente.Text = ImporteCuenta.ToString();
            txtCuentaCorriente.Text = fun.SepararDecimales(txtCuentaCorriente.Text);
            txtCuentaCorriente.Text = fun.FormatoEnteroMiles(txtCuentaCorriente.Text);
        }
Exemplo n.º 5
0
        private void btnGrabar_Click(object sender, EventArgs e)
        {
            if (fun.ValidarFecha(txtFecha.Text) == false)
            {
                Mensaje("Ingresar una fecha válida");
                return;
            }
            DateTime  Fecha       = Convert.ToDateTime(txtFecha.Text);
            double    Importe     = fun.ToDouble(txtImporte.Text);
            string    Descripcion = "COBRO DE GARANTIA " + txtPatente.Text;
            cGarantia gar         = new cGarantia();

            gar.ActualizarPago(Convert.ToInt32(txtCodGarantia.Text), Fecha);
            cMovimiento mov = new cMovimiento();

            mov.GrabarMovimiento(Importe, Descripcion, Fecha, 1, Convert.ToInt32(txtCodOrden.Text));
            Mensaje("Datos grabados correctamente");
            Buscar(Convert.ToInt32(txtCodGarantia.Text));
        }
Exemplo n.º 6
0
        private void btnAnular_Click(object sender, EventArgs e)
        {
            if (fun.ValidarFecha(txtFecha.Text) == false)
            {
                Mensaje("La fecha ingresada es incorrecta");
                return;
            }

            double    Importe = fun.ToDouble(txtImporte.Text);
            DateTime  Fecha   = Convert.ToDateTime(txtFecha.Text);
            cGarantia gar     = new cGarantia();

            gar.AnularGarantia(Convert.ToInt32(txtCodGarantia.Text));
            cMovimiento mov         = new cMovimiento();
            string      Descripcion = "ANULACION DE PAGO DE GARANTIA , PATENTE" + txtPatente.Text;

            mov.GrabarMovimiento(-1 * Importe, Descripcion, Fecha, 1, Convert.ToInt32(txtCodOrden.Text));
            Mensaje("Datos grabados correctamente");
            Buscar(Convert.ToInt32(txtCodGarantia.Text));
        }
Exemplo n.º 7
0
        private void btnBuscar_Click(object sender, EventArgs e)
        {
            int ConDeuda = 0;

            if (ChkVencida.Checked == true)
            {
                ConDeuda = 1;
            }
            Clases.cFunciones fun      = new Clases.cFunciones();
            Int32?            CodOrden = null;
            DataTable         tResul   = fun.CrearTabla("Codigo;Tipo;Orden;Patente;Descripcion;Apellido;Telefono;Celular;Importe;Saldo;Fecha;Vencimiento;Cupon");

            if (txtPatente.Text == "" && txtApellido.Text == "" && txtCodOrden.Text == "")
            {
                CodOrden = -1;
            }

            if (txtCodOrden.Text != "")
            {
                CodOrden = Convert.ToInt32(txtCodOrden.Text);
            }
            string Cupon = "";

            if (txtCupon.Text != "")
            {
                Cupon = txtCupon.Text;
            }

            DateTime  Fecha   = Convert.ToDateTime(txtFecha.Text);
            string    Valor   = "";
            cCheque   cheque  = new cCheque();
            DataTable tcheque = cheque.GetChequesAdeudados(txtPatente.Text, txtApellido.Text, Fecha, ConDeuda, CodOrden);

            for (int i = 0; i < tcheque.Rows.Count; i++)
            {
                Valor = tcheque.Rows[i]["CodCheque"].ToString();
                Valor = Valor + ";" + "Cheque";
                Valor = Valor + ";" + tcheque.Rows[i]["CodOrden"].ToString();
                Valor = Valor + ";" + tcheque.Rows[i]["Patente"].ToString();
                Valor = Valor + ";" + tcheque.Rows[i]["Descripcion1"].ToString();
                Valor = Valor + ";" + tcheque.Rows[i]["Apellido"].ToString();
                Valor = Valor + ";" + tcheque.Rows[i]["Telefono"].ToString();
                Valor = Valor + ";"; //+ tcheque.Rows[i]["Celular"].ToString();
                Valor = Valor + ";" + tcheque.Rows[i]["Importe"].ToString();
                Valor = Valor + ";" + tcheque.Rows[i]["Importe"].ToString();
                Valor = Valor + ";" + tcheque.Rows[i]["Fecha"].ToString();
                Valor = Valor + ";" + tcheque.Rows[i]["FechaVto"].ToString();
                Valor = Valor + "; ";
                if (Cupon == "")
                {
                    tResul = fun.AgregarFilas(tResul, Valor);
                }
            }

            cGarantia garant = new cGarantia();
            DataTable tGar   = garant.GetGarantiasAdeudadas(txtPatente.Text, txtApellido.Text, Fecha, ConDeuda, CodOrden);

            for (int i = 0; i < tGar.Rows.Count; i++)
            {
                Valor = tGar.Rows[i]["CodGarantia"].ToString();
                Valor = Valor + ";" + "Garantía";
                Valor = Valor + ";" + tGar.Rows[i]["CodOrden"].ToString();
                Valor = Valor + ";" + tGar.Rows[i]["Patente"].ToString();
                Valor = Valor + ";" + tGar.Rows[i]["Descripcion1"].ToString();
                Valor = Valor + ";" + tGar.Rows[i]["Apellido"].ToString();
                Valor = Valor + ";" + tGar.Rows[i]["Telefono"].ToString();
                Valor = Valor + ";"; //+ tcheque.Rows[i]["Celular"].ToString();
                Valor = Valor + ";" + tGar.Rows[i]["Importe"].ToString();
                Valor = Valor + ";" + tGar.Rows[i]["Importe"].ToString();
                Valor = Valor + ";" + tGar.Rows[i]["Fecha"].ToString();
                Valor = Valor + "; ";
                Valor = Valor + "; ";
                if (Cupon == "")
                {
                    tResul = fun.AgregarFilas(tResul, Valor);
                }
            }

            cDocumento doc  = new cDocumento();
            DataTable  tdoc = doc.GetDocumentosAdeudados(txtPatente.Text, txtApellido.Text, Fecha, ConDeuda, CodOrden);

            for (int i = 0; i < tdoc.Rows.Count; i++)
            {
                Valor = tdoc.Rows[i]["CodDocumento"].ToString();
                Valor = Valor + ";" + "Documento";
                Valor = Valor + ";" + tdoc.Rows[i]["CodOrden"].ToString();
                Valor = Valor + ";" + tdoc.Rows[i]["Patente"].ToString();
                Valor = Valor + ";" + tdoc.Rows[i]["Descripcion1"].ToString();
                Valor = Valor + ";" + tdoc.Rows[i]["Apellido"].ToString();
                Valor = Valor + ";" + tdoc.Rows[i]["Telefono"].ToString();
                Valor = Valor + ";"; //+ tcheque.Rows[i]["Celular"].ToString();
                Valor = Valor + ";" + tdoc.Rows[i]["Importe"].ToString();

                Valor = Valor + ";" + tdoc.Rows[i]["Importe"].ToString();
                Valor = Valor + ";" + tdoc.Rows[i]["Fecha"].ToString();
                Valor = Valor + "; ";
                Valor = Valor + "; ";
                if (Cupon == "")
                {
                    tResul = fun.AgregarFilas(tResul, Valor);
                }
            }

            cCobroTarjeta cobro  = new cCobroTarjeta();
            DataTable     tcobro = cobro.GetCobrotarjetaAdeudada(txtPatente.Text, txtApellido.Text, Fecha, ConDeuda, CodOrden, Cupon);

            for (int i = 0; i < tcobro.Rows.Count; i++)
            {
                Valor = tcobro.Rows[i]["CodCobro"].ToString();
                Valor = Valor + ";" + "Tarjeta";
                Valor = Valor + ";" + tcobro.Rows[i]["CodOrden"].ToString();
                Valor = Valor + ";" + tcobro.Rows[i]["Patente"].ToString();
                Valor = Valor + ";" + tcobro.Rows[i]["Descripcion1"].ToString();
                Valor = Valor + ";" + tcobro.Rows[i]["Apellido"].ToString();
                Valor = Valor + ";" + tcobro.Rows[i]["Telefono"].ToString();
                Valor = Valor + ";"; //+ tcheque.Rows[i]["Celular"].ToString();
                Valor = Valor + ";" + tcobro.Rows[i]["Importe"].ToString();

                Valor = Valor + ";" + tcobro.Rows[i]["Importe"].ToString();
                Valor = Valor + ";" + tcobro.Rows[i]["Fecha"].ToString();
                Valor = Valor + "; ";
                Valor = Valor + ";" + tcobro.Rows[i]["Cupon"].ToString();

                tResul = fun.AgregarFilas(tResul, Valor);
            }
            double Total = fun.TotalizarColumna(tResul, "Saldo");

            txtTotal.Text             = Total.ToString();
            txtTotal.Text             = fun.FormatoEnteroMiles(txtTotal.Text);
            tResul                    = fun.TablaaMiles(tResul, "Importe");
            tResul                    = fun.TablaaMiles(tResul, "Saldo");
            Grilla.DataSource         = tResul;
            Grilla.Columns[0].Visible = false;
            //Grilla.Columns[4].Visible = false;
            Grilla.Columns[7].Visible = false;
            Pintar();
        }
Exemplo n.º 8
0
        private void GetRentabilidad()
        {
            cCobroTarjeta objCobro = new cCobroTarjeta();

            Clases.cFunciones fun        = new Clases.cFunciones();
            DateTime          FechaDesde = Convert.ToDateTime(txtFechaDesde.Text);
            DateTime          FechaHasta = Convert.ToDateTime(txtFechaHasta.Text);
            cOrden            orden      = new cOrden();

            txtCantidad.Text = orden.CantidadOrdenes(FechaDesde, FechaHasta).ToString();

            double Efectivo = orden.GetTotalEfectivo(FechaDesde, FechaHasta);

            txtEfectivo.Text = Efectivo.ToString();
            if (txtEfectivo.Text != "")
            {
                txtEfectivo.Text = fun.FormatoEnteroMiles(txtEfectivo.Text);
            }

            double        TotalTarjeta = 0;
            cCobroTarjeta cobro        = new cCobroTarjeta();

            TotalTarjeta = cobro.GetTotalTarjeta(FechaDesde, FechaHasta);

            //
            Double Saldo = cobro.GetSaldoxFecha(FechaDesde, FechaHasta);

            txtDiferenciaTarjeta.Text = Saldo.ToString();

            TotalTarjeta    = TotalTarjeta - Saldo;
            txtTarjeta.Text = TotalTarjeta.ToString();
            if (txtTarjeta.Text != "")
            {
                txtTarjeta.Text = fun.FormatoEnteroMiles(txtTarjeta.Text);
            }

            if (txtDiferenciaTarjeta.Text != "")
            {
                txtDiferenciaTarjeta.Text = fun.FormatoEnteroMiles(txtDiferenciaTarjeta.Text);
            }

            cDocumento doc         = new cDocumento();
            double     ImporteDocu = doc.GetTotalDocumento(FechaDesde, FechaHasta);

            txtImporteDocumento.Text = ImporteDocu.ToString();

            if (txtImporteDocumento.Text != "")
            {
                txtImporteDocumento.Text = fun.FormatoEnteroMiles(txtImporteDocumento.Text);
            }

            cCheque cheque        = new cCheque();
            double  ImporteCheque = cheque.GetTotalChequexFecha(FechaDesde, FechaHasta);

            txtcheque.Text = ImporteCheque.ToString();
            if (txtcheque.Text != "")
            {
                txtcheque.Text = fun.FormatoEnteroMiles(txtcheque.Text);
            }



            cGarantia garantia        = new cGarantia();
            double    ImporteGarantia = garantia.GetTotalGarantiaxFecha(FechaDesde, FechaHasta);

            txtGarantia.Text = ImporteGarantia.ToString();

            if (txtGarantia.Text != "")
            {
                txtGarantia.Text = fun.FormatoEnteroMiles(txtGarantia.Text);
            }

            cCuentaCorriente cc = new cCuentaCorriente();
            Double           ImporteCuentaCorriene = 0;

            ImporteCuentaCorriene        = cc.GetTotalCuentaxFecha(FechaDesde, FechaHasta);
            txtTotalCuentaCorriente.Text = ImporteCuentaCorriene.ToString();
            if (txtTotalCuentaCorriente.Text != "")
            {
                txtTotalCuentaCorriente.Text = fun.FormatoEnteroMiles(txtTotalCuentaCorriente.Text);
            }

            cTransferencia tranfer = new cTransferencia();
            Double         ImporteTransferencia = tranfer.GetTotalTransferencia(FechaDesde, FechaHasta);

            txtTotalTransferencia.Text = ImporteTransferencia.ToString();
            if (txtTotalTransferencia.Text != "")
            {
                txtTotalTransferencia.Text = fun.FormatoEnteroMiles(txtTotalTransferencia.Text);
            }

            double TotalFacturado = Efectivo + TotalTarjeta + ImporteDocu + ImporteCheque + ImporteGarantia + ImporteCuentaCorriene + ImporteTransferencia;

            txtTotalFacturado.Text = TotalFacturado.ToString();
            if (txtTotalFacturado.Text != "")
            {
                txtTotalFacturado.Text = fun.FormatoEnteroMiles(txtTotalFacturado.Text);
            }

            double GananciaInsumos = orden.GetGananciaInsumo(FechaDesde, FechaHasta);
            double RecargoTarjeta  = objCobro.GetTotalRecargoTarjeta(FechaDesde, FechaHasta);

            double VentaInsumo = orden.GetVentaInsumo(FechaDesde, FechaHasta);
            double CostoInsumo = orden.GetCostoInsumo(FechaDesde, FechaHasta);

            txtVentaInsumos.Text = VentaInsumo.ToString();
            txtCostoInsumo.Text  = CostoInsumo.ToString();

            double GananciaInsuloMostrador = 0;

            cVenta objVenta       = new cVenta();
            double CostoMostrador = 0;

            CostoMostrador = objVenta.GetCostoInsumoVenta(FechaDesde, FechaHasta);
            txtCostoInsumoMostrador.Text = CostoMostrador.ToString();
            //GetVentaInsumoVenta

            double VentaMostrador = 0;

            VentaMostrador         = objVenta.GetVentaInsumoVenta(FechaDesde, FechaHasta);
            txtVentaMostrador.Text = VentaMostrador.ToString();

            if (txtCostoInsumoMostrador.Text != "")
            {
                txtCostoInsumoMostrador.Text = fun.FormatoEnteroMiles(txtCostoInsumoMostrador.Text);
            }

            if (txtVentaMostrador.Text != "")
            {
                txtVentaMostrador.Text = fun.FormatoEnteroMiles(txtVentaMostrador.Text);
            }

            if (txtVentaInsumos.Text != "")
            {
                txtVentaInsumos.Text = fun.FormatoEnteroMiles(txtVentaInsumos.Text);
            }

            if (txtCostoInsumo.Text != "")
            {
                txtCostoInsumo.Text = fun.FormatoEnteroMiles(txtCostoInsumo.Text);
            }

            txtGananciaInsumos.Text = GananciaInsumos.ToString();

            if (txtGananciaInsumos.Text != "")
            {
                txtGananciaInsumos.Text = fun.FormatoEnteroMiles(txtGananciaInsumos.Text);
            }

            GananciaInsuloMostrador   = VentaMostrador - CostoMostrador;
            txtGananciaMostrador.Text = GananciaInsuloMostrador.ToString();
            if (txtGananciaMostrador.Text != "")
            {
                txtGananciaMostrador.Text = fun.FormatoEnteroMiles(txtGananciaMostrador.Text);
            }

            double GananciaMo = orden.GetGananciaManoObra(FechaDesde, FechaHasta);

            txtManoObra.Text = GananciaMo.ToString();

            if (txtManoObra.Text != "")
            {
                txtManoObra.Text = fun.FormatoEnteroMiles(txtManoObra.Text);
            }

            double TotalGanancia = GananciaInsumos + GananciaMo + RecargoTarjeta + GananciaInsuloMostrador - Saldo;

            txtTotalGanancia.Text = TotalGanancia.ToString();
            if (txtTotalGanancia.Text != "")
            {
                txtTotalGanancia.Text = fun.FormatoEnteroMiles(txtTotalGanancia.Text);
            }

            double         GastoAlquiler = 0;
            cGastosNegocio gasto         = new cGastosNegocio();
            Int32?         CodEntidad    = 11;

            GastoAlquiler         = gasto.GetGastosNegocio(FechaDesde, FechaHasta, CodEntidad);
            txtGastoAlquiler.Text = GastoAlquiler.ToString();
            if (txtGastoAlquiler.Text != "")
            {
                txtGastoAlquiler.Text = fun.FormatoEnteroMiles(txtGastoAlquiler.Text);
            }

            double Sueldos = 0;

            CodEntidad = 6;

            Sueldos        = gasto.GetGastosNegocio(FechaDesde, FechaHasta, CodEntidad);
            txtSueldo.Text = Sueldos.ToString();
            if (txtSueldo.Text != "")
            {
                txtSueldo.Text = fun.FormatoEnteroMiles(txtSueldo.Text);
            }

            double Combustible = 0;

            CodEntidad = 13;

            Combustible         = gasto.GetGastosNegocio(FechaDesde, FechaHasta, CodEntidad);
            txtCombustible.Text = Combustible.ToString();
            if (txtCombustible.Text != "")
            {
                txtCombustible.Text = fun.FormatoEnteroMiles(txtCombustible.Text);
            }

            double Impuestos = 0;

            CodEntidad = 2;

            Impuestos        = gasto.GetGastosNegocio(FechaDesde, FechaHasta, CodEntidad);
            txtImpuesto.Text = Impuestos.ToString();
            if (txtImpuesto.Text != "")
            {
                txtImpuesto.Text = fun.FormatoEnteroMiles(txtImpuesto.Text);
            }

            double Varios = 0;

            CodEntidad = null;

            Varios = gasto.GetGastosNegocio(FechaDesde, FechaHasta, CodEntidad);
            Varios = Varios - Sueldos - Impuestos - Combustible - GastoAlquiler;
            txtOtrosGastos.Text = Varios.ToString();
            if (txtOtrosGastos.Text != "")
            {
                txtOtrosGastos.Text = fun.FormatoEnteroMiles(txtOtrosGastos.Text);
            }
            double TotalGastos = 0;

            TotalGastos         = Varios + Sueldos + Impuestos + Combustible + GastoAlquiler; //+Saldo;
            txtTotalGastos.Text = TotalGastos.ToString();
            if (txtTotalGastos.Text != "")
            {
                txtTotalGastos.Text = fun.FormatoEnteroMiles(txtTotalGastos.Text);
            }

            double Rentabilidad = TotalGanancia - TotalGastos;

            txtRentabilidad.Text = Rentabilidad.ToString();
            if (txtRentabilidad.Text != "")
            {
                txtRentabilidad.Text = fun.FormatoEnteroMiles(txtRentabilidad.Text);
            }

            double SaldoGarantia = garantia.GetTotalSaldoGarantiaxFecha(FechaDesde, FechaHasta);

            txtSaldoGarantia.Text = SaldoGarantia.ToString();

            if (txtSaldoGarantia.Text != "")
            {
                txtSaldoGarantia.Text = fun.FormatoEnteroMiles(txtSaldoGarantia.Text);
            }

            double TotalSaldoTarjeta = cobro.GetTotalSaldoTarjeta(FechaDesde, FechaHasta);

            txtSaldoTarjeta.Text = TotalSaldoTarjeta.ToString();

            if (txtSaldoTarjeta.Text != "")
            {
                txtSaldoTarjeta.Text = fun.FormatoEnteroMiles(txtSaldoTarjeta.Text);
            }

            double ImporteSaldoDoc = doc.GetTotalSaldoDocumento(FechaDesde, FechaHasta);

            txtSaldoDocumento.Text = ImporteSaldoDoc.ToString();

            if (txtSaldoDocumento.Text != "")
            {
                txtSaldoDocumento.Text = fun.FormatoEnteroMiles(txtSaldoDocumento.Text);
            }

            double ImporteSaldoCheque = cheque.GetTotalSaldoChequexFecha(FechaDesde, FechaHasta);

            txtSaldoCheque.Text = ImporteSaldoCheque.ToString();
            if (txtSaldoCheque.Text != "")
            {
                txtSaldoCheque.Text = fun.FormatoEnteroMiles(txtSaldoCheque.Text);
            }
        }