Current File : /home/obabain/public_html/abc/ProcessInspection.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");%> --%>
<%!int inid=0;
ResultSet rs=null;
String date=null;
String heat_no=null;
String item_description=null;
String grade=null;
%>
<%
String id=request.getParameter("Id");
Statement st=con.createStatement();
rs=st.executeQuery("select * from heat_treat where id="+id+"");
while(rs.next())
{
date=rs.getString("date");
heat_no=rs.getString("heat_no");
item_description=rs.getString("item_description");
grade=rs.getString("grade");
}
%>
<!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">
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
<link href="css/select2.min.css" rel="stylesheet">
<link href="css/jquery.datetimepicker.css" rel="stylesheet">
<script
src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<link href="fSelect.css" rel="stylesheet">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="fSelect.js"></script>
<script>
(function($) {
$(function() {
$('#test').fSelect();
});
})(jQuery);
</script>
<title>Purchase</title>
<style>
table,th,td
{
border:1px solid #ddd;
}
</style>
<style type="text/css">
.template { display:none ; }
</style>
</head>
<body>
<%@include file="master.jsp" %>
<%
String Material=request.getParameter("prod");
String id1=request.getParameter("heat");
String heat="";
String date="";
Statement st1=con.createStatement();
ResultSet rs=st1.executeQuery("select * from ip_furnace where m_id="+id1);
while(rs.next())
{
heat=rs.getString("heat_no");
date=rs.getString("date");
}
%>
<form method="post" name="po" action="ProcessInspection_DA.jsp?Id=<%=id%>">
<div class="content">
<div class="row">
<div class="col-md-9" style="background-color:white;width:80%;">
<div class="panel panel-default" >
<div class="panel-heading main-color-bg">
<h3 class="panel-title">Process Inspection Process(Sand Casting)</h3>
</div>
</div>
<div class="pal-body">
<div align="right" >
<a style="background:#204b58;" class="btn btn-info" href="ProcessInspectionView.jsp" >View</a>
</div>
<div align="center">
<div style="overflow-x:auto;">
<table id="" class="" >
<thead>
<tr>
<th rowspan=2 >
<h5 ><b>Heat No.</b></h5>
</th>
<th rowspan=2 >
<h5 ><b>Date</b></h5>
</th>
<th rowspan=2>
<h5 align="center" ><b>Qty Poured</b></h5>
</th>
<th rowspan=2>
<h5 align="center"><b>Qty Acc</b></h5>
</th >
<th rowspan=2>
<h5 align="center"><b>Qty Rej</b></h5>
</th>
<th rowspan=2>
<h5 align="center"><b>Weight</b></h5>
</th>
<th rowspan=2>
<h5 align="center" style="" align="center"><b style="float:center">Type of Rej</b></h5>
</th>
<th rowspan=2>
<h5 align="center"><b>Reason for Rejection</b></h5>
</th>
</tr>
<tr>
<!-- <th> -->
<!-- <h5 align="center" style="width:150px"><b> Sand Drop</b></h5> -->
<!-- </th> -->
<!-- <th> -->
<!-- <h5 align="center" style="width:150px"><b> Cold set</b></h5> -->
<!-- </th> -->
<!-- <th> -->
<!-- <h5 align="center" style="width:150px"><b> Damage</b></h5> -->
<!-- </th> -->
<!-- <th> -->
<!-- <h5 align="center" style="width:150px"><b> Core Shift/OUT</b></h5> -->
<!-- </th> -->
<!-- <th> -->
<!-- <h5 align="center" style="width:150px"><b> Box Leakage</b></h5> -->
<!-- </th> -->
</tr>
</thead>
<tbody>
<tr >
<td class="choice ">
<h5 align="center">
<input class="form-control input-group-lg reg_name" style="width:100px;margin:5px;" type="text" value="<%=heat %>" name="heat_no[]">
</h5>
</td>
<td class="choice">
<h5 align="center">
<input class="form-control input-group-lg reg_name" style="width:100px;margin:5px;" type="text" value="<%=date %>" name="date[]">
</h5>
</td>
<td class="choice">
<h5 align="center">
<input class="form-control input-group-lg reg_name" style="width:100px;margin:5px;" type="text" title="Enter first name" name="qty_poured[]" id="sname" placeholder="">
</h5>
</td>
<td class="choice">
<h5 align="center">
<input class="form-control input-group-lg reg_name" style="width:100px;margin:5px;" type="text"
title="Enter first name" name="qty_acc[]" id="sname" placeholder="">
</h5>
</td>
<td class="choice">
<h5 align="center">
<input class="form-control input-group-lg reg_name" style="width:100px;margin:5px;" type="text"
title="Enter first name"
name="qty_rej[]" id="sname" placeholder=" "/>
</h5>
</td>
<td class="choice">
<h5 align="center">
<input class="form-control input-group-lg reg_name" style="width:100px;margin:5px;" type="text"
title="Enter first name" name="Weight[]" id="sname" placeholder="">
</h5>
</td>
<td class="choice">
<h5 align="center">
<select name="typeof_rej[]" multiple="multiple" id="test" class="form-control " required="required" style="width:30px;"> <!-- style="height: 50px;" -->
<option>select</option>
<option value="Sand Drop">Sand Drop </option>
<option value="Cold set">Cold set</option>
<option value="Damage">Damage </option>
<option value="Core Shift/OUT">Core Shift/OUT</option>
<option value="Box Leakage"> Box Leakage </option>
<option value="Blow hole"> Blow hole </option>
<option value="Shour Pour"> Shour Pour </option>
<option value="Rough Casting"> Rough Casting </option>
</select>
</h5>
</td>
<td class="choice">
<h5 align="center">
<input class="form-control input-group-lg reg_name" style="width:100px;margin:5px;" type="text"
title="Enter first name"
name="reson_rej[]" id="sname" placeholder=" "/>
</h5>
</td>
</tr>
</tbody>
</table>
<br>
</div>
<div class="row" >
<div class="modal-footer" id="contact_submit">
<input type="button" value="Back" style="background:#204b58;" class="btn btn-info pull-left" onclick="goBack()"/>
<a class="btn btn-default" href="#">Reset</a>
<input class="btn btn-default" style="background:#204b58;color:white" type="submit" value="Save Changes">
</div>
</div>
</div>
</div>
</div>
</div>
</form>
<script type="text/javascript">
function validate()
{
// var t2=document.po.expdate.value;
var t3=document.getElementById("quotno").value;
var t1=document.getElementById("datetimepicker").value;
var t4=document.getElementById("pono").value;
if( t1==null || t1=="" || t4==null || t4=="" )
alert('Fill all mandatory fields');
}
</script>
<script type="text/javascript">
function goBack() {
window.history.back();
};
</script>
<!-- <script> -->
<!-- // $('.choice').hide(); -->
<!-- // var total=0; -->
<!-- // $(document).ready(function(){ -->
<!-- // $("#select").change(function(){ -->
<!-- // var textselected = document.getElementById("select").value ; -->
<!-- // //alert(textselected); -->
<!-- // target = '.' + textselected; -->
<!-- // // alert(target); -->
<!-- // $('.choice').hide(); -->
<!-- // $(target).show(); -->
<!-- // var sum = 0; -->
<!-- // var total = 0; -->
<!-- // }); -->
<!-- // }); -->
<!-- </script> -->
</body>
</html>