<%@ Page Title="4M1E Input Check" Language="C#" MasterPageFile="~/checkinput/CheckInput.Master" AutoEventWireup="true" CodeBehind="4M1E_input_check.aspx.cs" Inherits="CheckSheet.checkinput._4M1E_input_check" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
     <script type="text/javascript" src="4M1E_input_check.js?v=123"></script>

    <div id="frommain">
     
        <div id="loader"><img src="../loader.gif" /></div>    
        <div id="g1" class="grouplist" style="padding-bottom:10px;">
               <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="Changing point control"  width="250px"></asp:Label>
                   
                    </label>
                    </span>

                    
                </div>
             </div>
              <div class="form-row">
                <div class="frmrow">

                    <span class="sp1">
                    <label>
                    <asp:Label ID="lbl_model" runat="server" CssClass="fontlabel"   style="font-size:14px;line-height:14px;"  Text="Model :" width="150px"></asp:Label>
                    <asp:Label ID="txt_model" runat="server"  Width="250px"  style="font-size:14px;line-height:14px;"  CssClass="fontlabelcontent"></asp:Label> 
                    <asp:Label ID="txt_partnumber" runat="server"  Width="1px"  style="font-size:1px;line-height:1px;" ></asp:Label> 

                         </label>
                    </span>


                </div>
             </div>
       
            
            
            <div class="form-row">
                <div class="frmrow">
                   
                    <span class="sp1">
                    <label>
                     <asp:Label ID="lbl_typename" runat="server" CssClass="fontlabel"  style="font-size:14px;"  Text="Type :" width="150px"></asp:Label>
                     <asp:TextBox ID="txt_typename"  runat="server" Width="250"  CssClass="ctlsearchinput" placeholder="type name">
                    </asp:TextBox>

                          <asp:TextBox ID="txt_typeno"  runat="server" Width="1"  style="border:none;box-shadow:none;color:transparent;">
                    </asp:TextBox>


       <asp:Button ID="btnfil_type" runat="server" Text="&nbsp;" CssClass="ctlsearchbutton"  OnClientClick="JavaScript:filterpopup('MainContent_txt_typeno','MainContent_txt_typename','item_main_no','item_main_name','InspectionItem','$and inspection_type=4');return false;"  />

                    </label>
                    </span>
                </div>
            </div>
             <div class="form-row">
                <div class="frmrow">
                   
                    <span class="sp1">
                    <label>
                    <asp:Label ID="lbl_detail" runat="server" CssClass="fontlabel" style="font-size:14px;" Text="Detail change point :" width="150px"></asp:Label>
                     <asp:TextBox ID="txt_detail"  runat="server" TextMode="MultiLine" Rows="6" Width="250" CssClass="ctlsearchinput" oninput="javascript:checklencp(this);return false;"></asp:TextBox> 
                   
                    </label>
                    </span>
                     
                </div>
            </div>
                <div class="form-row" style="margin-top:40px;margin-left:160px;">
                <div class="frmrow">

         
                        <span id="strcp" style="font-size:12px;color:gray;">Input have remaining 200 character.</span>
                    

            </div>
                </div>
              <div class="form-row">
                <div class="frmrow">

                    <span class="sp1">
                    <label>
                    <asp:Label ID="lbl_result2" runat="server" CssClass="fontlabel"  style="font-size:14px;" Text="Risk analysis :" width="150px"></asp:Label>
                    <asp:TextBox ID="txt_actioncase2"  runat="server" Width="280" TextMode="MultiLine" Rows="5" CssClass="ctlsearchinput" oninput="javascript:checklenng2(this);return false;"></asp:TextBox> 
 
                    <asp:Button ID="btnok2" CssClass="button" runat="server" Text="OK" Visible="false" style="width:100px;max-height:60px; color:white;background-color:#E3BC08;"  OnClientClick="javascript:btncheckng2(this);return false;" />
                    </label>
                   
                    <label>
                    <asp:Button ID="btnng2" CssClass="button" runat="server" Text="NG" Visible="false" style="width:100px;max-height:60px;color:white;background-color:#E3BC08;"   OnClientClick="javascript:btncheckng2(this);return false;"/>
                    </label>
                    </span>

                </div>
             </div>
            
                       <div class="form-row" style="margin-top:25px;margin-left:160px;">
                <div class="frmrow">

         
                        <span id="strac2" style="font-size:12px;color:gray;">Input have remaining 100 character.</span>
                    

            </div>
                </div>
            <br />
            <div id="gtbl" class="grouplist" style="margin-top:-2px;max-height:640px;width:99.9%;overflow:auto;" onscroll='getnext_checkitem()'>

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


<th style="width:2%;"><span style='font-size:12px;' id='seqno'>No</span></th>
<th style="width:40%;"><span style='font-size:12px;' id='item'>Items</span></th>
<th style="width:15%;"><span style='font-size:12px;' id='control'>Check</span></th>


 </tr>
                   
</thead>
<tbody>
<tr>
  


   
    
  <td style="width:2%;"> 
 <asp:Label ID="txt_seqno_0" runat="server"  MaxLength="0" Width="100%" style="font-size:12px;" CssClass="fontlabelcontent"></asp:Label> 
         
 </td> 
    
  <td style="width:40%;"> 
 <asp:Label ID="txt_items_0" runat="server"  MaxLength="0" Width="100%" style="font-size:12px;" CssClass="fontlabelcontent"></asp:Label> 
         
 </td> 

 
    
  <td style="width:15%;"> 
       
                    
                    <label>
         
                    <asp:Button ID="btnok_0" CssClass="button" runat="server" Text="OK" style="width:100px;max-height:60px; color:white;background-color:#E3BC08;" OnClientClick="javascript:savedetail(this,'OK');return false;"  />
                    </label>
                   
                    <label>
                    <asp:Button ID="btnng_0" CssClass="button" runat="server" Text="NG" style="width:100px;max-height:60px;color:white;background-color:#E3BC08;" OnClientClick="javascript:savedetail(this,'NG');return false;"  />
                    </label>
       
 </td> 
    
    </tr>


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

             <div class="form-row">
                <div class="frmrow">
                   
                    <span class="sp1">
                    <label>
                     <asp:Label ID="lbl_lot" runat="server" CssClass="fontlabel"   style="font-size:14px;" Text="Lot ผลิต :" width="150px"></asp:Label>
                     <asp:TextBox ID="txt_lot"  runat="server" Width="250"  CssClass="ctlsearchinput">
                    </asp:TextBox>

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

            <div class="form-row">
                <div class="frmrow">
                   
                    <span class="sp1">
                    <label>
                     <asp:Label ID="lbl_orderqty" runat="server" CssClass="fontlabel"  style="font-size:14px;"  Text="จำนวนผลิตทั้งหมด :" width="150px"></asp:Label>
                     <asp:TextBox ID="txt_orderqty"  runat="server" Width="250"  CssClass="ctlsearchinput">
                    </asp:TextBox>

        
                    </label>
                    </span>
                </div>
            </div>
            <div class="form-row">
                <div class="frmrow">
                   
                    <span class="sp1">
                    <label>
                     <asp:Label ID="lbl_wasteqty" runat="server" CssClass="fontlabel" style="font-size:14px;"   Text="จำนวนของเสีย :" width="150px"></asp:Label>
                     <asp:TextBox ID="txt_wasteqty"  runat="server" Width="250"  CssClass="ctlsearchinput">
                    </asp:TextBox>

        
                    </label>
                    </span>
                </div>
            </div>
             <div class="form-row">
                <div class="frmrow">

                    <span class="sp1">
                    <label>
                    <asp:Label ID="lbl_result1" runat="server" CssClass="fontlabel"  style="font-size:14px;" Text="Result :" width="150px"></asp:Label>
                       
                    <asp:Button ID="btnok1" CssClass="button" runat="server" Text="OK" style="width:100px;max-height:60px; color:white;background-color:#E3BC08;" OnClientClick="javascript:btncheckng1(this);return false;"  />
                    </label>
                   
                    <label>
                    <asp:Button ID="btnng1" CssClass="button" runat="server" Text="NG" style="width:100px;max-height:60px;color:white;background-color:#E3BC08;" OnClientClick="javascript:btncheckng1(this);return false;" />
                    </label>
                    </span>

                </div>
             </div>
        
            <div class="form-row" style="margin-top:5px;">
                <div class="frmrow">
                   
                    <span class="sp1">
                    <label>
                    <asp:Label ID="lbl_actioncase1" runat="server" CssClass="fontlabel" style="font-size:14px;"  Text="Action(Case NG) :" width="150px"></asp:Label>
                     <asp:TextBox ID="txt_actioncase1"  runat="server" Width="280" TextMode="MultiLine" Rows="5" CssClass="ctlsearchinput" oninput="javascript:checklenng1(this);return false;"></asp:TextBox> 
        
                    </label>
                    </span>
                  
                </div>
            </div>
                  <div class="form-row" style="margin-top:25px;margin-left:160px;">
                <div class="frmrow">

         
                        <span id="strac1" style="font-size:12px;color:gray;">Input have remaining 100 character.</span>
                    

            </div>
                </div>
       
          
     
            
              <br />
            <div class="form-row">
                <div class="frmrow">

                     <label>
                    <asp:Label ID="lbl_notice" runat="server" CssClass="fontlabel"   style="font-size:14px;" Text="Notice :" width="150px"></asp:Label>
                     <asp:TextBox ID="txt_notice" runat="server"  Width="280" TextMode="MultiLine" Rows="5" MaxLength="100" CssClass="ctlsearchinput" oninput="javascript:checklen(this);return false;"></asp:TextBox> 
                    </label>


            </div>
                </div>
             <div class="form-row" style="margin-top:15px;margin-left:160px;">
                <div class="frmrow">

         
                        <span id="strnotice" style="font-size:12px;color:gray;">Input have remaining 100 character.</span>
                    

            </div>
                </div>

             <div class="form-row"   style="height:150px;margin-top:-5px;">
                <div class="frmrow">
                   
                    <span class="sp1">
                    <label>
                    <asp:Label ID="lbl_img" runat="server" CssClass="fontlabel"   Text="Image :" width="150px"></asp:Label>
                    <img id="piz" src="../image/piz.png" style="width:150px;" class="ctlsearchinput" />

                    </label>
                <asp:Button ID="btnfil_takephoto" runat="server" Text="&nbsp;" CssClass="ctltakephotobutton"  OnClientClick="JavaScript:takephoto();return false;"  />

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

           <br />
            <div class="form-row">
                <div class="frmrow">
                    <span class="sp3">
                    <label>
                  
                    <asp:Button ID="btnrequestapprove" CssClass="button" runat="server" Text="Save & request approve" style="width:200px;color:white;" OnClientClick="javascript:save();return false;" />
                    </label>
                    </span>
                    
                </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:200px;color:white;"  CssClass="ctlbackbutton" OnClick="btnback_Click"/>

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


  
        </div>       

     


   </div>
</asp:Content>
