Commit ea152bb3 authored by kshinde's avatar kshinde

updated js and xsl for pricelist wizard


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@179303 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 1c442cb0
......@@ -26,13 +26,23 @@ else if (window.XMLHttpRequest) /*code for IE7+, Firefox, Chrome, Opera, Safari*
function getListOfValues(fieldName,fieldId,siteCode,popUpParam)
{
var url = "", keyStringVal = "NULL", urlParamString = "";
var url = "", keyStringVal = "NULL", urlParamString = "",chkgrp="";
popHelpId = fieldId;
if(document.getElementById(popHelpId).value.trim() != "" || document.getElementById(popHelpId).value != null)
{
curFieldVal = document.getElementById(popHelpId).value;
}
if(fieldId.trim()=="Detail1.1.grp_code")
{
chkgrp=document.getElementById("Detail1.1.product_code").value;
if(chkgrp==null || chkgrp.trim().length<=0 )
{
alert("Please enter product code");
}
}
if(popUpParam != undefined && popUpParam.trim().length>0 )
{
......@@ -41,10 +51,10 @@ function getListOfValues(fieldName,fieldId,siteCode,popUpParam)
}
var addObjName = "&OBJ_NAME=plistgen_wiz";
var addObjName = "plistgen_wiz";
url = "/ibase/webitm/jsp/PopUp.jsp?FIELDNAME="+escape(fieldName)+"&KEYSTRING="+keyStringVal+"&OBJ_NAME="+addObjName+urlParamString;
alert(fieldId);
var fullwidth = eval(screen.width)/2-130;
var iFrame = '<iframe id="popHelpIframe" name ="popHelpIframe" src="'+url+'" style = "width:'+fullwidth+'; height: 100%; border: 0px; bottom:0%;"></iframe>';
......
......@@ -112,6 +112,7 @@
<xsl:variable name="offer_free_qty"><xsl:value-of select="offer_free_qty"/></xsl:variable>
<xsl:variable name="offer_free_on"><xsl:value-of select="offer_free_on"/></xsl:variable>
<xsl:variable name="disc_perc"><xsl:value-of select="disc_perc"/></xsl:variable>
<xsl:variable name="grp_code"><xsl:value-of select="grp_code"/></xsl:variable>
<table id="activityTable" border="0" cellSpacing="1" cellPadding="0" style="margin-bottom:25px;">
<tr style="display:none;">
......@@ -134,24 +135,33 @@
<td class="td_leftAlign" colspan="3">
<div id="inputDiv">
<input type="text" class="input_editable" popupFldName="PRODUCT_CODE" value="{$product_code}" name="Detail1.{normalize-space($dbID)}.product_code" id="Detail1.{normalize-space($dbID)}.product_code" onBlur="callItemChange('product_code', this);" tabIndex="30" style="width:21%;" onfocus="displayPopUpIcon('popUpIcon1');" onkeyup="getAutoPopupData(this);" />
<a href="javascript:getListOfValues('PRODUCT_CODE','Detail1.{normalize-space($dbID)}.product_code','');" id="popUpIcon1" tabIndex="-1" style="float:left;"><img src="/ibase/webitm/images/pophelp.png"/></a>
<a href="javascript:getListOfValues('PRODUCT_CODE','Detail1.{normalize-space($dbID)}.product_code','','');" id="popUpIcon1" tabIndex="-1" style="float:left;"><img src="/ibase/webitm/images/pophelp.png"/></a>
<input type="text" class="editDisplayClass" name="Detail1.{normalize-space($dbID)}.descr" id="Detail1.{normalize-space($dbID)}.descr" tabIndex="-1" style="width:60%;" readOnly="true" value="{$descr}"/>
</div>
</td>
</tr>
<tr>
<td class="td_rightAlign" nowrap="true" valign="left" >
Item Group :
</td>
<td class="td_leftAlign" >
<input type="text" class="input_editable" value="{$grp_code}" popupFldName="GRP_CODE" name="Detail1.{normalize-space($dbID)}.grp_code" id="Detail1.{normalize-space($dbID)}.grp_code" onfocus="displayPopUpIcon('popUpIcon3');" onkeyup="getAutoPopupData(this);" style="width:51%;" tabIndex="40"/>
<a href="javascript:getListOfValues('GRP_CODE','Detail1.{normalize-space($dbID)}.grp_code','','product_code');" id="popUpIcon3" tabIndex="-1" ><img src="/ibase/webitm/images/pophelp.png"/></a>
</td>
</tr>
<tr>
<td class="td_rightAlign" nowrap="true" valign="middle" >
Effective From <span class="req">*</span>:
</td>
<td class="td_leftAlign" >
<input type="text" style="width:51.5%" class="input_editable" value="{$eff_from}" name="Detail1.{normalize-space($dbID)}.eff_from" id="eff_from" tabIndex="40" onfocus="displayPopUpIcon('popUpIcon12');" />
<input type="text" style="width:51.5%" class="input_editable" value="{$eff_from}" name="Detail1.{normalize-space($dbID)}.eff_from" id="eff_from" tabIndex="50" onfocus="displayPopUpIcon('popUpIcon12');" />
<a href="javascript:setDate('eff_from');" id="popUpIcon12" tabIndex="-1"><img src="/ibase/webitm/images/calender.png" /></a>
</td>
<td class="td_rightAlign" nowrap="true" valign="middle" >
Valid Upto<span class="req">*</span>:
</td>
<td class="td_leftAlign" >
<input type="text" style="width:63.5%" class="input_editable" value="{$valid_upto}" name="Detail1.{normalize-space($dbID)}.valid_upto" id="valid_upto" tabIndex="50" onfocus="displayPopUpIcon('popUpIcon13');" />
<input type="text" style="width:63.5%" class="input_editable" value="{$valid_upto}" name="Detail1.{normalize-space($dbID)}.valid_upto" id="valid_upto" tabIndex="60" onfocus="displayPopUpIcon('popUpIcon13');" />
<a href="javascript:setDate('valid_upto');" id="popUpIcon13" tabIndex="-1"><img src="/ibase/webitm/images/calender.png" /></a>
</td>
</tr>
......@@ -160,7 +170,7 @@
Remarks:
</td>
<td class="td_leftAlign" colspan="3">
<input type="text" class="input_editable" value="{$remarks}" name="Detail1.{normalize-space($dbID)}.remarks" id="Detail1.{normalize-space($dbID)}.remarks" tabIndex="60" style="width:85%;" />
<input type="text" class="input_editable" value="{$remarks}" name="Detail1.{normalize-space($dbID)}.remarks" id="Detail1.{normalize-space($dbID)}.remarks" tabIndex="70" style="width:85%;" />
</td>
</tr>
<tr>
......@@ -168,7 +178,7 @@
Charge Type :
</td>
<td class="td_leftAlign" >
<SELECT id='Detail1.{normalize-space($dbID)}.tran_type' NAME="Detail1.{normalize-space($dbID)}.tran_type" align="LEFT" TABINDEX="70" class="input_editable">
<SELECT id='Detail1.{normalize-space($dbID)}.tran_type' NAME="Detail1.{normalize-space($dbID)}.tran_type" align="LEFT" TABINDEX="80" class="input_editable">
<OPTION value="A"><xsl:choose><xsl:when test="$tran_type='A'"><xsl:attribute name="selected"/></xsl:when></xsl:choose><![CDATA[Apply Discount]]></OPTION>
</SELECT>
</td>
......@@ -180,13 +190,13 @@
</tr>
<tr>
<td class="td_rightAlign" nowrap="true" valign="middle" >
<input type="radio" name="offer" value="true" onClick="enableTextBox('offer');" id="Detail1.{normalize-space($dbID)}.offer" TABINDEX="80"/>
<input type="radio" name="offer" value="true" onClick="enableTextBox('offer');" id="Detail1.{normalize-space($dbID)}.offer" TABINDEX="90"/>
</td>
<td class="td_leftAlign" colspan="3">
Quantity :
<input type="text" class="editDisplayClass qtyTextBox" onload="checkType();" value="{$offer_free_qty}" name="Detail1.{normalize-space($dbID)}.offer_free_qty" id="Detail1.{normalize-space($dbID)}.offer_free_qty" onkeypress="return isNumberKey(event);" readonly="true" tabIndex="90" />
<input type="text" class="editDisplayClass qtyTextBox" onload="checkType();" value="{$offer_free_qty}" name="Detail1.{normalize-space($dbID)}.offer_free_qty" id="Detail1.{normalize-space($dbID)}.offer_free_qty" onkeypress="return isNumberKey(event);" readonly="true" tabIndex="100" />
Free On :
<input type="text" class="editDisplayClass qtyTextBox" value="{$offer_free_on}" name="Detail1.{normalize-space($dbID)}.offer_free_on" id="Detail1.{normalize-space($dbID)}.offer_free_on" onkeypress="return isNumberKey(event);" readonly="true" tabIndex="100" />
<input type="text" class="editDisplayClass qtyTextBox" value="{$offer_free_on}" name="Detail1.{normalize-space($dbID)}.offer_free_on" id="Detail1.{normalize-space($dbID)}.offer_free_on" onkeypress="return isNumberKey(event);" readonly="true" tabIndex="110" />
</td>
</tr>
......@@ -196,7 +206,7 @@
</td>
<td class="td_leftAlign" >
Discount :
<input type="text" class="editDisplayClass qtyTextBox" value="{$disc_perc}" name="Detail1.{normalize-space($dbID)}.disc_perc" id="Detail1.{normalize-space($dbID)}.disc_perc" onkeypress="return isNumberKey(event);" readonly="true" tabIndex="110" /> %
<input type="text" class="editDisplayClass qtyTextBox" value="{$disc_perc}" name="Detail1.{normalize-space($dbID)}.disc_perc" id="Detail1.{normalize-space($dbID)}.disc_perc" onkeypress="return isNumberKey(event);" readonly="true" tabIndex="120" /> %
</td>
</tr>
</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