示例#1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            id_solicitud            = FuncionGlobal.FuctionDesEncriptar(Request.QueryString["id_solicitud"].ToString());
            tipo_movimiento         = Request.QueryString["tipo"].ToString();
            this.lbl_operacion.Text = id_solicitud;
            this.lbl_tipo.Text      = tipo_movimiento;
            if (!IsPostBack)
            {
                FuncionGlobal.combobanco(dl_financiera, 1);
                FuncionGlobal.comboparametro(this.dl_tipo_operacion, "FMO");

                this.dl_financiera.SelectedValue = "SANT";
                FuncionGlobal.combocuenta(this.dl_financiera.SelectedValue, this.dl_cuenta);
                this.dl_cuenta.SelectedValue = "13";
                getGasto();
            }
        }
示例#2
0
        protected void ib_pago_operacion_Click(object sender, ImageClickEventArgs e)
        {
            double suma = (from r in this.gr_dato.Rows.OfType <GridViewRow>()
                           where ((CheckBox)r.FindControl("chk")).Checked == true && r.RowType == DataControlRowType.DataRow
                           select Convert.ToDouble(this.gr_dato.DataKeys[r.RowIndex].Values[5])).Sum();

            if (suma == 0)
            {
                FuncionGlobal.alerta_updatepanel("No hay operaciones seleccionadas o el saldo a pagar es cero", this.Page, this.up_movimiento);
                return;
            }
            FuncionGlobal.BuscarValueCombo(this.dl_financiera, "0");
            FuncionGlobal.combocuenta(this.dl_financiera.SelectedValue, this.dl_cuenta);
            FuncionGlobal.BuscarValueCombo(this.dl_tipo_operacion, "0");
            this.txt_fecha_pago.Text   = "";
            this.txt_especial.Text     = "";
            this.lbl_total_gastos.Text = string.Format("{0:N0}", suma);
            this.mpe_movimiento.Show();
        }
示例#3
0
 protected void dl_financiera_SelectedIndexChanged(object sender, EventArgs e)
 {
     FuncionGlobal.combocuenta(this.dl_financiera.SelectedValue, this.dl_cuenta);
     this.dl_cuenta.SelectedValue = "13";
 }