Current File : //home/obabain/public_html/abc/View_cc.jsp |
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ include file="Connection.jsp" %>
<%
Statement st=con.createStatement();
ResultSet rs=null;
String pino=request.getParameter("pino");
%>
<!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>
</head>
<body>
<%@include file="master.jsp" %>
<div class="content">
<div class="row">
<div class="col-md-9" style="width:80%;background-color:white;">
<div class="panel panel-default" >
<div class="panel-heading main-color-bg">
<h3 class="panel-title">Inward Stock</h3>
</div>
</div>
<!-- <div class="headerbar-item pull-right">
<a class="btn btn-info" style="background:#204b58" href="ViewInvoicePurchase.jsp">View</a>
</div> -->
<div class="panal-body">
<table class="table table-bordered"style="width:85%;" >
<thead>
<tr>
<th>Product Name</th>
<th>Unit</th>
<th>Qty</th>
<th>Accepted Qty</th>
<th>Rejected Qty</th>
<th>Remarks</th>
<th></th>
</tr>
</thead>
<tbody>
<%
rs=st.executeQuery("select tb.*,(select product_sku from ip_products where product_id=tb.item_product_id )hsn,(select family_id from ip_products where product_id=tb.item_product_id )family from ip_purchase_invoice_item tb where invoice_id="+pino+"");
while(rs.next())
{
%>
<tr>
<td>
<input type="hidden" name="prid" value="<%=rs.getString("item_product_id")%>">
<input type="hidden" name="hsn" value="<%=rs.getString("hsn") %>">
<input type="hidden" name="pgroup" value="<%=rs.getString("family")%>">
<input type="text" value="<%=rs.getString("item_name") %>" class="form-control" name="pname"> </td>
<td><%=rs.getString("item_UOM")%></td>
<td><input type="text" value="<%=rs.getString("item_qty")%>" class="form-control" name="tot"></td>
<td><input type="text" value="<%=rs.getString("item_qty")%>" class="form-control" name="acc"></td>
<td><input type="text" value="0" class="form-control" name="rej"> </td>
<td><input type="text" class="form-control"></td>
<td> <a href="cc.jsp?Id=<%=rs.getString("item_product_id")%>"> <input type="button" value="Specification" class="btn btn-primary"> </a></td>
</tr>
<%} %>
</tbody>
</table>
</div>
</div>
</div>
</div>
</body>
</html>