<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="InfoAj.aspx.cs" EnableViewState="true" EnableEventValidation="false" Inherits="InfoPath.Include.InfoAj" %>
<%@ Register src="Css.ascx" tagname="Css" tagprefix="uc1" %>
<%@ Register src="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>
    <script language="javascript" src="../js/JScript.js"></script>
	<script src="../js/jscalendar.js" type="text/javascript"></script>

</head>
<body>
    <form id="form1" runat="server">
    <div>
        <uc1:Css ID="Css1" runat="server" />
    <TABLE width="100%">
  <TR class="WsdnOrgInfo">
	<TD width="50%"><asp:Label ID="lbSearch" runat="server" Visible=false Text=""></asp:Label>
	<asp:TextBox ID="tbxSearch" runat="server"></asp:TextBox>
	<asp:dropdownlist id="Dsrh" runat="server" Width="80px" Visible="False" ></asp:dropdownlist>
	<asp:Button class="buttons" ID="btnSearch" runat="server" Text="" onclick="btnSearch_Click" />
	<asp:button class="buttons"  id="Bttime" 
            runat="server" Width="65px" Text="时段搜索↓" onclick="Bttime_Click"></asp:button>
						</TD>	
	<TD>		
	
	<asp:Button class="buttons" ID="btnaddContent" runat="server" Text="" 
            onclick="btnaddContent_Click" />
    <asp:Button class="buttons" ID="btnDelete" runat="server" Text="删除"  OnClick="btnDelete_Click"
                        OnClientClick="javascript:return ( checkSelect() && confirm('警告：删除将无法恢复！\n确认删除吗？') );" />
	<asp:Button class="buttons" ID="btPrint" runat="server" onclick="btnPrint_Click" 
                            Text="打印" />
							<asp:Button class="buttons" ID="btnExport" runat="server" 
                            Text="输出" onclick="btnExport_Click" Enabled="False" 
            Visible="False" />
							<asp:Button class="buttons" ID="btnImport" runat="server" 
                            Text="输入" onclick="btnImport_Click" />
							<asp:Button class="buttons" ID="btnRefresh" runat="server" 
                            Text="刷新" onclick="btnRefresh_Click" />
                            <asp:DropDownList ID="ddlReport" runat="server" AutoPostBack="True" 
            onselectedindexchanged="ddlReport_SelectedIndexChanged" >
            <asp:ListItem>生成文件</asp:ListItem>
            <asp:ListItem>Excel</asp:ListItem>
            <asp:ListItem>Word</asp:ListItem>
            <asp:ListItem>Html</asp:ListItem>
            <asp:ListItem>PDF</asp:ListItem>
        </asp:DropDownList> 
                            </TD>
  </TR>

  <TR>
	<TD><asp:label id="Lfrom" runat="server" Visible="False">从</asp:label><asp:textbox id="Tfrom" runat="server"   onclick="new Calendar().show(this);" Width="80px" Visible="False"></asp:textbox><asp:label id="Lto" runat="server" Visible="False">到</asp:label><asp:textbox id="Tto" ReadOnly=true onclick="new Calendar().show(this);" runat="server" Width="80px" Visible="False"></asp:textbox><asp:dropdownlist id="Ddtime" runat="server" Width="80px" Visible="False"></asp:dropdownlist>
			</TD>
	<TD></TD>
  </TR>
  <tr>
  	<TD colSpan="2">
	    
        <asp:Panel ID="Panel1" Visible=false 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 colspan="2"><b>
        <asp:Label ID="titContent" runat="server" Text=""></asp:Label></b><br>
        
    </TD>
  </TR>
    <TR class="WsdnOrgInfo1">
	<TD colspan="2">
        <asp:Label ID="dscContent" runat="server" Text=""></asp:Label>
    </TD>
  </TR>
  <TR>
	<TD colspan="2"><asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            CellPadding="4" ForeColor="#333333" GridLines="None" Width="100%" DataKeyNames="InstanceID" 
            onpageindexchanging="GridView1_PageIndexChanging" 
            ondatabound="GridView1_DataBound" onrowdatabound="GridView1_RowDataBound">
        <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" />
        <Columns>
                   <asp:BoundField DataField="Title" />
                   <asp:BoundField DataField="UserID" />
                   <asp:BoundField DataField="CreateDate" />
                <asp:HyperLinkField DataNavigateUrlFields="FormID,InstanceID" 
                DataNavigateUrlFormatString="../VisualJS/editForm.aspx?editType=edit&formInstance={1}&formID={0}" 
                Text="Edit" />
       <asp:TemplateField ShowHeader="False">
                                    <ItemTemplate>
                                        <asp:CheckBox ID="CKB" runat="server" />
                                    </ItemTemplate>
                                    <ItemStyle Width="30px" HorizontalAlign="Center" />
            </asp:TemplateField> 
            </Columns>

       </asp:GridView></TD>
  </TR>

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