<%@ Page Title="Record Data" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="RecordData.aspx.cs" Inherits="SCRAP_WEB._RecordData" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %> 

<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
<script type="text/javascript" src="RecordData.js?v=123"></script>



<asp:Panel ID="Panel1" runat="server" style="overflow:no-display;" Width="100%" Height="600px"> 


 <div id="frommain">
        <div id="g1" class="grouplist">

               <div id="flow"></div>
             
             <div class="form-row">
                <div class="frmrow">
                    <span class="sp1">
                    <label>
                    <asp:Label ID="lblPageName" runat="server"  CssClass="frmheader"  Text="Record Data"  width="120px"></asp:Label>
                   
                    </label>
                    </span>

                    <span class="sp3">
                    <label>
                    <asp:Label ID="lbl_docno" runat="server" CssClass="fontlabel"  ToolTip="codegen"   Text="Doc entry no." width="120px"></asp:Label>
                    <asp:TextBox ID="txt_docno"  runat="server" Width="160px"  ToolTip="codegen" ReadOnly="true" placeholder="---Auto---" CssClass="ctlsearchinput" style="text-align:right;"></asp:TextBox> 
                   
                    </label>
                    </span>
                </div>
            </div>
             <div class="form-row">
                <div class="frmrow">
                   
                    <span class="sp3">
                    <label>
                    <asp:Label ID="lbl_section" runat="server" CssClass="fontlabel"   Text="Section :" width="120px"></asp:Label>
                     <asp:DropDownList ID="ddl_section"  runat="server" Width="160">
                    </asp:DropDownList>
                    </label>
                    </span>
                </div>
            </div>
             <div class="form-row">
                <div class="frmrow">
                    <span class="sp3">
                    <label>
                    <asp:Label ID="lbl_shop" runat="server" CssClass="fontlabel"   Text="Shop :" width="120px"></asp:Label>
                    <asp:TextBox ID="txt_shop"  runat="server" Width="160px" ></asp:TextBox> 
                            <ajax:AutoCompleteExtender 
  ID="ac_shop"  
  BehaviorID="bi_shop"  
  runat="server"  
  CompletionSetCount="10"  
  MinimumPrefixLength="1"  
  TargetControlID="txt_shop"  
  ServicePath="~/Autokeyword.asmx" 
  ServiceMethod="GetCodeFilter" 
  ContextKey="Shop,SCRAP_MASTER,Shop,'',''" 
  CompletionInterval="100" 
  DelimiterCharacters=";," 
  CompletionListCssClass="completionList" 
  CompletionListHighlightedItemCssClass="itemHighlighted"  
  CompletionListItemCssClass="listItem"> 
  </ajax:AutoCompleteExtender>    
                    </label>
                    </span>
                </div>
            </div>
             <div class="form-row">
                <div class="frmrow">
                    <span class="sp3">
                     <div class="column">
                        <label>
                        <div class="column">
                        <div id="lbl_RDate" class="fontlabel" style="width:195px;">
                                Date :</div>
                        </div>
                        <div class="column">
                            <input type="text" placeholder="DD" id="d_RDate"  title="Date"  readonly class="inputcss" style="width:40px;"></div>
                        <div class="column">
                            <input type="text" placeholder="MM" id="m_RDate"  title="Date"   readonly class="inputcss" style="width:40px;"></div>
                        <div class="column">
                            <input type="text" placeholder="YYYY" id="y_RDate"  title="Date"   readonly class="inputcss" style="width:60px;">
                        </div>
                        <div class="column">
                            <asp:ImageButton ID="imgRdate" runat="server"  CssClass="ctldatebutton" ImageUrl="~/image/calendar.png" Height="30"  OnClientClick="Javascript:date('d_RDate','m_RDate','y_RDate');return false;"/>
                        </div>
                        </label>

                        </div>

                       
                    </span>
                </div>
            </div>

             <div class="form-row">
                <div class="frmrow">
                    <span class="sp1">
                    <label>
                    <asp:Button ID="btnnew" CssClass="ctladdbutton" runat="server" Text="New" OnClientClick="JavaScript:location.reload();" />
                    <asp:Button ID="btnsave" CssClass="ctlsavebutton" runat="server" Text="Save" OnClientClick="JavaScript:saverecord();return false;" />
                    </label>
                    </span>
                    <span class="sp3">
                    <label>
                    <asp:Label ID="lbl_scraptype" runat="server" CssClass="fontlabel"   Text="Scrap Type :" width="120px"></asp:Label>
                     <asp:DropDownList ID="ddl_scraptype"  runat="server"  width="160px">
                    </asp:DropDownList>
                    </label>
                    </span>
                </div>
            </div>
             <div class="form-row">
                <div class="frmrow">
                    
                    <span class="sp3">
                    <label>
                      <asp:Label ID="lbl_ngfrom" runat="server" CssClass="fontlabel" ToolTip="*"   Text="(Please Don't forget select the NG From.) NG From :" width="250px"></asp:Label>
                     <asp:DropDownList ID="ddl_ngfrom" ToolTip="*" runat="server" width="160px" >
                               
                    </asp:DropDownList>
                    </label>
                    </span>
                </div>
            </div>
        </div>       

             
<div id="g2" class="grouplist" style="margin-top:-3px;width:99%;overflow:auto;">

 <table class='tbl' id='tbldt' style="width:100%;"><thead><tr>
<th style="width:3%;" colspan="3"></th>

<th style="width:3%;"><span style='font-size:12px;' id='seqno'>No</span></th>
<th style="width:15%;"><span style='font-size:12px;' id='modelcode'>Model Code</span></th>
<th style="width:15%;"><span style='font-size:12px;' id='modelname'>Model Name</span></th>
<th style="width:15%;"><span style='font-size:12px;' id='drawing'>Drawing</span></th>
<th style="width:15%;"><span style='font-size:12px;' id='partname'>Part Name</span></th>
<th style="width:3%;"><span style='font-size:12px;' id='boi'>BOI<br />Factory</span></th>
<th style="width:3%;"><span style='font-size:12px;' id='defect'>Defect</span></th>
<th style="width:7%;"><span style='font-size:12px;' id='defectname'>Defect description</span></th>
<th style="width:7%;"><span style='font-size:12px;' id='qty'>Qty</span></th>
<th style="width:12%;" colspan="2"><span style='font-size:12px;' id='priceperunit'>Price/Unit</span></th>
<th style="width:5%;"><span style='font-size:12px;' id='line'>Line</span></th>
<th style="width:7%;"><span style='font-size:12px;' id='machine'>Machine</span></th>
<th style="width:7%;"><span style='font-size:12px;' id='shift'>Shift</span></th>
<th style="width:15%;"><span style='font-size:12px;' id='pmwscd'>PM WSCD<br />(PM Workshop Code)</span></th>
<th style="width:15%;"><span style='font-size:12px;' id='remark'>Remark</span></th>






<th></th>

                    </tr>
                   
</thead>
<tbody>
<tr id="rowd_0">
    <td style="width:3%;"> 
        <div id="status_0" class="dotstatus"></div>
        </td>
<td style="width:3%;"> 
    
    <asp:ImageButton ID="imgadd_0" runat="server"  CssClass="ctldatebutton" ImageUrl="~/image/rowadd.png" Height="30px"  OnClientClick ="JavaScript:newrows(this);return false;" />
    
</td>
    <td style="width:3%;"> <asp:ImageButton ID="imgdel_0" runat="server"  CssClass="ctldatebutton" ImageUrl="~/image/del.png" Height="30" OnClientClick="JavaScript:gvdelrowid(this,'Do you want to delete the data?');return false;"/>

    </td>
   
      <td style="width:3%;"> 
 <asp:TextBox ID="txt_SeqNo_0" runat="server"   Text="1" Width="30px"></asp:TextBox> 
 </td> 
    
         <td style="width:5%;"> 
 <asp:TextBox ID="txt_ModelCode_0" runat="server"  MaxLength="0" Width="120px" CssClass="ctlsearchinput"></asp:TextBox> 
              <ajax:AutoCompleteExtender 
  ID="ac_modelcode_0"  
  BehaviorID="bi_modelcode_0"  
  runat="server"  
  CompletionSetCount="10"  
  MinimumPrefixLength="1"  
  TargetControlID="txt_ModelCode_0"  
  ServicePath="~/Autokeyword.asmx" 
  ServiceMethod="GetCodeFilter" 
  ContextKey="ITEM_NO,PM.dbo.ITEM_MASTER,ITEM_NO,'',''" 
  CompletionInterval="100" 
  DelimiterCharacters=";," 
  CompletionListCssClass="completionList" 
  CompletionListHighlightedItemCssClass="itemHighlighted"  
  CompletionListItemCssClass="listItem"> 
  </ajax:AutoCompleteExtender>    
 </td> 
   <td style="width:5%;"> 
 <asp:TextBox ID="txt_ModelName_0" runat="server"  MaxLength="0" Width="120px" CssClass="ctlsearchinput"></asp:TextBox> 


 </td> 

       <td style="width:5%;"> 
 <asp:TextBox ID="txt_Drawing_0" runat="server"  MaxLength="0" Width="120px" CssClass="ctlsearchinput" style="text-transform:uppercase;"></asp:TextBox> 
              <ajax:AutoCompleteExtender 
  ID="ac_drawing_0"  
  BehaviorID="bi_drawing_0"  
  runat="server"  
  CompletionSetCount="10"  
  MinimumPrefixLength="1"  
  TargetControlID="txt_Drawing_0"  
  ServicePath="~/Autokeyword.asmx" 
  ServiceMethod="GetCodeFilter" 
  ContextKey="ITEM_NO,PM.dbo.ITEM_MASTER,ITEM_NO,'',''" 
  CompletionInterval="100" 
  DelimiterCharacters=";," 
  CompletionListCssClass="completionList" 
  CompletionListHighlightedItemCssClass="itemHighlighted"  
  CompletionListItemCssClass="listItem"> 
  </ajax:AutoCompleteExtender>  

 </td> 
    


     <td style="width:5%;"> 
 <asp:TextBox ID="txt_PartName_0" runat="server"  MaxLength="0" Width="120px" CssClass="ctlsearchinput"  ></asp:TextBox> 


 
 </td> 



    <td style="width:3%;"> 
 <asp:TextBox id="ddl_Boi_0" runat="server"   Width="60px" style="text-align:center;">
          <%--<asp:ListItem Text="1" Value="1"></asp:ListItem>
          <asp:ListItem Text="2" Value="2"></asp:ListItem>
          <asp:ListItem Text="3" Value="3"></asp:ListItem>
          <asp:ListItem Text="4" Value="4"></asp:ListItem>
          <asp:ListItem Text="5" Value="5"></asp:ListItem>
          <asp:ListItem Text="6" Value="6"></asp:ListItem>
          <asp:ListItem Text="7" Value="7"></asp:ListItem>
          <asp:ListItem Text="8" Value="8"></asp:ListItem>
          <asp:ListItem Text="9" Value="9"></asp:ListItem>
          <asp:ListItem Text="10" Value="10"></asp:ListItem>
          <asp:ListItem Text="11" Value="11"></asp:ListItem>
          <asp:ListItem Text="12" Value="12"></asp:ListItem>--%>
 </asp:TextBox>
 
   <td style="width:3%;"> 

 <asp:TextBox ID="txt_Defect_0"  runat="server" Width="60px" style="text-align:left;"></asp:TextBox> 
  
   </td>
     
   <td style="width:7%;"> 

 <asp:TextBox ID="txt_DefectName_0"  runat="server" Width="200px" style="text-align:left"></asp:TextBox> 
  
   </td>
   <td style="width:3%;"> 
 <asp:TextBox ID="txt_Qty_0" runat="server"  ToolTip="int"  Width="60px" style="text-align: right" onkeyup="if (/[^0-9\.\,]/g.test(this.value)) this.value = this.value.replace(/[^0-9\.\,]/g,'')" ></asp:TextBox> 
 </td>
     <td> 

         <asp:TextBox ID="txt_PricePerUnit_0" runat="server"  ToolTip="int" ReadOnly="true"  Width="100px" style="text-align: right" onkeyup="if (/[^0-9\.\,]/g.test(this.value)) this.value = this.value.replace(/[^0-9\.\,]/g,'')" ></asp:TextBox>
       
     </td>
   <td> 
    <asp:TextBox ID="ddl_Unit_0" runat="server"  Width="80px" ReadOnly="true"></asp:TextBox> 
   </td>
   
  
   <td style="width:7%;"> 
 <asp:TextBox ID="txt_Line_0" runat="server"    Width="80px" style="text-align: left;text-transform:uppercase;" ></asp:TextBox> 
 </td> 

    <td style="width:7%;"> 
 <asp:TextBox ID="txt_Machine_0" runat="server"  Width="120px" style="text-align: right" ></asp:TextBox> 
 </td> 
    <td style="width:7%;"> 
 <asp:TextBox ID="txt_Shift_0" runat="server"  Width="90px" style="text-align: center;text-transform:uppercase"></asp:TextBox> 
 </td> 
      <td style="width:20%;"> 
           <asp:DropDownList id="ddl_PM_0" runat="server"   Width="200" style="text-align:left;">
         
 </asp:DropDownList></td>
         <td style="width:20%;"> 
 <asp:TextBox ID="txt_Remark_0" runat="server"  Width="200" style="text-align:left;"></asp:TextBox> 
 </td> 

   
    </tr>


</tbody></table>
</div>
<div id="g3" class="grouplist">

</div>

     </div>
    </asp:Panel>
</asp:Content>

