Current File : /home/obabain/public_html/abc/ViewM_orderForm.jsp |
<%@include file="master.jsp" %>
<style type="text/css">
.highlight-error {
border-color: red;
}
.inlineTable {
display: inline-block;
}
/* a.btn:hover {
-webkit-transform: scale(1.1);
-moz-transform: scale(1.1);
-o-transform: scale(1.1);
}*/
a.btn {
-webkit-transform: scale(0.8);
-moz-transform: scale(0.8);
-o-transform: scale(0.8);
-webkit-transition-duration: 0.5s;
-moz-transition-duration: 0.5s;
-o-transition-duration: 0.5s;
}
.btn.outline {
background: none;
padding: 5px 20px;
}
.btn-primary.outline {
border: 2px solid #0099cc;
color: #0099cc;
}
.panel-default > .panel-heading-custom {
background: #ff0000; color: #fff;
}
</style>
<!-- <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">-->
<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>
<body>
<%Statement st=con1.createStatement(); %>
<%! int id;String mocus_id, Scheduledate, Product, BillofMaterial, ProductQty, ResponsiblePerson, RawMaterialLocation, Locations; %>
<%
ResultSet rs123=st.executeQuery("select max(mo_id) as mo_id from manufacture_order");
while(rs123.next()){
id=rs123.getInt("mo_id");
}
%>
<%
ResultSet rs=st.executeQuery("select * from manufacture_order where mo_id='"+id+"'");
while(rs.next()){
mocus_id=rs.getString("mocus_id");
/* Scheduledate=rs.getString("Scheduledate");
*/ Product=rs.getString("Product");
BillofMaterial=rs.getString("BillofMaterial");
ProductQty=rs.getString("ProductQty");
ResponsiblePerson=rs.getString("ResponsiblePerson");
RawMaterialLocation=rs.getString("RawMaterialLocation");
Locations=rs.getString("Location");
%>
<div class="row">
<form action="addcustomer.jsp" method="post" id="contact" name="form1">
<section id="main">
<div class="container">
<div class="row" style="width:110%">
<div class="col-md-10" >
<div class="panel panel-default" >
<div class="panel-heading main-color-bg">
<h3 class="panel-title">Manufacturing Order Form</h3>
</div>
<div class="container">
<div class="row">
<!-- <span class="glyphicon glyphicon-edit" aria-hidden="true"></span>
-->
<a href="editmanufacturingorder1.jsp?Id=<%=rs.getString("mo_id")%>">Edit </a>
<a href="M_orderForm.jsp" class="btn btn-primary a-btn-slide-text">
<span class="glyphicon glyphicon-create" aria-hidden="true"></span>
<span><strong>Create</strong></span>
</a>
</div>
</div>
<div class="panel-body" >
<div class="row" >
<!-- <div class="panel panel-">-->
<!-- <div class="panel-heading main-color-bg"></div>-->
<div class="panel panel-info class">
<div class="panel-heading panel-heading-custom"></div>
</div>
<div class="onerow" ><div class="btn">
<a href="CheckAvailability.jsp"><button type="button" class="btn btn-danger">Confirm Production</button></a>
<!--<button type="button" class="btn btn-primary"style="margin-left:2px;">Cancel Production</button>
<a href="M_orderForm.jsp"><button type="button" class="btn btn-primary"style="margin-left:302px;">NEW</button></a>
<button type="button" class="btn btn-primary"style="margin-left:px;">Ready to produce</button>
<button type="button" class="btn btn-primary">Production Start</button>
<button type="button" class="btn btn-primary">Done</button>-->
</div>
</div>
<br><br>
<!-- <label for="lastname" style="margin:5px;">manufacturingOrder:</label>
<input id="lastname" class=" input-group-lg reg_name" style="width:170px;margin:5px;" type="text"
title="Enter last name"
name="address" placeholder=""/> -->
<label for="lastname" style="margin-left:11px;">manufacturing Order:</label>
<input id="lastname" name="moc" class="input-group-lg reg_name" style="width:170px;" value="<%=mocus_id%>" type="text"placeholder=""/>
<label for="lastname" style="margin-left:40px;">Schedule date:</label>
<input id="lastname" class="" name="date" value="<%=rs.getString("Scheduledate")%>" style="width:170px;margin:px;" type="date" placeholder=""/>
<div class="form-group col-xs-2">
<p> <label for="lastname" style="margin:5px;"> </label></p>
</div>
</div>
<b></b>
<div class="row" >
<label for="lastname" style="margin-left:90px;">Product :</label>
<input id="lastname" name="product" value="<%=Product %>" style="width:170px;margin:5px;" type="text"
title="Enter last name"
placeholder=""/>
<label for="lastname" style="margin-left:35px;">Bill of Material:</label>
<input id="lastname" class="" name="bom" value="<%=BillofMaterial %>" style="width:170px;margin:5px; type="text"
title="Enter last name"
placeholder=""/>
<div class="form-group col-xs-2">
<p> <label for="firstname" style="margin:5px;" ></label></p>
</div>
</div>
<b></b>
<div class="row" >
<label for="lastname" style="margin-left:240px;">Product Qty</label>
<input id="lastname" class="input-group-lg reg_name" name="productq" value="<%=ProductQty %>" style="width:170px;margin:5px;" type="text"name="cst" placeholder=""/>
<label for="firstname" style="margin:5px;">Responsible Person</label>
<input id="firstname" class=" " name="resperson" value="<%=ResponsiblePerson %>" style="width:170px;margin:5px;" type="text"
title="Enter first name"
placeholder=""/>
</div>
<b></b>
<div class="row" >
<label for="lastname" style="margin-left:175px;">RawMaterial Location</label>
<input id="firstname" name="raw" value="<%=RawMaterialLocation %>" class=" input-group-lg reg_name" style="width:170px;margin:5px;" type="text" name="cp" placeholder=""/>
<label for="lastname" style="margin:5px;">Location:</label>
<input id="lastname" name="loc" value="<%=Locations %>" class=" input-group-lg reg_name" style="width:170px;margin:5px;" type="text" name="cl" placeholder=""/>
</div>
<%} %>
<!-- <div class="modal-footer" id="contact_submit">
<!-- <input type="button" value="Back" style="background:#204b58;margin-right:720px" class="btn btn-info" />
<a class="btn btn-default" href="createCompany.jsp">Reset</a>
<button type="submit" style="background:#204b58" class="btn btn-info" >Save Changes</button>
</div> -->
<hr>
<!-- <div class="row">
<div class="panel-body">
<div class="inlineTable">
<div class="col-md-5">
<table class="table table-bordered" id="myTable">
<b>Consumed Products</b>
<tr>
<th>Product</th>
<th>Quantity</th>
</tr>
<tr>
<td><input type="text" name="item[]" style="width:90px;" ></td>
<td><input type="text" name="item[]" style="width:90px;" ></td>
</tr>
</table>
</div>
</div>
<div class="inlineTable">
<div class="col-md-5">
<table class="table table-bordered" >
<b>Finished goods</b>
<tr>
<th>Product</th>
<th>Quantity</th>
</tr>
<tr>
<td><input type="text" name="item[]" style="width:90px;" ></td>
<td><input type="text" name="item[]" style="width:90px;" ></td>
</tr>
</table>
</div>
</div>
<div class="inlineTable">
<div class="col-md-5">
<table class="table table-bordered">
<b>Schedule Product</b>
<tr>
<th>Product</th>
<th>Quantity</th>
</tr>
<tr>
<td><input type="text" name="item[]" style="width:90px;" ></td>
<td><input type="text" name="item[]" style="width:90px;" ></td>
</tr>
</table>
</div>
</div>
<div class="inlineTable">
<div class="form-group col-xs-2">
<b>Extra Conformation</b>
<p> <label for="lastname" style="margin:5px;">Priority</label></p>
<select id="lastname" class="form-control input-group-lg reg_name" style="width:150px;margin:5px;" type="text"
title="Enter last name"
name="cl"><option></option><option></option>
</select>
</div>
</div>
<hr>
</div>
</div> -->
</div>
</div>
</div>
</div>
</div>
</section>
<%-- <% }else{
response.sendRedirect("login.jsp");
} %> --%>
<script src="http://cdn.ckeditor.com/4.6.1/standard/ckeditor.js"></script>
<script src="http://cdn.ckeditor.com/4.6.1/standard/ckeditor.js"></script>
<script src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="https://cdn.jsdelivr.net/jquery.validation/1.16.0/jquery.validate.min.js"></script>
<script src="https://cdn.jsdelivr.net/jquery.validation/1.16.0/additional-methods.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script type="text/javascript">
$('[data-type="adhaar-number"]').keyup(function() {
var value = $(this).val();
value = value.replace(/\D/g, "").split(/(?:([\d]{4}))/g).filter(s=s.length > 0).join("-");
$(this).val(value);
});
$('[data-type="adhaar-number"]').on("change, blur", function() {
var value = $(this).val();
var maxLength = $(this).attr("maxLength");
if (value.length != maxLength) {
$(this).addClass("highlight-error");
alert("Aadhar card number not valid");
} else {
$(this).removeClass("highlight-error");
}
});</script>
</form>
</div>
</body>
</html>