<%@ page language="C#" autoeventwireup="true" inherits="gridview_moude, App_Web_uwwjq80a" %>

<!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 id="Head1" runat="server">
    <title>我的来文</title>
 <link href="../CssHtml.css" rel="stylesheet" type="text/css" />
<style type ="text/css"> 
                .mycss   table   tr   td   table   tr   td   span   {   color:red;   } 
        </style>  
  <script src="../scripts/openWin.js" type="text/javascript"></script>
<script type="text/javascript">
        
       
          function tz()
        {
            window.parent['homeLeft'].location='Left.aspx?id=0';
            window.location='fileForMe.aspx';
        }
        </script>
</head>

<body  style="font-size: 9pt;">

    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
        
        <div style ="width :100%">
            <div style ="width :100%">
            
                <table style="width: 100%" >
                    <tr>
                    <td align =left style="width: 60%; ">目前位置：待办任务 - 来文及发文 - 我的来文&nbsp; &nbsp;<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
                                <asp:ListItem Selected="True">全部</asp:ListItem>
                                <asp:ListItem>未读</asp:ListItem>
                                <asp:ListItem>已读</asp:ListItem>
                            </asp:DropDownList>
                    </td>
                       
                        <td style="width: 40%; text-align: right">
                            <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="确认阅读" Height="22px" />
                            <asp:Button ID="Button2" runat="server" OnClick="Button2_Click" OnClientClick="return confirm('确认删除？');" Text="删 除" ToolTip="已读信息可以删除" Height="22px" />
                           <img src="../Images/18.gif" onclick="tz()" title="刷新"
                                            style="cursor: pointer" id="IMG1" />
                          <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>
            </div>
            <div  style="width: 100%" class ="mycss" >
            <asp:GridView ID="GridView1" runat="server" Style="width: 100%; text-align: center" 
                AutoGenerateColumns="False"  OnDataBound="GridView1_DataBound"  CellPadding="0"    DataSourceID="SqlDataSource1" PageSize="15" EmptyDataText="NO Data" AllowPaging="True" OnPageIndexChanging="GridView1_PageIndexChanging" RowStyle-BorderStyle="Solid" Font-Size="9" HeaderStyle-Font-Size="9" OnSorting="GridView1_Sorting" AllowSorting="True">
                 <EmptyDataTemplate>
                        <table width="100%" cellpadding="0" cellspacing="0">
                            <tr style="background-color: #1471b0;height: 17px">
                             <td style="color: white;; font-weight: bold; font-size: 9pt; text-align: center;" >是否阅读
                                </td>
                            <td style="color: white;; font-weight: bold; font-size: 9pt; text-align: center;border-left: white 1px solid;" >文件编号
                                </td>
                                <td style="color: white; font-weight: bold; font-size: 9pt; text-align: center;border-left: white 1px solid;" >文件名称
                                </td>
                               
                              
                                 <td  style="color: white;; font-weight: bold; font-size: 9pt; text-align: center;border-left: white 1px solid;">发送人
                              </td>
                                
                                <td style="color: white;; font-weight: bold; font-size: 9pt; text-align: center;border-left: white 1px solid;" >发送时间
                                </td>
                                <td style="color: white;; font-weight: bold; font-size: 9pt; text-align: center;border-left: white 1px solid;" >过期时间
                                </td>
                                <td style="color: white;; font-weight: bold; font-size: 9pt; text-align: center;border-left: white 1px solid;" >操作
                                </td>
                               
                            </tr>
                            <tr>
                                <td align =center   colspan=7>
                                没有数据....................................................
                                </td>
                                
                            </tr>
                        </table>
                    </EmptyDataTemplate>
                
                
                
                <Columns  >
                    
                    <asp:TemplateField >
                        <HeaderTemplate  >
                            <asp:CheckBox ID="CheckBox2" runat="server" AutoPostBack="True" OnCheckedChanged="CheckBox2_CheckedChanged" />全选
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="CheckBox1" runat="server" AutoPostBack="True"  ValidationGroup='<%# Eval("id") %>'
                                OnCheckedChanged="CheckBox1_CheckedChanged" />
                        </ItemTemplate>
                        <ItemStyle Width="5%"  />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="阅读否" SortExpression="reads">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("reads") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <img id="dfe" alt="" src='../mail/images/<%# Getimg(Eval("reads")) %>' />
                        </ItemTemplate>
                        <ItemStyle Width="6%" />
                    </asp:TemplateField>
                  
                    <asp:TemplateField HeaderText="文件编号" SortExpression ="fileno">
                    <ItemTemplate>
                 
                        <asp:LinkButton ID="link_docpage2" runat="server" ForeColor ="Blue" OnClientClick ='<%# getUrl(Eval("fileno")) %>'><%# Eval("fileno") %></asp:LinkButton>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Left" Width="20%" />
                </asp:TemplateField>
                
                <asp:TemplateField HeaderText="文件名称" SortExpression="fname">
                   
                    <ItemTemplate  >
                                     
                <a href ='<%# getHref(Eval("id")) %>'  target ="_blank"  style =" color:Blue ;" >    <%# Eval("fname") %></a>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Left" Width="30%" />
                </asp:TemplateField>
                
                   
                    <asp:TemplateField HeaderText="发送人" SortExpression="senderName">
                        <ItemTemplate>
                           <asp:Label ID="Label1" ToolTip ='<%# Eval("senderword") %>' ForeColor ="Blue"  runat="server" Text='<%# Eval("senderName") %>'></asp:Label>
                        
                        </ItemTemplate>
                    </asp:TemplateField>
                  
                  
                    <asp:BoundField DataField="cdate" HeaderText="发送时间" SortExpression="cdate"  DataFormatString="{0:yyyy-MM-dd}" />
                    <asp:BoundField DataField="edate" HeaderText="过期时间" SortExpression="edate"  DataFormatString="{0:yyyy-MM-dd}" />
                     <asp:TemplateField HeaderText="下载">
                                    <ItemTemplate>
                                     
                                      
                                        <asp:LinkButton ID="linkb_download" runat="server" Visible =false  ForeColor ="Blue" ValidationGroup ='<%# getFid( Eval("fileno")) %>' >下载</asp:LinkButton>
          
                                    
                                    </ItemTemplate>
                         <ItemStyle Width="5%" />
                                </asp:TemplateField>
                                
                                <asp:TemplateField HeaderText="id" InsertVisible="False" SortExpression="id" Visible="False">
                        <ItemTemplate>
                            <asp:Label ID="Label3" runat="server" ToolTip='<%# getDownload( Eval("id")) %>' Text='<%# Bind("id") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <RowStyle BorderStyle="None" />
                <HeaderStyle BackColor="#1471B0" Font-Size="9pt" ForeColor="White" />
                <AlternatingRowStyle BackColor="White" />
            </asp:GridView>
            </div>
            <div style="text-align: center; margin-top: 20px">
                <asp:SqlDataSource ID="SqlDataSource1" runat="server"></asp:SqlDataSource>
         
              
            </div>
            <div>
                <asp:Label ID="Label2" runat="server" Text="" Style="color: Red; font-weight: bold"></asp:Label></div>
        </div>
    </ContentTemplate>
        </asp:UpdatePanel>
    </form>
</body>
</html>
