Commit 12ce44d7 authored by kdabholkar's avatar kdabholkar

added new jsp for tax calculation on third screen .

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@176889 ce508802-f39f-4f6c-b175-0d175dae99d5
parent c3749af1
<%@ page language="java" contentType="text/html; charset=ISO-8859-15" pageEncoding="UTF-8"%>
<%@page import = "java.lang.*,java.util.*, ibase.webitm.bean.wms.SorderWizBean"%>
<%@ page import="ibase.webitm.servlet.ITMWizardHandlerServlet" %>
<head>
<link type="text/css" rel="stylesheet" href="/ibase/webitm/css/Standard/default.css"/>
<link type="text/css" rel="stylesheet" href="/ibase/webitm/css/theme/galaxy-theme.css">
<link type="text/css" rel="stylesheet" href="/ibase/webitm/css/SimpleTransactionEditor.css"/>
<SCRIPT language="JavaScript" type="text/javascript" src="/ibase/webitm/js/sorderWizard.js"></SCRIPT>
</head>
<style type="text/css">
.browDataDiv
{
overflow:auto;
}
body
{
overfolw:hidden;
}
</style>
<%
String taxClass ="";
String taxEnv ="";
String taxChapter ="";
String htmlData ="";
String xmlData = "";
String xmlDataNew = "";
String formNo = "";
String domID = "";
String objName = "";
try
{
System.out.println("@@@@@@@@@ In E12WizardTaxUpdation.jsp @@@@@@@@@@@@@@@@");
SorderWizBean sorderBean = new SorderWizBean();
xmlData = ( String ) request.getParameter("xmlDataString");
formNo = (String) request.getParameter("formNo");
domID = (String) request.getParameter("domId");
objName = (String) request.getParameter("objName");
System.out.println("objName2:::"+objName+"");
System.out.println("XMLData:::"+xmlData);
ibase.utility.UserInfoBean userInfo = (ibase.utility.UserInfoBean)session.getAttribute("USER_INFO");
System.out.println("userInfo"+userInfo);
%>
<script language="javascript">
<%-- var xmlData = <%=xmlData%>; --%>
// A $( document ).ready() block.
$( document ).ready(function() {
// alert( "ready!" );
// localStorage.setItem('xmlDataNew','<%=xmlData%>');
});
</script>
<%
//ibase.utility.E12GenericUtility genericUtility = new E12GenericUtility();
ibase.utility.E12GenericUtility genericUtility = new ibase.utility.E12GenericUtility();
// Document dom = genericUtility.parseString(xmlData);
org.w3c.dom.Document dom = genericUtility.parseString(xmlData);
taxChapter = genericUtility.getColumnValue("tax_chap", dom);
taxEnv = genericUtility.getColumnValue("tax_env", dom);
taxClass = genericUtility.getColumnValue("tax_class", dom);
if(taxChapter == null || taxChapter.trim().length() == 0 )
{
taxChapter = "";
}
if(taxEnv == null || taxEnv.trim().length() == 0 )
{
taxEnv = "";
}
if(taxClass == null || taxClass.trim().length() == 0 )
{
taxClass = "";
}
System.out.println("taxChapter::"+taxChapter+"taxEnv::"+taxEnv+"taxClass::"+taxClass);
htmlData = sorderBean.getTaxData(xmlData, formNo, domID, userInfo,objName);
System.out.println("html Return by function::"+htmlData);
}
catch(Exception e)
{
e.printStackTrace();
}
%>
<body>
<div class="closeDiv" id="e12popUpPnl-close" onclick="closePopUpOfLastPg();">x</div>
<div class="taxCalBtn" onclick="calTaxOnFinalPg(<%=domID%>);" id="calcTax" name="calcTax" title="Calculate Tax">
<p class=calcTax> <img src="/ibase/webitm/images/calculator.png" height="15" width="15"> </p>
</div>
<!-- <div style="position: relative; overflow: hidden;" class="e12CustomTaxPanel">
<input coltype="String" style="position:relative;;TYPE:String;text-align:LEFT"
onmouseover=" showToolTip(this); " class="headerInputTaxField" required="" srvcallonchange="true" onfocus="taxFldFocus(this);"
onblur="taxFldBlur(this)" ischanged="false" protectexpr="" protect="" onkeyup="getAutoCompleteList(this);"
minlengthauto="1" helpoption="2" popupparameters="NULL" popupexists="true" maxlength="5"
taborder="999999999999999999999999999999999991" tabindex="999999999999999999999999999999999991" fontcase="upper" id="tax.tax_class"
name="tax.tax_class" type="text" value="" title="Please enter value.">
<span label="Tax Class" style=" width: 130; position:relative; text-align:RIGHT;
"class="headerLabelField" id="tax.tax_class_t" name="tax.tax_class_t">Tax Class </span>
<input type="hidden" id="tax.old_tax_class" value="">
</div> -->
<table class="horTaxWizardPnl noTaxHeadingCss responsiveHoriPnlWidth taxEditHdrField" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<!-- <td style="vertical-align: top;" align="left">
--> <!-- <div style="position: relative; overflow: hidden;" class="e12CustomInputPanel">
<input coltype="String" style="position:relative;;TYPE:String;text-align:LEFT" onmouseover="showToolTip(this);" class="headerInputTaxField" required="" srvcallonchange="true" onfocus="taxFldFocus(this);" onblur="taxFldBlur(this)" ischanged="false" protectexpr=" " protect=" " onkeyup="getAutoCompleteList(this); " minlengthauto="1" helpoption="2" popupparameters="NULL" popupexists="true" maxlength="5" taborder="991" tabindex="991" fontcase="upper" id="tax.tax_class" name="tax.tax_class" type="text" value="" title="Please enter value.">
<span label="Tax Class" style=" width: 130; position:relative; text-align:RIGHT; " class="headerLabelField" id="tax.tax_class_t" name="tax.tax_class_t">Tax Class </span>
<input type="hidden" id="tax.old_tax_class" value="">
</div>
</td> -->
<input type="hidden" id="formNo" value="<%=formNo%>">
<input type="hidden" id="domID" value="<%=domID%>">
<input type="hidden" id="objName" value="<%=objName%>">
<td style="vertical-align: top;" align="left">
<div style="position: relative; overflow: hidden;" class="e12CustomInputPanel">
<input coltype="String" style="position:relative;;TYPE:String;text-align:LEFT" class="headerInputField" required="" srvcallonchange="true" ischanged="false" protectexpr=" " protect=" " onkeyup="getAutoCompleteList(this); " minlengthauto="1" helpoption="2" popupparameters="NULL" popupexists="true" maxlength="5" taborder="991" tabindex="991" fontcase="upper" id="Detail2.<%=domID%>.tax_classNew" name="tax.tax_class" type="text" value="<%=taxClass%>" title="Please enter value." autocomplete="off">
<span label="Tax Class" style=" width: 130; position:relative; text-align:RIGHT; " class="headerLabelField" id="tax.tax_class_t" name="tax.tax_class_t">Tax Class </span>
<input type="hidden" id="tax.old_tax_class" value="">
</div>
</td>
<td style="vertical-align: top;" align="left">
<div style="position: relative; overflow: hidden;" class="e12CustomInputPanel">
<input coltype="String" style="position:relative;;TYPE:String;text-align:LEFT" class="headerInputField" required="" srvcallonchange="true" ischanged="false" protectexpr="" protect="" onkeyup="getAutoCompleteList(this);" minlengthauto="1" helpoption="2" popupparameters="NULL" popupexists="true" maxlength="10" taborder="992" tabindex="992" fontcase="upper" id="Detail2.<%=domID%>.tax_chapNew" name="tax.tax_chap" type="text" value="<%=taxChapter%>" title="Please enter value." autocomplete="off">
<span label="Tax Class" style=" width: 130; position:relative; text-align:RIGHT; " class="headerLabelField" id="tax.tax_chapter_t" name="tax.tax_chapter_t">Tax Chapter </span>
<input type="hidden" id="tax.old_tax_chapter" value="">
</div>
</td>
<td style="vertical-align: top;" align="left">
<div style="position: relative; overflow: hidden;" class="e12CustomInputPanel">
<input coltype="String" style="position:relative;;TYPE:String;text-align:LEFT" class="headerInputField" required="" srvcallonchange="true" ischanged="false" protectexpr="" protect="" onkeyup="getAutoCompleteList(this);" minlengthauto="1" helpoption="2" popupparameters="NULL" popupexists="true" maxlength="10" taborder="993" tabindex="993" fontcase="upper" id="Detail2.<%=domID%>.tax_envNew" name="tax.tax_env" type="text" value="<%=taxEnv%>" title="Please enter value." autocomplete="off">
<span label="Tax Class" style=" width: 140; position:relative; text-align:RIGHT; " class="headerLabelField" id="tax.tax_env_t" name="tax.tax_env_t">Tax Environment </span>
<input type="hidden" id="tax.old_tax_env" value="">
</div>
</td>
</tr>
</tbody>
</table>
<div class="taxApplyButton" onclick="ApplyTaxOnFinalPg(<%=domID%>);" id="applyTax" name="applyTax" title="Apply Tax">
<p class=checkTax> <img src="/ibase/webitm/images/checkMark.png" height="15" width="15"> </p>
</div>
<div class="taxTableBodyContainer" id="Updated_tax">
<%
out.print(htmlData);
%>
</div>
</body>
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