<%@ Page Language="c#" Inherits="WebApp.AuditList" CodeBehind="AuditList.aspx.cs" %>
<!DOCTYPE html>
<!--[if lt IE 9]><html class="lte-ie8"><![endif]-->
<!--[if gt IE 8]><!-->
<html>
<!--<![endif]-->
<head>
    <title>子站开通审核列表</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!--#include file = "../Css/adminCssEdit.htm" -->

    <script language="javascript" type="text/javascript">
			function Auditing(pkID,pageIndex)
			{	
				var arr = showModalDialog("Auditing.aspx?applyID="+pkID, window, "dialogWidth:760px;dialogHeight:460px;help:no;scroll:yes;status:no");
				//var arr = window.open("Auditing.aspx?applyID="+pkID, "","width=760,height=420,scroll=no");
		   		if(arr!=null)
		   		  location.href="AuditList.aspx?currentPageIndex="+pageIndex;
			}
    </script>
</head>
<body>
    <div class="list-func-box func-box">
        <div class="hd">
            子站开通审核列表
        </div>
        <form id="frmAuditing" method="post" runat="server">
        <div class="bd">
            <%--<div class="function-hd">
                <div class="search-box fr">
                </div>
                <!--/search-box-->
                <div class="action-field">
                </div>
                <!--/action-field-->
            </div>--%>
            <div class="function-bd">
                <asp:DataGrid ID="schoolList" CssClass="list-table" DataKeyField="pkID"  AutoGenerateColumns="False"
                     runat="server" OnItemCommand="schoolList_ItemCommand" OnItemDataBound="schoolList_ItemDataBound">
                    <Columns>
                        <asp:BoundColumn DataField="pkID" HeaderText="ID" HeaderStyle-CssClass="title"></asp:BoundColumn>
                        <asp:BoundColumn DataField="SchoolName" HeaderText="子站名称" HeaderStyle-CssClass="title">
                        </asp:BoundColumn>
                        <asp:BoundColumn DataField="serialNO" HeaderText="序列号" HeaderStyle-CssClass="title">
                        </asp:BoundColumn>
                        <asp:BoundColumn DataField="domainName" HeaderText="域名" HeaderStyle-CssClass="title">
                        </asp:BoundColumn>
                        <asp:TemplateColumn HeaderText="审核状态" HeaderStyle-CssClass="title">
                            <ItemTemplate>
                                <asp:Label ID="lblState" runat="server" Text='<%# GetApplyState(DataBinder.Eval(Container, "DataItem.applyState").ToString()) %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateColumn>
                        <asp:BoundColumn DataField="applyTime" HeaderText="申请时间" DataFormatString="{0:yyyy-MM-dd}"
                            HeaderStyle-CssClass="title"></asp:BoundColumn>
                        <asp:TemplateColumn HeaderText="执    行" HeaderStyle-CssClass="title">
                            <ItemTemplate>
                                <asp:LinkButton ID="btnAuditing" runat="server" CommandName="Auditing">审核</asp:LinkButton>
                                <asp:LinkButton ID="btnView" runat="server" CommandName="View">查看信息</asp:LinkButton>
                                <asp:LinkButton ID="btnDelete" runat="server" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.schoolName") %>'
                                    CausesValidation="False" CommandName="Delete">删 除</asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateColumn>
                    </Columns>
                </asp:DataGrid>
            </div>
        </div>
        <div class="ft">
          <div class="pagination">
            <asp:Label ID="lblPage" runat="server"></asp:Label>
            </div>
        </div>
        </form>
    </div>
</body>
</html>
