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>
......
......@@ -8,16 +8,9 @@
<html>
<body>
<script type="text/javascript" src="/ibase/webitm/js/prodWiz_Popup.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/porderWiz_Popup.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/prodWiz_Common.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/prodWiz_Form_I.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/jquery.ui.accordion.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/ITMWizardCalendar.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.datepicker.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"/>
......@@ -27,10 +20,13 @@
<![CDATA[
$(function() {
$( "#orddate").datepicker({ changeDate: true, changeMonth: true, changeYear: true, dateFormat : "dd/mm/y"});
$( "#confdate").datepicker({ minDate: 0, changeMonth: true, changeYear: true, dateFormat : "dd/mm/y"});
$( "#trandate").datepicker({ minDate: 0, changeMonth: true, changeYear: true, dateFormat : "dd/mm/y"});
$( "#accordion" ).accordion({ collapsible:true, active:false });
if(document.getElementById("curr_code").value != "GBP" && document.getElementById("xyz").value != "")
{
document.getElementById("exch_rate").className = "editInputClass";
document.getElementById("exch_rate").readOnly = false;
}
});
]]>
</script>
......@@ -43,6 +39,7 @@
<div class="mainPage-Container" style="overflow: auto;">
<div style="margin-top: 8px; width:100%; padding: 0px; float: left;">
<div style="float: left; width:50%; border: 0px solid; padding: 0px;">
......@@ -80,6 +77,9 @@
<xsl:variable name="chg_term"><xsl:value-of select="chg_term"/></xsl:variable>
<xsl:variable name="term_table"><xsl:value-of select="term_table"/></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>
<xsl:variable name="dbID"><xsl:value-of select="@domID"/></xsl:variable>
<input type="hidden" value="{chg_user}" name="Detail1.{normalize-space($dbID)}.chg_user" id="Detail1.{normalize-space($dbID)}.chg_user" />
......@@ -101,7 +101,7 @@
</td>
<td colspan="2">
<input type="text" name="Detail1.{normalize-space($dbID)}.ord_date" id="orddate"
value="{$ord_date}" class="editInputClass" maxlength="0" ISCHANGED="false" readOnly = "1" style="width: 25%" />
value="{$ord_date}" class="editInputClass" maxlength="0" ISCHANGED="false" readOnly = "1" style="width: 20%" />
</td>
</tr>
......@@ -126,28 +126,64 @@
</td>
</tr> -->
<!-- Changed by samadhan on 06 07 2015 Start -->
<tr>
<td class="td_leftAlign" nowrap="true">
<strong>Item Series :</strong>
<strong>Transaction Type :</strong>
</td>
<td class="td_leftAlign">
<div style="position:relative; width: 90%;">
<select name="Detail1.{normalize-space($dbID)}.pord_type" id="pord_type" onchange = "setBlank()" >
<xsl:choose>
<xsl:when test="$pord_type ='T'">
<option value="T" selected="selected" >Trading</option>
</xsl:when>
<xsl:otherwise>
<option value="T" >Trading</option>
</xsl:otherwise>
</xsl:choose>
<xsl:choose>
<xsl:when test="$pord_type ='N'">
<option value="N" selected="selected" >Non Trading</option>
</xsl:when>
<xsl:otherwise>
<option value="N" >Non Trading</option>
</xsl:otherwise>
</xsl:choose>
</select>
</div>
</td>
</tr>
<!-- Changed by samadhan on 06 07 2015 End -->
<tr>
<td class="td_leftAlign" nowrap="true">
<strong>Item Series :</strong>
</td>
<td class="td_leftAlign">
<div style="width: 90%;">
<input type="text" class="editInputClass" value="{$item_ser}" id="itmser" name="Detail1.{normalize-space($dbID)}.item_ser"
maxlength="10" ISCHANGED="false" readOnly = "1"
style="width: 95%;" />
<div style="width:3%; float: right;">
<a href="javascript:supp_pop('item_ser','itmser','Item Series');" style="float: left;text-decoration: none;">
<img src="/ibase/webitm/images/DD/popup1.png" style="margin-left: -5px;" title="Select Item Series"/>
maxlength="10" ISCHANGED="false" readOnly = "1" style="width: 95%;" />
<div style="width:5%; float: right;">
<a href="javascript:supp_pop('item_ser','itmser','Item Series');">
<img src="/ibase/webitm/images/DD/popup1.png" title="Select Item Series"/>
</a>
</div>
</div>
</td>
<td colspan="2">
<input type="text" name="Detail1.{normalize-space($dbID)}.task_desc" id="itmdescr"
value="{task_desc}" class="editDisplayClass" maxlength="0" ISCHANGED="false" readOnly = "1" style="margin-left: -9px;width: 180px" />
value="{task_desc}" class="editDisplayClass" maxlength="0" ISCHANGED="false" readOnly = "1" style="width: 180px" />
</td>
</tr>
<!-- Changed by Samadhan
<tr>
<td class="td_leftAlign" nowrap="true">
<strong>Transaction Type :</strong>
......@@ -157,19 +193,26 @@
<input type="text" class="editDisplayClass" value="{$pord_type}" id="type" name="Detail1.{normalize-space($dbID)}.pord_type"
maxlength="10" ISCHANGED="false" readOnly = "1"
style="width: 40%;" />
-->
<!--<div style="width:3%; float: right;">
<a href="javascript:supp_pop('type','type','Tran Type');" style="float: left;text-decoration: none;">
<img src="/ibase/webitm/images/DD/popup1.png" style="margin-left: -5px;" title="Select Tran Type"/>
</a>
</div>-->
<!-- Changed by Samadhan
</div>
</td>
-->
<!--<td colspan="2">
<input type="text" name="Detail1.{normalize-space($dbID)}.task_desc" id="typedescr"
value="{task_desc}" class="editDisplayClass" maxlength="0" ISCHANGED="false" readOnly = "1" style="margin-left: -9px;width: 180px" />
</td>-->
<!-- Changed by Samadhan
</tr>
-->
<tr>
<td class="td_leftAlign" nowrap="true">
......@@ -178,18 +221,17 @@
<td class="td_leftAlign">
<div style="position:relative; width: 90%;">
<input type="text" class="editInputClass" value="{supp_code}" name="Detail1.{normalize-space($dbID)}.supp_code"
id="xyz" maxlength="10" ISCHANGED="false" readOnly = "1"
style="width: 95%;" />
<div style="width:3%; float: right;">
id="xyz" maxlength="10" ISCHANGED="false" readOnly = "1" style="width: 95%;" />
<div style="width:5%; float: right;">
<a href="javascript:supp_pop('supp_code','xyz','Supplier Code','{site_code__ord}');" style="float: left;text-decoration: none;">
<img src="/ibase/webitm/images/DD/popup1.png" style="margin-left: -5px;" title="Select Supplier Code"/>
<img src="/ibase/webitm/images/DD/popup1.png" title="Select Supplier Code"/>
</a>
</div>
</div>
</td>
<td colspan="2">
<input type="text" name="Detail1.{normalize-space($dbID)}.supp_name" id="pqr"
value="{supp_name}" class="editDisplayClass" maxlength="0" ISCHANGED="false" readOnly = "1" style="margin-left: -9px;width: 180px" />
value="{supp_name}" class="editDisplayClass" maxlength="0" ISCHANGED="false" readOnly = "1" style="width: 180px" />
</td>
</tr>
......@@ -200,18 +242,17 @@
<td class="td_leftAlign">
<div style="position:relative; width: 90%;">
<input type="text" class="editInputClass" value="{$cr_term}" id="crterm" name="Detail1.{normalize-space($dbID)}.cr_term"
maxlength="10" ISCHANGED="false" readOnly = "1"
style="width: 95%;" />
<div style="width:3%; float: right;">
maxlength="10" ISCHANGED="false" readOnly = "1" style="width: 95%;" />
<div style="width:5%; float: right;">
<a href="javascript:supp_pop('cr_term','crterm','Credit Term');" style="float: left;text-decoration: none;">
<img src="/ibase/webitm/images/DD/popup1.png" style="margin-left: -5px;" title="Select Credit Term"/>
<img src="/ibase/webitm/images/DD/popup1.png" title="Select Credit Term"/>
</a>
</div>
</div>
</td>
<td colspan="2">
<input type="text" name="Detail1.{normalize-space($dbID)}.crterm_descr" id="crdescr"
value="{crterm_descr}" class="editDisplayClass" maxlength="0" ISCHANGED="false" readOnly = "1" style="margin-left: -9px;width: 180px" />
value="{crterm_descr}" class="editDisplayClass" maxlength="0" ISCHANGED="false" readOnly = "1" style="width: 180px" />
</td>
</tr>
......@@ -267,7 +308,7 @@
</td>
</tr>-->
<tr>
<!--<tr>
<td class="td_leftAlign" nowrap="true">
<strong>Delivery Terms :</strong>
</td>
......@@ -275,7 +316,10 @@
<input type="text" name="Detail1.{normalize-space($dbID)}.dlv_term" ISCHANGED="false" readOnly = "1"
id="dlvterm" value="{$dlv_term}" class="editInputClass" style="width: 100%"/>
</td>
</tr>
</tr>-->
<input type="hidden" name="Detail1.{normalize-space($dbID)}.dlv_term" ISCHANGED="false" readOnly = "1"
id="dlvterm" value="{$dlv_term}" class="editInputClass" style="width: 100%"/>
<tr>
<td class="td_leftAlign" nowrap="true">
......@@ -284,28 +328,53 @@
<td class="td_leftAlign">
<div style="position:relative; width: 90%;">
<input type="text" class="editInputClass" value="{$tran_code}" id="trcode" name="Detail1.{normalize-space($dbID)}.tran_code"
maxlength="10" ISCHANGED="false" readOnly = "1"
style="width: 95%;" />
<div style="width:3%; float: right;">
maxlength="10" ISCHANGED="false" readOnly = "1" style="width: 95%;" />
<div style="width:5%; float: right;">
<a href="javascript:supp_pop('tran_code','trcode','Transporter Code');" style="float: left;text-decoration: none;">
<img src="/ibase/webitm/images/DD/popup1.png" style="margin-left: -5px;" title="Select Transporter Code"/>
<img src="/ibase/webitm/images/DD/popup1.png" title="Select Transporter Code"/>
</a>
</div>
</div>
</td>
<td colspan="2">
<input type="text" name="Detail1.{normalize-space($dbID)}.tran_name" id="trdescr"
value="{tran_code}" class="editDisplayClass" maxlength="0" ISCHANGED="false" readOnly = "1" style="margin-left: -9px;width: 180px" />
value="{tran_code}" class="editDisplayClass" maxlength="0" ISCHANGED="false" readOnly = "1" style="width: 225px" />
</td>
</tr>
<!--<tr>
<td class="td_leftAlign" nowrap="true">
<strong>Transporter Mode :</strong>
</td>
<td class="td_leftAlign">
<input type="text" value="{$trans_mode}" ISCHANGED="false" readOnly = "1" name="Detail1.{normalize-space($dbID)}.trans_mode"
class="editInputClass" id="trmode" maxlength="10" style='text-align: right; width: 100%'/>
</td>
<td>
<a href="javascript:supp_pop('trans_mode','trmode','Transporter Mode');" style="float: left;text-decoration: none;">
<img src="/ibase/webitm/images/DD/popup1.png" title="Select Transporter Mode"/>
</a>
</td>
</tr>-->
<tr>
<td class="td_leftAlign" nowrap="true">
<strong>Transporter Mode :</strong>
</td>
<td class="td_leftAlign">
<input type="text" value="{$trans_mode}" ISCHANGED="false" readOnly = "1" name="Detail1.{normalize-space($dbID)}.trans_mode" class="editInputClass" id="trmode" maxlength="10" style='text-align: right; width: 20%'/>
<div style="position:relative; width: 100%;">
<input type="text" class="editInputClass" value="{$trans_mode}" id="trmode" name="Detail1.{normalize-space($dbID)}.trans_mode"
maxlength="10" ISCHANGED="false" readOnly = "1" style="width: 30%;" />
<div style="width:70%; float: right;">
<a href="javascript:supp_pop('trans_mode','trmode','Transporter Mode');" style="float: left;text-decoration: none;">
<img src="/ibase/webitm/images/DD/popup1.png" title="Select Transporter Mode"/>
</a>
</div>
</div>
</td>
<input type="hidden" name="Detail1.{normalize-space($dbID)}.delivery_term_descr" id="delivery_term_descr" value="{$delivery_term_descr}" />
</tr>
<!--<tr>
......@@ -323,10 +392,9 @@
<strong>Price List :</strong>
</td>
<td class="td_leftAlign">
<div style="position:relative; width: 90%;">
<div style="position:relative; width: 100%;">
<input type="text" class="editInputClass" value="{$price_list}" id="prlist" name="Detail1.{normalize-space($dbID)}.price_list"
maxlength="10" ISCHANGED="false" readOnly = "1"
style="width: 95%;" />
maxlength="10" ISCHANGED="false" readOnly = "1" style="width: 70%;" />
<!--<div style="width:3%; float: right;">
<a href="javascript:supp_pop('price_list','prlist','Price List');" style="float: left;text-decoration: none;">
<img src="/ibase/webitm/images/DD/popup1.png" style="margin-left: -5px;" title="Select Price List"/>
......@@ -354,16 +422,15 @@
<td class="td_leftAlign" nowrap="true">
<strong>Currency :</strong>
</td>
<td class="td_leftAlign">
<td>
<div style="position:relative; width: 100%;">
<input type="text" name="Detail1.{normalize-space($dbID)}.curr_code" value="{$curr_code}" id="curr_code"
class="editDisplayClass" maxlength="10" ISCHANGED="false" readOnly = "1" style="width: 60%;" />
<!--<div style="width:3%; float: right;">
class="editDisplayClass" maxlength="10" ISCHANGED="false" readOnly = "1" style="width: 70%;" />
<div style="width:30%; float: right;">
<a href="javascript:supp_pop('curr_code','curr_code','Curr Code');" style="float: left;text-decoration: none;">
<img src="/ibase/webitm/images/DD/popup1.png" style="margin-left: -5px;" title="Select Currency Code"/>
<img src="/ibase/webitm/images/DD/popup1.png" title="Select Currency Code"/>
</a>
</div>-->
</div>
</div>
</td>
</tr>
......@@ -374,7 +441,7 @@
</td>
<td class="td_leftAlign">
<input type="text" name="Detail1.{normalize-space($dbID)}.exch_rate" id="exch_rate" value="{$exch_rate}" onkeypress='return isNumberKey(event)'
class="editDisplayClass" maxlength="4" readOnly = "0" style='text-align: right; width: 60%'/>
class="editDisplayClass" maxlength="4" readOnly = "0" style='text-align: right; width: 70%'/>
</td>
</tr>
......@@ -385,18 +452,17 @@
<td class="td_leftAlign">
<div style="position:relative; width: 90%;">
<input type="text" class="editInputClass" value="{$dept_code}" id="dcode" name="Detail1.{normalize-space($dbID)}.dept_code"
maxlength="10" ISCHANGED="false" readOnly = "1"
style="width: 95%;" />
<div style="width:3%; float: right;">
maxlength="10" ISCHANGED="false" readOnly = "1" style="width: 95%;" />
<div style="width:5%; float: right;">
<a href="javascript:supp_pop('dept_code','dcode','Department Code');" style="float: left;text-decoration: none;">
<img src="/ibase/webitm/images/DD/popup1.png" style="margin-left: -5px;" title="Select Department Code"/>
<img src="/ibase/webitm/images/DD/popup1.png" title="Select Department Code"/>
</a>
</div>
</div>
</td>
<td colspan="2">
<input type="text" name="Detail1.{normalize-space($dbID)}.department_descr" id="ddescr"
value="{department_descr}" class="editDisplayClass" maxlength="0" ISCHANGED="false" readOnly = "1" style="margin-left: -9px;width: 180px" />
value="{department_descr}" class="editDisplayClass" maxlength="0" ISCHANGED="false" readOnly = "1" style="width: 180px" />
</td>
</tr>
......@@ -418,12 +484,41 @@
</td>
</tr>
<tr>
<td class="td_leftAlign" nowrap="true">
<strong>Release Type :</strong>
</td>
<td class="td_leftAlign">
<div style="position:relative; width: 100%;">
<input type="text" class="editInputClass" value="{$udf_str__1}" id="udf_str__1" name="Detail1.{normalize-space($dbID)}.udf_str__1"
maxlength="10" ISCHANGED="false" readOnly = "1" style="width: 70%;" />
<div style="width:30%; float: right;">
<a href="javascript:supp_pop('udf_str__1','udf_str__1','Release Type');" style="float: left;text-decoration: none;">
<img src="/ibase/webitm/images/DD/popup1.png" title="Select Release Type"/>
</a>
</div>
</div>
</td>
</tr>
<tr>
<td class="td_leftAlign" nowrap="true">
<strong>Release Amt/Perc :</strong>
</td>
<td class="td_leftAlign">
<div style="position:relative; width: 100%;">
<input type="text" class="editInputClass" value="{$site_add1}" id="site_add1" name="Detail1.{normalize-space($dbID)}.site_add1"
onkeypress='return isNumberKey(event)' onkeyup='Limit(this.id)' onfocusout='Round(this.id)' style="width: 70%;text-align: right;" />
</div>
</td>
</tr>
<tr style="height: 10px;">
</tr>
<tr>
<td>
<input type="submit" onclick="javascript: return validate()" style="cursor:hand" value="Next" class="button" title='Next'/>
<input type="submit" onclick="javascript: return validate()" id="NextButton" style="cursor:hand" value="Next" class="button" title='Next'/>
</td>
<!--<td>
......@@ -504,6 +599,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>
......
......@@ -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,9 +167,9 @@
<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>
......@@ -209,9 +216,14 @@
</div>
</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()" />
<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" 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>
......
......@@ -7,10 +7,9 @@
<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"/>
......@@ -21,11 +20,15 @@
<![CDATA[
$(function()
{
for(var i=0;i<=100;i++)
var sum = $('#Details tbody tr').length;
for(var i=0;i<=sum;i++)
{
$( "#dlv_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>
......@@ -35,8 +38,88 @@
<!-- <div id="header" style="width:100%;height:100px">
<div id="headingText">Purchase Wizard Details</div>
</div>-->
<div class="mainPage-Container" style="height:100%;overflow:scroll;">
<div class="mainPage-Container" style="height:99%;width:99%;overflow:scroll;">
<!-- Changed by samadhan on 13/07/2015 for previous button working Start -->
<div style="width: 99%; margin-top: 5px;">
<xsl:for-each select="//Detail3">
<xsl:variable name="dbID"><xsl:value-of select="@domID"/></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="purc_order"><xsl:value-of select="purc_order"/></xsl:variable>
<xsl:variable name="ord_date"><xsl:value-of select="ord_date"/></xsl:variable>
<xsl:variable name="ind_no"><xsl:value-of select="ind_no"/></xsl:variable>
<xsl:variable name="item_ser"><xsl:value-of select="item_ser"/></xsl:variable>
<xsl:variable name="cr_term"><xsl:value-of select="cr_term"/></xsl:variable>
<xsl:variable name="crterm_descr"><xsl:value-of select="crterm_descr"/></xsl:variable>
<xsl:variable name="remarks"><xsl:value-of select="remarks"/></xsl:variable>
<xsl:variable name="confirmed"><xsl:value-of select="confirmed"/></xsl:variable>
<xsl:variable name="dlv_term"><xsl:value-of select="dlv_term"/></xsl:variable>
<xsl:variable name="tran_code"><xsl:value-of select="tran_code"/></xsl:variable>
<xsl:variable name="tran_name"><xsl:value-of select="tran_name"/></xsl:variable>
<xsl:variable name="tran_date"><xsl:value-of select="tran_date"/></xsl:variable>
<xsl:variable name="price_list"><xsl:value-of select="price_list"/></xsl:variable>
<xsl:variable name="conf_date"><xsl:value-of select="conf_date"/></xsl:variable>
<xsl:variable name="exch_rate"><xsl:value-of select="exch_rate"/></xsl:variable>
<xsl:variable name="dept_code"><xsl:value-of select="dept_code"/></xsl:variable>
<xsl:variable name="department_descr"><xsl:value-of select="department_descr"/></xsl:variable>
<xsl:variable name="trans_mode"><xsl:value-of select="trans_mode"/></xsl:variable>
<xsl:variable name="dlv_date"><xsl:value-of select="dlv_date"/></xsl:variable>
<xsl:variable name="pord_type"><xsl:value-of select="pord_type"/></xsl:variable>
<xsl:variable name="task_desc"><xsl:value-of select="task_desc"/></xsl:variable>
<xsl:variable name="site_code__dlv"><xsl:value-of select="site_code__dlv"/></xsl:variable>
<xsl:variable name="site_code__ord"><xsl:value-of select="site_code__ord"/></xsl:variable>
<xsl:variable name="site_descr"><xsl:value-of select="site_descr"/></xsl:variable>
<xsl:variable name="site_add1"><xsl:value-of select="site_add1"/></xsl:variable>
<xsl:variable name="curr_code"><xsl:value-of select="curr_code"/></xsl:variable>
<xsl:variable name="term_table"><xsl:value-of select="term_table"/></xsl:variable>
<xsl:variable name="chg_user"><xsl:value-of select="chg_user"/></xsl:variable>
<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>
<xsl:if test="$dbID = '0'">
<input type="hidden" value="{$supp_code}" name="Detail3.{normalize-space($dbID)}.supp_code" id="supp_code" />
<input type="hidden" value="{$supp_name}" name="Detail3.{normalize-space($dbID)}.supp_name" id="supp_name" />
<input type="hidden" value="{$purc_order}" name="Detail3.{normalize-space($dbID)}.purc_order" id="purc_order" />
<input type="hidden" value="{$ord_date}" name="Detail3.{normalize-space($dbID)}.ord_date" id="ord_date" />
<input type="hidden" value="{$ind_no}" name="Detail3.{normalize-space($dbID)}.ind_no" id="ind_no" />
<input type="hidden" value="{$item_ser}" name="Detail3.{normalize-space($dbID)}.item_ser" id="item_ser" />
<input type="hidden" value="{$cr_term}" name="Detail3.{normalize-space($dbID)}.cr_term" id="cr_term" />
<input type="hidden" value="{$crterm_descr}" name="Detail3.{normalize-space($dbID)}.crterm_descr" id="crterm_descr" />
<input type="hidden" value="{$remarks}" name="Detail3.{normalize-space($dbID)}.remarks" id="remarks" />
<input type="hidden" value="{$confirmed}" name="Detail3.{normalize-space($dbID)}.confirmed" id="confirmed" />
<input type="hidden" value="{$dlv_term}" name="Detail3.{normalize-space($dbID)}.dlv_term" id="dlv_term" />
<input type="hidden" value="{$tran_code}" name="Detail3.{normalize-space($dbID)}.tran_code" id="tran_code" />
<input type="hidden" value="{$tran_name}" name="Detail3.{normalize-space($dbID)}.tran_name" id="tran_name" />
<input type="hidden" value="{$tran_date}" name="Detail3.{normalize-space($dbID)}.tran_date" id="tran_date" />
<input type="hidden" value="{$price_list}" name="Detail3.{normalize-space($dbID)}.price_list" id="price_list" />
<input type="hidden" value="{$conf_date}" name="Detail3.{normalize-space($dbID)}.conf_date" id="conf_date" />
<input type="hidden" value="{$exch_rate}" name="Detail3.{normalize-space($dbID)}.exch_rate" id="exch_rate" />
<input type="hidden" value="{$dept_code}" name="Detail3.{normalize-space($dbID)}.dept_code" id="dept_code" />
<input type="hidden" value="{$department_descr}" name="Detail3.{normalize-space($dbID)}.department_descr" id="department_descr" />
<input type="hidden" value="{$trans_mode}" name="Detail3.{normalize-space($dbID)}.trans_mode" id="trans_mode" />
<input type="hidden" value="{$dlv_date}" name="Detail3.{normalize-space($dbID)}.dlv_date" id="dlv_date" />
<input type="hidden" value="{$pord_type}" name="Detail3.{normalize-space($dbID)}.pord_type" id="pord_type" />
<input type="hidden" value="{$site_code__dlv}" name="Detail3.{normalize-space($dbID)}.site_code__dlv" id="site_code__dlv" />
<input type="hidden" value="{$site_code__ord}" name="Detail3.{normalize-space($dbID)}.site_code__ord" id="site_code__ord" />
<input type="hidden" value="{$site_descr}" name="Detail3.{normalize-space($dbID)}.site_descr" id="site_descr" />
<input type="hidden" value="{$site_add1}" name="Detail3.{normalize-space($dbID)}.site_add1" id="site_add1" />
<input type="hidden" value="{$curr_code}" name="Detail3.{normalize-space($dbID)}.curr_code" id="curr_code" />
<input type="hidden" value="{$task_desc}" name="Detail3.{normalize-space($dbID)}.task_desc" id="task_desc" />
<input type="hidden" value="{$term_table}" name="Detail3.{normalize-space($dbID)}.term_table" id="term_table" />
<input type="hidden" value="{$chg_user}" name="Detail3.{normalize-space($dbID)}.chg_user" id="chg_user" />
<input type="hidden" value="{$chg_term}" name="Detail3.{normalize-space($dbID)}.chg_term" id="chg_term" />
<input type="hidden" value="{$emp_code}" name="Detail3.{normalize-space($dbID)}.emp_code" id="emp_code" />
<input type="hidden" value="{$udf_str__2}" name="Detail3.{normalize-space($dbID)}.udf_str__2" id="udf_str__2" />
<input type="hidden" value="{$udf_str__1}" name="Detail3.{normalize-space($dbID)}.udf_str__1" id="udf_str__1" />
<input type="hidden" value="{$site_add1}" name="Detail3.{normalize-space($dbID)}.site_add1" id="site_add1" />
<input type="hidden" value="{$delivery_term_descr}" name="Detail3.{normalize-space($dbID)}.delivery_term_descr" id="delivery_term_descr" />
</xsl:if>
</xsl:for-each>
</div>
<!-- Changed by samadhan on 13/07/2015 for previous button working End -->
<table class="tableClass" id="Details" border="0" cellspacing="1" cellpadding="1">
<thead class="table-head" style="text-align:center;position:relative">
......@@ -44,34 +127,49 @@
<th class="thClass" nowrap="true" style="width:20px">
</th>
<th class="thClass" nowrap="true" valign="bottom" style="width:90px">
<th class="thClass" nowrap="true" valign="bottom" style="font-size:12px">
<strong>Item Parent</strong>
</th>
<th class="thClass" nowrap="true" valign="bottom" style="width:90px">
<th class="thClass" nowrap="true" valign="bottom" style="font-size:12px">
<strong>Item SKU Code</strong>
</th>
<th class="thClass" nowrap="true" valign="bottom" style="width:200px">
<th class="thClass" nowrap="true" valign="bottom" style="font-size:12px">
<strong>Description</strong>
</th>
<th class="thClass" nowrap="true" valign="bottom" style="width:75px">
<th class="thClass" nowrap="true" valign="bottom" style="font-size:12px">
<strong>Quantity</strong>
</th>
<th class="thClass" nowrap="true" valign="bottom" style="width:75px">
<th class="thClass" nowrap="true" valign="bottom" style="font-size:12px">
<strong>Unit Cost</strong>
</th>
<th class="thClass" nowrap="true" valign="bottom" style="width:75px">
<!--Changed by wasim on 07-07-2015 to add currency in form3 [START]-->
<th class="thClass" nowrap="true" valign="bottom" style="font-size:12px">
<strong>Currency</strong>
</th>
<!--Changed by wasim on 07-07-2015 to add currency in form3 [END]-->
<th class="thClass" nowrap="true" valign="bottom" style="font-size:12px">
<strong>Amount</strong>
</th>
<th class="thClass" nowrap="true" valign="bottom" style="width:75px">
<th class="thClass" nowrap="true" valign="bottom" style="font-size:12px">
<strong>Order Date</strong>
</th>
<th class="thClass" nowrap="true" valign="bottom" style="width:88px">
<th class="thClass" nowrap="true" valign="bottom" style="font-size:12px">
<strong>Delivery Date</strong>
</th>
<th class="thClass" nowrap="true" valign="bottom" style="width:94px">
<th class="thClass" nowrap="true" valign="bottom" style="font-size:12px">
<strong>Supplier Code</strong>
</th>
<th class="thClass" nowrap="true" valign="bottom" style="font-size:12px">
<strong>Tax Class</strong>
</th>
<th class="thClass" nowrap="true" valign="bottom" style="font-size:12px">
<strong>Tax Chap</strong>
</th>
<th class="thClass" nowrap="true" valign="bottom" style="font-size:12px">
<strong>Tax Env</strong>
</th>
</tr>
</thead>
......@@ -80,6 +178,7 @@
</tr>-->
<tbody class='table-body fadeInDown'>
<xsl:for-each select="//Detail3">
<xsl:sort select="item_parnt"/>
<xsl:variable name="dbID"><xsl:value-of select="@domID"/></xsl:variable>
<xsl:variable name="quantity"><xsl:value-of select="quantity"/></xsl:variable>
<xsl:variable name="item_code"><xsl:value-of select="item_code"/></xsl:variable>
......@@ -116,6 +215,16 @@
<xsl:variable name="tot_amt"><xsl:value-of select="tot_amt"/></xsl:variable>
<xsl:variable name="chkbox"><xsl:value-of select="@selected"/></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>
<!--Changed by wasim on 07-07-2015 to add currency in form3 [START]-->
<xsl:variable name="curr_code"><xsl:value-of select="curr_code"/></xsl:variable>
<!--Changed by wasim on 07-07-2015 to add currency in form3 [END]-->
<!-- Changed by samadhan on 13/07/2015 for previous button working -->
<xsl:if test="$dbID != '0'">
<tr style="text-align:center">
<!--<td style="width:20px">
<input type="checkbox" name="Detail3.{normalize-space($dbID)}.selectbox" id="Detail3.{normalize-space($dbID)}.selectbox" checked='true' value="true" onClick="setChecked(this)"/>
......@@ -143,13 +252,19 @@
</td>
<td style="width:75px">
<input type="text" class="editInputClass" value="{$quantity}" name="Detail3.{normalize-space($dbID)}.quantity"
onkeypress='return isNumberKey(event)' id="Detail3.{normalize-space($dbID)}.quantity" maxlength="4" style="text-align: right;width:70px;" onkeyup="changeAmount({$dbID})"/>
onkeypress='return isQuantity(event)' id="Detail3.{normalize-space($dbID)}.quantity" maxlength="4" style="text-align: right;width:33px;" onkeyup="changeAmount({$dbID})"/>
</td>
<td style="width:75px">
<!--<xsl:value-of select="rate"/>-->
<input type="text" class="editInputClass" value="{$rate}" name="Detail3.{normalize-space($dbID)}.rate"
onkeypress='return isNumberKey(event)' id="Detail3.{normalize-space($dbID)}.rate" maxlength="4" style="text-align: right;width:70px;" onkeyup="changeAmount({$dbID})"/>
onkeypress='return isNumberKey(event)' onkeyup='changeAmount({$dbID});Limit(this.id)'
onfocusout='changeAmount({$dbID});Round(this.id)' id="Detail3.{normalize-space($dbID)}.rate" style="text-align: right;width:44px;"/>
</td>
<!--Changed by wasim on 07-07-2015 to add currency in form3 [START]-->
<td style="width:75px">
<xsl:value-of select="curr_code"/>
</td>
<!--Changed by wasim on 07-07-2015 to add currency in form3 [END]-->
<td style="width:75px">
<!--<input type="text" class="editDisplayClass" ISCHANGED="false" readOnly = "1" value="{$tot_amt}"
id="Detail3.{normalize-space($dbID)}.tot_amt" style="text-align: right;width: 75px;" />-->
......@@ -173,6 +288,15 @@
<xsl:value-of select="supp_code"/>
</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>
<input type="hidden" class="editInputClass" value="{$item_code}" name="Detail3.{normalize-space($dbID)}.item_code"
id="Detail3.{normalize-space($dbID)}.item_code" maxlength="10"/>
......@@ -234,11 +358,17 @@
id="Detail3.{normalize-space($dbID)}.quantity__fc" maxlength="10"/>
</tr>
<!-- Changed by samadhan on 13/07/2015 for previous button working -->
</xsl:if>
</xsl:for-each>
</tbody>
</table>
<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>
<tr>
<td colspan="2">
......@@ -247,11 +377,19 @@
<input type="hidden" value="" name="action" id="action" />
<input type="hidden" value="2:MP" name="formType" id="formType" />
<!-- <textarea name="PRE_FORM_VAL" ID="PRE_FORM_VAL" style="display:none;"></textarea> -->
<input type="submit" style="cursor:hand" class="button" value="Previous" title='Previous'
onclick="javascript:setActionVal('previous');"/>
<input type="submit" style="cursor:hand" class="button" value="Finish" title='Finish'
onclick="javascript:setActionVal('finish');javascript:return checkRate()"/>
<!-- Changed by samadhan on 13/07/2015 for previous button working Start -->
<!-- <input type="submit" id="back" style="cursor:hand" class="button" value="Previous" title='Previous'
onclick="javascript:setActionVal('previous');form3Pre();"/>
-->
<input type="hidden" name="PRE_FORM_VAL" ID="PRE_FORM_VAL" />
<input type="hidden" name="PRE_FORM_VAL2" ID="PRE_FORM_VAL2" />
<input type="submit" id="back" style="cursor:hand" class="button" value="Previous" title='Previous' onclick="return form3Pre();"/>
<!-- Changed by samadhan on 13/07/2015 for previous button working End -->
<input type="submit" id="save" style="cursor:hand" class="button" value="Finish" title='Finish'
onclick="javascript:setActionVal('finish');return checkRate();"/>
</td>
</tr>
</table>
......
......@@ -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