protected void DataBindGVMaterial() { ResourceSelectBllAction resourceSelectBllAction = new ResourceSelectBllAction(); this.GVMaterial.DataSource = resourceSelectBllAction.GetResMaterialListByResCode((base.Request.QueryString["rc"] == "") ? "-1" : base.Request.QueryString["rc"]); this.GVMaterial.DataBind(); }
protected void BindTVResTree() { ResourceSelectBllAction resourceSelectBllAction = new ResourceSelectBllAction(); DataTable categoryList = resourceSelectBllAction.GetCategoryList((base.Request.QueryString["rs"] == "") ? -1 : int.Parse(base.Request.QueryString["rs"])); TreeNode treeNode = new TreeNode(); treeNode.Text = "资源分类"; this.CreateResTree(categoryList, treeNode, ""); this.TVResTree.Nodes.Add(treeNode); }
protected void DataBindGVMaterial() { ResourceSelectBllAction resourceSelectBllAction = new ResourceSelectBllAction(); DataTable materialList = resourceSelectBllAction.GetMaterialList(this.getStrWhere()); if (materialList != null && materialList.Rows.Count > NBasePage.pagesize) { this.HdnIsPage.Value = "1"; } Common2.BindGvTable(materialList, this.GVMaterial, false); }