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 Registrar_COMU_ORG(int IdComunidad) { DB_AP_Organizacion org = new DB_AP_Organizacion(); AP_InscripcionOrg io = new AP_InscripcionOrg(); io = org.DB_Buscar_INSCRPCION_ORG(Convert.ToInt32(DDLSigla.SelectedValue)); DB_AP_Organizacion reg = new DB_AP_Organizacion(); AP_Comunidad_Org comOrg = new AP_Comunidad_Org(); comOrg.Id_Organizacion = io.Id_Organizacion; comOrg.Id_Comunidad = IdComunidad; comOrg.Comunidad = ""; reg.DB_Registrar_COMU_ORG(comOrg); }
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"); } }