<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="application.aspx.cs" Inherits="Web.m.cg.application.application" %>

<!DOCTYPE html>

<html>
<head id="Head1" runat="server">
    <title>OA标题页</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="format-detection" content="telephone=no" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<link type="text/css" rel="stylesheet" href="/css/reset.css" />
<link type="text/css" rel="stylesheet" href="/css/base.css" />
<script type="text/javascript" src="/js/jquery.min.js"></script>
<style type="text/css">
   #newsArticle img{width:100%!important;height:auto!important;max-width:640px;}
  </style>
</head>
<body class="bg2">
    <form id="fom" runat="server">
    <section id="container">
    <div class="space-10"></div>
    <section class="bg-fff pad9 marLR9 opacity summary">
      <h3 class="color-black bold lineH17 padLR3"> 
      <!--此处添加标题（小字）-->

      	</h3>
    <div class="space-10"></div>
        <h2 class="f17 color-black lineH22 padLR3" style ="text-align :right ;">
        <!--此处添加标题（大字）-->
                &nbsp;<asp:HyperLink ID="HyperLink3" runat="server" NavigateUrl="applicationserch.aspx" >查询</asp:HyperLink>
          </h2>
        <div class="padLR3 oh"><span class="fr pointer fontSize" id="fontSize">大字</span></div>
        <article class="newsArticle" id="newsArticle">

            <div class="color-black padLR6 marB5">
   <!--此处添加正文-->
                     <asp:Panel ID="plAdd" runat ="server" >
   
       <div style ="width :100%"> <asp:TextBox ID="tbTitle" runat="server" Width="100%" Rows="2"  MaxLength="25" TextMode="MultiLine" 
           placeholder="请填写项目名称"></asp:TextBox></div> 


                    
       <div  style ="text-align :center; width :100%; margin-bottom :10px; margin-top :10px; "> 
           <asp:Button ID="btAddTitle" runat="server"  Text="添加明细" 
                ValidationGroup="AddTitle" CssClass="rh25" OnClick="btAddTitle_Click" />
        <div  style ="text-align :center; width :100%; margin-bottom :10px; margin-top :10px; "> 
                          <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                              ControlToValidate="tbTitle" Display="Dynamic" 
                            ErrorMessage="请填写采购事由或项目名称" ValidationGroup="AddTitle" 
                Font-Size="Small" ForeColor="Red"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator5" 
                runat="server" ControlToValidate="tbTitle" Display="Dynamic" 
                ErrorMessage="采购事由或项目名称不能超过50个字符" Font-Size="Small" 
                ValidationExpression="^[\S\s]{0,48}$" ValidationGroup="AddTitle" 
                    ForeColor="Red"></asp:RegularExpressionValidator></div> 
                    </div> 

                     </asp:Panel> 

    <asp:Panel ID="pnList" runat="server" Visible ="false" >
        <div  class ="textrowleft">
         
             编号：<asp:Label ID="lbIouid" runat="server" ></asp:Label></div> 
           <div  class ="textrowleft">项目：<asp:Label ID="lbTitle" runat="server"></asp:Label></div> 
       <div  class ="textrowleft">
            合计：<asp:Label ID="lbCount" runat="server"></asp:Label>
           元 <asp:Button ID="btCheck" runat="server" OnClick="btCheck_Click" Text="提交审核" /></div>
                         <div class ="rh25 " style="text-align :left ;">       
                <asp:FileUpload ID="FileUpload1" runat="server" />
                        &nbsp;<asp:Button ID="btUpload" runat="server" Text="上传" onclick="btUpload_Click" />     单个附件不大于50M
           </div> 
                         <div>
                            <asp:Label ID="lbFileNameList" runat="server" Text="已经上传的文件：" Visible="False"></asp:Label>
                            <asp:CheckBoxList ID="cblFileList" runat="server">
                            </asp:CheckBoxList>
                        </div>
                         
          <asp:DataList ID="DataList1" runat="server" Width="100%" CellPadding="4" 
                    ForeColor="#333333" OnItemCommand="DataList1_ItemCommand">
                   <AlternatingItemStyle BackColor="White" />
                   <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                   <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                   <ItemStyle BackColor="#E3EAEB" />
                   <ItemTemplate>

                   <table border = "1" class ="table" cellpadding ="0" cellspacing ="0" style ="width :100%">
                   <tr>
                   <td class ="rh25 "  style =" width:50px;text-align :center ">名称</td>
                   <td class ="rh25 "><asp:Label ID="Labela1" runat="server" Text='<%# Bind("project") %>'></asp:Label>&nbsp;  
                       <asp:Label ID="lbId" runat="server" Text='<%# Bind("id") %>' Visible ="false" ></asp:Label>

                          <asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" Text="删除"  CommandName="del"  onClientClick="return confirm('确认删除吗？')" ></asp:LinkButton>&nbsp;
                 
                   </td>
                   </tr>
                   
                   <tr>
                   <td class ="rh25 " style =" width:50px;text-align :center ">数量</td>
                   <td class ="rh25 "><asp:Label ID="Label12" runat="server" Text='<%# Bind("number") %>'></asp:Label>
                       <asp:Label ID="Label3" runat="server" Text='<%# Bind("unit") %>'></asp:Label>&nbsp;</td>
                   </tr>

                   <tr>
                   <td class ="rh25 " style =" width:50px;text-align :center ">单价</td>
                   <td class ="rh25 "><asp:Label ID="Label13" runat="server" Text='<%# Bind("price") %>'></asp:Label>元</td>
                   </tr>

             
                   <tr>
                   <td class ="rh25 " style =" width:50px;text-align :center ">总价</td>
                   <td class ="rh25 "><asp:Label ID="Label5" runat="server" Text='<%# Bind("total") %>'></asp:Label>元</td>
                   </tr>
          
                    <tr>
                   <td class ="rh25 " style =" width:50px;text-align :center ">用途</td>
                   <td class ="rh25 "><asp:Label ID="Label6" runat="server" Text='<%# Bind("user") %>'></asp:Label>&nbsp;</td>
                   </tr>

                   </table> 
                   <div class ="space-10 "></div>
                       
                   </ItemTemplate>
                    
                </asp:DataList>

           <table style="width:100%">
               <tr>
                  <td style="width:60px" class ="textrowcenter">名称：</td>
                    <td  class ="textrowleft" >
                       <asp:TextBox ID="tbProject" runat="server" Width="96%"  CssClass ="textbox20" placeholder="必填"></asp:TextBox>
                      </td>
                   <td style="width :60px;">&nbsp;</td>
               </tr>
                <tr>
               <td style="width:60px" class ="textrowcenter">数量：</td>
                <td class="textrowleft">
                    <asp:TextBox ID="tbNumber" runat="server" Width="96%"  placeholder="必填"  CssClass ="textbox20"></asp:TextBox>
                   </td>
              <td style="width :60px;">
                    <asp:DropDownList ID="ddlUnit" runat="server">
                    </asp:DropDownList>
                  </td>
            </tr>
                           <tr>
                <td style="width:60px" class ="textrowcenter">单价：</td>
                <td class="textrowleft">
                    <asp:TextBox ID="tbPrice" runat="server" Width="96%"  CssClass ="textbox20" placeholder="必填"></asp:TextBox>
                </td>
                 <td style="width :60px;">元</td>
            </tr>
                           <tr>
                <td style="width:60px" class ="textrowcenter">用途：</td>
                <td class="textrowleft">
                    <asp:TextBox ID="tbUser" runat="server" Width="96%"  CssClass ="textbox20"></asp:TextBox>
                </td>
            <td style="width :60px;">&nbsp;</td>
            </tr>

               </table> 

                    <div style ="text-align :center ;  margin-top :15px;">
                    <asp:Button ID="btTijiao" runat="server" OnClick="btTijiao_Click" Text="添加" ValidationGroup="list" />
                   <div  style ="text-align :center; width :100%; margin-bottom :10px; margin-top :10px; ">    <span style="color :Red ">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="tbProject" Display="Dynamic" ErrorMessage="请填写名称" ForeColor="Red" ValidationGroup="list"></asp:RequiredFieldValidator>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="tbNumber" Display="Dynamic" ErrorMessage="请填写数量" ForeColor="Red" ValidationGroup="list"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator18" runat="server" ControlToValidate="tbNumber" Display="Dynamic" ErrorMessage="数量必须大于0。" ForeColor="Red" ValidationExpression="^(?:[1-9][0-9]*|0)(?:\.[0-9]+)?$" ValidationGroup="list"></asp:RegularExpressionValidator>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="tbPrice" Display="Dynamic" ErrorMessage="请填写单价" ForeColor="Red" ValidationGroup="list"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="tbPrice" Display="Dynamic" ErrorMessage="单价必须大于0。" ForeColor="Red" ValidationExpression="^(?:[1-9][0-9]*|0)(?:\.[0-9]+)?$" ValidationGroup="list"></asp:RegularExpressionValidator>
                    </span></div> 
                        </div>
</asp:Panel>         
          <div class="space-20"></div>
        <div class="space-30">
                <div class="mhome">
                    <asp:ImageButton ID="imgBHome" runat="server" ImageUrl="/css/images/home.png" 
                        Height="30px" Width="30px" onclick="imgBHome_Click"></asp:ImageButton></div>
        <div  class ="mexit">
            <asp:ImageButton ID="imgBExit" runat="server" ImageUrl="/css/images/exit.png" 
                Height="30px" Width="30px" onclick="imgBExit_Click"></asp:ImageButton></div>
        </div>
   <!--正文结束-->     
           </div>
        </article>
  
       
  
    </section><!--summary end-->
    <div class="space-20"></div>
</section><!--container end-->
<script type="text/javascript" src="/js/base.js"></script>
        </form>
    </body>
</html>
