Current File : //home/obabain/autoclutchess_obaba_in/BNDSalesVIEW.jsp
 
<%@page import="java.sql.*,java.util.*"%>
<%@page import="java.sql.ResultSet"%>
 <%@ include file="Connection.jsp" %>
 <%@include file="master.jsp" %>
 
 <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%><%-- <% Statement st= con.createStatement();%> --%>
   
 
      <% //String id=request.getParameter("id"); %> 
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 
<html>
<head>
<%-- <%ResultSet resultSet = null;%> --%>


<%-- <% String id=request.getParameter("mo_id"); %>  --%>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Sales</title>
 
      <meta name="viewport" content="width=device-width, initial-scale=1"> 
<!--   <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> -->
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
  
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>

</head>
<body>
  

<div class="row">
<form  action="" method="post" id="" name="">
<section id="main">
<div class="content">
 <div class="row" style="width:100%" >
    <div class="col-md-9" >
       <div class="panel panel-default" >
         <div class="panel-heading main-color-bg">
          <h3 class="panel-title">Sales Transfer view</h3>
         </div>
   
 
  <div class="panel-body">
    
         <br>  
        
           

      <br>   
     <!-- <b style="color:red">Products Details :</b> --><br> 
  <table class="table table-bordered">
    <thead>
      <tr class="p-2 mb-1 bg-info text-white">
        <th>Transfer Number</th>
        <th>From Branch Name</th>
        <th>Date</th>
        <th>Inward</th>
      
        
      </tr>
    </thead>
  
    
      <tbody>
       <%
      Statement st= con.createStatement();
ResultSet rs=st.executeQuery("select * from ip_sales_transaction where tobranch='"+loginid+"'");
while(rs.next()){
 int id =rs.getInt("st_id"); 


%>     
      
         <tr>
     <td scope="col">
          <%=rs.getString("tnumber") %> 
    
     </td>
  <%
      Statement st1= con.createStatement();
ResultSet rd=st1.executeQuery("select branch_name from ip_users where login_id="+rs.getString("frombranch")+"");
while(rd.next()){
/* String bname2=rs1.getString("branch_name"); */


%>     



     <td scope="col">
          <%=rd.getString("branch_name") %> 
         
     </td>

  <td scope="col">
          <%=rs.getString("createddate") %> 
     </td>


    
  
     
       <td>
          <a href="BNDinward.jsp?id=<%=id %>"> <button  type="button" class="btn btn-info">Inward</button> </a>            
     
     </td>  
    <%--  <td>
     <a class="btn btn-info" style="background:#204b58"  href="ProductPrintPdf.jsp?id=<%=rs123.getString("mo_id") %>">Print</a>
     
     </td> --%>
    
     </tr>
 

    </tbody> 
       <%
       }
}
     %>  
  </table>
     <br> <br> <br>
     
   
     
   
</div>
 <div class="modal-footer" id="contact_submit">
   <a href="#"> <input type="button" value="Back" style="background:#204b58;" class="btn btn-info pull-left"  onclick="goBack()"/></a>
 </div>


   </div>
  
  

    </div>
  </div>
</div>

</section>
</form>


</div>
</body>
<script type="text/javascript">
function goBack() {
    window.history.back();
   
};
</script>
 <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</html>