private void CargaGrilla(int indice)
        {
            DataTable table = ConsultasEspecificas.ConsultaTableroDOS(
                !string.IsNullOrEmpty(this.txtRutCliente.Text) ? this.txtRutCliente.Text.Replace(".", string.Empty).Trim() : this.cbxCliente.SelectedValue,
                this.txtRutDeudor.Text.Replace(".", string.Empty).Trim(),
                this.txtNroOperacion.Text,
                this.cbxProducto.SelectedValue,
                this.cbxbogado.SelectedValue,
                this.cbxProcurador.SelectedValue,
                this.cbxTribunal.SelectedValue,
                this.cbxEstadoJuicio.SelectedValue,
                this.cbxTramite.SelectedValue,
                ALCSA.FWK.Web.Control.ExtraerValorComoEntero(cbxRemesas),
                cbxCobranzaConJuicio.SelectedValue.Equals("1") ? true : false,
                ALCSA.FWK.Web.Control.ExtraerValorComoEntero(cbxActividadGestion)
                );

            //Jbaez: Indica El total de registros encontrados 29-12-2013
            lab_Total_Registros.Text = table.Rows.Count.ToString();

            this.Grilla.PageIndex  = indice;
            this.Grilla.DataSource = table;
            this.Grilla.DataBind();

            ConcatenarDatosFiltro();
        }
Beispiel #2
0
        private void MostrarComprobante(string id_abono)
        {
            DataTable table = ConsultasEspecificas.MostrarComprobanteAbonos(id_abono);

            if (table != null && table.Rows.Count > 0)
            {
                nroabono.Text         = table.Rows[0]["id_abono"].ToString().PadLeft(8, '0');
                cliente.Text          = table.Rows[0]["cliente"].ToString();
                deudor.Text           = table.Rows[0]["deudor"].ToString();
                rutdeudor.Text        = table.Rows[0]["rut_deudor"].ToString();
                operacion.Text        = table.Rows[0]["nrooperacion"].ToString();
                montoabono.Text       = Evaluar(table.Rows[0]["montoabono"]);
                banco.Text            = table.Rows[0]["banco"].ToString();
                RutGirador.Text       = table.Rows[0]["rutgirador"].ToString();
                NombreGirador.Text    = table.Rows[0]["nomgirador"].ToString();
                TipoMoneda.Text       = table.Rows[0]["moneda"].ToString();
                BoletaHonorarios.Text = table.Rows[0]["boleta"].ToString();

                DateTime datFecha = Convert.ToDateTime(table.Rows[0]["fechaabono"]);
                if (datFecha.Year < 1950)
                {
                    datFecha = DateTime.Now;
                }
                fecha.Text = string.Format("{0:dd/MM/yyyy}", datFecha);

                datFecha = Convert.ToDateTime(table.Rows[0]["fechapago"]);
                if (datFecha.Year < 1950)
                {
                    datFecha = DateTime.Now;
                }
                ultfechapago.Text = string.Format("{0:dd/MM/yyyy}", datFecha);
            }
        }
Beispiel #3
0
        private void MostrarDatosActividadExhorto(string id_exhorto)
        {
            DataTable table = null;

            table = ConsultasEspecificas.MostrarDatosActividadExhorto(id_exhorto);
            if ((table.Rows.Count > 0) && (table != null))
            {
                this.txtNroOperacion.Text    = table.Rows[0]["nrooperacion"].ToString();
                this.txtCliente.Text         = table.Rows[0]["nomcliente"].ToString();
                this.txtRolExhorto.Text      = table.Rows[0]["rol_exhorto"].ToString();
                this.txtTribunalExhorto.Text = table.Rows[0]["tribunalexh"].ToString();
                this.txtRutDeudor.Text       = table.Rows[0]["rut_deudor"].ToString();
                this.txtNomDeudor.Text       = table.Rows[0]["nomdeudor"].ToString();
                this.txtRoljuicio.Text       = table.Rows[0]["rol"].ToString();
                this.txtTribunaljuicio.Text  = table.Rows[0]["tribunal"].ToString();
                this.txtTipoExhorto.Text     = table.Rows[0]["tipoexh"].ToString();
                this.txtReceptor.Text        = table.Rows[0]["receptor"].ToString();
                CabezeraActividadesExhortoDTO odto = new CabezeraActividadesExhortoDTO {
                    Deudor         = table.Rows[0]["nomdeudor"].ToString(),
                    Noperacion     = table.Rows[0]["nrooperacion"].ToString(),
                    Rol            = table.Rows[0]["rol_exhorto"].ToString(),
                    Tribunal       = table.Rows[0]["tribunalexh"].ToString(),
                    Roljuicio      = table.Rows[0]["rol"].ToString(),
                    Tribunaljuicio = table.Rows[0]["tribunal"].ToString()
                };
                this.Session["CabezeraActividadesExhorto"] = odto;
            }
        }
        private void MostrarBienesRaices()
        {
            string strRut = ALCSA.FWK.IdentificacionTributaria.FormatearRut(txtRutdeudor.Text).Replace(".", string.Empty);;

            gvBienesRaices.DataSource = ConsultasEspecificas.ConMostrarBienRaiz_Consulta_Generales(strRut);
            gvBienesRaices.DataBind();
        }
Beispiel #5
0
        private void CargaGrilla()
        {
            DataTable table    = null;
            DateTime  datFecha = new DateTime(1900, 1, 1);

            if (!string.IsNullOrEmpty(this.txtFechaRemesa.Text))
            {
                DateTime.TryParseExact(this.txtFechaRemesa.Text.Trim(), "dd/MM/yyyy", CultureInfo.InvariantCulture, DateTimeStyles.None, out datFecha);
            }

            table = ConsultasEspecificas.ConsultaReconstitucion(
                this.txtRut.Text.Trim(),
                this.txtNroOperacion.Text.Trim(),
                this.cbxEstados.SelectedValue,
                datFecha.Year > 1900 ? datFecha.ToString("yyyyMMdd") : string.Empty,
                this.cbxResponsable.SelectedValue,
                this.txtConservadorFiltro.Text.Trim(),
                this.txtNombreCliente.Text,
                this.txtSubProducto.Text,
                this.cbxProductos.Text
                );

            this.Session["ExcelRecon"] = table;
            this.Grilla.DataSource     = table;
            this.Grilla.DataBind();

            this.txtNroCasos.Text = table.Rows.Count > 0 ? table.Rows.Count.ToString() : "0";
        }
        private void CargarDomicilios()
        {
            string strRut = ALCSA.FWK.IdentificacionTributaria.FormatearRut(txtRutdeudor.Text).Replace(".", string.Empty);

            gvDomicilios.DataSource = ConsultasEspecificas.ConMostrarDomicilios(strRut);
            gvDomicilios.DataBind();
        }
        private void MostrarTelefonos()
        {
            string strRut = ALCSA.FWK.IdentificacionTributaria.FormatearRut(txtRutdeudor.Text).Replace(".", string.Empty);

            gvTelefonos.DataSource = ConsultasEspecificas.MostrarFonoDeudor(strRut);
            gvTelefonos.DataBind();
        }
Beispiel #8
0
 protected void bienmueble_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (this.bienmueble.SelectedValue.ToString() == "Seleccione")
     {
         this.txtTipoVehiculo.Text    = "";
         this.txtaniofabricacion.Text = "";
         this.txtpatente.Text         = "";
         this.txtmarca.Text           = "";
         this.txtchassis.Text         = "";
         this.txtEstado.Text          = "";
     }
     else
     {
         DataTable table = null;
         table = ConsultasEspecificas.MostrarDatosBienMueble(this.bienmueble.SelectedValue.ToString());
         if ((table.Rows.Count > 0) && (table != null))
         {
             this.txtTipoVehiculo.Text    = table.Rows[0]["tipovehiculo"].ToString();
             this.txtaniofabricacion.Text = table.Rows[0]["anio_fabricacion"].ToString();
             this.txtpatente.Text         = table.Rows[0]["patente"].ToString();
             this.txtmarca.Text           = table.Rows[0]["marca"].ToString();
             this.txtchassis.Text         = table.Rows[0]["n_chassis"].ToString();
             this.txtEstado.Text          = table.Rows[0]["estado"].ToString();
         }
     }
 }
Beispiel #9
0
        protected void btnBuscar_Click(object sender, EventArgs e)
        {
            DataTable table = null;

            table = ConsultasEspecificas.EscritoPrejudicial(this.txtRut.Text);
            if ((table != null) && (table.Rows.Count > 0))
            {
                this.domicilios.Items.Clear();
                this.domicilios.DataTextField  = "domicilio";
                this.domicilios.DataValueField = "comuna";
                this.domicilios.DataSource     = table;
                this.domicilios.DataBind();
                this.hiddeDeudor.Value     = table.Rows[0]["rsocial"].ToString();
                this.hiddenDireccion.Value = this.domicilios.SelectedItem.ToString();
                this.hiddenComuna.Value    = this.domicilios.SelectedValue.ToString();
                this.CargaGrilla(this.txtRut.Text);
            }
            else
            {
                this.domicilios.Items.Clear();
                this.domicilios.Items.Insert(0, "Seleccione");
                this.Grilla.DataSource = null;
                this.Grilla.DataBind();
            }
        }
Beispiel #10
0
        private void MostrarComprobante(string id_abonoparcial)
        {
            DataTable table = null;

            table = ConsultasEspecificas.MostrarAbonoParcialCabezera(id_abonoparcial);
            if ((table.Rows.Count > 0) && (table != null))
            {
                if (table.Rows[0]["tipo"].ToString() == "E")
                {
                    this.Page.RegisterClientScriptBlock("Mensaje", "<script>alert('Los excedentes no se imprimen, ya que se incluyen en la letra siguiente a pagar');window.close();</script>");
                }
                else
                {
                    this.nroabono.Text   = table.Rows[0]["id_abonoparcial"].ToString().PadLeft(8, '0');
                    this.cliente.Text    = table.Rows[0]["cliente"].ToString();
                    this.deudor.Text     = table.Rows[0]["deudor"].ToString();
                    this.rutdeudor.Text  = table.Rows[0]["rut_deudor"].ToString();
                    this.operacion.Text  = table.Rows[0]["nrooperacion"].ToString();
                    this.idasociado.Text = table.Rows[0]["id_abono_comprobante"].ToString();
                    this.fecha.Text      = table.Rows[0]["fabonoparcial"].ToString();
                    this.montoabono.Text = this.Evaluar(table.Rows[0]["montoparcial"]);
                    this.TipoMoneda.Text = "Efectivo";
                }
            }
        }
        private void CargaGrilla(int indice, bool exportarExcel)
        {
            string strRut = !string.IsNullOrEmpty(txtRutCli.Text) ? txtRutCli.Text : dllClientes.SelectedValue;

            strRut = strRut.Replace(".", string.Empty);

            DataTable datTabla = ConsultasEspecificas.DetalleResumenCliente(
                strRut,
                ALCSA.FWK.Web.Control.ExtraerValorComoDateTime(txtFechaInicio),
                ALCSA.FWK.Web.Control.ExtraerValorComoDateTime(txtFechaFin));

            this.Grilla.PageIndex  = indice;
            this.Grilla.DataSource = datTabla;
            this.Grilla.DataBind();

            if (!exportarExcel)
            {
                return;
            }

            string strNombreArchivo = string.Format("Rendiciones_{0:ddMMyyyy_hhmmss_fff}.xls", DateTime.Now);

            using (System.IO.MemoryStream objArchivoMemoria = new ALCSA.Negocio.Documentos.GeneradorExcel().ExportarDataTableAExcel(
                       datTabla,
                       "Rendiciones",
                       new string[] {
                "nrooperacion", "rut_deudor", "nomdeudor", "nrocomprobante", "fechaabono", "montoabono", "concepto", "moneda"
            },
                       new string[] {
                "N° Operacion", "Rut Deudor", "Nombre Deudor", "N° Comprobante", "Fecha Abono", "Monto Abono", "Concepto", "Moneda"
            }))
            {
                new ALCSA.FWK.Web.Sitio().DescargarArchivo(Response, objArchivoMemoria, strNombreArchivo);
            }
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     if ((this.Session["Usuario"] == null) || (this.Session["Usuario"].ToString() == ""))
     {
         base.Response.Write("<script>alert('Por seguridad expiro la p\x00e1gina');window.open('" + ConfigurationSettings.AppSettings["Inicio"].ToString() + "','_top')</script>");
         base.Response.End();
     }
     if (!this.Page.IsPostBack)
     {
         this.lblestado.Visible       = false;
         this.cbxEstadoGasto.Visible  = false;
         this.cbxTipoGastos.Visible   = false;
         this.lblObservacion.Visible  = false;
         this.lblNroDoc.Visible       = false;
         this.lblTipodeGasto.Visible  = false;
         this.txtObservacion.Visible  = false;
         this.txtNrodocumento.Visible = false;
         this.btnnuevoEstado.Visible  = false;
         this.lblFormaPago.Visible    = false;
         this.cbxFormaPago.Visible    = false;
         string oT = base.Request.QueryString["OT"].ToString();
         this.hddOT.Value = oT;
         this.txtOT.Text  = oT;
         this.ComboEstados();
         this.txtRut.Text          = base.Request.QueryString["rut"].ToString();
         this.txtnrooperacion.Text = base.Request.QueryString["nrooperacion"].ToString();
         this.txtnombre.Text       = base.Request.QueryString["nombre"].ToString();
         DataTable table = null;
         table = ConsultasEspecificas.MuestraEdicionGasto(oT);
         this.grilla.DataSource = table;
         this.grilla.DataBind();
     }
 }
Beispiel #13
0
 public void Muestra(object sender, GridViewCommandEventArgs e)
 {
     this.gridViewRow = ((Control)e.CommandSource).BindingContainer as GridViewRow;
     if (e.CommandName.CompareTo("Muestra") == 0)
     {
         Label label  = (Label)this.gridViewRow.FindControl("lblidAbono");
         Label label2 = (Label)this.gridViewRow.FindControl("lblnrocheque");
         this.hddIdAbonoMCH.Value   = label.Text.ToString();
         this.panel.Visible         = true;
         this.btnGuardarMCH.Visible = true;
         DataTable table = null;
         table = ConsultasEspecificas.VERDepositoAbonoMCH(this.hddIdAbonoMCH.Value.ToString());
         if ((table.Rows.Count > 0) && (table != null))
         {
             this.txtFechaDeposito.Text         = table.Rows[0]["fechadeposito"].ToString();
             this.txtCuentaDeposito.Text        = table.Rows[0]["cuentadeposito"].ToString();
             this.txtNroComprobante.Text        = table.Rows[0]["nrocomprobantedeposito"].ToString();
             this.txtFexhaLiberacionCheque.Text = table.Rows[0]["fechaliberacion"].ToString();
             this.cbxEstado.SelectedValue       = table.Rows[0]["estado"].ToString();
         }
         else
         {
             this.txtFechaDeposito.Text         = "";
             this.txtCuentaDeposito.Text        = "";
             this.txtNroComprobante.Text        = "";
             this.txtFexhaLiberacionCheque.Text = "";
             this.cbxEstado.SelectedValue       = "N";
         }
         this.lblTitulo.Text = "DETALLE CHEQUE N\x00b0:";
         this.lblNroCOM.Text = label2.Text.ToString();
         this.btnGuardarMCH.Focus();
     }
 }
Beispiel #14
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.Page.IsPostBack)
            {
                string str = ALCSA.FWK.Web.Sitio.ExtraerValorQueryString(Request, "deudor");
                this.txtnomDeudor.Text = Session["snomdeudor"].ToString();

                if (Session["snoperacion"] == null)
                {
                    txtNrooperacion.Text = ALCSA.FWK.Web.Sitio.ExtraerValorQueryString(Request, "estado");
                }
                else
                {
                    txtNrooperacion.Text = Session["snoperacion"].ToString();
                }

                this.txtRutDeudor.Text = Session["srutdeudor"].ToString();

                DataTable table = ConsultasEspecificas.ConMostrarDomicilios(str);
                Session["Excel_domi_cilios"] = table;
                Grilla.DataSource            = table;
                Grilla.DataBind();

                if (ALCSA.FWK.Web.Sitio.ExtraerValorQueryStringComoEntero(Request, "cerrar").Equals(1))
                {
                    btnCerrar.OnClientClick = "window.close();";
                }
            }
        }
Beispiel #15
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if ((this.Session["Usuario"] == null) || (this.Session["Usuario"].ToString() == ""))
     {
         base.Response.Write("<script>alert('Por seguridad expiro la p\x00e1gina');window.open('" + ConfigurationSettings.AppSettings["Inicio"].ToString() + "','_top')</script>");
         base.Response.End();
     }
     if (!this.Page.IsPostBack && !string.IsNullOrEmpty(base.Request.QueryString["Codigo"]))
     {
         string str = base.Request.QueryString["Codigo"].ToString();
         this.hiddidcobranza.Value = str;
         string str2 = this.MostrarDatosJuicio(str);
         this.Nohabil();
         this.CargaGrilla(str);
         this.getDocumentosPagar(str);
         this.ComboMoneda();
         this.tipomoneda.SelectedValue = "2";
         this.hiddSwPAgo.Value         = "A";
         DataTable table = null;
         table = ConsultasEspecificas.ConsultaProcesar(str, this.tipotasa.SelectedValue.ToString(), this.tipomoneda.SelectedValue.ToString(), this.txtFechaPago.Text.ToString());
         if ((table != null) && (table.Rows.Count > 0))
         {
             this.txtvercapital.Text = table.Rows[0]["capital"].ToString();
             this.txtvergastos.Text  = table.Rows[0]["gastos"].ToString();
         }
         this.ComboBancos();
         this.habilitar();
         this.txtFecha.Text = DateTime.Now.ToString("dd-MM-yyyy");
         this.ComboConceptoAbono();
         this.txtMontoAbono.Focus();
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!base.IsPostBack)
     {
         this.lblFechaInforme.Text = DateTime.Now.ToString("dd-MM-yyyy");
         DataTable table    = ConsultasEspecificas.ConsulGeneraljuicio(base.Request.QueryString["codigo"].ToString().ToString());
         string    idjuicio = "";
         if ((table.Rows.Count > 0) && (table != null))
         {
             this.txtCliente.Text       = table.Rows[0]["cliente"].ToString();
             this.txtNomDeudor.Text     = table.Rows[0]["nomdeudor"].ToString();
             this.txtRutDeudor.Text     = table.Rows[0]["rut_deudor"].ToString();
             this.txtOperacion.Text     = table.Rows[0]["nrooperacion"].ToString();
             this.txtProcedimiento.Text = table.Rows[0]["procedimiento"].ToString();
             this.txtTribunal.Text      = table.Rows[0]["tribunal"].ToString();
             this.txtrol.Text           = table.Rows[0]["rol"].ToString();
             this.txtCuantia.Text       = "0";
             idjuicio = table.Rows[0]["id_juicios"].ToString();
             DataTable table2 = ConsultasEspecificas.ConsulGeneralActJudiciales(idjuicio);
             this.grilla.DataSource = table2;
             this.grilla.DataBind();
             DataTable table3 = ConsultasEspecificas.ConsulGeneralActJudiciales(idjuicio, "");
             if ((table3.Rows.Count > 0) && (table3 != null))
             {
                 this.Label1.Text = table3.Rows[0]["tramite"].ToString();
                 this.Label2.Text = table3.Rows[0]["observacion"].ToString();
             }
         }
     }
 }
Beispiel #17
0
        private void CargaGrilla()
        {
            DataTable table = null;

            table = ConsultasEspecificas.ConsultaReconstitucionMARCA(this.txtRut.Text.ToString().Trim(), this.txtNroOperacion.Text.ToString().Trim(), this.txtNombreCliente.Text.ToString());
            this.Grilla.DataSource = table;
            this.Grilla.DataBind();
        }
Beispiel #18
0
        private void CargaGrilla()
        {
            DataTable table = null;

            table = ConsultasEspecificas.ConsultaEspAbonos(this.txtCliente.Text.Replace(".", ""), this.TipoComprobante.SelectedValue.ToString(), this.txtfechaini.Text.ToString(), this.txtfechafin.Text.ToString());
            this.Session["Excel"]  = table;
            this.Grilla.DataSource = table;
            this.Grilla.DataBind();
        }
        private void CargaGrilla(string idJuico)
        {
            DataTable table = null;

            table = ConsultasEspecificas.GENMostrarJuicioActividades(idJuico, this.hiddTipo.Value.ToString());
            this.Session["Excel_acti_vidades"] = table;
            this.Grilla.DataSource             = table;
            this.Grilla.DataBind();
        }
Beispiel #20
0
        private void CargaGrilla(string idJuico)
        {
            DataTable table = null;

            table = ConsultasEspecificas.MostrarDetalleGastos(idJuico);
            this.Session["Excel_gas_tos"] = table;
            this.Grilla.DataSource        = table;
            this.Grilla.DataBind();
        }
Beispiel #21
0
 private void getDocumentosPagarJuicio(string id_cobranza)
 {
     grillapagletras.DataSource = ConsultasEspecificas.ConsultaDocumentosPorTipoJuicio(
         id_cobranza,
         this.tipotasa.SelectedValue,
         this.ddlFormaPago.SelectedValue,
         BuscarFechaUltimoCheque().ToString("yyyyMMdd"));
     grillapagletras.DataBind();
 }
Beispiel #22
0
        private void CargaGrilla()
        {
            DataTable table = null;

            table = ConsultasEspecificas.ConsultaTablero(this.txtCliente.Text.Replace(".", ""), this.txtRut.Text.Replace(".", ""), this.tribunal.SelectedValue, this.estadocobranza.SelectedValue, this.producto.SelectedValue, this.tipocobranza.SelectedValue, this.txtProcurador.Text.Replace(".", ""), this.txtNroOperacion.Text, this.abogado.SelectedValue);
            this.Session["Excel"]  = table;
            this.Grilla.DataSource = table;
            this.Grilla.DataBind();
        }
        private void CargaGrilla(string idcobranza)
        {
            DataTable table = null;

            table = ConsultasEspecificas.MostrarDocuJuicioEstandard_1(idcobranza);
            this.Session["docu_juicio_estandard_1"] = table;
            this.Grilla.DataSource = table;
            this.Grilla.DataBind();
        }
Beispiel #24
0
        private void CargaGrilla(string idcobranza)
        {
            DataTable table = null;

            table = ConsultasEspecificas.MostrarFonoDeudor(idcobranza);
            this.Session["Excel_fo_nos"] = table;
            this.Grilla.DataSource       = table;
            this.Grilla.DataBind();
        }
Beispiel #25
0
        private void CargaGrilla(string idcobranza)
        {
            DataTable table = null;

            table = ConsultasEspecificas.MostrarDocuPagareCON(idcobranza);
            this.Session["doc_pag_are"] = table;
            this.Grilla.DataSource      = table;
            this.Grilla.DataBind();
        }
Beispiel #26
0
        private void CargaGrilla()
        {
            DataTable table = null;

            table = ConsultasEspecificas.ConsultaReconstitucionGastos(this.cbxTipoGastos.SelectedValue.ToString(), this.txtRut.Text.ToString(), this.txtNrooperacion.Text.ToString(), this.txtFechainicio.Text.ToString(), this.txtfechafin.Text.ToString(), this.txtRemesa.Text.ToString(), this.txtNombreCliente.Text.ToString());
            this.Session["Excel_GastosReconstituciones"] = table;
            this.Grilla.DataSource = table;
            this.Grilla.DataBind();
        }
        private void CargaGrilla()
        {
            DataTable table = new DataTable();

            table = ConsultasEspecificas.ConsultaCobranzaConsulta(this.txtRut.Text, this.txtNroOperacion.Text);
            this.Session["snomdeudor"] = table.Rows[0]["nomdeudor"].ToString();
            this.Session["srutdeudor"] = table.Rows[0]["rut_deudor"].ToString();
            this.Grilla.DataSource     = table;
            this.Grilla.DataBind();
        }
Beispiel #28
0
        private void MostrarMCH(string id_abono)
        {
            DataTable table = ConsultasEspecificas.MostrarMCH(id_abono);

            if (table != null && table.Rows.Count > 0)
            {
                GridView1.DataSource = table;
                GridView1.DataBind();
            }
        }
        private void CargaGrilla(int indice)
        {
            DataTable table = ConsultasEspecificas.ConsultaReconstitucionSinAsignar(
                this.txtRut.Text.Trim(),
                this.txtNroOperacion.Text.Trim(),
                this.txtFechaRemesa.Text.Trim()
                );

            this.Grilla.PageIndex  = indice;
            this.Grilla.DataSource = table;
            this.Grilla.DataBind();
        }
        private void MostrarDeudaTotal()
        {
            decimal decMonto               = decimal.Zero;
            decimal decInteres             = decimal.Zero;
            decimal decInteresAdicional    = decimal.Zero;
            decimal decHonorarios          = decimal.Zero;
            decimal decDescHonorarios      = decimal.Zero;
            decimal decDescInteres         = decimal.Zero;
            decimal decOtrosDescuentos     = decimal.Zero;
            decimal decPorcentajeDescuento = decimal.Zero;

            foreach (GridViewRow objFila in this.gvLetras.Rows)
            {
                decMonto              += ALCSA.FWK.Texto.ConvertirTextoEnDecimal(objFila.Cells[2].Text);
                decInteres            += ALCSA.FWK.Texto.ConvertirTextoEnDecimal(objFila.Cells[5].Text);
                decInteresAdicional   += ALCSA.FWK.Texto.ConvertirTextoEnDecimal(objFila.Cells[6].Text);
                decHonorarios         += ALCSA.FWK.Texto.ConvertirTextoEnDecimal(objFila.Cells[7].Text);
                decDescHonorarios     += ALCSA.FWK.Texto.ConvertirTextoEnDecimal(objFila.Cells[8].Text);
                decDescInteres        += ALCSA.FWK.Texto.ConvertirTextoEnDecimal(objFila.Cells[9].Text);
                decOtrosDescuentos    += ALCSA.FWK.Texto.ConvertirTextoEnDecimal(objFila.Cells[10].Text);
                decPorcentajeDescuento = ALCSA.FWK.Web.Control.ExtraerValorComoDecimal((objFila.FindControl("hdfPorcentajeDescuentoDeuda") as HiddenField));
            }

            Decimal   decGastos = Decimal.Zero;
            DataTable objGastos = ConsultasEspecificas.TraeGastos(this.hdfIdCobranza.Value.ToString());

            if (objGastos != null && objGastos.Rows.Count > 0)
            {
                decGastos = Convert.ToDecimal(objGastos.Rows[0]["gastos"]);
            }

            decimal decTotalFinal     = decMonto + decInteres + decInteresAdicional + decGastos + decHonorarios;
            decimal decTotalDescuento = decDescHonorarios + decDescInteres + decOtrosDescuentos;

            if (decPorcentajeDescuento > decimal.Zero)
            {
                decTotalDescuento            = decTotalFinal * decPorcentajeDescuento;
                decTotalFinal               -= decTotalDescuento;
                lblPorcentajeDescuentos.Text = string.Format("({0:N2}%)", decPorcentajeDescuento * 100);
            }
            else
            {
                decTotalFinal -= decTotalDescuento;
            }

            ALCSA.FWK.Web.Control.AsignarValor(lblMontoDeuda, decMonto, 0);
            ALCSA.FWK.Web.Control.AsignarValor(lblMontoIntereses, decInteres + decInteresAdicional, 0);
            ALCSA.FWK.Web.Control.AsignarValor(lblMontoHonorarios, decHonorarios, 0);
            ALCSA.FWK.Web.Control.AsignarValor(lblMontoDescuentos, decTotalDescuento, 0);
            ALCSA.FWK.Web.Control.AsignarValor(lblMontoGastos, decGastos, 0);
            ALCSA.FWK.Web.Control.AsignarValor(lblMontoFinal, decTotalFinal, 0);
        }