Inheritance: System.EventArgs
 private void _treeStoreLeft_ReadData(object sender, NodeLoadEventArgs e)
 {
     if (this.LeftReadData != null)
     {
         this.LeftReadData(sender, e);
     }
 }
Exemple #2
0
 protected void NodeLoad(object sender, NodeLoadEventArgs e)
 {
     if (!string.IsNullOrEmpty(e.NodeID))
     {
         System.Data.DataTable dtroot = new DataTable();
         if (e.NodeID == "0")
             dtroot = GetFather(e.NodeID);
         else
             dtroot = GetTree(e.NodeID);
         foreach (System.Data.DataRow dr in dtroot.Rows)
         {
             //核心
             if (dr["isleaf"].ToString().Trim() == "0")
             {
                 AsyncTreeNode asyncNode = new AsyncTreeNode();
                 asyncNode.Text = dr["name"].ToString().Trim();
                 asyncNode.NodeID = dr["structid"].ToString().Trim();
                 asyncNode.SingleClickExpand = true;
                 asyncNode.Checked = ThreeStateBool.False;
                 e.Nodes.Add(asyncNode);
             }
             else
             {
                 Ext.Net.TreeNode treeNode = new Ext.Net.TreeNode();
                 treeNode.Text = dr["name"].ToString().Trim();
                 treeNode.NodeID = dr["structid"].ToString().Trim();
                 treeNode.Leaf = true;
                 treeNode.Qtip = dr["structid"].ToString().Trim() + "_" + dr["name"].ToString().Trim();
                 treeNode.Checked = ThreeStateBool.False;
                 treeNode.Icon = Icon.ControlBlankBlue;
                 e.Nodes.Add(treeNode);
             }
         }
     }
 }
Exemple #3
0
        internal virtual void OnNodeLoad(NodeLoadEventArgs e)
        {
            NodeLoadEventHandler handler = (NodeLoadEventHandler)Events[EventNodeLoad];

            if (handler != null)
            {
                handler(this, e);
            }
        }
        protected void GetUserNodes(object sender, NodeLoadEventArgs e)
        {
            IList<user> list = Global.SqlMapper.GetList<user>("where puserid='" + (e.NodeID == "root" ? "0" : e.NodeID) + "'");
            foreach (user user in list) {
                e.Nodes.Add(new Ext.Net.TreeNode() { NodeID = user.userid.ToString(), Href = "", Text = user.username, Icon = Icon.User });
            }

            //e.Nodes.Add(new Ext.Net.TreeNode() { NodeID = "1", Href = "core/usermgr.aspx", Text = "客户管理", Icon = Icon.UserHome });
        }
Exemple #5
0
        internal virtual void OnNodeLoad(NodeLoadEventArgs e)
        {
            NodeLoadEventHandler handler = (NodeLoadEventHandler)Events[EventNodeLoad];

            if (handler != null)
            {
                handler(this, e);
            }
        }
Exemple #6
0
        protected void NodeLoad(object sender, NodeLoadEventArgs e)
        {
            string prefix = e.ExtraParams["prefix"] ?? "";

            if (!string.IsNullOrEmpty(e.NodeID))
            {

                if (e.NodeID.Equals("0"))
                {
                    DataTable table= gbll.GetAllList().Tables[0];

                    for (int i = 0; i < table.Rows.Count; i++)
                    {
                        DataRow dr = table.Rows[i];
                        AsyncTreeNode asyncNode = new AsyncTreeNode();
                        asyncNode.Text = dr["Name"].ToString();
                        asyncNode.NodeID = dr["ID"].ToString();
                        e.Nodes.Add(asyncNode);
                    }
                }
                else
                {
                    string tmp=" Gallery={0}";
                    DataTable table = ibll.GetList(string.Format(tmp, e.NodeID));
                    for (int i = 0; i < table.Rows.Count; i++)
                    {
                        DataRow dr = table.Rows[i];
                        AsyncTreeNode asyncNode = new AsyncTreeNode();
                        asyncNode.Text = dr["Title"].ToString();
                        asyncNode.NodeID = dr["ID"].ToString();
                        asyncNode.Leaf = true;
                        e.Nodes.Add(asyncNode);
                    }
                }
            }
        }
    /// <summary>
    /// 定制分析
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void GetExNodes1(object sender, NodeLoadEventArgs e)
    {
        NodeCollection nodes = new NodeCollection();
        //Node node1 = new Node();
        //node1.NodeID = "NodePL1";
        //node1.Text = "人均系数";
        //node1.Href = "WebPage\\CusAnaly\\PerCoefficient.aspx";
        //node1.Icon = Icon.Folder;
        //node1.Leaf = true;

        //nodes.Add(node1);

        //Node node2 = new Node();
        //node2.NodeID = "NodePL2";
        //node2.Text = "人员支出";
        //node2.Href = "WebPage\\CusAnaly\\PerSpend.aspx";
        //node2.Icon = Icon.Folder;
        //node2.Leaf = true;
        //nodes.Add(node2);

        //Node node3 = new Node();
        //node3.NodeID = "Nodend3";
        //node3.Text = "公用支出";
        //node3.Href = "WebPage\\CusAnaly\\PubSpend.aspx";
        //node3.Icon = Icon.Folder;
        //node3.Leaf = true;
        //nodes.Add(node3);

        //Node node4 = new Node();
        //node4.NodeID = "Nodend4";
        //node4.Text = "项目支出";
        //node4.Href = "WebPage\\CusAnaly\\ProSpend.aspx";
        //node4.Icon = Icon.Folder;
        //node4.Leaf = true;
        //nodes.Add(node4);

        Node node5 = new Node();
        node5.NodeID = "NodeEx5";
        node5.Text = "年度收入分析";
        node5.Href = "WebPage\\CusAnaly\\AnnIncomAnaly.aspx";
        node5.Icon = Icon.Folder;
        node5.Leaf = true;
        nodes.Add(node5);

        Node node6 = new Node();
        node6.NodeID = "NodeEx6";
        node6.Text = "年度支出分析";
        node6.Href = "WebPage\\CusAnaly\\AnnSpendAnaly.aspx";

        node6.Icon = Icon.Folder;
        node6.Leaf = true;
        nodes.Add(node6);

        Node node7 = new Node();
        node7.NodeID = "NodeEx7";
        node7.Text = "月度收入分析";
        node7.Href = "WebPage\\CusAnaly\\MonIncomAnaly.aspx";
        node7.Icon = Icon.Folder;
        node7.Leaf = true;
        nodes.Add(node7);

        Node node8 = new Node();
        node8.NodeID = "NodeEx8";
        node8.Text = "月度支出分析";
        node8.Href = "WebPage\\CusAnaly\\MonSpendAnaly.aspx";
        node8.Icon = Icon.Folder;
        node8.Leaf = true;
        nodes.Add(node8);

        //Node node9 = new Node();
        //node9.NodeID = "Nodend9";
        //node9.Text = "固定资产";
        //node9.Href = "WebPage\\CusAnaly\\FixAssets.aspx";
        //node9.Icon = Icon.Folder;
        //node9.Leaf = true;
        //nodes.Add(node9);

        e.Nodes = nodes;
    }
    /// <summary>
    /// 自选分析
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void GetExNodes2(object sender, NodeLoadEventArgs e)
    {
        NodeCollection nodes = new NodeCollection();

        //Node node1 = new Node();
        //node1.NodeID = "NodeST1";
        //node1.Text = "导入核算数据";
        //node1.Href = "WebPage\\OptAnaly\\ImportCkData.aspx";
        //node1.Icon = Icon.Folder;
        //node1.Leaf = true;
        //nodes.Add(node1);

        Node node2 = new Node();
        node2.NodeID = "NodeST2";
        node2.Text = "月度收支分析";
        node2.Href = "WebPage\\OptAnaly\\OAAnnIncomAnaly.aspx";
        node2.Icon = Icon.Folder;
        node2.Leaf = true;
        nodes.Add(node2);

        Node node3 = new Node();
        node3.NodeID = "NodeST3";
        node3.Text = "年度收支分析";
        node3.Href = "WebPage\\OptAnaly\\AssignDataQuery.aspx";
        node3.Icon = Icon.Folder;
        node3.Leaf = true;
        nodes.Add(node3);

        //Node node3 = new Node();
        //node3.NodeID = "Nodend3";
        //node3.Text = "月度收入分析";
        //node3.Href = "WebPage\\OptAnaly\\OAMonIncomAnaly.aspx";
        //node3.Icon = Icon.Folder;
        //node3.Leaf = true;
        //nodes.Add(node3);

        //Node node4 = new Node();
        //node4.NodeID = "Nodend4";
        //node4.Text = "月度支出分析";
        //node4.Href = "WebPage\\OptAnaly\\OAMonSpendAnaly.aspx";
        //node4.Icon = Icon.Folder;
        //node4.Leaf = true;
        //nodes.Add(node4);

        e.Nodes = nodes;
    }
    /// <summary>
    /// 信息公开
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void GetExNodes3(object sender, NodeLoadEventArgs e)
    {
        NodeCollection nodes = new NodeCollection();
        Node node1 = new Node();
        node1.NodeID = "NodePb1";
        node1.Text = "信息公开详细";
        node1.Href = "WebPage\\InfoPublic\\InfoPubDetail.aspx";
        node1.Icon = Icon.Folder;
        node1.Leaf = true;

        nodes.Add(node1);

        Node node2 = new Node();
        node2.NodeID = "NodePb2";
        node2.Text = "信息公开图表";
        node2.Href = "WebPage\\InfoPublic\\InfoPubChart.aspx";
        node2.Icon = Icon.Folder;
        node2.Leaf = true;
        nodes.Add(node2);

        Node node3 = new Node();
        node3.NodeID = "NodePb3";
        node3.Text = "信息公开统计";
        node3.Href = "WebPage\\InfoPublic\\InfoPubStat.aspx";
        node3.Icon = Icon.Folder;
        node3.Leaf = true;
        nodes.Add(node3);

        e.Nodes = nodes;
    }
Exemple #10
0
 public void _treePrivilegeSelector_LeftReadData(object sender, NodeLoadEventArgs e)
 {
     e.Nodes.AddRange(privilege.GetRoleCanAddPrivilegeNodes(ConvertHelper.ToInt32(e.ExtraParams["id"])));
 }
Exemple #11
0
 private void treeStore_ReadData(object sender, NodeLoadEventArgs e)
 {
     IList<Xinchen.ExtNetBase.TreePanelEx.Node> nodeItems = this._nodeHelper.GetNodeItems(Convert.ToInt32(e.ExtraParams["parentId"]));
     foreach (Xinchen.ExtNetBase.TreePanelEx.Node node in nodeItems)
     {
         Ext.Net.Node node2 = new Ext.Net.Node
         {
             Text = node.Name,
             NodeID = node.Id.ToString(),
             Leaf = false,
             AllowDrag = true,
             AllowDrop = true
         };
         ConfigItem item = new ConfigItem
         {
             Name = "Id",
             Value = node2.NodeID
         };
         node.CustomAttributes.Add(item);
         ConfigItem parameters = new ConfigItem
         {
             Name = "Name",
             Value = node2.Text
         };
         ConfigItem item3 = new ConfigItem
         {
             Name = "ParentId",
             Value = node.ParentId.ToString()
         };
         node2.CustomAttributes.Add(parameters);
         node2.CustomAttributes.Add(item3);
         node2.CustomAttributes.AddRange(node.CustomAttributes);
         e.Nodes.Add(node2);
     }
 }
    /// <summary>
    /// 预算控制
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void GetExNodes5(object sender, NodeLoadEventArgs e)
    {
        NodeCollection nodes = new NodeCollection();
        //Node node1 = new Node();
        //node1.NodeID = "NodeBC1";
        //node1.Text = "导航";
        //node1.Href = "WebPage\\BudgetControl\\BCNavigate.aspx";
        //node1.Icon = Icon.Folder;
        //node1.Leaf = true;

        //nodes.Add(node1);

        Node node2 = new Node();
        node2.NodeID = "NodeBC2";
        node2.Text = "操作说明";
        node2.Href = "WebPage\\BudgetControl\\BCOperationDoc.aspx";
        node2.Icon = Icon.Page;
        node2.Leaf = true;
        nodes.Add(node2);

        //Node node3 = new Node();
        //node3.NodeID = "Nodend3";
        //node3.Text = "月度用款计划";
        //node3.Href = "WebPage\\Setting\\a3.aspx";
        //node3.Icon = Icon.Folder;
        //node3.Leaf = true;
        //nodes.Add(node3);

        //Node node4 = new Node();
        //node4.NodeID = "Nodend4";
        //node4.Text = "月度用款审核";
        //node4.Href = "WebPage\\Setting\\a4.aspx";
        //node4.Icon = Icon.Folder;
        //node4.Leaf = true;
        //nodes.Add(node4);

        if (UserLimStr == "管理员" || UserLimStr == "审核员" || UserLimStr == "出纳员")
        {
            Node node3 = new Node();
            node3.NodeID = "NodeBC3";
            node3.Text = "导入财政数据";
            node3.Href = "WebPage\\BudgetControl\\ImportFinaData.aspx";
            node3.Icon = Icon.PageWhiteGet;
            node3.Leaf = true;
            nodes.Add(node3);
        }

        if (UserLimStr == "管理员" || UserLimStr == "审核员" || UserLimStr == "出纳员" || UserLimStr == "局领导")
        {
            Node node4 = new Node();
            node4.NodeID = "NodeBC4";
            node4.Text = "预算控制列表";
            node4.Href = "WebPage\\BudgetControl\\BudConList.aspx";
            node4.Icon = Icon.ApplicationSideList;
            node4.Leaf = true;
            nodes.Add(node4);

            Node node9 = new Node();
            node9.NodeID = "NodeBC9";
            node9.Text = "预算分配";
            node9.Href = "WebPage\\BudgetControl\\BudgetAllocation.aspx";
            node9.Icon = Icon.PageAdd;
            node9.Leaf = true;
            nodes.Add(node9);

            Node node11 = new Node();
            node11.NodeID = "NodeBC11";
            node11.Text = "预算分配情况";
            node11.Href = "WebPage\\BudgetControl\\BudgetDivide.aspx";
            node11.Icon = Icon.PageAttach;
            node11.Leaf = true;
            nodes.Add(node11);

            Node node20 = new Node();
            node20.NodeID = "NodeBC20";
            node20.Text = "预算分配历史记录";
            node20.Href = "WebPage\\BudgetControl\\HisAllocation.aspx";
            node20.Icon = Icon.PageAttach;
            node20.Leaf = true;
            nodes.Add(node20);

        }
        if (UserLimStr == "管理员" || UserLimStr == "录入员")
        {
            Node node5 = new Node();
            node5.NodeID = "NodeBC5";
            node5.Text = "添加月度用款计划";
            node5.Href = "WebPage\\BudgetControl\\MonPayPlanNew.aspx";
            node5.Icon = Icon.PageGo;
            node5.Leaf = true;
            nodes.Add(node5);
        }
        //if (UserLimStr == "管理员" || UserLimStr == "录入员")
        //{
        //    Node node5 = new Node();
        //    node5.NodeID = "NodeBCn";
        //    node5.Text = "添加月度用款计划";
        //    node5.Href = "WebPage\\BudgetControl\\MonPayPlanGenerate.aspx";
        //    node5.Icon = Icon.Folder;
        //    node5.Leaf = true;
        //    nodes.Add(node5);
        //}
        if (UserLimStr == "管理员" || UserLimStr == "录入员" || UserLimStr == "查询员" || UserLimStr == "审核员" || UserLimStr == "出纳员")
        {
            Node node6 = new Node();
            node6.NodeID = "NodeBC6";
            node6.Text = "查询月度用款计划";
            node6.Href = "WebPage\\BudgetControl\\SelMonPayPlan.aspx";
            node6.Icon = Icon.PageFind;
            node6.Leaf = true;
            nodes.Add(node6);
        }
        if (UserLimStr == "管理员" || UserLimStr == "审核员" || UserLimStr == "出纳员")
        {
            Node node7 = new Node();
            node7.NodeID = "NodeBC7";
            node7.Text = "财务科审核";
            node7.Href = "WebPage\\BudgetControl\\FinAudit.aspx";
            node7.Icon = Icon.PageGreen;
            node7.Leaf = true;
            nodes.Add(node7);
        }

        if (UserLimStr == "管理员" || UserLimStr == "审核员" || UserLimStr == "出纳员" || UserLimStr == "局领导")
        {
            Node node8 = new Node();
            node8.NodeID = "NodeBC8";
            node8.Text = "分管局长审核";
            node8.Href = "WebPage\\BudgetControl\\ChaSecAudit.aspx";
            node8.Icon = Icon.PackageGreen;
            node8.Leaf = true;
            nodes.Add(node8);

            Node node12 = new Node();
            node12.NodeID = "NodeBC12";
            node12.Text = "收入与支出对比情况表";
            node12.Href = "WebPage\\BudgetControl\\IncomeContrastpaySituation.aspx";
            node12.Icon = Icon.PageLink;
            node12.Leaf = true;
            nodes.Add(node12);
            //            Node node12 = new Node();
            //            node12.NodeID = "NodeBC12";
            //            node12.Text = "定额设置";
            //            node12.Href = "WebPage\\BudgetControl\\STQuota.aspx";
            //            node12.Icon = Icon.PageLink;
            //            node12.Leaf = true;
            //            nodes.Add(node12);
        }
        //        if (UserLimStr == "出纳员")
        //        {
        //            Node nodec = new Node();
        //            nodec.NodeID = "NodeBCC";
        //            nodec.Text = "分管局长审核";
        //            nodec.Href = "WebPage\\BudgetControl\\CashierAudit.aspx";
        //            nodec.Icon = Icon.PagePortraitShot;
        //            nodec.Leaf = true;
        //            nodes.Add(nodec);
        //        }

        //if (UserLimStr == "管理员" || UserLimStr == "审核员" || UserLimStr == "出纳员")
        //{
        //    Node node9 = new Node();
        //    node9.NodeID = "NodeBC9";
        //    node9.Text = "生成月度用款计划";
        //    node9.Href = "WebPage\\BudgetControl\\MonPayPlan.aspx";
        //    node9.Icon = Icon.Folder;
        //    node9.Leaf = true;
        //    nodes.Add(node9);
        //}

        //Node node10 = new Node();
        //node10.NodeID = "NodeBC10";
        //node10.Text = "导入财政数据";
        //node10.Href = "WebPage\\BudgetControl\\ImportFinaData.aspx";
        //node10.Icon = Icon.Folder;
        //node10.Leaf = true;
        //nodes.Add(node10);

        e.Nodes = nodes;
    }
    /// <summary>
    /// 基本设置
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void GetExNodes2(object sender, NodeLoadEventArgs e)
    {
        NodeCollection nodes = new NodeCollection();
        //Node node1 = new Node();
        //node1.NodeID = "NodeST1";
        //node1.Text = "导航";
        //node1.Href = "WebPage\\Setting\\STNavigate.aspx";
        //node1.Icon = Icon.Folder;
        //node1.Leaf = true;
        //nodes.Add(node1);

        Node node2 = new Node();
        node2.NodeID = "NodeST2";
        node2.Text = "操作说明";
        node2.Href = "WebPage\\Setting\\STOperationDoc.aspx";
        node2.Icon = Icon.Page;
        node2.Leaf = true;
        nodes.Add(node2);

        //Node node3 = new Node();
        //node3.NodeID = "Nodend3";
        //node3.Text = "部门设置";
        //node3.Href = "WebPage\\Setting\\a3.aspx";
        //node3.Icon = Icon.Folder;
        //node3.Leaf = true;
        //nodes.Add(node3);

        //Node node4 = new Node();
        //node4.NodeID = "Nodend4";
        //node4.Text = "人员设置";
        //node4.Href = "WebPage\\Setting\\a4.aspx";
        //node4.Icon = Icon.Folder;
        //node4.Leaf = true;
        //nodes.Add(node4);

        //Node node5 = new Node();
        //node5.NodeID = "Nodend5";
        //node5.Text = "控制单元";
        //node5.Href = "WebPage\\Setting\\a4.aspx";
        //node5.Icon = Icon.Folder;
        //node5.Leaf = true;
        //nodes.Add(node5);

        Node node3 = new Node();
        node3.NodeID = "NodeST3";
        node3.Text = "部门设置";
        node3.Href = "WebPage\\Setting\\STDepartment.aspx";
        node3.Icon = Icon.UserHome;
        node3.Leaf = true;
        nodes.Add(node3);

        Node node4 = new Node();
        node4.NodeID = "NodeST4";
        node4.Text = "人员设置";
        node4.Href = "WebPage\\Setting\\STMember.aspx";
        node4.Icon = Icon.User;
        node4.Leaf = true;
        nodes.Add(node4);

        //Node node5 = new Node();
        //node5.NodeID = "NodeST5";
        //node5.Text = "项目控制列表";
        //node5.Href = "WebPage\\Setting\\BudProjectList.aspx";
        //node5.Icon = Icon.Folder;
        //node5.Leaf = true;
        //nodes.Add(node5);
        Node node8 = new Node();
        node8.NodeID = "NodeST8";
        node8.Text = "密码修改记录";
        node8.Href = "WebPage\\Setting\\HisPassword.aspx";
        node8.Icon = Icon.ApplicationDouble;
        node8.Leaf = true;
        nodes.Add(node8);

        Node node6 = new Node();
        node6.NodeID = "NodeST6";
        node6.Text = "其他设置";
        node6.Href = "WebPage\\Setting\\STOther.aspx";
        node6.Icon = Icon.Wand;
        node6.Leaf = true;
        nodes.Add(node6);
        Node node7 = new Node();
        node7.NodeID = "NodeST7";
        node7.Text = "数据备份与还原";
        node7.Href = "WebPage\\Setting\\DataBak.aspx";
        node7.Icon = Icon.Database;
        node7.Leaf = true;
        nodes.Add(node7);
        e.Nodes = nodes;
    }
Exemple #14
0
 private void _treePrivilegeSelector_LeftReadData(object sender, NodeLoadEventArgs e)
 {
     e.Nodes.AddRange(privilege.GetRoleCanAddPrivilegeNodes(id));
 }
    /// <summary>
    /// 预算执行
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void GetExNodes6(object sender, NodeLoadEventArgs e)
    {
        NodeCollection nodes = new NodeCollection();
        if (UserLimStr == "管理员" || UserLimStr == "审核员" || UserLimStr == "出纳员" || UserLimStr == "录入员" || UserLimStr == "局领导")
        {
            Node node4 = new Node();
            node4.NodeID = UserID.ToString();
            node4.Text = "报销管理";
           // node4.Href = "http://148.32.16.22:8082?UserID=" + UserID; //  6-19  做成整体的预算
            string url = Request.Url.ToString();
            int itpm=url.LastIndexOf('/');
            string urltmp = url.Remove(itpm, url.Length - itpm);
            node4.Href = urltmp + "/expen?UserID=" + UserID;  //  ______________5-11
            node4.Icon = Icon.BookEdit;
            node4.Leaf = true;
            nodes.Add(node4);
        }
        //Node node1 = new Node();
        //node1.NodeID = "NodeBX1";
        //node1.Text = "导航";
        //node1.Href = "WebPage\\BudgetExecute\\BXNavigate.aspx";
        //node1.Icon = Icon.Folder;
        //node1.Leaf = true;

        //nodes.Add(node1);

        //Node node2 = new Node();
        //node2.NodeID = "NodeBX2";
        //node2.Text = "操作说明";
        //node2.Href = "WebPage\\BudgetExecute\\BXOperationDoc.aspx";
        //node2.Icon = Icon.Folder;
        //node2.Leaf = true;
        //nodes.Add(node2);
        ////if (UserLimStr == "管理员" || UserLimStr == "录入员")
        ////{
        ////    Node node3 = new Node();
        ////    node3.NodeID = UserID.ToString();
        ////    node3.Text = "申请";
        ////   // node3.Href = "WebPage\\BudgetExecute\\ApplyList.aspx";
        ////    node3.Icon = Icon.BookAdd;
        ////    node3.Leaf = true;
        ////    //nodes.Add(node3);
        ////}
        ////if (UserLimStr == "管理员" || UserLimStr == "审核员" || UserLimStr == "出纳员")
        ////{
        ////    Node node4 = new Node();
        ////    node4.NodeID = "NodeBX4";
        ////    node4.Text = "审批";
        ////    node4.Href = "WebPage\\BudgetExecute\\ReimApproval.aspx";
        ////    node4.Icon = Icon.BookEdit;
        ////    node4.Leaf = true;
        ////    nodes.Add(node4);
        ////}
        ////if (UserLimStr == "管理员" || UserLimStr == "查询员")
        ////{
        ////    Node node5 = new Node();
        ////    node5.NodeID = "NodeBX5";
        ////    node5.Text = "报账员查询";
        ////    node5.Href = "WebPage\\BudgetExecute\\ReimStaffQuery.aspx";
        ////    node5.Icon = Icon.BookPrevious;
        ////    node5.Leaf = true;
        ////    nodes.Add(node5);
        ////}
        ////if (UserLimStr == "管理员" || UserLimStr == "审核员" || UserLimStr == "出纳员")
        ////{
        ////    Node node6 = new Node();
        ////    node6.NodeID = "NodeBX6";
        ////    node6.Text = "报销单历史查询";
        ////    node6.Href = "WebPage\\BudgetExecute\\AuditorQuery.aspx";
        ////    node6.Icon = Icon.BookOpen;
        ////    node6.Leaf = true;
        ////    nodes.Add(node6);
        ////}
        ////if (UserLimStr == "管理员" || UserLimStr == "局领导")
        ////{
        ////    Node node7 = new Node();
        ////    node7.NodeID = "NodeBX7";
        ////    node7.Text = "报销单历史查询";
        ////    node7.Href = "WebPage\\BudgetExecute\\LeaderQuery.aspx";
        ////    node7.Icon = Icon.ChartLine;
        ////    node7.Leaf = true;
        ////    nodes.Add(node7);
        ////}
        //if (UserLimStr == "管理员" || UserLimStr == "审核员" || UserLimStr == "出纳员")
        //{
        //    Node node8 = new Node();
        //    node8.NodeID = "NodeBX8";
        //    node8.Text = "财务核算";
        //    node8.Href = "WebPage\\BudgetExecute\\FinAccounting.aspx";
        //    node8.Icon = Icon.Folder;
        //    node8.Leaf = true;
        //    nodes.Add(node8);
        //}

        ////if (UserLimStr == "管理员" || UserLimStr == "录入员")
        ////{
        ////    Node node9 = new Node();
        ////    node9.NodeID = "NodeBX9";
        ////    node9.Text = "报销单历史查询";
        ////    node9.Href = "WebPage\\BudgetExecute\\QueryApplystateList.aspx";
        ////    node9.Icon = Icon.ChartLine;
        ////    node9.Leaf = true;
        ////    nodes.Add(node9);
        ////}

        ////if (UserLimStr == "管理员" || UserLimStr == "审核员" || UserLimStr == "出纳员" || UserLimStr == "录入员")
        ////{
        ////    Node node10 = new Node();
        ////    node10.NodeID = "NodeBX10";
        ////    node10.Text = "申请额度查询";
        ////    node10.Href = "WebPage\\BudgetExecute\\ApplyLimit.aspx";
        ////    node10.Icon = Icon.ChartLineLink;
        ////    node10.Leaf = true;
        ////    nodes.Add(node10);
        ////}

        //if (UserLimStr == "管理员" || UserLimStr == "审核员" || UserLimStr == "出纳员" || UserLimStr == "录入员")
        //{
        //    Node node10 = new Node();
        //    node10.NodeID = "NodeBX100";
        //    node10.Text = "申请额度查询";
        //    node10.Href = "WebPage\\BudgetExecute\\ApplyAdd.aspx";
        //    node10.Icon = Icon.Folder;
        //    node10.Leaf = true;
        //    nodes.Add(node10);
        //}

        e.Nodes = nodes;
    }
 private void _treeStoreRight_ReadData(object sender, NodeLoadEventArgs e)
 {
     if (this.RightReadData != null)
     {
         this.RightReadData(sender, e);
         foreach (Ext.Net.Node node in e.Nodes)
         {
             this._selectedIds.Add(ConvertHelper.ToInt32(node.NodeID));
         }
     }
 }
 /// <summary>
 /// 获取用户角色功能菜单树
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void GetModuNodes(object sender, NodeLoadEventArgs e)
 {
     e.Nodes.Add(new Ext.Net.TreeNode(){ NodeID="1", Href="core/usermgr.aspx", Text="客户管理", Icon= Icon.UserHome});
 }
    /// <summary>
    /// 预算测算
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void GetExNodes3(object sender, NodeLoadEventArgs e)
    {
        NodeCollection nodes = new NodeCollection();
        //Node node1 = new Node();
        //node1.NodeID = "NodePE1";
        //node1.Text = "导航";
        //node1.Href = "WebPage\\BudgetEstimate\\PENavigate.aspx";
        //node1.Icon = Icon.Folder;
        //node1.Leaf = true;
        //nodes.Add(node1);

        Node node2 = new Node();
        node2.NodeID = "NodePE2";
        node2.Text = "操作说明";
        node2.Href = "WebPage\\BudgetEstimate\\PEOperationDoc.aspx";
        node2.Icon = Icon.Page;
        node2.Leaf = true;
        nodes.Add(node2);

        //Node node3 = new Node();
        //node3.NodeID = "NodePE3";
        //node3.Text = "预算总览";
        //node3.Href = "WebPage\\BudgetEstimate\\BudgetOverview.aspx";
        //node3.Icon = Icon.PackageGo;
        //node3.Leaf = true;
        //nodes.Add(node3);

        Node node4 = new Node();
        node4.NodeID = "NodePE4";
        node4.Text = "人员经费预算";
        node4.Href = "WebPage\\BudgetEstimate\\BEPersonExpenseBudget.aspx";
        node4.Icon = Icon.UserComment;
        node4.Leaf = true;
        nodes.Add(node4);

        Node node5 = new Node();
        node5.NodeID = "NodePE5";
        node5.Text = "公用经费预算";
        node5.Href = "WebPage\\BudgetEstimate\\BEPublicExpenseBudget.aspx";
        node5.Icon = Icon.Brick;
        node5.Leaf = true;
        nodes.Add(node5);

        Node node6 = new Node();
        node6.NodeID = "NodePE6";
        node6.Text = "项目经费预算";
        node6.Href = "WebPage\\BudgetEstimate\\BEProjectExpenseBudget.aspx";
        node6.Icon = Icon.Calculator;
        node6.Leaf = true;
        nodes.Add(node6);

        Node node7 = new Node();
        node7.NodeID = "NodePE7";
        node7.Text = "预算科目汇总";
        node7.Href = "WebPage\\BudgetEstimate\\BEBudgetSubject.aspx";
        node7.Icon = Icon.PackageGreen;
        node7.Leaf = true;
        nodes.Add(node7);

        Node node9 = new Node();
        node9.NodeID = "NodePE9";
        node9.Text = "预算测算分配";
        node9.Href = "WebPage\\BudgetEstimate\\EstimateAllocation.aspx";
        node9.Icon = Icon.Book;
        node9.Leaf = true;
        nodes.Add(node9);

        Node node10 = new Node();
        node10.NodeID = "NodePE10";
        node10.Text = "测算分配情况";
        node10.Href = "WebPage\\BudgetEstimate\\BEBudgetPayDivide.aspx";
        node10.Icon = Icon.Bookmark;
        node10.Leaf = true;
        nodes.Add(node10);

        e.Nodes = nodes;
    }
Exemple #19
0
 private void _treeRoleSelector_RightReadData(object sender, NodeLoadEventArgs e)
 {
     e.Nodes.AddRange(privilege.GetUserRoleNodes(id));
 }
Exemple #20
0
        public void RaiseAjaxPostBackEvent(string eventArgument, ParameterCollection extraParams)
        {
            bool success = true;
            string msg = null;

            Response response = new Response();

            try
            {
                if (eventArgument.IsEmpty())
                {
                    throw new ArgumentNullException("eventArgument");
                }

                XmlNode xmlData = this.SubmitConfig;
                string data = null;

                if (xmlData != null)
                {
                    XmlNode serviceNode = xmlData.SelectSingleNode("config/serviceParams");

                    if (serviceNode != null)
                    {
                        data = serviceNode.InnerText;
                    }
                }

                switch(eventArgument)
                {
                    case "nodeload":
                        NodeLoadEventArgs e = new NodeLoadEventArgs(extraParams);
                        PageTreeLoader loader = (PageTreeLoader) this.Loader.Primary;
                        loader.OnNodeLoad(e);
                        TreeNodeCollection nodes = e.Nodes;
                        success = e.Success;
                        msg = e.ErrorMessage;
                        response.Data = nodes != null ? nodes.ToJson() : null;
                        break;
                    case "submit":
                        SubmitEventArgs se = new SubmitEventArgs(extraParams, JSON.Deserialize<SubmittedNode>(data, new CamelCasePropertyNamesContractResolver()));
                        this.OnSubmit(se);
                        break;
                    case "raRename":
                        RemoteRenameEventArgs rr = new RemoteRenameEventArgs(data,extraParams);
                        this.OnRemoteRename(rr);
                        success = rr.Accept;
                        msg = rr.RefusalMessage;
                        break;
                    case "raRemove":
                        RemoteActionEventArgs rrm = new RemoteActionEventArgs(data, extraParams);
                        this.OnRemoteRemove(rrm);
                        success = rrm.Accept;
                        msg = rrm.RefusalMessage;
                        break;
                    case "raInsert":
                    case "raAppend":
                        RemoteAppendEventArgs ra = new RemoteAppendEventArgs(eventArgument == "raInsert", data, extraParams);
                        this.OnRemoteAppend(ra);
                        success = ra.Accept;
                        msg = ra.RefusalMessage;
                        break;
                    case "raMove":
                        RemoteMoveEventArgs rm = new RemoteMoveEventArgs(data, extraParams);
                        this.OnRemoteMove(rm);
                        success = rm.Accept;
                        msg = rm.RefusalMessage;
                        break;
                }
            }
            catch (Exception ex)
            {
                success = false;
                msg = this.IsDebugging ? ex.ToString() : ex.Message;

                if (this.ResourceManager.RethrowAjaxExceptions)
                {
                    throw;
                }
            }

            response.Success = success;
            response.Message = msg;

            ResourceManager.ServiceResponse = response;
        }
    /// <summary>
    /// 下载专区
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void GetExNodes8(object sender, NodeLoadEventArgs e)
    {
        NodeCollection nodes = new NodeCollection();

        Node node1 = new Node();
        node1.NodeID = "NodeDd";
        node1.Text = "谷歌浏览器下载";
        node1.Href = "WebPage\\Download\\GoolgleDownload.aspx";
        node1.Icon = Icon.DiskDownload;
        node1.Leaf = true;
        nodes.Add(node1);

        e.Nodes = nodes;
    }
    /// <summary>
    /// 预算分析
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void GetExNodes7(object sender, NodeLoadEventArgs e)
    {
        NodeCollection nodes = new NodeCollection();
        //Node node1 = new Node();
        //node1.NodeID = "NodeBA1";
        //node1.Text = "导航";
        //node1.Href = "WebPage\\BudgetAnalyse\\BANavigate.aspx";
        //node1.Icon =  Icon.Folder;
        //node1.Leaf = true;

        //nodes.Add(node1);

        //Node node2 = new Node();
        //node2.NodeID = "NodeBA2";
        //node2.Text = "操作说明";
        //node2.Href = "WebPage\\BudgetAnalyse\\BAOperationDoc.aspx";
        //node2.Icon = Icon.Folder;
        //node2.Leaf = true;
        //nodes.Add(node2);

        if (UserLimStr == "管理员" || UserLimStr == "审核员" || UserLimStr == "出纳员" || UserLimStr == "局领导" || UserLimStr == "查询员")
        {
            Node node3 = new Node();
            node3.NodeID = "NodeBA3";
            node3.Text = "预算控制执行表";
            node3.Href = "WebPage\\BudgetAnalyse\\BudConExeList.aspx";
            node3.Icon = Icon.PageGear;
            node3.Leaf = true;
            nodes.Add(node3);

            Node node4 = new Node();
            node4.NodeID = "NodeBA4";
            node4.Text = "收入及支出对比分析表";
            node4.Href = "WebPage\\BudgetAnalyse\\IncomeContrastpay.aspx";
            node4.Icon = Icon.PageLink;
            node4.Leaf = true;
            nodes.Add(node4);

            Node node5 = new Node();
            node5.NodeID = "NodeBA5";
            node5.Text = "预算月度执行率";//BGexecutePages.aspx
            node5.Href = "WebPage\\BudgetAnalyse\\BudgetexecutionrateNew.aspx";
            node5.Icon = Icon.PageLink;
            node5.Leaf = true;
            nodes.Add(node5);

            Node node6 = new Node();
            node6.NodeID = "NodeBA6";
            node6.Text = "预算年度执行率";//BGexecutePages.aspx
            node6.Href = "WebPage\\BudgetAnalyse\\BudgetexecutionrateNewyear.aspx";
            node6.Icon = Icon.PageLink;
            node6.Leaf = true;
            nodes.Add(node6);
        }

        //Node node4 = new Node();
        //node4.NodeID = "NodeBA4";
        //node4.Text = "部门项目执行表";
        //node4.Href = "WebPage\\BudgetAnalyse\\DepSubControlExeList.aspx";
        //node4.Icon = Icon.Folder;
        //node4.Leaf = true;
        //nodes.Add(node4);

        e.Nodes = nodes;
    }
 void _menuStore_ReadData(object sender, NodeLoadEventArgs e)
 {
     e.Nodes.AddRange(privilege.GetNavigationMenus(Convert.ToInt32(e.ExtraParams["parentId"])));
 }
Exemple #24
0
        void _treeRoleSelector_RightReadData(object sender, NodeLoadEventArgs e)
        {

        }
Exemple #25
0
        public void RaiseAjaxPostBackEvent(string eventArgument, ParameterCollection extraParams)
        {
            bool   success = true;
            string msg     = null;

            Response response = new Response();

            try
            {
                if (eventArgument.IsEmpty())
                {
                    throw new ArgumentNullException("eventArgument");
                }

                XmlNode xmlData = this.SubmitConfig;
                string  data    = null;

                if (xmlData != null)
                {
                    XmlNode serviceNode = xmlData.SelectSingleNode("config/serviceParams");

                    if (serviceNode != null)
                    {
                        data = serviceNode.InnerText;
                    }
                }

                switch (eventArgument)
                {
                case "nodeload":
                    NodeLoadEventArgs e      = new NodeLoadEventArgs(extraParams);
                    PageTreeLoader    loader = (PageTreeLoader)this.Loader.Primary;
                    loader.OnNodeLoad(e);
                    TreeNodeCollection nodes = e.Nodes;
                    success       = e.Success;
                    msg           = e.ErrorMessage;
                    response.Data = nodes != null?nodes.ToJson() : null;

                    break;

                case "submit":
                    SubmitEventArgs se = new SubmitEventArgs(extraParams, JSON.Deserialize <SubmittedNode>(data, new CamelCasePropertyNamesContractResolver()));
                    this.OnSubmit(se);
                    break;

                case "raRename":
                    RemoteRenameEventArgs rr = new RemoteRenameEventArgs(data, extraParams);
                    this.OnRemoteRename(rr);
                    success = rr.Accept;
                    msg     = rr.RefusalMessage;
                    break;

                case "raRemove":
                    RemoteActionEventArgs rrm = new RemoteActionEventArgs(data, extraParams);
                    this.OnRemoteRemove(rrm);
                    success = rrm.Accept;
                    msg     = rrm.RefusalMessage;
                    break;

                case "raInsert":
                case "raAppend":
                    RemoteAppendEventArgs ra = new RemoteAppendEventArgs(eventArgument == "raInsert", data, extraParams);
                    this.OnRemoteAppend(ra);
                    success = ra.Accept;
                    msg     = ra.RefusalMessage;
                    break;

                case "raMove":
                    RemoteMoveEventArgs rm = new RemoteMoveEventArgs(data, extraParams);
                    this.OnRemoteMove(rm);
                    success = rm.Accept;
                    msg     = rm.RefusalMessage;
                    break;
                }
            }
            catch (Exception ex)
            {
                success = false;
                msg     = this.IsDebugging ? ex.ToString() : ex.Message;

                if (this.ResourceManager.RethrowAjaxExceptions)
                {
                    throw;
                }
            }

            response.Success = success;
            response.Message = msg;

            ResourceManager.ServiceResponse = response;
        }
        internal virtual void OnReadData(NodeLoadEventArgs e)
        {
            ReadDataEventHandler handler = (ReadDataEventHandler)Events[EventReadData];

            if (handler != null)
            {
                handler(this, e);
            }
        }
Exemple #27
0
 protected void GetExamplesNodes(object sender, NodeLoadEventArgs e)
 {
     if (e.NodeID == "0")
     {
         e.Nodes = GetAMMenu();
     }
 }
    /// <summary>
    /// 预算编辑
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void GetExNodes4(object sender, NodeLoadEventArgs e)
    {
        NodeCollection nodes = new NodeCollection();

        //Node node3 = new Node();
        //node3.NodeID = "BEPF";
        //node3.Text = "公用经费测算";
        //node3.Href = "WebPage\\BudgetEdit\\PublicFunding.aspx";
        //node3.Icon = Icon.Folder;
        //node3.Leaf = true;
        //nodes.Add(node3);

        //Node node4 = new Node();
        //node4.NodeID = "BECF";
        //node4.Text = "资本性经费测算";
        //node4.Href = "WebPage\\BudgetEdit\\CapitalEstimates.aspx";
        //node4.Icon = Icon.Folder;
        //node4.Leaf = true;
        //nodes.Add(node4);

        //Node node5 = new Node();
        //node5.NodeID = "BEPFD";
        //node5.Text = "人员经费测算";
        //node5.Href = "WebPage\\BudgetEdit\\PerFund.aspx";
        //node5.Icon = Icon.Folder;
        //node5.Leaf = true;
        //nodes.Add(node5);

        //Node node6 = new Node();
        //node6.NodeID = "BENAdd";
        //node6.Text = "添加数据";
        //node6.Href = "WebPage\\BudgetEdit\\Add.aspx";
        //node6.Icon = Icon.Folder;
        //node6.Leaf = true;
        //nodes.Add(node6);

        //Node node7 = new Node();
        //node7.NodeID = "BENPF";
        //node7.Text = "下年度项目经费测算";
        //node7.Href = "WebPage\\BudgetEdit\\NextProFunding.aspx";
        //node7.Icon = Icon.Folder;
        //node7.Leaf = true;
        //nodes.Add(node7);

        //Node node1 = new Node();
        //node1.NodeID = "NodeBE1";
        //node1.Text = "导航";
        //node1.Href = "WebPage\\BudgetEdit\\EBNavigate.aspx";
        //node1.Icon = Icon.Folder;
        //node1.Leaf = true;
        //nodes.Add(node1);

        Node node2 = new Node();
        node2.NodeID = "NodeBE2";
        node2.Text = "操作说明";
        node2.Href = "WebPage\\BudgetEdit\\BEOperationDoc.aspx";
        node2.Icon = Icon.Page;
        node2.Leaf = true;
        nodes.Add(node2);

        if (UserLimStr == "录入员" || UserLimStr == "审核员")
        {
            Node node23 = new Node();
            node23.NodeID = "NodeBE233";
            node23.Text = "预算金额编辑";
            node23.Href = "WebPage\\BudgetEdit\\BudgetMonEdit.aspx";
            node23.Icon = Icon.BookEdit;
            node23.Leaf = true;
            nodes.Add(node23);
        }

        if (UserLimStr == "管理员" || UserLimStr == "录入员" || UserLimStr == "出纳员")
        {
            Node node3 = new Node();
            node3.NodeID = "NodeBE3";
            node3.Text = "预算编辑管理";
            node3.Href = "WebPage\\BudgetEdit\\BudgetEditList.aspx";
            node3.Icon = Icon.PageEdit;
            node3.Leaf = true;
            nodes.Add(node3);
        }

        //Node node4 = new Node();
        //node4.NodeID = "NodeBE4";
        //node4.Text = "导入财政数据";
        //node4.Href = "WebPage\\BudgetEdit\\ImportFinaData.aspx";
        //node4.Icon = Icon.Folder;
        //node4.Leaf = true;
        //nodes.Add(node4);

        if (UserLimStr == "管理员" || UserLimStr == "审核员" || UserLimStr == "出纳员")
        {
            Node node5 = new Node();
            node5.NodeID = "NodeBE5";
            node5.Text = "预算上报";
            node5.Href = "WebPage\\BudgetEdit\\BudgetExamine.aspx";
            node5.Icon = Icon.PageGo;
            node5.Leaf = true;
            nodes.Add(node5);
        }

        if (UserLimStr == "管理员" || UserLimStr == "审核员" || UserLimStr == "出纳员")
        {
            Node node6 = new Node();
            node6.NodeID = "NodeBE6";
            node6.Text = "预算审核";
            node6.Href = "WebPage\\BudgetEdit\\BudgetReview.aspx";
            node6.Icon = Icon.PageMagnify;
            node6.Leaf = true;
            nodes.Add(node6);
        }

        if (UserLimStr == "管理员" || UserLimStr == "局领导" || UserLimStr == "审核员" || UserLimStr == "出纳员" || UserLimStr == "录入员")
        {
            Node node7 = new Node();
            node7.NodeID = "NodeBE7";
            node7.Text = "预算汇总";
            node7.Href = "WebPage\\BudgetEdit\\BudgetCollect.aspx";
            node7.Icon = Icon.PageLandscape;
            node7.Leaf = true;
            nodes.Add(node7);

            Node node8 = new Node();
            node8.NodeID = "NodeBE8";
            node8.Text = "历史轨迹";
            node8.Href = "WebPage\\BudgetEdit\\History.aspx";
            node8.Icon = Icon.Lightbulb;
            node8.Leaf = true;
            nodes.Add(node8);
        }
        e.Nodes = nodes;
    }
Exemple #29
0
 void _treeRoleSelector_LeftReadData(object sender, NodeLoadEventArgs e)
 {
     e.Nodes.AddRange(privilege.GetRoleNodes());
 }
Exemple #30
0
        void store_ReadData(object sender, NodeLoadEventArgs e)
        {

        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="eventArgument"></param>
        /// <param name="extraParams"></param>
        public void RaiseAjaxPostBackEvent(string eventArgument, ParameterCollection extraParams)
        {
            bool success = true;
            string msg = null;

            StoreResponseData response = new StoreResponseData(true);

            try
            {
                if (eventArgument.IsEmpty())
                {
                    throw new ArgumentNullException("eventArgument");
                }

                //string data = null;
                //JToken parametersToken = null;

                //if (this.DirectConfig != null)
                //{
                //    JToken serviceToken = this.DirectConfig.SelectToken("config.serviceParams", false);

                //    if (serviceToken != null)
                //    {
                //        data = JSON.ToString(serviceToken);
                //    }
                //}

                switch (eventArgument)
                {
                    case "read":
                        if (this.IsBoundUsingDataSourceID)
                        {
                            Node bindNode = new Node();
                            this.DataBindNode(bindNode, extraParams["dataPath"]);
                            response.Data = bindNode.Children.ToJson();
                        }
                        else
                        {
                            NodeLoadEventArgs e = new NodeLoadEventArgs(extraParams);
                            this.OnReadData(e);
                            NodeCollection nodes = e.Nodes;
                            success = e.Success;
                            msg = e.ErrorMessage;
                            response.Data = nodes != null ? nodes.ToJson() : null;
                        }
                        break;
                }
            }
            catch (Exception ex)
            {
                success = false;
                msg = this.IsDebugging ? ex.ToString() : ex.Message;

                if (this.ResourceManager.RethrowAjaxExceptions)
                {
                    throw;
                }
            }

            

            //if (success)
            //{
            //    switch (eventArgument)
            //    {
            //        case "read":

            //            if (this.RequiresDataBinding)
            //            {
            //                this.DataBind();
            //            }

            //            response.Data = this.GetAjaxDataJson();
            //            PageProxy dsp = this.Proxy.Primary as PageProxy;
            //            response.Total = dsp != null ? dsp.Total : -1;
            //            break;
            //    }
            //}
            
            ResourceManager.ServiceResponse = new Response { Data = response.ToString(), Success = success, Message = msg };
        }
    /// <summary>
    /// 政策指导
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void GetExNodes1(object sender, NodeLoadEventArgs e)
    {
        NodeCollection nodes = new NodeCollection();
        //Node node1 = new Node();
        //node1.NodeID = "NodePL1";
        //node1.Text = "整站导航";
        //node1.Href = "WebPage\\Policy\\PLNavigate.aspx";
        //node1.Icon = Icon.Folder;
        //node1.Leaf = true;

        //nodes.Add(node1);

        Node node2 = new Node();
        node2.NodeID = "NodePL2";
        node2.Text = "操作说明";
        node2.Href = "WebPage\\Policy\\PLOperationDoc.aspx";
        node2.Icon = Icon.Page;
        node2.Leaf = true;
        nodes.Add(node2);

        Node node3 = new Node();
        node3.NodeID = "NodePL3";
        node3.Text = "预算编报口径";
        node3.Href = "WebPage\\Policy\\PLUniformRules.aspx";
        node3.Icon = Icon.PageEdit;
        node3.Leaf = true;
        nodes.Add(node3);

        if (UserLimStr == "管理员")
        {
            Node node4 = new Node();
            node4.NodeID = "NodePL4";
            node4.Text = "政策指导";
            node4.Href = "WebPage\\Policy\\PolicyEditList.aspx";
            node4.Icon = Icon.PageGo;
            node4.Leaf = true;
            nodes.Add(node4);

            Node node5 = new Node();
            node5.NodeID = "NodePL5";
            node5.Text = "预算项目类库";
            node5.Href = "WebPage\\Policy\\LibrariesEditList.aspx";
            node5.Icon = Icon.FolderPageWhite;
            node5.Leaf = true;
            nodes.Add(node5);
        }

        e.Nodes = nodes;
    }