Example #1
0
        protected void ddlCuenta_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (this.ddlCuenta.SelectedIndex > 0)
            {
                CuentaIBS    cuenta = this.ddlCuenta.getCuenta();
                UnidadCuenta uc     = new UnidadCuenta();

                this.lblSaldoDisponible.Text = Formatos.formatoMonto(Formatos.ISOToDecimal(cuenta.SDisponible));
                this.lblSaldoTotal.Text      = Formatos.formatoMonto(Formatos.ISOToDecimal(cuenta.SContable));
                this.lblSaldoDif.Text        = Formatos.formatoMonto(Formatos.ISOToDecimal(cuenta.SDiferido));
                this.lblSaldoBloq.Text       = Formatos.formatoMonto(Formatos.ISOToDecimal(cuenta.SBloqueado));
                //Agregado 12/09/2018 por Liliana Guerra, para mostrar Saldos Consolidados en PETRO
                this.lblSaldoPetro.Text = Formatos.formatoSaldoPetro(decimal.Parse(uc.SPetro(cuenta.SDisponible)));
            }
            else
            {
                this.lblSaldoDisponible.Text = "0,00";
                this.lblSaldoTotal.Text      = "0,00";
            }
            try
            {
                this.llenarGrid();
            }
            catch (Exception exception)
            {
                WebUtils.MessageBootstrap(this, exception.Message, null);
            }
        }
Example #2
0
        protected void rptTarjetas_ItemDataBound(object sender, RepeaterItemEventArgs e)
        {
            if ((e.Item.ItemType == ListItemType.Item ? true : e.Item.ItemType == ListItemType.AlternatingItem))
            {
                IbaConsDet   dataItem = e.Item.DataItem as IbaConsDet;
                UnidadCuenta uc       = new UnidadCuenta();

                HyperLink hyperLink = e.Item.FindControl("lnkCuenta") as HyperLink;
                hyperLink.Text = Formatos.formatoCuenta(dataItem.SNroCuenta);
                Literal literal  = e.Item.FindControl("liContable") as Literal;
                Literal literal1 = e.Item.FindControl("liDisponible") as Literal;
                literal.Text  = Formatos.formatoMonto(Formatos.ISOToDecimal(dataItem.SContable));
                literal1.Text = Formatos.formatoMonto(Formatos.ISOToDecimal(dataItem.SDisponible));
                //Agregado 12/09/2018 por Liliana Guerra, para mostrar Saldos Consolidados en PETRO
                Literal literalP = e.Item.FindControl("liPetro") as Literal;
                literalP.Text = Formatos.formatoSaldoPetro((decimal.Parse(uc.SPetro(dataItem.SDisponible))));
            }
        }
Example #3
0
        protected void dtgCuentas_ItemDataBound(object sender, RepeaterItemEventArgs e)
        {
            if ((e.Item.ItemType == ListItemType.Item ? true : e.Item.ItemType == ListItemType.AlternatingItem))
            {
                IbaConsDet   dataItem = e.Item.DataItem as IbaConsDet;
                UnidadCuenta uc       = new UnidadCuenta();

                HyperLink hyperLink = e.Item.FindControl("lnkCuenta") as HyperLink;
                hyperLink.Text = Formatos.formatoCuenta(dataItem.SNroCuenta);
                Literal literal  = e.Item.FindControl("liContable") as Literal;
                Literal literal1 = e.Item.FindControl("liDisponible") as Literal;
                hyperLink.NavigateUrl = base.ResolveUrl(string.Concat("~/pages/Consultas/Cuentas/Movimientos.aspx?sCod=&sCta=", CryptoUtils.EncryptMD5(dataItem.SNroCuenta)));
                literal.Text          = Formatos.formatoMonto(Formatos.ISOToDecimal(dataItem.SContable));
                literal1.Text         = Formatos.formatoMonto(Formatos.ISOToDecimal(dataItem.SDisponible));
                //Agregado 12/09/2018 por Liliana Guerra, para mostrar Saldos Consolidados en PETRO
                Literal literalP = e.Item.FindControl("liPetro") as Literal;
                literalP.Text = Formatos.formatoSaldoPetro((decimal.Parse(uc.SPetro(dataItem.SDisponible))));
            }
        }