Current File : /home/obabain/public_html/abc/mouldCheck_2.jsp
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
           <%@ include file="Connection.jsp" %>
  <%-- <% String onumber=(String)session.getAttribute("morder");%>
  <% String product=(String)session.getAttribute("product");%>
   <% String heat=(String)session.getAttribute("heat");%> --%>
   
   
    <% String proid=request.getParameter("id");
   String hid1=request.getParameter("hid");
    String mid1=request.getParameter("mid");
   %>
   <% session.setAttribute("product",proid);%> 
   <% session.setAttribute("heat",hid1);%> 
    <% session.setAttribute("morder",mid1);%> 
    
     <% 
       Statement st=con.createStatement();
      %> 
  
   
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<style type="text/css">
.rrow
{
 display: inline-block;
   margin: 30px;
}    
</style>
</head>
<%@include file="master.jsp" %>

<body>
    <div class="row">
        <div class="col-md-9">
            <div class="panel panel-default">
             <!--  <div class="panel-heading main-color-bg" style="background-color:green;color:#00FF00;height:40px;"> -->
              <div class="panel-heading" style="background-color:green;">
                <h3 class="panel-title" style="text-align:center; ">Moulding and Pouring Details</h3> 
                
              </div>
             
   <div class="panel-body">
    <div class="pull-right" style="padding:5px 10px 0px 0px;margin-top:-54px;">
     <a class="btn btn-danger" href="MouldCheck_View3.jsp?order_no=<%=mid1%>&heat_no=<%=hid1%>">VIEW</a>
    </div>
     
  <form action="mould_action2.jsp">
   <h3 style="margin-left:380px;margin-top:-10px;"><span style="color:purple;"><u>Centrifugal&nbsp;Casting</u></span></h3>
   <h3 style="margin-left:120px;margin-top:-10px;">M/C Mould Check List</h3>
    <h3 style="margin-left:700px;margin-top:-35px;"> Pattern Check List</h3>   <br>
   
    <div style="margin-left:20px;">          
    <table>
      <tr> 
        <th><b> Order No:</b></th>
        <td><input type="text" class="form-control" name="orderno" value="<%=mid1%>" style="margin-left:164px;margin-top:-5px;width:190px;" readonly="readonly"></td>      
     </tr>  
     
   </table> 
   </div> 
    <div style="margin-left:20px;">          
    <table>
      <tr> 
        <th><b> M/C Mould No:</b></th>
        <td><input type="text" class="form-control" name="mould_no" style="margin-left:134px;margin-top:5px;width:190px;"></td>      
     </tr>  
     
   </table> 
   </div> 
    <div style="margin-left:630px;margin-top:-35px;">          
    <table>
      <tr> 
        <th>  <b>Pattern Condition:</b>  </th>
        <td>
              <select class="form-control" style="width:190px;margin-left:3px;" name="pattern_condition">
  <option>Select</option>
  <option value="Good">Good</option>
  <option value="Bad">Bad</option>
</select>
        
        </td>        
     </tr>       
   </table> 
   </div>   
   
             <br>
   
    <div style="margin-left:20px;">          
    <table>
      <tr> 
        <th><b> Lifting Pin Distance:</b></th>
        <td>
            <select class="form-control" style="margin-left:97px;margin-top:-5px;width:190px;" name="pin_distance">
  <option>Select</option>
  <option value="Yes">Yes</option>
  <option value="No">no</option>
</select>
        
        
        </td>      
     </tr>  
     
   </table> 
   </div> 
   
    <div style="margin-left:630px;margin-top:-35px;">          
    <table>
      <tr> 
        <th>  <b>Pattern Alignment:</b>  </th>
        <td>
              <select class="form-control" style="width:190px;" name="pattern_alignment">
  <option>Select</option>
  <option value="Yes">Yes</option>
  <option value="No">no</option>
</select>
        
        </td>         
     </tr>       
   </table> 
   </div>   
   
            <br>
   
   <div style="margin-left:20px;">          
    <table>
      <tr> 
        <th><b> Oil Check Over All Moulding M/C:</b></th>
        <td> 
              <select class="form-control" style="margin-left:10px;margin-top:-5px;width:190px;" name="oilcheck_moulding">
  <option>Select</option>
  <option value="Yes">Yes</option>
  <option value="No">no</option>
</select>
        </td>      
     </tr>  
     
   </table> 
   </div>      
   <hr>
    <table class="table table-bordered" style="width:500px;margin-left:200px; ">
    <thead>
      <tr class="success">
        <th>Heat&nbsp;No</th>
        <th>Item&nbsp;Description</th>
        
      </tr>
    </thead>
    <!-- <tbody>
      <tr>
      <td> <input type="text" class="form-control" name="heat_no"> </td>
      <td><input type="text" class="form-control" name="item_description"></td>
      </tr>
      </tbody> -->
      
       <tbody>
       <tr>
        <td><input type="text" class="form-control" name="heat_no" value="<%=hid1 %>" style="width:150px;" readonly="readonly"></td>
		<%
      /* Statement st=con.createStatement(); */
     ResultSet rs=st.executeQuery("select product_name from ip_products where product_id='"+proid +"' ");
          while(rs.next())
          {
        	  
          
          %>  
        <td><input type="text" class="form-control" name="item_description" value="<%=rs.getString("product_name") %>" style="width:180px;" readonly="readonly"></td>
		  <%}%> 
       </tr>  
      </tbody>
      
      
    </table>
    <hr>
   <span style="text-align:center;color:purple; "><b style="text-align:center;color:purple; ">Pouring Details</b></span>
   <div style="overflow-x:auto;">
   <table class="table table-bordered">
    <thead>
      <tr class="success">
       
        <th>CE(%)</th>
        <th>C(%)</th>
        <th>SI(%)</th>
        <th>Tensile</th>
        <th>Hardness</th>
        <th>Tapping&nbsp;Temp&nbsp;in&nbsp;c</th>
        <th>Poured&nbsp;Qty&nbsp;in&nbsp;No's</th>
        <th>Poured&nbsp;Qty&nbsp;in&nbsp;Kg's</th>
        <th>Rej&nbsp;Qty(Kg)</th>
        <th>Weight(Kg)</th>
        <th>Remarks</th>
      </tr>
    </thead>
    <tbody>
      <tr>
       <!--  <td><input type="text" class="form-control" name="heat_no"></td>
        <td><input type="text" class="form-control" name="item_description"></td> -->
        <td><input type="text" class="form-control" name="ce" style="width:70px;"></td>
         <td><input type="text" class="form-control" name="c" style="width:70px;"></td>
        <td><input type="text" class="form-control" name="si" style="width:70px;"></td>
        <td><input type="text" class="form-control" name="tensile" style="width:70px;"></td>
         <td><input type="text" class="form-control" name="hardness" style="width:70px;"></td>
        <td><input type="text" class="form-control" name="tapping_temp"></td>
        
        <td><input type="text" class="form-control" name="pouredq_no" style="width:65px;">
             <select name="puom1" style="width:75px;margin-left:80px;margin-top:-33px;"  class="form-control input-group-lg reg_name">  
<%
ResultSet rs1=st.executeQuery("select * from ip_units");
while(rs1.next())
{
%>
<option value="<%=rs1.getString("unit_id")%>"> <%=rs1.getString("unit_name_plrl")%> </option>
<%} %>
</select>
        </td>
         <td><input type="text" class="form-control" name="pouredq_kg" style="width:65px;">
             <select name="puom2" style="width:75px;margin-left:80px;margin-top:-33px;"  class="form-control input-group-lg reg_name">
<%  
ResultSet rs2=st.executeQuery("select * from ip_units");
while(rs2.next())
{
%>
<option value="<%=rs2.getString("unit_id")%>"> <%=rs2.getString("unit_name_plrl")%> </option>
<%} %>
</select>
         </td>
        <td><input type="text" class="form-control" name="rej_qty" style="width:65px;">
           <select name="rej_uom" style="width:75px;margin-left:80px;margin-top:-33px;"  class="form-control input-group-lg reg_name">
<%
ResultSet rs3=st.executeQuery("select * from ip_units");
while(rs3.next())
{
%>
<option value="<%=rs3.getString("unit_id")%>"> <%=rs3.getString("unit_name_plrl")%> </option>
<%} %>
</select>
        </td>
         <td><input type="text" class="form-control" name="weight" style="width:65px;">
              <select name="weigth_uom" style="width:75px;margin-left:80px;margin-top:-33px;"  class="form-control input-group-lg reg_name">
<%
ResultSet rs4=st.executeQuery("select * from ip_units");
while(rs4.next())
{
%>
<option value="<%=rs4.getString("unit_id")%>"> <%=rs4.getString("unit_name_plrl")%></option>
<%} %>
</select> 
         </td>
        <td><input type="text" class="form-control" name="remarks"></td>
      </tr>  
    </tbody>
  </table>
  </div> 
   <br><br>
   <div class="modal-footer" id="contact_submit">
        <input type="button" value="Back" style="margin-right:620px" class="btn btn-primary pull-left" onclick="goBack()">
        <a class="btn btn-primary" href="#">Reset</a>
        <button type="submit" class="btn btn-primary" onclick="validatename()">Save Changes</button>
   </div> 
</form>     
             
              </div>
              <br>
            </div>
          </div>
        </div>
        <script type="text/javascript">
  function goBack() 
  {
   window.history.back(); 
  };
</script>
</body>
</html>