<%@ Page Title="Insert Invoice" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="plan_invoice_item.aspx.cs" Inherits="edicenter.plan_invoice_item" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <br /><br /><br /><br />
<div class="container-fluid">
        <div class="row row-offcanvas row-offcanvas-right">

        <div class="col-xs-12 col-sm-12">
    <div class="row">

         <div class="panel panel-primary">
      <div class="panel-heading">&nbsp&nbsp Insert Invoice - Vender รายการสั่งสินค้าที่ยืนยันเรียบร้อยแล้ว(Item Number)&nbsp&nbsp&nbsp&nbsp&nbsp[<%= Session["ULogin"].ToString().Trim() %>]</div>
      <div class="panel-body">
        &nbsp&nbsp
        <asp:Label ID="lblCompany" runat="server" Text="" Font-Bold="true"></asp:Label>
               <br />
        &nbsp&nbsp  
        <asp:Label ID="lblVenderID" runat="server" Text="Vender:" Font-Bold="true"></asp:Label>
        <asp:Label ID="lblVender" runat="server" Text=""></asp:Label>&nbsp&nbsp      
        <asp:Label ID="Label23" runat="server" Text="SANo." Font-Bold="true"></asp:Label>
        <asp:Label ID="lblSANo" runat="server" Text=""></asp:Label>&nbsp&nbsp   
        <asp:Label ID="lblEvent" runat="server" Text="" Font-Bold="true" ForeColor="blue"></asp:Label>&nbsp&nbsp&nbsp&nbsp&nbsp
        <asp:Label ID="lblDateFrm" runat="server" Text="" Font-Bold="true"></asp:Label>&nbsp
        <asp:Label ID="lblTo" runat="server" Text="To"></asp:Label>&nbsp
        <asp:Label ID="lblDateTo" runat="server" Text="" Font-Bold="true"></asp:Label>
        &nbsp&nbsp&nbsp&nbsp
               <br /><br />
        &nbsp&nbsp&nbsp<asp:Label ID="lblResultSearch" runat="server" Text=""></asp:Label>&nbsp
          <br />
&nbsp;<asp:Repeater id="myRepeater" runat="server">
	<HeaderTemplate>
<table class="table table-bordered">
<tr style="background-color:#fa7b16; color:black; font-weight:bold;height:35px;" align="Left">
                <td>No.</td>
                <td>Item</td>
                <td>Locat.</td>
                <td>Plant</td>
                <td>ArtNo.</td>
                <td>MatNo.</td>
                <td>Description</td>
                <td>Quantity</td>
                <td>Unit</td>
                <td width="10%">View</td>
                </tr>           	
   </HeaderTemplate>             
	<ItemTemplate>    
			 <tr style="background-color:#FFFFFF; color:black; height:35px;" align="left">
             <td><asp:Label id="Label5" runat="server" Text='<%# myRepeater.Items.Count + 1 %>' ></asp:Label></td>    
             <td><asp:Label id="Label2" runat="server" Text='<%#  valueTB[cntTB+1].ToString().Trim() %>' ></asp:Label></td>   
             <td><asp:Label id="Label3" runat="server" Text='<%#  valueTB[cntTB+10].ToString().Trim() %>' ></asp:Label></td>
             <td><asp:Label id="Label6" runat="server" Text='<%#  valueTB[cntTB+11].ToString().Trim() %>' ></asp:Label></td>    
             <td><asp:Label id="Label12" runat="server" Text='<%#  valueTB[cntTB+2].ToString().Trim() %>' ></asp:Label></td>   
             <td><asp:Label id="Label13" runat="server" Text='<%#  valueTB[cntTB+3].ToString().Trim() %>' ></asp:Label></td>   
             <td><asp:Label id="Label14" runat="server" Text='<%#  valueTB[cntTB+4].ToString().TrimEnd() %>' width="300px" ></asp:Label></td> 
             <td><asp:Label id="Label16" runat="server" Text='<%#  Text_Qty(valueTB[cntTB+5].ToString().Trim()) %>' ></asp:Label></td>   
             <td><asp:Label id="Label15" runat="server" Text='<%#  valueTB[cntTB+6].ToString().Trim() %>' ></asp:Label></td>      
             <td><input id="btnCF_<%# valueTB[cntTB].ToString() %>" type="button" value="View" onclick="view_click(<%# Convert.ToInt32(valueTB[cntTB+1]) %>)" <%# cntTB+=12 %> class="btn-block" /></td>               
             </tr>
   </ItemTemplate>
      
        <AlternatingItemTemplate>          
			 <tr style="background-color:#20B2AA; color:black; height:35px;" align="left">
             <td><asp:Label id="Label2" runat="server" Text='<%# myRepeater.Items.Count + 1 %>' ></asp:Label></td>
             <td><asp:Label id="Label7" runat="server" Text='<%# valueTB[cntTB+1].ToString().Trim() %>' ></asp:Label></td>   
             <td><asp:Label id="Label4" runat="server" Text='<%# valueTB[cntTB+10].ToString().Trim() %>' ></asp:Label></td>   
             <td><asp:Label id="Label8" runat="server" Text='<%# valueTB[cntTB+11].ToString().Trim() %>' ></asp:Label></td>                  
             <td><asp:Label id="Label10" runat="server" Text='<%# valueTB[cntTB+2].ToString().Trim() %>' ></asp:Label></td>  
             <td><asp:Label id="Label18" runat="server" Text='<%# valueTB[cntTB+3].ToString().Trim() %>' ></asp:Label></td>                 
             <td><asp:Label id="Label19" runat="server" Text='<%# valueTB[cntTB+4].ToString().TrimEnd() %>' width="300px" ></asp:Label></td> 
             <td><asp:Label id="Label21" runat="server" Text='<%# Text_Qty(valueTB[cntTB+5].ToString().Trim())  %>' ></asp:Label></td>  
             <td><asp:Label id="Label20" runat="server" Text='<%# valueTB[cntTB+6].ToString().Trim() %>' ></asp:Label></td>    
             <td><input id="btnCF_<%# valueTB[cntTB].ToString() %>" type="button" value="View" onclick="view_click(<%# Convert.ToInt32(valueTB[cntTB+1]) %>)" <%# cntTB+=12 %> class="btn-block" style="color:black"/></td>                             
             </tr>		           
	</AlternatingItemTemplate> 

	</asp:Repeater> </table>
               <br />
        
      </div>
    </div>
                
      </div>
            </div>

         </div>

       <script src="css/js/jquery.min.js"></script>
       <script src="css/js/bootstrap.min.js"></script>
       <script type="text/javascript">
           function view_click(id)
           {
               window.open("plan_invoice.aspx?DC="+id,"_self"); 
           }
       </script>
    </div>
</asp:Content>
