Commit 0fc50f71 authored by msingh's avatar msingh

Change by Manish on 30/11/16 for Attribute Details Wizard.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@104093 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 1f00f132
......@@ -111,25 +111,6 @@ function setColumnValues( retVal, actionField )
}
}
}
/*function getGroupList(field)
{
if(field == 'groupType')
{
action = "get_list";
fieldAction = field;
}
if (window.XMLHttpRequest)
{
httpRequestNew=new XMLHttpRequest();
}
else
{
httpRequestNew=new ActiveXObject("Microsoft.XMLHTTP");
}
isServerBusy = false;
var url = "/ibase/ItemAttribWizServlet?FIELD="+field+"&ACTION="+action;
makeRequestNew( url, "GET_LIST");
}*/
function validation(actionValue)
{
var attributeID = document.getElementById("attrib_id").value;
......@@ -184,12 +165,16 @@ function callListJSP( dbID, loginId, field, fieldName, idNum )
{
fieldValue = document.getElementById("Detail1.1.site_code").value;
}
else if ( field == "COLOR" || field == "SIZE" || field == "DIMENSION")
{
fieldValue = document.getElementById("p_group_type").value;
}
var url = "/ibase/webitm/jsp/ItemTypewizList.jsp?LOGIN_ID="+loginId
+"&FIELDS="+field+"&DBID="+dbID+"&FIELDNAME="+fieldName+"&IDNUM="+idNum+"&FIELDVALUE="+fieldValue+",";
var win = window.open( url, 'Item Type Details', 'toolbar=no,status=yes,resizable=no,scrollbars=yes,left=100,top=50,width=500,height=550' );
}
function selectValue()
{
var fieldId = "";
......@@ -205,9 +190,12 @@ function selectValue()
if ( field == "item_type")
{
fieldId = fieldId + (document.getElementById("DetailITCode."+ selectedCode[i] +".fieldId").value).trim() ;
//itemChange();
itemChange(document.getElementById("DetailITCode."+ selectedCode[i] +".fieldId").value);
}
if ( field == "COLOR" || field == "SIZE" || field == "DIMENSION")
{
fieldId = fieldId + (document.getElementById("DetailITCode."+ selectedCode[i] +".fieldId").value).trim() + ", ";
}
}
var check = 0;
......@@ -233,6 +221,10 @@ function displayValue( fieldId, fieldValue, seldbID, field, idNum )
{
document.getElementById("Detail1.1.item_type").value = fieldId;
}
else if (field == "COLOR" || field == "SIZE" || field == "DIMENSION")
{
document.getElementById("p_group_type").value = fieldId;
}
}
function checkNullvalidation()
{
......@@ -250,7 +242,7 @@ function setCheckedPopup( obj )
var chkCnt = 0;
var flag = document.getElementById("flag").value;
if(field == "abc")
if(field == "COLOR" || field == "SIZE" || field == "DIMENSION")
{
for( dbID = 1; dbID <= maxId; dbID++)
{
......@@ -512,9 +504,10 @@ function insertItemAtt(attcode,tableID,idnum)
var active = document.getElementById("p_active_yn").value;
var sortOrder = document.getElementById("p_sort_order").value;
var editflag = document.getElementById("editflag").value;
var group = document.getElementById("p_group_type").value;
if(attId != "")
{
var url = "/ibase/ItemTypeWizServlet?&attrib_code="+attcode+"&attrib_id="+attId+"&descr="+desc+"&sh_descr="+shDesc+"&active_yn="+active+"&sort_order="+sortOrder+"&editflag="+editflag+"&ACTION=SAVE";
var url = "/ibase/ItemTypeWizServlet?&attrib_code="+attcode+"&group_type="+group+"&attrib_id="+attId+"&descr="+desc+"&sh_descr="+shDesc+"&active_yn="+active+"&sort_order="+sortOrder+"&editflag="+editflag+"&ACTION=SAVE";
makeRequest( url,"SAVE");
/*if(editflag == 'A')
{
......@@ -711,7 +704,6 @@ function callForm1(objName)
function disableBack()
{
alert("Ram");
if(window.event.keyCode == 8)
{
return false;
......@@ -741,10 +733,10 @@ function addRow(tableID,attId,desc,shDesc,active,sortOrder)
cell3.innerHTML = shDesc;
cell4.innerHTML = active;
cell5.innerHTML = sortOrder;
// cell6.innerHTML = '<a href="#" onclick="openRowData('+attId+','+desc+','+shDesc+','+active+','+sortOrder+','+intResults+');" style="color:blue">Edit Row</a>';
// cell6.innerHTML = '<a href="#" onclick="openRowData('"+attId+"','"+desc+"','"+shDesc+"','"+active+"','"+sortOrder+"','"+intResults+"');" style="color:blue">Edit Row</a>';
//row.setondblclick="openRowData(attId,desc,shDesc,active,sortOrder,idnum)"
row.setAttribute('ondblclick', "return openRowData(this.attId,this.desc,this.shDesc,this.active,this.sortOrder,this.intResults);");
row.setAttribute('ondblclick', "return openRowData('"+attId+"','"+desc+"','"+shDesc+"','"+active+"','"+sortOrder+"','"+intResults+"');");
}
function editRow(tableID,attId,desc,shDesc,active,sortOrder)
{
......@@ -784,7 +776,6 @@ function pageLoadHeader()
}
document.getElementById("Detail1.1.item_type").value = orderValue;
//itemChange(orderValue);
var url = "/ibase/ItemTypeWizServlet?&ITEM_TYPE="+orderValue+"&ACTION=ITEMCHANGE";
makeRequest( url,setValues);
}
......@@ -796,7 +787,6 @@ function setValues(retVal)
var att3 = values[2];
var att4 = values[3];
var att5 = values[4];
alert("att1"+att1);
document.getElementById("Detail1.1.phy_attrib_2").value = att1;
document.getElementById("Detail1.1.phy_attrib_1").value = att2;
document.getElementById("Detail1.1.phy_attrib_3").value = att3;
......
......@@ -78,7 +78,7 @@
<input type="hidden" class="input_editable" value="{$phy_attrib_8}" name="Detail2.{normalize-space($dbID)}.phy_attrib_8" id="phy_attrib_8" maxlength="10" />
<input type="hidden" class="input_editable" value="{$phy_attrib_9}" name="Detail2.{normalize-space($dbID)}.phy_attrib_9" id="phy_attrib_9" maxlength="10" />
<input type="hidden" class="input_editable" value="{$attrib_code}" name="Detail2.{normalize-space($dbID)}.attrib_code" id="attrib_code" maxlength="10" />
<input type="hidden" class="input_editable" value="{attrib_code}" name="Detail2.{normalize-space($dbID)}.attrib_code" id="attrib_code" maxlength="10" />
<input type="hidden" class="input_editable" value="{$attrib_id}" name="Detail2.{normalize-space($dbID)}.attrib_id" id="attrib_id" maxlength="10" />
<input type="hidden" class="input_editable" value="{$descr}" name="Detail2.{normalize-space($dbID)}.descr" id="descr" maxlength="10" />
<input type="hidden" class="input_editable" value="{$sh_descr}" name="Detail2.{normalize-space($dbID)}.sh_descr" id="sh_descr" maxlength="10" />
......@@ -86,6 +86,7 @@
<input type="hidden" class="input_editable" value="{$sort_order}" name="Detail2.{normalize-space($dbID)}.sort_order" id="sort_order" maxlength="10" />
<input type="hidden" class="input_editable" value="{$group_type}" name="Detail2.{normalize-space($dbID)}.group_type" id="group_type" maxlength="10" />
<input type="hidden" class="input_editable" value="{editflag}" name="Detail2.{normalize-space($dbID)}.editflag" id="editflag" maxlength="10" />
<input type="hidden" class="input_editable" value="{p_active_yn}" name="p_active_yn" id="p_active_yn" maxlength="10" />
</xsl:if>
<xsl:if test="$dbID > 0">
<SCRIPT>
......@@ -218,7 +219,7 @@
<div id="overlay"></div>
<div id="itemAttDiv" style="display:none;">
<div style="overflow:hidden; height: 300px;">
<div style="overflow:hidden; height: 350px;">
<table class='tableClass' id="SKUitemAttId"
style="text-align: center; width: 350px; margin: 0 auto;">
<TR>
......@@ -275,7 +276,7 @@
</xsl:otherwise>
</xsl:choose>
</select>
</td>
</td>
<td class="td_leftAlign" nowrap="true" ><strong >Sort Order :</strong>
<input type="text"
......@@ -283,21 +284,25 @@
value="" maxlength="3" onkeypress='return isNumeric(event)'/>
</td>
</tr>
<tr>
<td class="td_rightAlign" nowrap="true">Color Group :</td>
<td class="td_leftAlign" style="width:10%;">
<textarea rows="2"
class="input_editable" style="text-align: left; width: 91%;" id="p_group_type" value="{p_group_type}"
maxlength="60" />
<a href="javascript:callListJSP(1,'','COLOR', 'Codes', 0);"
style="float: right;text-decoration: none;">
<img src="/ibase/webitm/images/pophelp.png" style="margin-left: -18px;" title="Select Codes" />
</a>
</td>
</tr>
<!--<tr>
<td class="td_leftAlign">Sort Order :</td>
<td class="td_leftAlign" style="width:20%;">
<input type="text"
class="input_editable" style="text-align:right;" id="p_sort_order"
value="" maxlength="3" onkeypress='return isNumeric(event)'/>
</td>
</tr>
--></tbody>
</table>
</tbody>
</table>
<input type="hidden" id="idNumPack" />
<div class="popDiv" style="margin-top: 45px; height:6px; margin-left: 16px;">
<div class="popDiv" style="margin-top: 20px; height:6px; margin-left: 16px;">
<input type="submit" style="margin-top:inherit;"
class="button red-Btn pophelp-okcancel" value="Cancel" title='Cancel'
onclick="javascript:closePopup()" />
......@@ -307,7 +312,7 @@
onclick="javascript:insertItemAtt('COLOR','ItemTypeDetail',idNumPack)" />
</div>
</div>
</div>
</div>
</form>
</body>
......
......@@ -86,6 +86,8 @@
<input type="hidden" class="input_editable" value="{$sort_order}" name="Detail3.{normalize-space($dbID)}.sort_order" id="sort_order" maxlength="10" />
<input type="hidden" class="input_editable" value="{$group_type}" name="Detail3.{normalize-space($dbID)}.group_type" id="group_type" maxlength="10" />
<input type="hidden" class="input_editable" value="{editflag}" name="Detail3.{normalize-space($dbID)}.editflag" id="editflag" maxlength="10" />
<input type="hidden" class="input_editable" value="{p_active_yn}" name="p_active_yn" id="p_active_yn" maxlength="10" />
</xsl:if>
<xsl:if test="$dbID > 0">
<SCRIPT>
......@@ -205,7 +207,7 @@
<div id="overlay"></div>
<div id="itemAttDiv" style="display:none;">
<div style="overflow:hidden; height: 300px;">
<div style="overflow:hidden; height: 350px;">
<table class='tableClass' id="SKUitemAttId"
style="text-align: center; width: 350px; margin: 0 auto;">
<TR>
......@@ -244,7 +246,7 @@
<tr>
<td class="td_rightAlign" nowrap="true">Active :
<select class="input_editable" id = "p_active_yn" style="width: 35%">
<select class="input_editable" id = "p_active_yn" style="width: 35%">
<xsl:choose>
<xsl:when test="p_active_yn ='Y'">
<option value="Y" selected="selected" >Yes </option>
......@@ -270,21 +272,23 @@
value="" maxlength="3" onkeypress='return isNumeric(event)'/>
</td>
</tr>
<!--<tr>
<td class="td_leftAlign">Sort Order :</td>
<td class="td_leftAlign" style="width:20%;">
<input type="text"
class="input_editable" style="text-align:right;" id="p_sort_order"
value="" maxlength="3" onkeypress='return isNumeric(event)'/>
</td>
</tr>
--></tbody>
<tr>
<td class="td_rightAlign" nowrap="true">Size Group :</td>
<td class="td_leftAlign" style="width:10%;">
<textarea rows="2"
class="input_editable" style="text-align: left; width: 91%;" id="p_group_type" value="{p_group_type}"
maxlength="60" />
<a href="javascript:callListJSP(1,'','SIZE', 'Codes', 0);"
style="float: right;text-decoration: none;">
<img src="/ibase/webitm/images/pophelp.png" style="margin-left: -18px;" title="Select Codes" />
</a>
</td>
</tr>
</tbody>
</table>
<input type="hidden" id="idNumPack" />
<div class="popDiv" style="margin-top: 45px; height:6px; margin-left: 16px;">
<div class="popDiv" style="margin-top: 20px; height:6px; margin-left: 16px;">
<input type="submit" style="margin-top:inherit;"
class="button red-Btn pophelp-okcancel" value="Cancel" title='Cancel'
onclick="javascript:closePopup()" />
......
......@@ -86,6 +86,7 @@
<input type="hidden" class="input_editable" value="{$sort_order}" name="Detail4.{normalize-space($dbID)}.sort_order" id="sort_order" maxlength="10" />
<input type="hidden" class="input_editable" value="{$group_type}" name="Detail4.{normalize-space($dbID)}.group_type" id="group_type" maxlength="10" />
<input type="hidden" class="input_editable" value="{editflag}" name="Detail4.{normalize-space($dbID)}.editflag" id="editflag" maxlength="10" />
<input type="hidden" class="input_editable" value="{p_active_yn}" name="p_active_yn" id="p_active_yn" maxlength="10" />
</xsl:if>
<xsl:if test="$dbID > 0">
<SCRIPT>
......@@ -205,7 +206,7 @@
<div id="overlay"></div>
<div id="itemAttDiv" style="display:none;" >
<div style="overflow:hidden; height: 300px;">
<div style="overflow:hidden; height: 350px;">
<table class='tableClass' id="SKUitemAttId"
style="text-align: center; width: 350px; margin: 0 auto;">
<TR>
......@@ -270,21 +271,23 @@
value="" maxlength="3" onkeypress='return isNumeric(event)'/>
</td>
</tr>
<!--<tr>
<td class="td_leftAlign">Sort Order :</td>
<td class="td_leftAlign" style="width:20%;">
<input type="text"
class="input_editable" style="text-align:right;" id="p_sort_order"
value="" maxlength="3" onkeypress='return isNumeric(event)'/>
</td>
</tr>
--></tbody>
<tr>
<td class="td_rightAlign" nowrap="true">Dimension Group :</td>
<td class="td_leftAlign" style="width:10%;">
<textarea rows="2"
class="input_editable" style="text-align: left; width: 91%;" id="p_group_type" value="{p_group_type}"
maxlength="60" />
<a href="javascript:callListJSP(1,'','DIMENSION', 'Codes', 0);"
style="float: right;text-decoration: none;">
<img src="/ibase/webitm/images/pophelp.png" style="margin-left: -18px;" title="Select Codes" />
</a>
</td>
</tr>
</tbody>
</table>
<input type="hidden" id="idNumPack" />
<div class="popDiv" style="margin-top: 45px; height:6px; margin-left: 16px;">
<div class="popDiv" style="margin-top: 20px; height:6px; margin-left: 16px;">
<input type="submit" style="margin-top:inherit;"
class="button red-Btn pophelp-okcancel" value="Cancel" title='Cancel'
onclick="javascript:closePopup()" />
......
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