Commit fa828c56 authored by nkhan's avatar nkhan

Display Customer details


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@104316 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 52c60626
<%@page import = "java.lang.*,java.util.*, ibase.webitm.ejb.dis.CustomerDetails"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-15" pageEncoding="UTF-8"%>
<%
System.out.println("@@@@@@@@@ In CustomerDetails.jsp @@@@@@@@@@@@@@@@");
ibase.utility.UserInfoBean userInfo = ( ibase.utility.UserInfoBean )session.getAttribute( "USER_INFO" );
if(userInfo != null)
{
String custCode = ((String) request.getParameter("cust_code") == null) ? "" : (String) request.getParameter("cust_code");
System.out.println("custCode ======>>["+ custCode +"]");
if(custCode.equals(""))
{
out.println("NO DATA FOUND...");
}
else
{
CustomerDetails customerDetail = new CustomerDetails();
ArrayList custList = customerDetail.getCustomerDetails(custCode);
String custName = (String) custList.get(0);
System.out.println("custName inside jsp ::: ["+ custName +"]");
String imgPath = customerDetail.getCustomerImage(custCode.trim(), custName.trim());
System.out.println("imgPath inside jsp ::: ["+ imgPath +"]");
%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link type="text/css" rel="stylesheet" href="/ibase/webitm/css/sidePanelDisplay.css">
<title>Customer Details</title>
<script type="text/javascript">
function getBlackList(blkvalue, rank)
{
console.log("rank[" + rank + "]");
if (blkvalue != 'N') {
console.log("@@@@@@@@@@" + blkvalue);
document.getElementById("bkkdiv").style.display = 'block';
}
if (rank == '') {
document.getElementById("breakword").remove();
}
}
/* function dynamicJsImg(cntType) {
} */
</script>
</head>
<body onload="getBlackList('<%= custList.get(11)%>','<%= custList.get(6) %>');">
<div id="bkkdiv" style="width:100%">
<p id="bg-text">BLACK LISTED <br> <%= custList.get(12)%></p>
</div>
<table class="itemtbl" id="itemtbl" cellpadding="0" cellspacing="0">
<tr class="trbg">
<td class="highlight rght" colspan="2" style="margin: 0;padding: 0;border-bottom: #e5e4e9 1px solid;background: rgb(219, 217, 208);;">
<div style = "float: right;padding-top: 2px;padding-right:5px;">
<img src="<%=imgPath%>" alt="Image Not Found" style="width: 40px;"></img>
</div>
<div class="highlight " style = "float: left;padding-top: 15px;padding-left: 10px;font-size: 14px;color:black">
<%= custName%>
</div>
</td>
</tr>
<td class="highlight rght" colspan="2" style="margin: 0;padding: 0;">
<div style = "float: left;padding-top: 10px;padding-right: 10px;padding-left: 5px">
<%= custList.get(15) %>
</div>
<div class="highlight " style = "float: right;padding-top: 10px;padding-right: 10px;">
Rank # <br id="breakword"><%= custList.get(6) %></br>
</div>
</td>
</tr>
<tr>
<td class="highlight rght" colspan="2" style="margin: 0;padding: 0;">
<div style = "float: left;">
<img src="/ibase/images/menuImages/web/Galaxy/telephone.png" onerror="dynamicJsImg('C')" style="height: 20px;width: 20px;padding-left: 5px" id='ImgDivClass' class = 'ImgDivClass' ></img>
</div>
<div class="highlight " style = "float: right;padding-top: 10px;padding-right: 10px;">
<%=custList.get(3)%>
</div>
</td>
</tr>
<tr>
<td class="highlight rght" colspan="2" style="margin: 0;padding: 0;">
<div style = "float: left;">
<img src="/ibase/images/menuImages/web/Galaxy/email.png" alt="Image Not Found" style="height: 20px;width: 20px;padding-left: 5px"></img>
</div>
<div class="highlight " style = "float: right;/* margin-top: 13px; *//* margin-left: 10px; */padding-top: 10px;padding-right: 10px;">
<%=custList.get(4)%>
</div>
</td>
</tr>
<tr>
<td class="highlight " >Number Of Open Orders </td>
<td class="highlight " align="right" ><%= custList.get(5) %> &nbsp;&nbsp; <%= custList.get(1) %></td>
</tr>
<tr>
<td class="highlight rght" colspan="2" style="margin: 0;padding: 0;border-top: #e5e4e9 1px solid;border-bottom: #e5e4e9 1px solid;height: 40px;background: rgb(219, 217, 208);">
<div class="highlight " style = "float: left;padding-top: 2px;padding-left: 10px;font-size: 14px;">
Terms
</div>
</td>
</tr>
<tr>
<td class="highlight " colspan="2"><%= custList.get(7) %></td>
</tr>
<tr>
<td class="highlight " colspan="2"><%= custList.get(8) %></td>
</tr>
<tr>
<td class="highlight rght" colspan="2" style="margin: 0;padding: 0;border-top: #e5e4e9 1px solid;border-bottom: #e5e4e9 1px solid;height: 40px;background: rgb(219, 217, 208);">
<div class="highlight " style = "float: left;padding-top: 2px;padding-left: 10px;font-size: 14px;">
Sales Team
</div>
</td>
</tr>
<tr>
<td class="highlight rght" colspan="2" style="margin: 0;padding: 0;">
<div style = "float: left;">
<img src="/ibase/images/menuImages/web/Galaxy/salespersonadmin.png" onerror="dynamicJsImg('C')" style="height: 25px;width: 30px;padding-left: 5px" id='ImgDivClass' class = 'ImgDivClass' ></img>
</div>
<div class="highlight " style = "float: right;padding-top: 10px;padding-right: 10px;">
<%=custList.get(9)%>
</div>
</td>
</tr>
<tr>
<%-- <td class="highlight "colspan="2"><%= custList.get(10) %></strong></td> --%>
<td class="highlight rght" colspan="2" style="margin: 0;padding: 0;">
<div style = "float: left;">
<img src="/ibase/images/menuImages/web/Galaxy/email.png" alt="Image Not Found" style="height: 20px;width: 20px;padding-left: 9px"></img>
</div>
<div class="highlight " style = "float: right;padding-top: 10px;padding-right: 10px;padding-bottom: 10px;">
<%=custList.get(10)%>
</div>
</td>
</tr>
<tr>
<td class="highlight rght" colspan="2" style="margin: 0;padding: 0;border-top: #e5e4e9 1px solid;border-bottom: #e5e4e9 1px solid;height: 40px;background: rgb(219, 217, 208);">
<div class="highlight " style = "float: left;padding-top: 2px;padding-left: 10px;font-size: 14px;">
Credit
</div>
</td>
</tr>
<tr>
<td class="highlight " colspan="2" nowrap="true">Total Due Amount Till Date <%= custList.get(13) %>&nbsp;&nbsp; <%= custList.get(1) %></strong></td>
</tr>
<tr>
<td class="highlight " colspan="2">Limit <%=custList.get(14) %>&nbsp;&nbsp; <%= custList.get(1) %></td>
</tr>
<tr>
<td class="highlight rght" colspan="2" style="margin: 0;padding: 0;border-top: #e5e4e9 1px solid;border-bottom: #e5e4e9 1px solid;height: 40px;background: rgb(219, 217, 208);">
<div class="highlight " style = "float: left;padding-top: 2px;padding-left: 10px;font-size: 14px;">
Others
</div>
</td>
</tr>
<tr>
<td class="highlight ">Wave Type</td>
<td class="highlight " colspan="2" align="right"><%= custList.get(16) %></td>
</tr>
</table>
</body>
</html>
<% }
}
else
{
out.print("Invalid Session");
}
%>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment