private void BindRegulationCategoryTree() { RegulationCategoryBLL regulationCategoryBll = new RegulationCategoryBLL(); IList <RegulationCategory> regulationCategoryList = regulationCategoryBll.GetRegulationCategories( 0, 0, "", 0, 0, "", "", "", 0, 200, "RegulationCategoryID ASC"); Pub.BuildComponentArtTreeView(tvRegulationCategory, (IList)regulationCategoryList, "RegulationCategoryID", "ParentID", "CategoryName", "CategoryName", "RegulationCategoryID", null, null, null); //tvRegulationCategory.ExpandAll(); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (PrjPub.HasEditRight("政策法规") && PrjPub.IsServerCenter) { HfUpdateRight.Value = "True"; } else { HfUpdateRight.Value = "False"; } if (PrjPub.HasDeleteRight("政策法规") && PrjPub.IsServerCenter) { HfDeleteRight.Value = "True"; } else { HfDeleteRight.Value = "False"; } BindTree(); } else { string strDeleteID = Request.Form.Get("DeleteID"); if (!string.IsNullOrEmpty(strDeleteID)) { RegulationCategoryBLL regulationCategoryBll = new RegulationCategoryBLL(); regulationCategoryBll.DeleteRegulationCategory(int.Parse(strDeleteID)); BindTree(); } if (Request.Form.Get("Refresh") == "true") { BindTree(); } } }