Commit 537b553b authored by msingh's avatar msingh

Added XSL by Manish on 21/10/16 for Pack Label


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@103770 ce508802-f39f-4f6c-b175-0d175dae99d5
parent d525620c
<?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 href="/ibase/webitm/css/theme/galaxy-theme.css" rel="stylesheet"/>
<link rel="stylesheet" href="/ibase/webitm/css/DD/default.css" type="text/css" />
<link id="userThemeLink" type="text/css" rel="stylesheet" href=""/>
<script type="text/javascript" src="/ibase/webitm/js/packLabelWizard.js"></script>
<body onload="setUserTheme()">
<form name="porderFinish" METHOD="post" ACTION="/ibase/ITMWizardHandlerServlet">
<table class="tableClass" id="Details1" border="0" cellspacing="1" cellpadding="1">
<thead class="table-head" style="text-align:center;">
<tr>
<th class="thClass" nowrap="true" valign="bottom" >
<strong>Contract Number</strong>
</th>
<th class="thClass" nowrap="true" valign="bottom" >
<strong>Purchase Order</strong>
</th>
<th class="thClass" nowrap="true" valign="bottom" >
<strong>Supplier Code</strong>
</th>
<th class="thClass" nowrap="true" valign="bottom" >
<strong>Supplier Name</strong>
</th>
<th class="thClass" nowrap="true" valign="bottom" >
<strong>ASN Number</strong>
</th>
</tr>
</thead>
<tbody class="table-body">
<xsl:for-each select="//finish">
<xsl:variable name="contract_no"><xsl:value-of select="contract_no"/></xsl:variable>
<xsl:variable name="purc_order"><xsl:value-of select="purc_order"/></xsl:variable>
<xsl:variable name="supp_code"><xsl:value-of select="supp_code"/></xsl:variable>
<xsl:variable name="supp_name"><xsl:value-of select="supp_name"/></xsl:variable>
<xsl:variable name="asn_no"><xsl:value-of select="asn_no"/></xsl:variable>
<tr style="text-align:center;">
<td>
<xsl:value-of select="contract_no"/>
</td>
<td>
<xsl:value-of select="purc_order"/>
</td>
<td>
<xsl:value-of select="supp_code"/>
</td>
<td>
<xsl:value-of select="supp_name"/>
</td>
<td>
<xsl:value-of select="asn_no"/>
</td>
</tr>
</xsl:for-each>
</tbody>
</table>
<table class="tableClass" id="Details2" border="0" cellspacing="1" cellpadding="1">
<thead class="table-head" style="text-align:center;">
<tr>
<th class="thClass" nowrap="true" valign="bottom" >
<strong>Item SKU Code</strong>
</th>
<th class="thClass" nowrap="true" valign="bottom" >
<strong>Quantity</strong>
</th>
<th class="thClass" nowrap="true" valign="bottom" >
<strong>Mfg Date</strong>
</th>
<th class="thClass" nowrap="true" valign="bottom" >
<strong>EXP Date</strong>
</th>
<th class="thClass" nowrap="true" valign="bottom" >
<strong>Mfg Site</strong>
</th>
</tr>
</thead>
<tbody class="table-body">
<xsl:for-each select="//extra">
<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="mfg_date"><xsl:value-of select="mfg_date"/></xsl:variable>
<xsl:variable name="exp_date"><xsl:value-of select="exp_date"/></xsl:variable>
<xsl:variable name="site_code__mfg"><xsl:value-of select="site_code__mfg"/></xsl:variable>
<tr style="text-align:center;">
<td>
<xsl:value-of select="item_code"/>
</td>
<td>
<xsl:value-of select="quantity"/>
</td>
<td>
<xsl:value-of select="mfg_date"/>
</td>
<td>
<xsl:value-of select="exp_date"/>
</td>
<td>
<xsl:value-of select="site_code__mfg"/>
</td>
</tr>
</xsl:for-each>
</tbody>
</table>
<table>
<tr>
<td colspan="2">
<input type="button" style="cursor:hand" onclick="javascript:callForm1('packLabelWiz')"
class="button green-Btn pophelp-okcancel" value="Home" title='Home' />
</td>
</tr>
</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>
<script type="text/javascript" src="/ibase/webitm/js/asnWizardPopup.js"></script>
<link rel="stylesheet" href="/ibase/webitm/css/DD/default.css" type="text/css" />
<link id="userThemeLink" type="text/css" rel="stylesheet" href=""/>
<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_Activity" id="Wizard_Activity">
<table class="tableClass" id="Details" border="0" cellspacing="1" cellpadding="1">
<thead class="table-head">
<tr>
<th class="thClass" nowrap="true" width="5%">
<input type="checkbox" id="chkAll" onclick="return checkAllPopup(this)"/>
</th>
<th class="thClass" nowrap="true" valign="bottom" width="20%">
<strong>Code</strong>
</th>
<th class="thClass" nowrap="true" valign="bottom" width="75%">
<strong>Description</strong>
</th>
</tr>
</thead>
<tbody class="table-body">
<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>
<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)}" onclick="setCheckedRow(event, this)">
<xsl:value-of select="fieldId"/>
<input type="hidden" name="Detail3.{normalize-space($dbID)}.fieldId" id="DetailITCode.{normalize-space($dbID)}.fieldId"
value="{normalize-space($fieldId)}" />
</td>
<td id="{normalize-space($dbID)}" onclick="setCheckedRow(event, this)">
<xsl:value-of select="fieldValue"/>
<input type="hidden" name="Detail3.{normalize-space($dbID)}.fieldValue" id="DetailITCode.{normalize-space($dbID)}.fieldValue"
value="{normalize-space($fieldValue)}" />
</td>
<input type="hidden" name="Detail3.{normalize-space($dbID)}.otherField" id="DetailITCode.{normalize-space($dbID)}.otherField"
value="{normalize-space($otherField)}" />
</tr>
</xsl:for-each>
</tbody>
</table>
</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