private void Actualizar() { //obtengo el importe de documentos a cobrar GetDeudasxPrestamo(); GetEfectivosaPagar(); GetCobranzaGeneral(); GetChequesPagar(); Clases.cFunciones fun = new Clases.cFunciones(); Clases.cCuota cuota = new Clases.cCuota(); Clases.cCuotasAnteriores cuotasAnt = new Clases.cCuotasAnteriores(); Clases.cCheque cheque = new Clases.cCheque(); Double ImporteCheque = cheque.GetTotalChequesaCobrar(); Clases.cChequeCobrar chequeCob = new Clases.cChequeCobrar(); ImporteCheque = ImporteCheque + chequeCob.GetTotalChequesaCobrar(); Double Importe = cuota.GetMontoCuotasImpagas(); Double ImporteCuotasAnteriores = cuotasAnt.GetMontoCuotasImpagas(); Importe = Importe + ImporteCuotasAnteriores; Double ImporteSinInteres = cuota.GetMontoCuotasImpagasSinInteres(); double ImporteSinInteresCuotasAnt = cuotasAnt.GetMontoCuotasImpagasSinInteres(); ImporteSinInteres = ImporteSinInteres + ImporteSinInteresCuotasAnt; txtDocumentos.Text = fun.TransformarEntero(Importe.ToString().Replace(",", ".")); txtDocumentos.Text = fun.FormatoEnteroMiles(txtDocumentos.Text); txtDocumentosSinInteres.Text = ImporteSinInteres.ToString(); txtDocumentosSinInteres.Text = fun.TransformarEntero(ImporteSinInteres.ToString()); txtDocumentosSinInteres.Text = fun.FormatoEnteroMiles(txtDocumentosSinInteres.Text); txtTotalCheque.Text = fun.FormatoEnteroMiles(ImporteCheque.ToString()); Clases.cResumenCuentas res = new Clases.cResumenCuentas(); DataTable trdo = res.GetResumenCuentas(); if (trdo.Rows.Count > 0) { double ImporteEfectivo = Convert.ToDouble(trdo.Rows[0]["ImporteEfectivo"]); txtEfectivo.Text = fun.TransformarEntero(ImporteEfectivo.ToString().Replace(",", ".")); txtEfectivo.Text = fun.FormatoEnteroMiles(txtEfectivo.Text); double ImporteAuto = Convert.ToDouble(trdo.Rows[0]["ImporteAuto"]); txtVehículo.Text = fun.TransformarEntero(ImporteAuto.ToString().Replace(",", ".")); txtVehículo.Text = fun.FormatoEnteroMiles(txtVehículo.Text); double ImportePrenda = Convert.ToDouble(trdo.Rows[0]["ImportePrenda"]); txtPrenda.Text = fun.TransformarEntero(ImportePrenda.ToString().Replace(",", ".")); txtPrenda.Text = fun.FormatoEnteroMiles(txtPrenda.Text); double ImporteCobranza = Convert.ToDouble(trdo.Rows[0]["ImporteCobranza"]); txtCobranzas.Text = fun.TransformarEntero(ImporteCobranza.ToString().Replace(",", ".")); txtCobranzas.Text = fun.FormatoEnteroMiles(txtCobranzas.Text); double ImporteBanco = Convert.ToDouble(trdo.Rows[0]["ImporteBanco"]); txtBanco.Text = fun.TransformarEntero(ImporteBanco.ToString().Replace(",", ".")); txtBanco.Text = fun.FormatoEnteroMiles(txtBanco.Text); Clases.cComisionVendedor com = new Clases.cComisionVendedor(); txtComisiones.Text = com.GetComisionesPendientes().ToString(); if (txtComisiones.Text != "") { txtComisiones.Text = fun.FormatoEnteroMiles(txtComisiones.Text); } Clases.cGastosPagar gasto = new Clases.cGastosPagar(); txtGastosPendientes.Text = gasto.GetGastosaPagar().ToString(); if (txtGastosPendientes.Text != "") { txtGastosPendientes.Text = fun.FormatoEnteroMiles(txtGastosPendientes.Text); } Clases.cCobranza cob = new Clases.cCobranza(); txtCobranzas.Text = cob.GetTotalDeudaCobranzas().ToString(); txtCobranzas.Text = fun.FormatoEnteroMiles(txtCobranzas.Text); GetPrendas(); GetTotalVehiculo(); GetTarjeta(); } }