示例#1
0
    private void BindNewKB()
    {
        string kbcatalog = ConfigHelper.GetConfigString("DesktopDisplayKBCatalog");

        if (string.IsNullOrEmpty(kbcatalog))
        {
            return;
        }

        dl_KB.DataSource = KB_CatalogBLL.GetModelList("ID IN (" + kbcatalog + ")");
        dl_KB.DataBind();
    }
    private void BindTree(TreeNodeCollection TNC, int SuperID)
    {
        IList <KB_Catalog> _list = KB_CatalogBLL.GetModelList("SuperID=" + SuperID.ToString());;

        foreach (KB_Catalog _m in _list)
        {
            TreeNode tn = new TreeNode();
            tn.Text  = _m.Name;
            tn.Value = _m.ID.ToString();
            TNC.Add(tn);
            BindTree(tn.ChildNodes, _m.ID);
        }
    }
示例#3
0
    private void BindNewKB()
    {
        string kbcatalog = ConfigHelper.GetConfigString("DesktopDisplayKBCatalog");

        if (!Roles.IsUserInRole("全体员工"))
        {
            kbcatalog              = ConfigHelper.GetConfigString("DesktopDisplayKBCatalog2");
            hy_KBMore.NavigateUrl += "?RootCatalog=" + kbcatalog;
        }

        if (string.IsNullOrEmpty(kbcatalog))
        {
            return;
        }

        dl_KB.DataSource = KB_CatalogBLL.GetModelList("ID IN (" + kbcatalog + ")");
        dl_KB.DataBind();
    }