Commit ce6df6cb authored by smestry's avatar smestry

Updated the jsp file of report page


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@103968 ce508802-f39f-4f6c-b175-0d175dae99d5
parent baa01ffd
<%@ page import="ibase.webitm.servlet.ITMWizardHandlerServlet" %>
<%@page contentType="text/html" %>
<HTML>
<HEAD>
<script type="text/javascript" src="../js/ITMWizard.js"></script>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script type="text/javascript" src="/ibase/webitm/js/json2.min.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/l10n.min.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/localizations.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/SavexWizard.js"></script>
<script type="text/javascript" src="../js/SavexWizard.js"></script>
</head>
<body onLoad="displayText();">
</HEAD>
<Body onLoad = "
<%
String objName = ( request.getParameter( "OBJ_NAME" ) != null ) ? request.getParameter( "OBJ_NAME" ) : "";
String chgUser = ( request.getParameter( "chg_user" ) != null ) ? request.getParameter( "chg_user" ) : "";
String random = ( request.getParameter( "udf_str__2" ) != null ) ? request.getParameter( "udf_str__2" ) : "";
System.out.println("*************E12WizardsSuccessPage.jsp******************");
String objName = ( request.getParameter( "OBJ_NAME" ) != null ) ? request.getParameter( "OBJ_NAME" ) : "";
String workDate = ( request.getParameter( "work_date" ) != null ) ? request.getParameter( "work_date" ) : "";
String editMod = ( request.getParameter( "edit_mode" ) != null ) ? request.getParameter( "edit_mode" ) : "";
String directAcc = ( request.getParameter( "direct_acc" ) != null ) ? request.getParameter( "direct_acc" ) : "";
System.out.println("directAcc"+directAcc);
System.out.println("@@@@ objName :: "+objName);
String message = "Transation Saved Successfully.....";
String editMsg = "";
String successMsg = "";
String clsCaption = "";
String contCaption = "";
String editorId = request.getParameter("EDITOR_ID");
System.out.println("editorId :"+editorId);
String random = "";
//String declarationMsg = "";
%>
<script language="JavaScript" type="text/javascript">
function displayText()
{
var str = "You have edited the Daily Report for ";
//var declarationMsg = "Declaration Saved Successfully.....";
//var objNameDecl = '<%=objName%>';
var localized = str.toLocaleString();
editMsg = localized;
str = "You have submitted the Daily Report for ";
localized = str.toLocaleString();
successMsg = localized;
str = "Close";
localized = str.toLocaleString();
clsCaption = localized;
str = "Continue";
localized = str.toLocaleString();
contCaption = localized;
str = "View Report";
localized = str.toLocaleString();
document.getElementById("viewReportButton").value = localized;
var test = '<%=directAcc%>';
if( test == "Y" )
{
str = "Continue";
localized = str.toLocaleString();
document.getElementById("actions").value = localized;
}
else
{
str = "Close";
localized = str.toLocaleString();
document.getElementById("actions").value = localized;
}
var test = '<%=editMod%>';
if( test == "Y" )
{
str = "You have edited the Daily Report for ";
localized = str.toLocaleString();
document.getElementById("viewReportSucc").value = localized + '<%=workDate%>';
}
else
{
str = "You have submitted the Daily Report for ";
localized = str.toLocaleString();
document.getElementById("viewReportSucc").value = localized + '<%=workDate%>';
}
if(("sorderWiz").equalsIgnoreCase(objName))
}
</script>
<%
if(objName.equalsIgnoreCase("milestone_pay_gen"))
{
random = ( request.getParameter( "udf__num2" ) != null ) ? request.getParameter( "udf__num2" ) : "";
response.sendRedirect("E12WizardPage.jsp?OBJ_NAME=milestone_pay_gen&amp;FORM_NO=1");
}else
{
if(editMod.equalsIgnoreCase("E"))
{
//message = "You have edited the Daily Report for "+workDate;
message = editMsg + workDate;
System.out.println(">>>>>>>>.messages["+message+"]");
}
else
{
//message = "You have submitted the Daily Report for "+workDate ;
message = successMsg + workDate ;
System.out.println("<<<<<<<<.messages["+message+"]");
}
System.out.println("Object Name=.."+objName);
System.out.println("Change User="+chgUser);
System.out.println("Random="+random);
String message = "Transation Saved Successfully.....";
//Changed by Pawan on 16/11/10 [WS01SUN028] to display "Continue/Close" button.start
String captionValue = "";
String onClickAction = "";
if( directAcc.equalsIgnoreCase("Y") )
{
//captionValue = "Continue";
captionValue = contCaption;
onClickAction = "javascript:goToPage('" + objName + "', '" + editorId + "' )";
System.out.println("Inside direct Access");
}
else
{
//captionValue = "Close";
captionValue = clsCaption;
onClickAction = "window.close()";
System.out.println("Inside Indirect access");
}
//Changed by Pawan on 16/11/10 [WS01SUN028] to display "Continue/Close" button.end
//Changed by wasim on 03-08-2016 for sale Order Wizard
//if(objName.equalsIgnoreCase("porderWiz"))
if(("porderWiz").equalsIgnoreCase(objName) || ("sorderWiz").equalsIgnoreCase(objName))
//String message = "Transation Saved Successfully.....";
//
%>
<%
//Modified by Radheshyam[16/03/2015][to show success msg for obj_name itdecl_byac_wiz as suggested by Abhishek].start
//if(objName != null && objName.trim().equals("itdecl_byemp_wiz"))
if(objName != null && (objName.trim().equals("itdecl_byemp_wiz") || objName.trim().equals("itdecl_byac_wiz")))
//Modified by Radheshyam[16/03/2015][to show success msg for obj_name itdecl_byac_wiz as suggested by Abhishek].end
{
%>
<script language="javascript">
alert("Declaration Successfully Submitted");
window.close();
</script>
<%
}
// Modified on[06/09/2013][To show the success masseges properly as per suggested by Nilesh sir]
// else if(objName != null && objName.trim().equals("emp_itproof_hp_byemp_wiz"))
else if(objName != null && (objName.trim().equals("emp_itproof_hp_byemp_wiz") || objName.trim().equals("emp_itproof_yp_byemp_wiz") || objName.trim().equals("emp_itproof_byac_wiz") || objName.trim().equals("itproof_all_wiz")))
{
// Modified on[06/09/2013][To show the success masseges properly as per suggested by Nilesh sir][Start]
String status = ( request.getParameter( "status" ) != null ) ? request.getParameter( "status" ) : "";
if (status.trim().equalsIgnoreCase("D"))
{
message = "Proof Successfully Saved in Draft";
}
else if (status.trim().equalsIgnoreCase("F"))
{
message = "Proof Successfully Submitted";
}
else
{
message = "Proof Successfully Saved";
}
// Modified on[06/09/2013][To show the success masseges properly as per suggested by Nilesh sir][End]
%>
viewReport('<%=objName%>','<%=random%>');">
<script language="JavaScript" type="text/javascript">
function viewReport(objName,random)
<script language="javascript">
// Modified on[06/09/2013][To show the success masseges properly as per suggested by Nilesh sir][
//alert("Declaration Successfully Submitted");
alert("<%=message%>");
window.close();
</script>
<%
}
//Changes done by Gulzar on 24/10/13 for display message for CPP Appraisal
else if( objName != null && "emp_appraisal_wiz".equalsIgnoreCase(objName.trim()))
{
if(objName == "porderWiz")
String status = ( request.getParameter("status") != null ) ? request.getParameter("status").trim() : "";
if (status.trim().equalsIgnoreCase("D"))
{
var url = "ViewPorderReport.jsp?OBJ_NAME="+objName+"&random="+random;
message = "CPP Appraisal Saved in Draft";
}
else if (status.trim().equalsIgnoreCase("F"))
{
message = "CPP Appraisal Submitted";
}
else
{
message = "Transation Saved Successfully.....";
}
%>
<script language="javascript">
alert("<%=message%>");
window.close();
</script>
<%
}
//Added by Prajyot [STP - Success page configuration.]
else if( objName != null && "sprs_tour_planwiz".equalsIgnoreCase( objName.trim() ) )
{
message = "Transation Saved Successfully.....";
%>
<script language="javascript">
var url = "StpSuccessPage.jsp";
alert('<%=message%>');
window.location.href = url;
</script>
<%
}
else if(objName == "sorderWiz")
//Added by Prajyot on 02-NOV-2015 [Provided by Pankaj Rahate - Manoj Sharma]
else if(objName.equalsIgnoreCase("report_request_wiz"))
{
response.sendRedirect("E12WizardPage.jsp?OBJ_NAME=report_request_wiz&amp;FORM_NO=1");
}
//Commented and Changed by rahul on 13-Apr-2016 [adding object name of Bangladesh brand Reporting]
//else if("survey_mst_wiz".equalsIgnoreCase(objName) || "survey_templ_wiz".equalsIgnoreCase(objName) || "survey_config_wiz".equalsIgnoreCase(objName) || "data_model_design_wiz".equalsIgnoreCase(objName))
else if("survey_mst_wiz".equalsIgnoreCase(objName) || "survey_templ_wiz".equalsIgnoreCase(objName) || "survey_config_wiz".equalsIgnoreCase(objName) || "data_model_design_wiz".equalsIgnoreCase(objName) || "strg_brand_act".equalsIgnoreCase(objName) || "strg_brand_unconf".equalsIgnoreCase(objName))
{
var url = "sorderViewReport.jsp?OBJ_NAME="+objName+"&random="+random;
message = "Transation Saved Successfully.....";
%>
<script language="javascript">
alert("<%=message%>");
window.close();
var url = "E12WizardPage.jsp?OBJ_NAME=<%=objName%>";
window.location.href = url;
</script>
<%
}
//Added by Gaurav Singh for CHC
else if( objName != null && "strg_meet_otcdcr_wiz".equalsIgnoreCase( objName.trim() ) )
{
message = "Transation Saved Successfully.....";
%>
<script language="javascript">
var url = "E12WizardPage.jsp?OBJ_NAME=strg_meet_otcdcr_wiz&amp;FORM_NO=1";
alert('<%=message%>');
window.location.href = url;
</script>
<%
}
//Changed by wasim on 17-11-2016 for Purchase/Sale/Product Wizard [START]
else if(("porderWiz").equalsIgnoreCase(objName) || ("sorderWiz").equalsIgnoreCase(objName))
{
if(("sorderWiz").equalsIgnoreCase(objName))
{
random = ( request.getParameter( "udf__num2" ) != null ) ? request.getParameter( "udf__num2" ) : "";
}
else if(("porderWiz").equalsIgnoreCase(objName))
{
random = ( request.getParameter( "udf_str__2" ) != null ) ? request.getParameter( "udf_str__2" ) : "";
}
%>
<script language="javascript">
var url = "";
var objName = "<%=objName%>";
var random = "<%=random%>";
if(objName == "porderWiz")
{
url = "ViewPorderReport.jsp?OBJ_NAME="+objName+"&random="+random;
}
else if(objName == "sorderWiz")
{
url = "ViewSorderReport.jsp?OBJ_NAME="+objName+"&random="+random;
}
window.location.href = url;
</script>
<%
}
else
else if(objName.equalsIgnoreCase("dd_productWiz") || objName.equalsIgnoreCase("dd_productWizEdit") )
{
System.out.println("Inside Product Wizard");
message = "Transation Saved Successfully.....";
%>
alert('<%=message%>'); goToPage('<%=objName%>')">
<script language="javascript">
var objN = "<%=objName%>";
alert('<%=message%>');
var url = "E12WizardPage.jsp?OBJ_NAME="+objN;
window.location.href = url;
//goToPage(objN,'');
//alert('<%=message%>');
</script>
<%
}
//Changed by wasim on 17-11-2016 for Purchase/Sale/Product Order Wizard [END]
else
{
%>
<font size="3" >
<center><b>
<input type="button" style="cursor:hand" id="viewReportSucc" value="" title='' />
</b></center> </font>
<center>
<!--Changed by Pawan on 13/11/10 [WS01SUN028] to pass "directAcc" in viewReport method Start-->
<!--<input type="button" style="cursor:hand" value="View Report" title='' onclick="javascript:viewReport('<%=objName%>','<%=workDate%>');"/>-->
<!--<input type="button" style="cursor:hand" value="Continue" title='' onclick="javascript:goToPage('<%=objName%>');"/>-->
<input type="button" style="cursor:hand" id="viewReportButton" value="" title='' onclick="javascript:viewReport('<%=objName%>','<%=workDate%>','<%=directAcc%>');"/>
<!-- <input type="button" style="cursor:hand" value="<%=captionValue%>" title='' onclick="<%=onClickAction%>;"/> -->
<input type="button" style="cursor:hand" id="actions" value="" title='' onclick="<%=onClickAction%>;"/>
<!--Changed by Pawan on 13/11/10 [WS01SUN028] to display "Continue/close" button End-->
<%
}}
%>
</Body>
</center>
</body>
</HTML>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment