<%@ page language="C#" autoeventwireup="true" inherits="myWorks_toUpdate, App_Web_n_ukpybn" %>

<!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> 
         <script src="../scripts/openWin.js" type="text/javascript"></script>
         
    <script type="text/javascript">
        
       function ssx(op,idd)
        {
            var wy ="checkLeaderWords.aspx?type="+idd+"&id="+op;
            window.open( wy,'','width=612,height=430,top=100,left=300,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no');
        }
           function tz()
        {
            window.parent['homeLeft'].location='appLeft.aspx?id=0';
            window.location='toUpdate.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>
            <table  width =100% style="font-size: 9pt;"><tr ><td align =left >目前位置：我的申请 - 申请记录 - 修改申请 &nbsp; &nbsp;
             <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
                            <asp:ListItem Value="qb">全部</asp:ListItem>                           
                            <asp:ListItem Value="pz">同意</asp:ListItem>
                            
                            <asp:ListItem Value="dp">待批</asp:ListItem>
                            <asp:ListItem Value="wpz">不同意</asp:ListItem>
                         
                            <asp:ListItem Value="wc">完成</asp:ListItem>
                            
                        </asp:DropDownList>
            </td>
      
      <td >   <div style="text-align: right; vertical-align :bottom">
                   <asp:Label ID="lbl_state" runat="server" Text="" ForeColor="Red"></asp:Label>     
                        <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>                  
                                            
                                            </div> </td>
                       
      
      </tr></table>
                <div style="position: relative; margin: 0px auto;">
                    <asp:TextBox ID="TextBox1" runat="server" Visible="false"></asp:TextBox>
                   
                    <div class ="mycss">
                        <asp:GridView ID="GridView1" runat="server" Style="width: 100%; text-align: center"
                            DataSourceID="SqlDataSource1" AutoGenerateColumns="False"
                            Font-Size="9pt" OnPageIndexChanging="GridView1_PageIndexChanging" OnDataBound="GridView1_DataBound" AllowPaging="True" PageSize="15">
                            <Columns>
                                <asp:TemplateField>
                                    <HeaderTemplate>
                                        修改
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                         <asp:LinkButton ID="linkb_update" runat="server" Visible =false    ForeColor ="Blue" ValidationGroup ='<%# Eval("id") %>' >修改</asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="下载">
                                    <ItemTemplate>
                                         <asp:LinkButton ID="linkb_download" runat="server" Visible =false ForeColor ="Blue" ValidationGroup ='<%# getFileid( Eval("fileno") )%>' >下载</asp:LinkButton>
                                    </ItemTemplate>
                                </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" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="文件名称" >
                                    <ItemTemplate>
                                    <a href ="../document/openDoc.aspx?from=vtfile&id=<%# getFileid( Eval("fileno")) %>&map=fileapp" target ="_blank"> <span style="color: Blue; cursor: pointer;" >   <asp:Label ID="Label3"  runat="server" Text='<%# Bind("fname")  %>'></asp:Label></span></a>
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Left" />
                                </asp:TemplateField>
                                 <asp:TemplateField HeaderText="审批状态">
                                    <ItemTemplate>
                                        <asp:Label ID="Label2" runat="server" Text='<%# Bind("state") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                 <asp:TemplateField HeaderText="审批人">
                                   
                                    <ItemTemplate>
                                     
                                         <asp:LinkButton ID="linkb_checkleaderwords" runat="server"  ToolTip ="点击查看修改批准记录" ValidationGroup ='<%# Eval("id") %>' ForeColor="Blue"   >   <%# getApproverName(Eval("approverid")) %> </asp:LinkButton>   
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Left" />
                                </asp:TemplateField>
                              
                                <asp:BoundField DataField="adate" HeaderText="审批时间" />
                                <asp:TemplateField HeaderText="删除">
                                    <ItemTemplate>
                                        <asp:ImageButton ID="ImageButton2" runat="server" ToolTip ="待批/不同意/完成/转他人可删" ImageUrl="~/Images/del2.gif" OnClientClick="return confirm('确认删除？')"
                                            CommandName='<%# Eval("id") %>' OnClick="ImageButton2_Click" Visible="False" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <EmptyDataTemplate>
                                <table width="100%" cellpadding="0" cellspacing="0">
                                    <tr style=" background-color: #1471b0; ">
                                        
                                        <td align="center" style="font-weight: bold; font-size: 9pt; color: white">
                                            文件编号
                                        </td>
                                        <td align="center" style="font-weight: bold; font-size: 9pt; border-left: white 1px solid; color: white">
                                            文件名称
                                        </td>
                                        <td align="center" style="font-weight: bold; font-size: 9pt; border-left: white 1px solid; color: white">
                                            审批状态
                                        </td>
                                        <td align="center" style="font-weight: bold; font-size: 9pt; border-left: white 1px solid; color: white">
                                            审批人
                                        </td>
                                        <td align="center" style="font-weight: bold; font-size: 9pt; border-left: white 1px solid; color: white">
                                            审批意见
                                        </td>
                                        <td align="center" style="font-weight: bold; font-size: 9pt; border-left: white 1px solid; color: white">
                                            审批时间
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="center" colspan="3" style="font-weight: normal; font-size: 9pt;">
                                            没有数据................................
                                        </td>
                                    </tr>
                                </table>
                            </EmptyDataTemplate>
                            <HeaderStyle BackColor="#1471B0" Font-Size="9pt" ForeColor="White" />
                        </asp:GridView>
                        <asp:SqlDataSource ID="SqlDataSource1" runat="server" >
                        </asp:SqlDataSource>
                    </div>
               </div>
             </ContentTemplate>
        </asp:UpdatePanel>
    </form>
</body>
</html>
