Added by jay

parent 620f5d3b
This source diff could not be displayed because it is too large. You can view the blob instead.
<!doctype html>
<!-- The DOCTYPE declaration above will set the -->
<!-- browser's rendering engine into -->
<!-- "Standards Mode". Replacing this declaration -->
<!-- with a "Quirks Mode" doctype may lead to some -->
<!-- differences in layout. -->
<%@page import="ibase.utility.CommonConstants"%>
<%@page import = "java.io.*,java.util.*,java.text.SimpleDateFormat" %>
<!--Changed by Amrapali Ahire on 15-nov-2010 [set the date format dynamically ][WI01SUN020] -->
<%@page import="ibase.utility.*"%>
<%@page import="ibase.utility.UserInfoBean"%>
<%@page import="ibase.bean.*"%>
<%@ page import="java.util.*"%>
<%@ page import="java.io.File"%>
<%@ page import="java.io.IOException"%>
<%@ page import="java.util.List"%>
<jsp:useBean id="changePasswordBean" class="ibase.bean.ChangePasswordBean" scope="page"/>
<%@page import="ibase.ejb.CommonDBAccessRemote"%>
<%@page import="ibase.ejb.CommonDBAccessEJB"%>
<%@ page import="javax.servlet.http.HttpSession" %>
<%@page import="ibase.utility.BaseLogger"%>
<%!
//javax.servlet.jsp.JspWriter localOut;
%>
<%
String action = E12GenericUtility.checkNull( (String)request.getSession().getAttribute("ACTION") );
String userCode = E12GenericUtility.checkNull( (String)request.getSession().getAttribute("USER") );
String macAddress = E12GenericUtility.checkNull( (String)request.getSession().getAttribute("MAC_ADDRESS") );
System.out.println("---------@@@@calling BaseE12.jsp action:["+action+"]");
System.out.println("---------@@@@calling BaseE12.jsp userCode:["+userCode+"]");
System.out.println("---------@@@@calling BaseE12.jsp macAddress:["+macAddress+"]");
//Commented userName set cookie on 15-Feb-22 Start
//Added by sunny soni for set username cookie after login on 17-Dec-21 [Start]
//Cookie userCodeNameCookie = new Cookie("userName", userCode);
//Added by Pankaj T. on 07-01-2022 for removing vulnerability set httponly and secure flag for cookie - start
//userCodeNameCookie.setPath("; HttpOnly;");
//userCodeNameCookie.setSecure(true);
//Added by Pankaj T. on 07-01-2022 for removing vulnerability set httponly and secure flag for cookie - end
//response.addCookie( userCodeNameCookie );
//Added by sunny soni for set username cookie after login on 17-DEC-21 [End]
//Commented userName set cookie on 15-Feb-22 End
%>
<html>
<head>
<!--CSS for loading message at application Startup-->
<meta http-equiv="X-UA-Compatible" content="IE=9">
<meta http-equiv="X-UA-Compatible" content="IE=8">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<!-- <meta name="referrer" content="no-referrer"> --> <!-- Added by Sagar B. to bypass authentication for google maps api[08/11/17] -->
<!--<meta http-equiv="content-disposition", "attachment;filename=together_tcm6-8071.pdf">-->
<style type="text/css">
/*Added by Dnyaneshwar on 6-Aug-13 [Other information not select. select only input type are text, TextArea and password] Start*/
*:not(input):not(textarea):not(text):not(password)
{
-webkit-touch-callout: none; /* disable the IOS popup when long-press on a link */
-webkit-user-select: none; /* Chrome all / Safari all / disable selection/Copy of UIWebView*/
-moz-user-select: none; /* Firefox all */
-ms-user-select: none; /* IE 10+ */
outline: none; /*Added by Dnyaneshwar on 18-Feb-15 [ Outline coming in E12PopupPanel after added focus panel.]*/
}
/*Added by Dnyaneshwar on 6-Aug-13 [ Other information not select. select only input type are text, TextArea and password] End*/
/*Added by Pravin K on 1-FEB-19 [ For pdf data selection documentEditor ] START */
.pdfSelectionViewer div {
-webkit-user-select: text !important;
-webkit-user-select: text !important;
-moz-user-select: text !important;
-ms-user-select: text !important;
-webkit-touch-callout: text !important;
}
/*Added by Pravin K on 1-FEB-19 [ For pdf data selection] START */
/*Added by Pravin K on 2-SEPT-19 [ FOR ang v9] START */
.pdfSelectionViewer span {
-webkit-user-select: text !important;
-webkit-user-select: text !important;
-moz-user-select: text !important;
-ms-user-select: text !important;
-webkit-touch-callout: text !important;
}
/*Added by Pravin K on 2-SEPT-19 [ FOR ang v9] END */
body{
width: 100%;
height:100%;
margin:0;
padding:0;
position: absolute;
overflow:hidden;
background-color: #1D1A16 !important;
}
.logoTransition {
margin:auto;
transition: box-shadow 0.5s ease-in-out;
transform: scale(3);
transition-duration: 3s;
animation: animationFrames linear 2s;
animation-iteration-count: 1;
transform-origin: 50% 50%;
animation-fill-mode: forwards;
-webkit-animation: animationFrames linear 2s;
-webkit-animation-iteration-count: 1;
-webkit-transform-origin: 50% 50%;
-webkit-animation-fill-mode: forwards;
-moz-animation: animationFrames linear 1s;
-moz-animation-iteration-count: 1;
-moz-transform-origin: 50% 50%;
-moz-animation-fill-mode: forwards;
-o-animation: animationFrames linear 2s;
-o-animation-iteration-count: 1;
-o-transform-origin: 50% 50%;
-o-animation-fill-mode: forwards;
-ms-animation: animationFrames linear 2s;
-ms-animation-iteration-count: 1;
-ms-transform-origin: 50% 50%;
-ms-animation-fill-mode: forwards;
border-radius: 100%;
box-shadow: 0px 2px 20px 20px rgba(199, 199, 199, 0.42), 0px 2px 4px 4px rgba(0, 0, 0, 0.7);
-moz-box-shadow: 0px 2px 20px 20px rgba(199, 199, 199, 0.42), 0px 2px 4px 4px rgba(0, 0, 0, 0.7);
-webkit-box-shadow:0px 2px 20px 20px rgba(199, 199, 199, 0.42), 0px 2px 4px 4px rgba(0, 0, 0, 0.7);
}
@keyframes animationFrames{
0% {
transform: scaleX(1.00) scaleY(1.00) ;
}
100% {
transform: scaleX(3.00) scaleY(3.00) ;
}
}
@-moz-keyframes animationFrames{
0% {
-moz-transform: scaleX(1.00) scaleY(1.00) ;
}
100% {
-moz-transform: scaleX(3.00) scaleY(3.00) ;
}
}
@-webkit-keyframes animationFrames {
0% {
-webkit-transform: scaleX(1.00) scaleY(1.00) ;
}
100% {
-webkit-transform: scaleX(3.00) scaleY(3.00) ;
}
}
@-o-keyframes animationFrames {
0% {
-o-transform: scaleX(1.00) scaleY(1.00) ;
}
100% {
-o-transform: scaleX(3.00) scaleY(3.00) ;
}
}
@-ms-keyframes animationFrames {
0% {
-ms-transform: scaleX(1.00) scaleY(1.00) ;
}
100% {
-ms-transform: scaleX(3.00) scaleY(3.00) ;
}
}
.loader-size {
height: 40px;
width: 40px;
margin: auto;
display: block;
margin: auto;
}
.welcome-loader {
margin: auto;
height: auto;
display: grid;
align-items: center;
}
.msgDiv {
color: #252525;
font-size: 15px;
white-space: normal;
text-align: center;
padding: 10px 10px 0px 10px;
animation: textFadein 1s;
-moz-animation: textFadein 1s; /* Firefox */
-webkit-animation: textFadein 1s; /* Safari and Chrome */
-o-animation: textFadein 1s; /* Opera */
animation: textFadein 1s;
color: white;
}
@keyframes textFadein {
from { opacity: 0; }
to { opacity: 1; }
}
@-webkit-keyframes textFadein {
from { opacity: 0; }
to { opacity: 1; }
}
.slide1 {
width: 100%;
height: 100%;
margin: 0;
position: absolute;
padding: 0;
display: flex;
align-items: center;
background-color: #1D1A16;
}
.loading-message-cont {
width: 40%;
display: block;
align-items: center;
position: absolute;
bottom: 0;
right: 0;
height: 20%;
}
/*Added by Sadique S on 12/03/2021 [sub form implementation in table view] START */
.subFormTableViewTooltip {
max-width: 350px;
background-color: #555;
color: #fff;
text-align: initial;
border-radius: 6px;
padding: 5px;
position: absolute;
z-index: 1;
transition: opacity 0.3s;
font-size: 14px !important;
font-family: Arial, Helvetica, sans-serif !important;
}
/*Added by Sadique S on 12/03/2021 [sub form implementation in table view] END */
</style>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<!-- <meta name="gwt:property" content="locale=ar_IQ">-->
<!-- -->
<!-- Consider inlining CSS to reduce the number of requested files -->
<!-- -->
<link type="text/css" rel="stylesheet" href="BaseE12.css">
<!-- Added by Prasad on 26/08/15 [for Survey] START -->
<link href='css/jquery-ui-slider-pips.css' rel='stylesheet' type='text/css' />
<link href='css/survey.css' rel='stylesheet' type='text/css' />
<link href='css/jquery-ui-1.css' rel='stylesheet' type='text/css' />
<!-- Added by Prasad on 26/08/15 [for Survey] END -->
<!-- Added by Pankaj T on 27/01/17 [for time picker] START -->
<link href="css/jquery.timepicker.css" rel='stylesheet' type='text/css'>
<link href='css/custom.css' rel='stylesheet' type='text/css' />
<!-- -->
<!-- Any title is fine -->
<!-- -->
<title>Proteus Vision | Home</title>
<link rel="icon" type="image/x-icon" href="favicon.ico" />
<!--Added by Pratheek on 06/12/17 for new datepicker-->
<link href="css/datepicker.css" rel="stylesheet" type='text/css'>
<!-- -->
<!-- This script loads your compiled module. -->
<!-- If you add any GWT meta tags, they must -->
<!-- be added before this line. -->
<!-- -->
<!-- Added by Abhishek T for enabling HTML tagging [08/DEC/17] START -->
<link type="text/css" rel="stylesheet" href="/ibase/webitm/css/htmltagging/tagger.css">
<!-- Added by Abhishek T for enabling HTML tagging [08/DEC/17] END -->
<link type="text/css" rel="stylesheet" href="/ibase/webitm/css/E12TransFlow.css">
<!-- Added by Santosh on 02/02/2017 to link TransFlow JS and CSS [END]-->
<!-- added by vishal pathare on 4.6.17 for onpaste event add feeds in detail page for browser -->
<!-- Added by sunny soni for showing datetime calender [start]-->
<link type='text/css' rel='stylesheet' href='css/jquery.datetimepicker.css'/>
<link href="css/cropper.min.css" rel="stylesheet" type="text/css">
<!-- Added by Abhishek T on 26-12-16 [For use cropper js plugin] END -->
<!-- Added by Pratheek on 06/12/17 [for new datepicker] -->
<!-- Added by Pankaj T. on 29-08-19 custom fonts for icons-->
<link href='css/vision_ui.css' rel='stylesheet' type='text/css' />
<!-- Added by Abhishek T. on 11-09-19 [Font icons for content plugin] -->
<link href='css/vision_doc.css' rel='stylesheet' type='text/css' />
<link href='css/vision_subform.css' rel='stylesheet' type='text/css' />
<!-- Change by shrutika on 24-04-2020 [Start] for IE11 related issue -->
<script type="text/javascript">
function customLog( value )
{
var isIE = !!document.documentMode;
if( isIE == false )
{
if( typeof window.console !== "undefined" )
{
console.log( value );
}
}
}
</script>
<!-- Change by shrutika on 24-04-2020 [End] for IE11 related issue -->
<script type='text/javascript' language="javascript" src='js/jquery.min-1.10.1.js'></script>
<script type='text/javascript' language="javascript" src="js/jquery.easing.min.js"></script>
<!-- Added by Pravin K on 1-AUG-19 [To store pdf selection logs] START -->
<script type="text/javascript" language="javascript" src="js/PDFLabelSelection.js"></script>
<!-- Added by Pravin K on 1-AUG-19 [To store pdf selection logs] END -->
<script type="text/javascript">
function getCookie(cname) {
var name = cname + "=";
var decodedCookie = decodeURIComponent(document.cookie);
var ca = decodedCookie.split(';');
for(var i = 0; i <ca.length; i++) {
var c = ca[i];
while (c.charAt(0) == ' ') {
c = c.substring(1);
}
if (c.indexOf(name) == 0) {
return c.substring(name.length, c.length);
}
}
return "";
}
function validateEmail(email) {
const re = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
return re.test(String(email).toLowerCase());
}
</script>
</head>
<!-- -->
<!-- The body can have arbitrary html, or -->
<!-- you can leave the body empty if you want -->
<!-- to create a completely dynamic UI. -->
<!-- -->
<!-- <body onUnLoad="unloadBaseE12()" onload=""> -->
<%!
public String checkNull( String value )
{
if( value == null || "null".equalsIgnoreCase( value.trim() ) )
{
return "";
}
return value.trim();
}
%>
<%
ibase.utility.UserInfoBean userInfo = ( ibase.utility.UserInfoBean )session.getAttribute( "USER_INFO" );
ibase.utility.E12GenericUtility genericUtility = new ibase.utility.E12GenericUtility();
if( userInfo == null )
{
%>
<jsp:forward page="/jsp/login.html">
<jsp:param name="REFERER" value=""></jsp:param>
</jsp:forward>
<%
}
//Added by Prajyot on 25-DEC-2013 [For Multi-Language Support]
String userLocale = userInfo.getUserLanguage() + "-" + userInfo.getUserCountry(),
dispDateFormat=genericUtility.getDispDateFormat(),
applDateFormat=genericUtility.getApplDateFormat();
System.out.println("\n\n\n *****Setting userLocale=[" + userLocale +"] dispDate=[" + dispDateFormat +"] applDate=[" + applDateFormat +"]" );
System.out.println("USER INFO ::: "+userInfo.toString());
int minPwdLength = changePasswordBean.getMinPwdLength(userInfo.getTransDB());
System.out.println(" \n ******** minPwdLength["+minPwdLength+"]");
//Added By Ajinkya Gopalkar on 13-OCT-15[for getting parameter after site change]
String setLoading = request.getParameter("li");
if ( setLoading == null )
{
setLoading = "true";
}
//Added by Prajyot on 25-DEC-2013 [For Multi-Language Support]
//Added by Shrutika on 15-09-2020 for The user icon which shows detail information about user should also show Login using User id/Mobile/email and user_id/mobile/email value
Cookie ck[]=request.getCookies();
BaseLogger.log("0",userInfo,null, "inside baseE12.jsp...343 :" + ck.length);
for(int i=0;i<ck.length;i++)
{
CommonDBAccessEJB commonDBAccess = new CommonDBAccessEJB();
BaseLogger.log("0",userInfo,null, "inside baseE12.jsp...350 :"+ck[i].getName()+" "+ck[i].getValue());//printing name and value of cookie
if( ck[i].getName().equalsIgnoreCase("userName"))
{
String value = ck[i].getValue();
String authenticatedUsing = checkNull( userInfo.getAuthenticatedUsing() );
BaseLogger.log("0",userInfo,null, "inside baseE12.jsp...355 ["+authenticatedUsing+"]]value["+value+"]");
String logintType = "", logintTypeVlaue = "", finalLoginType = "", finalLoginValue = "", entredDataType = "";
String logoutMsg = "";
String entredData = commonDBAccess.getAuthenticatedUsing(value);
BaseLogger.log("0",userInfo,null, "inside baseE12.jsp...363 ["+entredData+"]");
if( entredData.contains(":") )
{
String[] arrOfStr = entredData.split(":");
entredDataType = arrOfStr[0];
if( entredDataType.trim().equalsIgnoreCase("MOBILE_NO"))
{
entredDataType = "Mobile no";
}
else if( entredDataType.trim().equalsIgnoreCase("EMAIL_ID"))
{
entredDataType = "Email id";
}
else if( entredDataType.trim().equalsIgnoreCase("CODE"))
{
entredDataType = "User Id";
}
}
//Change by shrutika on 25-09-2020 [Start] for if value is mailId in cookies then value not geting proper in case of proteusVisionServer.
if("".equalsIgnoreCase(entredData))
{
entredDataType = "Email id";
}
//Change by shrutika on 25-09-2020 [End] for if value is mailId in cookies then value not geting proper in case of proteusVisionServer.
if( authenticatedUsing.contains(":") )
{
String[] arrOfStr = authenticatedUsing.split(":");
logintType = arrOfStr[0];
logintTypeVlaue = arrOfStr[1];
logintTypeVlaue = logintTypeVlaue.trim();
System.out.println("inside baseE12.jsp...logintType ["+logintType+"]]logintTypeVlaue["+logintTypeVlaue+"]]]");
}
if( logintType.trim().equalsIgnoreCase("MOBILE_NO"))
{
logoutMsg = logintTypeVlaue + " against reseted MOBILE :"+ value;
logoutMsg = "Request "+ entredDataType +" : " + value + " Session Mobile no : " + logintTypeVlaue;
logintType= "MOBILE";
}
else if( logintType.trim().equalsIgnoreCase("EMAIL_ID"))
{
logintType = "EMAIL";
logoutMsg = "Request "+entredDataType+" : " + value + " Session Email id : " + logintTypeVlaue;
}
else if( logintType.trim().equalsIgnoreCase("CODE"))
{
logintType = "USER";
logoutMsg = "Request "+entredDataType+" : " + value + " Session User Id : " + logintTypeVlaue;
}
else if( logintType.trim().equalsIgnoreCase("USER_ID"))
{
logoutMsg = "Request User Id : " + value + " Session User Id : " + logintTypeVlaue;
}
System.out.println("inside baseE12.jsp...value ["+value+"]]");
System.out.println("inside baseE12.jsp...logintTypeVlaue ["+logintTypeVlaue+"]]");
%>
<script>
//Change by shrutika on 25-09-2020 [Start] for if value is mailId in cookies then value not geting proper in case of proteusVisionServer.
//var currentUsernameValue = getCookie('userName');
//console.log('inside basee12 java....451',currentUsernameValue);
var logtype = "<%=logintType%>";
var logvalue = "<%=logintTypeVlaue%>";
var enterValue = "<%=value%>";
var entredDataType = "<%=entredDataType%>";
console.log("inside basee12 java....enterValue:["+enterValue+"]");
//console.log('inside basee12 java....currentUsernameValue',currentUsernameValue);
console.log("inside basee12 java....logvalue:["+logvalue+"]");
/*if( currentUsernameValue.includes("\""))
{
console.log('inside if basee12 java....currentUsernameValue',currentUsernameValue);
const searchRegExp = /\"/gi;
const replaceWith = '';
currentUsernameValue = currentUsernameValue.replaceAll(searchRegExp, replaceWith);
console.log('inside if basee12 java....currentUsernameValue after replace ":',currentUsernameValue);
}*/
if( enterValue.includes("\""))
{
console.log("inside if basee12 java....enterValue:["+enterValue+"]");
const searchRegExp = /\"/gi;
const replaceWith = '';
enterValue = enterValue.replaceAll(searchRegExp, replaceWith);
console.log("inside if basee12 java....enterValue after replace:["+enterValue+"]");
}
//if( currentUsernameValue != logvalue )
if( enterValue != logvalue )
{
//if( validateEmail(currentUsernameValue))
if( validateEmail(enterValue))
{
entredDataType = "Email id";
}
<%
HttpSession httpSession = request.getSession(false);
String sessionId = httpSession.getId();
BaseLogger.log("0",userInfo,null, "inside baseE12 jsp logoutMsg ["+logoutMsg+"]]finalLoginType["+finalLoginType+"]]]]finalLoginValue["+finalLoginValue+"]]]");
commonDBAccess.updateLoginTrace( sessionId , logoutMsg, userInfo );
%>
function authenticate()
{
//alert("Inconsistency detected in session while login process \n\nThe authentication process received access type " +logtype + ": "+logvalue + " against request " + entredDataType + ": " + currentUsernameValue );
alert("Inconsistency detected in session while login process \n\nThe authentication process received access type " +logtype + ": "+logvalue + " against request " + entredDataType + ": " + enterValue );
document.location = "/ibase/jsp/logout.jsp";
}
authenticate();
}
//Change by shrutika on 25-09-2020 [End] for if value is mailId in cookies then value not geting proper in case of proteusVisionServer.
</script>
<%
}
}
//Added by Shrutika on 15-09-2020 for The user icon which shows detail information about user should also show Login using User id/Mobile/email and user_id/mobile/email value
%>
<body style = "background-color: #1D1A16 !important;" onbeforeunload="if (event.persisted) noBack();" onUnLoad="unloadBaseE12()" onload="resetCounter(); noBack();">
<script>
setTimeout(function()
{
document.getElementById('welcome-loader').style = 'display:none';
}, 0.1);
setTimeout(function() {
document.getElementById('loadingMsg').innerHTML = 'Performing one time setup, will take a while.';
}, 2000);
setTimeout(function() {
document.getElementById('welcome-loader').style = 'display:block';
}, 2050);
setTimeout(function() {
document.getElementById('loadingMsg').innerHTML = 'Please wait, experiencing slow connectivity.';
}, 9000);
</script>
<!--Added by Jatin M on 24-Jun-2022 [to display alert counter prior to session timeout] - START-->
<script type="text/javascript" language="javascript" src="js/customConfirmPopup.js"></script>
<link rel="stylesheet" href="css/customConfirmPopup.css" type="text/css" />
<script>
var httpRequest;
var sessTimeoutInSecs = '<%= userInfo.getSessTimeoutInSec() %>' != 'null' ? '<%= userInfo.getSessTimeoutInSec() %>' : 300;
var inactiveInterval = '<%= session.getMaxInactiveInterval() %>';
var sessionAlertTime = inactiveInterval - sessTimeoutInSecs;
var message = '';
var alertCounter = 0;
var popupCreated = false;
var decrementCounter = sessTimeoutInSecs;
var servletResponse = '';
var interval = setInterval(function checkInActivity() {
alertCounter++;
if(sessionAlertTime === alertCounter)
{
if (window.ActiveXObject)
{
httpRequest = new ActiveXObject("Microsoft.XMLHTTP");
}
else if (window.XMLHttpRequest)
{
httpRequest = new XMLHttpRequest();
}
httpRequest.onreadystatechange=function()
{
if(httpRequest.readyState == 4 && httpRequest.status == 200)
{
servletResponse = httpRequest.responseText;
if(servletResponse >= sessionAlertTime)
{
popupCreated = true;
customPopup.__open({
message : message,
okLabel : 'Renew',
cancelLabel : 'Logout',
onOk : () => onRenew(),
onCancel : () => onLogout()
});
}
else
{
alertCounter = servletResponse;
}
}
};
var url = "/ibase/CheckAndExtendTimeServlet?STORE_SESS_TIME=false";
httpRequest.open("POST", url, true);
httpRequest.send();
}
if(popupCreated)
{
var min = parseInt(decrementCounter / 60);
var secs = '0' + decrementCounter % 60;
if(decrementCounter === 0)
{
onLogout();
}
if(secs.length === 3)
{
secs = decrementCounter % 60;
}
message = 'Your session will be expired in <b> '+ min + ':' + secs + '</b>';
if(document.getElementById('custom-confirm-message') != null)
{
var messageEl = document.getElementById('custom-confirm-message');
messageEl.innerHTML = message;
}
decrementCounter--;
}
}, 1000);
function onRenew()
{
popupCreated = false;
alertCounter = 0;
decrementCounter = sessTimeoutInSecs;
if (window.ActiveXObject)
{
httpRequest = new ActiveXObject("Microsoft.XMLHTTP");
}
else if (window.XMLHttpRequest)
{
httpRequest = new XMLHttpRequest();
}
var url = "/ibase/CheckAndExtendTimeServlet";
httpRequest.open("POST", url, false);
httpRequest.send(null);
}
function onLogout()
{
clearInterval(interval);
var transitionLogo = document.getElementById('logo-transition');
transitionLogo.style.removeProperty('display');
window.logoutUser();
}
</script>
<!--Added by Jatin M on 24-Jun-2022 [to display alert counter prior to session timeout] - END-->
<!--add loading indicator while the app is being loaded-->
<div id="logo-transition" class= "slide1"><img class = "logoTransition" style="height: 120px; width:120px;" src="images/vision_logo.png"></div>
<div id = "loading-message-cont" class="loading-message-cont">
<div id = "welcome-loader" class="welcome-loader" style="display:none">
<div id = "loadingMsg" class = "msgDiv"></div>
<img class= "loader-size" src="images/loading.svg" />
</div>
</div>
<script>
</script>
<script type="text/javascript" language="javascript" src="js/E12Intro.js"></script>
<script type="text/javascript" language="javascript" src="js/Communicate.js"></script>
<!-- Added by Chetan Mahajan on 2-Jul-2015 [For dashboard report] Start -->
<!--Start Import for AM Chart API By Varsha V. on date 04-11-2017-->
<script type="text/javascript" language="javascript" src="amcharts/amcharts.js"></script>
<script type="text/javascript" language="javascript" src="amcharts/serial.js"></script>
<script type="text/javascript" language="javascript" src="amcharts/pie.js"></script>
<script type="text/javascript" language="javascript" src="amcharts/plugins/export/export.min.js"></script>
<link rel="stylesheet" href="amcharts/plugins/export/export.css" type="text/css" media="all" />
<script type="text/javascript" language="javascript" src="amcharts/themes/light.js"></script>
<!--End Import for AM Chart API By Varsha V. on date 04-11-2017-->
<script type="text/javascript" language="javascript" src="FusionChart/js/BuildChart.js"></script>
<script type="text/javascript" language="javascript" src="FusionChart/js/FusionCharts1.js"></script>
<script type="text/javascript" language="javascript" src="FusionChart/js/fusioncharts1.powercharts.js"></script>
<script type="text/javascript" language="javascript" src="FusionChart/js/JS/FusionCharts.js"></script>
<script type="text/javascript" language="javascript" src="js/updateCalDBR.js"></script>
<!-- Added by Chetan Mahajan on 2-Jul-2015 [For dashboard report] End -->
<!--Start Import for Bubble Chart using chart.js API By Dhanendra on date 16-01-2017-->
<script type="text/javascript" language="javascript" src="FusionChart/js/BubbleChart.js"></script>
<script type="text/javascript" language="javascript" src="FusionChart/js/Chart.js"></script>
<script type="text/javascript" language="javascript" src="FusionChart/js/Chart.bundle.js"></script>
<script type="text/javascript" language="javascript" src="FusionChart/js/utils.js"></script>
<!--End Import for Bubble Chart using chart.js API By Dhanendra on date 16-01-2017-->
<!-- Added By Ajinkya Gopalkar on 16-FEB-15 [ choose image from gallery ] -->
<script type="text/javascript" language="javascript" src="/ibase/planner/E12Calendar/E12Calendar.nocache.js"></script>
<!--Cahnged by Pooja S on [31-12-2018] to delete the cache of browser -->
<script type="text/javascript" language="javascript" src="e12ria/e12ria.nocache.js?"+(new java.util.Date()).toLocaleString()></script>
<!-- Added by Reema on 13/06/14[change password]-->
<script type="text/javascript" language="javascript" src="js/sha256.js"></script>
<script type="text/javascript" language="javascript" src="js/checkPassword.js"></script>
<script type="text/javascript" language="javascript" src="js/fileApi.js"></script>
<!-- Added by Reema on 13/06/14[change password]-End -->
<!-- Added by Sagar B for custom time box impl[10-01-2020]START-->
<script type="text/javascript" src="js/jquery.plugin.min.js"></script>
<script type="text/javascript" src="js/jquery.timeentry.min.js"></script>
<!-- Added by Sagar B for custom time box impl[10-01-2020]END-->
<!-- <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js"></script> -->
<!-- Added by Pankaj T. on 25-06-19 As per suggested by Danish sir read google map MAP_API_KEY from ibase.xml - start -->
<%
System.out.println("In BaseE12.jsp CommonConstants.MAP_API_KEY["+CommonConstants.MAP_API_KEY+"]");
if( !"".equals( CommonConstants.MAP_API_KEY ) )
{
System.out.println("In BaseE12.jsp CommonConstants.MAP_API_KEY is not null");
%>
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=<%=CommonConstants.MAP_API_KEY%>"></script>
<%
}
else
{
System.out.println("In BaseE12.jsp CommonConstants.MAP_API_KEY is null");
}
%>
<!-- Added by Pankaj T. on 25-06-19 As per suggested by Danish sir read google map MAP_API_KEY from ibase.xml - end -->
<script type="text/javascript" src="js/mapProvider.js"></script>
<script type="text/javascript" src="js/richmarker.js"></script>
<script type="text/javascript" src="js/headroom.js"></script>
<!--Added by Sonam K on 26-Feb-19 [Integration of SignaturePad component in ContentPlugin] START -->
<script type="text/javascript" src="js/signaturePad.js"></script>
<script type="text/javascript" src="js/signaturePadApp.js"></script>
<!--Added by Sonam K on 26-Feb-19 [Integration of SignaturePad component in ContentPlugin] END-->
<!-- Added by Sagar B. to bypass authentication for google maps api[08/11/17]START -->
<!-- Added by samadhan for my places angular plugin -->
<!-- <script type="text/javascript" src="angplugin/ang-plugins.js"></script> -->
<!-- Added by Prasad on 23/11/19 [to display all console] START -->
<%
String ibaseDebugLevel = ibase.utility.E12GenericUtility.checkNull(CommonConstants.DEBUG_LEVEL);
ibaseDebugLevel = "".equals( ibaseDebugLevel ) ? "0" : ibaseDebugLevel;
int ibaseDebugLev = Integer.parseInt(ibaseDebugLevel);
if ( ibaseDebugLev != -1 ) //For Developer use
{
%>
<!-- Added by Sagar B. to remove all consoles by script[23-Oct-18]START -->
<!-- Need to comment this script to view all consoles -->
<script>
setTimeout(function(){
console.log = function(){};
document.getElementById("e12ria").contentWindow.console.log = function(){};
}, 5000);
</script>
<!-- Added by Sagar B. to remove all consoles by script[23-Oct-18]END -->
<%
}
%>
<!-- Added by Prasad on 23/11/19 [to display all console] END -->
<!-- <script type="text/javascript">
var target = document.head;
var observer = new MutationObserver(function(mutations) {
for (var i = 0; mutations[i]; ++i) { // notify when script to hack is added in HTML head
if (mutations[i].addedNodes[0].nodeName == "SCRIPT" && mutations[i].addedNodes[0].src.match(/\/AuthenticationService.Authenticate?/g)) {
var str = mutations[i].addedNodes[0].src.match(/[?&]callback=.*[&$]/g);
if (str) {
if (str[0][str[0].length - 1] == '&') {
str = str[0].substring(10, str[0].length - 1);
} else {
str = str[0].substring(10);
}
var split = str.split(".");
var object = split[0];
var method = split[1];
window[object][method] = null; // remove censorship message function _xdc_._jmzdv6 (AJAX callback name "_jmzdv6" differs depending on URL)
//window[object] = {}; // when we removed the complete object _xdc_, Google Maps tiles did not load when we moved the map with the mouse (no problem with OpenStreetMap)
}
observer.disconnect();
}
}
});
var config = { attributes: true, childList: true, characterData: true }
observer.observe(target, config);
</script> -->
<script language="JAVASCRIPT">
console.log("In script tag");
var action = '<%=action%>';
var userCode = '<%=userCode%>';
var macAddress = '<%=macAddress%>';
console.log("action in BaseE12.jsp:["+action+"]");
console.log("userCode in BaseE12.jsp:["+userCode+"]");
console.log("macAddress in BaseE12.jsp:["+macAddress+"]");
if( "BROWSERLOGIN" == action )
{
console.log("action in if BaseE12.jsp:["+action+"]");
//Change by shrutika on 24-04-2020 [Start] for IE11 related issue
var isIE = !!document.documentMode;
if( isIE == false )
{
createIndexedDBTable();
}
//Change by shrutika on 24-04-2020 [End] for IE11 related issue
}
function createIndexedDBTable()
{
console.log("In createIndexedDBTable userCode:["+userCode+"]");
console.log("In createIndexedDBTable mac address:["+macAddress+"]");
try
{
// This works on all devices/browsers, and uses IndexedDBShim as a final fallback
var indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB || window.shimIndexedDB;
// Open (or create) the database
var open = indexedDB.open("UUIDDatabase", 1);
open.onerror = function(event) {
console.log("Failed to open database in createIndexedDBTable");
}
// Create the schema
open.onupgradeneeded = function() {
console.log("In onupgradeneeded");
var db = open.result;
var store = db.createObjectStore("StoreUUID", {keyPath: "id"});
};
open.onsuccess = function() {
// Start a new transaction
var db = open.result;
var tx = db.transaction("StoreUUID", "readwrite");
var store = tx.objectStore("StoreUUID");
// Query the data
store.put({id: userCode, uuid: macAddress});
console.log("after put uuid");
var getUUID = store.get(userCode);
getUUID.onsuccess = function() {
console.log("cache uuid for user "+userCode+" result:["+getUUID.result+"]");
if( getUUID.result != null )
{
console.log("result is not null");
var uuid = checkNull(getUUID.result.uuid);
console.log("cache uuid for user "+userCode+":["+uuid+"]");
console.log("cache uuid for user "+userCode+" length:["+uuid.length+"]");
}
else
{
console.log("result is null");
}
};
getUUID.onerror = function() {
console.log("Failed to getting uuid");
};
// Close the db when the transaction is done
tx.oncomplete = function() {
db.close();
};
}
open.onblocked = function(event) {
console.log("Your database version can't be upgraded because the app is open in createIndexedDBTable:["+event+"]");
}
}
catch( e )
{
console.log("Unable to open IndexedDB Exception in createIndexedDBTable:["+e+"]");
}
}
function checkNull(val)
{
var value = val + "";
if( value == null || value == undefined || value === "undefined")
{
value = "";
}
return value.trim();
}
</script>
<!-- Added by Sagar B. to bypass authentication for google maps api[08/11/17]END -->
<!-- Added by Prasad on 26/08/15 [for Survey] START -->
<script language="Javascript" type="text/javascript" src='js/jquery-ui-1.10.4.custom.min.js'></script>
<script language="Javascript" type="text/javascript" src='js/jquery-ui-slider-pips.js'></script>
<script language="Javascript" type="text/javascript" src='js/jquery.ui.touch-punch.js'></script>
<script language="Javascript" type="text/javascript" src="js/SurveyScript.js"></script>
<!-- Added by Prasad on 26/08/15 [for Survey] END -->
<!-- Added by Sandeep on 17/11/16 [for multiple layout] Start -->
<script type="text/javascript" language="javascript" src="js/customFormat.js"></script>
<!-- Added by shrutika on 04-12-202 [Start] added new format ITEM_CODE to draw attributes dynamically according to item_code/item_type -->
<script type="text/javascript" language="javascript" src="js/itemCodeFormat.js"></script>
<script type="text/javascript" language="javascript" src="js/jquery.knob.min.js"></script>
<script type="text/javascript" language="javascript" src="js/jRate.min.js"></script>
<script type="text/javascript" language="javascript" src="js/insignia.js"></script>
<script type="text/javascript" language="javascript" src="js/multiInput.js"></script> <!-- Added by Sagar B. for new format multiInput -->
<script type="text/javascript" language="javascript" src="js/sample.js"></script>
<script type="text/javascript" language="javascript" src="js/bipolarMap.js"></script>
<script type="text/javascript" language="javascript" src="js/jquery.timepicker.js"></script>
<script type="text/javascript" language="javascript" src="js/injectDynamicCSSAndJSFile.js"></script>
<!-- Added by Abhishek T on 03-Mar-17 [For using WHMap format] START -->
<script type="text/javascript" language="javascript" src="js/WHMap.js"></script>
<!-- Added by Abhishek T on 03-Mar-17 [For using WHMap format] END -->
<!-- Added by Sandeep on 17/11/16 [for multiple layout] End -->
<!-- Added by Pooja.S on[2-Nov-2018] for Autocomplete SearchBox with Jsondata Start -->
<script type="text/javascript" language="javascript" src="js/map.js"></script>
<!-- Added by Pooja.S on[2-Nov-2018] for Autocomplete SearchBox with Jsondata End -->
<!-- Added by Abhishek for use WebSocket START -->
<script type="text/javascript" language="javascript" src="js/websocket.js"></script>
<!-- Added by Abhishek for use WebSocket END -->
<!-- Added by Santosh on 02/02/2017 to link TransFlow JS and CSS [START]-->
<script type="text/javascript" language="javascript" src="/ibase/webitm/js/E12TransFlow.js"></script>
<script type="text/javascript" language="javascript" src="/ibase/webitm/js/E12TagActionLinks.js"></script>
<script type="text/javascript" language="javascript" src="/ibase/webitm/js/e12PluginWrapper.js"></script>
<script type="text/javascript" language="javascript" src="/ibase/webitm/js/ClipBoard.js"></script>
<script type="text/javascript" language="javascript" src="/ibase/webitm/js/validateAttInput.js"></script>
<script language="Javascript" type="text/javascript" src="js/materialize.min.js"></script>
<!-- Added by Sandesh - For Recent Activity START -->
<script type="text/javascript" src="js/e12storage.js"></script>
<script type="text/javascript" language="javascript" src="js/jquery.datetimepicker.full.js"></script>
<script type="text/javascript" language="javascript" src="js/datetimefield.js"></script>
<!-- Added by sunny soni for showing datetime calender [start]-->
<script type="text/javascript">
<!-- Added by shrutika on 17-07-17 for Call Report Status menu issue -->
if (! window.GlobalVar) window.GlobalVar = '';
function includeJavascriptFile(srcFile) {
if( srcFile == null || srcFile == 'undefined' || srcFile.trim() == '' )
{
return;
}
var lastPos = srcFile.lastIndexOf( "/" );
var fileName = srcFile.substring( lastPos+1, srcFile.length );
var fileType = fileName.substring( fileName.lastIndexOf( "." )+1, fileName.length );
if( ! isFileIncluded( fileName, fileType ) )
{
console.log("=====Included File is ["+srcFile+"]");
if (document.createElement && document.getElementsByTagName) {
var head_tag = document.getElementsByTagName('head')[0];
var script_tag = document.createElement('script');
script_tag.setAttribute('type', 'text/javascript');
script_tag.setAttribute('src', srcFile);
head_tag.appendChild(script_tag);
//Added by Sagar M.30-1-19[For Next button dissable]
script_tag.onerror = function() {
console.log('There is an error to inject file!');
removeJSCSSFile('dummy_local.js','js');
includeJavascriptFile( '/ibase/webitm/js/dummy_local.js' );
}
//Added by Sagar M.30-1-19[For Next button dissable]
}
}
}
function isFileIncluded(filename, filetype)
{
var returnVal = false;
var targetelement=(filetype=="js")? "script" : (filetype=="css")? "link" : "none" //determine element type to create nodelist from
var targetattr=(filetype=="js")? "src" : (filetype=="css")? "href" : "none" //determine corresponding attribute to test for
var allsuspects=document.getElementsByTagName(targetelement)
for (var i=allsuspects.length; i>=0; i--) //search backwards within nodelist for matching elements to remove
{
if (allsuspects[i] && allsuspects[i].getAttribute(targetattr)!=null && allsuspects[i].getAttribute(targetattr).indexOf(filename)!=-1)
{
returnVal = true;
break;
}
}
return returnVal;
}
/* Added by Sandeeep S Start */
function filterJSON(jsonToFilter,expressionToFilter,callback)
{
var filterJson = [];
var jsonString = JSON.parse(jsonToFilter);
jsonString.DETAILS.filter(function(value) {
if (eval(expressionToFilter)) {
filterJson.push(value);
}
});
console.log('filterJson ==> ' + JSON.stringify(filterJson));
callback(JSON.stringify(filterJson));
}
/* Added by Sandeeep S End */
</script>
<!-- Added by Sandesh For Recent Activity End -->
<!-- Added by Varsha V For adding export to excel function -->
<script type="text/javascript">
function exportExcel(id)
{
var divId = document.getElementById(id).parentNode.id;
var htmldata = $('#'+divId+'').html();
document.getElementById("data").value=htmldata;
document.getElementById("myForm").action = "/ibase/E12BROWSER/jsp/ExcelExport.jsp";
document.getElementById("myForm").submit();
}
</script>
<!-- Ended by Varsha V For adding export to excel function -->
<!-- Added by Abhishek T on 26-12-16 [For use cropper js plugin] START -->
<script type="text/javascript" src="js/cropper.min.js"></script>
<script type="text/javascript" language="javascript" src="js/datepicker.js"></script>
<!-- Added by Pratheek on 18/03/19 [for site_code format in reports added new option in listBox site_code_range] -->
<script type="text/javascript" language="javascript" src="js/multipleSiteCodeField.js"></script>
<script>
function HashMap()
{
this.map = {};
}
HashMap.prototype =
{
put : function(key, value)
{
this.map[key] = value;
},
get : function(key)
{
return this.map[key];
},
contains : function(key)
{
for (var k in this.map)
{
if (this.map.hasOwnProperty(k) && key === k)
return true;
}
return false;
}
};
var introMap = new HashMap();
// introMap.put('trv_fare','');
var wrkInItMap = new HashMap();
//wrkInItMap.put('refId','362E000873');
//wrkInItMap.put('refSeries','T-EXP');
introMap.put('workFlwInIt',wrkInItMap);
introMap.put('wrk_objName','');
</script>
<SCRIPT type="text/javascript">
setE12Navigator('<%=userLocale%>', '<%=dispDateFormat%>', '<%=applDateFormat%>');
window.history.forward();
function noBack() {
window.history.forward();
}
var minPwdLen = <%=minPwdLength%>;
</SCRIPT>
<script>
//Added by Ajinkya Darvesh on 23-06-17 for [disable F5 reloading]-start
function disableF5(e)
{
if ( (e.which || e.keyCode) == 116 )
{
alert("Please do not refresh the page. It would reload the application and all changes would be lost.");
e.preventDefault();
}
}
$(document).ready(function(){
$(document).bind("keydown", disableF5);
});
//Added by Ajinkya Darvesh on 23-06-17 for [disable F5 reloading]-end
</script>
<script type="text/javascript" language="javascript" src="js/l10n.min.js"></script>
<script type="text/javascript" language="javascript" src="js/json2.min.js"></script>
<script type="text/javascript" language="javascript" src="js/locale.js"></script>
<%
String isTNCInitiated = (String)session.getAttribute( "IS_TNC_INITIATED" );
System.out.println("In BaseE12.jsp IS_TNC_INITIATED["+isTNCInitiated+"]");
String isClearCache = (String)session.getAttribute( "CLEAR_CACHE" );
System.out.println("In BaseE12.jsp CLEAR_CACHE["+isClearCache+"]");
String allowChgAccount = (String)session.getAttribute( "ALLOW_CHG_ACCOUNT" );
System.out.println("In BaseE12.jsp ALLOW_CHG_ACCOUNT["+allowChgAccount+"]");
%>
<div id="loading" style="display: none;">
<div id="WelcomeHDR">Please wait ...</div>
<div id="userID"><%=userInfo.getLoginCode().trim()%></div>
<!-- Added by Reema on 13/06/14[change password] -->
<%-- <div id="loginPwd" style="display: none;"><%=userInfo.getLoginPwd().trim()%></div> --%>
<!-- Reema-End -->
<div id="profileID"><%=userInfo.getProfileId().trim()%></div>
<div id="applnName" class="hiddenDiv">SFA</div>
<div id="welcomeMsg"></div>
<div id="empDesignation"><%=checkNull( userInfo.getDesignation() )%></div>
<div id="empDivision"><%=checkNull( userInfo.getDivision() )%></div>
<div id="empHeadQuat"><%=checkNull( userInfo.getStanCode() )%></div>
<div id="empDOJ"><%=checkNull( userInfo.getDateJoin() )%></div>
<div id="empName"><%=checkNull( userInfo.getEmpName() )%></div>
<div id="empCode"><%=checkNull( userInfo.getEmpCode() )%></div>
<!-- Added by Dnyaneshwar Chavan on 30-Oct-14 [Change password required first, middle and last names ] Start -->
<div id="empFName"><%=checkNull( userInfo.getEmpFName() )%></div>
<div id="empMName"><%=checkNull( userInfo.getEmpMName() )%></div>
<div id="empLName"><%=checkNull( userInfo.getEmpLName() )%></div>
<div id="empLName"><%=checkNull( userInfo.getEmpLName() )%></div>
<!-- Added by Sanket Jagtap on 04-Aug-17 [Change password for user] -->
<div id="userType"><%=checkNull( userInfo.getUserType())%></div>
<div id="userName"><%=checkNull( userInfo.getUserName())%></div>
<div id="userLanguage"><%=checkNull( userInfo.getUserLanguage() )%></div>
<div id="userCountry"><%=checkNull( userInfo.getUserCountry() )%></div>
<!-- Added by Dnyaneshwar Chavan on 30-Oct-14 [Change password required first, middle and last names ] Start -->
<div id="deptCode" class="hiddenDiv"><%=checkNull( userInfo.getDeptCode() )%></div>
<div id="siteCode" class="hiddenDiv"><%=checkNull( userInfo.getSiteCode() )%></div>
<!-- Added by shrutika on 01-02-18[Start] for set site description and city in case of first time login and change site -->
<div id="siteDescr" class="hiddenDiv"><%=checkNull( userInfo.getSiteDescr() )%></div>
<div id="city" class="hiddenDiv"><%=checkNull( userInfo.getCity() )%></div>
<!-- Added by shrutika on 01-02-18[End] for set site description and city in case of first time login and change site -->
<!-- Added by shrutika on 14-02-18 for set fin_entity in case of first time login and change site -->
<div id="fin_entity" class="hiddenDiv"><%=checkNull( userInfo.getFin_entity() )%></div>
<!-- Added by Pratheek on 11-02-19 for set facility_code in case of first time login and change site -->
<div id="facility_code" class="hiddenDiv"><%=checkNull( userInfo.getFacility_code() )%></div>
<div id="entityCode" class="hiddenDiv"><%=checkNull( userInfo.getEntityCode() )%></div>
<div id="itemSer" class="hiddenDiv"><%=checkNull( userInfo.getItemSer() )%></div>
<div id="userLevel"><%=checkNull( userInfo.getUserLevel() )%></div>
<div id="APPL_NAME" class="hiddenDiv">SFA</div>
<!-- Changed by nikita on 12-Apr-17 [Date format should be as per the definition, it must read from DateFormat.xml] -->
<div id="dbDateFormat" class="hiddenDiv"><%=checkNull( genericUtility.getDBDateFormat() )%></div>
<div id="dispDateTimeFromat" class="hiddenDiv"><%=checkNull( genericUtility.getDispDateTimeFormat() )%></div>
<div id="dispDate" class="hiddenDiv"><%=checkNull( genericUtility.getDispDateFormat() )%></div>
<div id="applDate" class="hiddenDiv"><%=checkNull( genericUtility.getApplDateFormat() )%></div>
<div id="userTheme" class="hiddenDiv"><%=checkNull( userInfo.getUserTheme() ).trim().toLowerCase()%></div>
<!--Added by Amol Sant on 18-06-17[To get userName] -->
<div id="userName" class="hiddenDiv"><%=checkNull( userInfo.getUserName()).trim().toUpperCase()%></div>
<!-- //Added by Vishal Pathare on 2-AUG-2016 for[changing dependancy of theme from <user_theme> to <ux_Interface>] -->
<div id="uxInterface" class="hiddenDiv"><%=checkNull( userInfo.getUxInterface() ).trim()%></div>
<div class="hiddenDiv" id="LoginMode">BaseE12</div>
<div class="hiddenDiv" id="callerInterface">BROWSER</div>
<div id="WelcomeFOOT">While the Vision application is loading</div>
<div class="loading-indicator"></div>
<div id="isTNCInitiated" class="hiddenDiv"><%=isTNCInitiated%></div>
<div id="isClearCache" class="hiddenDiv"><%=isClearCache%></div>
<div id="allowChgAccount" class="hiddenDiv"><%=allowChgAccount%></div>
<div id="profileDescr" class="hiddenDiv"><%=checkNull( userInfo.getProfileDescr() ).trim()%></div>
<div id="applDateTime" class="hiddenDiv"><%=checkNull( genericUtility.getApplDateTimeFormat() )%></div>
<!-- Added by Ajinkya on 16-Sep-15 [ To configure geolocation] -->
<%-- <%System.out.println("CommonConstants.GEOPOS_ENABLE["+CommonConstants.GEOPOS_ENABLE+"]"); %>
<div id="enableGeoPosition" class="hiddenDiv"><%=CommonConstants.GEOPOS_ENABLE%></div> --%>
<%System.out.println("userInfo.getGeoPosOption() ["+userInfo.getGeoPosOption()+"]"); %>
<div id="enableGeoPosition" class="hiddenDiv"><%=userInfo.getGeoPosOption()%></div>
<!-- Added by Shivaji on 27-May-2015 [ To add tag line]-Start -->
<div id="tagLine" class="hiddenDiv"></div>
<!-- Added by Shivaji on 27-May-2015 [ To add tag line]-End -->
<!-- Added by Sandeep S. on 25-07-17 [To implement delete cache in browser] -->
<div id="buildNO" class="hiddenDiv"><%=CommonConstants.BUILD_NO%></div>
<!-- Added by Pravin K on 11-8-17 [To hide social icon] START -->
<div id="featureOptions" class="hiddenDiv"><%=CommonConstants.FEATURES%></div>
<!-- Added by Pravin K on 11-8-17 [To hide social icon] END -->
<!-- Added by Samadhan on 18-8-17 [To implement incremental search] -->
<div id="pageSize" class="hiddenDiv"><%=CommonConstants.PAGE_SIZE%></div>
<div id="enterprise" class="hiddenDiv"><%=checkNull( userInfo.getEnterprise() )%></div>
<div id="social_opt" class="hiddenDiv"><%=checkNull( userInfo.getSocialOpt() )%></div>
<!-- Added by Pankaj T. on 16-11-18 [for console configuration if 1 then print console only] -->
<div id="clientDebugLevel" class="hiddenDiv"><%=CommonConstants.CLIENT_DEBUG_LEVEL%></div>
<!-- Added By Pankaj T. on 18-11--2020 for removing weak account lock vulnerability - if user wrongly enter password more than 5 times then lock the account and send new password on email/mobile and unlock account using new password -->
<div id="wrongLoginCount" class="hiddenDiv"><%=CommonConstants.WRONG_LOGIN_COUNT%></div>
<!-- Added by sainath T on 11-JUN-19 [For Cross site scripting]-->
<div id="xssFilter" class = "hiddenDiv"><%=CommonConstants.XSS_FILTER %></div>
<!-- Added by shrutika on 13-08-19 [Start] for Explore option to be added in home screen and report. -->
<div id="licenseKey" class="hiddenDiv"><%=CommonConstants.FM_API_KEY%></div>
<!-- Added by shrutika on 10-10-19 [Start] for avoid server call for getting all user prefrance value. -->
<div id="userPrefList" class="hiddenDiv"><%=checkNull( userInfo.getUserPrefList() )%></div>
<!-- Added by sunny soni for getting current and upto Row Number for lazy loading in workflow -->
<div id="uptoRowNum" class="hiddenDiv"><%=CommonConstants.uptoRowNum%></div>
<!-- by Pankajt T on 14-09-2020 for The user icon which shows detail information about user should also show Login using User id/Mobile/email and user_id/mobile/email value -->
<div id="authenticatedUsing"><%=checkNull( userInfo.getAuthenticatedUsing() )%></div>
</div>
<!-- Added by Sadique S on 12/03/2021 [sub form implementation in table view] -->
<div id="tooltipSubformId" class="subFormTableViewTooltip" style="display: none;"></div>
<div class="hiddenDiv" id="hk_next">52</div>
<div class="hiddenDiv" id="hk_prev">50</div>
<div class="hiddenDiv" id="hk_finish">51</div>
<%
//Changes By Ajinkya Gopalkar on 13-OCT-15[for configure loadingPage jsp]
if ( "true".equalsIgnoreCase(setLoading) )
{
%>
<%@ include file="LoadingPage.jsp"%>
<%
}
%>
<!-- OPTIONAL: include this if you want history support -->
<iframe src="javascript:''" id="__gwt_historyFrame" tabIndex='-1' style="position:absolute;width:0;height:0;border:0"></iframe>
<!-- Added By Pankaj T. on 14-03-19 for calculate running total using expression & display in footer -->
<iframe src="" id="summaryIframe" style="display:none;width:0;height:0;border:0"></iframe>
<!-- RECOMMENDED if your web app will not function without JavaScript enabled -->
<noscript>
<div style="width: 22em; position: absolute; left: 50%; margin-left: -11em; color: red; background-color: white; border: 1px solid red; padding: 4px;">
Your web browser must have JavaScript enabled
in order for this application to display correctly.
</div>
</noscript>
<!-- Added by Reema on 18-feb-15[set previous className on mouseout] -->
<script type="text/javascript">
// Commented by Reema on 1-Oct-15 [Move JQuery to E12MenuItem class]
/* var prevAnchor = new Object(),
setPrevAnchor = function(className, propValue)
{
prevAnchor.className = className;
prevAnchor.propValue = propValue;
},
resetPrevAnchor = function()
{
var $prevAnchor = $('body').find('.' + prevAnchor.className);
$prevAnchor.attr('style', prevAnchor.propValue);
};*/
// Commented by Reema on 1-Oct-15 [Move JQuery to E12MenuItem class]-End
// <!-- Added by Savita Yadav on 25-03-15 [To set focus on searchBox using Alt+f key]-Start -->
window.document.onkeydown = function(event)
{
if (window.event.altKey && (window.event.keyCode == 70)) //Alt+f blocked.
{
window.event.preventDefault();
console.log("On keydown");
document.getElementById('searchBox').focus();
return false;
}
};
// <!-- Added by Savita Yadav on 25-03-15 [To set focus on searchBox using Alt+f key]-End -->
// <!-- Added by Prasad on 28/07/15 [for css level changes in mail] -Start -->
$(document)
.on('focus.textarea', '.mailTextArea', function() {
var savedValue = this.value;
this.value = '';
this.baseScrollHeight = this.scrollHeight;
this.value = savedValue;
})
.on('input.textarea', '.mailTextArea', function() {
var minRows = this.getAttribute('data-min-rows') | 0,
rows;
this.rows = minRows;
console.log(this.scrollHeight, this.baseScrollHeight);
rows = Math.ceil((this.scrollHeight - this.baseScrollHeight) / 17);
this.rows = minRows + rows;
});
// <!-- Added by Prasad on 28/07/15 [for css level changes in mail] -END -->
// Added by Reema on 16-Dec-15 [for approve Reject transaction]-Start
function call2ApproveReject(id)
{
try
{
console.log('BaseE12 id '+id);
//window.frames['signPage'].document.getElementById(id).click();
var frame = window.document.body.querySelector("iframe[name=signPage]");
var frameDoc = frame.contentDocument;
var button = frameDoc.getElementById(id);
if (button && button.click)
{
button.click();
}
console.log('Done workflow');
}
catch (e)
{
console.log(e.message);
}
}
// Added by Reema on 16-Dec-15 [for approve Reject transaction]-End
//Added by Prasad on 12/12/17 [open upload socket] START
function openUploadSocket()
{
//var wnd = (window.opener && window.opener.top) || window.top;
var socket = null;
var loginCode = "<%=userInfo.getLoginCode().trim()%>";
if ( window.opener && window.opener.top )
{
socket = window.opener.top.wsapi.WebSocketWrapper.getWebSocketWrapperObjectByName("upload");
}
else if ( window.top )
{
socket = window.top.wsapi.WebSocketWrapper.getWebSocketWrapperObjectByName("upload");
}
console.log( "Socket ["+ socket +"]" );
if ( ! socket )
{
console.log("Socket not found, creating new !");
if ( window.opener && window.opener.top )
{
socket = new window.opener.top.wsapi.WebSocketWrapper( window.opener.top.location.origin, loginCode, "upload" );
}
else if ( window.top )
{
socket = new window.top.wsapi.WebSocketWrapper( window.top.location.origin, loginCode, "upload" );
}
//socket = new wnd.wsapi.WebSocketWrapper(wnd.location.origin, loginCode, "upload");
console.log("New Socket", socket);
socket.onOpen = function() {
console.log("Socket opened !");
};
socket.open();
}
else socket.onMessage = {};
}
openUploadSocket();
//Added by Prasad on 12/12/17 [open upload socket] END
</script>
<!-- Added by Reema on 18-feb-15[set previous className on mouseout]-End -->
<!-- Added by Priyanka B 8-June-18 Start -->
<proteus-components></proteus-components>
<!-- Added by Priyanka B 8-June-18 End -->
<!-- Added Nilesh Gunjal for subform pophelp Start ::03-01-19 -->
<script>
function formatDate(date)
{
var dateStr='';
console.log('***Date in formatDate>>>>',date);
if(date.indexOf('/') > -1)
{
var splitDate =date.split("/");
var firstdate= splitDate[0];
var month= splitDate[1];
dateStr=month+'/'+firstdate+'/'+splitDate[2];
console.log('updated formatDate::: :',dateStr);
}
else
{
var splitDate =date.split("-");
var firstdate= splitDate[0];
var month= splitDate[1];
dateStr=month+'-'+firstdate+'-'+splitDate[2];
console.log('updated formatDate>>>>',dateStr);
}
return new Date( dateStr ).getTime();
}
//Added by Sadique S on 12/03/2021 [sub form implementation in table view] START
function subFormOnMouseOver( tableSubFormEle, event )
{
try
{
var divId = tableSubFormEle.getAttribute( 'mouseEventId' );
if ( document.getElementById( 'tooltipSubformId' ) != null )
{
if ( document.getElementById( divId ) != null )
{
var tooltipData = document.getElementById( divId ).innerHTML;
if ( tooltipData.length > 0 )
{
var d = document.getElementById( 'tooltipSubformId' );
d.style.position = "absolute";
var x_pos = event.clientX;
var y_pos = event.clientY;
d.style.left = x_pos + 'px';
d.style.top = y_pos + 'px';
d.className = "subFormTableViewTooltip";
if ( tooltipData.includes( "HTMLSpanElement" ) )
{
console.log('subFormOnMouseOver');
}
else
{
document.getElementById( 'tooltipSubformId' ).innerHTML = getHTMLObj(tooltipData);
document.getElementById( 'tooltipSubformId' ).style.display = "block";
}
/*mySpanElement.setAttribute("style", "visibility: hidden;display: block;");
final int left = vertEle.getAbsoluteLeft();
final int top = vertEle.getAbsoluteTop();
final int height = Window.getClientHeight();
final int width = Window.getClientWidth();
int spanTop = top - mySpanElement.getOffsetHeight() - 7;
int spanLeft = width - mySpanElement.getOffsetWidth();
if( top >= (height/2) && left >= (width/2))
{
E12CommonUtils.printOnConsole("spanTop["+spanTop+"]");
int leftValue = left - (mySpanElement.getOffsetWidth() / 2) ;
mySpanElement.setAttribute("style", "position : fixed;top :"+spanTop+"px;left : "+leftValue+"px;visibility: visible;");
}
else if(top > (height/2) && left < (width/2))
{
E12CommonUtils.printOnConsole("Else "+ height/2);
mySpanElement.setAttribute("style", "position : fixed;top :"+spanTop+"px;left : "+left+"px;visibility: visible;");
}*/
}
}
}
}
catch (e)
{
console.log("Error subFormOnMouseOver msg: " + e);
}
}
function subFormOnMouseOut( tableSubFormEle )
{
try
{
var divId = tableSubFormEle.getAttribute( 'mouseEventId' );
if (document.getElementById( 'tooltipSubformId' ) != null)
{
var d = document.getElementById( 'tooltipSubformId' );
d.className = "";
document.getElementById( 'tooltipSubformId' ).innerHTML = "";
document.getElementById( 'tooltipSubformId' ).style.display = "none";
}
}
catch (e)
{
console.log("Error subFormOnMouseOut msg: " + e);
}
}
function getHTMLObj(htmlStr)
{
var span = document.createElement('span');
span.innerHTML = htmlStr;
var decoded = span.firstChild.nodeValue;
span.remove();
return decoded;
}
//Added by Sadique S on 12/03/2021 [sub form implementation in table view] END
//Added by Prasad on 23/06/2021 [to prevent scroll to number field] START
document.addEventListener("wheel", function(event) {
if (document.activeElement.type === "number" && document.activeElement.classList.contains("noscroll"))
{
document.activeElement.blur();
}
});
//Added by Prasad on 23/06/2021 [to prevent scroll to number field] END
</script>
<!-- Added Nilesh Gunjal for subform pophelp End ::03-01-19 -->
<!-- Changed by Prasad on 18/12/2020 [for angular9 related implementation, changing the import as per updated angular] START -->
<!-- <script type="text/javascript" src="angplugin/polyfills.js"></script>
<script type="text/javascript" src="angplugin/main.js"></script>
<script type="text/javascript" src="angplugin/runtime.js"></script> -->
<!-- <script src="angplugin/polyfills-es5.js" nomodule defer></script>
<script src="angplugin/polyfills-es2015.js" type="module"></script>
<script src="angplugin/main-es2015.js" type="module"></script>
<script src="angplugin/main-es5.js" nomodule defer></script>
<script src="angplugin/runtime-es2015.js" type="module"></script>
<script src="angplugin/runtime-es5.js" nomodule defer></script> -->
<!-- Changed by Prasad on 18/12/2020 [for angular9 related implementation, changing the import as per updated angular] END -->
<!-- Added by Samruddhi for independent projects [Start]-->
<script src="/ibase/Insight/schemaplugin/polyfills.js" type="module"></script>
<script src="/ibase/Insight/schemaplugin/main.js" type="module"></script>
<script src="/ibase/Insight/schemaplugin/runtime.js" type="module"></script>
<script type="text/javascript" src="/ibase/Insight/schemaplugin/ang-plugins.js"></script>
<script src="/ibase/Insight/datasourceplugin/polyfills.js" type="module"></script>
<script src="/ibase/Insight/datasourceplugin/main.js" type="module"></script>
<script src="/ibase/Insight/datasourceplugin/runtime.js" type="module"></script>
<script type="text/javascript" src="/ibase/Insight/datasourceplugin/ang-plugins.js"></script>
<script src="/ibase/Insight/sharedplugin/polyfills.js" type="module"></script>
<script src="/ibase/Insight/sharedplugin/main.js" type="module"></script>
<script src="/ibase/Insight/sharedplugin/runtime.js" type="module"></script>
<script type="text/javascript" src="/ibase/Insight/sharedplugin/ang-plugins.js"></script>
<script src="/ibase/Insight/inmemoryplugin/polyfills.js" type="module"></script>
<script src="/ibase/Insight/inmemoryplugin/main.js" type="module"></script>
<script src="/ibase/Insight/inmemoryplugin/runtime.js" type="module"></script>
<script type="text/javascript" src="/ibase/Insight/inmemoryplugin/ang-plugins.js"></script>
<script src="/ibase/Insight/gproplugin/polyfills.js" type="module"></script>
<script src="/ibase/Insight/gproplugin/main.js" type="module"></script>
<script src="/ibase/Insight/gproplugin/runtime.js" type="module"></script>
<script type="text/javascript" src="/ibase/Insight/gproplugin/ang-plugins.js"></script>
<script src="/ibase/Insight/genprocessplugin/polyfills.js" type="module"></script>
<script src="/ibase/Insight/genprocessplugin/main.js" type="module"></script>
<script src="/ibase/Insight/genprocessplugin/runtime.js" type="module"></script>
<script type="text/javascript" src="/ibase/Insight/genprocessplugin/ang-plugins.js"></script>
<script src="/ibase/Insight/dashboardpagesplugin/polyfills.js" type="module"></script>
<script src="/ibase/Insight/dashboardpagesplugin/main.js" type="module"></script>
<script src="/ibase/Insight/dashboardpagesplugin/runtime.js" type="module"></script>
<script type="text/javascript" src="/ibase/Insight/dashboardpagesplugin/ang-plugins.js"></script>
<script src="/ibase/Insight/userRightsplugin/polyfills.js" type="module"></script>
<script src="/ibase/Insight/userRightsplugin/main.js" type="module"></script>
<script src="/ibase/Insight/userRightsplugin/runtime.js" type="module"></script>
<script type="text/javascript" src="/ibase/Insight/userRightsplugin/ang-plugins.js"></script>
<script src="/ibase/Insight/objfollowupactplugin/polyfills.js" type="module"></script>
<script src="/ibase/Insight/objfollowupactplugin/main.js" type="module"></script>
<script src="/ibase/Insight/objfollowupactplugin/runtime.js" type="module"></script>
<script type="text/javascript" src="/ibase/Insight/objfollowupactplugin/ang-plugins.js"></script>
<script src="/ibase/Insight/dashbdgnplugin/polyfills.js" type="module"></script>
<script src="/ibase/Insight/dashbdgnplugin/main.js" type="module"></script>
<script src="/ibase/Insight/dashbdgnplugin/runtime.js" type="module"></script>
<script type="text/javascript" src="/ibase/Insight/dashbdgnplugin/ang-plugins.js"></script>
<script src="/ibase/Insight/managevisplugin/polyfills.js" type="module"></script>
<script src="/ibase/Insight/managevisplugin/main.js" type="module"></script>
<script src="/ibase/Insight/managevisplugin/runtime.js" type="module"></script>
<script type="text/javascript" src="/ibase/Insight/managevisplugin/ang-plugins.js"></script>
<!-- Added by Samruddhi for independent projects [End]-->
<!-- Changed by Samruddhi P. on 15/02/2022 [for angular13 related implementation, changing the import as per updated angular] START -->
<script src="angplugin/polyfills.js" type="module"></script>
<script src="angplugin/main.js" type="module"></script>
<script src="angplugin/runtime.js" type="module"></script>
<!-- Changed by Samruddhi P. on 15/02/2022 [for angular13 related implementation, changing the import as per updated angular] END -->
<script type="text/javascript" src="angplugin/ang-plugins.js"></script>
</body>
</html>
\ No newline at end of file
package ibase.e12ria.client;
import java.util.HashMap;
import com.google.gwt.core.client.GWT;
import com.google.gwt.json.client.JSONObject;
import com.google.gwt.json.client.JSONString;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.Window.ScrollEvent;
import com.google.gwt.user.client.ui.FlowPanel;
public class E12Constants {
public static I18NConstants constants = GWT.create(I18NConstants.class);
public static String editFlag; //added by vikas lagad on 21.8.18 [to show back label on view mode]
public static String userID;
public static String passwordSha256;
public static String profileID;
// public static String applnName;
public static String empDesignation;
public static String empDivision;
public static String empHeadQuat;
public static String empDOJ;
public static String dispDate;
// Added by Dnyaneshwar chavan on 21/DEC/2012 [Add one data member] Start
public static String authenticateStatus;
// Added by Dnyaneshwar chavan on 21/DEC/2012 [Add one data member] End
public static String GEO_FENCE_ENABLED;
public static String welcomeMsg;
public static String objName;
public static String objTitle;
public static String deptCode;
public static String siteCode;
public static String entityCode;
public static String itemSer;
public static String applDateTimeFormat;
//Added by Harshada on 10 DEC 12 [creating user connections on login]START
public static String userLevel;
public static String userName;
//Added by Harshada on 10 DEC 12 [creating user connections on login]END
public static String defaultMenu;
//Added by Harshada on 6 MAR 2013 [Get all user information on authentication]START
public static String siteDescr;
public static String deptDescr;
public static String emailIdOff;
public static String empCode;
public static String empName;
public static int PAGE_SIZE = 10;
//Added by Dnyaneshwar Chavan on 30-OCT-14 [ Change password not working in native interface ] Start
public static String empFName;
public static String empMName;
public static String empLName;
//Added by Dnyaneshwar Chavan on 30-OCT-14 [ Change password not working in native interface ] Start
public static int CONTENTS_SCROLL_TOP = 0; //Added by Sandeep S. on 22-11-16 [To resolve DCR scroll issue]
public static String reportTo;
public static String stanCode;
public static String userCountry;
public static String userLanguage;
//Added by Harshada on 6 MAR 2013 [Get all user information on authentication]END
public static String HK_CANCEL;
public static String HK_DESELECT;
public static String HK_DONE;
public static String HK_PREV;
public static String HK_NEXT;
public static String HK_FINISH;
public static String HK_HEADERBUTTON;
//Added by Prajyot [W15HMIT002 - GPS_ENFORCED Implementation]
//Commented by Sagar B. on [22-Jan-18]
//public static String GPS_ENABLED;
//public static String GPS_ENFORCED;
public static String GEO_POS_OPTION = "0"; //Added by Sagar B. on [22-Jan-18]
public static String NETWORK_OPTION = "1"; //Added by Sagar B. for offline related changes[09-Feb-19]
//Added by Prajyot on 12/FEB/2013 [ To keep track of Local Buttons : Add buttons panel in buttonPanelHMap with key LOCAL_FORM_NO a non-existing form]
public static final int TABLE_FORM_NO = -2;
public static String CMD_CANCEL;
public static String CMD_DESELECT;
public static String CMD_DONE;
public static String CMD_PREV;
public static String CMD_NEXT;
public static String CMD_FINISH;
public static Boolean objLinktype = false; //Added by sunny soni for set objlink for displaying homePage on 20-DEC-16
public static String BUILD_VERSION;
//Added by Harshada on 27th Oct 2012 [creating user connections on login]
public static String conApplNm;
public static final String MANDATORY = "mandatory";
public static final String PROTECT = "protect";
public static String USER_CONNECTION;
public static String hostUrl;
//Added by Prajyot on 12/FEB/2013 [ To keep track of Local Buttons : Add buttons panel in buttonPanelHMap with key LOCAL_FORM_NO a non-existing form]
public static final int LOCAL_FORM_NO = 0;
//Added by Prajyot on 05/MAR/2013 [ MO2KSUN001 : Set Header fixed by detecting Android version ]
public static final String ANDROID_VERSION = "3.1";
public static boolean IS_FEED_FORM = false;
public static int SCROLL_TOP = 0;
public static String isTNCInitiated;
//Added by Prajyot on 19/DEC/2013 [To make use of ApplDate format]
public static String applDate;
public static String userTheme;
public static String uxInterface;//Added by Vishal Pathare on 12-AUG-2016 [global use <ux_interface>] value for theme interface]
public static String isClearCache;
public static String applDescr; //Added by Reema on 4-jun-15[for application description]
// added by mahesh saggam on 20-NOV-19 [to implement application switch logic]
public static String applDescription;
//Added By Prajyot on 05-JUN-2015 [Entity Contact Details for SSP]
public static String allowChgAccount;
public static String profileDescr;
public static String chgEntityDescr;
//Added by Nilesh Soor on 20/05/2015 [ For GWT-Calendar ]
public static String applDateTime;
//Changed by nikita on 12-Apr-17 [Date format should be as per the definition, it must read from DateFormat.xml]
//public static String dispDateTimeFromat = "dd-MMM-yyyy HH:mm:ss";
public static String dispDateTimeFromat;
public static String isPasswordStore = "0";
public static String currentGeoPos;
public static String enableGeoPosition = "false";
//Added By Prasad on 16/10/15 [set global application color]
public static String applColor;//Hexcolor
//Added by Parikshit on 23/06/16 [set global db date format]
//Added by Sanket J on 12/2/16 [set global Application color for image]
public static String applicationColor ;
// added by mahesh saggam on 05-NOV-19 [UI related changes in slide menuPanel]
public static String lastApplColor ;
public static String applicationName;//added by vishal pathare on 17.3.17 for solr url
//Added by Pooja.s on [29-oct-2018] to get the AppGroup Start
public static String applicationGroup;
//Added by nikita on 12-Apr-17 [Date format should be as per the definition, it must read from DateFormat.xml]
// public static String dbDateFormat = "dd-MMM-yyyy";
public static String dbDateFormat;
//Added By Suraj on 25-10-2016 [To set caller interface for GWT calendar]Start
public static String CALL_FROM = "BROWSER";
public static String objType;
//Added By Suraj on 25-10-2016 [To set caller interface for GWT calendar]End
//Added By SurajBhandvale on 18-10-2016 [For Auto refresh transaction data in Feed and Grid view : For Recent Activity related changes ]Start
public static String updatedTransPKValue;
public static String updatedXMLString;
public static boolean isUpdtTrans = false;
public static boolean isAddTrans = false;
public static String newTranUpdtFlag;
public static String changedPKFieldNames = "";
public static String changedPKFieldValues = "";
/*public static int startPage = 0;
public static int endPage = 10;*/
//Added By SurajBhandvale on 18-10-2016 [For Auto refresh transaction data in Feed and Grid view : For Recent Activity related changes ]End
public static String feedPanelId;
public static int onApplaunch;
public static String reqParamStr = "";//Added by sunny soni on 14-OCT-16
//Added By Ajinkya Gopalkar on 6-Jan-16[For checking gps after defined interval]
public static boolean GEOPOS_STATUS = true;
public static String calDBRName = "";
public static HashMap<String, String> objDetailMap = new HashMap<String, String>();
public static int columnMinLength=325;//added by vishal pathare on 13.4.17 [for divide freeForms in columns by min-length].
public static String userType;//Added By Sanket J on 04/08/17 for getting userType from users
public static String featureOptions = ""; //Added by Pravin K on 11-8-17 for hide social icon
public static int pageSize = 100;//added by samadhan to implement incremental search
// Added by Pankaj R on 26-Oct-17 to show client logo basd on enterprise value
public static String enterprise; //Added by Pankaj R on 14-11-17 for enterprise logo
public static String social_opt; // Added by Jay to get Social_opt from Enterprise
//Added by Shrutika on 05-02-18 for update city value when change the site code.
public static String city;
//Added by Shrutika on 14-02-18 for update fin_entity.
public static String fin_entity;
//Added by Pratheek on 28-01-19[ to store the facility code value in reports]-Start
public static String facility_code;
//Added by Pratheek on 28-01-19[ to store the facility code value in reports]-End
//Added by Pankaj T. on 16-11-18 for console configuration if 1 then print console only
public static String clientDebugLevel;
//Added By Pankaj T. on 18-11--2020 for removing weak account lock vulnerability - if user wrongly enter password more than 5 times then lock the account and send new password on email/mobile and unlock account using new password
public static String wrongLoginCount = "5";
//Added by shrutika on 13-08-19 [Start] for Explore option to be added in home screen and report.
public static String licenseKey;
//Added by sunny soni for getting login details for presentation player of resolving file downloading issue[Start]
public static JSONObject getLoginDetails()
{
JSONObject loginDetails = new JSONObject();
try
{
loginDetails.put("USER", new JSONString(E12Constants.userID));
loginDetails.put("PASSWORD", new JSONString(E12Constants.passwordSha256));
loginDetails.put("SERVER_IP", new JSONString(E12Constants.hostUrl));
}
catch (Exception e)
{
E12CommonUtils.printOnConsole("Exception::[ "+e.getMessage()+" ]");
//e.printStackTrace();
}
E12CommonUtils.printOnConsole("Final editedData::[ "+loginDetails+" ]");
return loginDetails;
}
//Added by sunny soni for getting login details for presentation player of resolving file downloading issue[End]
// Added by Abhishek T on 19-Feb-19 For storing application hash code
// As recommended by google play store service, the application hash code
// must be set in incoming TOP message
public static String APPLICATION_HASH_CODE;
//Added by Sagar B. to set offline edit/delete configuration enterprise-wise[13-Mar-19]START
public static String IS_ALLOW_OFFLINE_EDIT = "Y";
public static String IS_ALLOW_OFFLINE_DELETE = "Y";
//Added by Sagar B. to set offline edit/delete configuration enterprise-wise[13-Mar-19]END
//Added by sunny soni for getting upto Row Number for lazy loading in workflow[Start]
public static int uptoRowNum ;
//Added by sunny soni for getting upto Row Number for lazy loading in workflow[End]
//Added by Sagar B. for multi tenant serach in SOLR [05-Apr-19]START
public static String searchDomain;
public static JSONObject SOLR_SEARCH_CONFIG = null;
//Added by Sagar B. for multi tenant serach in SOLR [05-Apr-19]END
//Added by Sainath T. on 11-JUN-19 [For Cross site scripting filter]-Start
public static String xssFilter;
//Added by Sainath T. on 11-JUN-19 [For Cross site scripting filter]-End
//Added by Pooja S on 21-August-2019 [To show the Developer Console option only to the userType of D(Developer) ]
public static String lastSelectedMenuOpt;
//Added as per KB sir changes for native header change[Start]
public static String mode = "";
public static boolean isNativeMode = false;
//Added as per KB sir changes for native header change[End]
public static String bmrObjs;
//Added by Pankajt T on 14-09-2020 for The user icon which shows detail information about user should also show Login using User id/Mobile/email and user_id/mobile/email value
public static String authenticatedUsing;
}
package ibase.e12ria.client;
import java.util.ArrayList;
import java.util.HashMap;
import com.google.gwt.core.client.GWT;
import com.google.gwt.dom.client.Style.Display;
import com.google.gwt.core.client.RunAsyncCallback;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.dom.client.ErrorEvent;
import com.google.gwt.event.dom.client.ErrorHandler;
import com.google.gwt.event.dom.client.MouseOutEvent;
import com.google.gwt.event.dom.client.MouseOutHandler;
import com.google.gwt.event.dom.client.MouseOverEvent;
import com.google.gwt.event.dom.client.MouseOverHandler;
import com.google.gwt.http.client.Request;
import com.google.gwt.http.client.RequestBuilder;
import com.google.gwt.http.client.RequestCallback;
import com.google.gwt.http.client.RequestException;
import com.google.gwt.http.client.Response;
import com.google.gwt.resources.client.ImageResource;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.uibinder.client.UiHandler;
import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.HTMLPanel;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.Image;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.PopupPanel;
import com.google.gwt.user.client.ui.ResizeComposite;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.Widget;
import com.google.gwt.xml.client.Document;
import com.google.gwt.xml.client.Node;
import com.google.gwt.xml.client.NodeList;
import com.google.gwt.xml.client.XMLParser;
import ibase.e12ria.client.resources.Resources;
import ibase.e12ria.e12widgets.client.E12CheckBox;
import ibase.e12ria.e12widgets.shared.E12CommonUtils.DeviceOS;
/**
* Add button for Logout,Close,ChangePassword and HideMenu.
* It also display user information in welcome message link.
* @author user
*/
//Added By Prajyot Rumde On 11-08-2011 [RnD]
public class E12HeaderPanel extends ResizeComposite {
private final I18NConstants constants = GWT.create( I18NConstants.class );
private static E12HeaderPanelUiBinder uiBinder = GWT.create( E12HeaderPanelUiBinder.class );
private static final ImageResource HIDE_MENU_IMG = Resources.INSTANCE.hideMenuImg();
private static final ImageResource SHOW_MENU_IMG = Resources.INSTANCE.showMenuImg();
private static final ImageResource DEFAULT_USER_IMG = Resources.INSTANCE.userImage(); //White shadow image with colored background
private static final ImageResource USER_SETTING = Resources.INSTANCE.userSettings();
// private static final ImageResource NOTIFY_IMG = Resources.INSTANCE.notifyImage();
private static final ImageResource GALAXY_USER_IMG = Resources.INSTANCE.galaxyUserImage();
public static String tagLine = "";
interface E12HeaderPanelUiBinder extends UiBinder< Widget, E12HeaderPanel > {
}
//@UiField static ToggleButton hideShowMenu;
// @UiField Button closePanel; //Commented by Nilesh Soor on 25-Aug-14
//@UiField Hidden showMessage;
@UiField static Image userImageHB;
// Added by Pankaj R on 26-Oct-17 to show client logo basd on enterprise value
@UiField static Image e12Logo;
//@UiField Hyperlink welcomeMsgLink;
@UiField static Image userSetting;
@UiField E12ShortcutPanel e12ShortcutPanel;//Added by Nilesh Soor on 25-Aug-14
@UiField HTMLPanel headerDiv;
@UiField static Image workflow;
@UiField E12ApplicationMenuBar e12ApplicationMenuBar;
@UiField HTMLPanel userNamePanel;
//Change by shrutika on 28-03-19 for Implement on shift + tab functionality to switch open tab.
//@UiField static E12NavigateTabBar e12NavigateTabBar;
@UiField public static E12NavigateTabBar e12NavigateTabBar;
//@UiField E12NavigateTabBar e12NavigateTabBar;
@UiField HTMLPanel taglineMetis ; // Added by Shivaji on on 26-May-2015 [ To add Tag Line ]
static boolean isFullScreen;
static String userImageClass = "";
static E12CheckBox hideShowMenu;
//@UiField(provided=true) Button notifyButton;
//Notification notification = new Notification();
//@UiField Image notifyImage;
//PopupPanel popupNotifyPnl = notification.popupPnl;
PopupPanel userPopupPnl;
VerticalPanel vPnl;
HorizontalPanel hPnl;
VerticalPanel mainPanel;
E12UserInfo e12UserInfo;
E12UserSetting e12UserSetting;
static Image usrImgRef = null;/* *Added by Dnyaneshwar Chavan on 11-Sep-15 [User should be change the his profile image in galaxy theme in browser interface.] Start */
@UiField static Image home;
@UiField static Image help;
@UiField public static Image social;//Changed to public by Pravin K on 11-8-17 [To hide social icon]
//Added by Pooja S on 21-August-2019 [To show the Developer Console option only to the userType of D(Developer) ]
@UiField public static Image devloperConsole;
@UiField public static HorizontalPanel minimizeTransPanel; //Added by Sandeep S. on 09-AUG-18 [To implement minimize transaction popup in browser]
@UiField public static Label socialPending ;//Added by Pravin K on 23-JAN-19 [for social count]
/**
* Initialize the UiBinder and set text on all Button.
*/
public E12HeaderPanel() {
E12CommonUtils.printOnConsole(".........HDR 3.1");
E12CommonUtils.getInstance().getWorkFlowPendingCount(0);
//Added By Mahesh Patidar on 05/MAR/13
//notifyButton = notification.messageLabel;
//notifyButton.setStyleName("notifyButton");
// notification.login(E12Constants.userID);
// notification.loadMessages(E12Constants.userID, "Y");
//Ended By Mahesh Patidar
hideShowMenu = new E12CheckBox( DeviceOS.Other );
hideShowMenu.getElement().setId("e12headrPnl-hideShow");
hideShowMenu.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
hideShowMenuClick();
}
});
initWidget( uiBinder.createAndBindUi( this ) );
// Added by Shivaji on 26-May-2015 [To add Tag Line ]-Start
if( E12Global.isGalaxy() )
{
taglineMetis.add( getTagLinePanel() );
}
// Added by Shivaji on 26-May-2015 [To add Tag Line ]-End
hideShowMenu.setTitle(E12Constants.constants.setClickShowHide()); // Modified by Raju K on 20-12-13 for I18N
E12CommonUtils.printOnConsole(".........HDR 3.1.a");
hPnl = new HorizontalPanel();
hPnl.setSpacing(5);
E12Constants.userID = DOM.getElementById( "userID" ).getInnerText();
E12Constants.allowChgAccount = DOM.getElementById( "allowChgAccount" ).getInnerText();
//Changed By Pankaj T on 21-09-17 for userinfo object access on class level
e12UserInfo = E12SearchBar.e12UserInfo;
//e12UserInfo = new E12UserInfo();
e12UserSetting = new E12UserSetting();
E12CommonUtils.printOnConsole(".........HDR 3.1.b");
// Commented by Raju K on 14-10-14 [To create the browser short cut panel] End--
mainPanel = new VerticalPanel();
e12ShortcutPanel.add( mainPanel );
e12ShortcutPanel.setStyle("custome");
//Added by Nilesh Soor on 25-Aug-14 END
E12CommonUtils.printOnConsole(".........HDR 3.1.c");
userSetting.setResource( USER_SETTING );
userSetting.setStyleName("header-userSetting theme-" + E12Constants.userTheme );
E12CommonUtils.printOnConsole(".........HDR 3.1.d");
if(E12Global.isGalaxy())
{
userImageHB.setResource( GALAXY_USER_IMG );
}
else
{
userImageHB.setResource( DEFAULT_USER_IMG );
}
userImageHB.setStyleName("header-defaultUserImage theme-" + E12Constants.userTheme );
userImageHB.getElement().setId("e12hdrPnl-userImageHB");
userImageClass = "header-defaultUserImage ";
E12CommonUtils.printOnConsole(".........HDR 3.1.e");
if ( ! ( Window.Navigator.getAppVersion().contains( "MSIE 7.0" ) || Window.Navigator.getAppVersion().contains( "MSIE 8.0" ) ) )
{
//changes by Ajinkya Gopalkar on 13-FEB-15 [save uploaded images to path]
//Changed by Reema on 18-mar-15 [Change User image path]
// userImageHB.setUrl( E12Global.getHostUrl() +"/ibase/images/userImages/"+E12Constants.userID+".png" );
//Changed by Shivaji on 25-05-2015 [ To change images path]-Start
//userImageHB.setUrl( E12Global.getHostUrl() + "/ibase/resource/" + E12Constants.userID + "/" + E12Constants.userID + ".png" );
userImageHB.setUrl( E12Global.getHostUrl() + "/ibase/resource/images/users/" + E12Constants.userID + ".jpg?"+Math.random() );
//Changed by Shivaji on 25-05-2015 [ To change images path]-End
//Changed by Reema on 18-mar-15 [Change User image path]-End
userImageHB.setTitle(E12Constants.constants.setClickToLogout()); //Modified by Raju K on 20-12-13 [I18N]
userImageHB.setStyleName("header-userImage theme-" + E12Constants.userTheme );
userImageClass = "header-userImage ";
}
//Added by Dnyaneshwar on 23-JUL-13 [ when browser is 'IE8' then display only default user image as per KBSir ] End
userImageHB.addErrorHandler(new ErrorHandler() {
@Override
public void onError(ErrorEvent event) {
// Changed by Shivaji on 01-06-2015 [to read png or jpg image]-Start
userImageHB.setUrl( E12Global.getHostUrl() + "/ibase/resource/images/users/" + E12Constants.userID + ".png?"+Math.random() );
userImageHB.setTitle(E12Constants.constants.setClickToLogout());
userImageHB.setStyleName("header-userImage theme-" + E12Constants.userTheme );
userImageClass = "header-userImage ";
userImageHB.addErrorHandler(new ErrorHandler() {
@Override
public void onError(ErrorEvent event) {
if(E12Global.isGalaxy())
{
userImageHB.setResource( GALAXY_USER_IMG );
}
else
{
userImageHB.setResource( DEFAULT_USER_IMG );
}
userImageHB.setTitle(E12Constants.constants.setClickToLogout()); //Modified by Raju K on 20-12-13 [I18N]
userImageHB.setStyleName("header-defaultUserImage theme-" + E12Constants.userTheme );
userImageHB.getElement().setId("e12HeaderPnl-userImg-err");
userSetting.setStyleName("header-userSetting theme-" + E12Constants.userTheme );
userImageClass = "header-defaultUserImage ";
}
});
// Changed by Shivaji on 01-06-2015 [to read png or jpg image]-End
}
});
//Changes as per Client Mail [ 14-AUG-2013 : Nilesh Parikh ]
//userImage.setTitle( "More information about logged in user and option to logout & change password " );
userImageHB.setTitle(E12Constants.constants.setClickToLogout()); //Modified by Raju K on 20-12-13 [I18N]
userSetting.setTitle(E12Constants.constants.setClickForSetting());
userImageHB.getElement().setId("userImageHP");
E12CommonUtils.printOnConsole(".........HDR 3.1.f");
/*notifyImage.setResource(NOTIFY_IMG);
notifyImage.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
notifyButton.click();
}
});
notifyImage.setStyleName("notifyImage");*/
E12CommonUtils.printOnConsole(".........HDR 3.1.g");
workflow.setResource(Resources.INSTANCE.workflowGrayImg());
workflow.setStyleName("header-workflowImg");
workflow.setTitle(E12Constants.constants.setWorkflowLbl());
workflow.getElement().setId("e12HdrPnl-wrkFlw");
workflow.addMouseOverHandler(new MouseOverHandler() {
@Override
public void onMouseOver(MouseOverEvent event) {
workflow.setResource(Resources.INSTANCE.workflowImg());
}
});
workflow.addMouseOutHandler(new MouseOutHandler() {
@Override
public void onMouseOut(MouseOutEvent event) {
workflow.setResource(Resources.INSTANCE.workflowGrayImg());
}
});
home.setResource(Resources.INSTANCE.homeImg());
home.setStyleName("header-workflowImg");
home.setTitle(E12Constants.constants.setHomeLbl());
home.getElement().setId("e12HdrPnl-home");
home.addMouseOverHandler(new MouseOverHandler() {
@Override
public void onMouseOver(MouseOverEvent event) {
home.setResource(Resources.INSTANCE.homeImg());
}
});
home.addMouseOutHandler(new MouseOutHandler() {
@Override
public void onMouseOut(MouseOutEvent event) {
home.setResource(Resources.INSTANCE.homeImg());
}
});
help.setResource(Resources.INSTANCE.helpGrayImg());
help.setStyleName("header-workflowImg");
help.setTitle(E12Constants.constants.sethelpInfoLbl());
help.addMouseOverHandler(new MouseOverHandler() {
@Override
public void onMouseOver(MouseOverEvent event) {
help.setResource(Resources.INSTANCE.helpImg());
}
});
help.addMouseOutHandler(new MouseOutHandler() {
@Override
public void onMouseOut(MouseOutEvent event) {
help.setResource(Resources.INSTANCE.helpGrayImg());
}
});
//Added by Prajyot on 06AUG2015[W15DSUN015 - Social Enterprise Platform]
social.setResource(Resources.INSTANCE.socialGrayImg());
social.setStyleName("header-workflowImg");
social.setTitle(E12Constants.constants.setSocialInfoLbl());
social.getElement().setId("e12HdrPnl-social");
//Added by Jay - To set the display SociaL enterprise on the basis of Soical_opt - [Start]
String socialOpt = E12Constants.social_opt;
E12CommonUtils.printOnConsole("social_opt value while adding in div: ["+socialOpt+"]");
if (socialOpt != null && socialOpt.equals("0"))
{
social.getElement().getStyle().setDisplay(Display.NONE);
}
//Added by Jay - To set the display SociaL enterprise on the basis of Soical_opt - [End]
social.addMouseOverHandler(new MouseOverHandler() {
@Override
public void onMouseOver(MouseOverEvent event) {
social.setResource(Resources.INSTANCE.socialImg());
}
});
social.addMouseOutHandler(new MouseOutHandler() {
@Override
public void onMouseOut(MouseOutEvent event) {
social.setResource(Resources.INSTANCE.socialGrayImg());
}
});
//Added by Pooja S on 21-August-2019 [To show the Developer Console option only to the userType of D(Developer) ] Start
devloperConsole.setResource(Resources.INSTANCE.devloperConsoleGrayImg());
devloperConsole.setStyleName("header-workflowImg");
devloperConsole.setTitle(E12Constants.constants.setDevloperConsoleLbl());
devloperConsole.getElement().setId("e12HdrPnl-devloper");
devloperConsole.addMouseOverHandler(new MouseOverHandler() {
@Override
public void onMouseOver(MouseOverEvent event) {
devloperConsole.setResource(Resources.INSTANCE.devloperConsoleImg());
}
});
devloperConsole.addMouseOutHandler(new MouseOutHandler() {
@Override
public void onMouseOut(MouseOutEvent event) {
devloperConsole.setResource(Resources.INSTANCE.devloperConsoleGrayImg());
}
});
//Added by Pooja S on 21-August-2019 [To show the Developer Console option only to the userType of D(Developer) ] End
userNamePanel.add(getUserNamePanel());
userNamePanel.getElement().setId("e12headrPnl-userName");
userNamePanel.addDomHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
e12UserInfo.clickOnUserNamePanel( userNamePanel.getAbsoluteLeft() );
}
}, ClickEvent.getType());
userNamePanel.setStyleName("header-userNamePanel");
userNamePanel.getElement().setId("header-userNamePanelID");
updateHeader();
//Added by Sandeep S. on 09-AUG-18 [To implement minimize transaction popup in browser]
minimizeTransPanel.addStyleName("minimizeTransPanel");
}
@UiHandler("userImageHB")
void onUserImageHB(ClickEvent event)
{
e12UserInfo.clickOnUserImage( userImageHB.getAbsoluteLeft() );
}
@UiHandler ("userSetting")
void onUserSettings(ClickEvent event)
{
e12UserSetting.clickOnUserSettings( userSetting.getAbsoluteLeft(), isFullScreen );
}
//Commented by Nilesh Soor on 25-Aug-14
/**
* HideShow menu button used for hiding or showing Menu panel.
* Onclick of Hide Menu it will hide Menu panel and Resize the TransBrow Panel.
* @param event
*/
// @UiHandler( "hideShowMenu" )
void hideShowMenuClick()
{
isFullScreen = hideShowMenu.getValue();
Widget menuPanel = BaseE12.e12SplitLytPanel.getWidget( 0 );
if( hideShowMenu.getValue() )
{
E12CommonUtils.printOnConsole("isfullscreen");
BaseE12.e12SplitLytPanel.setWidgetSize(menuPanel, 0);
BaseE12.e12SplitLytPanel.forceLayout();
}
else
{
BaseE12.e12SplitLytPanel.setWidgetSize(menuPanel, 210);
BaseE12.e12SplitLytPanel.forceLayout();
}
}
/**
* It will add Hyperlink of welcome msg.
* Onclick of 'welcomeMsgLink' it will display the user information.
* @param event
*/
//Commented by Dnyaneshwar on 19/JAN/13 [Remove the notification module] Start
/*//Added By Mahesh Patidar On 02/JAN/13 for Implement the Message Popup Panel
@UiHandler("notifyButton")
void onMessagePanel(ClickEvent event)
{
Widget widget=(Widget)event.getSource();
int left=widget.getAbsoluteLeft()-140;
int top=widget.getAbsoluteTop()+16;
popupNotifyPnl.setPopupPosition(left, top);
if(notification.msgPanel.getWidgetCount() > 0)
{
popupNotifyPnl.setStylePrimaryName("msgPopupPanel");
popupNotifyPnl.show();
}
}
//Ended By Mahesh Patidar
*/
//Commented by Dnyaneshwar on 19/JAN/13 [Remove the notification module] End
/**
* This method return a image of hide menu
*
* @return Image is object of Image class
* */
public Image getHideMenuImg()
{
return new Image(HIDE_MENU_IMG);
}
/**
* This method return a image of show menu
*
* @return Image is object of Image class
* */
public Image getShowMenuImg()
{
return new Image(SHOW_MENU_IMG);
}
//Added By Prajyot on 6-JUN-2013
private void closeOtherClick(int selectedTab)
{
VerticalPanel e12PnlGen = ( VerticalPanel )( BaseE12.e12TransBrow.e12TabPanel.getWidget( selectedTab ) );
//Changed By Prajyot P. Rumde on 11-08-2011 [RnD]
//String title = ( BaseE12.e12TransBrow.e12TabPanel.getTabBar().getTabHTML( selectedTab ) );
//Changes by Prajyot on 4JUN13 [Bug fixing : On click of Close Other, other than selected tabs get close and title of Selected tab gets changed ]
//String title = ( BaseE12.e12TransBrow.e12TabPanel.getTabHTML( selectedTab ) );
String title = BaseE12.e12TransBrow.e12TabPanel.getTabTitle(selectedTab);
do
{
try
{
TextBox tbID = ( TextBox ) e12PnlGen.getWidget( 1 );
String selectRandID = ( String )BaseE12.tabsMap.get( E12Constants.userID + tbID.getText().trim() );
do
{
VerticalPanel e12PnlGen1 = ( VerticalPanel ) BaseE12.e12TransBrow.e12TabPanel.getWidget( 1 );
TextBox tbID1 = ( TextBox ) e12PnlGen1.getWidget( 1 );
//Changed By Mahesh Patidar on 28/DEC/12
HashMap<String, String> paramMap = new HashMap<String, String>();
paramMap.put("EDITOR_ID", BaseE12.tabsMap.get( E12Constants.userID + tbID1.getText().trim() ));
paramMap.put("dummyInt", ""+Math.random());
String paramString = E12CommonUtils.getInstance().getEncodedParamString(paramMap);
//String path = MELogin.hostUrl +"/ibase/InstanceRemoveServlet?" + paramString;
String path = E12Global.getHostUrl() +"/ibase/InstanceRemoveServlet?" + paramString;
// String path =MELogin.hostUrl + "/ibase/InstanceRemoveServlet?EDITOR_ID=" + BaseE12.tabsMap.get( E12Constants.userID + tbID1.getText().trim() ) + "&dummyInt=" + Math.random();
RequestBuilder requestBuilder = new RequestBuilder( RequestBuilder.GET,path );
try
{
requestBuilder.sendRequest( null, new RequestCallback()
{
public void onError( Request request, Throwable exception )
{
Window.alert( constants.setErrMsgAlt() );
}
public void onResponseReceived( Request request, Response response )
{
// Added BY Arvind on 7-FEB-2014 : To Maintain session time out
if( E12Global.getInstance().checkErrorException(response, 1) )
{
GWT.runAsync( new RunAsyncCallback()
{
public void onSuccess()
{
}
public void onFailure( Throwable reason )
{
// Changed by Savita Yadav on 18-05-2015 [For Code download terminated issue]
// Window.alert( constants.setErrMsgAlt() + " :: " + reason.getMessage() );
Window.alert( constants.setClearCacheAndLogin() );
}
});
}
}
});
}
catch ( RequestException ex )
{
Window.alert( constants.setExceptionAlt() + " " + ex.getMessage() + "]" );
System.out.println( constants.setExceptionAlt() + " : " + ex.getMessage() );
}
//Changed By Prajyot P. Rumde on 11-08-2011 [RnD]
//e12PnlGen1.removeFromParent();
e12PnlGen1 = null;
//Added By Prajyot P. Rumde on 11-08-2011 [RnD]
BaseE12.e12TransBrow.e12TabPanel.remove(1);
BaseE12.tabsMap.remove( E12Constants.userID+tbID1.getText().trim() );
BaseE12.e12TransBrow.e12TabPanel.selectTab( 0 );
}
while( BaseE12.e12TransBrow.e12TabPanel.getWidgetCount() != 1 );
//Changes by Prajyot on 4JUN13 [Bug fixing : On click of Close Other, other than selected tabs get close and title of Selected tab gets changed ]
//BaseE12.e12TransBrow.e12TabPanel.insert( e12PnlGen, title, 1 );
//BaseE12.e12TransBrow.e12TabPanel.insert( e12PnlGen, new BaseE12(true).getTabWidget( e12PnlGen, title ), 1 );
BaseE12.tabsMap.put( E12Constants.userID + tbID.getText().trim(), selectRandID );
//BaseE12.e12TransBrow.e12TabPanel.selectTab( 1 );
}
catch(Exception e){
BaseE12.e12TransBrow.e12TabPanel.remove(1);
BaseE12.e12TransBrow.e12TabPanel.selectTab( 0 );
}
}while( BaseE12.e12TransBrow.e12TabPanel.getWidgetCount() != 1 );
BaseE12.e12TransBrow.e12TabPanel.insert( e12PnlGen, new BaseE12(true).getTabWidget( e12PnlGen, title ), 1 );
BaseE12.e12TransBrow.e12TabPanel.selectTab( 1 );
}
private void closeAllClick()
{
try
{
do
{
try
{
//Window.alert("Close All" + BaseE12.e12TransBrow.e12TabPanel.getWidgetCount());
VerticalPanel e12PnlGen = ( VerticalPanel )( BaseE12.e12TransBrow.e12TabPanel.getWidget( 1 ) );
TextBox tbID = ( TextBox ) e12PnlGen.getWidget( 1 );
//Changed By Mahesh Patidar on 28/DEC/12
HashMap<String, String> paramMap = new HashMap<String, String>();
paramMap.put("EDITOR_ID", BaseE12.tabsMap.get( E12Constants.userID+tbID.getText().trim() ));
paramMap.put("OBJ_NAME", E12Constants.objName);
paramMap.put("dummyInt", ""+Math.random());
String paramString = E12CommonUtils.getInstance().getEncodedParamString(paramMap);
//String path = MELogin.hostUrl +"/ibase/InstanceRemoveServlet?" + paramString;
String path = E12Global.getHostUrl() +"/ibase/InstanceRemoveServlet?" + paramString;
// String path = MELogin.hostUrl +"/ibase/InstanceRemoveServlet?EDITOR_ID=" + BaseE12.tabsMap.get( E12Constants.userID+tbID.getText().trim() ) + "&OBJ_NAME=" + E12Constants.objName + "&dummyInt=" + Math.random();
//Ended By Mahesh Patidar
RequestBuilder requestBuilder = new RequestBuilder( RequestBuilder.GET,path );
try
{
requestBuilder.sendRequest( null, new RequestCallback()
{
public void onError( Request request, Throwable exception )
{
Window.alert( constants.setErrMsgAlt() );
}
public void onResponseReceived( Request request, Response response )
{
// Added BY Arvind on 7-FEB-2014 : To Maintain session time out
if( E12Global.getInstance().checkErrorException(response, 1) )
{
GWT.runAsync( new RunAsyncCallback()
{
public void onSuccess()
{
}
public void onFailure( Throwable reason )
{
// Changed by Savita Yadav on 18-05-2015 [For Code download terminated issue]
// Window.alert( constants.setErrMsgAlt() + " :: " + reason.getMessage() );
Window.alert( constants.setClearCacheAndLogin() );
}
});
}
}
});
}
catch ( RequestException ex )
{
Window.alert( constants.setExceptionAlt() + " " + ex.getMessage() + "]" );
System.out.println( constants.setExceptionAlt() + " : " + ex.getMessage() );
}
BaseE12.tabsMap.remove( E12Constants.userID+tbID.getText().trim() );
//Changed By Prajyot P. Rumde on 11-08-2011 [RnD]
//e12PnlGen.removeFromParent();
e12PnlGen = null;
//Added By Prajyot P. Rumde on 11-08-2011 [RnD]
BaseE12.e12TransBrow.e12TabPanel.remove(1);
BaseE12.e12TransBrow.e12TabPanel.selectTab( 0 );
}
catch(Exception ex){
BaseE12.e12TransBrow.e12TabPanel.remove(1);
BaseE12.e12TransBrow.e12TabPanel.selectTab( 0 );
}
}
while( BaseE12.e12TransBrow.e12TabPanel.getWidgetCount() != 1 );
}
catch (Exception e)
{
Window.alert("Exception in E12HeaderPanel onCloseAll [" + e.getMessage() + "]");
}
}
// Added by Raju K on 14-10-14 [To create the browser short cut panel] Start--
/**
* This method is used to create the shortcut panel for browser home page
* @return
*/
ArrayList<HashMap<String, String>> linksMapList = new ArrayList<HashMap<String,String>>();
public void initBrowShortPanel(String configXml)
{
//Changes by Ajinkya Gopalkar on 17-Jun-15[for added links into shortcut panel dynamically using e12config xml]
if(!"false".equalsIgnoreCase(configXml))
{
Document document = XMLParser.parse(configXml);
XMLParser.removeWhitespace(document);
NodeList linkNodeLst = document.getElementsByTagName("Link");
if (linkNodeLst.getLength() > 0)
{
for (int i = 0; i < linkNodeLst.getLength(); i++)
{
HashMap<String, String> linkWrapper = new HashMap<String, String>();
Node linkNode = linkNodeLst.item(i);
NodeList linkChildNodeLst = linkNode.getChildNodes();
for (int j = 0; j < linkChildNodeLst.getLength(); j++)
{
Node linkChildNode = linkChildNodeLst.item(j);
String nodeName = linkChildNode.getNodeName();
String nodeVal = linkChildNode.getFirstChild().getNodeValue().toString();
linkWrapper.put(nodeName, nodeVal);
}
linksMapList.add(linkWrapper);
}
}
}
createBrowShortPannel();
}
//Added by Ajinkya Gopalkar on 17-Jun-15[for added links into shortcut panel dynamically using e12config xml] Start
private void createBrowShortPannel()
{
if(linksMapList != null && linksMapList.size() > 0)
{
Label linksLabel = new Label( constants.setLinksLbl() );
E12CommonUtils.printOnConsole("**** linksLabel["+linksLabel+"]");
linksLabel.addStyleName( "browShortPanel" );
mainPanel.add(linksLabel);
VerticalPanel metisPanel = new VerticalPanel();
for(HashMap<String, String> linkMap : linksMapList)
{
Label linkLabel = new Label( linkMap.get("displayText"));//displayText
final String gwtURl = E12Global.getHostUrl() + linkMap.get("url"); //url
E12CommonUtils.printOnConsole("**** linkLabel["+linkLabel+"] gwtURl["+gwtURl+"]");
linkLabel.addStyleName( "labelForShortPanel" );
metisPanel.add( linkLabel );
linkLabel.getElement().setId("e12headrPnl-link");
linkLabel.addClickHandler( new ClickHandler()
{
@Override
public void onClick( ClickEvent event )
{
e12ShortcutPanel.popupPanel.hide( true );
Window.open( gwtURl, "About Metis", "" );
}
});
}
mainPanel.add( metisPanel );
}
//Added by Ajinkya Gopalkar on 17-Jun-15[for added links into shortcut panel dynamically using e12config xml] End
Label otherActLabel = new Label( constants.setOthActLbl() );
otherActLabel.addStyleName( "browShortPanel" );
mainPanel.add(otherActLabel);
VerticalPanel otherPanel = new VerticalPanel();
Label closeAll = new Label( constants.setCloseAllLbl() );
Label closeOthers = new Label( constants.setCloseOtherLbl() );
closeAll.addStyleName( "labelForShortPanel" );
closeOthers.addStyleName( "labelForShortPanel" );
otherPanel.add( closeAll );
otherPanel.add( closeOthers );
mainPanel.add( otherPanel );
closeAll.getElement().setId("e12headrPnl-closeAll");
closeAll.addClickHandler( new ClickHandler()
{
@Override
public void onClick( ClickEvent event )
{
if( BaseE12.e12TransBrow.e12TabPanel.getWidgetCount() > 1 )
{
e12ShortcutPanel.popupPanel.hide( true );
closeAllClick();
}
}
});
closeOthers.getElement().setId("e12headrPnl-close");
closeOthers.addClickHandler( new ClickHandler()
{
public void onClick( ClickEvent event )
{
try
{
if( BaseE12.e12TransBrow.e12TabPanel.getWidgetCount() > 1 )
{
int selectedTab = BaseE12.e12TransBrow.e12TabPanel.getSelectedTab();
e12ShortcutPanel.popupPanel.hide( true );
if( selectedTab != 0 )
{
closeOtherClick( selectedTab );
}
else
{
closeAllClick();
}
}
}
catch (Exception e)
{
Window.alert("Exception in E12HeaderPanel onCloseOther [" + e.getMessage() + "]");
}
}
});
}
// Added by Raju K on 14-10-14 [To create the browser short cut panel] End--
@UiHandler ( "workflow" )
void onWorkflow(ClickEvent event)
{
e12ApplicationMenuBar.selectApplication("WRK_OPT");
//Changed by Nilesh Soor on 31/12/2014 [ Taggle button change icon ] START
workflow.setResource(Resources.INSTANCE.workflowImg());
home.setResource(Resources.INSTANCE.homeGrayImg());
help.setResource(Resources.INSTANCE.helpGrayImg());
social.setResource(Resources.INSTANCE.socialGrayImg());
//Added by Pooja S on 21-August-2019 [To show the Developer Console option only to the userType of D(Developer) ]
devloperConsole.setResource(Resources.INSTANCE.devloperConsoleGrayImg());
//BaseE12.e12MenuPanel.updateAccordins("WORKFLOW");
//Changed by Nilesh Soor on 31/12/2014 [ Taggle button change icon ] END
workflow.addMouseOverHandler(new MouseOverHandler() {
@Override
public void onMouseOver(MouseOverEvent event) {
workflow.setResource(Resources.INSTANCE.workflowImg());
}
});
workflow.addMouseOutHandler(new MouseOutHandler() {
@Override
public void onMouseOut(MouseOutEvent event) {
workflow.setResource(Resources.INSTANCE.workflowImg());
}
});
home.addMouseOverHandler(new MouseOverHandler() {
@Override
public void onMouseOver(MouseOverEvent event) {
home.setResource(Resources.INSTANCE.homeImg());
}
});
home.addMouseOutHandler(new MouseOutHandler() {
@Override
public void onMouseOut(MouseOutEvent event) {
home.setResource(Resources.INSTANCE.homeGrayImg());
}
});
help.addMouseOverHandler(new MouseOverHandler() {
@Override
public void onMouseOver(MouseOverEvent event) {
help.setResource(Resources.INSTANCE.helpImg());
}
});
help.addMouseOutHandler(new MouseOutHandler() {
@Override
public void onMouseOut(MouseOutEvent event) {
help.setResource(Resources.INSTANCE.helpGrayImg());
}
});
//Added by Prajyot on 06AUG2015[W15DSUN015 - Social Enterprise Platform]
social.addMouseOverHandler(new MouseOverHandler() {
@Override
public void onMouseOver(MouseOverEvent event) {
social.setResource(Resources.INSTANCE.socialImg());
}
});
social.addMouseOutHandler(new MouseOutHandler() {
@Override
public void onMouseOut(MouseOutEvent event) {
social.setResource(Resources.INSTANCE.socialGrayImg());
}
});
//Added by Pooja S on 21-August-2019 [To show the Developer Console option only to the userType of D(Developer) ] Start
devloperConsole.addMouseOverHandler(new MouseOverHandler() {
@Override
public void onMouseOver(MouseOverEvent event) {
devloperConsole.setResource(Resources.INSTANCE.devloperConsoleImg());
}
});
devloperConsole.addMouseOutHandler(new MouseOutHandler() {
@Override
public void onMouseOut(MouseOutEvent event) {
devloperConsole.setResource(Resources.INSTANCE.devloperConsoleGrayImg());
}
});
//Added by Pooja S on 21-August-2019 [To show the Developer Console option only to the userType of D(Developer) ] End
}
public HorizontalPanel getUserNamePanel()
{
final Image userImage = new Image();
usrImgRef = userImage;/* *Added by Dnyaneshwar Chavan on 11-Sep-15 [User should be change the his profile image in galaxy theme in browser interface.] Start */
if(E12Global.isGalaxy())
{
userImage.setResource( GALAXY_USER_IMG );
}
else
{
userImage.setResource( DEFAULT_USER_IMG );
}
userImage.setStyleName("header-defaultUserImage theme-" + E12Constants.userTheme );
userImage.getElement().setId("e12hdrPnl-userImage");
E12CommonUtils.printOnConsole(".........userNameHoriPanel 3.1.e");
//Added by Dnyaneshwar on 23-JUL-13 [ when browser is 'IE8' then display only default user image as per KB Sir ]
if ( ! ( Window.Navigator.getAppVersion().contains( "MSIE 7.0" ) || Window.Navigator.getAppVersion().contains( "MSIE 8.0" ) ) )
{
//Changed by Reema on 18-mar-15 [Change User image path]
// userImage.setUrl( E12Global.getHostUrl() +"/ibase/images/"+E12Constants.userID+".png" );
//Changed by Shivaji on 25-05-2015 [ To change images path]-Start
//userImage.setUrl( E12Global.getHostUrl() + "/ibase/resource/" + E12Constants.userID + "/" + E12Constants.userID + ".png" );
userImage.setUrl( E12Global.getHostUrl() + "/ibase/resource/images/users/" + E12Constants.userID + ".jpg?"+Math.random() );
//Changed by Shivaji on 25-05-2015 [ To change images path]-End
//Changed by Reema on 18-mar-15 [Change User image path]-End
//userImage.setTitle(E12Constants.constants.setClickToLogout());
userImage.setStyleName("header-userImage theme-" + E12Constants.userTheme );
}
userImage.addErrorHandler(new ErrorHandler() {
@Override
public void onError(ErrorEvent event) {
// Changed by Shivaji on 01-06-2015 [to read png or jpg image]-Start
userImage.setUrl( E12Global.getHostUrl() + "/ibase/resource/images/users/" + E12Constants.userID + ".png?"+Math.random() );
userImage.addErrorHandler(new ErrorHandler() {
@Override
public void onError(ErrorEvent event) {
if(E12Global.isGalaxy())
{
userImage.setResource( GALAXY_USER_IMG );
}
else
{
userImage.setResource( DEFAULT_USER_IMG );
}
//userImage.setTitle(E12Constants.constants.setClickToLogout());
userImage.getElement().setId("e12hdrPnl-userImage-err");
userImage.setStyleName("header-defaultUserImage theme-" + E12Constants.userTheme );
}
});
// Changed by Shivaji on 01-06-2015 [to read png or jpg image]-End
}
});
//String userName = DOM.getElementById("empFName").getInnerText() + " " + DOM.getElementById("empLName").getInnerText();
//Added by sunny soni for showing users profile name[Start]
String userName = DOM.getElementById("userName").getInnerText();
//Added by sunny soni for showing users profile name[End]
userName = userName.toLowerCase();
Label userNameLbl = new Label(userName);
userNameLbl.setStyleName("empNameLbl");
userNameLbl.addStyleName("dropdown");
userNameLbl.getElement().setId("e12HeaderPnl-userNameLbl");
//Added By Prajyot on 05-JUN-2015 [Entity Contact Details for SSP]
//Change By Ajinkya Gopalkar on 13-OCT-15[for displaying profileDescr]
//String entityDescr = DOM.getElementById("profileDescr").getInnerText();
//entityDescr = entityDescr.toLowerCase();
//Changed by Sandeep S. on 20-MAR-18 [local storage & indexed db related changes]
//Comment by shrutika on 19-04-18 [Start] for remove site code from local storage.
/*String entityDescr = E12Storage.getItemLocalStorage("userEntityDescrId");
if( entityDescr == "" || entityDescr == null)
{
//Added by Shrutika on 01-02-18 for display site code below the user name when login.
entityDescr = E12Constants.siteCode;
//entityDescr = DOM.getElementById("profileDescr").getInnerText();
//entityDescr = entityDescr.toLowerCase();
}*/
// Commented by Pankaj R to show site description
// String entityDescr = E12Constants.siteCode;
String entityDescr = E12Constants.siteDescr;
//Comment by shrutika on 19-04-18 [End] for remove site code from local storage.
E12CommonUtils.printOnConsole("entityDescr : "+entityDescr);
Label entityDescrLbl = new Label(entityDescr);
//Added by Shrutika on 01-02-18 for display site description on the mouse over of site code.
entityDescrLbl.setTitle(E12Constants.siteDescr);
entityDescrLbl.setStyleName("entityDescrLbl");
entityDescrLbl.getElement().setId("userEntityDescrId");
FlowPanel userNameFlwPnl = new FlowPanel();
userNameFlwPnl.add(userNameLbl);
userNameFlwPnl.add(entityDescrLbl);
HorizontalPanel userNameHPnl = new HorizontalPanel();
userNameHPnl.add(userImage);
userNameHPnl.add(userNameFlwPnl);
userNameHPnl.setTitle(E12Constants.constants.setClickToLogout());
return userNameHPnl;
}
private void updateHeader()
{
E12CommonUtils.printOnConsole(".........HDR 3.2");
if( E12Global.isGalaxy() )
{
//TODO:
userImageHB.setVisible(false);
userImageHB.getElement().setAttribute("style", "display:none;");
userImageHB.removeFromParent();
userSetting.setVisible(false);
userSetting.getElement().setAttribute("style", "display:none;");
e12ShortcutPanel.setVisible(false);
e12ShortcutPanel.getElement().setAttribute("style", "display:none;");
headerDiv.setHeight("171px");
headerDiv.setStyleName("headerDiv");
home.getElement().getParentElement().setAttribute("style", "padding-right: 8px; padding-top:11px;");
workflow.getElement().getParentElement().setAttribute("style", "padding-right: 8px; padding-top:11px;");
//Temporary as per KB sir
// help.setVisible(false);
// help.getElement().setAttribute("style", "display:none;");
//Temporary as per KB sir(Social component is not completed)
/*Commented by Pankaj R on 07-Nov-16 to show Social Component in Galaxy Mode [START]*/
// social.setVisible(false);
// social.getElement().setAttribute("style", "display:none;");
/*Commented by Pankaj R on 07-Nov-16 to show Social Component in Galaxy Mode [START]*/
}
else
{
// notifyImage.setVisible(false);
// notifyImage.getElement().setAttribute("style", "display:none;");
// notifyButton.setVisible(false);
// notifyButton.getElement().setAttribute("style", "display:none;");
//Added by Shivaji on 26-May-205 [ To hide TagLine in Non galexy]-Start
taglineMetis.setVisible(false);
taglineMetis.getElement().setAttribute("style", "display:none;");
//Added by Shivaji on 26-May-205 [ To hide TagLine in Non galexy]-End
e12NavigateTabBar.setVisible(false);
e12NavigateTabBar.getElement().setAttribute("style", "display:none;");
workflow.setVisible(false);
workflow.getElement().setAttribute("style", "display:none;");
home.setVisible(false);
home.getElement().setAttribute("style", "display:none;");
help.setVisible(false);
help.getElement().setAttribute("style", "display:none;");
social.setVisible(false);
social.getElement().setAttribute("style", "display:none;");
//Added by Pooja S on 21-August-2019 [To show the Developer Console option only to the userType of D(Developer) ] Start
devloperConsole.setVisible(false);
devloperConsole.getElement().setAttribute("style", "display:none;");
//Added by Pooja S on 21-August-2019 [To show the Developer Console option only to the userType of D(Developer) ] End
e12ApplicationMenuBar.setVisible(false);
e12ApplicationMenuBar.getElement().setAttribute("style", "display:none;");
userNamePanel.setVisible(false);
userNamePanel.getElement().setAttribute("style", "display:none;");
headerDiv.setHeight("50px");
}
}
@UiHandler ( "home" )
void onHome(ClickEvent event)
{
e12ApplicationMenuBar.selectApplication("HOME_OPT");
home.setResource(Resources.INSTANCE.homeImg());
workflow.setResource(Resources.INSTANCE.workflowGrayImg());
help.setResource(Resources.INSTANCE.helpGrayImg());
social.setResource(Resources.INSTANCE.socialGrayImg());
//Added by Pooja S on 21-August-2019 [To show the Developer Console option only to the userType of D(Developer) ]
devloperConsole.setResource(Resources.INSTANCE.devloperConsoleGrayImg());
//BaseE12.e12MenuPanel.updateAccordins("EXPLORER");
workflow.addMouseOverHandler(new MouseOverHandler() {
@Override
public void onMouseOver(MouseOverEvent event) {
workflow.setResource(Resources.INSTANCE.workflowImg());
}
});
workflow.addMouseOutHandler(new MouseOutHandler() {
@Override
public void onMouseOut(MouseOutEvent event) {
workflow.setResource(Resources.INSTANCE.workflowGrayImg());
}
});
home.addMouseOverHandler(new MouseOverHandler() {
@Override
public void onMouseOver(MouseOverEvent event) {
home.setResource(Resources.INSTANCE.homeImg());
}
});
home.addMouseOutHandler(new MouseOutHandler() {
@Override
public void onMouseOut(MouseOutEvent event) {
home.setResource(Resources.INSTANCE.homeImg());
}
});
help.addMouseOverHandler(new MouseOverHandler() {
@Override
public void onMouseOver(MouseOverEvent event) {
help.setResource(Resources.INSTANCE.helpImg());
}
});
help.addMouseOutHandler(new MouseOutHandler() {
@Override
public void onMouseOut(MouseOutEvent event) {
help.setResource(Resources.INSTANCE.helpGrayImg());
}
});
//Added by Prajyot on 06AUG2015[W15DSUN015 - Social Enterprise Platform]
social.addMouseOverHandler(new MouseOverHandler() {
@Override
public void onMouseOver(MouseOverEvent event) {
social.setResource(Resources.INSTANCE.socialImg());
}
});
social.addMouseOutHandler(new MouseOutHandler() {
@Override
public void onMouseOut(MouseOutEvent event) {
social.setResource(Resources.INSTANCE.socialGrayImg());
}
});
//Added by Pooja S on 21-August-2019 [To show the Developer Console option only to the userType of D(Developer) ] Start
devloperConsole.addMouseOverHandler(new MouseOverHandler() {
@Override
public void onMouseOver(MouseOverEvent event) {
devloperConsole.setResource(Resources.INSTANCE.devloperConsoleImg());
}
});
devloperConsole.addMouseOutHandler(new MouseOutHandler() {
@Override
public void onMouseOut(MouseOutEvent event) {
devloperConsole.setResource(Resources.INSTANCE.devloperConsoleGrayImg());
}
});
//Added by Pooja S on 21-August-2019 [To show the Developer Console option only to the userType of D(Developer) ] End
}
@UiHandler ( "help" )
void onHelp(ClickEvent event)
{
//e12ApplicationMenuBar.selectApplication("HELP_OPT");
home.setResource(Resources.INSTANCE.homeGrayImg());
workflow.setResource(Resources.INSTANCE.workflowGrayImg());
social.setResource(Resources.INSTANCE.socialGrayImg());
//Added by Pooja S on 21-August-2019 [To show the Developer Console option only to the userType of D(Developer) ]
devloperConsole.setResource(Resources.INSTANCE.devloperConsoleGrayImg());
//help.setResource(Resources.INSTANCE.helpImg());
BaseE12.e12MenuPanel.updateAccordins("HELP");
workflow.addMouseOverHandler(new MouseOverHandler() {
@Override
public void onMouseOver(MouseOverEvent event) {
workflow.setResource(Resources.INSTANCE.workflowImg());
}
});
workflow.addMouseOutHandler(new MouseOutHandler() {
@Override
public void onMouseOut(MouseOutEvent event) {
workflow.setResource(Resources.INSTANCE.workflowGrayImg());
}
});
home.addMouseOverHandler(new MouseOverHandler() {
@Override
public void onMouseOver(MouseOverEvent event) {
home.setResource(Resources.INSTANCE.homeImg());
}
});
home.addMouseOutHandler(new MouseOutHandler() {
@Override
public void onMouseOut(MouseOutEvent event) {
home.setResource(Resources.INSTANCE.homeGrayImg());
}
});
help.addMouseOverHandler(new MouseOverHandler() {
@Override
public void onMouseOver(MouseOverEvent event) {
help.setResource(Resources.INSTANCE.helpImg());
}
});
help.addMouseOutHandler(new MouseOutHandler() {
@Override
public void onMouseOut(MouseOutEvent event) {
//help.setResource(Resources.INSTANCE.helpImg());
help.setResource(Resources.INSTANCE.helpImg());
}
});
//Added by Prajyot on 06AUG2015[W15DSUN015 - Social Enterprise Platform]Start
social.addMouseOverHandler(new MouseOverHandler() {
@Override
public void onMouseOver(MouseOverEvent event) {
social.setResource(Resources.INSTANCE.socialImg());
}
});
social.addMouseOutHandler(new MouseOutHandler() {
@Override
public void onMouseOut(MouseOutEvent event) {
social.setResource(Resources.INSTANCE.socialGrayImg());
}
});
//Added by Prajyot on 06AUG2015[W15DSUN015 - Social Enterprise Platform]Ends
//Added by Pooja S on 21-August-2019 [To show the Developer Console option only to the userType of D(Developer) ] Start
devloperConsole.addMouseOverHandler(new MouseOverHandler() {
@Override
public void onMouseOver(MouseOverEvent event) {
devloperConsole.setResource(Resources.INSTANCE.devloperConsoleImg());
}
});
devloperConsole.addMouseOutHandler(new MouseOutHandler() {
@Override
public void onMouseOut(MouseOutEvent event) {
devloperConsole.setResource(Resources.INSTANCE.devloperConsoleGrayImg());
}
});
//Added by Pooja S on 21-August-2019 [To show the Developer Console option only to the userType of D(Developer) ] End
}
//Added by Pravin K on 23-JAN-19 [for social count] START
@UiHandler("socialPending")
void onSialPending(ClickEvent event)
{
onSocial(event);
}
//Added by Pravin K on 23-JAN-19 [for social count] END
//Added by Prajyot on 06AUG2015[W15DSUN015 - Social Enterprise Platform]Start
@UiHandler ( "social" )
void onSocial(ClickEvent event)
{
e12ApplicationMenuBar.selectApplication("SOC_OPT");
social.setResource(Resources.INSTANCE.socialImg());
//Added by Pooja S on 21-August-2019 [To show the Developer Console option only to the userType of D(Developer) ]
devloperConsole.setResource(Resources.INSTANCE.devloperConsoleGrayImg());
help.setResource(Resources.INSTANCE.helpGrayImg());
home.setResource(Resources.INSTANCE.homeGrayImg());
workflow.setResource(Resources.INSTANCE.workflowGrayImg());
BaseE12.e12MenuPanel.updateAccordins("SOCIAL");
workflow.addMouseOverHandler(new MouseOverHandler() {
@Override
public void onMouseOver(MouseOverEvent event) {
workflow.setResource(Resources.INSTANCE.workflowImg());
}
});
workflow.addMouseOutHandler(new MouseOutHandler() {
@Override
public void onMouseOut(MouseOutEvent event) {
workflow.setResource(Resources.INSTANCE.workflowGrayImg());
}
});
home.addMouseOverHandler(new MouseOverHandler() {
@Override
public void onMouseOver(MouseOverEvent event) {
home.setResource(Resources.INSTANCE.homeImg());
}
});
home.addMouseOutHandler(new MouseOutHandler() {
@Override
public void onMouseOut(MouseOutEvent event) {
home.setResource(Resources.INSTANCE.homeGrayImg());
}
});
help.addMouseOverHandler(new MouseOverHandler() {
@Override
public void onMouseOver(MouseOverEvent event) {
help.setResource(Resources.INSTANCE.helpImg());
}
});
help.addMouseOutHandler(new MouseOutHandler() {
@Override
public void onMouseOut(MouseOutEvent event) {
//help.setResource(Resources.INSTANCE.helpImg());
help.setResource(Resources.INSTANCE.helpGrayImg());
}
});
social.addMouseOverHandler(new MouseOverHandler() {
@Override
public void onMouseOver(MouseOverEvent event) {
social.setResource(Resources.INSTANCE.socialImg());
}
});
social.addMouseOutHandler(new MouseOutHandler() {
@Override
public void onMouseOut(MouseOutEvent event) {
social.setResource(Resources.INSTANCE.socialImg());
}
});
//Added by Pooja S on 21-August-2019 [To show the Developer Console option only to the userType of D(Developer) ] Start
devloperConsole.addMouseOverHandler(new MouseOverHandler() {
@Override
public void onMouseOver(MouseOverEvent event) {
devloperConsole.setResource(Resources.INSTANCE.devloperConsoleGrayImg());
}
});
devloperConsole.addMouseOutHandler(new MouseOutHandler() {
@Override
public void onMouseOut(MouseOutEvent event) {
devloperConsole.setResource(Resources.INSTANCE.devloperConsoleImg());
}
});
//Added by Pooja S on 21-August-2019 [To show the Developer Console option only to the userType of D(Developer) ] End
}
//Added by Prajyot on 06AUG2015[W15DSUN015 - Social Enterprise Platform]Ends
//Added by Pooja S on 21-August-2019 [To show the Developer Console option only to the userType of D(Developer) ] Start
@UiHandler ( "devloperConsole" )
void onDevloperConsole(ClickEvent event)
{
E12Constants.lastSelectedMenuOpt = E12Constants.conApplNm;
e12ApplicationMenuBar.selectApplication("DEV_OPT");
devloperConsole.setResource(Resources.INSTANCE.devloperConsoleImg());
social.setResource(Resources.INSTANCE.socialGrayImg());
help.setResource(Resources.INSTANCE.helpGrayImg());
home.setResource(Resources.INSTANCE.homeGrayImg());
workflow.setResource(Resources.INSTANCE.workflowGrayImg());
workflow.addMouseOverHandler(new MouseOverHandler() {
@Override
public void onMouseOver(MouseOverEvent event) {
workflow.setResource(Resources.INSTANCE.workflowImg());
}
});
workflow.addMouseOutHandler(new MouseOutHandler() {
@Override
public void onMouseOut(MouseOutEvent event) {
workflow.setResource(Resources.INSTANCE.workflowGrayImg());
}
});
home.addMouseOverHandler(new MouseOverHandler() {
@Override
public void onMouseOver(MouseOverEvent event) {
home.setResource(Resources.INSTANCE.homeImg());
}
});
home.addMouseOutHandler(new MouseOutHandler() {
@Override
public void onMouseOut(MouseOutEvent event) {
home.setResource(Resources.INSTANCE.homeGrayImg());
}
});
help.addMouseOverHandler(new MouseOverHandler() {
@Override
public void onMouseOver(MouseOverEvent event) {
help.setResource(Resources.INSTANCE.helpImg());
}
});
help.addMouseOutHandler(new MouseOutHandler() {
@Override
public void onMouseOut(MouseOutEvent event) {
help.setResource(Resources.INSTANCE.helpGrayImg());
}
});
social.addMouseOverHandler(new MouseOverHandler() {
@Override
public void onMouseOver(MouseOverEvent event) {
social.setResource(Resources.INSTANCE.socialImg());
}
});
social.addMouseOutHandler(new MouseOutHandler() {
@Override
public void onMouseOut(MouseOutEvent event) {
social.setResource(Resources.INSTANCE.socialImg());
}
});
//POOJA S
devloperConsole.addMouseOverHandler(new MouseOverHandler() {
@Override
public void onMouseOver(MouseOverEvent event) {
devloperConsole.setResource(Resources.INSTANCE.devloperConsoleImg());
}
});
devloperConsole.addMouseOutHandler(new MouseOutHandler() {
@Override
public void onMouseOut(MouseOutEvent event) {
devloperConsole.setResource(Resources.INSTANCE.devloperConsoleImg());
}
});
}
//Added by Pooja S on 21-August-2019 [To show the Developer Console option only to the userType of D(Developer) ] End
// Added by Shivaji on 26-May-2015 [To add Tag Line ]-Start
/**
* This method will add Tag Line
* @return
*/
public HorizontalPanel getTagLinePanel()
{
HorizontalPanel tagLinePanel = new HorizontalPanel();
tagLinePanel.setStyleName("tagLineHPanel");
try
{
if( DOM.getElementById("tagLine").getInnerText() != null )
{
tagLine = DOM.getElementById("tagLine").getInnerText();
tagLine = E12CommonUtils.checkNull( tagLine );
Label tagLineLabel = new Label( );
if ( ! "".equals( tagLine ) )
{
tagLineLabel.setText( tagLine );
}
tagLineLabel.addStyleName("tagLineLabel");
tagLinePanel.add( tagLineLabel );
//Changed by Pankaj P on 22/06/2021 [to resolve the search-bar issue in updated chrome browser] STRAT
E12CommonUtils.printOnConsole("getTagLinePanel :: tagLine : ["+ tagLine +"]");
if ( "".equals( tagLine ) )
{
tagLinePanel.setVisible(false);
tagLinePanel.getElement().setAttribute("style", "display:none;");
}
//Changed by Pankaj P on 22/06/2021 [to resolve the search-bar issue in updated chrome browser] END
}
}
catch (Exception ex) {
Window.alert("exception in getTagLinePanel" + ex.getMessage() + "]" );
}
return tagLinePanel;
}
// Added by Shivaji on 26-May-2015 [To add Tag Line ]-End
//Added Pravin K on 16-JAN-19 [To show group post notification] Start
private native void hideSocialNotificationCount()/*-{
try{
$wnd.customLog("in hideSocialNotificationCount");
var socialCounterEle = $doc.getElementById('social-pending');
if(socialCounterEle)
{
socialCounterEle.innerText = '';
socialCounterEle.style.display='none';
}
}
catch(err)
{
$wnd.customLog("Error in hideSocialNotificationCount "+err);
}
}-*/;
private native void setGropupNotificationCount()/*-{
try{
$wnd.customLog("in setGropupNotificationCount");
var socialPenting = $wnd.socialPendig;
if(!socialPenting)
{
socialPenting = {'0000000005_cnt':5,'0000000004_cnt':4,'SYSTEM_cnt':3};
$wnd.customLog("in setGropupNotificationCount socialPenting : ",socialPenting);
}
$wnd.customLog("-- group-----------");
for( groupId in socialPenting)
{
if(groupId)
{
var groupCount = socialPenting[groupId];
$wnd.customLog("-- groupCount : ",groupCount,",panelId : ",groupId);
this.@ibase.e12ria.client.E12HeaderPanel::showAndUpdateGroupCount(Ljava/lang/String;Ljava/lang/String;)(groupId, groupCount);
}
}
}
catch(err)
{
$wnd.customLog("Error in setGropupNotificationCount "+err);
}
}-*/;
private native void showAndUpdateGroupCount(String panelId, String count)/*-{
try{
$wnd.customLog("-- showAndUpdateGroupCount panelId : ",panelId," Count: ",count);
var socialCounterEle = $doc.getElementById(panelId);
$wnd.customLog("-- showAndUpdateGroupCount socialCounterEle : ",socialCounterEle);
if(socialCounterEle)
{
socialCounterEle.innerText = count;
var displayStyle = socialCounterEle.style.display;
$wnd.customLog("displayStyle : ",displayStyle);
if( displayStyle ==='none' )
{
socialCounterEle.style.display='inline-block';
}
}
}
catch(err)
{
$wnd.customLog("Error in showAndUpdateGroupCount "+err);
}
}-*/;
//Added Pravin K on 16-JAN-19 [To show group post notification] End
}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
package ibase.e12ria.client;
import com.google.gwt.core.client.GWT;
import com.google.gwt.json.client.JSONObject;
import com.google.gwt.json.client.JSONString;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.Window.ScrollEvent;
import com.google.gwt.user.client.ui.FlowPanel;
public class E12Constants {
public static boolean IS_FAV_MENU = false; //added by Vikas Lagad on 19.10.18[to check Favourite menus]
public static I18NConstants constants = GWT.create(I18NConstants.class);
public static String editFlag; //added by Vikas Lagad on 21.8.18 [to show back label on view mode]
public static String userID;
public static String passwordSha256;
// Added by Sandesh on 23.02.2016 [Reqest Id:S15KBAS001] Start
public static String isPasswordStore = "0";
// Added by Sandesh on 23.02.2016 [Reqest Id:S15KBAS001] End
public static String profileID;
// public static String applnName;
public static String empDesignation;
public static String empDivision;
public static String empHeadQuat;
public static String empDOJ;
public static String dispDate;
public static String applDateTimeFormat;
public static String dispDateTimeFromat;//Added for fixing e12mobile compile bug on 02-JUNE-21
// Added by Dnyaneshwar chavan on 21/DEC/2012 [Add one data member] Start
public static String authenticateStatus;
// Added by Dnyaneshwar chavan on 21/DEC/2012 [Add one data member] End
public static String welcomeMsg;
public static String objName;
public static String objType;
public static String deptCode;
public static String siteCode;
public static String entityCode;
public static String itemSer;
//Added by Harshada on 10 DEC 12 [creating user connections on login]START
public static String userLevel;
//Added by Harshada on 10 DEC 12 [creating user connections on login]END
//Added by Harshada on 6 MAR 2013 [Get all user information on authentication]START
public static String siteDescr;
public static String deptDescr;
public static String emailIdOff;
public static String empCode;
public static String empName;
// Added by Sandeshs 09-Feb-2016 [Req:S15JBAS002 Social Post] start
public static String userName;
// Added by Sandeshs 09-Feb-2016 [Req:S15JBAS002 Social Post] end
//Added By Sanket J on 04/08/17 for getting userType if employee is not present for password change[Start]
public static String userType;
//Added By Sanket J on 04/08/17 for getting userType if employee is not present for password change[End]
//Added by Savita Yadav on 8-04-2015 [ for Change password UI ]- Start
public static String minPwdLen;
//Added by Savita Yadav on 8-04-2015 [ for Change password UI ]- End
public static String reportTo;
public static String stanCode;
public static String userCountry;
public static String userLanguage;
//Added by Harshada on 6 MAR 2013 [Get all user information on authentication]END
public static String HK_CANCEL;
public static String HK_DESELECT;
public static String HK_DONE;
public static String HK_PREV;
public static String HK_NEXT;
public static String HK_FINISH;
public static String HK_HEADERBUTTON;
public static String CMD_CANCEL;
public static String CMD_DESELECT;
public static String CMD_DONE;
public static String CMD_PREV;
public static String CMD_NEXT;
public static String CMD_FINISH;
public static String BUILD_VERSION;
//Added by Harshada on 27th Oct 2012 [creating user connections on login]
public static String conApplNm;
//Added by Pooja S on 11-oct-2019 [To Module name should be display in grey with application change icon ] Start
public static String applicationGroup;
public static String applDescr;
//Added by Pooja S on 11-oct-2019 [To Module name should be display in grey with application change icon ] End
public static final String MANDATORY = "mandatory";
public static final String PROTECT = "protect";
public static String USER_CONNECTION;
public static String hostUrl;
//Added by Prajyot on 12/FEB/2013 [ To keep track of Local Buttons : Add buttons panel in buttonPanelHMap with key LOCAL_FORM_NO a non-existing form]
public static final int LOCAL_FORM_NO = 0;
public static final int TABLE_FORM_NO = -2;
//Added by Prajyot on 05/MAR/2013 [ MO2KSUN001 : Set Header fixed by detecting Android version ]
public static final String ANDROID_VERSION = "3.1";
public static boolean IS_FEED_FORM = false;
public static int SCROLL_TOP = 0;
public static String isTNCInitiated;
public static int CONTENTS_SCROLL_TOP = 0; //Added by Sandeep S. on 22-11-16 [To resolve DCR scroll issue]
//Added By Prajyot on 11OCT13 [BMR Wizard]
public static String bmrObjs;
//Changed by Reema on 13-May-15 [Added to restrict feeds from reopening]
public static String feedPanelId = "";
//Changed by Reema on 13-May-15 [Added to restrict feeds from reopening]-End
//Added By Prajyot[New object Calendar for MAP]Start
//Changed By Suraj on 01-Jun-2016 [ To set applDateTime and applDate form from DateFormat.xml ]
//public static String applDateTime = "dd-MMM-yyyy HH:mm:ss";
//public static String applDate = "dd-MMM-yyyy";
public static String applDateTime;
public static String applDate;
// Added by Reema on 11-Sep-15[for GeoFencing]-Start
public static String GEO_FENCE_ENABLED;
public static String GEO_FENCE_RADIUS;
public static String GEO_FENCE_ACCURACY;
// Added by Reema on 11-Sep-15[for GeoFencing]-End
//public static String currentGeoPos = "";
public static String currentGeoPos = "0, 0"; //Changed default value to "0, 0"
//Added by Prajyot [W15HMIT002 - GPS_ENFORCED Implementation]
//public static String GPS_ENABLED;
//public static String GPS_ENFORCED;
public static String GEO_POS_OPTION = "0";
public static String NETWORK_OPTION = "1"; //Added by Sagar B. for offline related changes[09-Feb-19]
// Added by Sandeshs 21-Jun-2016 [Req:W15BSUN011] START
public static String defaultMenu;
// Added by Sandeshs 21-Jun-2016 [Req:W15BSUN011] END
//Added by Parikshit on 07/07/16 [set global db date format-S16ASUN001] start
//public static String dbDateFormat = "dd-MMM-yyyy";
//Changed by Pankaj t on 05-08-2021 set dbDateFormat as per DateFormat.xml because of date parsing error
public static String dbDateFormat = "yyyy-MM-dd";
//public static String applColor = "blue"; //HExCOLOR
public static String applColor ;
//Added by Pooja on 14/09/19 [set gradient color]
public static String applGradientColor;
//Added by Parikshit on 07/07/16 [set global db date format-S16ASUN001] end
//Added by Parikshit on 11/02/16 [set global color for image ] end
public static String applicationColor = "blue" ;//temp
//Added by Parikshit on 11/02/16 [set global color for image] end
//Added by sunny soni on 17-OCT-16 for set variable app launching start
public static int onApplaunch = 0;
//Added by sunny soni on 17-OCT-16 for set variable app launching end
//Added by Suraj on 26-10-2016 to call wizard in Calendar
public static String CALL_FROM = "MOBILE";
public static String reqParamStr = "";//Added by sunny soni on 14-OCT-16
public static boolean objLinktype = false; //Added by sunny soni for set objlink for displaying homePage on 20-DEC-16
//Added By Ajinkya Gopalkar on 6-Jan-16[For checking gps after defined interval]
public static boolean GEOPOS_STATUS = false;
//Added by Prasad on 02/02/17 [for common component related changes]
public static String userTheme = "GALAXY";
//Added By Suraj on 15-03-2017 [To implement slideMenuPanel ]Start
public static String descriptionDetails = "";
public static String featureOptions = "";
//Added By Suraj on 15-03-2017 [To implement slideMenuPanel ]End
public static int columnMinLength;//added by vishal pathare for compact view related changes in Browser
//Added By Ajinkya Gopalkar for setting Data mode value - Start
protected static String dataMode = "";
public static String getDataMode() {
return dataMode;
}
public static void setDataMode(String dataMode) {
E12Constants.dataMode = dataMode;
}
//Added By Ajinkya Gopalkar for setting Data mode value - End
//Added BY Suraj for GWT Calendar updations
public static String changedPKFieldNames = "";
public static String changedPKFieldValues = "";
public static String calDBRName = "";
public static String currAppName = "";
//added by vishal pathare on 13.4.18 for[site wise enterprise image related changes]
public static String enterprise="";
public static String social_opt="";
//Added by Sagar B. for storing current address in table[16-Apr-18]
public static String currentGeoPosName = "";
public static String geoPosAccuracy = ""; //Added by Sagar B. to set GEOPOS_ACCURACY and setting values in auto mode[23-Jul-18]
//Added by Pankaj T. on 16-11-18 for console configuration if 1 then print console only
public static String clientDebugLevel = "1";
//Added By Pankaj T. on 18-11--2020 for removing weak account lock vulnerability - if user wrongly enter password more than 5 times then lock the account and send new password on email/mobile and unlock account using new password
public static String wrongLoginCount = "5";
public static int PAGE_SIZE = 20; //Added by Bhupendra on 06-08-18 for Pagination Implementation.
public static String autoSync = "Y"; // Added by Pankaj R on 25-FEB-19 to store value of auto sync in E12Constant from ibase.xml]
//Added by sunny soni for getting login details for presentation player of resolving file downloading issue[Start]
public static JSONObject getLoginDetails()
{
JSONObject loginDetails = new JSONObject();
try
{
loginDetails.put("USER", new JSONString(E12Constants.userID));
loginDetails.put("PASSWORD", new JSONString(E12Constants.passwordSha256));
loginDetails.put("SERVER_IP", new JSONString(E12Constants.hostUrl));
}
catch (Exception e)
{
E12CommonUtils.printOnConsole("Sunny***Exception::[ "+e.getMessage()+" ]");
//e.printStackTrace();
}
E12CommonUtils.printOnConsole("Sunny***Final editedData::[ "+loginDetails+" ]");
return loginDetails;
}
//Added by sunny soni for getting login details for presentation player of resolving file downloading issue[End]
//Added by Pratheek on 04-02-19[]to store the fin_entity and facilty_code on login-Start
public static String facility_code ="";
public static String fin_entity ="";
//Added by Pratheek on 04-02-19[]to store the fin_entity and facilty_code on login-End
public static String empFName;
public static String empMName;
public static String empLName;
// Added by Pravin K on 19-Feb-19 [To storing application hash code] START
// As recommended by google play store service, the application hash code
// must be set in incoming TOP message
public static String APPLICATION_HASH_CODE;
// Added by Pravin K on 19-Feb-19 [To storing application hash code] END
//Added by Sagar B. to set offline edit/delete configuration enterprise-wise[13-Mar-19]START
public static String IS_ALLOW_OFFLINE_EDIT = "Y";
public static String IS_ALLOW_OFFLINE_DELETE = "Y";
//Added by Sagar B. to set offline edit/delete configuration enterprise-wise[13-Mar-19]END
//Added as per KB sir changes for native header change[Start]
//public static String mode = "";
public static boolean isNativeMode = false;
//Added as per KB sir changes for native header change[End]
}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
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