<%@ Page Title="Register Equipment" Language="C#" MasterPageFile="~/setting/Setting.Master" AutoEventWireup="true" CodeBehind="RegisterEquipment.aspx.cs" Inherits="CheckSheet.RegisterEquipment" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
      <script type="text/javascript" src="RegisterEquipment.js?v=012"></script>

      <div id="frommain">
         <div id="g0" class="grouplist">
              <div class="form-row">
                <div class="frmrow">
                    <span class="sp1">
                    <label>
                            <div id="sthd" class="dotstatus" style="background-color:#71C709;"></div><asp:Label ID="lblPageName" runat="server"  CssClass="frmheader"  Text="Equipment list"  width="250px"></asp:Label>
                   
                    </label>
                    </span>
                    </div>
                </div>
             <div class="form-row">
                <div class="frmrow">
                   
                    <span class="sp3">
                    <label>
                  
                             <asp:Button ID="btnaddline" CssClass="button" runat="server" Text="Register line" style="width:150px;color:white;padding:1em;" OnClick="btnaddline_Click"   />


                    </label>
                    <label>
                  
                             <asp:Button ID="btnaddmachine" CssClass="button" runat="server" Text="Register machine" style="width:150px;color:white;padding:1em;"  OnClientClick="javascript:link('RegisterMachine');return false;"   />


                    </label>
                 
                    </span>
                    
                </div>
             </div>
            <br />
             <div class="form-row">
                <div class="frmrow">
                   
                    <span class="sp1">
                    <label>
                    <asp:Label ID="lbl_lamp" runat="server" CssClass="fontlabel"   Text="Factory name (LAMP) :" width="150px"></asp:Label>
                     <asp:TextBox ID="txt_lamp"  runat="server" Width="250" ToolTip="*Factory(Lamp)" CssClass="ctlsearchinput" style="text-transform: uppercase;">
                    </asp:TextBox>
                    <asp:Button ID="btnfil_lamp" runat="server" Text="&nbsp;" CssClass="ctlsearchbutton"  OnClientClick="JavaScript:filterpopup('MainContent_txt_lamp','MainContent_txt_lamp','lamp','lamp','LineGroupMaster','');return false;"  />

                    </label>
                    </span>
                </div>
            </div>
             <div class="form-row">
                <div class="frmrow">
                   <span class="sp1">
                    <label>
                    <asp:Label ID="lbl_linename" runat="server" CssClass="fontlabel"   Text="Line name :" width="150px"></asp:Label>
                     <asp:TextBox ID="txt_linename"  runat="server" Width="250" ToolTip="*Line name" CssClass="ctlsearchinput">
                      </asp:TextBox>
                         <asp:Button ID="btnfil_linename" runat="server" Text="&nbsp;" CssClass="ctlsearchbutton"  OnClientClick="JavaScript:filterpopup('MainContent_txt_linename','MainContent_txt_linename','linename','linename','LineGroupMaster','$and lamp =\''+$('#MainContent_txt_lamp').val()+'\'');return false;"  />
                                      <asp:TextBox ID="txt_linegroup"  runat="server" Width="1" style="border-style:none;box-shadow:none;" ></asp:TextBox>

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

                <div class="form-row">
                <div class="frmrow">
                   
                    <span class="sp1">
                    <label>
                    <asp:Label ID="lbl_model" runat="server" CssClass="fontlabel"   Text="Model :" width="150px"></asp:Label>
                     <asp:TextBox ID="txt_model"  runat="server" Width="250" ToolTip="*Model" CssClass="ctlsearchinput" >
                    </asp:TextBox>
                    <asp:Button ID="btnfil_model" runat="server" Text="&nbsp;" CssClass="ctlsearchbutton"  OnClientClick="JavaScript:filterpopup('MainContent_txt_partnumber','MainContent_txt_model','partnumber','model','LineGroupMaster','$and linename =\''+$('#MainContent_txt_linename').val()+'\'');return false;"  />
        <%--                $and usercode =\''+$('#lbluserid').html()+'\''--%>
                           <asp:TextBox ID="txt_partnumber"  runat="server" Width="1" style="border-style:none;box-shadow:none;" >
                    </asp:TextBox>

                    </label>
                    </span>
                </div>
            </div>
             
                            <div class="form-row">
                <div class="frmrow">
                   
                    <span class="sp2">
                    <label>
                      <asp:Button ID="btnselect" CssClass="button" runat="server" Text="Select" style="width:150px;color:white;padding:1em;" OnClientClick="javascript:showdata();return false;"   />


                    </label>
                    </span>
                </div>
            </div>            
             
             
             <br />



        </div>
          
        <div id="g1" class="grouplist">
              <div class="form-row">
                <div class="frmrow">
                 
                      <span class="sp1">
                    <label>
                     <div class="dotstatus" style="background-color:#71C709;"></div><asp:Label ID="lblmachine" CssClass="content"  runat="server" Text="Machine"></asp:Label>

                       


                    </label>
                      <label>
                  
                       <asp:Button ID="btninspection" CssClass="button" runat="server" Text="Add" style="width:40px;color:white;padding:1em;" OnClick="btninspection_Click"  />


                    </label>
                    </span>
                    
                </div>
             </div>
      <br />
            <div id="gtbl" class="grouplist" style="margin-top:-2px;max-height:170px;width:100%;overflow:auto;" onscroll='getnext_item()'>
               <table class='tbl' id='tbldt' style="width:1010px;"><thead><tr>


<th style="width:15%;"><span style='font-size:12px;' id='lamp'>Factory (LAMP)</span></th>
<th style="width:15%;"><span style='font-size:12px;' id='linename'>Line name</span></th>
<th style="width:15%;"><span style='font-size:12px;' id='model'>Model</span></th>
<th style="width:20%;"><span style='font-size:12px;' id='machinename'>Machine name</span></th>
<th style="width:10%;"><span style='font-size:12px;' id='machineno'>Machine no</span></th>
<th style="width:3%;" colspan="2"><span style='font-size:12px;' id='control'>Edit/Delete</span></th>

 </tr>
                   
</thead>
<tbody id="tbdy0">
<tr>
  

   
     
  


    
         <td style="width:5%;"> 
         <asp:Label ID="txt_lamp_0" runat="server"  MaxLength="0" Width="95%" style="border-style:none;box-shadow:none;" ></asp:Label> 
 
 </td> 
   <td style="width:5%;"> 
 <asp:Label ID="txt_linename_0" runat="server"  MaxLength="0" Width="95%" style="border-style:none;box-shadow:none;" ></asp:Label> 


 </td> 
  <td style="width:5%;"> 
 <asp:Label ID="txt_model_0" runat="server"  MaxLength="0" Width="95%" style="border-style:none;box-shadow:none;" ></asp:Label> 


 </td> 
       <td style="width:5%;"> 
 <asp:Label ID="txt_machinename_0" runat="server"  MaxLength="0" Width="95%" style="font-size:12px;line-height:12px;border-style:none;box-shadow:none;" ></asp:Label> 
            

 </td> 
    
       <td style="width:5%;"> 
 <asp:Label ID="txt_machineno_0" runat="server"  MaxLength="0" Width="95%" style="border-style:none;box-shadow:none;" ></asp:Label> 
            

 </td> 

      <td style="width:30px;"> <asp:Button ID="add_0" CssClass="button" runat="server"  Text="Edit" style="max-width:60px;max-height:60px;color:white;margin-top:-5px;background-color:#E3BC08;padding:1em;"  OnClientClick="javascript:editmc(this);return false;" />

    </td>

       <td style="width:30px;"> <asp:Button ID="del_0" CssClass="button" runat="server"  Text="Delete" style="max-width:60px;max-height:60px;color:white;margin-top:-5px;background-color:#E3BC08;padding:1em;"  OnClientClick="javascript:delmc(this);return false;" />


    </td>
    <td style="border-style:none;">
         <asp:Label ID="txt_partnumber_0" runat="server"  MaxLength="0" Width="1px" style="border-style:none;box-shadow:none;color:transparent;" ></asp:Label> 

    </td>
       <td style="border-style:none;">
         <asp:Label ID="txt_linegroup_0" runat="server"  MaxLength="0"  Width="1px" style="border-style:none;box-shadow:none;color:transparent;" ></asp:Label> 

    </td>

    </tr>

</tbody></table>
             </div>

            <div class="form-row">
                <div class="frmrow">
                 <span class="sp1">
                    <label>
                     <div class="dotstatus" style="background-color:#71C709;"></div><asp:Label ID="lbljig" CssClass="content"  runat="server" Text="Tool"></asp:Label>

                       


                    </label>
              
                    <label>
                  
                       <asp:Button ID="btnaddjig" CssClass="button" runat="server" Text="Add" style="width:40px;color:white;padding:1em;" OnClick="btnaddjig_Click"   />


                    </label>
                    </span>
                    
                </div>
             </div>
            <br />
            <div id="gtbl1" class="grouplist" style="margin-top:5px;max-height:170px;width:100%;overflow:auto;" onscroll='getnext_item1()'>
               <table class='tbl' id='tbldt1' style="width:1010px;"><thead><tr>


<th style="width:15%;"><span style='font-size:12px;' id='lamp0'>Factory (LAMP)</span></th>
<th style="width:15%;"><span style='font-size:12px;' id='linename0'>Line name</span></th>
<th style="width:15%;"><span style='font-size:12px;' id='model0'>Model</span></th>
<th style="width:15%;"><span style='font-size:12px;' id='jigname'>Tool name</span></th>
<th style="width:15%;"><span style='font-size:12px;' id='serial'>Serial</span></th>
<th style="width:15%;"><span style='font-size:12px;' id='expdate'>Calibration</span></th>
<th style="width:3%;" colspan="2"><span style='font-size:12px;' id='control0'>Edit/Delete</span></th>

 </tr>
                   
</thead>
<tbody id="tbdy1">
<tr>
  

   
     
  


    
<td style="width:5%;"> 
 <asp:Label ID="txt_lamp1_0" runat="server"  MaxLength="0" Width="95%" style="border-style:none;box-shadow:none;" ></asp:Label> 
         
 </td> 
   <td style="width:5%;"> 
 <asp:Label ID="txt_linename1_0" runat="server"  MaxLength="0" Width="95%" style="border-style:none;box-shadow:none;" ></asp:Label> 


 </td> 
       <td style="width:5%;"> 
 <asp:Label ID="txt_model1_0" runat="server"  MaxLength="0" Width="95%" style="border-style:none;box-shadow:none;" ></asp:Label> 


 </td> 
       <td style="width:5%;"> 
 <asp:Label ID="txt_jigname_0" runat="server"  MaxLength="0" Width="95%" style="border-style:none;box-shadow:none;"></asp:Label> 
            

 </td> 
    
       <td style="width:5%;"> 
 <asp:Label ID="txt_serial_0" runat="server"  MaxLength="0" Width="95%" style="border-style:none;box-shadow:none;"></asp:Label> 
            

 </td> 
          <td style="width:5%;"> 
 <asp:Label ID="txt_expdate_0" runat="server"  MaxLength="0" Width="95%" style="border-style:none;box-shadow:none;"></asp:Label> 
            

 </td> 

    
   
   <td style="width:30px;"> <asp:Button ID="editjig_0" CssClass="button" runat="server"  Text="Edit" style="max-width:60px;max-height:60px;color:white;margin-top:-5px;background-color:#E3BC08;padding:1em;"  OnClientClick="javascript:editjig(this);return false;" />

    </td>

       <td style="width:30px;"> <asp:Button ID="del1_0" CssClass="button" runat="server"  Text="Delete" style="max-width:60px;max-height:60px;color:white;margin-top:-5px;background-color:#E3BC08;padding:1em;"  OnClientClick="JavaScript:gvdelrowid(this,'Do you want to delete the data?');return false;" />


    </td>
      <td style="border-style:none;">
         <asp:Label ID="txt_partnumber1_0" runat="server"  MaxLength="0" Width="1px" style="border-style:none;box-shadow:none;color:transparent;" ></asp:Label> 

    </td>
       <td style="border-style:none;">
         <asp:Label ID="txt_linegroup1_0" runat="server"  MaxLength="0"  Width="1px" style="border-style:none;box-shadow:none;color:transparent;" ></asp:Label> 

    </td>
    </tr>

</tbody></table>
             </div>

        </div>       
         
               <div class="form-row">
                <div class="frmrow">
                 <span class="sp3">
                
              <label>
                  
                             <asp:Button ID="btnback" runat="server"  Text="Back"  style="height:40px;width:150px;color:white;"  CssClass="ctlbackbutton" OnClick="btnback_Click" />

                    </label>
                     </span>
                    </div>
                   </div><br /><br />
    </div>
</asp:Content>
