Example #1
0
    protected void DataBindGVMaterial()
    {
        ResourceSelectBllAction resourceSelectBllAction = new ResourceSelectBllAction();

        this.GVMaterial.DataSource = resourceSelectBllAction.GetResMaterialListByResCode((base.Request.QueryString["rc"] == "") ? "-1" : base.Request.QueryString["rc"]);
        this.GVMaterial.DataBind();
    }
Example #2
0
    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);
    }
Example #3
0
    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);
    }