<%@ page language="C#" autoeventwireup="true" inherits="bigclass, putonggan_deploy" %>

<!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>
<style type="text/css">
.STYLE1 {font-size: 12px}
.STYLE3 {font-size: 12px; font-weight: bold; }
.STYLE4 {
	color: #03515d;
	font-size: 12px;
}
    </style>
    <link href="../css/common.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="30" 
          background="../images/tab_05.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="12" height="30">
            <img src="../images/tab_03.gif" 
                width="12" height="30" /></td>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="46%" valign="middle"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="5%"><div align="center">
                    <img src="../images/tb.gif" width="16" 
                        height="16" /></div></td>
                <td width="95%" class="STYLE1"><span class="STYLE3">你当前的位置</span>：<asp:SiteMapPath 
                        ID="SiteMapPath1" runat="server">
                    </asp:SiteMapPath>
                  </td>
              </tr>
            </table></td>
            <td width="54%"><table border="0" align="right" cellpadding="0" cellspacing="0">
              <tr>
                <td width="120"><table width="90%" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td class="STYLE1"><div align="center">
                        <img src="../images/22.gif" width="14" 
                            height="14" /></div></td>
                    <td class="STYLE1"><div align="center">
                        <asp:HyperLink ID="HyperLink1" runat="server"  NavigateUrl="bigclassadd.aspx">新增一级指标</asp:HyperLink>
                        </div></td>
                  </tr>
                </table></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
        <td width="16">
            <img src="../images/tab_07.gif" 
                width="16" height="30" /></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="8" background="../images/tab_12.gif">&nbsp;</td>
        <td>
        <asp:GridView ID="ParentGridView" 
                    OnRowDataBound="ParentGridView_RowDataBound"   runat="server" OnRowDeleting="ParentGridView_RowDeleting"
                    AutoGenerateColumns="False"  Font-Size="12px" Width="100%" AllowSorting="True" 
                    OnRowEditing="ParentGridView_RowEditing" 
                    OnRowCancelingEdit="ParentGridView_RowCancelingEdit" 
                CssClass="GridViewStyle">
          <Columns>
              <asp:BoundField DataField="bianhao" HeaderText="编号"  ReadOnly="True"/>
              <asp:BoundField DataField="classname" HeaderText="指标名称" ReadOnly="True"/>
              <asp:BoundField DataField="fenzhi" HeaderText="分值"  ReadOnly="True"/>
              <asp:TemplateField HeaderText="所属二级指标">
                <ItemTemplate>
                    <asp:Button ID="ViewChild_Button" runat="server" Text="展开二级指标" CommandName="Edit"  />
                </ItemTemplate>
                <EditItemTemplate>
                    <asp:Button ID="CancelChild_Button" runat="server" Text="关闭二级指标" CommandName="Cancel" />
                    <asp:GridView ID="ChildGridView" runat="server"   AllowPaging="False" AllowSorting="True"  AutoGenerateColumns="False" OnRowEditing= "ChildGridView_RowEditing" OnRowDataBound="ChildGridView_RowDataBound" DataKeyNames="id" Width="100%" OnRowCancelingEdit="ChildGridView_RowCancelingEdit"   OnRowDeleting="ChildGridView_RowDeleting" CssClass="GridViewStyle">
                        <Columns>
                            <asp:BoundField DataField="bianhao" HeaderText="编号" ReadOnly="True" SortExpression="ProductName" />
                            <asp:BoundField DataField="smallclassname" HeaderText="指标名称" ReadOnly="True" SortExpression="ProductName" />
                            <asp:BoundField DataField="fenzhi" HeaderText="指标分值" ReadOnly="True" SortExpression="ProductName" />
                            <asp:TemplateField HeaderText="查看三级指标">
                                <ItemTemplate>
                                    <asp:Button ID="ViewGrantChild_Button" runat="server" Text="展开三级指标" CommandName="Edit"  />
                                </ItemTemplate>
                                <EditItemTemplate>
                                    <asp:Button ID="CancelGrantChild_Button" runat="server" Text="关闭三级指标" CommandName="Cancel" />
                                    <asp:GridView ID="GrantGridView" runat="server"  AllowPaging="false"  AutoGenerateColumns="False"  OnRowDataBound="GrantChildGridView_RowDataBound" DataKeyNames="ID" Width="100%"  OnRowDeleting="GrantChildGridView_RowDeleting" CssClass="GridViewStyle">
                                        <Columns>
                                            <asp:BoundField DataField="bianhao" HeaderText="编号" ReadOnly="true" SortExpression="OrderID" ItemStyle-Width="20px" />
                                            <asp:BoundField DataField="xxname" HeaderText="指标名称" ReadOnly="true" SortExpression="OrderMoney" ItemStyle-Width="80px"/>
                                            <asp:BoundField DataField="fenzhi" HeaderText="指标分值" ReadOnly="true" SortExpression="OrderMoney" ItemStyle-Width="80px"/>
                                            <asp:TemplateField HeaderText="编辑" ShowHeader="False">
                                            <ItemTemplate> 
                                            <a href="xiaoxiangedit.aspx?id=<%# Eval("id") %>">编辑</a>
                                            </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:CommandField HeaderText="删除" ShowDeleteButton="True" DeleteText="&lt;div id=&quot;dex&quot; onclick=&quot;JavaScript:return confirm('确定删除三级指标吗？无法恢复')&quot;&gt;删除&lt;/div&gt; "/>
                                        </Columns>  
                                        <HeaderStyle BackColor="Azure" Font-Size="12px" HorizontalAlign="Center" />
                                        <RowStyle HorizontalAlign="Center" />
                                        <PagerStyle HorizontalAlign="Center" />
                          <HeaderStyle CssClass="HeaderStyle" />
                       <PagerStyle CssClass="PagerStyle" />
                       <RowStyle CssClass="RowStyle" />
                       <PagerSettings Visible="false" />
                                    </asp:GridView>
                                </EditItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="编辑" ShowHeader="False">
                                            <ItemTemplate> 
                                            <a href='smallclassedit.aspx?id=<%# Eval("id") %>'>编辑</a>
                                            </ItemTemplate>
                                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="添加" ShowHeader="False">                
                                             <ItemTemplate> 
                                            <a href='xiaoxiangadd.aspx?id=<%# Eval("id") %>&bigclassid=<%# Eval("bigclassid") %>'>添加三级指标</a>
                                            </ItemTemplate>     
                                            </asp:TemplateField>
                            <asp:CommandField HeaderText="删除" ShowDeleteButton="True" DeleteText="&lt;div id=&quot;des&quot; onclick=&quot;JavaScript:return confirm('确定删除该二级指标吗？无法恢复！')&quot;&gt;删除&lt;/div&gt; "/>
                        </Columns>  
                       <HeaderStyle CssClass="HeaderStyle" />
                       <PagerStyle CssClass="PagerStyle" />
                       <RowStyle CssClass="RowStyle" />
                       <PagerSettings Visible="false" />
                    </asp:GridView>
                </EditItemTemplate>
            </asp:TemplateField>
              <asp:TemplateField HeaderText="编辑" ShowHeader="False">
              <ItemTemplate> 
              <a href='bigclassedit.aspx?id=<%# Eval("id") %>'>编辑</a>
               </ItemTemplate>
             </asp:TemplateField>  
             <asp:TemplateField HeaderText="操作" ShowHeader="False">  
              <ItemTemplate> 
              <a href='smallclassadd.aspx?id=<%# Eval("id") %>'>添加二级指标</a>
               </ItemTemplate>               
              </asp:TemplateField>
              <asp:CommandField HeaderText="删除" ShowDeleteButton="True" 
                  DeleteText="&lt;div id=&quot;de&quot; onclick=&quot;JavaScript:return confirm('确定删除一级指标吗？无法恢复！')&quot;&gt;删除&lt;/div&gt; "/>
          </Columns>
          <HeaderStyle CssClass="HeaderStyle" />
          <PagerStyle CssClass="PagerStyle" />
          <RowStyle CssClass="RowStyle" />
          <PagerSettings Visible="false" />
        </asp:GridView>
        
          </td>
        <td width="8" background="../images/tab_15.gif">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="35" background="../images/tab_19.gif">&nbsp;</td>
  </tr>
</table>
    </form>
</body>
</html>
