Commit 917b0e2e authored by prumde's avatar prumde

Updated

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@211027 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 0c4e6a5f
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<%@page import="ibase.webitm.utility.ITMException"%> <%@page import="ibase.webitm.utility.ITMException"%>
<%@page import="ibase.utility.*"%> <%@page import="ibase.utility.*"%>
<%@page import="ibase.utility.UserInfoBean"%> <%@page import="ibase.utility.UserInfoBean"%>
<%@page import="java.io.*,java.util.*,java.util.zip.*"%> <%@page import="java.io.*,java.util.*,java.util.Calendar,java.util.zip.*"%>
<%@page import="java.text.SimpleDateFormat"%> <%@page import="java.text.SimpleDateFormat"%>
<%@page import="java.sql.Connection"%> <%@page import="java.sql.Connection"%>
<%@page import="java.sql.*"%> <%@page import="java.sql.*"%>
...@@ -97,34 +97,6 @@ public HashMap getSQLResultData(String sqlStr, String transDB) ...@@ -97,34 +97,6 @@ public HashMap getSQLResultData(String sqlStr, String transDB)
<head> <head>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<style> <style>
/*
#dataTable {
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
border-collapse: collapse;
margin : 16px;
width: auto;
}
#dataTable td, #dataTable th {
border: 1px solid #ddd;
padding: 8px;
white-space: nowrap;
text-transform: capitalize;
}
#dataTable td {text-align: right;}
#dataTable tr:nth-child(even){background-color: #f2f2f2;}
#dataTable tr:hover {background-color: #ddd;}
#dataTable th {
padding-top: 12px;
padding-bottom: 12px;
text-align: left;
background-color: #b4adee ;
color: white;
}
*/
*{ *{
font-family: Arial, Helvetica, sans-serif; font-family: Arial, Helvetica, sans-serif;
...@@ -224,6 +196,11 @@ public HashMap getSQLResultData(String sqlStr, String transDB) ...@@ -224,6 +196,11 @@ public HashMap getSQLResultData(String sqlStr, String transDB)
.large-3 { .large-3 {
width: calc(25% - 5px) !important; width: calc(25% - 5px) !important;
} }
.banner-3 {
/*width: calc(75% - 5px) !important;*/
width: calc(33.33% - 5px) !important;
margin: 0 21% !important;
}
} }
...@@ -231,13 +208,21 @@ public HashMap getSQLResultData(String sqlStr, String transDB) ...@@ -231,13 +208,21 @@ public HashMap getSQLResultData(String sqlStr, String transDB)
.small-12 { .small-12 {
width: 100% !important; width: 100% !important;
} }
.banner-12 {
width: 100% !important;
}
} }
@media screen and (min-width: 40em){ @media screen and (min-width: 40em){
.medium-4 { .medium-4 {
width: calc(33.33333% - 5px); width: calc(33.33333% - 5px);
} }
.banner-4 {
/*width: calc(100% - 5px) ;*/
width: calc(50% - 5px);
margin: 0 25%;
}
} }
.column, .columns { .column, .columns {
...@@ -283,7 +268,6 @@ public HashMap getSQLResultData(String sqlStr, String transDB) ...@@ -283,7 +268,6 @@ public HashMap getSQLResultData(String sqlStr, String transDB)
</jsp:forward> </jsp:forward>
<% <%
} }
//Modified by Ahmed on 15/06/2016 [UserInfoBean is initialized and session is checked] [END]
String userCode = userInfo.getLoginCode(); String userCode = userInfo.getLoginCode();
String transDB = userInfo.getTransDB(); String transDB = userInfo.getTransDB();
String site = userInfo.getPropValue("SITE_CODE"); String site = userInfo.getPropValue("SITE_CODE");
...@@ -298,10 +282,20 @@ public HashMap getSQLResultData(String sqlStr, String transDB) ...@@ -298,10 +282,20 @@ public HashMap getSQLResultData(String sqlStr, String transDB)
{ {
siteCode = site; siteCode = site;
} }
String month = request.getParameter("month"); String monthStr = request.getParameter("month");
if( month == null || month.trim().length() == 0) if( monthStr == null || monthStr.trim().length() == 0)
{ {
month = "10/2019"; Calendar cal = Calendar.getInstance();
int month = cal.get(Calendar.MONTH) + 1 ;
int year = cal.get(Calendar.YEAR) ;
if( month < 10 )
{
monthStr = "0" + month + "/" + year;
}
else
{
monthStr = month + "/" + year;
}
} }
StringBuffer htmlStrBuff = new StringBuffer(); StringBuffer htmlStrBuff = new StringBuffer();
...@@ -351,7 +345,7 @@ public HashMap getSQLResultData(String sqlStr, String transDB) ...@@ -351,7 +345,7 @@ public HashMap getSQLResultData(String sqlStr, String transDB)
summarySqlBuff.append(" WHERE DHH.POS_CODE = DSS.POS_CODE "); summarySqlBuff.append(" WHERE DHH.POS_CODE = DSS.POS_CODE ");
summarySqlBuff.append(" AND DHH.VERSION_ID in (SELECT V.VERSION_ID FROM SUNERP.VERSION V WHERE TO_DATE(SYSDATE) BETWEEN V.EFF_FROM AND V.VALID_UPTO) "); summarySqlBuff.append(" AND DHH.VERSION_ID in (SELECT V.VERSION_ID FROM SUNERP.VERSION V WHERE TO_DATE(SYSDATE) BETWEEN V.EFF_FROM AND V.VALID_UPTO) ");
summarySqlBuff.append(" AND DHH.TABLE_NO=NVL(ISER.TABLE_NO__HIER, ISER.ITEM_SER) "); summarySqlBuff.append(" AND DHH.TABLE_NO=NVL(ISER.TABLE_NO__HIER, ISER.ITEM_SER) ");
summarySqlBuff.append(" AND to_char(DSS.DOC_DATE, 'MM/YYYY')= '"+ month +"' "); summarySqlBuff.append(" AND to_char(DSS.DOC_DATE, 'MM/YYYY')= '"+ monthStr +"' ");
summarySqlBuff.append(" AND I.ITEM_SER >= '00' "); summarySqlBuff.append(" AND I.ITEM_SER >= '00' ");
summarySqlBuff.append(" AND I.ITEM_SER <= 'zz' "); summarySqlBuff.append(" AND I.ITEM_SER <= 'zz' ");
summarySqlBuff.append(" AND DSS.SITE_CODE = '" + siteCode + "' "); summarySqlBuff.append(" AND DSS.SITE_CODE = '" + siteCode + "' ");
...@@ -377,7 +371,7 @@ public HashMap getSQLResultData(String sqlStr, String transDB) ...@@ -377,7 +371,7 @@ public HashMap getSQLResultData(String sqlStr, String transDB)
htmlStrBuff.append(" <div class=\"ang-dbSubTitleLbl\">"); htmlStrBuff.append(" <div class=\"ang-dbSubTitleLbl\">");
htmlStrBuff.append(" Employee Code : ").append(empCode); htmlStrBuff.append(" Employee Code : ").append(empCode);
htmlStrBuff.append(", Site Code : ").append(siteCode); htmlStrBuff.append(", Site Code : ").append(siteCode);
htmlStrBuff.append(", Month : ").append(month); htmlStrBuff.append(", Month : ").append(monthStr);
htmlStrBuff.append(" </div>"); htmlStrBuff.append(" </div>");
htmlStrBuff.append("</div>"); htmlStrBuff.append("</div>");
htmlStrBuff.append("<div class=\"nodata-msg-cont\">No data to display</div>"); htmlStrBuff.append("<div class=\"nodata-msg-cont\">No data to display</div>");
...@@ -386,159 +380,90 @@ public HashMap getSQLResultData(String sqlStr, String transDB) ...@@ -386,159 +380,90 @@ public HashMap getSQLResultData(String sqlStr, String transDB)
for( int rowNum = 0; rowNum < noOfRows; rowNum++ ) { for( int rowNum = 0; rowNum < noOfRows; rowNum++ ) {
HashMap<String, String> dataMap = dataRows.get(rowNum); HashMap<String, String> dataMap = dataRows.get(rowNum);
/*
htmlStrBuff.append("<details open>");
htmlStrBuff.append("<TABLE id =\"dataTable\" >");
htmlStrBuff.append("<tr>");
htmlStrBuff.append("<th></th>");
htmlStrBuff.append("<th>value</th>");
htmlStrBuff.append("<th>quantity</th>");
htmlStrBuff.append("</tr>");
htmlStrBuff.append("<tr>");
htmlStrBuff.append("<th>sales</th>");
htmlStrBuff.append("<td>").append(dataMap.get("SALES VALUE")).append("</td>");
htmlStrBuff.append("<td>").append(dataMap.get("SALES QUANTITY")).append("</td>");
htmlStrBuff.append("</tr>");
htmlStrBuff.append("<tr>");
htmlStrBuff.append("<th>free sales</th>");
htmlStrBuff.append("<td>").append(dataMap.get("FREE SALES VALUE")).append("</td>");
htmlStrBuff.append("<td>").append(dataMap.get("FREE QUANTITY")).append("</td>");
htmlStrBuff.append("</tr>");
htmlStrBuff.append("<tr>");
htmlStrBuff.append("<th>gross sales</th>");
htmlStrBuff.append("<td>").append(dataMap.get("GROSS SALES VALUE")).append("</td>");
htmlStrBuff.append("</tr>");
htmlStrBuff.append("<tr>");
htmlStrBuff.append("<th>net sales</th>");
htmlStrBuff.append("<td>").append(dataMap.get("NET SALES VALUE")).append("</td>");
htmlStrBuff.append("<td>").append(dataMap.get("NET SALES QUANTITY")).append("</td>");
htmlStrBuff.append("</tr>");
htmlStrBuff.append("</TABLE>");
htmlStrBuff.append("<summary style=\"outline: none;cursor: pointer;\">");
htmlStrBuff.append("Sales Summary");
htmlStrBuff.append("</summary>");
htmlStrBuff.append("</details>");
htmlStrBuff.append("<details>");
htmlStrBuff.append("<TABLE id =\"dataTable\" >");
htmlStrBuff.append("<tr>");
htmlStrBuff.append("<th></th>");
htmlStrBuff.append("<th>value</th>");
htmlStrBuff.append("<th>quantity</th>");
htmlStrBuff.append("</tr>");
htmlStrBuff.append("<tr>");
htmlStrBuff.append("<th>saleable return</th>");
htmlStrBuff.append("<td>").append(dataMap.get("SALEABLE RETURN VALUE")).append("</td>");
htmlStrBuff.append("<td>").append(dataMap.get("SALEABLE RETURN QUANTITY")).append("</td>");
htmlStrBuff.append("</tr>");
htmlStrBuff.append("<tr>");
htmlStrBuff.append("<th>damaged return</th>");
htmlStrBuff.append("<td>").append(dataMap.get("DAMAGED RETURN VALUE")).append("</td>");
htmlStrBuff.append("<td>").append(dataMap.get("DAMAGED RETURN QUANTITY")).append("</td>");
htmlStrBuff.append("</tr>");
htmlStrBuff.append("<tr>");
htmlStrBuff.append("<th>expiry return</th>");
htmlStrBuff.append("<td>").append(dataMap.get("EXPIRY RETURN VALUE")).append("</td>");
htmlStrBuff.append("<td>").append(dataMap.get("EXPIRY RETURN QUANTITY")).append("</td>");
htmlStrBuff.append("</tr>");
htmlStrBuff.append("<tr>");
htmlStrBuff.append("<th>canceled return</th>");
htmlStrBuff.append("<td>").append(dataMap.get("CANCELED RETURN VALUE")).append("</td>");
htmlStrBuff.append("<td>").append(dataMap.get("CANCELED RETURN QUANTITY")).append("</td>");
htmlStrBuff.append("</tr>");
htmlStrBuff.append("<tr>");
htmlStrBuff.append("<th>gross return</th>").append("<td>").append(dataMap.get("GROSS RETURN VALUE")).append("</td>");
htmlStrBuff.append("</tr>");
htmlStrBuff.append("<tr>");
htmlStrBuff.append("<th>net return</th>").append("<td>").append(dataMap.get("NET RETURN VALUE")).append("</td>");
htmlStrBuff.append("</tr>");
htmlStrBuff.append("</TABLE>");
htmlStrBuff.append("<summary style=\"outline: none;cursor: pointer;\">");
htmlStrBuff.append("Returns Summary");
htmlStrBuff.append("</summary>");
htmlStrBuff.append("</details>");
*/
htmlStrBuff.append("<div style=\"padding: 10px 0 10px 10px;\"> "); htmlStrBuff.append("<div style=\"padding: 10px 0 10px 10px;\"> ");
htmlStrBuff.append(" <div class=\"ang-dbtitle\">Sales Trends Data</div>"); htmlStrBuff.append(" <div class=\"ang-dbtitle\">Sales Trends Data</div>");
htmlStrBuff.append(" <div class=\"ang-dbSubTitleLbl\">"); htmlStrBuff.append(" <div class=\"ang-dbSubTitleLbl\">");
htmlStrBuff.append(" Employee Code : ").append(empCode); htmlStrBuff.append(" Employee Code : ").append(empCode);
htmlStrBuff.append(", Site Code : ").append(siteCode); htmlStrBuff.append(", Site Code : ").append(siteCode);
htmlStrBuff.append(", Month : ").append(month); htmlStrBuff.append(", Month : ").append(monthStr);
htmlStrBuff.append(" </div>"); htmlStrBuff.append(" </div>");
htmlStrBuff.append("</div>"); htmlStrBuff.append("</div>");
htmlStrBuff.append("<details open style=\"padding: 10px 0;\" >"); //htmlStrBuff.append("<details open style=\"padding: 10px 0;\" >");
htmlStrBuff.append("<div class=\"db-kpi-container\">"); htmlStrBuff.append("<div class=\"db-kpi-container\">");
htmlStrBuff.append(" <div class=\"kpi-container\">"); htmlStrBuff.append(" <div class=\"kpi-container\">");
htmlStrBuff.append(" <div class=\"small-12 medium-4 large-3 column kpi-card-containers\">"); htmlStrBuff.append(" <div class=\"banner-12 banner-4 banner-3 column kpi-card-containers\">");
htmlStrBuff.append(" <div class=\"detail-box\" style=\"background-color: #89cbfc;\">"); htmlStrBuff.append(" <div class=\"detail-box\" style=\"background-color: #f9af92;\">");
htmlStrBuff.append(" <span class=\"detail-box-kpi-value\">").append(dataMap.get("SALES VALUE")).append("</span>"); htmlStrBuff.append(" <span class=\"detail-box-kpi-value\">").append(dataMap.get("NET SALES VALUE")).append("</span>");
htmlStrBuff.append(" <span class=\"detail-box-kpi-name\">SALES VALUE</span>"); htmlStrBuff.append(" <span class=\"detail-box-kpi-name\">NET SALES VALUE</span>");
htmlStrBuff.append(" </div>"); htmlStrBuff.append(" </div>");
htmlStrBuff.append(" </div>"); htmlStrBuff.append(" </div>");
htmlStrBuff.append(" </div>");
htmlStrBuff.append("</div>");
htmlStrBuff.append("<div class=\"db-kpi-container\">");
htmlStrBuff.append(" <div class=\"kpi-container\">");
htmlStrBuff.append(" <div class=\"small-12 medium-4 large-3 column kpi-card-containers\">"); htmlStrBuff.append(" <div class=\"small-12 medium-4 large-3 column kpi-card-containers\">");
htmlStrBuff.append(" <div class=\"detail-box\" style=\"background-color: #86e8c6;\">"); htmlStrBuff.append(" <div class=\"summary-box\" >");
htmlStrBuff.append(" <span class=\"detail-box-kpi-value\">").append(dataMap.get("FREE SALES VALUE")).append("</span>"); htmlStrBuff.append(" <span class=\"summary-box-kpi-value\" style=\"color: #89cbfc;\">").append(dataMap.get("SALES VALUE")).append("</span>");
htmlStrBuff.append(" <span class=\"detail-box-kpi-name\">FREE SALES VALUE</span>"); htmlStrBuff.append(" <span class=\"summary-box-kpi-name\">SALES VALUE</span>");
htmlStrBuff.append(" </div>"); htmlStrBuff.append(" </div>");
htmlStrBuff.append(" </div>"); htmlStrBuff.append(" </div>");
htmlStrBuff.append(" <div class=\"small-12 medium-4 large-3 column kpi-card-containers\">"); htmlStrBuff.append(" <div class=\"small-12 medium-4 large-3 column kpi-card-containers\">");
htmlStrBuff.append(" <div class=\"detail-box\" style=\"background-color: #c0b9f6;\">"); htmlStrBuff.append(" <div class=\"summary-box\" >");
htmlStrBuff.append(" <span class=\"detail-box-kpi-value\">").append(dataMap.get("GROSS SALES VALUE")).append("</span>"); htmlStrBuff.append(" <span class=\"summary-box-kpi-value\" style=\"color: #89cbfc;\">").append(dataMap.get("FREE SALES VALUE")).append("</span>");
htmlStrBuff.append(" <span class=\"detail-box-kpi-name\">GROSS SALES VALUE</span>"); htmlStrBuff.append(" <span class=\"summary-box-kpi-name\">FREE SALES VALUE</span>");
htmlStrBuff.append(" </div>"); htmlStrBuff.append(" </div>");
htmlStrBuff.append(" </div>"); htmlStrBuff.append(" </div>");
htmlStrBuff.append(" <div class=\"small-12 medium-4 large-3 column kpi-card-containers\">"); htmlStrBuff.append(" <div class=\"small-12 medium-4 large-3 column kpi-card-containers\">");
htmlStrBuff.append(" <div class=\"detail-box\" style=\"background-color: #f9af92;\">"); htmlStrBuff.append(" <div class=\"summary-box\" >");
htmlStrBuff.append(" <span class=\"detail-box-kpi-value\">").append(dataMap.get("NET SALES VALUE")).append("</span>"); htmlStrBuff.append(" <span class=\"summary-box-kpi-value\" style=\"color: #89cbfc;\">").append(dataMap.get("GROSS SALES VALUE")).append("</span>");
htmlStrBuff.append(" <span class=\"detail-box-kpi-name\">NET SALES VALUE</span>"); htmlStrBuff.append(" <span class=\"summary-box-kpi-name\">GROSS SALES VALUE</span>");
htmlStrBuff.append(" </div>"); htmlStrBuff.append(" </div>");
htmlStrBuff.append(" </div>"); htmlStrBuff.append(" </div>");
htmlStrBuff.append(" </div>"); htmlStrBuff.append(" </div>");
htmlStrBuff.append("</div>"); htmlStrBuff.append("</div>");
htmlStrBuff.append("<summary style=\"outline: none;cursor: pointer;\">"); //htmlStrBuff.append("<summary style=\"outline: none;cursor: pointer;\">");
htmlStrBuff.append("Sales Summary"); //htmlStrBuff.append("Sales Summary");
htmlStrBuff.append("</summary>"); //htmlStrBuff.append("</summary>");
htmlStrBuff.append("</details>"); //htmlStrBuff.append("</details>");
htmlStrBuff.append("<details open style=\"padding: 10px 0;\" >"); //htmlStrBuff.append("<details open style=\"padding: 10px 0;\" >");
htmlStrBuff.append("<div class=\"db-kpi-container\">"); htmlStrBuff.append("<div class=\"db-kpi-container\">");
htmlStrBuff.append(" <div class=\"kpi-container\">"); htmlStrBuff.append(" <div class=\"kpi-container\">");
htmlStrBuff.append(" <div>"); htmlStrBuff.append(" <div>");
htmlStrBuff.append(" <div class=\"small-12 medium-4 large-3 column kpi-card-containers\">"); htmlStrBuff.append(" <div class=\"small-12 medium-4 large-3 column kpi-card-containers\">");
htmlStrBuff.append(" <div class=\"detail-box\" style=\"background-color: #89cbfc;\">"); htmlStrBuff.append(" <div class=\"summary-box\" >");
htmlStrBuff.append(" <span class=\"detail-box-kpi-value\">").append(dataMap.get("SALEABLE RETURN VALUE")).append("</span>"); htmlStrBuff.append(" <span class=\"summary-box-kpi-value\" style=\"color: #f37487;\">").append(dataMap.get("SALEABLE RETURN VALUE")).append("</span>");
htmlStrBuff.append(" <span class=\"detail-box-kpi-name\">SALEABLE RETURN VALUE</span>"); htmlStrBuff.append(" <span class=\"summary-box-kpi-name\">SALEABLE RETURN VALUE</span>");
htmlStrBuff.append(" </div>"); htmlStrBuff.append(" </div>");
htmlStrBuff.append(" <div class=\"summary-box\">"); htmlStrBuff.append(" <div class=\"summary-box\">");
htmlStrBuff.append(" <span class=\"summary-box-kpi-value\" style=\"color: #c26be9;\"> ").append(dataMap.get("DAMAGED RETURN VALUE")).append(" </span>"); htmlStrBuff.append(" <span class=\"summary-box-kpi-value\" style=\"color: #f37487;\"> ").append(dataMap.get("DAMAGED RETURN VALUE")).append(" </span>");
htmlStrBuff.append(" <span class=\"summary-box-kpi-name\">DAMAGED RETURN VALUE</span>"); htmlStrBuff.append(" <span class=\"summary-box-kpi-name\">DAMAGED RETURN VALUE</span>");
htmlStrBuff.append(" </div>"); htmlStrBuff.append(" </div>");
htmlStrBuff.append(" </div>"); htmlStrBuff.append(" </div>");
htmlStrBuff.append(" </div>"); htmlStrBuff.append(" </div>");
htmlStrBuff.append(" <div>"); htmlStrBuff.append(" <div>");
htmlStrBuff.append(" <div class=\"small-12 medium-4 large-3 column kpi-card-containers\">"); htmlStrBuff.append(" <div class=\"small-12 medium-4 large-3 column kpi-card-containers\">");
htmlStrBuff.append(" <div class=\"detail-box\" style=\"background-color: #86e8c6;\">"); htmlStrBuff.append(" <div class=\"summary-box\" >");
htmlStrBuff.append(" <span class=\"detail-box-kpi-value\">").append(dataMap.get("EXPIRY RETURN VALUE")).append("</span>"); htmlStrBuff.append(" <span class=\"summary-box-kpi-value\" style=\"color: #f37487;\">").append(dataMap.get("EXPIRY RETURN VALUE")).append("</span>");
htmlStrBuff.append(" <span class=\"detail-box-kpi-name\">EXPIRY RETURN VALUE</span>"); htmlStrBuff.append(" <span class=\"summary-box-kpi-name\">EXPIRY RETURN VALUE</span>");
htmlStrBuff.append(" </div>"); htmlStrBuff.append(" </div>");
htmlStrBuff.append(" <div class=\"summary-box\">"); htmlStrBuff.append(" <div class=\"summary-box\">");
htmlStrBuff.append(" <span class=\"summary-box-kpi-value\" style=\"color: #ffca3b;\"> ").append(dataMap.get("CANCELED RETURN VALUE")).append(" </span>"); htmlStrBuff.append(" <span class=\"summary-box-kpi-value\" style=\"color: #f37487;\"> ").append(dataMap.get("CANCELED RETURN VALUE")).append(" </span>");
htmlStrBuff.append(" <span class=\"summary-box-kpi-name\">CANCELED RETURN VALUE</span>"); htmlStrBuff.append(" <span class=\"summary-box-kpi-name\">CANCELED RETURN VALUE</span>");
htmlStrBuff.append(" </div>"); htmlStrBuff.append(" </div>");
htmlStrBuff.append(" </div>"); htmlStrBuff.append(" </div>");
htmlStrBuff.append(" </div>"); htmlStrBuff.append(" </div>");
htmlStrBuff.append(" <div>"); htmlStrBuff.append(" <div>");
htmlStrBuff.append(" <div class=\"small-12 medium-4 large-3 column kpi-card-containers\">"); htmlStrBuff.append(" <div class=\"small-12 medium-4 large-3 column kpi-card-containers\">");
htmlStrBuff.append(" <div class=\"detail-box\" style=\"background-color: #c0b9f6;\">"); htmlStrBuff.append(" <div class=\"summary-box\" >");
htmlStrBuff.append(" <span class=\"detail-box-kpi-value\">").append(dataMap.get("GROSS RETURN VALUE")).append("</span>"); htmlStrBuff.append(" <span class=\"summary-box-kpi-value\" style=\"color: #f37487;\">").append(dataMap.get("GROSS RETURN VALUE")).append("</span>");
htmlStrBuff.append(" <span class=\"detail-box-kpi-name\">GROSS RETURN VALUE</span>"); htmlStrBuff.append(" <span class=\"summary-box-kpi-name\">GROSS RETURN VALUE</span>");
htmlStrBuff.append(" </div>"); htmlStrBuff.append(" </div>");
htmlStrBuff.append(" <div class=\"summary-box\">"); htmlStrBuff.append(" <div class=\"summary-box\">");
htmlStrBuff.append(" <span class=\"summary-box-kpi-value\" style=\"color: #f37487;\"> ").append(dataMap.get("NET RETURN VALUE")).append(" </span>"); htmlStrBuff.append(" <span class=\"summary-box-kpi-value\" style=\"color: #f37487;\"> ").append(dataMap.get("NET RETURN VALUE")).append(" </span>");
...@@ -550,10 +475,10 @@ public HashMap getSQLResultData(String sqlStr, String transDB) ...@@ -550,10 +475,10 @@ public HashMap getSQLResultData(String sqlStr, String transDB)
htmlStrBuff.append(" </div>"); htmlStrBuff.append(" </div>");
htmlStrBuff.append("</div>"); htmlStrBuff.append("</div>");
htmlStrBuff.append("<summary style=\"outline: none;cursor: pointer;\">"); //htmlStrBuff.append("<summary style=\"outline: none;cursor: pointer;\">");
htmlStrBuff.append("Returns Summary"); //htmlStrBuff.append("Returns Summary");
htmlStrBuff.append("</summary>"); //htmlStrBuff.append("</summary>");
htmlStrBuff.append("</details>"); //htmlStrBuff.append("</details>");
} }
/* /*
89cbfc 89cbfc
...@@ -606,7 +531,7 @@ public HashMap getSQLResultData(String sqlStr, String transDB) ...@@ -606,7 +531,7 @@ public HashMap getSQLResultData(String sqlStr, String transDB)
<%=htmlStrBuff.toString()%> <%=htmlStrBuff.toString()%>
<input type="hidden" name="empCode" id="empCode" value='<%=empCode%>'/> <input type="hidden" name="empCode" id="empCode" value='<%=empCode%>'/>
<input type="hidden" name="siteCode" id="siteCode" value='<%=siteCode%>'/> <input type="hidden" name="siteCode" id="siteCode" value='<%=siteCode%>'/>
<input type="hidden" name="month" id="month" value='<%=month%>'/> <input type="hidden" name="month" id="month" value='<%=monthStr%>'/>
<button type="submit">Explore Data</button> <button type="submit">Explore Data</button>
</form> </form>
--> -->
......
<html> <html>
<head> <head>
<style> <script>
*{ window.location = "index.jsp";
font-family: Arial, Helvetica, sans-serif; </script>
}
body{
background-color: #efefef;
}
.input-field label{
display: block;
font-size: 12px;
}
.input-field input{
border: none;
border-bottom: 1px solid #000;
outline: none;
background-color: transparent;
}
.input-field{
padding: 10px 0;
display: block;
}
.view-button{
border-style: none;
border-radius: 2px;
background-color: #b4adee;
color: #fff;
padding: 5px 10px;
min-width: 80px;
cursor: pointer;
}
.ang-dbtitle {
font-size: 18px;
color: #666;
}
.input-form{
padding: 10px;
}
</style>
<title>Sales Trends</title>
</head> </head>
<body>
<div style="padding: 10px 0 10px 10px;">
<div class="ang-dbtitle">
Sales Trends Data
</div>
</div>
<form method="POST" action="executeSaleTrends.jsp">
<div class="input-form">
<div class="input-field">
<label>Employee Code : </label>
<input type="text" name="empCode" id="empCode"/>
</div>
<div class="input-field">
<label>Site Code : </label>
<input type="text" name="siteCode" id="siteCode"/>
</div>
<div class="input-field">
<label>Month : </label>
<input type="text" placeholder="MM/YYYY" name="month" id="month"/>
</div>
<button class="view-button" type="submit">View Data</button>
</div>
</form>
</body>
</html> </html>
<%System.out.println("------------SaleTrends Index Called------"); %>
<?xml version="1.0" encoding="UTF-8"?>
<%@page import="ibase.webitm.bean.*, ibase.utility.CommonConstants"%>
<%@page import="ibase.webitm.utility.ITMException"%>
<%@page import="ibase.utility.*"%>
<%@page import="ibase.utility.UserInfoBean"%>
<%@page import="java.io.*,java.util.*,java.util.Calendar,java.util.zip.*"%>
<html>
<head>
<style>
*{
font-family: Arial, Helvetica, sans-serif;
}
body{
background-color: #efefef;
}
.input-field label{
display: block;
font-size: 12px;
}
.input-field input{
border: none;
border-bottom: 1px solid #000;
outline: none;
background-color: transparent;
}
.input-field{
padding: 10px 0;
display: block;
}
.view-button{
border-style: none;
border-radius: 2px;
background-color: #b4adee;
color: #fff;
padding: 5px 10px;
min-width: 80px;
cursor: pointer;
}
.ang-dbtitle {
font-size: 18px;
color: #666;
}
.input-form{
padding: 10px;
}
</style>
</head>
<body>
<%
UserInfoBean userInfo = (ibase.utility.UserInfoBean) session.getAttribute("USER_INFO");
String referer = request.getRequestURL().toString();
referer = referer.substring(referer.indexOf("ibase") - 1);
referer = referer + "?" + (String) request.getQueryString();
if (userInfo == null) //Ahmed
{
%>
<jsp:forward page="/jsp/DirectAccess.jsp">
<jsp:param name="REFERER" value="<%=referer%>"/>
</jsp:forward>
<%
}
String userCode = userInfo.getLoginCode();
String transDB = userInfo.getTransDB();
String site = userInfo.getPropValue("SITE_CODE");
String empCode = request.getParameter("empCode");
if( empCode == null || empCode.trim().length() == 0)
{
empCode = userCode;
}
String siteCode = request.getParameter("siteCode");
if( siteCode == null || siteCode.trim().length() == 0)
{
siteCode = site;
}
String monthStr = request.getParameter("month");
if( monthStr == null || monthStr.trim().length() == 0)
{
Calendar cal = Calendar.getInstance();
int month = cal.get(Calendar.MONTH) + 1 ;
int year = cal.get(Calendar.YEAR) ;
if( month < 10 )
{
monthStr = "0" + month + "/" + year;
}
else
{
monthStr = month + "/" + year;
}
}
%>
<div style="padding: 10px 0 10px 10px;">
<div class="ang-dbtitle">
Sales Trends Data
</div>
</div>
<form method="POST" action="executeSaleTrends.jsp">
<div class="input-form">
<div class="input-field">
<label>Employee Code : </label>
<input type="text" name="empCode" id="empCode" value="<%=empCode%>"/>
</div>
<div class="input-field">
<label>Site Code : </label>
<input type="text" name="siteCode" id="siteCode" value="<%=siteCode%>"/>
</div>
<div class="input-field">
<label>Month : </label>
<input type="text" placeholder="MM/YYYY" name="month" id="month" value="<%=monthStr%>"/>
</div>
<button class="view-button" type="submit">View Data</button>
</div>
</form>
</body>
</html>
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