<%@ page language="C#" autoeventwireup="true" inherits="myWorks_notApproved, 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 id="Head1" runat="server">
    <title>审批退回文件</title>
    <link href="../CssHtml.css" rel="stylesheet" type="text/css" />
     <script src="../scripts/openWin.js" type="text/javascript"></script>  
<style type ="text/css">  .mycss   table   tr   td   table   tr   td   span   {   color:red;   } </style> 
    <script type="text/javascript">
        function sx(op)
        {
            var wy ="UpdateFile.aspx?id=" + op.id;
            window.open( wy,'','width=603,height=370,top=200,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='notApproved.aspx';
        }
        function px(op,idd)
        {
            var wy ="../myWorks/checkLeaderWords.aspx?type="+idd+"&fileno="+op;
            window.open( wy,'','width=602,height=390,top=100,left=300,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no');
        }
    </script>
    
</head>
<body>
    <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 style ="width:30%;" >目前位置：我的申请 - 申请记录 - 审批退回</td>
    <td style =" width :50%;" align="right"> 
        <asp:Label ID="lbl_state" runat="server" Text="" ForeColor="Red"></asp:Label></td>
    <td align =right valign="bottom"   ><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  class ="mycss">
        <asp:GridView ID="GridView1" runat="server" Style="width: 100%; text-align: center;"
            DataSourceID="SqlDataSource1" AutoGenerateColumns="False" Font-Size="9pt" PageSize="30" AllowPaging="True" OnPageIndexChanging="GridView1_PageIndexChanging" OnDataBound="GridView1_DataBound">
            <Columns>
               
                 <asp:TemplateField HeaderText="下载">
                                    <ItemTemplate>
                                        <span onclick='df(<%# Eval("fid") %>)' id='<%# Eval("fid") %>' style="color: Blue; cursor: pointer;">下载</span>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                 <asp:TemplateField HeaderText="提交">
                    <ItemTemplate>
                        <span onclick="sx(this)" style="cursor: pointer; color: Blue" id='<%# Eval("id") %>'>
                            提交</span>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="文件编号">
                                    <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=<%#  Eval("fid") %>' 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:BoundField DataField="version" HeaderText="版本号" SortExpression="version" />
                 <asp:BoundField DataField="filestate" HeaderText="文件状态" SortExpression="filestate" />
                 
                  <asp:TemplateField HeaderText="审核人" >
                                        <ItemTemplate>
                                           
                                            <asp:LinkButton ID="linkb_checkleaderwords" runat="server"  ToolTip ="点击查看审核意见" ValidationGroup ='<%# Eval("fid") %>' ForeColor="Blue"   >   <%# getChecker(Eval("fileno")) %> </asp:LinkButton>
                                          
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                     <asp:TemplateField HeaderText="批准人" >
                                        <ItemTemplate>
                                           
                                            <asp:LinkButton ID="linkb_checkleaderwords2" runat="server"  ToolTip ="点击查看批准意见" ValidationGroup ='<%# Eval("fid") %>' ForeColor="Blue"   >   <%# getApprover(Eval("fileno")) %> </asp:LinkButton>
                                          
                                        </ItemTemplate>
                                    </asp:TemplateField>
             
                <asp:TemplateField HeaderText="操作">
                    <ItemTemplate>
                       
                        <asp:ImageButton ID="ImageButton2" runat="server" ToolTip="删除记录及文件" ImageUrl="~/Images/del2.gif"
                            OnClientClick="return confirm('确认删除？')" CommandName='<%# Eval("fileno") %>' OnClick="ImageButton2_Click" />
                    </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; color: white; border-left: white 1px solid;">
                            文件名称
                        </td> 
                         <td align="center" style="font-weight: bold; font-size: 9pt; color: white; border-left: white 1px solid;">
                            版本号
                        </td>
                        <td align="center" style="font-weight: bold; font-size: 9pt; color: white; border-left: white 1px solid;">
                            文件状态
                        </td>
                       
                        
                        <td align="center" style="font-weight: bold; font-size: 9pt; color: white; border-left: white 1px solid;">
                            审核人
                        </td>
                        <td align="center" style="font-weight: bold; font-size: 9pt; color: white; border-left: white 1px solid;">
                            批准人
                        </td>
                        <td align="center" style="font-weight: bold; font-size: 9pt; color: white; border-left: white 1px solid;">
                            操作
                        </td>
                    </tr>
                    <tr>
                        <td align="center" colspan="3" >
                            没有数据................................
                        </td>
                    </tr>
                </table>
            </EmptyDataTemplate>
            <HeaderStyle BackColor="#1471B0" Font-Size="9pt" ForeColor="White" />
        </asp:GridView>
  </div>
       <asp:Label ID="Label3" runat="server" ForeColor="Red" Width="323px"></asp:Label>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server">
           
          
        </asp:SqlDataSource>
         </ContentTemplate>
        </asp:UpdatePanel>
    </form>
</body>
</html>