<%@ page language="C#" autoeventwireup="true" inherits="docList, App_Web_rddppaaw" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<!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 >
    <title>DocList</title>  
   <link href="../CssHtml.css" rel="stylesheet" type="text/css" />
</head>

 <script src="../scripts/openWin.js" type="text/javascript"></script>
<script src="../scripts/changeto.js" type="text/javascript"></script>
 <script src="../My97DatePicker/WdatePicker.js" type="text/javascript"></script>
 
<body  style="font-size: 9pt; text-align :center" >
    <form id="form1" runat="server">
      
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
     
                
     <div style="width: 100%;  height :100%;">              
                 
                        <table   cellpadding="0" cellspacing="0"  style="width: 100%;  height :100%;">
                         
                            <tr >
        <td  background="../images/bg002.jpg" bgcolor="#0B82C1" style="height: 41px" width="100%">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="6%" height="19"><div align="center">&nbsp;&nbsp;&nbsp;<img src="../images/tb.gif" width="14" height="14" /></div></td>
                <td width="94%" valign="bottom" align =left  class="css1"> &nbsp;&nbsp;<%= getTreeName() %></td>
              </tr>
            </table></td>
            <td  >
            <table  style="width: 100%; left: 0px; "> 
            <tr>
           <td style="height: 18px; width: 50%;" align =center>
                                    <asp:Label ID="Label13" runat="server" Text="共有："></asp:Label><asp:Label
                                        ID="Label7" runat="server"  ForeColor="Red" TabIndex="40"></asp:Label>
                                    <asp:Label ID="Label8" runat="server"  Text="文档"></asp:Label>
                                    <asp:Label ID="Label9" runat="server" ForeColor="Red" TabIndex="41"></asp:Label>
                                    <asp:Label ID="Label10" runat="server"  Text="份"></asp:Label>
                                    
                                    
                                    </td>
            
             <td>
            <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                <ContentTemplate>
              
               <table style="width: 100%; left: 0px; ">
                            <tr >
                                
                               
                                <td style=" height: 18px;" align =right>
                                
                                    <asp:ImageButton ID="img_addfile" runat="server" ToolTip ="创建单份文件" ImageUrl="../Images/19.gif" />    
                              
                                    <asp:ImageButton ID="img_lotsadd" ImageUrl="../Images/dr.gif"  ToolTip ="批量导入文件"  runat="server" /> 
                                    
                                    <asp:ImageButton ID="img_filemove"  ToolTip ="文件转移"  ImageUrl="../Images/outfile2.gif"  runat="server" />
                                    <asp:ImageButton ID="img_addtree" ToolTip ="创建子类别" runat="server"  ImageUrl="../Images/19_2.gif" />
                                   
                                
                                            
                                            </td>
                            </tr>
                            </table>
                              </ContentTemplate>
                </asp:UpdatePanel></td>
            
            
            <td align =left > <asp:ImageButton ID="imgBtn_toexcel" runat="server"  ToolTip ="导出该类别记录" ImageUrl ="../Images/17.gif" OnClick="imgBtn_toexcel_Click"/>
                                
                                
                                    <a href="../OnlineHelp/OnlineHelp.aspx" target="_blank">
                                        <img src="../Images/8.gif" style="border-top-style: none; border-right-style: none;
                                            border-left-style: none; border-bottom-style: none;" /></a></td></tr></table>
                
          
              </td>
          </tr>
        </table></td>
      </tr>
           </table>
            <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Always" ChildrenAsTriggers="true">
                        
            <ContentTemplate>   
                <table width =100%  style="height: 8px; position :relative ;top: 0px; " cellpadding="0" cellspacing="0"><tr style="height: 8px;"><td style="height: 6px;" align =center valign =top  >
                    <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="../Images/arrow_d.gif" Height="6px" OnClick="ImageButton1_Click" ToolTip="展开查询面板" />
                    </td></tr></table>
                            <asp:Panel ID="Panel1"  Width ="100%"  runat="server" Visible="false">
                 <input id="output_sql" type="hidden" runat ="server"  />
         <input id="output_name" type="hidden" runat ="server"  />         
                   <table width=100% style="border-right: gold 2px solid; border-top: gold 2px solid; border-left: gold 2px solid; border-bottom: gold 2px solid" cellpadding="0" cellspacing="0">       
                    <tr> 
                     <td style="width: 15%" align="center"><img src="../images/ss.jpg" style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none;"  />
                     查询内容：</td>
                    <td align="left" style="width: 50%"> 
                    
                     <asp:TextBox ID="txtKeyword" runat="server" Width="100%"  
                                        ToolTip="输入查找值" Height="17px" Font-Size="9pt"></asp:TextBox>
                                  
                                  
                    
                    </td>
                   
                     <td style="width: 25%" align="left"> &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; 查询字段：<asp:DropDownList ID="dpdKeywords" runat="server"
                                            TabIndex="1" ToolTip="必选" Height="20" >
                                            <asp:ListItem Value="fileno">文件编号</asp:ListItem>
                                            <asp:ListItem Value="fname">文件名称</asp:ListItem>
                                            
                                            <asp:ListItem Value="treename" >文件类别</asp:ListItem>
                                             <asp:ListItem Value="keywords">关键词</asp:ListItem>
                                            <asp:ListItem Value="sector">编制部门</asp:ListItem>
                                            <asp:ListItem Value="people">编制人</asp:ListItem>
                                            <asp:ListItem Value="fileState">文件状态</asp:ListItem>
                                            <asp:ListItem Value="ftype">文件类型</asp:ListItem>
                                           
         
                                             <asp:ListItem Value="checker">创建审核人</asp:ListItem>
                                             <asp:ListItem Value="approver">创建批准人</asp:ListItem>
                                             <asp:ListItem Value="sender">文件发送人</asp:ListItem>
                                             <asp:ListItem Value="lendapprover">借阅审批人</asp:ListItem>
                                             <asp:ListItem Value="updateapprover">修改审批人</asp:ListItem>
                                             <asp:ListItem Value="delapprover">销毁审批人</asp:ListItem>
                                             <asp:ListItem Value="loginid">文件创建人</asp:ListItem>
                                            
                                        </asp:DropDownList></td>
                      <td style="width: 10%"> <asp:Button ID="btnSubmit" runat="server" Height =22px  Text="查 询" onclick="btnSubmit_Click" Width="63px"/></td>
                    </tr>
                    <tr>
                           <td style="background-color: #ccffff;" align="center"></td>    
                               
                                   
                     
                      <td style="background-color: #ccffff;" align="left">        
                               <input id="Checkbox1" runat="server" type="checkbox" />发布日期从：<input id="txtD1" type="text"  class="Wdate" maxlength="10" 
                        onclick="WdatePicker()" runat="server"  readonly ="readonly" style="width: 95px; height: 19px; border-right: #a4c6f1 1px solid; border-top: #a4c6f1 1px solid; border-left: #a4c6f1 1px solid; border-bottom: #a4c6f1 1px solid;" />
 至：<input id="txtD2" type="text"  class="Wdate" maxlength="10" 
                        onclick="WdatePicker()" runat="server"  readonly ="readonly" style="width: 95px; height: 19px; border-right: #a4c6f1 1px solid; border-top: #a4c6f1 1px solid; border-left: #a4c6f1 1px solid; border-bottom: #a4c6f1 1px solid;" />
                                    <asp:Label ID="lbl_state" ForeColor ="red"  runat="server" Text=""></asp:Label> </td>
                                     <td style="background-color: #ccffff;"
                                    valign="middle" align="left">
                                   
                                     &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;   <input id="Radio1"
                                        runat="server" name="searchWay" type="radio" /> 模糊查询<input id="Radio2" runat="server" name="searchWay" type="radio" 
                                        checked="true" />精确查询
                             </td>
                               <td style="background-color: #ccffff;"></td> 
                            </tr>
                            
                            </table> 
                          
                             </asp:Panel> 
                       
               
                  <div style="width: 100%; ">      
                         
                        <asp:DataList ID="DataList1" runat="server" Width="100%" 
                            OnDeleteCommand="DataList1_DeleteCommand" OnItemDataBound="DataList1_ItemDataBound">
                            
                            <ItemTemplate>
                                <table id="mylist" style="width: 100%; " class="tbClass"
                                    cellpadding="0" cellspacing="0" onmouseover="changeto()"  onmouseout="changeback()">
                                    <tr >
                                        <td style="width: 4%; border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none;">
                                            &nbsp;<asp:ImageButton ID="imgBtn_docpage"   OnClientClick ='<%# getUrl(Eval("id")) %>'
                                                        runat="server" ImageUrl="../Images/EditInformationHS.png" />
                                        </td>
                                        <td style="width: 12%; border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none;">
                                            <%#DataBinder.Eval(Container.DataItem,"FileNo")%>
                                        </td>
                                        <td style="width: 20%;border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none; text-align :left ; ">
                                            <a href='openDoc.aspx?from=vtfile&id=<%#DataBinder.Eval(Container.DataItem,"id")%>'  style ="color :Blue ;" target="_blank" onmouseover ="window.status='none';return true;">
                                                <%#DataBinder.Eval(Container.DataItem,"FName")%>
                                            </a>
                                            <asp:Label ID="lbl_id" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"id")%>'
                                                Visible="false"></asp:Label>
                                          
                                        </td>
                                        <td style="width: 14%;border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none;">
                                            <%# getTreeName(DataBinder.Eval(Container.DataItem, "treeid"))%>
                                        </td>
                                        <td style="width: 8%;border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none;">
                                            <%#DataBinder.Eval(Container.DataItem,"Version")%>
                                        </td>
                                         <td style="width: 8%;border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none;">
                                            <%# GetFType(Eval("FileNo"))%>
                                        </td>
                                        <td style="width: 6%;border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none;">
                                            <%# getUname(DataBinder.Eval(Container.DataItem,"People"))%>
                                        </td>
                                        <td style="width: 12%;border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none;">
                                            <%#DataBinder.Eval(Container.DataItem,"filestate")%>
                                        </td>
                                        <td style="width: 9%;border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none;">
                                            <%#DataBinder.Eval(Container.DataItem,"cDate","{0:yyyy-MM-dd}")%>
                                        </td>
                                        <td style="width: 7%;border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none;">
                                          
                                         
                                           <asp:ImageButton ID="ImageButton5" CommandName="delete" runat="server" Visible ="false"  ImageUrl="../Images/DEL2.gif" OnClientClick="return confirm('确认删除？')"
                                                 ToolTip ="删除该文件" />  
                                                  &nbsp;<asp:ImageButton ID="img_download" runat="server"  OnClientClick ='df(<%# Eval("id") %>)'  ImageUrl="../Images/download.gif"  Visible =false  Width="16" Height="16" ToolTip ="下载文件" />
                                           
                                        </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                            <HeaderTemplate>
                            
                                <table class="tbClass" cellpadding="0" cellspacing="0" style="width: 100%">
                                    <tr class="table-btbg" width="100%">
                                        <td style="width: 4%;   height: 20px;">
                                            属性
                                        </td>
                                        <td style="width: 12%;   height: 20px;">
                                            文件编号
                                        </td>
                                        <td style="width: 20%;  height: 20px;">
                                            文件名称
                                        </td>
                                        <td style="width: 14%;height: 20px;">
                                            所属类别
                                        </td>
                                        <td style="width: 8%; height: 20px;">
                                            版本号
                                        </td>
                                        <td style="width: 8%; height: 20px;">
                                            文件类型
                                        </td>
                                        <td style="width: 6%;  height: 20px;">
                                            编制人
                                        </td>
                                        <td style="width: 12%;  height: 20px;">
                                            文件状态
                                        </td>
                                        <td style="width: 9%;  height: 20px;">
                                            发布日期
                                        </td>
                                        <td style="width: 7%;  height: 20px;">
                                            操作
                                        </td>
                                    </tr>
                                </table>
                            </HeaderTemplate>
                            
                            
                           
                        </asp:DataList> 
                    </div>    
                      
                        <table style="width: 100%;" >
                            <tr>
                                <td style="width: 51%; height: 7px; font-size: 9pt;" align="center">
                                    &nbsp;
                                    <asp:LinkButton ID="linkbPrev" runat="server" ForeColor="Black" OnClick="linkbPrev_Click"
                                        BorderStyle="None"><asp:Label ID="lbl_prevPage" runat="server" ForeColor ="Blue"  Text="上一页"></asp:Label></asp:LinkButton>
                                    &nbsp;&nbsp; &nbsp;
                                    <asp:Label ID="Label1" runat="server" Text="当前第" TabIndex="16"></asp:Label>&nbsp;
                                    <asp:Label ID="lblCurrent" runat="server" Text="1" ForeColor="Red" TabIndex="19"></asp:Label>&nbsp;
                                    <asp:Label ID="Label3" runat="server" Text="页" TabIndex="18"></asp:Label>
                                    &nbsp; &nbsp; &nbsp;<asp:Label ID="Label4" runat="server" Text="共" TabIndex="20"></asp:Label>&nbsp;
                                    <asp:Label ID="lblTotal" runat="server" ForeColor="Red" TabIndex="17"></asp:Label>&nbsp;
                                    <asp:Label ID="Label6" runat="server" Text="页" TabIndex="21"></asp:Label>
                                    &nbsp; &nbsp;
                                    <asp:LinkButton ID="linkbNext" runat="server" ForeColor="Black" OnClick="linkbNext_Click"
                                        BorderStyle="None"><asp:Label ID="lbl_nextPage" runat="server" ForeColor ="Blue" Text="下一页"></asp:Label></asp:LinkButton>
                                    &nbsp; &nbsp; &nbsp;
                                    <asp:Label ID="lbl_to" runat="server" Text="转到第："></asp:Label>
                                    <asp:DropDownList ID="dpd_Page" runat="server" AutoPostBack="True" OnSelectedIndexChanged="dpd_Page_SelectedIndexChanged">
                                    </asp:DropDownList>&nbsp;<asp:Label ID="lbl_tail" runat="server" Text="页"></asp:Label></td>
                            </tr>
                        </table>
                          </ContentTemplate>
        </asp:UpdatePanel>
         </div>       
                      
           
    
    
    </form>
  
</body>
</html>
