自制树型控件(DataGrid) 支持多种响应

先给出aspx页面

<% @ Page Language="C#" AutoEventWireup="true" CodeFile="ModuleTree_Category.aspx.cs"
    Inherits
="Admin_ModuleTree_Category" 
%>

<! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
< html  xmlns ="http://www.w3.org/1999/xhtml" >
< head  runat ="server" >
    
< title > 系统功能树 </ title >
    
< link  href ="../css/User.css"  rel ="stylesheet"  type ="text/css"   />

    
< script  language ="javascript"  type ="text/javascript"  src ="../Include/category.js" ></ script >

</ head >
< body >
    
< form  id ="Form1"  runat ="server" >
        
< div  id ="box101" >
            
< table  width ="95%"  style ="margin-top: 20px" >
                
< tr >
                    
< td  width ="100%" >
                        
< asp:DataGrid  ID ="DG"  Width ="100%"  runat ="server"  CssClass ="ListGrid"
                            AutoGenerateColumns
="False"  OnItemCommand ="ItemsGrid_Command"  OnPreRender ="DataGridCategory_PreRender" >
                            
< Columns >
                                
< asp:TemplateColumn  Visible ="False"  HeaderText ="标准分类信息" >
                                    
< HeaderStyle  Width ="5%" ></ HeaderStyle >
                                    
< ItemTemplate >
                                        
< asp:Label  ID ="fSequencePath"  Text ='<%#  DataBinder.Eval(Container.DataItem, "fSequencePath")% > '
                                            runat="server">
                                        
</ asp:Label >
                                        
< asp:Label  ID ="fLevel"  Text ='<%#  DataBinder.Eval(Container.DataItem, "fLevel")% > '
                                            runat="server">
                                        
</ asp:Label >
                                        
< asp:Label  ID ="fCategoryGuid"  Text ='<%#  DataBinder.Eval(Container.DataItem, "fCategoryGuid")% > '
                                            runat="server">
                                        
</ asp:Label >
                                    
</ ItemTemplate >
                                
</ asp:TemplateColumn >
                                
< asp:TemplateColumn  HeaderText ="系统功能模块" >
                                    
< ItemStyle  HorizontalAlign ="Left" ></ ItemStyle >
                                    
< ItemTemplate >
                                        
< asp:Label  ID ="Spaces"  runat ="server" ></ asp:Label >
                                        
<% #"<img src='add.gif' style='cursor: hand'>"  %>
                                        
<% "<a href=#>" + DataBinder.Eval(Container.DataItem, "fCaption").ToString() + "</a>"  %>
                                    
</ ItemTemplate >
                                
</ asp:TemplateColumn >
                                
< asp:HyperLinkColumn  HeaderText ="添加"   Text ="添加"  DataNavigateUrlField ="fCategoryGuid"  DataNavigateUrlFormatString ="./ModuleTree_Edit.aspx?parent={0}"   />
                                
< asp:HyperLinkColumn  HeaderText ="编辑"  Text ="编辑"  DataNavigateUrlField ="fCategoryGuid"  DataNavigateUrlFormatString ="./ModuleTree_Edit.aspx?me={0}"   />
                                
< asp:ButtonColumn  HeaderText ="删除"  Text ="删除"  CommandName ="Delete"   />
                                
< asp:ButtonColumn  Text ="上移"  HeaderText ="上移"  CommandName ="Up"  ButtonType ="PushButton"   />
                                
< asp:ButtonColumn  Text ="下移"  HeaderText ="下移"  CommandName ="Down"  ButtonType ="PushButton"   />
                            
</ Columns >
                        
</ asp:DataGrid >
                    
</ td >
                
</ tr >
            
</ table >
        
</ div >
    
</ form >
</ body >
</ html >

后台主要就是一个绑定数据源 fLevel 表示层数 fSequence表示本层的排序号   fSequencePath 表示 树桩结构层路径比如:001|001|001

 

 1    private   void  DataGridCategory_PreRender( object  sender, System.EventArgs e)
 2          {
 3            foreach (DataGridItem item in DataGridCategory.Items)
 4            {
 5                int level = 0;
 6                try { level = int.Parse(((Label)item.Cells[0].Controls[3]).Text); }
 7                catch { Functions.MessageAlert(this.Page, "该标准含有错误的层次信息!"); }
 8                item.Attributes.Add("level", level.ToString());
 9                ((Label)item.Cells[1].Controls[1]).Text =  WriteSpace(level - RootLevel) ;
10                if (level > 1)
11                    item.Style.Add("display""none;");
12                if (!this.EnableNavigate)
13                {
14                    item.Attributes.Add("id", ((Label)item.Cells[0].Controls[1]).Text);
15                    item.Cells[1].Attributes.Add("onclick""TurnIt(this);return false;");
16                    
17                }

18                //                if (item.ItemIndex == 0)
19                //                {
20                //                    item.Cells[3].Text= "";
21                //                    ((WebControl)(item.Cells[4].Controls[0])).Visible = false;
22                //                }
23                //                else
24                //                    ((WebControl)(item.Cells[4].Controls[0])).Attributes["onclick"] = "return confirm('您真的要删除本目录,及其下所有子目录吗?');";
25            }

26        }

展开动作的脚本

 1 // 展开/隐藏 节点的子节点。根据图标判断,若当前为展开状态,则使其变为隐藏状态。反之亦然
 2 function  TurnIt(obj)
 3 {
 4    var imageEx = "add.gif";
 5    var imageSh = "sub.gif";
 6    var father = document.all('DG');
 7     objparent =obj.parentElement;
 8     img = obj.children[1];
 9    var strImgSrc = new String(img.src);
10    //var level = document.all(trPath).level;
11     var trpath = objparent.id;
12    var level = Number( objparent.level);
13    level +=1;
14
15    //若当前为加号,则展开下级:
16    
17      var allInput = document.getElementsByTagName("TR");
18        //alert(allInput.length);
19        var loopTime = allInput.length;
20      
21  if (strImgSrc.indexOf(imageEx) >= 0)
22    {
23        img.src= imageSh;
24        for(i = 0;i < loopTime;i++)
25        {
26           
27            if(allInput[i].id.indexOf(trpath) == 0 && allInput[i].level== level)
28            {
29               allInput[i].style.display = "";
30            }

31                    
32        }

33    }

34    else if (strImgSrc.indexOf(imageSh) >= 0)
35    {    
36        img.src=  imageEx;
37            for(i = 0;i < loopTime;i++)
38            {
39                //alert(allInput[i].type);
40               if(allInput[i].id.indexOf(trpath) == 0 && allInput[i].id!= trpath)
41                {
42                   allInput[i].style.display = "none";
43                }

44            }

45
46    }

47}

48 function  del()
49 {
50if(!confirm('您真的要删除本目录,及其下所有子目录吗?')) 
51return false;
52}

生成以后的html 代码如下

  1   < TABLE  class =ListGrid  id =DG 
  2        style ="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; WIDTH: 100%; BORDER-BOTTOM: 0px"  
  3       cellSpacing =1  rules =all  border =0 >
  4          < TBODY >
  5          < TR  class =ListGridHead >
  6            < TD > 系统功能模块 </ TD >
  7            < TD > 添加 </ TD >
  8            < TD > 编辑 </ TD >
  9            < TD > 删除 </ TD >
 10            < TD > 上移 </ TD >
 11            < TD > 下移 </ TD ></ TR >
 12          < TR  class =ListGridEvenLine  id =""  level ="0" >
 13            < TD  onclick ="TurnIt(this);return false;"  align =left >< SPAN 
 14              id =DG__ctl2_Spaces ></ SPAN >< IMG  style ="CURSOR: hand"  
 15             src ="系统功能树.files/add.gif" >   <
 16              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Category.aspx#" > Root </ A >  
 17            </ TD >
 18            < TD ><
 19              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Edit.aspx?parent=00000000-0002-0002-0002-000000000000" > 添加 </ A ></ TD >
 20            < TD ></ TD >
 21            < TD ></ TD >
 22            < TD ></ TD >
 23            < TD ></ TD ></ TR >
 24          < TR  class =ListGridOddLine  id =001  level ="1" >
 25            < TD  onclick ="TurnIt(this);return false;"  align =left >< SPAN 
 26              id =DG__ctl3_Spaces > &nbsp; </ SPAN >   < IMG  style ="CURSOR: hand"  
 27             src ="系统功能树.files/add.gif" >   <
 28              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Category.aspx#" > 我的桌面 </ A >  
 29            </ TD >
 30            < TD ><
 31              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Edit.aspx?parent=e12c62b1-085a-43e5-8126-b1bda6d7e5f9" > 添加 </ A ></ TD >
 32            < TD ><
 33              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Edit.aspx?me=e12c62b1-085a-43e5-8126-b1bda6d7e5f9" > 编辑 </ A ></ TD >
 34            < TD >< onclick =" return del();"  
 35             href ="javascript:__doPostBack('DG$_ctl3$_ctl2','')" > 删除 </ A ></ TD >
 36            < TD >< INPUT  type =submit  value =上移  name =DG:_ctl3:_ctl3 ></ TD >
 37            < TD >< INPUT  type =submit  value =下移  name =DG:_ctl3:_ctl4 ></ TD ></ TR >
 38          < TR  class =ListGridEvenLine  id =001|001  style ="DISPLAY: none"  level ="2" >
 39            < TD  onclick ="TurnIt(this);return false;"  align =left >< SPAN 
 40              id =DG__ctl4_Spaces > &nbsp;&nbsp; </ SPAN >   < IMG  style ="CURSOR: hand"  
 41             src ="系统功能树.files/add.gif" >   <
 42              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Category.aspx#" > 修改密码 </ A >  
 43            </ TD >
 44            < TD ><
 45              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Edit.aspx?parent=bd7b6948-e5f0-4fc0-beff-4a30e8ab6408" > 添加 </ A ></ TD >
 46            < TD ><
 47              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Edit.aspx?me=bd7b6948-e5f0-4fc0-beff-4a30e8ab6408" > 编辑 </ A ></ TD >
 48            < TD >< onclick =" return del();"  
 49             href ="javascript:__doPostBack('DG$_ctl4$_ctl2','')" > 删除 </ A ></ TD >
 50            < TD >< INPUT  type =submit  value =上移  name =DG:_ctl4:_ctl3 ></ TD >
 51            < TD >< INPUT  type =submit  value =下移  name =DG:_ctl4:_ctl4 ></ TD ></ TR >
 52          < TR  class =ListGridOddLine  id =001|001|001  style ="DISPLAY: none"  
 53 level ="3" >
 54            < TD  onclick ="TurnIt(this);return false;"  align =left >< SPAN 
 55              id =DG__ctl5_Spaces > &nbsp;&nbsp;&nbsp; </ SPAN >   < IMG 
 56              style ="CURSOR: hand"  src ="系统功能树.files/add.gif" >   <
 57              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Category.aspx#" > 修改密码 </ A >  
 58            </ TD >
 59            < TD ><
 60              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Edit.aspx?parent=0472cb72-3fe8-4ef0-81b1-cbaa24c2d0f4" > 添加 </ A ></ TD >
 61            < TD ><
 62              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Edit.aspx?me=0472cb72-3fe8-4ef0-81b1-cbaa24c2d0f4" > 编辑 </ A ></ TD >
 63            < TD >< onclick =" return del();"  
 64             href ="javascript:__doPostBack('DG$_ctl5$_ctl2','')" > 删除 </ A ></ TD >
 65            < TD >< INPUT  type =submit  value =上移  name =DG:_ctl5:_ctl3 ></ TD >
 66            < TD >< INPUT  type =submit  value =下移  name =DG:_ctl5:_ctl4 ></ TD ></ TR >
 67          < TR  class =ListGridEvenLine  id =001|002  style ="DISPLAY: none"  level ="2" >
 68            < TD  onclick ="TurnIt(this);return false;"  align =left >< SPAN 
 69              id =DG__ctl6_Spaces > &nbsp;&nbsp; </ SPAN >   < IMG  style ="CURSOR: hand"  
 70             src ="系统功能树.files/add.gif" >   <
 71              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Category.aspx#" > 注销退出 </ A >  
 72            </ TD >
 73            < TD ><
 74              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Edit.aspx?parent=e2bd9adc-a5b3-41c8-92db-1bb61abd3c75" > 添加 </ A ></ TD >
 75            < TD ><
 76              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Edit.aspx?me=e2bd9adc-a5b3-41c8-92db-1bb61abd3c75" > 编辑 </ A ></ TD >
 77            < TD >< onclick =" return del();"  
 78             href ="javascript:__doPostBack('DG$_ctl6$_ctl2','')" > 删除 </ A ></ TD >
 79            < TD >< INPUT  type =submit  value =上移  name =DG:_ctl6:_ctl3 ></ TD >
 80            < TD >< INPUT  type =submit  value =下移  name =DG:_ctl6:_ctl4 ></ TD ></ TR >
 81          < TR  class =ListGridOddLine  id =001|002|001  style ="DISPLAY: none"  
 82 level ="3" >
 83            < TD  onclick ="TurnIt(this);return false;"  align =left >< SPAN 
 84              id =DG__ctl7_Spaces > &nbsp;&nbsp;&nbsp; </ SPAN >   < IMG 
 85              style ="CURSOR: hand"  src ="系统功能树.files/add.gif" >   <
 86              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Category.aspx#" > 注销退出 </ A >  
 87            </ TD >
 88            < TD ><
 89              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Edit.aspx?parent=c2a77b51-b147-44eb-a52e-8c88f1b756b9" > 添加 </ A ></ TD >
 90            < TD ><
 91              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Edit.aspx?me=c2a77b51-b147-44eb-a52e-8c88f1b756b9" > 编辑 </ A ></ TD >
 92            < TD >< onclick =" return del();"  
 93             href ="javascript:__doPostBack('DG$_ctl7$_ctl2','')" > 删除 </ A ></ TD >
 94            < TD >< INPUT  type =submit  value =上移  name =DG:_ctl7:_ctl3 ></ TD >
 95            < TD >< INPUT  type =submit  value =下移  name =DG:_ctl7:_ctl4 ></ TD ></ TR >
 96          < TR  class =ListGridEvenLine  id =002  level ="1" >
 97            < TD  onclick ="TurnIt(this);return false;"  align =left >< SPAN 
 98              id =DG__ctl8_Spaces > &nbsp; </ SPAN >   < IMG  style ="CURSOR: hand"  
 99             src ="系统功能树.files/add.gif" >   <
100              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Category.aspx#" > 权限系统 </ A >  
101            </ TD >
102            < TD ><
103              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Edit.aspx?parent=53100679-7506-41d1-815c-fb7216fb2151" > 添加 </ A ></ TD >
104            < TD ><
105              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Edit.aspx?me=53100679-7506-41d1-815c-fb7216fb2151" > 编辑 </ A ></ TD >
106            < TD >< onclick =" return del();"  
107             href ="javascript:__doPostBack('DG$_ctl8$_ctl2','')" > 删除 </ A ></ TD >
108            < TD >< INPUT  type =submit  value =上移  name =DG:_ctl8:_ctl3 ></ TD >
109            < TD >< INPUT  type =submit  value =下移  name =DG:_ctl8:_ctl4 ></ TD ></ TR >
110          < TR  class =ListGridOddLine  id =002|001  style ="DISPLAY: none"  level ="2" >
111            < TD  onclick ="TurnIt(this);return false;"  align =left >< SPAN 
112              id =DG__ctl9_Spaces > &nbsp;&nbsp; </ SPAN >   < IMG  style ="CURSOR: hand"  
113             src ="系统功能树.files/add.gif" >   <
114              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Category.aspx#" > 系统功能树 </ A >  
115            </ TD >
116            < TD ><
117              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Edit.aspx?parent=80269335-766f-435c-9938-5b421e238f11" > 添加 </ A ></ TD >
118            < TD ><
119              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Edit.aspx?me=80269335-766f-435c-9938-5b421e238f11" > 编辑 </ A ></ TD >
120            < TD >< onclick =" return del();"  
121             href ="javascript:__doPostBack('DG$_ctl9$_ctl2','')" > 删除 </ A ></ TD >
122            < TD >< INPUT  type =submit  value =上移  name =DG:_ctl9:_ctl3 ></ TD >
123            < TD >< INPUT  type =submit  value =下移  name =DG:_ctl9:_ctl4 ></ TD ></ TR >
124          < TR  class =ListGridEvenLine  id =002|001|001  style ="DISPLAY: none"  
125         level ="3" >
126            < TD  onclick ="TurnIt(this);return false;"  align =left >< SPAN 
127              id =DG__ctl10_Spaces > &nbsp;&nbsp;&nbsp; </ SPAN >   < IMG 
128              style ="CURSOR: hand"  src ="系统功能树.files/add.gif" >   <
129              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Category.aspx#" > 系统功能树管理 </ A >  
130            </ TD >
131            < TD ><
132              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Edit.aspx?parent=75d6a625-7b81-4f1c-98c8-67bdcadba58a" > 添加 </ A ></ TD >
133            < TD ><
134              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Edit.aspx?me=75d6a625-7b81-4f1c-98c8-67bdcadba58a" > 编辑 </ A ></ TD >
135            < TD >< onclick =" return del();"  
136             href ="javascript:__doPostBack('DG$_ctl10$_ctl2','')" > 删除 </ A ></ TD >
137            < TD >< INPUT  type =submit  value =上移  name =DG:_ctl10:_ctl3 ></ TD >
138            < TD >< INPUT  type =submit  value =下移  name =DG:_ctl10:_ctl4 ></ TD ></ TR >
139          < TR  class =ListGridOddLine  id =002|001|002  style ="DISPLAY: none"  
140 level ="3" >
141            < TD  onclick ="TurnIt(this);return false;"  align =left >< SPAN 
142              id =DG__ctl11_Spaces > &nbsp;&nbsp;&nbsp; </ SPAN >   < IMG 
143              style ="CURSOR: hand"  src ="系统功能树.files/add.gif" >   <
144              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Category.aspx#" > 功能树编辑 </ A >  
145            </ TD >
146            < TD ><
147              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Edit.aspx?parent=62b89157-3ede-4966-ab68-fa9324b146d3" > 添加 </ A ></ TD >
148            < TD ><
149              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Edit.aspx?me=62b89157-3ede-4966-ab68-fa9324b146d3" > 编辑 </ A ></ TD >
150            < TD >< onclick =" return del();"  
151             href ="javascript:__doPostBack('DG$_ctl11$_ctl2','')" > 删除 </ A ></ TD >
152            < TD >< INPUT  type =submit  value =上移  name =DG:_ctl11:_ctl3 ></ TD >
153            < TD >< INPUT  type =submit  value =下移  name =DG:_ctl11:_ctl4 ></ TD ></ TR >
154          < TR  class =ListGridEvenLine  id =002|002  style ="DISPLAY: none"  level ="2" >
155            < TD  onclick ="TurnIt(this);return false;"  align =left >< SPAN 
156              id =DG__ctl12_Spaces > &nbsp;&nbsp; </ SPAN >   < IMG  style ="CURSOR: hand"  
157             src ="系统功能树.files/add.gif" >   <
158              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Category.aspx#" > 用户权限配置 </ A >  
159            </ TD >
160            < TD ><
161              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Edit.aspx?parent=8b564aa8-76dd-4006-aa4a-faefa5088e06" > 添加 </ A ></ TD >
162            < TD ><
163              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Edit.aspx?me=8b564aa8-76dd-4006-aa4a-faefa5088e06" > 编辑 </ A ></ TD >
164            < TD >< onclick =" return del();"  
165             href ="javascript:__doPostBack('DG$_ctl12$_ctl2','')" > 删除 </ A ></ TD >
166            < TD >< INPUT  type =submit  value =上移  name =DG:_ctl12:_ctl3 ></ TD >
167            < TD >< INPUT  type =submit  value =下移  name =DG:_ctl12:_ctl4 ></ TD ></ TR >
168          < TR  class =ListGridOddLine  id =002|002|001  style ="DISPLAY: none"  
169 level ="3" >
170            < TD  onclick ="TurnIt(this);return false;"  align =left >< SPAN 
171              id =DG__ctl13_Spaces > &nbsp;&nbsp;&nbsp; </ SPAN >   < IMG 
172              style ="CURSOR: hand"  src ="系统功能树.files/add.gif" >   <
173              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Category.aspx#" > 用户权限组配置 </ A >  
174            </ TD >
175            < TD ><
176              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Edit.aspx?parent=a3ff3aa5-2573-4487-b218-8c2f9b89d5df" > 添加 </ A ></ TD >
177            < TD ><
178              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Edit.aspx?me=a3ff3aa5-2573-4487-b218-8c2f9b89d5df" > 编辑 </ A ></ TD >
179            < TD >< onclick =" return del();"  
180             href ="javascript:__doPostBack('DG$_ctl13$_ctl2','')" > 删除 </ A ></ TD >
181            < TD >< INPUT  type =submit  value =上移  name =DG:_ctl13:_ctl3 ></ TD >
182            < TD >< INPUT  type =submit  value =下移  name =DG:_ctl13:_ctl4 ></ TD ></ TR >
183          < TR  class =ListGridEvenLine  id =002|002|002  style ="DISPLAY: none"  
184         level ="3" >
185            < TD  onclick ="TurnIt(this);return false;"  align =left >< SPAN 
186              id =DG__ctl14_Spaces > &nbsp;&nbsp;&nbsp; </ SPAN >   < IMG 
187              style ="CURSOR: hand"  src ="系统功能树.files/add.gif" >   <
188              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Category.aspx#" > 添加用户组 </ A >  
189            </ TD >
190            < TD ><
191              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Edit.aspx?parent=0c7b2fc0-d324-42cf-85f1-a7763291bcf3" > 添加 </ A ></ TD >
192            < TD ><
193              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Edit.aspx?me=0c7b2fc0-d324-42cf-85f1-a7763291bcf3" > 编辑 </ A ></ TD >
194            < TD >< onclick =" return del();"  
195             href ="javascript:__doPostBack('DG$_ctl14$_ctl2','')" > 删除 </ A ></ TD >
196            < TD >< INPUT  type =submit  value =上移  name =DG:_ctl14:_ctl3 ></ TD >
197            < TD >< INPUT  type =submit  value =下移  name =DG:_ctl14:_ctl4 ></ TD ></ TR >
198          < TR  class =ListGridOddLine  id =002|002|003  style ="DISPLAY: none"  
199 level ="3" >
200            < TD  onclick ="TurnIt(this);return false;"  align =left >< SPAN 
201              id =DG__ctl15_Spaces > &nbsp;&nbsp;&nbsp; </ SPAN >   < IMG 
202              style ="CURSOR: hand"  src ="系统功能树.files/add.gif" >   <
203              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Category.aspx#" > 将用户添加组 </ A >  
204            </ TD >
205            < TD ><
206              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Edit.aspx?parent=29254e9a-2dad-43d1-b149-c4c619fadc7e" > 添加 </ A ></ TD >
207            < TD ><
208              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Edit.aspx?me=29254e9a-2dad-43d1-b149-c4c619fadc7e" > 编辑 </ A ></ TD >
209            < TD >< onclick =" return del();"  
210             href ="javascript:__doPostBack('DG$_ctl15$_ctl2','')" > 删除 </ A ></ TD >
211            < TD >< INPUT  type =submit  value =上移  name =DG:_ctl15:_ctl3 ></ TD >
212            < TD >< INPUT  type =submit  value =下移  name =DG:_ctl15:_ctl4 ></ TD ></ TR >
213          < TR  class =ListGridEvenLine  id =002|002|004  style ="DISPLAY: none"  
214         level ="3" >
215            < TD  onclick ="TurnIt(this);return false;"  align =left >< SPAN 
216              id =DG__ctl16_Spaces > &nbsp;&nbsp;&nbsp; </ SPAN >   < IMG 
217              style ="CURSOR: hand"  src ="系统功能树.files/add.gif" >   <
218              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Category.aspx#" > 将组添加用户 </ A >  
219            </ TD >
220            < TD ><
221              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Edit.aspx?parent=36f48901-a931-47fd-b6dc-ecc954966982" > 添加 </ A ></ TD >
222            < TD ><
223              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Edit.aspx?me=36f48901-a931-47fd-b6dc-ecc954966982" > 编辑 </ A ></ TD >
224            < TD >< onclick =" return del();"  
225             href ="javascript:__doPostBack('DG$_ctl16$_ctl2','')" > 删除 </ A ></ TD >
226            < TD >< INPUT  type =submit  value =上移  name =DG:_ctl16:_ctl3 ></ TD >
227            < TD >< INPUT  type =submit  value =下移  name =DG:_ctl16:_ctl4 ></ TD ></ TR >
228          < TR  class =ListGridOddLine  id =002|002|005  style ="DISPLAY: none"  
229 level ="3" >
230            < TD  onclick ="TurnIt(this);return false;"  align =left >< SPAN 
231              id =DG__ctl17_Spaces > &nbsp;&nbsp;&nbsp; </ SPAN >   < IMG 
232              style ="CURSOR: hand"  src ="系统功能树.files/add.gif" >   <
233              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Category.aspx#" > 多部门权限组配置列表 </ A >  
234            </ TD >
235            < TD ><
236              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Edit.aspx?parent=745942e2-fb3e-449e-ba8a-a8324826fa58" > 添加 </ A ></ TD >
237            < TD ><
238              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Edit.aspx?me=745942e2-fb3e-449e-ba8a-a8324826fa58" > 编辑 </ A ></ TD >
239            < TD >< onclick =" return del();"  
240             href ="javascript:__doPostBack('DG$_ctl17$_ctl2','')" > 删除 </ A ></ TD >
241            < TD >< INPUT  type =submit  value =上移  name =DG:_ctl17:_ctl3 ></ TD >
242            < TD >< INPUT  type =submit  value =下移  name =DG:_ctl17:_ctl4 ></ TD ></ TR >
243          < TR  class =ListGridEvenLine  id =002|002|006  style ="DISPLAY: none"  
244         level ="3" >
245            < TD  onclick ="TurnIt(this);return false;"  align =left >< SPAN 
246              id =DG__ctl18_Spaces > &nbsp;&nbsp;&nbsp; </ SPAN >   < IMG 
247              style ="CURSOR: hand"  src ="系统功能树.files/add.gif" >   <
248              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Category.aspx#" > 多部门权限配置 </ A >  
249            </ TD >
250            < TD ><
251              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Edit.aspx?parent=0d8909a7-5989-4994-98d2-1cae200f2603" > 添加 </ A ></ TD >
252            < TD ><
253              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Edit.aspx?me=0d8909a7-5989-4994-98d2-1cae200f2603" > 编辑 </ A ></ TD >
254            < TD >< onclick =" return del();"  
255             href ="javascript:__doPostBack('DG$_ctl18$_ctl2','')" > 删除 </ A ></ TD >
256            < TD >< INPUT  type =submit  value =上移  name =DG:_ctl18:_ctl3 ></ TD >
257            < TD >< INPUT  type =submit  value =下移  name =DG:_ctl18:_ctl4 ></ TD ></ TR >
258          < TR  class =ListGridOddLine  id =002|003  style ="DISPLAY: none"  level ="2" >
259            < TD  onclick ="TurnIt(this);return false;"  align =left >< SPAN 
260              id =DG__ctl19_Spaces > &nbsp;&nbsp; </ SPAN >   < IMG  style ="CURSOR: hand"  
261             src ="系统功能树.files/add.gif" >   <
262              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Category.aspx#" > 权限组管理 </ A >  
263            </ TD >
264            < TD ><
265              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Edit.aspx?parent=6238c044-3e8d-4571-97fd-f8da897ce7d3" > 添加 </ A ></ TD >
266            < TD ><
267              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Edit.aspx?me=6238c044-3e8d-4571-97fd-f8da897ce7d3" > 编辑 </ A ></ TD >
268            < TD >< onclick =" return del();"  
269             href ="javascript:__doPostBack('DG$_ctl19$_ctl2','')" > 删除 </ A ></ TD >
270            < TD >< INPUT  type =submit  value =上移  name =DG:_ctl19:_ctl3 ></ TD >
271            < TD >< INPUT  type =submit  value =下移  name =DG:_ctl19:_ctl4 ></ TD ></ TR >
272          < TR  class =ListGridEvenLine  id =002|003|001  style ="DISPLAY: none"  
273         level ="3" >
274            < TD  onclick ="TurnIt(this);return false;"  align =left >< SPAN 
275              id =DG__ctl20_Spaces > &nbsp;&nbsp;&nbsp; </ SPAN >   < IMG 
276              style ="CURSOR: hand"  src ="系统功能树.files/add.gif" >   <
277              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Category.aspx#" > 权限组管理 </ A >  
278            </ TD >
279            < TD ><
280              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Edit.aspx?parent=b293c9c7-b2c6-4340-a7b0-7f5bf0d7fa7a" > 添加 </ A ></ TD >
281            < TD ><
282              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Edit.aspx?me=b293c9c7-b2c6-4340-a7b0-7f5bf0d7fa7a" > 编辑 </ A ></ TD >
283            < TD >< onclick =" return del();"  
284             href ="javascript:__doPostBack('DG$_ctl20$_ctl2','')" > 删除 </ A ></ TD >
285            < TD >< INPUT  type =submit  value =上移  name =DG:_ctl20:_ctl3 ></ TD >
286            < TD >< INPUT  type =submit  value =下移  name =DG:_ctl20:_ctl4 ></ TD ></ TR >
287          < TR  class =ListGridOddLine  id =002|003|002  style ="DISPLAY: none"  
288 level ="3" >
289            < TD  onclick ="TurnIt(this);return false;"  align =left >< SPAN 
290              id =DG__ctl21_Spaces > &nbsp;&nbsp;&nbsp; </ SPAN >   < IMG 
291              style ="CURSOR: hand"  src ="系统功能树.files/add.gif" >   <
292              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Category.aspx#" > 权限组配置功能权限 </ A >  
293            </ TD >
294            < TD ><
295              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Edit.aspx?parent=eeed8100-2bc5-4a78-867b-02610a8bb5ec" > 添加 </ A ></ TD >
296            < TD ><
297              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Edit.aspx?me=eeed8100-2bc5-4a78-867b-02610a8bb5ec" > 编辑 </ A ></ TD >
298            < TD >< onclick =" return del();"  
299             href ="javascript:__doPostBack('DG$_ctl21$_ctl2','')" > 删除 </ A ></ TD >
300            < TD >< INPUT  type =submit  value =上移  name =DG:_ctl21:_ctl3 ></ TD >
301            < TD >< INPUT  type =submit  value =下移  name =DG:_ctl21:_ctl4 ></ TD ></ TR >
302          < TR  class =ListGridEvenLine  id =002|004  style ="DISPLAY: none"  level ="2" >
303            < TD  onclick ="TurnIt(this);return false;"  align =left >< SPAN 
304              id =DG__ctl22_Spaces > &nbsp;&nbsp; </ SPAN >   < IMG  style ="CURSOR: hand"  
305             src ="系统功能树.files/add.gif" >   <
306              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Category.aspx#" > 页面功能管理 </ A >  
307            </ TD >
308            < TD ><
309              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Edit.aspx?parent=5256ea38-22b4-4002-87c6-1554521b0b8f" > 添加 </ A ></ TD >
310            < TD ><
311              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Edit.aspx?me=5256ea38-22b4-4002-87c6-1554521b0b8f" > 编辑 </ A ></ TD >
312            < TD >< onclick =" return del();"  
313             href ="javascript:__doPostBack('DG$_ctl22$_ctl2','')" > 删除 </ A ></ TD >
314            < TD >< INPUT  type =submit  value =上移  name =DG:_ctl22:_ctl3 ></ TD >
315            < TD >< INPUT  type =submit  value =下移  name =DG:_ctl22:_ctl4 ></ TD ></ TR >
316          < TR  class =ListGridOddLine  id =002|004|001  style ="DISPLAY: none"  
317 level ="3" >
318            < TD  onclick ="TurnIt(this);return false;"  align =left >< SPAN 
319              id =DG__ctl23_Spaces > &nbsp;&nbsp;&nbsp; </ SPAN >   < IMG 
320              style ="CURSOR: hand"  src ="系统功能树.files/add.gif" >   <
321              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Category.aspx#" > 页面功能管理 </ A >  
322            </ TD >
323            < TD ><
324              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Edit.aspx?parent=8a1ba7bb-89af-42b1-b6ae-999b1dc0af76" > 添加 </ A ></ TD >
325            < TD ><
326              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Edit.aspx?me=8a1ba7bb-89af-42b1-b6ae-999b1dc0af76" > 编辑 </ A ></ TD >
327            < TD >< onclick =" return del();"  
328             href ="javascript:__doPostBack('DG$_ctl23$_ctl2','')" > 删除 </ A ></ TD >
329            < TD >< INPUT  type =submit  value =上移  name =DG:_ctl23:_ctl3 ></ TD >
330            < TD >< INPUT  type =submit  value =下移  name =DG:_ctl23:_ctl4 ></ TD ></ TR >
331          < TR  class =ListGridEvenLine  id =002|004|002  style ="DISPLAY: none"  
332         level ="3" >
333            < TD  onclick ="TurnIt(this);return false;"  align =left >< SPAN 
334              id =DG__ctl24_Spaces > &nbsp;&nbsp;&nbsp; </ SPAN >   < IMG 
335              style ="CURSOR: hand"  src ="系统功能树.files/add.gif" >   <
336              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Category.aspx#" > 页面功能编辑 </ A >  
337            </ TD >
338            < TD ><
339              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Edit.aspx?parent=176a03ac-e550-4def-a952-aa40d9b2aff1" > 添加 </ A ></ TD >
340            < TD ><
341              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Edit.aspx?me=176a03ac-e550-4def-a952-aa40d9b2aff1" > 编辑 </ A ></ TD >
342            < TD >< onclick =" return del();"  
343             href ="javascript:__doPostBack('DG$_ctl24$_ctl2','')" > 删除 </ A ></ TD >
344            < TD >< INPUT  type =submit  value =上移  name =DG:_ctl24:_ctl3 ></ TD >
345            < TD >< INPUT  type =submit  value =下移  name =DG:_ctl24:_ctl4 ></ TD ></ TR >
346          < TR  class =ListGridOddLine  id =002|005  style ="DISPLAY: none"  level ="2" >
347            < TD  onclick ="TurnIt(this);return false;"  align =left >< SPAN 
348              id =DG__ctl25_Spaces > &nbsp;&nbsp; </ SPAN >   < IMG  style ="CURSOR: hand"  
349             src ="系统功能树.files/add.gif" >   <
350              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Category.aspx#" > 公司部门结构管理 </ A >  
351            </ TD >
352            < TD ><
353              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Edit.aspx?parent=cfb2ef66-2735-403c-9d6e-a27d24ce550f" > 添加 </ A ></ TD >
354            < TD ><
355              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Edit.aspx?me=cfb2ef66-2735-403c-9d6e-a27d24ce550f" > 编辑 </ A ></ TD >
356            < TD >< onclick =" return del();"  
357             href ="javascript:__doPostBack('DG$_ctl25$_ctl2','')" > 删除 </ A ></ TD >
358            < TD >< INPUT  type =submit  value =上移  name =DG:_ctl25:_ctl3 ></ TD >
359            < TD >< INPUT  type =submit  value =下移  name =DG:_ctl25:_ctl4 ></ TD ></ TR >
360          < TR  class =ListGridEvenLine  id =002|005|001  style ="DISPLAY: none"  
361         level ="3" >
362            < TD  onclick ="TurnIt(this);return false;"  align =left >< SPAN 
363              id =DG__ctl26_Spaces > &nbsp;&nbsp;&nbsp; </ SPAN >   < IMG 
364              style ="CURSOR: hand"  src ="系统功能树.files/add.gif" >   <
365              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Category.aspx#" > 部门结构管理 </ A >  
366            </ TD >
367            < TD ><
368              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Edit.aspx?parent=c21da6aa-ca57-4aef-bc54-26509bb85a48" > 添加 </ A ></ TD >
369            < TD ><
370              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Edit.aspx?me=c21da6aa-ca57-4aef-bc54-26509bb85a48" > 编辑 </ A ></ TD >
371            < TD >< onclick =" return del();"  
372             href ="javascript:__doPostBack('DG$_ctl26$_ctl2','')" > 删除 </ A ></ TD >
373            < TD >< INPUT  type =submit  value =上移  name =DG:_ctl26:_ctl3 ></ TD >
374            < TD >< INPUT  type =submit  value =下移  name =DG:_ctl26:_ctl4 ></ TD ></ TR >
375          < TR  class =ListGridOddLine  id =002|005|002  style ="DISPLAY: none"  
376 level ="3" >
377            < TD  onclick ="TurnIt(this);return false;"  align =left >< SPAN 
378              id =DG__ctl27_Spaces > &nbsp;&nbsp;&nbsp; </ SPAN >   < IMG 
379              style ="CURSOR: hand"  src ="系统功能树.files/add.gif" >   <
380              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Category.aspx#" > 部门结构编辑 </ A >  
381            </ TD >
382            < TD ><
383              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Edit.aspx?parent=3a94cbf7-676b-4411-8453-be24ebc8a1b9" > 添加 </ A ></ TD >
384            < TD ><
385              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Edit.aspx?me=3a94cbf7-676b-4411-8453-be24ebc8a1b9" > 编辑 </ A ></ TD >
386            < TD >< onclick =" return del();"  
387             href ="javascript:__doPostBack('DG$_ctl27$_ctl2','')" > 删除 </ A ></ TD >
388            < TD >< INPUT  type =submit  value =上移  name =DG:_ctl27:_ctl3 ></ TD >
389            < TD >< INPUT  type =submit  value =下移  name =DG:_ctl27:_ctl4 ></ TD ></ TR >
390          < TR  class =ListGridEvenLine  id =002|006  style ="DISPLAY: none"  level ="2" >
391            < TD  onclick ="TurnIt(this);return false;"  align =left >< SPAN 
392              id =DG__ctl28_Spaces > &nbsp;&nbsp; </ SPAN >   < IMG  style ="CURSOR: hand"  
393             src ="系统功能树.files/add.gif" >   <
394              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Category.aspx#" > 权限组克隆 </ A >  
395            </ TD >
396            < TD ><
397              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Edit.aspx?parent=bd75631d-bb2c-4c03-867d-5e08fc91d9dd" > 添加 </ A ></ TD >
398            < TD ><
399              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Edit.aspx?me=bd75631d-bb2c-4c03-867d-5e08fc91d9dd" > 编辑 </ A ></ TD >
400            < TD >< onclick =" return del();"  
401             href ="javascript:__doPostBack('DG$_ctl28$_ctl2','')" > 删除 </ A ></ TD >
402            < TD >< INPUT  type =submit  value =上移  name =DG:_ctl28:_ctl3 ></ TD >
403            < TD >< INPUT  type =submit  value =下移  name =DG:_ctl28:_ctl4 ></ TD ></ TR >
404          < TR  class =ListGridOddLine  id =002|006|001  style ="DISPLAY: none"  
405 level ="3" >
406            < TD  onclick ="TurnIt(this);return false;"  align =left >< SPAN 
407              id =DG__ctl29_Spaces > &nbsp;&nbsp;&nbsp; </ SPAN >   < IMG 
408              style ="CURSOR: hand"  src ="系统功能树.files/add.gif" >   <
409              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Category.aspx#" > 克隆权限组 </ A >  
410            </ TD >
411            < TD ><
412              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Edit.aspx?parent=d947c214-3778-4843-9b6f-0e3dc9b86890" > 添加 </ A ></ TD >
413            < TD ><
414              href ="http://localhost:1561/ZTOA/Admin/ModuleTree_Edit.aspx?me=d947c214-3778-4843-9b6f-0e3dc9b86890" > 编辑 </ A ></ TD >
415            < TD >< onclick =" return del();"  
416             href ="javascript:__doPostBack('DG$_ctl29$_ctl2','')" > 删除 </ A ></ TD >
417            < TD >< INPUT  type =submit  value =上移  name =DG:_ctl29:_ctl3 ></ TD >
418            < TD >< INPUT  type =submit  value =下移  name =DG:_ctl29:_ctl4 ></ TD ></ TR >
419 </ table >
420


 

你可能感兴趣的:(datagrid)