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(); } }