private void Buscar_REPESENTANTE_LEGAL(int id)/***************************************************************/ { AP_RepresentLegal rl = new AP_RepresentLegal(); DB_AP_Organizacion rlo = new DB_AP_Organizacion(); rl = rlo.DB_Buscar_REPRESENT_LEGAL(id); TxtNumTesti.Text = rl.Nun_Testimonio; TxtFechaTetim.Text = rl.Fecha.ToString(); TxtNumNotario.Text = rl.Num_Notaria.ToString(); TxtDistritoJudi.Text = rl.Distrito_Judicial.ToString(); TxtAbogado.Text = rl.Abg_A_Cargo.ToString(); }
protected void Desplegar_INSCRIPCION_ORG() { Desplegar_ENCAVEZADO1(); AP_InscripcionOrg io = new AP_InscripcionOrg(); AP_RepresentLegal rl = new AP_RepresentLegal(); DB_AP_Organizacion no = new DB_AP_Organizacion(); io = no.DB_Buscar_INSCRPCION_ORG(Convert.ToInt32(Session["IdInsOrg"].ToString())); LblIdOrg.Text = io.Id_Organizacion.ToString(); LblTipoProd.Text = io.Tipo_Produccion.ToString(); Buscar_ORGANIZACION(io.Id_Organizacion); rl = no.DB_Buscar_REPRESENT_LEGAL(io.Id_InscripcionOrg); Buscar_PERSONA(rl.Id_Persona); Buscar_REPESENTANTE_LEGAL(io.Id_InscripcionOrg); }
protected void Page_Load(object sender, EventArgs e) { try { if (!IsPostBack) { LblAux.Text = Session["Estado"].ToString(); LblIdUser.Text = Session["IdUser"].ToString(); if (LblAux.Text == "nuevo") { Desplegar_ENCAVEZADO2(); } else { Desplegar_ENCAVEZADO1(); AP_InscripcionOrg io = new AP_InscripcionOrg(); AP_RepresentLegal rl = new AP_RepresentLegal(); DB_AP_Organizacion no = new DB_AP_Organizacion(); io = no.DB_Buscar_INSCRPCION_ORG(Convert.ToInt32(Session["IdInsOrg"].ToString())); Buscar_ORGANIZACION(io.Id_Organizacion); rl = no.DB_Buscar_REPRESENT_LEGAL(io.Id_InscripcionOrg); Buscar_PERSONA(rl.Id_Persona); Buscar_REPESENTANTE_LEGAL(io.Id_InscripcionOrg); LblEstadoO.Text = "siorg"; LblEstadoP.Text = "siper"; LblEstadoTP.Text = "sitp"; LnkNuevaOrg.Visible = false; } Llenar_DDLTipProd(); } } catch { Response.Redirect("~/About.aspx"); } }