<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Application.aspx.cs" Inherits="InfoPath.Admin.Application" %>

<%@ Register src="../Include/Css.ascx" tagname="Css" tagprefix="uc1" %>

<%@ Register src="../Include/ExcelImport.ascx" tagname="ExcelImport" tagprefix="uc2" %>

<!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>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <uc1:Css ID="Css1" runat="server" />
    <TABLE width="100%">
  <TR class="WsdnOrgInfo">
	<TD><asp:Label ID="lbSearch" runat="server" Text=""></asp:Label>
	<asp:TextBox ID="tbxSearch" runat="server"></asp:TextBox>
	<asp:Button class="buttons" ID="btnSearch" runat="server" Text="" />
	<asp:Button class="buttons" ID="btnaddApplication" runat="server" Text="" 
            onclick="btnaddApplication_Click" />
	    <asp:Button class="buttons" ID="btnExcelExp" runat="server" onclick="btnExcelExp_Click" 
            Text="输出Excel" />
	    <asp:Button class="buttons" ID="btnExcelImp" runat="server" onclick="btnExcelImp_Click" 
            Text="导入Excel" />
        <asp:Button class="buttons" ID="btnBackAdmin" runat="server" onclick="btnBackAdmin_Click" 
                            Text="返回管理中心" />
	</TD>
  </TR>    
  <TR class="WsdnOrgInfo1">
	<TD>
	    
        <asp:Panel ID="Panel1" runat="server"><uc2:ExcelImport ID="ExcelImport1" runat="server" />
        <br>
        <asp:Button class="buttons" ID="FinishImport" runat="server" onclick="FinishImport_Click" 
            Text="导入Excel文件" /></asp:Panel>
        
	</TD>
  </TR>
  <TR class="WsdnOrgTitle1">
	<TD>
        <asp:Label ID="titApplication" runat="server" Text=""></asp:Label>
    </TD>
  </TR>
  <TR class="WsdnOrgInfo1">
	<TD>
        <asp:Label ID="dscApplication" runat="server" Text=""></asp:Label>
    </TD>
  </TR>

  <TR class="WsdnOrgInfo">
	<TD><asp:GridView ID="GridView1" Width=100%  runat="server" CellPadding="4" GridLines="None" 
            ForeColor="#333333"  onpageindexchanging="GridView1_PageIndexChanging" 
            AllowPaging="True" PageSize="2" AutoGenerateColumns="False" DataKeyNames="ApplicationID"
            onrowdeleting="GridView1_RowDeleting">
        <Columns>
            <asp:BoundField DataField="ApplicationID" HeaderText="ApplicationID" />
            <asp:BoundField DataField="ApplicationName" />
            <asp:BoundField DataField="Description" />
            <asp:BoundField DataField="CreateDate" />
            <asp:HyperLinkField DataNavigateUrlFields="ApplicationID" 
                DataNavigateUrlFormatString="ApplicationAdd.aspx?mode=edit&amp;id={0}" 
                Text="修改" />
            <asp:CommandField ShowDeleteButton="True" DeleteText="删除" />

        </Columns>
        <RowStyle CssClass="WsdnOrgInfo" ForeColor="#000000" />
        <FooterStyle CssClass="WsdnOrgInfo1" ForeColor="White" Font-Bold="True" />
        <PagerStyle CssClass="WsdnOrgInfo1" ForeColor="#333333" HorizontalAlign="Center" />
        <SelectedRowStyle CssClass="WsdnOrgInfo1" Font-Bold="True" ForeColor="Navy" />
        <HeaderStyle CssClass="WsdnOrgTitle" Font-Bold="True" HorizontalAlign="Left" />
        <AlternatingRowStyle BackColor="White" />
        </asp:GridView><hr>
        <asp:dropdownlist id="Tbpage" runat="server" AutoPostBack="True" 
            onselectedindexchanged="Tbpage_SelectedIndexChanged"></asp:dropdownlist>
        <asp:label id="Lgrid" runat="server">共 条数据，每页 条</asp:label>
        </TD>
</TD>
  </TR>

  </TABLE>
    </div>
    </form>
</body>
</html>
