Current File : /home/obabain/public_html/abc/editFGbomDA.jsp |
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ include file="Connection.jsp" %>
<%Statement st=con.createStatement();
String bid=request.getParameter("did"); %>
<!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>
<form>
<%
try
{
String pid=request.getParameter("fg_id");
String bomno=request.getParameter("bomno");
String id = request.getParameter("hsn");
String output = request.getParameter("itemcode1");
String Quantity = request.getParameter("name");
String unit = request.getParameter("unit");
String name = request.getParameter("name");
if(pid!=null || pid.length()!=0 || pid!="")
{
int j=st.executeUpdate("update bom_rawmaterial set product='"+output+"',unit='"+unit+"',quantity='"+name+"',bom_no='"+bomno+"',fg_id="+pid+" where B_id="+bid+"");
response.sendRedirect("ViewBillofMaterial_2.jsp");
}
}
catch(Exception el){out.print(el);}
%>
</form>
</body>
</html>