Commit 0aaba7aa authored by wansari's avatar wansari

W16FKAT002 added XSL and Post Save for Sales Order Wizard


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@103886 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 1ccf804b
<?xml version='1.0' encoding='utf-8'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<xsl:decimal-format NaN="0"/>
<xsl:template match="/">
<html>
<script type="text/javascript" src="/ibase/webitm/js/jquery-1.10.2.js"></script>
<link rel="stylesheet" href="/ibase/webitm/css/DD/default.css" type="text/css" />
<link id="userThemeLink" type="text/css" rel="stylesheet" href=""/>
<link type="text/css" rel="stylesheet" href="/ibase/webitm/css/htmlWizard.css"/>
<script language="JavaScript" type="text/javascript">
<![CDATA[
$(function() {
selectedCode = [];
for( dbID = 1; dbID <= maxId; dbID++)
{
objCurr = document.getElementById("DetailITCode."+ dbID +".selectbox");
if( objCurr.value == 'true' )
{
if ($.inArray( dbID, selectedCode ))
{
selectedCode.push( dbID );
}
}
}
});
]]>
</script>
<body onload="setUserTheme()">
<form name="Wizard_Team">
<table id = "Details" class="headertableClass" border="0" cellspacing="1" cellpadding="1">
<tr>
<th class="tHeader" nowrap="true" width="5%">
<input type="checkbox" id="chkAll" onclick="return checkAllPopup(this)"/>
</th>
<th class="tHeader" nowrap="true" valign="bottom" width="20%">
<strong>Customer Code</strong>
</th>
<th class="tHeader" nowrap="true" valign="bottom" width="50%">
<strong>Customer Name</strong>
</th>
<th class="tHeader" nowrap="true" valign="bottom" width="75%">
<strong>Telephone</strong>
</th>
</tr>
<xsl:for-each select="//List">
<xsl:variable name="fieldId"><xsl:value-of select="fieldId"/></xsl:variable>
<xsl:variable name="fieldValue"><xsl:value-of select="fieldValue"/></xsl:variable>
<xsl:variable name="otherField"><xsl:value-of select="otherField"/></xsl:variable>
<xsl:variable name="tele1"><xsl:value-of select="tele1"/></xsl:variable>
<xsl:variable name="dbID"><xsl:value-of select="@domID"/></xsl:variable>
<SCRIPT>
<![CDATA[ var qtyR; qtyR ="]]> <xsl:value-of select="$dbID"/>
<![CDATA[";maxId= qtyR; ]]>
</SCRIPT>
<xsl:variable name="chkbox"><xsl:value-of select="@selected"/></xsl:variable>
<tr class="trClass" width="100%" id="{normalize-space($dbID)}" onclick="setCheckedRow(event, this)" ondblclick="setDoubleClickData(event, this)">
<td>
<xsl:choose>
<xsl:when test="$chkbox ='Y'">
<input type="checkbox" name="selectbox" id="DetailITCode.{normalize-space($dbID)}.selectbox" checked='true' value="true" onClick="setCheckedPopup(this)"/>
</xsl:when>
<xsl:otherwise>
<input type="checkbox" name="selectbox" id="DetailITCode.{normalize-space($dbID)}.selectbox" value="false" onClick="setCheckedPopup(this)"/>
</xsl:otherwise>
</xsl:choose>
</td>
<td id="{normalize-space($dbID)}" class="td_leftAlign">
<xsl:value-of select="fieldId"/>
</td>
<td id="{normalize-space($dbID)}" class="td_leftAlign">
<xsl:value-of select="fieldValue"/>
</td>
<td id="{normalize-space($dbID)}" class="td_leftAlign">
<xsl:value-of select="tele1"/>
</td>
</tr>
<input type="hidden" name="Detail3.{normalize-space($dbID)}.fieldValue" id="DetailITCode.{normalize-space($dbID)}.fieldValue"
value="{normalize-space($fieldValue)}" />
<input type="hidden" name="Detail3.{normalize-space($dbID)}.fieldId" id="DetailITCode.{normalize-space($dbID)}.fieldId"
value="{normalize-space($fieldId)}" />
<input type="hidden" name="Detail3.{normalize-space($dbID)}.otherField" id="DetailITCode.{normalize-space($dbID)}.otherField"
value="{normalize-space($otherField)}" />
</xsl:for-each>
</table>
</form>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
<?xml version='1.0' encoding='utf-8'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<xsl:decimal-format NaN="0"/>
<xsl:template match="/">
<html>
<script type="text/javascript" src="/ibase/webitm/js/jquery-1.10.2.js"></script>
<link rel="stylesheet" href="/ibase/webitm/css/Standard/default.css" type="text/css" />
<link id="userThemeLink" type="text/css" rel="stylesheet" href=""/>
<link type="text/css" rel="stylesheet" href="/ibase/webitm/css/htmlWizard.css"/>
<script language="JavaScript" type="text/javascript">
<![CDATA[
$(function() {
selectedCode = [];
for( dbID = 1; dbID <= maxId; dbID++)
{
objCurr = document.getElementById("DetailITCode."+ dbID +".selectbox");
if( objCurr.value == 'true' )
{
if ($.inArray( dbID, selectedCode ))
{
selectedCode.push( dbID );
}
}
}
});
]]>
</script>
<body>
<form name="Wizard_Team">
<table id = "Details" class="headertableClass" border="0" cellspacing="1" cellpadding="1">
<tr>
<th class="tHeader" nowrap="true" width="5%">
<input type="checkbox" id="chkAll" onclick="return checkAllPopup(this)"/>
</th>
<xsl:for-each select="//Headers">
<xsl:variable name="headName"><xsl:value-of select="headName"/></xsl:variable>
<xsl:variable name="headSize"><xsl:value-of select="headSize"/></xsl:variable>
<th class="tHeader" nowrap="true" valign="bottom" width="{$headSize}%">
<xsl:value-of select="headName" />
</th>
</xsl:for-each>
</tr>
<xsl:for-each select="//List">
<xsl:variable name="fieldId"><xsl:value-of select="fieldId"/></xsl:variable>
<xsl:variable name="fieldValue"><xsl:value-of select="fieldValue"/></xsl:variable>
<xsl:variable name="otherField"><xsl:value-of select="otherField"/></xsl:variable>
<xsl:variable name="dbID"><xsl:value-of select="@domID"/></xsl:variable>
<SCRIPT>
<![CDATA[ var qtyR; qtyR ="]]> <xsl:value-of select="$dbID"/>
<![CDATA[";maxId= qtyR; ]]>
</SCRIPT>
<xsl:variable name="chkbox"><xsl:value-of select="@selected"/></xsl:variable>
<tr class="trClass" width="100%" id="{normalize-space($dbID)}" onclick="setCheckedRow(event, this)" ondblclick="setDoubleClickData(event, this)">
<td>
<xsl:choose>
<xsl:when test="$chkbox ='Y'">
<input type="checkbox" name="selectbox" id="DetailITCode.{normalize-space($dbID)}.selectbox" checked='true' value="true" onClick="setCheckedPopup(this)"/>
</xsl:when>
<xsl:otherwise>
<input type="checkbox" name="selectbox" id="DetailITCode.{normalize-space($dbID)}.selectbox" value="false" onClick="setCheckedPopup(this)"/>
</xsl:otherwise>
</xsl:choose>
</td>
<td id="{normalize-space($dbID)}" class="td_leftAlign">
<xsl:value-of select="fieldId"/>
</td>
<td id="{normalize-space($dbID)}" class="td_leftAlign">
<xsl:value-of select="fieldValue"/>
</td>
</tr>
<input type="hidden" name="Detail3.{normalize-space($dbID)}.fieldValue" id="DetailITCode.{normalize-space($dbID)}.fieldValue"
value="{normalize-space($fieldValue)}" />
<input type="hidden" name="Detail3.{normalize-space($dbID)}.fieldId" id="DetailITCode.{normalize-space($dbID)}.fieldId"
value="{normalize-space($fieldId)}" />
<input type="hidden" name="Detail3.{normalize-space($dbID)}.otherField" id="DetailITCode.{normalize-space($dbID)}.otherField"
value="{normalize-space($otherField)}" />
</xsl:for-each>
</table>
</form>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
\ No newline at end of file
<?xml version='1.0' encoding='utf-8'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<xsl:decimal-format NaN="0"/>
<xsl:template match="/">
<html>
<link type="text/css" rel="stylesheet" href="/ibase/webitm/css/htmlWizard.css"/>
<body>
<form name="sorderViewReport" METHOD="post" ACTION="/ibase/ITMWizardHandlerServlet">
<div style="height:90%; width:98%;overflow:-moz-scrollbars-vertical;overflow-x:auto;overflow-y:auto;white-space:nowrap;">
<table class="headertableClass" id="Details1" border="0" cellspacing="1" cellpadding="1">
<tr>
<th class="tHeader" align = "left" nowrap="true" valign="bottom" width="10%" >
Sales Order
</th>
<th class="tHeader" align = "left" nowrap="true" valign="bottom" width="10%">
Customer Code
</th>
<th class="tHeader" align = "left" nowrap="true" valign="bottom" width="30%">
Customer Name
</th>
<th class="tHeader" align = "right" nowrap="true" valign="bottom" width="10%">
Total Tax
</th>
<th class="tHeader" align = "left" nowrap="true" valign="bottom" width="20%">
Remarks
</th>
</tr>
<tbody class="table-body">
<xsl:for-each select="//Detail1">
<xsl:variable name="sale_order"><xsl:value-of select="sale_order"/></xsl:variable>
<xsl:variable name="cust_code"><xsl:value-of select="cust_code"/></xsl:variable>
<xsl:variable name="cust_name"><xsl:value-of select="cust_name"/></xsl:variable>
<xsl:variable name="tax_amt"><xsl:value-of select="tax_amt"/></xsl:variable>
<xsl:variable name="remarks"><xsl:value-of select="remarks"/></xsl:variable>
<tr class="trClass">
<td class="td_leftAlign">
<xsl:value-of select="sale_order"/>
</td>
<td class="td_leftAlign">
<xsl:value-of select="cust_code"/>
</td>
<td class="td_leftAlign">
<xsl:value-of select="cust_name"/>
</td>
<td class="td_rightAlign">
<xsl:value-of select="tax_amt"/>
</td>
<td class="td_leftAlign">
<xsl:value-of select="remarks"/>
</td>
</tr>
</xsl:for-each>
</tbody>
</table>
<table class="headertableClass" style ="border-top:none" id="Details2" border="0" cellspacing="1" cellpadding="1">
<tr>
<th class="tHeader" align = "left" nowrap="true" valign="bottom" width="10%">
Product Code
</th>
<th class="tHeader" align = "left" nowrap="true" valign="bottom" width="30%">
Description
</th>
<th class="tHeader" align = "right" nowrap="true" valign="bottom" width="10%">
Quantity
</th>
<th class="tHeader" align = "right" nowrap="true" valign="bottom" width="10%">
Total Amount
</th>
<th class="tHeader" align = "right" nowrap="true" valign="bottom" width="10%">
Tax Amount
</th>
<th class="tHeader" align = "left" nowrap="true" valign="bottom" width="5%">
Tax Class
</th>
<th class="tHeader" align = "left" nowrap="true" valign="bottom" width="5%">
Tax Chap
</th>
<th class="tHeader" align = "left" nowrap="true" valign="bottom" width="5%">
Tax Env
</th>
</tr>
<tbody class="table-body">
<xsl:for-each select="//Detail2">
<xsl:variable name="item_code"><xsl:value-of select="item_code"/></xsl:variable>
<xsl:variable name="quantity"><xsl:value-of select="quantity"/></xsl:variable>
<xsl:variable name="net_amt"><xsl:value-of select="net_amt"/></xsl:variable>
<xsl:variable name="tax_amt"><xsl:value-of select="tax_amt"/></xsl:variable>
<xsl:variable name="tax_class"><xsl:value-of select="tax_class"/></xsl:variable>
<xsl:variable name="tax_chap"><xsl:value-of select="tax_chap"/></xsl:variable>
<xsl:variable name="tax_env"><xsl:value-of select="tax_env"/></xsl:variable>
<xsl:variable name="item_descr"><xsl:value-of select="item_descr"/></xsl:variable>
<tr class="trClass" width="100%">
<td class="td_leftAlign">
<xsl:value-of select="item_code"/>
</td>
<td class="td_leftAlign">
<xsl:value-of select="item_descr"/>
</td>
<td class="td_rightAlign">
<xsl:value-of select="quantity"/>
</td>
<td class="td_rightAlign">
<xsl:value-of select="net_amt"/>
</td>
<td class="td_rightAlign">
<xsl:value-of select="tax_amt"/>
</td>
<td class="td_leftAlign">
<xsl:value-of select="tax_class"/>
</td>
<td class="td_leftAlign">
<xsl:value-of select="tax_chap"/>
</td>
<td class="td_leftAlign">
<xsl:value-of select="tax_env"/>
</td>
</tr>
</xsl:for-each>
</tbody>
</table>
</div>
<div style="width=20%;height:6px;margin-left=-12px;margin-top:1px;margin-bottom:0px;">
<table>
<tr>
<td colspan="2">
<input type="submit" style="cursor:hand" class="button" value="Home" title='Home' id="Home"/>
<input type="hidden" value="1" name="FORM_NO" ID="FORM_NO" />
<input type="hidden" value="sorderWiz" name="OBJ_NAME" />
<input type="hidden" value="previous" name="action" id="action" />
<input type="hidden" value="1:MP" name="formType" id="formType" />
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
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