<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="User.aspx.cs" Inherits="InfoPath.Admin.User" %>
<%@ 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="btnaddUser" runat="server" Text="" 
            onclick="btnaddUser_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:DropDownList ID="ddlReport" runat="server" AutoPostBack="True"  Visible=false
            onselectedindexchanged="ddlReport_SelectedIndexChanged">
            <asp:ListItem>生成文件</asp:ListItem>
            <asp:ListItem>Excel</asp:ListItem>
            <asp:ListItem>Word</asp:ListItem>
            <asp:ListItem>Html</asp:ListItem>
        </asp:DropDownList> 

        <asp:Button class="buttons" ID="btnBackAdmin" runat="server" onclick="btnBackAdmin_Click" 
                            Text="返回管理中心" />
         &nbsp; &nbsp; &nbsp;<asp:Button class="buttons" ID="btnAll" runat="server" Text="全选" onclick="btnAll_Click" 
              />
            &nbsp;<asp:Button class="buttons" ID="btnDelAll" runat="server" Text="删除" 
            onclick="btnDelAll_Click"  />       

	</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="titUser" runat="server" Text=""></asp:Label>
    </TD>
  </TR>
  <TR class="WsdnOrgInfo1">
	<TD>
        <asp:Label ID="dscUser" 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="UserName"
            >
        <Columns>
            <asp:BoundField DataField="UserCode" HeaderText="UserCode" />
            <asp:BoundField DataField="UserName" />
            <asp:BoundField DataField="DeptID1" />
            <asp:BoundField DataField="Manager" />
            <asp:BoundField DataField="Mobile" />
            <asp:BoundField DataField="Email" />
            <asp:HyperLinkField DataNavigateUrlFields="UserName" 
                DataNavigateUrlFormatString="UserAdd.aspx?mode=edit&name={0}" 
                Text="修改" />

           <asp:TemplateField ShowHeader="False">
                                    <ItemTemplate>
                                        <asp:CheckBox ID="CKB" runat="server" />
                                    </ItemTemplate>
                                    <ItemStyle Width="30px" HorizontalAlign="Center" />
            </asp:TemplateField> 

        </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>
