Commit 44e694b4 authored by wansari's avatar wansari

W16FKAT002 updated XSL for Customer pop help check box issue. and saving...

W16FKAT002 updated XSL for Customer pop help check box issue. and saving item_ser in Sales order details


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@104844 ce508802-f39f-4f6c-b175-0d175dae99d5
parent c2913ab3
...@@ -75,19 +75,7 @@ ...@@ -75,19 +75,7 @@
<body> <body>
<form name="sorderWizFormIII" id="sorderWizFormIII" onkeypress="return event.keyCode != 13;" METHOD="post" ACTION="/ibase/ITMWizardHandlerServlet"> <form name="sorderWizFormIII" id="sorderWizFormIII" onkeypress="return event.keyCode != 13;" METHOD="post" ACTION="/ibase/ITMWizardHandlerServlet">
<!--<div class="pageContentWrapper" style="height:80%;overflow:auto;">-->
<!-- <TABLE border="0" width="99%" height="2%" class="header_td" cellpadding="0" cellspacing="0" style="background-color: #f7f8fa;border-bottom: #6cf 3px solid">
<TR>
<div class='contentHeaderLbl'><img src="/ibase/images/menuImages/web/Dailyactivityreport.png" onerror=" this.src= '/ibase/images/menuImages/errMenu.png' " style="position: absolute; margin-left: -20px;margin-top:9px; height: 20px; width: 20px;"/>
<TD class="header_main" nowrap="true" align="left" valign="middle" style="padding-left: 10px;font-size:16px;" width="2%" >
Summary
</TD>
</div>
</TR>
</TABLE> -->
<xsl:for-each select="//Detail3"> <xsl:for-each select="//Detail3">
<xsl:if test="position() = 1"> <xsl:if test="position() = 1">
<TABLE border="0" width="99%" height="2%" class="header_td" cellpadding="0" cellspacing="0" style="background-color: #f7f8fa;"> <TABLE border="0" width="99%" height="2%" class="header_td" cellpadding="0" cellspacing="0" style="background-color: #f7f8fa;">
...@@ -117,7 +105,7 @@ ...@@ -117,7 +105,7 @@
</xsl:for-each> </xsl:for-each>
<div id="innerDiv" style="overflow-y:hidden;overflow-x:auto;max-height:80%;"> <div id="innerDiv" style="overflow-y:hidden;overflow-x:auto;max-height:80%;">
<table id="errorActivityTable" width="100%" height="10%" class="tableClass" style="margin: 0px 0px 0px 0px;position: relative;width: calc(literal('100% - 15px'));width: -moz-calc(literal('100% - 15px'));padding-right:0px; padding-left:5xp; width: -webkit-calc(literal('100% - 15px'));box-shadow: 3px 3px 3px gray;-moz-box-shadow:3px 3px 3px gray;-webkit-box-shadow: 3px 3px 3px gray;-o-box-shadow: 3px 3px 3px gray;background: rgba(255, 204, 0, 0.66);min-height: 50px;bottom:10px" border="0" cellspacing="0" cellpadding="0"> <table id="errorActivityTable" width="100%" height="13%" class="tableClass" style="margin: 0px 0px 0px 0px;position: relative;width: calc(literal('100% - 15px'));width: -moz-calc(literal('100% - 15px'));padding-right:0px; padding-left:5xp; width: -webkit-calc(literal('100% - 15px'));box-shadow: 3px 3px 3px gray;-moz-box-shadow:3px 3px 3px gray;-webkit-box-shadow: 3px 3px 3px gray;-o-box-shadow: 3px 3px 3px gray;background: rgba(255, 204, 0, 0.66);min-height: 50px;bottom:10px" border="0" cellspacing="0" cellpadding="0">
<xsl:for-each select="//error"> <xsl:for-each select="//error">
<xsl:if test="position() = 1"> <xsl:if test="position() = 1">
<tr> <tr>
...@@ -147,6 +135,9 @@ ...@@ -147,6 +135,9 @@
<td class="tdss_leftAlign" style="background: rgba(255, 204, 0, 0.66);" nowrap="true"> <td class="tdss_leftAlign" style="background: rgba(255, 204, 0, 0.66);" nowrap="true">
</td> </td>
</tr> </tr>
<tr class="tdss_leftAlign" style="background: rgba(255, 204, 0, 0.66);">
<xsl:value-of select="trace"/>
</tr>
</xsl:for-each> </xsl:for-each>
<xsl:for-each select="//error"> <xsl:for-each select="//error">
<xsl:variable name="type"><xsl:value-of select="type"/></xsl:variable> <xsl:variable name="type"><xsl:value-of select="type"/></xsl:variable>
...@@ -343,6 +334,8 @@ ...@@ -343,6 +334,8 @@
<xsl:variable name="item_flg"><xsl:value-of select="item_flg"/></xsl:variable> <xsl:variable name="item_flg"><xsl:value-of select="item_flg"/></xsl:variable>
<xsl:variable name="line_no__contr"><xsl:value-of select="line_no__contr"/></xsl:variable> <xsl:variable name="line_no__contr"><xsl:value-of select="line_no__contr"/></xsl:variable>
<xsl:variable name="phy_attrib_4"><xsl:value-of select="phy_attrib_4"/></xsl:variable> <xsl:variable name="phy_attrib_4"><xsl:value-of select="phy_attrib_4"/></xsl:variable>
<xsl:variable name="item_ser"><xsl:value-of select="item_ser"/></xsl:variable>
<xsl:variable name="rate__clg"><xsl:value-of select="rate__clg"/></xsl:variable>
<xsl:variable name="dbIDs"><xsl:value-of select="@domID"/></xsl:variable> <xsl:variable name="dbIDs"><xsl:value-of select="@domID"/></xsl:variable>
<xsl:variable name="chkbox"><xsl:value-of select="@selected"/></xsl:variable> <xsl:variable name="chkbox"><xsl:value-of select="@selected"/></xsl:variable>
...@@ -386,7 +379,7 @@ ...@@ -386,7 +379,7 @@
<td class="td_rightAlign" style="width:75px;"> <td class="td_rightAlign" style="width:75px;">
<!-- <xsl:value-of select="quantity"/> --> <!-- <xsl:value-of select="quantity"/> -->
<input type="text" class="editInputClass" value="{$quantity}" name="Detail3.{normalize-space($dbIDs)}.quantity" id="Detail3.{normalize-space($dbIDs)}.quantity" <input type="text" class="editInputClass" value="{$quantity}" name="Detail3.{normalize-space($dbIDs)}.quantity" id="Detail3.{normalize-space($dbIDs)}.quantity"
style="text-align: right;width:60px;" maxlength="4" style="text-align: right;width:60px;" maxlength="10"
onkeyup='changeAmount({$dbIDs});' onkeypress='return isQuantity(event)' /> onkeyup='changeAmount({$dbIDs});' onkeypress='return isQuantity(event)' />
</td> </td>
...@@ -396,7 +389,7 @@ ...@@ -396,7 +389,7 @@
<td class="td_rightAlign" style="width:75px;"> <td class="td_rightAlign" style="width:75px;">
<!-- <xsl:value-of select="rate"/> --> <!-- <xsl:value-of select="rate"/> -->
<input type="text" class="editInputClass" value="{$rate}" name="Detail3.{normalize-space($dbIDs)}.rate" id="Detail3.{normalize-space($dbIDs)}.rate" <input type="text" class="editInputClass" value="{$rate}" name="Detail3.{normalize-space($dbIDs)}.rate" id="Detail3.{normalize-space($dbIDs)}.rate"
style="text-align: right;width:60px;" maxlength="4" style="text-align: right;width:60px;" maxlength="10"
onkeyup='changeAmount({$dbIDs});' onkeypress='return isNumeric(event)' /> onkeyup='changeAmount({$dbIDs});' onkeypress='return isNumeric(event)' />
</td> </td>
<!-- Added by Sneha 20-01-2017, to add discount field [End] --> <!-- Added by Sneha 20-01-2017, to add discount field [End] -->
...@@ -463,7 +456,9 @@ ...@@ -463,7 +456,9 @@
<input type="hidden" value="{$tax_env}" name="Detail3.{normalize-space($dbIDs)}.tax_env" id="Detail3.{normalize-space($dbIDs)}.tax_env" /> <input type="hidden" value="{$tax_env}" name="Detail3.{normalize-space($dbIDs)}.tax_env" id="Detail3.{normalize-space($dbIDs)}.tax_env" />
<input type="hidden" value="{$unit__rate}" name="Detail3.{normalize-space($dbIDs)}.unit__rate" id="Detail3.{normalize-space($dbIDs)}.unit__rate" /> <input type="hidden" value="{$unit__rate}" name="Detail3.{normalize-space($dbIDs)}.unit__rate" id="Detail3.{normalize-space($dbIDs)}.unit__rate" />
<input type="hidden" value="{$item_flg}" name="Detail3.{normalize-space($dbIDs)}.item_flg" id="Detail3.{normalize-space($dbIDs)}.item_flg" /> <input type="hidden" value="{$item_flg}" name="Detail3.{normalize-space($dbIDs)}.item_flg" id="Detail3.{normalize-space($dbIDs)}.item_flg" />
<input type="hidden" value="{$line_no__contr}" name="Detail3.{normalize-space($dbIDs)}.line_no__contr" id="Detail3.{normalize-space($dbIDs)}.line_no__contr" /> <input type="hidden" value="{$line_no__contr}" name="Detail3.{normalize-space($dbIDs)}.line_no__contr" id="Detail3.{normalize-space($dbIDs)}.line_no__contr" />
<input type="hidden" value="{$item_ser}" name="Detail3.{normalize-space($dbIDs)}.item_ser" id="Detail3.{normalize-space($dbIDs)}.item_ser" />
<input type="hidden" value="{$rate__clg}" name="Detail3.{normalize-space($dbIDs)}.rate__clg" id="Detail3.{normalize-space($dbIDs)}.rate__clg" />
</tr> </tr>
</xsl:if> </xsl:if>
...@@ -471,62 +466,7 @@ ...@@ -471,62 +466,7 @@
</tbody> </tbody>
</table> </table>
</div> </div>
<!-- <table>
<tr>
<td colspan="2">
<input type="hidden" value="3" name="FORM_NO" ID="FORM_NO" />
<input type="hidden" value="sorderWiz" name="OBJ_NAME" />
<input type="hidden" value="" name="action" id="action" />
<input type="hidden" value="2:MP" name="formType" id="formType" />
<input type="hidden" name="PRE_FORM_VAL" ID="PRE_FORM_VAL" />
<input type="hidden" name="PRE_FORM_VAL2" ID="PRE_FORM_VAL2" />
</td>
</tr>
</table> -->
<!-- <table id="errorActivityTable" class="tableClass" border="0" cellSpacing="2" cellPadding="1" width="98%">
<xsl:for-each select="//error">
<xsl:variable name="message"><xsl:value-of select="message"/></xsl:variable>
<xsl:variable name="description"><xsl:value-of select="description"/></xsl:variable>
<xsl:variable name="type"><xsl:value-of select="type"/></xsl:variable>
<xsl:variable name="dbID"><xsl:value-of select="@domId"/></xsl:variable>
<xsl:variable name="column_name"><xsl:value-of select="@column_name"/></xsl:variable>
<xsl:variable name="trace"><xsl:value-of select="trace"/></xsl:variable>
<tr>
<xsl:if test="position() = 1">
<td class="td_leftAlign" nowrap="true" valign="bottom" width="20%">
Message : <xsl:value-of select="message"/>
</td>
<td class="td_leftAlign" nowrap="true" valign="bottom" width="40%">
Description : <xsl:value-of select="description"/>
</td>
<td class="td_leftAlign" nowrap="true" valign="bottom" width="40%">
Trace : <xsl:value-of select="trace"/>
</td>
</xsl:if>
<xsl:if test="$type = 'W'">
<td class="td_leftAlign" nowrap="true" valign="bottom" width="20%">
Override Warnings :
<input type="checkbox" name="forceSave" value="false" onClick="setChecked(this)"/>
</td>
</xsl:if>
</tr>
<tr>
</tr>
</xsl:for-each>
</table> -->
<!-- </div> -->
<!-- <input type="submit" id="previous" style="cursor:hand" class="button" value="Previous" title='Previous' onclick="return form3Pre();"/>
<input type="submit" id="finish" style="cursor:hand" class="button" value="Finish" title='Finish' onclick="return checkRate();"/>
<div id="buttonreplacement" align="center" style="display:none;">
<img src="/ibase/images/preload.gif" alt="Please wait work in progress" >
Please wait......
</img>
</div> -->
<div style="width=20%;height:6px;margin-left=-12px;margin-top:1px;margin-bottom:0px;"> <div style="width=20%;height:6px;margin-left=-12px;margin-top:1px;margin-bottom:0px;">
<table cellSpacing="1" cellPadding="1" width="50%" border="0"> <table cellSpacing="1" cellPadding="1" width="50%" border="0">
<input type="hidden" value="3" name="FORM_NO" ID="FORM_NO" /> <input type="hidden" value="3" name="FORM_NO" ID="FORM_NO" />
......
...@@ -20,6 +20,8 @@ ...@@ -20,6 +20,8 @@
for( dbID = 1; dbID <= maxId; dbID++) for( dbID = 1; dbID <= maxId; dbID++)
{ {
document.getElementById("DetailITCode."+ dbID +".selectbox").disabled = false;
objCurr = document.getElementById("DetailITCode."+ dbID +".selectbox"); objCurr = document.getElementById("DetailITCode."+ dbID +".selectbox");
if( objCurr.value == 'true' ) if( objCurr.value == 'true' )
...@@ -31,7 +33,6 @@ ...@@ -31,7 +33,6 @@
} }
} }
}); });
]]> ]]>
</script> </script>
...@@ -43,7 +44,7 @@ ...@@ -43,7 +44,7 @@
<tr> <tr>
<th class="tHeader" nowrap="true" width="5%"> <th class="tHeader" nowrap="true" width="5%">
<input type="checkbox" id="chkAll" onclick="return checkAllPopup(this)"/> <!-- <input type="checkbox" id="chkAll" onclick="return checkAllPopup(this)"/> -->
</th> </th>
<th class="tHeader" nowrap="true" valign="bottom" width="20%"> <th class="tHeader" nowrap="true" valign="bottom" width="20%">
<strong>Customer Code</strong> <strong>Customer Code</strong>
...@@ -72,10 +73,10 @@ ...@@ -72,10 +73,10 @@
<td> <td>
<xsl:choose> <xsl:choose>
<xsl:when test="$chkbox ='Y'"> <xsl:when test="$chkbox ='Y'">
<input type="checkbox" name="selectbox" id="DetailITCode.{normalize-space($dbID)}.selectbox" checked='true' value="true" onClick="setCheckedPopup(this)"/> <input type="checkbox" name="selectbox" id="DetailITCode.{normalize-space($dbID)}.selectbox" checked='true' value="true" disabled = "true" onClick="setCheckedPopup(this)"/>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<input type="checkbox" name="selectbox" id="DetailITCode.{normalize-space($dbID)}.selectbox" value="false" onClick="setCheckedPopup(this)"/> <input type="checkbox" name="selectbox" id="DetailITCode.{normalize-space($dbID)}.selectbox" value="false" disabled = "true" onClick="setCheckedPopup(this)"/>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</td> </td>
......
...@@ -19,6 +19,8 @@ $(function() { ...@@ -19,6 +19,8 @@ $(function() {
for( dbID = 1; dbID <= maxId; dbID++) for( dbID = 1; dbID <= maxId; dbID++)
{ {
document.getElementById("DetailITCode."+ dbID +".selectbox").disabled = false;
objCurr = document.getElementById("DetailITCode."+ dbID +".selectbox"); objCurr = document.getElementById("DetailITCode."+ dbID +".selectbox");
if( objCurr.value == 'true' ) if( objCurr.value == 'true' )
...@@ -40,7 +42,7 @@ $(function() { ...@@ -40,7 +42,7 @@ $(function() {
<tr> <tr>
<th class="tHeader" nowrap="true" width="5%"> <th class="tHeader" nowrap="true" width="5%">
<input type="checkbox" id="chkAll" onclick="return checkAllPopup(this)"/> <!-- <input type="checkbox" id="chkAll" onclick="return checkAllPopup(this)"/> -->
</th> </th>
<xsl:for-each select="//Headers"> <xsl:for-each select="//Headers">
<xsl:variable name="headName"><xsl:value-of select="headName"/></xsl:variable> <xsl:variable name="headName"><xsl:value-of select="headName"/></xsl:variable>
...@@ -66,10 +68,10 @@ $(function() { ...@@ -66,10 +68,10 @@ $(function() {
<td> <td>
<xsl:choose> <xsl:choose>
<xsl:when test="$chkbox ='Y'"> <xsl:when test="$chkbox ='Y'">
<input type="checkbox" name="selectbox" id="DetailITCode.{normalize-space($dbID)}.selectbox" checked='true' value="true" onClick="setCheckedPopup(this)"/> <input type="checkbox" name="selectbox" id="DetailITCode.{normalize-space($dbID)}.selectbox" checked='true' disabled = "true" value="true" onClick="setCheckedPopup(this)"/>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<input type="checkbox" name="selectbox" id="DetailITCode.{normalize-space($dbID)}.selectbox" value="false" onClick="setCheckedPopup(this)"/> <input type="checkbox" name="selectbox" id="DetailITCode.{normalize-space($dbID)}.selectbox" value="false" disabled = "true" onClick="setCheckedPopup(this)"/>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</td> </td>
......
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