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

<%@ 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 id="Head1" runat="server">
    <title>待审核文件</title>
    <link href="../CssHtml1.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 sx(op,idd)
        {
            var wy ="checkLeaderWords.aspx?type="+idd+"&fileno="+op;
            window.open( wy,'','width=612,height=430,top=100,left=300,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no');
        }
     
    </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%; font-size: 9pt; overflow :auto ;">
                        <table width="100%" style="font-size: 9pt;">
                            <tr>
                                <td align="left">
                                    目前位置：待办任务 - 待批的申请 - 待审文件创建</td>
                                <td style="width: 60%" align="right">
                                    <asp:Label ID="Label2" runat="server" ForeColor="Red" Text="状态提示：请选择要审核的文件！" 
                                        Visible="false"></asp:Label>
                                    <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="(批量)审核" Width="99px" />
                                      <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"
                                AutoGenerateColumns="False" DataSourceID="SqlDataSource1" AllowPaging="True"
                                OnDataBound="GridView1_DataBound" PageSize="30" Font-Size="9pt" Font-Underline="False"
                                HeaderStyle-BackColor="#1471B0" HeaderStyle-ForeColor="White" OnPageIndexChanging="GridView1_PageIndexChanging">
                                <EmptyDataTemplate>
                                    <table width="100%">
                                        <tr style="font-weight: bold; font-size: 9pt;  background-color: #1471B0;
                                           ">
                                            <td align="center"  style="color: white;">
                                                文件编号
                                            </td>
                                            <td align="center"  style="color: white; border-left: white 1px solid;">
                                                文件名称
                                            </td>
                                           
                                            <td align="center"  style="color: white; border-left: white 1px solid;">
                                                编制人
                                            </td>
                                            <td align="center"  style="color: white; border-left: white 1px solid;">
                                                创建日期
                                            </td>
                                            <td align="center"  style="color: white; border-left: white 1px solid;">
                                                版本号
                                            </td>
                                            <td align="center"  style="color: white; border-left: white 1px solid;">
                                                创建人
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="center" colspan="3" style="font-weight: normal; font-size: 9pt;">
                                                没有数据................................
                                            </td>
                                        </tr>
                                    </table>
                                </EmptyDataTemplate>
                                <Columns>
                                    <asp:TemplateField   ItemStyle-Width="5%">
                                        <HeaderTemplate>
                                            <asp:CheckBox ID="CheckBox2" runat="server" Text="全选" OnCheckedChanged="CheckBox2_CheckedChanged"
                                                AutoPostBack="True" />
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:CheckBox ID="CheckBox3" runat="server" OnCheckedChanged="CheckBox3_CheckedChanged"
                                                ValidationGroup='<%# Bind("id") %>' AutoPostBack="True" />&nbsp;
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="id" InsertVisible="False" SortExpression="id" Visible="False">
                                        <ItemTemplate>
                                            <asp:Label ID="Label1" runat="server" Text='<%# Bind("id") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="文件编号"   ItemStyle-Width="15%">
                                        <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="文件名称" SortExpression="fname"   ItemStyle-Width="25%">
                                        <ItemTemplate>
                                            <a href='../Document/openDoc.aspx?from=vtfile&id=<%# Eval("fid")%>' style="color: Blue;"
                                                target="_blank">
                                                <asp:Label runat="server" ID="mm" Text='<%# Bind("fname") %>'></asp:Label>
                                            </a>
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Left" />
                                    </asp:TemplateField>
                                     <asp:TemplateField HeaderText="编制人" >
                                        <ItemTemplate>
                                            <asp:Label ID="lbl_uname" runat="server" Text='<%# getUname(Eval("people")) %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                     <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:Label ID="lbl_adder" runat="server" Text='<%# getUname(Eval("loginid")) %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="cdate" HeaderText="创建日期" SortExpression="cdate" DataFormatString="{0:yyyy-MM-dd}" />
                                    <asp:BoundField DataField="version" HeaderText="版本号" SortExpression="version" />
                                   
                                    
                                </Columns>
                                <HeaderStyle BackColor="#1471B0" Font-Size="9pt" ForeColor="White" />
                                <AlternatingRowStyle BackColor="White" />
                            </asp:GridView>
                        </div>
                        <asp:SqlDataSource ID="SqlDataSource1" runat="server"></asp:SqlDataSource>
                        
                     
                        <asp:Panel ID="Panel1" runat="server" Visible="false">
                            <div style="position: absolute; z-index: 0; left: 121px; width: 694px;height:351px; top: 0px;" runat="server" >
                                 <table style =" position :relative ; z-index :5;height:30px;height:30px; width: 694px;" cellpadding="0" cellspacing="0">
                      <tr >
                       <td align ="left" style="font-weight: bold; font-size: 9pt; color: white; width :395px;background-image:url(../Images/top_left.gif);" > &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; 文件创建审核</td>
                        <td align ="right" style ="width :299px;background-image:url(../Images/top_right.gif);" ><asp:ImageButton ID="ImageButton1" runat="server" OnClick="ImageButton1_Click" ImageUrl="~/Images/close.gif" style="padding-top:3px;  padding-right:4px;" ToolTip="关闭" /></td>
                        </tr>
                
                    </table>
                      <div   style=" width: 686px; border-right: #036cfe 4px solid; border-left: #036cfe 4px solid; border-bottom: #036cfe 4px solid;
                                background-color: #f2f8fd; color : #004A83;" >
                                <div  style=" width: 685px; height :120px; overflow:auto;  ">
                                <asp:GridView ID="GridView2" runat="server" Style="width: 685px; text-align: center"
                                    AutoGenerateColumns="False" Font-Size="9pt">
                                    <Columns>
                                       
                                        <asp:BoundField DataField="fileno" HeaderText="文件编号" />
                                        <asp:TemplateField HeaderText="文件名称">
                                            <EditItemTemplate>
                                                <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("fname") %>'></asp:TextBox>
                                            </EditItemTemplate>
                                            <ItemTemplate>
                                                <asp:HyperLink ID="HyperLink1" runat="server" Text='<%# Bind("fname") %>'></asp:HyperLink>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                     
                                         <asp:TemplateField HeaderText="编制人" >
                                        <ItemTemplate>
                                            <asp:Label ID="lbl_uname" runat="server" Text='<%# getUname(Eval("people")) %>'></asp:Label>
                                             <asp:Label ID="lbl_id" runat="server" Text='<%# Bind("id") %>' Visible ="false" ></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                        <asp:BoundField DataField="cdate" HeaderText="创建日期" DataFormatString="{0:yyyy-MM-dd}"/>
                                        <asp:BoundField DataField="version" HeaderText="版本号" />
                                        <asp:BoundField DataField="fileState" HeaderText="文件状态" />
                                    </Columns>
                                     <EmptyDataTemplate>
                                    <table width="100%">
                                        <tr style="font-weight: bold; font-size: 9pt; color: white; 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;">
                                                文件编号
                                            </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>
                                    <HeaderStyle BackColor="#1471B0" Font-Size="9pt" ForeColor="White" />
                                    <AlternatingRowStyle BackColor="White" />
                                </asp:GridView>
                                </div>
                                
                                &nbsp; 文件创建审核：<br />
                                <div style="width: 681px;  position :relative ; left :1px; border-right: dodgerblue 1px solid;
                                    border-top: dodgerblue 1px solid; border-left: dodgerblue 1px solid; border-bottom: dodgerblue 1px solid;">
                                   
                                                        
                <div  style ="text-align :left ">  <input id="RadioButton1" type="radio" name ="mySaveWay"  runat="server"   />同意</div>
                               
                <div style ="text-align :left "><input id="RadioButton2" type="radio" name ="mySaveWay" runat="server"/>不同意</div>
                
               <div style ="text-align :left "><input id="RadioButton3" type="radio" name ="mySaveWay" runat="server"/>转给其他人批：
                                <asp:TextBox ID="TextBox5" runat="server" Width="106px" Enabled="false"></asp:TextBox>
                                <asp:Button ID="btn_select" runat="server" Text="..." Width="33px" OnClick="btn_select_Click"  Height="23px"/>
                                <asp:Label ID="lbl_loginid" runat="server" Visible="false"></asp:Label></div> 
                                  <asp:Panel ID="panel_select" runat="server" Visible="false">
                                    <div style="position: absolute; height: 280px; width: 250px; top: 5px; left: 280px;
                                        background-color: #f2f8fd; border-right: #0054e3 4px solid; border-top: #0054e3 4px solid;
                                        border-left: #0054e3 4px solid; border-bottom: #0054e3 4px solid; ">
                                        
                                          <div style="background-color: #e6ffff;"><table width ="100%"><tr>
                                         <td style="font-weight :bold"  align =left>选择批准人:</td>
                                         <td align =right >
                                             <asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="../images/div_close.png" OnClick="ImageButton2_Click" />                                
                                             </td></tr></table> </div>
                                        
                                         <div style="width: 100%;height:250px; overflow :auto ;">
                                        <asp:GridView ID="gridv_uname" runat="server" Style="width: 99%; text-align: center"
                                            AutoGenerateColumns="False" DataSourceID="SqlDataSource_uname" OnDataBound="GridView1_DataBound"
                                            PageSize="30" OnPageIndexChanging="GridView1_PageIndexChanging" AutoGenerateSelectButton="True" OnSelectedIndexChanged="gridv_uname_SelectedIndexChanged"  BorderColor="CornflowerBlue" BorderStyle="Solid" BorderWidth="1px">
                                            <EmptyDataTemplate>
                                                <table width="100%">
                                                    <tr style="font-weight: bold; font-size:9pt; color: white; 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;">
                                                            选择
                                                        </td>
                                                        <td align="center" style="color: white;">
                                                            用户姓名
                                                        </td>
                                                        <td align="center" style="color: white;">
                                                            所在部门
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td align="center" colspan="3" style="font-weight: normal; font-size:9pt;">
                                                            没有数据................................
                                                        </td>
                                                    </tr>
                                                </table>
                                            </EmptyDataTemplate>
                                            <Columns>
                                                <asp:TemplateField HeaderText="用户姓名">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lbl_name" runat="server" Text='<%# Bind("uname") %>'></asp:Label>
                                                        <asp:Label ID="_loginid" runat="server" Text='<%# Bind("loginid") %>' Visible="false"></asp:Label>
                                                    </ItemTemplate>
                                                    <ItemStyle Width="30%" />
                                                </asp:TemplateField>
                                              
                                                <asp:BoundField DataField="dept" HeaderText="所在部门" SortExpression="dept" />
                                            </Columns>
                                            <HeaderStyle BackColor="#1471B0" Font-Size="9pt" ForeColor="White" />
                                            <SelectedRowStyle BackColor="#FFFFC0" />
                                            <FooterStyle Font-Size="9pt" />
                                        </asp:GridView>
                                        </div>
                                       
                                    </div>
                                </asp:Panel>
                                <asp:SqlDataSource ID="SqlDataSource_uname" runat="server"></asp:SqlDataSource>         
                
                                                              <div style=" margin-top: 10px; margin-left :1px; width :100%;">留言：<br />
                                        <asp:TextBox ID="TextBox3" runat="server" Height="66px" Width="672px" TextMode="MultiLine"></asp:TextBox></div>
                                </div>
                                <div style="text-align: right; height:27px; ">
                                    &nbsp;
                                    <asp:Label ID="Label3" runat="server" ForeColor="Red"  Text="请选择通知方式！"
                                        Visible="False"></asp:Label>
                                    <asp:CheckBox ID="CheckBox09" runat="server" Text="短信息通知相关人" Checked="True" Enabled="False" /><asp:CheckBox
                                        ID="CheckBox10" runat="server" Text="Email通知相关人" />
                                    <asp:Button ID="Button2" runat="server" Text="确  定" OnClick="Button2_Click"  Height="23px" /><asp:Button
                                        ID="Button3" runat="server" Text="关  闭" OnClick="Button3_Click1"  Height="23px" /></div>
                                        </div>
                            </div>
                        </asp:Panel>
                    </div>
               
            </ContentTemplate>
        </asp:UpdatePanel>
    </form>
</body>
</html>
