<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="handle.aspx.cs" Inherits="Web.ys.show.handle" %>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>OA标题页</title>
    <link href="../../css/css.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="fom" runat="server">
                       <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>    
        <div id ="main-c-03-right" >

            <div id="main-c-03-right02-main">
             <div style ="text-align :left "> 



<!--栏目开始 -->


               <table style=" width :100%" ><tr><td style="width :50%; vertical-align :top ; padding-left :5px; padding-right :15px">
                   <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" Visible ="false"  />
                                </ContentTemplate>
        <Triggers><asp:PostBackTrigger ControlID="Button1" /></Triggers>
    </asp:UpdatePanel>
     <asp:GridView ID="GridView2" runat="server" Width="100%" 
                BorderWidth="1px" CssClass="gv" AutoGenerateColumns="False" 
                onselectedindexchanging="GridView2_SelectedIndexChanging" OnRowDataBound="GridView2_RowDataBound" OnRowCreated="GridView2_RowCreated" >
            <RowStyle BorderWidth="1px" CssClass="gvrow" />
                  <Columns>
                  <asp:BoundField DataField="id" HeaderText="申请编号" ReadOnly="True" />
                  <asp:BoundField DataField="applicationtime" HeaderText="申请时间" ReadOnly="True" />
                   
                                         <asp:TemplateField HeaderText="项目名称" ShowHeader="False">
                   <ItemTemplate>
                       <asp:LinkButton ID="LinkButton_Trouble" runat="server" CausesValidation="False" 
                            CommandName="Select" Text='<%# Bind("name") %>'></asp:LinkButton>
                                   <asp:Label ID="lb_Trouble" runat="server" Text='<%# Bind("name") %>' Visible ="false" ></asp:Label>
                   </ItemTemplate>
                   </asp:TemplateField>
                      
                      <asp:BoundField DataField="department" HeaderText="部门" ReadOnly="True" />
                      <asp:BoundField DataField="categories" HeaderText="类别" ReadOnly="True" />
                      <asp:BoundField DataField="pagetype" HeaderText="纸张" ReadOnly="True" />
                      <asp:BoundField DataField="pagenumber" HeaderText="张数" ReadOnly="True" />
          <asp:BoundField DataField="staffname" HeaderText="申请人" ReadOnly="True" />
                      
                                

                </Columns>
            <HeaderStyle BorderWidth="1px" CssClass="gvhead" />
        </asp:GridView>
                       </td>
               <td style="width :50%; vertical-align :top ;padding-top :7px; padding-left :7px; padding-right :17px;">
                  <asp:Panel ID ="PanelEdit" runat ="server" Visible ="false" BackColor="#cccccc" >
                    <div style ="padding :10px;">
                   <div  class ="gv2row ">申请编号：<asp:Label ID="lbId" runat="server" ></asp:Label>
                        申请人：<asp:Label ID="lbStaffname" runat="server"></asp:Label>
                        &nbsp;<asp:Label ID="lbState" runat="server"></asp:Label>
                        <asp:Label ID="lbStaffid" runat="server" Visible ="false" ></asp:Label>              <asp:Label ID="lbEmail" runat="server"  Visible ="false"></asp:Label>
                        <asp:Label ID="lbSMS" runat="server"  Visible ="false" ></asp:Label>
                        <asp:Label ID="lbChat" runat="server"  Visible ="false"></asp:Label>
                        </div>
                    <div class ="gv2row ">名称：<asp:Label ID="lbName" runat="server" ></asp:Label> </div>
                    <div class ="gv2row ">
                      点击下面链接下载文件：  <asp:BulletedList ID="BulletedList1" runat="server" DisplayMode="LinkButton" OnClick="BulletedList1_Click" Font-Bold="True" Font-Size="Large" ForeColor="Red">
                        </asp:BulletedList></div>
                    <div class ="gv2row ">纸张规格：<asp:Label ID="lbPagetype" runat="server"></asp:Label>
                        双面：<asp:Label ID="lbPagedouble" runat="server"></asp:Label>
                        每份张数：<asp:Label ID="lbEachnumber" runat="server"></asp:Label>
                        份数：<asp:Label ID="lbCopyiesnumber" runat="server"></asp:Label>
                        &nbsp;合计用纸<asp:Label ID="lbPagenumber" runat="server"></asp:Label>张 <asp:Button ID="btEdit" runat="server" OnClick="btEdit_Click" Text="修改" />
                        </div>
                        <div style ="padding-bottom :5px; padding-top :5px;" runat ="server" id="divEditPaper" visible ="false" >
        <table  style ="  border = "1" class ="table " cellpadding ="0" cellspacing ="0">
                                <tr>
                    <td class="tabletd_right ">
                        纸张规格</td>
                    <td class="tabletd_left ">
                        <asp:RadioButtonList ID="rblPagetype" runat="server" RepeatDirection="Horizontal" CssClass="toolsbasicstyle">
                            <asp:ListItem>A4</asp:ListItem>
                            <asp:ListItem>A3</asp:ListItem>
                            <asp:ListItem>16K</asp:ListItem>
                            <asp:ListItem>8K</asp:ListItem>
                            <asp:ListItem>B5</asp:ListItem>
                            <asp:ListItem>B4</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td class="tabletd_right ">
                        双面印刷</td>
                    <td class="tabletd_left ">
                        <asp:RadioButtonList ID="rblPagedouble" runat="server" RepeatDirection="Horizontal" CssClass="toolsbasicstyle">
                            <asp:ListItem>是</asp:ListItem>
                            <asp:ListItem>否</asp:ListItem>
                           
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td class ="tabletd_right " >
                        印刷份数</td>
                    <td class ="tabletd_left ">

                        <asp:TextBox ID="tbCopyiesnumber" runat="server" MaxLength="25" Width="80px" CssClass="toolsbasicstyle"></asp:TextBox>
                        <span style="color :Red ">（必填）<asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" 
                            ControlToValidate="tbCopyiesnumber" Display="Dynamic" ErrorMessage="印刷数量不能为空。" 
                            ValidationGroup="AddJilu" ForeColor="Red"></asp:RequiredFieldValidator>
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                                                ControlToValidate="tbCopyiesnumber" Display="Dynamic" ErrorMessage="请输入整数。" 
                                                ValidationExpression="^\+?[0-9]*$" 
                                                ValidationGroup="AddJilu" ForeColor="Red"></asp:RegularExpressionValidator></span></td>
                </tr>
                

                <tr>
                    <td class="tabletd_right ">
                        每份用纸张数</td>
                    <td class="tabletd_left ">
                        <asp:TextBox ID="tbEachnumber" runat="server" MaxLength="25" Width="50px" CssClass="toolsbasicstyle"></asp:TextBox>
                        <span style="color :Red ">（必填）<asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" 
                            ControlToValidate="tbEachnumber" Display="Dynamic" ErrorMessage="每份用纸张数不能为空。" 
                            ValidationGroup="AddJilu" ForeColor="Red"></asp:RequiredFieldValidator>
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                                                ControlToValidate="tbEachnumber" Display="Dynamic" ErrorMessage="请输入整数。" 
                                                ValidationExpression="^\+?[0-9]*$" 
                                                ValidationGroup="AddJilu" ForeColor="Red"></asp:RegularExpressionValidator></span></td>
                </tr>
            <tr>
                <td class="tabletd_right ">&nbsp;</td>
                <td class="tabletd_left ">
                    <asp:Button ID="btEditpaper" runat="server" OnClick="btEditpaper_Click" Text="提交" ValidationGroup="AddJilu" />
                </td>
            </tr>
            </table>
                            </div>

                    </div> 

           <div style =" margin   :10px;"> 
               <div class ="gv2row ">工作处理进程：</div>
               <asp:DataList ID="DataList1" runat="server" Width="100%">
                <AlternatingItemStyle  />
              <ItemTemplate>
              <div  class ="gv2row ">
                <div> 
                    <asp:Label ID="lbDate" runat="server" Text='<%# Bind("operationtime") %>'></asp:Label>&nbsp;
                    <asp:Label ID="Label11" runat="server" Text='<%# Bind("staffname") %>'></asp:Label>：
                    <asp:Label ID="Label13" runat="server" Text='<%# Bind("operation") %>'></asp:Label>&nbsp;
                    <asp:Label ID="Label1" runat="server" Text='<%# Bind("remarks") %>'></asp:Label>

                </div> 
                </ItemTemplate>
          </asp:DataList></div> 

                    <div>
                        <table style="width:100%"><tr><td style="width :150px">
<asp:RadioButtonList ID="rblState" runat="server" RepeatDirection="Horizontal">
                            <asp:ListItem Selected="True" Value="印刷完成">印刷完成</asp:ListItem>
                            <asp:ListItem Value="退回">退回</asp:ListItem>
                        </asp:RadioButtonList>
                          
                                   </td>
                            <td >
                                存放位置：<asp:DropDownList ID="ddlPlace" runat="server"></asp:DropDownList>
                            </td>

                               </tr>
                            <tr>
                                <td colspan="2">&nbsp;备注：<asp:TextBox ID="tbRemarks" runat="server" Width="300px"></asp:TextBox>
                                </td>
                            </tr>
                        </table>
          
                        <div class ="gv2row "> 
                            &nbsp;<asp:CheckBox ID="cbEmail" runat="server" Text="邮件通知" Visible="false" />
                            <asp:CheckBox ID="cbSMS" runat="server" Text="短信通知" Visible="false" />
                            <asp:CheckBox ID="cbChat" runat="server" Text="微信通知" Visible="false" />
&nbsp; 
                            
                            <asp:Button ID="btCheck" runat="server" CausesValidation="False" onclick="btCheck_Click" Text="提交" /></div> 
                    </div>
                 <div style =" text-align :right; padding-bottom :10px; padding-right :10px">
                     <asp:Button ID="btBack" runat="server" CausesValidation="False" onclick="btBack_Click" Text="返回" />
                    
            </div>

                </asp:Panel>
               </td>
                   </tr></table>
    </div>
            </div>
        </form>
    </body>
</html>