<%@ page language="C#" autoeventwireup="true" inherits="SystemManagement_toDo, App_Web_xpyiwnev" %>

<%--<!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>
     <link href="../CssHtml.css" rel="stylesheet" type="text/css" />
     <style type ="text/css"> 
                .mycss   table   tr   td   table   tr   td   span   {   color:red;   } 
        </style>  
</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=" margin-top:5px;">
        <table style="width: 100%; " cellpadding="0" cellspacing="0" >
                    <tr style="border-bottom: #1471b0 1px solid">
                        <td style=" text-align: left; width :70%">
                            目前位置：我的邮件 - 内部邮件 - 待办信息</td>
                      
                
                       <td style="width:30%; height: 22px;" align="right">
                    <a href="../OnlineHelp/OnlineHelp.aspx" target ="_blank" > 
                      <img src="../Images/8.gif" alt ="在线帮助" style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none;" /> </a></td>
                    </tr>
                <tr style="border-bottom: #1471b0 1px solid">
                <td style=" text-align: left; width :70%; border-top: #0066ff 1px solid;">
                         <asp:Label ID="Label2" runat="server" Text="0" Visible="False"></asp:Label>
            <asp:Button ID="Button6" runat="server" OnClick="Button6_Click" Text="取消待办" />    </td>
            <td align="right" style="border-top: #0066ff 1px solid; width: 70%;">
             <span style="font-size: 9pt; font-weight: bold">待办信息</span>(共<asp:Label ID="lbl_db"
                                runat="server" Text="" ForeColor="Red"></asp:Label>封)
            </td>
                </tr>
                
                </table>
        <div>
           
            </div>
        <div class ="mycss">
          <asp:GridView ID="GridView1" runat="server" style="width:100%; text-align:center" AutoGenerateColumns="False"  AllowPaging="True" OnDataBound="GridView1_DataBound" PageSize="30" OnPageIndexChanging="GridView1_PageIndexChanging1" Font-Size="9">
                <EmptyDataTemplate>
                 <table width="100%">
                                            <tr style="font-weight: bold; font-size: 9pt; color: #ffffff; background-color: #1471B0;
                                                border-right: #6699cc 1px solid; border-top: #6699cc 1px solid; border-left: #6699cc 1px solid;
                                                border-bottom: #6699cc 1px solid;">
                                                 <td align="center" style="color: white;">
                                                     <asp:CheckBox ID="CheckBox4" runat="server" />
                                                </td>
                                                <td align="center" style="color: white;">
                                                    是否阅读
                                                </td>
                                                 <td align="center" style="color: white;">
                                                    接收人
                                                </td>
                                                <td align="center" style="color: white;">
                                                    主题
                                                </td>
                                                <td align="center" style="color: white;">
                                                    内容
                                                </td>
                                                <td align="center" style="color: white;">
                                                    发件人
                                                </td>
                                                <td align="center" style="color: white;">
                                                    接收时间
                                                </td>
                                                <td align="center" style="color: white;">
                                                    状态
                                                </td>
                                               
                                            </tr>
                                            <tr>
                                                <td align="center" colspan="7" style="font-weight: normal; font-size: 9pt;">
                                                    没有数据................................
                                                </td>
                                            </tr>
                                        </table>
                
                
                </EmptyDataTemplate>
                
                
                <Columns>
                    <asp:TemplateField HeaderText="id" InsertVisible="False" SortExpression="id" Visible="False">
                        <EditItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%# Eval("id") %>'></asp:Label>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%# Bind("id") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <HeaderTemplate>
                            <asp:CheckBox ID="CheckBox2" runat="server" AutoPostBack="True" OnCheckedChanged="CheckBox2_CheckedChanged" />全选
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="CheckBox3" runat="server" AutoPostBack="True" OnCheckedChanged="CheckBox3_CheckedChanged" ValidationGroup='<%# Eval("id") %>' />
                        </ItemTemplate>
                        <ItemStyle Width="80px" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="接收人" SortExpression="receiverId" Visible="False">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("receiverId") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Labela1" runat="server" Text='<%# Bind("receiverId") %>'></asp:Label>
                        </ItemTemplate>
                       
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="是否阅读">
                        <ItemTemplate>
                            <img id="Image1" src='images/<%# Getimg(Eval("reads")) %>' alt=""/>
                        </ItemTemplate>
                        <ItemStyle Width="60px" />
                    </asp:TemplateField>
                     <asp:TemplateField HeaderText="主题" SortExpression="topic">
                        <ItemTemplate>
                        <img id="dfe" alt="" src='images/<%# Getimg1(Eval("toDo")) %>' />
                        
                         <a href='checkMail.aspx?pg=2&id=<%# Eval("id") %> ' target =_blank>  <%# Eval("topic") %>  </a>
                        
                        </ItemTemplate>
                         <ItemStyle HorizontalAlign="left" />
                    </asp:TemplateField>
                     <asp:TemplateField HeaderText="内容" SortExpression="contents">
                            <ItemTemplate>
                                <asp:Label ID="lblcontents" runat="server"  Text = '<%# GetContents20(Eval("contents")) %>'  Tooltip='<%# GetContents20(Eval("contents")) %>'></asp:Label>
                            </ItemTemplate>
                         <ItemStyle HorizontalAlign="Left" />
                        </asp:TemplateField>
                    <asp:TemplateField HeaderText="发件人" SortExpression="senderId">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("senderId") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Labela2" runat="server" Text='<%# GetUname(Eval("senderId")) %>'></asp:Label>
                        </ItemTemplate>
                         <ItemStyle Width="70px" />
                    </asp:TemplateField>
                   
                    <asp:BoundField DataField="cdate" HeaderText="接收时间" SortExpression="cdate" />
                    <asp:TemplateField HeaderText="状态" SortExpression="urgent">
                        <EditItemTemplate>
                            <asp:CheckBox ID="CheckBox1" runat="server" Checked='<%# Bind("urgent") %>' />
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label4" runat="server" Text='<%# Getjj(Eval("urgent")) %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
              <HeaderStyle BackColor="#1471B0" ForeColor="White" />
              <AlternatingRowStyle BackColor="White" />
            </asp:GridView>
          
        </div>
    </div>
    </ContentTemplate>
        </asp:UpdatePanel>
    </form>
</body>
</html>
