Commit 467773d0 authored by msingh's avatar msingh

Added XSL for purchase wizard.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98856 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 48a83b60
<?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/Ammend.js"></script>
<link rel="stylesheet" href="/ibase/webitm/css/DD/default.css" type="text/css" />
<link id="userThemeLink" type="text/css" rel="stylesheet" href=""/>
<body onload="setUserTheme()">
<form name="Wizard_SuppDetails">
<table class="tableClass" id="Details" border="0" cellspacing="1" cellpadding="1">
<thead class="table-head">
<tr>
<th class="thClass" nowrap="true" width="5%">
</th>
<th class="thClass" nowrap="true" valign="bottom" width="20%">
<strong>Code</strong>
</th>
<th class="thClass" nowrap="true" valign="bottom" width="75%">
<strong id="Status">Description</strong>
</th>
</tr>
</thead>
<tbody class="table-body">
<xsl:for-each select="//supp_code">
<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="chkbox"><xsl:value-of select="@selected"/></xsl:variable>
<xsl:variable name="dbID"><xsl:value-of select="@domID"/></xsl:variable>
<tr id="{normalize-space($dbID)}" onclick="rowChecked(this.id)">
<td>
<input type="checkbox" name="selectbox" value="false" id="DetailITCode.{normalize-space($dbID)}.selectbox" onClick="checkone(this.id)"/>
</td>
<td>
<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>
<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>
</tr>
</xsl:for-each>
</tbody>
</table>
</form>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
......@@ -8,18 +8,21 @@
<html>
<body>
<script type="text/javascript" src="/ibase/webitm/js/ITMWizardCalendar.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/jquery.ui.datepicker.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/jquery-ui-1.10.4.custom.min.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/jquery.ui.accordion.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 href="/ibase/webitm/css/DD/ProductWizard.css" rel="stylesheet"/>
<link href="/ibase/webitm/css/DD/jquery-ui-1.10.4.custom.min.css" rel="stylesheet"/>
<script type="text/javascript" src="/ibase/webitm/js/Ammend.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/jquery-1.10.2.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/jquery-ui-1.10.4.custom.min.js"></script>
<script>
<script language="JavaScript" type="text/javascript">
<![CDATA[
$(function()
{
$( "#dlv_date" ).datepicker({ minDate: 0, changeMonth: true, changeYear: true, dateFormat : "dd/mm/y"});
});
]]>
</script>
......@@ -40,6 +43,8 @@
<xsl:variable name="purc_order"><xsl:value-of select="purc_order"/></xsl:variable>
<xsl:variable name="item_parnt"><xsl:value-of select="item_parnt"/></xsl:variable>
<xsl:variable name="extra3"><xsl:value-of select="extra3"/></xsl:variable>
<xsl:variable name="dlv_date"><xsl:value-of select="dlv_date"/></xsl:variable>
<xsl:variable name="amd_date"><xsl:value-of select="amd_date"/></xsl:variable>
<xsl:variable name="site_code"><xsl:value-of select="site_code"/></xsl:variable>
......@@ -91,6 +96,19 @@
</td>
</tr>
<tr>
<td class="td_leftAlign" nowrap="true">
<strong>New Delivery Date :</strong>
</td>
<td colspan="2">
<input type="text" name="Detail1.{normalize-space($dbID)}.dlv_date" id="dlv_date"
value="{$amd_date}" class="editInputClass" style="width: 70%" readOnly = "1" />
<input type="hidden" name="Detail1.{normalize-space($dbID)}.amd_date" id="amd_date"
value="{$amd_date}" class="editInputClass" style="width: 70%" readOnly = "1" />
</td>
</tr>
<tr style="height: 10px;">
</tr>
......@@ -98,14 +116,15 @@
value="{$site_code}" class="editInputClass" style="width: 100%" />
</xsl:for-each>
<tr>
<!--<tr>
<td>
<input type="submit" style="cursor:hand" value="Next" class="button" title="Next"
<input type="submit" style="cursor:hand" id="NextButton" value="Next" class="button" title="Next"
onclick="javascript:return validation()" />
</td>
</tr>
</tr>-->
</table>
<input type="submit" style="cursor:hand" id="NextButton" value="Next" class="button" title="Next"
onclick="javascript:return validation()" />
</div>
</div>
......@@ -142,7 +161,11 @@
</xsl:for-each>
</table>
</div>
<div id="buttonreplacement" style="margin-left:450px;display:none;">
<img src="/ibase/images/preload.gif" alt="Please wait work in progress" >
Please wait......
</img>
</div>
</div>
</form>
......
......@@ -21,49 +21,59 @@
<![CDATA[
$(function()
{
for(var i=1;i<=maxId;i++)
var sum = $('#Details tbody tr').length;
for(var i=1;i<=sum;i++)
{
$( "#new_date"+i+"" ).datepicker({ minDate: 0, changeMonth: true, changeYear: true, dateFormat : "dd/mm/y"});
}
});
document.getElementById("save").style.display = ""; // to undisplay
document.getElementById("back").style.display = ""; // to undisplay
document.getElementById("buttonreplacement").style.display = "none"; // to display
]]>
</script>
<form name="porderAmdSave" id="pordAmdFormII" METHOD="post" ACTION="/ibase/ITMWizardHandlerServlet">
<div class="mainPage-Container">
<div style="overflow: auto;height:85%">
<div id="header">
<div id="headingText">Purchase Order Amendment</div>
</div>
<table class="tableClass" id="Details" border="0" cellspacing="1" cellpadding="1" style="width:90%">
<!--<div class="mainPage-Container">
<div style="overflow: auto;height:85%">-->
<div class = "mainPage-Container" style="height:100%;width:100%;position:fixed">
<div id="innerDiv" style="overflow-y:auto;overflow-x:hidden;height:auto%;max-height:80%;min-height:80%;width:99%">
<table class="tableClass" id="Details" border="0" cellspacing="1" cellpadding="1" >
<thead class="table-head" style="text-align:center;">
<tr>
<th class="thClass" nowrap="true" width="5%">
<input type='checkbox' id="all" onclick='checkAllItem(this)' checked='1' />
</th>
<th class="thClass" nowrap="true" valign="bottom" width="8%">
<th class="thClass" nowrap="true" valign="bottom">
<strong>Purchase Order</strong>
</th>
<th class="thClass" nowrap="true" valign="bottom" width="8%">
<th class="thClass" nowrap="true" valign="bottom" >
<strong>Item Code</strong>
</th>
<th class="thClass" nowrap="true" valign="bottom" width="8%">
<th class="thClass" nowrap="true" valign="bottom">
<strong>Quantity</strong>
</th>
<th class="thClass" nowrap="true" valign="bottom" width="8%">
<th class="thClass" nowrap="true" valign="bottom">
<strong>Delivery Date</strong>
</th>
<th class="thClass" nowrap="true" valign="bottom" width="20%">
<th class="thClass" nowrap="true" valign="bottom">
<strong>New Date</strong>
</th>
<th class="thClass" nowrap="true" valign="bottom" width="8%">
<th class="thClass" nowrap="true" valign="bottom">
<strong>Changed by user</strong>
</th>
</tr>
</thead>
<tbody class='table-body fadeInDown'>
<xsl:for-each select="//Detail2">
<xsl:sort select="purc_order"/>
<xsl:variable name="dbID"><xsl:value-of select="@domID"/></xsl:variable>
<xsl:variable name="purc_order"><xsl:value-of select="purc_order"/></xsl:variable>
<xsl:variable name="item_code"><xsl:value-of select="item_code"/></xsl:variable>
......@@ -76,6 +86,10 @@
<xsl:variable name="extra1"><xsl:value-of select="extra1"/></xsl:variable>
<xsl:variable name="site_code"><xsl:value-of select="site_code"/></xsl:variable>
<xsl:variable name="extra3"><xsl:value-of select="extra3"/></xsl:variable>
<xsl:variable name="extra2"><xsl:value-of select="extra2"/></xsl:variable>
<xsl:variable name="extra4"><xsl:value-of select="extra4"/></xsl:variable>
<xsl:variable name="amd_date"><xsl:value-of select="amd_date"/></xsl:variable>
<xsl:variable name="chkbox"><xsl:value-of select="@selected"/></xsl:variable>
<SCRIPT>
<![CDATA[ var qtyR; qtyR ="]]> <xsl:value-of select="$dbID"/>
......@@ -83,9 +97,21 @@
</SCRIPT>
<tr style="text-align:center;">
<td>
<!--<td>
<input type="checkbox" name="Detail2.{normalize-space($dbID)}.selectbox"
id="Detail2.{normalize-space($dbID)}.selectbox" checked="true" value="true" />
</td>-->
<td>
<xsl:choose>
<xsl:when test="$chkbox ='Y'">
<input type="checkbox" name="Detail2.{normalize-space($dbID)}.selectbox"
id="Detail2.{normalize-space($dbID)}.selectbox" checked='true' value="true" onClick="setChecked(this)" />
</xsl:when>
<xsl:otherwise>
<input type="checkbox" name="Detail2.{normalize-space($dbID)}.selectbox"
id="Detail2.{normalize-space($dbID)}.selectbox" value="false" onClick="setChecked(this)"/>
</xsl:otherwise>
</xsl:choose>
</td>
<td>
<xsl:value-of select="purc_order"/>
......@@ -97,7 +123,7 @@
<xsl:value-of select="quantity"/>
</td>
<td>
<xsl:value-of select="dlv_date"/>
<xsl:value-of select="extra2"/>
</td>
<td>
<input type="text" id="new_date{normalize-space($dbID)}" onchange="dateChange({$dbID})" name="Detail2.{normalize-space($dbID)}.new_date" value="{dlv_date}"
......@@ -140,6 +166,15 @@
<input type="hidden" id="extra3" class="editDisplayClass"
name="Detail2.{normalize-space($dbID)}.extra3" value="{extra3}" />
<input type="hidden" id="extra2" class="editDisplayClass"
name="Detail2.{normalize-space($dbID)}.extra2" value="{extra2}" />
<input type="hidden" id="Detail2.{normalize-space($dbID)}.extra4" class="editDisplayClass"
name="Detail2.{normalize-space($dbID)}.extra4" value="{extra4}" />
<input type="hidden" id="amd_date" class="editDisplayClass"
name="Detail2.{normalize-space($dbID)}.amd_date" value="{amd_date}" />
</tr>
</xsl:for-each>
</tbody>
......@@ -191,9 +226,17 @@
<tr>
</tr>
</xsl:for-each>
<div id="buttonreplacement" style="position:absolute;margin-left:450px;display:none;">
<img src="/ibase/images/preload.gif" alt="Please wait work in progress" >
Please wait......
</img>
</div>
</table>
<input type="submit" style="cursor:hand" class="button" value="Previous" title='Previous' onclick="javascript:amdPrevious()"/>
<input type="submit" style="cursor:hand" class="button" value="Finish" title='Finish' onclick="javascript:setActionVal('finish');javascript:final();"/>
<input type="submit" style="cursor:hand;" id="save" class="button" value="Previous" title='Previous' onclick="javascript:amdPrevious()"/>
<input type="submit" style="cursor:hand;" id="back" class="button" value="Finish" title='Finish' onclick="javascript:setActionVal('finish');return final();"/>
</div>
</form>
......
......@@ -7,16 +7,12 @@
<html>
<script type="text/javascript" src="/ibase/webitm/js/jquery-1.10.2.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/prodWiz_Common.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/prodWiz_Popup.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/porderWiz_Popup.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 href="/ibase/webitm/css/DD/ProductWizard.css" rel="stylesheet"/>
<script type="text/javascript" src="/ibase/webitm/js/jquery.ui.accordion.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/jquery-ui-1.10.4.custom.min.js"></script>
<link href="/ibase/webitm/css/DD/ProductWizard.css" rel="stylesheet"/>
<link href="/ibase/webitm/css/DD/jquery-ui-1.10.4.custom.min.css" rel="stylesheet"/>
<script type="text/javascript" src="/ibase/webitm/js/jquery-ui-1.10.4.custom.min.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/jquery.ui.accordion.js"></script>
<script>
<![CDATA[
......@@ -26,8 +22,11 @@
$("#accordion").accordion('option', 'active' , 0);
$( "#dlv_date1").datepicker({ minDate: 0, changeMonth: true, changeYear: true, dateFormat : "d/m/y"});
pageLoad();
});
]]>
<!-- in above function pageLoad() function added by samadhan on 14/07/2015 -->
</script>
<body>
......@@ -72,6 +71,9 @@
<xsl:variable name="chg_term"><xsl:value-of select="chg_term"/></xsl:variable>
<xsl:variable name="emp_code"><xsl:value-of select="emp_code"/></xsl:variable>
<xsl:variable name="udf_str__2"><xsl:value-of select="udf_str__2"/></xsl:variable>
<xsl:variable name="udf_str__1"><xsl:value-of select="udf_str__1"/></xsl:variable>
<xsl:variable name="udf_str__3"><xsl:value-of select="udf_str__3"/></xsl:variable>
<xsl:variable name="delivery_term_descr"><xsl:value-of select="delivery_term_descr"/></xsl:variable>
<input type="hidden" value="{$supp_code}" name="Detail2.0.supp_code" id="supp_code" />
<input type="hidden" value="{$supp_name}" name="Detail2.0.supp_name" id="supp_name" />
......@@ -106,6 +108,9 @@
<input type="hidden" value="{$chg_term}" name="Detail2.0.chg_term" id="chg_term" />
<input type="hidden" value="{$emp_code}" name="Detail2.0.emp_code" id="emp_code" />
<input type="hidden" value="{$udf_str__2}" name="Detail2.0.udf_str__2" id="udf_str__2" />
<input type="hidden" value="{$udf_str__1}" name="Detail2.0.udf_str__1" id="udf_str__1" />
<input type="hidden" value="{$site_add1}" name="Detail2.0.site_add1" id="site_add1" />
<input type="hidden" value="{$delivery_term_descr}" name="Detail2.0.delivery_term_descr" id="delivery_term_descr" />
<!--<input type="hidden" value="{normalize-space($supp_code)}" id="supp_code" />
<input type="hidden" value="{normalize-space($purc_order)}" id="purc_order" />
......@@ -150,6 +155,8 @@
<td class="td_leftAlign">
<div style="position:relative; width: 90%;">
<input type="text" class="editInputClass" id="itmcode1" name="itmcode1" maxlength="10" ISCHANGED="false" readOnly = "1" style="width: 90%;" />
<input type='hidden' id='multisel1' class='editDisplayClass' maxlength='0' ISCHANGED='false' readOnly = '1' style='margin-left: -9px;width: 400px' value='' />
<div style="width:3%; float: right;">
<a href="javascript:callpop(1);" style="float: left;text-decoration: none;">
<img src="/ibase/webitm/images/DD/popup1.png" style="margin-left: -5px;" title="Select Item Code"/>
......@@ -160,12 +167,12 @@
<td colspan="2">
<input type="text" id="itmdescription1" value="{item_code}" class="editDisplayClass" maxlength="0" ISCHANGED="false" readOnly = "1" style="margin-left: -9px;width: 400px" />
</td>
<td colspan="2">
<td colspan="2" style="font-size:15px">
<strong>Delivery Date:</strong><input type="text" name="dlv_date1" onchange="dateChange(1)"
id="dlv_date1" value="{dlv_date}" class="editInputClass" maxlength="0" ISCHANGED="false" readOnly = "1" style="width: 25%;" />
id="dlv_date1" value="{dlv_date}" style="width:28%;font-size:12px" />
</td>
</tr>
</table>
</table>
</div>
</div>
</div>
......@@ -208,10 +215,15 @@
</table>
</div>
</div>
<div id="buttonreplacement" style="margin-left:450px;display:none;">
<img src="/ibase/images/preload.gif" alt="Please wait work in progress" >
Please wait......
</img>
</div>
<input type="submit" style="cursor:hand" class="button" value="Previous" title='Previous' onclick="form2Pre()"/>
<input type="submit" style="cursor:hand" value="Next" class="button" title='Next' onclick="javascript:setActionVal('next');javascript: return setCheckedTrue()" />
<input type="button" style="cursor:hand;float:right;margin-right:50px" value="Add" class="button" title='Add' onclick="sidebar()" />
<input type="submit" style="cursor:hand" id="PreButton" class="button" value="Previous" title='Previous' onclick="form2Pre()"/>
<input type="submit" style="cursor:hand" id="NextButton" value="Next" class="button" title='Next' onclick="javascript:setActionVal('next');javascript: return setCheckedTrue()" />
<input type="button" style="cursor:hand;float:right;margin-right:50px" id="AddButton" value="Add" class="button" title='Add' onclick="sidebar()" />
</div>
</form>
......
......@@ -14,21 +14,21 @@
<form name="porderFinish" METHOD="post" ACTION="/ibase/ITMWizardHandlerServlet">
<table class="tableClass" id="Details1" border="0" cellspacing="1" cellpadding="1">
<thead class="table-head">
<thead class="table-head" style="text-align:center;">
<tr>
<th class="thClass" nowrap="true" valign="bottom" width="20%">
<th class="thClass" nowrap="true" valign="bottom" >
<strong>Purchase Order</strong>
</th>
<th class="thClass" nowrap="true" valign="bottom" width="20%">
<th class="thClass" nowrap="true" valign="bottom" >
<strong>Remarks</strong>
</th>
<th class="thClass" nowrap="true" valign="bottom" width="20%">
<th class="thClass" nowrap="true" valign="bottom" >
<strong>Supplier Code</strong>
</th>
<th class="thClass" nowrap="true" valign="bottom" width="20%">
<th class="thClass" nowrap="true" valign="bottom" >
<strong>Supplier Name</strong>
</th>
<th class="thClass" nowrap="true" valign="bottom" width="20%">
<th class="thClass" nowrap="true" valign="bottom" >
<strong>Total Tax</strong>
</th>
</tr>
......@@ -42,7 +42,7 @@
<xsl:variable name="supp_name"><xsl:value-of select="supp_name"/></xsl:variable>
<xsl:variable name="tax_amt"><xsl:value-of select="tax_amt"/></xsl:variable>
<tr>
<tr style="text-align:center;">
<td>
<xsl:value-of select="fieldId"/>
</td>
......@@ -58,25 +58,36 @@
<td>
<xsl:value-of select="tax_amt"/>
</td>
</tr>
</xsl:for-each>
</tbody>
</table>
<table class="tableClass" id="Details2" border="0" cellspacing="1" cellpadding="1">
<thead class="table-head">
<thead class="table-head" style="text-align:center;">
<tr>
<th class="thClass" nowrap="true" valign="bottom" width="20%">
<th class="thClass" nowrap="true" valign="bottom" >
<strong>Item SKU Code</strong>
</th>
<th class="thClass" nowrap="true" valign="bottom" width="20%">
<th class="thClass" nowrap="true" valign="bottom" >
<strong>Quantity</strong>
</th>
<th class="thClass" nowrap="true" valign="bottom" width="20%">
<th class="thClass" nowrap="true" valign="bottom" >
<strong>Total Amount</strong>
</th>
<th class="thClass" nowrap="true" valign="bottom" width="20%">
<th class="thClass" nowrap="true" valign="bottom" >
<strong>Tax Amount</strong>
</th>
<th class="thClass" nowrap="true" valign="bottom" >
<strong>Tax Class</strong>
</th>
<th class="thClass" nowrap="true" valign="bottom" >
<strong>Tax Chap</strong>
</th>
<th class="thClass" nowrap="true" valign="bottom" >
<strong>Tax Env</strong>
</th>
</tr>
</thead>
......@@ -87,7 +98,12 @@
<xsl:variable name="supp_code"><xsl:value-of select="supp_code"/></xsl:variable>
<xsl:variable name="tax_amt"><xsl:value-of select="tax_amt"/></xsl:variable>
<xsl:variable name="quantity"><xsl:value-of select="quantity"/></xsl:variable>
<tr>
<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>
<tr style="text-align:center;">
<td>
<xsl:value-of select="item_code"/>
</td>
......@@ -100,6 +116,15 @@
<td>
<xsl:value-of select="tax_amt"/>
</td>
<td>
<xsl:value-of select="tax_class"/>
</td>
<td>
<xsl:value-of select="tax_chap"/>
</td>
<td>
<xsl:value-of select="tax_env"/>
</td>
</tr>
</xsl:for-each>
</tbody>
......
......@@ -25,10 +25,10 @@
<th class="thClass" nowrap="true" width="5%">
</th>
<th class="thClass" nowrap="true" valign="bottom" width="20%">
<th class="thClass" nowrap="true" valign="bottom" width="30%">
<strong>Code</strong>
</th>
<th class="thClass" nowrap="true" valign="bottom" width="75%">
<th class="thClass" nowrap="true" valign="bottom" width="70%">
<strong>Description</strong>
</th>
</tr>
......@@ -49,10 +49,13 @@
<xsl:variable name="chkbox"><xsl:value-of select="@selected"/></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>
<tr id="{normalize-space($dbID)}" onclick="rowChecked(this.id)">
<td>
<input type="checkbox" name="selectbox" value="false" id="DetailITCode.{normalize-space($dbID)}.selectbox" onClick="checkone(this.id)"/>
<input type="checkbox" name="selectbox" value="false" onclick="checkone(this.id)" id="DetailITCode.{normalize-space($dbID)}.selectbox"/>
</td>
<td>
<xsl:value-of select="fieldId"/>
......@@ -84,7 +87,7 @@
</tr>
</xsl:for-each>
<input type="hidden" id="checkID" />
</tbody>
</table>
......
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