protected void MenuList_SelectedIndexChanged(object sender, EventArgs e) { int MenuId = HXD.Common.StringDeal.ToInt(this.MenuList.SelectedValue); HXD.BLL.bMenu bll = new bMenu(); int PId = bll.GetParentId(MenuId); switch (this.PageType.SelectedValue) { case "1": this.Url.Text = this.Url.Text.Replace("{MenuId}", PId.ToString()).Replace("{Id}", MenuId.ToString()); break; case "2": this.Url.Text = this.Url.Text.Replace("{MenuId}", MenuId.ToString()); break; case "3": this.Url.Text = this.Url.Text.Replace("{MenuId}", MenuId.ToString()); break; default: this.Url.Text = "javascript:void(null);"; break; } }
protected void Page_Load(object sender, EventArgs e) { LoginCheck.AdminManage(); bField bF = new bField(); mField mF = new mField(); bMenu bM = new bMenu(); GetAttribute ga = new GetAttribute(); mF.Id = StringDeal.ToInt(Request.QueryString["Id"]); //字段ID mF = bF.GetTableAndField(mF); //字段名与表名 ga.FieldType = Request.QueryString["Type"]; //字段类型 ga.TableName = mF.TableName; ga.Field = mF.Field; ga.dsList = (DataSet)bM.MenuList(); //.MenuList(); ga.Attribute(); //输入字段属性配置信息 }