<%@ page language="C#" autoeventwireup="true" inherits="myWorks_toApprovedUpdate, 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 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 ssx(op,idd)
        {
            var wy ="../myApp/checkLeaderWords.aspx?type="+idd+"&id="+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 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%; ">
                    <table width="100%" >
                        <tr>
                            <td align="left">
                                目前位置：待办任务 - 待批的申请 - 待批文件修改申请</td>
                            <td align="right">
                        <asp:Label ID="Label1" runat="server" Font-Bold="False" Font-Size="9pt" ForeColor="Red" Width="300px"></asp:Label>
                                <asp:Button ID="Button1" runat="server" Text="(批量)批准" OnClick="Button1_Click"  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" style="width: 100%; font-size:9pt">
                        <asp:GridView ID="GridView1" runat="server" Style="width: 100%; text-align: center"
                            Font-Bold="False" Font-Size="9pt" DataSourceID="SqlDataSource1" AllowPaging="True"
                            AutoGenerateColumns="False" OnDataBound="GridView1_DataBound" OnPageIndexChanging="GridView1_PageIndexChanging"
                            PageSize="30">
                            <Columns>
                                <asp:BoundField DataField="id" HeaderText="id" Visible="False" />
                                <asp:TemplateField   ItemStyle-Width="5%">
                                    <HeaderTemplate  >
                                        <asp:CheckBox ID="CheckBox1" runat="server" Text ="全选"  AutoPostBack="True" OnCheckedChanged="CheckBox1_CheckedChanged" />
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <asp:CheckBox ID="CheckBox2" runat="server" AutoPostBack="True" OnCheckedChanged="CheckBox2_CheckedChanged"
                                         ValidationGroup='<%# Eval("id") %>'   /> 
                                           
                                    </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="文件名称"   ItemStyle-Width="25%">
                                    <ItemTemplate>
                                        <a href='../Document/openDoc.aspx?from=vtfile&id=<%# Eval("fid") %>&map=fileapp' style="color: Blue;"
                                            target="_blank">
                                            <%# Eval("fname") %>
                                        </a>
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Left" />
                                </asp:TemplateField>
                                
                                <asp:BoundField DataField="version" HeaderText="版本号" />
                                <asp:TemplateField HeaderText="申请人">
                                    <ItemTemplate>
                                        <asp:Label ID="Label1" runat="server" Text='<%# getUname(Eval("lenderId")) %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                 <asp:TemplateField HeaderText="批准人" >
                                        <ItemTemplate>
                                        
                                         <asp:LinkButton ID="linkb_checkleaderwords" runat="server"   ValidationGroup  = '<%# Eval("id") %>' ForeColor="Blue"   >     <%# getUname(Eval("approverid")) %>  </asp:LinkButton>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                <asp:TemplateField HeaderText="修改理由" ItemStyle-HorizontalAlign="Left">
                                    <ItemTemplate>
                                        <asp:Label ID="Label3" runat="server" Style="cursor: pointer" Text='<%# Getsub(Eval("lendReason")) %>'
                                            ToolTip='<%# Eval("lendReason") %>'></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Left" />
                                </asp:TemplateField>
                                <asp:BoundField DataField="cdate" HeaderText="申请日期" DataFormatString="{0:yy-MM-dd}" />
                            </Columns>
                            <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>
                                        <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>
                            <HeaderStyle BackColor="#1471B0" Font-Bold="True" ForeColor="White" />
                            <AlternatingRowStyle BackColor="White" />
                        </asp:GridView>
                         <asp:SqlDataSource ID="SqlDataSource1" runat="server"></asp:SqlDataSource>
                    </div>
                   
                   
                    <asp:Panel ID="Panel1" runat="server" Visible="false" Font-Size="10">
                        <div style="position: absolute; z-index: 0; left: 120px; 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="text-align: center" AutoGenerateColumns="False"
                                Font-Size="9pt" Width="685px">
                                <Columns>
                                    <asp:BoundField DataField="id" HeaderText="id" Visible="False" />
                                    <asp:BoundField DataField="fileno" HeaderText="文件编号" />
                                    <asp:TemplateField HeaderText="文件名称">
                                        <EditItemTemplate>
                                            <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("fname") %>'></asp:TextBox>
                                        </EditItemTemplate>
                                        <ItemTemplate>
                                            <asp:Label ID="Label2" runat="server" Text='<%# Bind("fname") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="修改理由">
                                        <ItemTemplate>
                                            <asp:Label ID="lblReason" runat="server" Style="cursor: pointer" Text='<%# Getsub(Eval("lendReason")) %>'
                                                ToolTip='<%# Eval("lendReason") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="申请人">
                                        <ItemTemplate>
                                            <asp:Label ID="lbllender" runat="server" Text='<%# getUname(Eval("lenderId")) %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                                <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="671px" 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>
                                &nbsp;<asp:CheckBox ID="chk_msg" runat="server" Text="短消息通知相关人" Checked="True" Enabled="False" />
                                <asp:CheckBox ID="chk_email" 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_Click"  Height="23px" />
                            </div>
                            </div>
                        </div>
                    </asp:Panel>
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
    </form>
</body>
</html>
