Exemple #1
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;
            }
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!this.Page.IsPostBack && !string.IsNullOrEmpty(base.Request.QueryString["Codigo"]))
     {
         string idExhorto = base.Request.QueryString["Codigo"].ToString();
         this.hiddidExhorto.Value       = idExhorto.ToString();
         this.Grilla.PagerSettings.Mode = PagerButtons.Numeric;
         this.CargaGrilla(idExhorto);
         CabezeraActividadesExhortoDTO odto = new CabezeraActividadesExhortoDTO();
         odto = (CabezeraActividadesExhortoDTO)this.Session["CabezeraActividadesExhorto"];
         if (odto != null)
         {
             /* this.txtDeudor.Text = odto.Deudor.ToString();
              * this.txtNoperacion.Text = odto.Noperacion.ToString();
              * this.txtRol.Text = odto.Rol.ToString();
              * this.txtTribunal.Text = odto.Tribunal.ToString();*/
         }
     }
 }