Commit 731d0fb3 authored by smestry's avatar smestry

Updated js for Product wizard new look and feel. Added new field customer item...

Updated js for Product wizard new look and feel. Added new field customer item reference, active, product wizard edit according to size and color selection, functionality to attach images for item.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@103872 ce508802-f39f-4f6c-b175-0d175dae99d5
parent af615fd0
......@@ -21,12 +21,6 @@
{
global_date_format = "dd-M-y";
}
//Added by Santosh on 22-07-16 [Start]
else if ( global_date_format == "MM/dd/yy" )
{
global_date_format = "mm/dd/y";
}
//Added by Santosh on 22-07-16 [End]
}
// Added by parikshit kumbhar on 09/07/15 [to set date format] end
var currDate = new Date();
......@@ -198,14 +192,25 @@
{
var parser = new DOMParser();
xmldoc = httpRequest.responseText;
//alert("xmldoc=========>>"+xmldoc);
}
catch(e)
{
alert("inside catch:"+e.message);
}
}
// Changed by Sneha on 25-10-2016, for customer item reference [Start]
if(setColumnValues == "custItemRef")
{
setCustItemRefVal(xmldoc); // from prodWiz_Form_I.js
}
else
{
setColumnValues( xmldoc );
}
//setColumnValues( xmldoc );
// Changed by Sneha on 25-10-2016, for customer item reference [End]
isServerBusy = false;
}
......@@ -273,7 +278,7 @@
{
sizesValue.push(y[0].childNodes[0].nodeValue + ":" + y[1].childNodes[0].nodeValue);// Added by parikshit
tr = tr + "<td><input type='checkbox' value='' id=chkid"+count+" onClick='sizeValues()' /></td>";
tr = tr + "<td class = 'td_centAlign' style = 'width:2% !important;'><input type='checkbox' value='' id=chkid"+count+" onClick='sizeValues()' /></td>";
count++;
}
......@@ -404,8 +409,9 @@
{
popupWindow = window.createPopup ();
var popupBody = popupWindow.document.body;
popupBody.style.backgroundColor = "lightblue";
popupBody.style.border = "solid black 1px";
popupBody.style.backgroundColor = "white";
//popupBody.style.border = "solid black 1px";
popupBody.style.border = "solid lightgray 1px";
popupBody.innerHTML = "";
}
popupWindow.show (100, 100, 150, 25, document.body);
......@@ -418,8 +424,8 @@
{
popupWindow = document.createElement ("div");
popupWindow.id = "someID";
popupWindow.style.backgroundColor = "lightblue";
popupWindow.style.border = "solid black 1px";
popupWindow.style.backgroundColor = "white";
popupWindow.style.border = "solid lightgray 1px";
popupWindow.style.position = "absolute";
popupWindow.style.zIndex = "9999";
/*popupWindow.style.width = "400px";*/
......@@ -527,3 +533,38 @@
}
// Changed by Sneha on 08-07-2016, for special character [End]
// Changed by Sneha on 25-10-2016, for customer item reference [Start]
function setCustItemRef()
{
action = "CUST_ITEM_REF"
var url = "/ibase/ProdWizItemChangeServlet?ACTION="+action;
makeRequest( url, "custItemRef");
}
function setCustItemRefVal(xmldoc)
{
document.getElementById("cust_item_ref_status").value = xmldoc;
var maxId = $('#SKUItemId tbody tr').length;
//alert("--------- Inside setCustItemRefVal 22222222 ------------ "+maxId);
if(xmldoc == "Y")
{
if(maxId <= 0)
{
var itemParent = document.getElementById("Detail1.1.item_parnt").value;
document.getElementById("Detail1.1.phy_attrib_4").value = itemParent;
document.getElementById("Detail1.1.phy_attrib_4").readOnly = "true";
}
else if(maxId > 0)
{
for( dbID = 1; dbID <= maxId; dbID++)
{
document.getElementById("Detail2."+dbID+".phy_attrib_4").readOnly = "true";
}
}
}
}
// Changed by Sneha on 25-10-2016, for customer item reference [End]
\ No newline at end of file
......@@ -215,6 +215,7 @@
fieldValue = document.getElementById("Detail3.1.size_item_code").value +","+document.getElementById("Detail3.1.phy_attrib_1").value;
flag = "A";
}
else if(field == "color_codes")
{
fieldValue = document.getElementById("Detail3."+ dbID +".color_codes").value;
......@@ -254,10 +255,19 @@
fieldValue = document.getElementById("Detail3."+ dbID +".trade_mark").value;
}
//Changed by Sneha on 17-10-2016 for trade mark pop help [End]
// Changed by Sneha on 03-11-2016, to display size and color code [Start]
else if(field == "size_code_edit")
{
fieldValue = document.getElementById("Detail2.1.item_code").value+","+document.getElementById("Detail2.1.phy_attrib_1").value;
}
else if(field == "color_code_edit")
{
fieldValue = document.getElementById("Detail2.1.item_code").value+","+document.getElementById("Detail2.1.phy_attrib_2").value;
}
//Changed by Sneha on 03-11-2016, to display size and color code [End]
//var url = "/ibase/webitm/jsp/ProdWizardItemTypeList.jsp?LOGIN_ID="+loginId
// +"&FIELDS="+field+"&DBID="+dbID+"&FIELDNAME="+fieldName+"&IDNUM="+idNum+"&FIELDVALUE="+fieldValue+",";
......@@ -379,6 +389,16 @@
descr = attr_value + " - " + phyAttribute3 + " - " + color + " - " + size;
}
document.getElementById("Detail3."+idNum+".descr").value = descr;
// Changed by Sneha on 28-10-2016, to set value in the field cust item ref [Start]
var cust_item_ref_status = document.getElementById("cust_item_ref_status").value;
if(cust_item_ref_status == "Y")
{
document.getElementById("Detail3."+idNum+".phy_attrib_4").value = document.getElementById("Detail3.0.item_parent").value + document.getElementById("Detail3."+idNum+".phy_attrib_2").value + fieldValue;
}
// Changed by Sneha on 28-10-2016, to set value in the field cust item ref [End]
}
else if (field == "color_codes")
......@@ -406,8 +426,16 @@
//descr = editDescr + " " + size + " " + color + " " + phyAttribute3;
descr = attr_value + " - " + phyAttribute3 + " - " + color + " - " + size;
}
document.getElementById("Detail3."+idNum+".descr").value = descr;
// Changed by Sneha on 28-10-2016, to set value in the field cust item ref [Start]
var cust_item_ref_status = document.getElementById("cust_item_ref_status").value;
if(cust_item_ref_status == "Y")
{
document.getElementById("Detail3."+idNum+".phy_attrib_4").value = document.getElementById("Detail3.0.item_parent").value + document.getElementById("Detail3."+idNum+".phy_attrib_2").value + size;
}
// Changed by Sneha on 28-10-2016, to set value in the field cust item ref [End]
}
else if (field == "dimension_desc")
{
......@@ -467,6 +495,21 @@
}
//Changed by Sneha on 17-10-2016 for trade mark pop help [End]
//Changed by Sneha on 03-11-2016, for displating values for size and color codes [Start]
else if(field == "size_code_edit")
{
document.getElementById("Detail2.1.phy_attrib_1").value = fieldId;
document.getElementById("Detail2.1.phy_attrib_6").value = fieldValue;
}
else if (field == "color_code_edit")
{
document.getElementById("Detail2.1.phy_attrib_2").value = fieldId;
document.getElementById("Detail2.1.color_code_descr").value = fieldValue;
}
//Changed by Sneha on 03-11-2016, for displating values for size and color codes [End]
}
/**
......@@ -777,35 +820,37 @@
$("#SKUPriceListId tbody").append(
"<tr>"+
"<td><input type='checkbox' id=chksite"+no+" onclick='checkPriceList(this)' /></td>"+
"<tr class='trClass'>"+
"<td class='td_centAlign'><input type='checkbox' id=chksite"+no+" onclick='checkPriceList(this)' /></td>"+
"<td onclick=chkPriceRows('chksite"+no+"')><input type='hidden' id=prodSite"+no+" value="+ site +" /><lable id=lblSites"+no+">"+ site +"</lable></td>"+
"<td onclick=chkPriceRows('chksite"+no+"')><input type='hidden' id=prodSite"+no+" value="+ site +" /><lable id=lblSites"+no+" style = 'color: #555 !important;'>"+ site +"</lable></td>"+
"<td>" +
"<td class='td_leftAlign'>" +
"<div style='position:relative; width: 100%;'>" +
"<input type='hidden' id=prodPriceList"+no+" class='editInputClass' value="+ siteCurrency[0] +" style='width: 90%;' readonly='1' />" +
"<input type='hidden' id=prodPriceList"+no+" class='input_editable' value="+ siteCurrency[0] +" style='width: 90%;' readonly='1' />" +
" <lable id=lblPriceSites"+no+">"+ siteCurrency[0] +"</lable> "+ //Added by parikshit kumbhar on 08/07/15 [added lable]
// "<div style='width:2%; float: right'>" +
// "<img src='/ibase/webitm/images/DD/popup1.png' id=priceList"+no+" style='margin-left: -5px;' />" +
// "<img src='/ibase/webitm/images/pophelp.png' id=priceList"+no+" style='margin-left: -5px;' />" +
// "</div>" +
"</div>" +
"</td>"+
"<td><input type='hidden' id=prodSiteCurr"+no+" value= '' /><lable id=lblSitesCurr"+no+">"+siteCurrency[2]+"</lable></td>"+
"<td>" +
"<input type='text' id=prodRate"+no+" class='editInputClass' size='10' maxlength='11' style='text-align: right;' onchange='return isNumeric2(this)' />" +
"<td class='td_leftAlign'><input type='hidden' id=prodSiteCurr"+no+" value= '' /><lable id=lblSitesCurr"+no+">"+siteCurrency[2]+"</lable></td>"+
"<td class='td_leftAlign'>" +
"<input type='text' id=prodRate"+no+" class='input_editable' size='10' maxlength='11' style='text-align: right;' onchange='return isNumeric2(this)' />" +
"</td>"+
/*"<td>" +
"<input type='text' id=prodCost"+no+" class='editInputClass' size='10' style='text-align: right;' onchange='return isValidCost(this)' />" +
"</td>"+*/
"<td>" +
"<input type='text' id=dtFrom"+no+" class='editInputClass' size='8' style='text-align: left;' readonly='1' />" +
"<td class='td_leftAlign'>" +
"<input type='text' id=dtFrom"+no+" class='input_editable' size='8' style='text-align: left;' disabled />" +
"<img src='/ibase/webitm/images/calender.png' id='dtFrom"+no+"' name='dtFrom"+no+"' onClick=javascript:setDate('dtFrom"+no+"'); border='0' style='margin-bottom: -5px;' /> " +
"</td>"+
"<td>" +
"<input type='text' id=dtTo"+no+" class='editInputClass' size='8' style='text-align: left;' readonly='1' />" +
"<td class='td_leftAlign'>" +
"<input type='text' id=dtTo"+no+" class='input_editable' size='8' style='text-align: left;' disabled />" +
"<img src='/ibase/webitm/images/calender.png' id='dtTo"+no+"' name='dtTo"+no+"' onClick=javascript:setDate('dtTo"+no+"'); border='0' style='margin-bottom: -5px;' /> " +
"</td>"+
"</tr>"
);
......@@ -946,11 +991,11 @@
{
$("#SKULangListId tbody").append(
"<tr>"+
"<td><input type='hidden' id=langcode"+no+" value="+ langCode +" />" +
"<td class='td_leftAlign'><input type='hidden' id=langcode"+no+" value="+ langCode +" />" +
"<input type='hidden' id=itemcode"+no+" value='' />" +
"<lable id=lblLangs"+no+">"+ langCode +"</lable></td>"+
"<td>" +
"<input type='text' id=langDesc"+no+" class='editInputClass' size='10' MAXLENGTH='85' style='width: 100%' value='' " +
"<td class='td_leftAlign'>" +
"<input type='text' id=langDesc"+no+" class='input_editable' size='10' MAXLENGTH='85' style='width: 100%' value='' " +
"onkeyup = 'return specialCharValidate(this.id);' />" + /* Added by Sneha on 23-06-2016 for input of special character */
"</td>"+
"</tr>"
......@@ -1338,8 +1383,8 @@
{
popupWindow = window.createPopup ();
var popupBody = popupWindow.document.body;
popupBody.style.backgroundColor = "lightblue";
popupBody.style.border = "solid black 1px";
popupBody.style.backgroundColor = "white";
popupBody.style.border = "solid lightgray 1px";
popupBody.innerHTML = "";
}
popupWindow.show (100, 100, 150, 25, document.body);
......@@ -1352,8 +1397,8 @@
{
popupWindow = document.createElement ("div");
popupWindow.id = "someID";
popupWindow.style.backgroundColor = "lightblue";
popupWindow.style.border = "solid black 1px";
popupWindow.style.backgroundColor = "white";
popupWindow.style.border = "solid lightgray 1px";
popupWindow.style.position = "absolute";
popupWindow.style.zIndex = "9999";
/*popupWindow.style.width = "400px";*/
......@@ -1388,27 +1433,29 @@
{
$("#SKUSuppListId tbody").append(
"<tr >"+
"<tr class='trClass'>"+
"<td><input type='checkbox' checked='checked' disabled = 'true' id=chkSupp"+num+" /></td>"+
"<td class='td_centAlign'><input type='checkbox' checked='checked' disabled = 'true' id=chkSupp"+num+" /></td>"+
"<td><input type='hidden' id=Supp"+num+" value='' /><lable id=lblSupp"+num+">"+ supplier +"</lable></td>"+
"<td class='td_leftAlign'><input type='hidden' id=Supp"+num+" value='' /><lable id=lblSupp"+num+">"+ supplier +"</lable></td>"+
"<td>" +
"<input type='hidden' class='editInputClass' id=SuppPriceList"+num+" value='"+ price +"' /><lable id=lblSuppPriceList"+num+">"+ price +"</lable>" +
"<td class='td_leftAlign'>" +
"<input type='hidden' class='input_editable' id=SuppPriceList"+num+" value='"+ price +"' /><lable id=lblSuppPriceList"+num+">"+ price +"</lable>" +
"</td>"+
"<td><input type='hidden' id=SuppCurr"+num+" value="+ currcode +" /><lable id=lblcurr"+num+">"+ currcode +"</lable></td>"+
"<td>" +
"<input type='text' class='editInputClass' id=SuppProdCost"+num+" size='10' value='0.00' maxlength='11' style='text-align: right;' " +
"<td class='td_leftAlign'><input type='hidden' id=SuppCurr"+num+" value="+ currcode +" /><lable id=lblcurr"+num+">"+ currcode +"</lable></td>"+
"<td class='td_leftAlign'>" +
"<input type='text' class='input_editable' id=SuppProdCost"+num+" size='10' value='0.00' maxlength='11' style='text-align: right;' " +
" onchange='return isNumeric2(this)' />" +
"</td>" +
"<td>" +
"<input type='text' class='editInputClass' id=SuppDtFrom"+num+" size='8' style='text-align: left;' readonly='1' />" +
"<td class='td_leftAlign'>" +
"<input type='text' class='input_editable' id=SuppDtFrom"+num+" size='8' style='text-align: left;' readonly='1' />" +
"<img src='/ibase/webitm/images/calender.png' id='SuppDtFrom"+num+"' name='SuppDtFrom"+num+"' onClick=javascript:setDate('SuppDtFrom"+num+"'); border='0' style='margin-bottom: -5px;' /> " +
"</td>"+
"<td>" +
"<input type='text' class='editInputClass' id=SuppDtTo"+num+" size='8' style='text-align: left;' readonly='1' />" +
"<td class='td_leftAlign'>" +
"<input type='text' class='input_editable' id=SuppDtTo"+num+" size='8' style='text-align: left;' readonly='1' />" +
"<img src='/ibase/webitm/images/calender.png' id='SuppDtTo"+num+"' name='SuppDtTo"+num+"' onClick=javascript:setDate('SuppDtTo"+num+"'); border='0' style='margin-bottom: -5px;' /> " +
"</td>"+
"</tr>"
......@@ -1477,22 +1524,22 @@
"<tr>"+
"<td width='5%'>" +
"<input type='hidden' readonly='1' class='editInputClass' style='text-align: left;' id=langCode"+num+" size='5' value="+lang+" style='text-align: right;'/><lable id=lbllang"+num+">"+ lang +"</lable>" +
"<input type='hidden' readonly='1' class='editInputClass' style='text-align: left;' id=itmCode"+num+" size='5' value="+itemcode+" style='text-align: right;'/>" +
"<input type='hidden' readonly='1' class='input_editable' style='text-align: left;' id=langCode"+num+" size='5' value="+lang+" style='text-align: right;'/><lable id=lbllang"+num+">"+ lang +"</lable>" +
"<input type='hidden' readonly='1' class='input_editable' style='text-align: left;' id=itmCode"+num+" size='5' value="+itemcode+" style='text-align: right;'/>" +
"</td>" +
"<td width='5%'>" +
"<input type='text' class='editInputClass' style='text-align: left;' id=langCodeDesc"+num+" size='30' MAXLENGTH='85' " +
"<input type='text' class='input_editable' style='text-align: left;' id=langCodeDesc"+num+" size='30' MAXLENGTH='85' " +
"style='text-align: right;' onkeyup = 'return specialCharValidate(this.id);' onkeypress='return disableEnter()' />" + /* Added by Sneha on 23-06-2016 for input of special character */
"</td>"+
"<td width='5%'>" +
"<input type='text' class='editInputClass' style='text-align: left;' id=langShDesc"+num+" size='25' MAXLENGTH='100' " +
"<input type='text' class='input_editable' style='text-align: left;' id=langShDesc"+num+" size='25' MAXLENGTH='100' " +
"style='text-align: right;' onkeyup = 'return specialCharValidate(this.id);' onkeypress='return disableEnter()' />" + /* Added by Sneha on 23-06-2016 for input of special character */
"</td>"+
"<td width='5%'>" +
"<input type='text' class='editInputClass' style='text-align: left;' id=langLongDesc"+num+" size='25' MAXLENGTH='490' " +
"<input type='text' class='input_editable' style='text-align: left;' id=langLongDesc"+num+" size='25' MAXLENGTH='490' " +
"style='text-align: right;' onkeyup = 'return specialCharValidate(this.id);' onkeypress='return disableEnter()' />" + /* Added by Sneha on 23-06-2016 for input of special character */
"</td>"+
......@@ -1698,6 +1745,30 @@
}
//Changed by Sneha on 04-07-2016, validation for language, supplier, price list and pack list details [End]
// Changed by Sneha on 25-10-2016, for customer item reference [Start]
else if (document.getElementById("Detail"+formNo+"."+dbID+".phy_attrib_4").value == "")
{
alert("Please Enter value for Customer Item Reference'"+ document.getElementById("Detail"+formNo+"."+dbID+".phy_attrib_4").value +"'.");
document.getElementById("Detail"+formNo+"."+dbID+".phy_attrib_4").focus();
return false;
}
else if (document.getElementById("Detail"+formNo+"."+dbID+".phy_attrib_4").value != "")
{
var curBarCode = document.getElementById("Detail"+formNo+"."+dbID+".phy_attrib_4").value;
for (var i = 0; i < barCodes.length; i++)
{
if(barCodes[i]==curBarCode)
{
alert("Duplicate Customer Item Reference found. Please Enter Different Customer Item Reference for the Product '"+ document.getElementById("Detail"+formNo+"."+dbID+".phy_attrib_4").value +"'.");
document.getElementById("Detail"+formNo+"."+dbID+".phy_attrib_4").focus();
return false;
}
}
barCodes.push(document.getElementById("Detail"+formNo+"."+dbID+".phy_attrib_4").value);
}
// Changed by Sneha on 25-10-2016, for customer item reference [End]
// Added by Samadhan on 28/12/2015 for check duplicate barcodes start
else
{
......@@ -1920,6 +1991,7 @@
//alert("maxRowId----------"+maxRowId);
var count = 0;
var itemParnt = document.getElementById("Detail3.0.item_parent").value;
var itemParntDescr = document.getElementById("Detail3."+rowId+".attr_value").value;
var descr = document.getElementById("Detail3."+rowId+".descr").value;
var itemCode = document.getElementById("Detail3."+rowId+".item_code").value;
......@@ -1944,7 +2016,6 @@
var languageDesc = document.getElementById("Detail3."+rowId+".language_desc").value;
var loginCode = document.getElementById("Detail3."+count+".login_code").value;
var tradeMark = document.getElementById("Detail3."+rowId+".trade_mark").value;
var taxChap = document.getElementById("Detail3."+rowId+".tax_chap").value;//Changed by wasim on 03-08-2016 for tax chapter
......@@ -1972,20 +2043,37 @@
/*// Edit Item Description
+ "<td>"
+"<input type='text' class='editInputClass' name='Detail3."+maxRowId+".editDescr' "
+"<input type='text' class='input_editable' name='Detail3."+maxRowId+".editDescr' "
+"id='Detail3."+maxRowId+".editDescr' maxlength='70' style='width: 100%;' "
+" onkeyup='setItemDescr("+maxRowId+")' onblur='setItemDescr("+maxRowId+")' />"
+"</td>"*/
// Item Description
+ "<td>"
+"<input type='text' class='editInputClass' name='Detail3."+maxRowId+".descr' "
+"<input type='text' class='input_editable' name='Detail3."+maxRowId+".descr' "
+"id='Detail3."+maxRowId+".descr' maxlength='70' style='width: 100%;' ISCHANGED='false' readOnly = '1' />"
+"<input type='hidden' class='editInputClass' name='Detail3."+maxRowId+".item_code' "
+"<input type='hidden' class='input_editable' name='Detail3."+maxRowId+".item_code' "
+"id='Detail3."+maxRowId+".item_code' maxlength='10' style='width: 100%;' />"
+"</td>"
// Customer Item Reference
// Changed by Sneha on 28-10-2016, for customer item reference, active [Start]
+ "<td>"
+"<input type='text' class='input_editable' name='Detail3."+maxRowId+".phy_attrib_4' "
+"id='Detail3."+maxRowId+".phy_attrib_4' maxlength='30' style='width: 100%;' />"
+"</td>"
// Active
+"<td style='text-align:center;'>"
+"<select name='Detail3."+maxRowId+".active' id='active'>"
+"<option value='Y' selected='selected'>Yes</option>"
+"<option value='N'>No</option>"
+"</select>"
+"</td>"
// Changed by Sneha on 28-10-2016, for customer item reference, active [End]
// Limited Edition
+"<td style='text-align:center;'>"
+"<select name='Detail3."+maxRowId+".usage_type' id='usage_type' >"
......@@ -2023,7 +2111,7 @@
+"<div style='float:right; width: 10%;'>"
+"<a href=javascript:callListJSP('"+maxRowId+"','"+loginCode+"','size_code_descr','Size&#160;Codes','"+maxRowId+"'); "
+"style='float: left;text-decoration: none;' id = 'Detail3."+maxRowId+".size_code_pophelp'>"
+"<img src='/ibase/webitm/images/DD/popup1.png' style='margin-left: -5px;' title='Select Size Codes' />"
+"<img src='/ibase/webitm/images/pophelp.png' style='margin-left: -5px;' title='Select Size Codes' />"
+"</a>"
+"</div>"
+"</td>"
......@@ -2046,7 +2134,7 @@
+"<div style='float:right; width: 8%;'>"
+"<a href=javascript:callListJSP('"+maxRowId+"','"+loginCode+"','color_codes','Color&nbsp;Codes','"+maxRowId+"'); "
+"style='float: left;text-decoration: none;' id = 'Detail3."+maxRowId+".color_codes_pophelp' >"
+"<img src='/ibase/webitm/images/DD/popup1.png' style='margin-left: -5px;' title='Select Color Codes' />"
+"<img src='/ibase/webitm/images/pophelp.png' style='margin-left: -5px;' title='Select Color Codes' />"
+"</a>"
+"</div>"
......@@ -2067,7 +2155,7 @@
+"<div style='float:right;position:relative; width: 8%;'>"
+"<a href=javascript:callListJSP('"+maxRowId+"','"+loginCode+"','dimension_desc','Dimension','"+maxRowId+"'); "
+"style='float: left;text-decoration: none;' id = 'Detail3."+maxRowId+".dimension_desc_pophelp' >"
+"<img src='/ibase/webitm/images/DD/popup1.png' style='margin-left:-5px;' title='Select Dimension' />"
+"<img src='/ibase/webitm/images/pophelp.png' style='margin-left:-5px;' title='Select Dimension' />"
+"</a>"
+"</div>"
+"</td>"
......@@ -2087,7 +2175,7 @@
+"<div style='float:right;position:relative; width: 4%;'>"
+"<a href=javascript:callListJSP("+maxRowId+",'0','item_categoryII','Category',"+maxRowId+"); style='float: left;text-decoration: none;'>"
+"<img src='/ibase/webitm/images/DD/popup1.png' style='margin-left: -5px;' title='Select Product Category' />"
+"<img src='/ibase/webitm/images/pophelp.png' style='margin-left: -5px;' title='Select Product Category' />"
+"</a>"
+"</div>"
+"</td>"
......@@ -2104,7 +2192,7 @@
+"<div style='float:right;position:relative; width: 8%;'> "
+"<a href=javascript:callListJSP("+maxRowId+",'0','trade_mark','Trade&#160;Mark',"+maxRowId+"); style='float: left;text-decoration: none;' > "
+"<img src='/ibase/webitm/images/DD/popup1.png' style='margin-left: -5px;' title='Select Trade Mark' /> "
+"<img src='/ibase/webitm/images/pophelp.png' style='margin-left: -5px;' title='Select Trade Mark' /> "
+"</td>"
// Tax
......@@ -2123,7 +2211,7 @@
+"<div style='float:right;position:relative; width: 8%;'>"
+"<a href=javascript:callListJSP('"+maxRowId+"','0','tax_desc','Tax&#160;Code','"+maxRowId+"'); style='float: left;text-decoration: none;'"
+"id='Detail3."+maxRowId+".tax_descr_pophelp' >"
+"<img src='/ibase/webitm/images/DD/popup1.png' style='margin-left: -5px;' title='Select Tax Code' />"
+"<img src='/ibase/webitm/images/pophelp.png' style='margin-left: -5px;' title='Select Tax Code' />"
+"</a>"
+"</div>"
+"</td>"
......@@ -2141,7 +2229,7 @@
+"<div style='float:right;position:relative; width: 8%;'>"
+"<a href=javascript:callListJSP('"+maxRowId+"','0','tax_chapII','Tax&#160;Chapter','"+maxRowId+"'); style='float: left;text-decoration: none;'"
+"id='Detail3."+maxRowId+".tax_chap_pophelp' >"
+"<img src='/ibase/webitm/images/DD/popup1.png' style='margin-left: -5px;' title='Select Tax Code' />"
+"<img src='/ibase/webitm/images/pophelp.png' style='margin-left: -5px;' title='Select Tax Code' />"
+"</a>"
+"</div>"
+"</td>"
......@@ -2205,7 +2293,7 @@
+"<div style='float:right;position:relative; width: 8%;'>"
+"<a href=javascript:callListJSP("+maxRowId+",'0','loc_codeII','Location',"+maxRowId+"); style='float: left;text-decoration: none;'>"
+"<img src='/ibase/webitm/images/DD/popup1.png' style='margin-left: -5px;' title='Select Location Code' />"
+"<img src='/ibase/webitm/images/pophelp.png' style='margin-left: -5px;' title='Select Location Code' />"
+"</a>"
+"</div>"
+"</td>"
......@@ -2215,7 +2303,7 @@
+"<input type='hidden' class='editInputClass' value='"+packSizeDescr+"' name='Detail3."+maxRowId+".pack_size_descr' "
+"id='Detail3."+maxRowId+".pack_size_descr' />"
+"<a href='#' id='Detail3."+maxRowId+".packListLink' style='color: blue' onclick=openPopup(event,this.id,'pack');>Click&#160;for&#160;Pack&#160;Details</a>"
+"<a href='#' id='Detail3."+maxRowId+".packListLink' style='color: black' onclick=openPopup(event,this.id,'pack');>Click&#160;for&#160;Pack&#160;Details</a>"
+"</td>"
// Price List
......@@ -2223,7 +2311,7 @@
+"<input type='hidden' class='editInputClass' value='"+priceListDtl+"' name='Detail3."+maxRowId+".price_list_dtl' "
+"id='Detail3."+maxRowId+".price_list_dtl' />"
+"<a href='#' id='Detail3."+maxRowId+".prodPriceLink' style='color: blue;text-align:center;' onclick=openPopup(event,this.id,'price');>Click&#160;for&#160;PriceList</a>"
+"<a href='#' id='Detail3."+maxRowId+".prodPriceLink' style='color: black;text-align:center;' onclick=openPopup(event,this.id,'price');>Click&#160;for&#160;PriceList</a>"
+"</td>"
// Supplier List
......@@ -2231,7 +2319,7 @@
+"<input type='hidden' class='editInputClass' name='Detail3."+maxRowId+".supp_item_dtl' "
+"id='Detail3."+maxRowId+".supp_item_dtl' value='"+suppItemDtl+"' />"
+"<a href='#' id='Detail3."+maxRowId+".suppListLink' style='color: blue;' onclick=openPopup(event,this.id,'supp');>Click&#160;for&#160;Supplier&#160;Details</a>"
+"<a href='#' id='Detail3."+maxRowId+".suppListLink' style='color: black;' onclick=openPopup(event,this.id,'supp');>Click&#160;for&#160;Supplier&#160;Details</a>"
+"</td>"
// Language List value='"+languageDtl+"'
......@@ -2239,7 +2327,7 @@
+"<input type='hidden' class='editInputClass' name='Detail3."+maxRowId+".language_dtl'"
+"id='Detail3."+maxRowId+".language_dtl' />"
+"<a href='#' id='Detail3."+maxRowId+".language_dtl' onclick=openPopup(event,this.id,'lang'); style='color: blue'>Click&#160;for&#160;Language&#160;Details</a>"
+"<a href='#' id='Detail3."+maxRowId+".language_dtl' onclick=openPopup(event,this.id,'lang'); style='color: black'>Click&#160;for&#160;Language&#160;Details</a>"
+"<input type='hidden' class='editInputClass' value='"+language+"' name='Detail3."+maxRowId+".language'"
+"id='Detail3."+maxRowId+".language' />"
......@@ -2255,6 +2343,21 @@
//document.getElementById("Detail3."+ maxRowId +".descr").innerHTML = itemParntDescr;
document.getElementById("Detail3."+ maxRowId +".language_dtl").value = languageDtl;
document.getElementById("Detail3."+ maxRowId +".descr").focus();
// Changed by Sneha on 28-10-2016, for customer item reference [Start]
var cust_item_ref_status = document.getElementById("cust_item_ref_status").value;
if(cust_item_ref_status == "Y")
{
var itemParent = document.getElementById("Detail3.0.item_parent").value;
document.getElementById("Detail3."+maxRowId+".phy_attrib_4").value = itemParent;
document.getElementById("Detail3."+maxRowId+".phy_attrib_4").readOnly = "true";
}
else if(cust_item_ref_status == "N")
{
document.getElementById("Detail3."+maxRowId+".phy_attrib_4").value = "";
}
// Changed by Sneha on 28-10-2016, for customer item reference [End]
}
function itmparntChangeNew(itemCode, action)
......@@ -2336,6 +2439,12 @@
alert("inside catch:"+e.message);
}
}
// Changed by Sneha on 25-10-2016, for customer item reference [Start]
if(setColumnValues == "custItemRef")
{
setCustItemRefVal(xmldoc); // from prodWiz_Form_I.js
}
// Changed by Sneha on 25-10-2016, for customer item reference [End]
//setColumnValuesNew( xmldoc );
isServerBusyNew = false;
......@@ -2471,3 +2580,80 @@
}
// Changed by Sneha on 08-07-2016, for special character [End]
// Changed by Sneha on 25-10-2016, for customer item reference [Start]
function setCustItemRef()
{
action = "CUST_ITEM_REF"
var url = "/ibase/ProdWizItemChangeServlet?ACTION="+action;
makeRequestNew( url, "custItemRef");
}
function setCustItemRefVal(xmldoc)
{
document.getElementById("cust_item_ref_status").value = xmldoc;
var maxId = $('#SKUItemId tbody tr').length;
//alert("--------- Inside setCustItemRefVal 22222222 ------------ "+maxId);
if(xmldoc == "Y")
{
if(maxId <= 0)
{
document.getElementById("Detail2.1.phy_attrib_4").readOnly = "true";
}
else if(maxId > 0)
{
for( dbID = 1; dbID <= maxId; dbID++)
{
document.getElementById("Detail3."+dbID+".phy_attrib_4").readOnly = "true";
}
}
}
}
// Changed by Sneha on 25-10-2016, for customer item reference [End]
// Changed by Sneha on 04-11-2016, to add new to upload images [Start]
function uploadImg(objName)
{
var refId = document.getElementById("Detail2.1.item_code").value;
//alert(refId);
if(refId == "")
{
alert("Item Parent found blank. Please enter the value for Item Parent.");
}
else
{
var url = "/ibase/webitm/jsp/ITMAttachmentView.jsp?OBJ_NAME="+objName+"&REF_ID="+refId;
var win = window.open( url, 'Product Details', 'toolbar=no,status=yes,resizable=no,scrollbars=yes,left=100,top=50,width=500,height=550' );
}
}
//Changed by Sneha on 04-11-2016, to add new to upload images [End]
function doHideMsg(str)
{
document.getElementById(str).style.display = 'none';
}
function setDate(id)
{
showcalender(id);
}
function showcalender(id)
{
var date_format = "d/m/y";
$( "#"+id).datetimepicker({
timepicker:false,
format:date_format,
defaultTime:'10:00',
step:1
});
if(!$("#filter_date").datetimepicker( "widget" ).is(":visible"))
{
$( "#"+id ).datetimepicker("show");
}
}
\ No newline at end of file
......@@ -34,11 +34,12 @@
$("#sizeDtlDiv").append(
"<table class='tableClass' id='sizeDtl' width='100%' style='text-align: left;'>" +
"<table class='headertableClass' id='sizeDtl' style='text-align: left; border-top-style: none;'>" +
"<thead><tr class='thClass'><th style='width:10%'><input type='checkbox' id='chkSizeDtl' onclick='checkAllSizes(this)'></th><th>Sizes</th><th>Desc</th><th>Display Desc</th></tr></thead>" +//Display descr Added by Samadhan on 21/12/2015
"<thead><tr class='thClass'><th class='tHeader'><input type='checkbox' id='chkSizeDtl' onclick='checkAllSizes(this)'></th>" +
"<th class='tHeader' >Sizes</th><th class='tHeader'>Desc</th><th class='tHeader' nowrap='true'>Display Desc</th></tr></thead>" +//Display descr Added by Samadhan on 21/12/2015
"<tbody class='table-body fadeInDown'>" +
"<tbody class='table-body fadeInDown' style='font-size: 12px;color: #555;'>" +
"</tbody>" +
......@@ -123,12 +124,12 @@
{
$("#langList tbody").append(
"<tr>"+
"<tr class='trClass'>"+
// "<td></td>"+
"<td width='5%'>" +
"<input type='hidden' readonly='1' class='editInputClass' style='text-align: left;' id=langCode"+num+" size='5' value="+lang+" style='text-align: right;'/><lable id=lbllang"+num+">"+ lang +"</lable>" +
"<input type='hidden' readonly='1' class='editInputClass' style='text-align: left;' id=itmCode"+num+" size='5' value="+itemcode+" style='text-align: right;'/>" +
"<td width='5%' class='td_leftAlign'>" +
"<input type='hidden' readonly='1' class='input_editable' style='text-align: left;' id=langCode"+num+" size='5' value="+lang+" style='text-align: right;'/><lable id=lbllang"+num+">"+ lang +"</lable>" +
"<input type='hidden' readonly='1' class='input_editable' style='text-align: left;' id=itmCode"+num+" size='5' value="+itemcode+" style='text-align: right;'/>" +
"<input type='hidden' checked='checked' id=chkLang"+num+" value= '1' onclick='checkLanguageList(this)' />" +
"</td>" +
......@@ -136,18 +137,18 @@
"<input type='hidden' readonly='1' class='editInputClass' style='text-align: left;' id=itmCode"+num+" size='5' value="+itemcode+" style='text-align: right;'/><lable id=lbllangs"+num+">"+ itemcode +"</lable>" +
"</td>" +*/
"<td width='5%'>" +
"<input type='text' class='editInputClass' style='text-align: left;' id=langCodeDesc"+num+" size='30' MAXLENGTH='90' " +
"<td width='5%' class='td_leftAlign'>" +
"<input type='text' class='input_editable' style='text-align: left;' id=langCodeDesc"+num+" size='30' MAXLENGTH='90' " +
"style='text-align: right;' onkeyup = 'return specialCharValidate(this.id);' />" + /* Added by Sneha on 23-06-2016 for input of special character */
"</td>"+
"<td width='5%'>" +
"<input type='text' class='editInputClass' style='text-align: left;' id=langShDesc"+num+" size='25' MAXLENGTH='100' " +
"<td width='5%' class='td_leftAlign'>" +
"<input type='text' class='input_editable' style='text-align: left;' id=langShDesc"+num+" size='25' MAXLENGTH='100' " +
"style='text-align: right;' onkeyup = 'return specialCharValidate(this.id);' />" + /* Added by Sneha on 23-06-2016 for input of special character */
"</td>"+
"<td width='5%'>" +
"<input type='text' class='editInputClass' style='text-align: left;' id=langLongDesc"+num+" size='25' MAXLENGTH='490' " +
"<td width='5%' class='td_leftAlign'>" +
"<input type='text' class='input_editable' style='text-align: left;' id=langLongDesc"+num+" size='25' MAXLENGTH='490' " +
"style='text-align: right;' onkeyup = 'return specialCharValidate(this.id);' />" + /* Added by Sneha on 23-06-2016 for input of special character */
"</td>"+
......@@ -202,13 +203,13 @@
{
$("#priceListDtl tbody").append(
"<tr>"+
"<tr class='trClass'>"+
"<td width='70%'><input type='hidden' id=prodsSite"+num+" value="+ site +" /><lable id=lblSite"+num+">"+ site +"</lable></td>"+
"<td class='td_leftAlign'><input type='hidden' id=prodsSite"+num+" value="+ site +" /><lable id=lblSite"+num+">"+ site +"</lable></td>"+
"<td width='20%'>" +
"<td class='td_leftAlign' width='5%'>" +
"<div style='position:relative; width: 100%;'>" +
"<input type='hidden' class='editInputClass' id=prodsPriceList"+num+" value='"+ price +"' readonly='1' style='width: 90%;' />" +
"<input type='hidden' class='input_editable' id=prodsPriceList"+num+" value='"+ price +"' readonly='1' style='width: 90%;' />" +
" <lable id=lblPrice"+num+">"+ price +"</lable> "+
//Changed by Parikshit Kumbhar on 08/07/15 [added lable]
/*"<div style='width:2%; float: right'>" +
......@@ -216,21 +217,23 @@
"</div>" +*/
"</div>" +
"</td>"+
"<td width='70%'><input type='hidden' id=prodsCurr"+num+" value="+ currcode +" /><lable id=lblSites"+num+">"+ currcode +"</lable></td>"+
"<td width='5%'>" +
"<input type='text' class='editInputClass' id=prodsRate"+num+" size='8' value='0.00' maxlength='11' style='text-align: right;' onchange='return isNumeric2(this)' />" +
"<td class='td_leftAlign' width='5%'><input type='hidden' id=prodsCurr"+num+" value="+ currcode +" /><lable id=lblSites"+num+">"+ currcode +"</lable></td>"+
"<td class='td_leftAlign' width='5%'>" +
"<input type='text' class='input_editable' id=prodsRate"+num+" size='8' value='0.00' maxlength='11' style='text-align: right;' onchange='return isNumeric2(this)' />" +
"</td>" +// Added by parikshit Kumbhar on 27/06/2015 [Maxlength added] [D15CKAT031]
/*"<td width='5%'>" +
"<input type='text' class='editInputClass' id=prodsCost"+num+" size='10' value='0.000' style='text-align: right;' onchange='return isValidCosts(this)' />" +
"</td>" +*/
"<td width='5%'>" +
"<input type='text' class='editInputClass' id=dtsFrom"+num+" size='9' style='text-align: left;' readonly='1' />" +
"<td width='15%'>" +
"<input type='text' class='input_editable' id=dtsFrom"+num+" size='9' style='text-align: left;' disabled />" +
"<img src='/ibase/webitm/images/calender.png' id='dtsFrom"+num+"' name='dtsFrom"+num+"' onClick=javascript:setDate('dtsFrom"+num+"'); border='0' style='margin-bottom: -5px;' /> " +
"</td>"+
"<td width='5%'>" +
"<input type='text' class='editInputClass' id=dtsTo"+num+" size='9' style='text-align: left;' readonly='1' />" +
"<td width='15%'>" +
"<input type='text' class='input_editable' id=dtsTo"+num+" size='9' style='text-align: left;' disabled />" +
"<img src='/ibase/webitm/images/calender.png' id='dtsTo"+num+"' name='dtsTo"+num+"' onClick=javascript:setDate('dtsTo"+num+"'); border='0' style='margin-bottom: -5px;' /> " +
"</td>"+
"</tr>"
......@@ -357,19 +360,19 @@
{
$("#suppListDtl tbody").append(
"<tr >"+
"<tr class='trClass'>"+
"<td width='80%'><input type='hidden' id=Supp"+num+" value='' /><lable id=lblSupp"+num+">"+ supplier +"</lable></td>"+
"<td class = 'td_leftAlign'><input type='hidden' id=Supp"+num+" value='' /><lable id=lblSupp"+num+">"+ supplier +"</lable></td>"+
"<td width='5%'>" +
"<input type='hidden' class='editInputClass' id=SuppPriceList"+num+" value='"+ price +"' /><lable id=lblSuppPriceList"+num+">"+ price +"</lable>" +
"<td width='5%' class = 'td_leftAlign'>" +
"<input type='hidden' class='input_editable' id=SuppPriceList"+num+" value='"+ price +"' /><lable id=lblSuppPriceList"+num+">"+ price +"</lable>" +
"</td>"+
"<td width='5%'>" +
"<input type='hidden' class='editInputClass' id=SuppCurr"+num+" value='"+ curr +"' /><lable id=lblSuppCurr"+num+">"+ curr +"</lable>" +
"<td width='5%' class = 'td_leftAlign'>" +
"<input type='hidden' class='input_editable' id=SuppCurr"+num+" value='"+ curr +"' /><lable id=lblSuppCurr"+num+">"+ curr +"</lable>" +
"</td>"+
"<td width='5%'>" +
"<input type='text' class='editInputClass' id=SuppProdCost"+num+" size='8' value='0.00' maxlength='11'style='text-align: right;' " +
"<td width='5%' class = 'td_leftAlign'>" +
"<input type='text' class='input_editable' id=SuppProdCost"+num+" size='8' value='0.00' maxlength='11'style='text-align: right;' " +
" onchange='return isNumeric2(this)' />" + // Added by parikshit Kumbhar on 27/06/2015 [Maxlength added] [D15CKAT031]
"</td>" +
......@@ -377,12 +380,14 @@
"<input type='text' class='editInputClass' id=prodsCost"+num+" size='10' value='0.000' style='text-align: right;' onchange='return isValidCosts(this)' />" +
"</td>" +*/
"<td width='5%'>" +
"<input type='text' class='editInputClass' id=SuppDtFrom"+num+" size='9' style='text-align: left;' readonly='1' />" +
"<td width='15%'>" +
"<input type='text' class='input_editable' id=SuppDtFrom"+num+" name=SuppDtFrom"+num+" size='9' style='text-align: left;' maxlength='8' ISCHANGED='false' disabled/>" +
"<img src='/ibase/webitm/images/calender.png' id='SuppDtFrom"+num+"' name='SuppDtFrom"+num+"' onClick=javascript:setDate('SuppDtFrom"+num+"'); border='0' style='margin-bottom: -5px;'/> " +
"</td>"+
"<td width='5%'>" +
"<input type='text' class='editInputClass' id=SuppDtTo"+num+" size='9' style='text-align: left;' readonly='1' />" +
"<td width='15%'>" +
"<input type='text' class='input_editable' id=SuppDtTo"+num+" size='9' style='text-align: left;' disabled />" +
"<img src='/ibase/webitm/images/calender.png' id='SuppDtTo"+num+"' name='SuppDtTo"+num+"' onClick=javascript:setDate('SuppDtTo"+num+"'); border='0' style='margin-bottom: -5px;'/> " +
"</td>"+
"</tr>"
......@@ -934,3 +939,30 @@
}
});
}
function setDate(id)
{
showcalender(id);
}
function showcalender(id)
{
var date_format = "d/m/y";
$( "#"+id).datetimepicker({
timepicker:false,
format:date_format,
defaultTime:'10:00',
step:1
});
if(!$("#filter_date").datetimepicker( "widget" ).is(":visible"))
{
$( "#"+id ).datetimepicker("show");
}
}
function doHideMsg(str)
{
document.getElementById(str).style.display = 'none';
}
\ No newline at end of file
......@@ -7,8 +7,8 @@
$("#sizeDtlDiv").append(
"<table class='tableClass' id='sizeDtl' width='99%' style='text-align: center;'>" +
//"<table class='tableClass' id='sizeDtl' width='99%' style='text-align: center;'>" +
"<table id='sizeDtl' class='headertableClass' style='border-top-style: none; text-align: left;'>" +
"</table>"
);
......@@ -17,11 +17,11 @@
var tr = "";
tr = tr + "<thead><tr class='thClass'><th>Color/Size</th>";
tr = tr + "<thead><tr><th class = 'tHeader'>Color/Size</th>";
for (var i = 0; i < size.length-1; i++)
{
tr = tr + "<th>"+size[i]+"</th>";
tr = tr + "<th class = 'tHeader'>"+size[i]+"</th>";
}
tr = tr + "</thead></tr><tbody class='table-body'></tbody>";
......@@ -32,11 +32,11 @@
for (var i = 0; i < color.length; i++)
{
tr = tr + "<tr><td>"+color[i]+"</td>";
tr = tr + "<tr><td class = 'td_leftAlign'>"+color[i]+"</td>";
for (var j = 1; j < size.length; j++)
{
tr = tr + "<td>Y</td>";
tr = tr + "<td class = 'td_leftAlign'>Y</td>";
}
tr = tr + "</tr>";
......@@ -130,13 +130,13 @@
"<tr>"+
"<td><input type='checkbox' checked='checked' id=chksite"+no+" onclick='checkPriceList(this)' /></td>"+
"<td class='td_leftAlign'><input type='checkbox' checked='checked' id=chksite"+no+" onclick='checkPriceList(this)' /></td>"+
"<td onclick=chkPriceRows('chksite"+no+"')><input type='hidden' id=prodSite"+no+" value="+ site +" /><lable id=lblSites"+no+">"+ site +"</lable></td>"+
"<td class='td_leftAlign' onclick=chkPriceRows('chksite"+no+"')><input type='hidden' id=prodSite"+no+" value="+ site +" /><lable id=lblSites"+no+">"+ site +"</lable></td>"+
"<td>" +
"<td class='td_leftAlign'>" +
"<div style='position:relative; width: 100%;'>" +
"<input type='hidden' id=prodPriceList"+no+" class='editInputClass' style='width: 90%;' readonly='1' />" +
"<input type='hidden' id=prodPriceList"+no+" class='input_editable' style='width: 90%;' readonly='1' />" +
" <lable id=lblPrices"+no+"></lable> "+//Changed by Parikshit Kumbhar on 08/07/15 [added lable]
/*"<div style='width:2%; float: right'>" +
"<img src='/ibase/webitm/images/DD/popup1.png' id=priceList"+no+" style='margin-left: -5px;' />" +
......@@ -145,7 +145,7 @@
"</td>"+
"<td><input type='hidden' id=prodsCurr"+no+" value='' /><lable id=lblcurrcode"+no+"></lable></td>"+
"<td>" +
"<input type='text' id=prodRate"+no+" class='editInputClass' size='10' maxlength='11' style='text-align: right;' onchange='return isNumeric2(this)' />" +
"<input type='text' id=prodRate"+no+" class='input_editable' size='10' maxlength='11' style='text-align: right;' onchange='return isNumeric2(this)' />" +
"</td>"+ // Added by parikshit Kumbhar on 27/06/2015 [Maxlength added] [D15CKAT031]
/*"<td>" +
......@@ -153,11 +153,11 @@
"</td>"+*/
"<td>" +
"<input type='text' id=dtFrom"+no+" class='editInputClass' size='8' style='text-align: left;' readonly='1' />" +
"<input type='text' id=dtFrom"+no+" class='input_editable' size='8' style='text-align: left;' readonly='1' />" +
"</td>"+
"<td>" +
"<input type='text' id=dtTo"+no+" class='editInputClass' size='8' style='text-align: left;' readonly='1' />" +
"<input type='text' id=dtTo"+no+" class='input_editable' size='8' style='text-align: left;' readonly='1' />" +
"</td>"+
"</tr>"
......@@ -422,27 +422,27 @@
{
$("#SKUSuppListId tbody").append(
"<tr >"+
"<tr class='trClass'>"+
"<td><input type='checkbox' checked='checked' id=chkSupp"+num+" onclick='checkSuppList(this)' /></td>"+
"<td class='td_centAlign'><input type='checkbox' checked='checked' id=chkSupp"+num+" onclick='checkSuppList(this)' /></td>"+
"<td onclick=chkSuppRows('chkSupp"+num+"')><input type='hidden' id=Supp"+num+" value='' /><lable id=lblSupp"+num+">"+ supplier +"</lable></td>"+
"<td class='td_leftAlign' onclick=chkSuppRows('chkSupp"+num+"')><input type='hidden' id=Supp"+num+" value='' /><lable id=lblSupp"+num+">"+ supplier +"</lable></td>"+
"<td onclick=chkSuppRows('chkSupp"+num+"')>" +
"<input type='hidden' class='editInputClass' id=SuppPriceList"+num+" value='"+ price +"' /><lable id=lblSuppPriceList"+num+">"+ price +"</lable>" +
"<td class='td_leftAlign' onclick=chkSuppRows('chkSupp"+num+"')>" +
"<input type='hidden' class='input_editable' id=SuppPriceList"+num+" value='"+ price +"' /><lable id=lblSuppPriceList"+num+">"+ price +"</lable>" +
"</td>"+
"<td><input type='hidden' id=prodsCurr"+num+" value="+ currcode +" /><lable id=lblcurr"+num+">"+ currcode +"</lable></td>"+
"<td>" +
"<input type='text' class='editInputClass' id=SuppProdCost"+num+" size='10' value='0.00' maxlength='11' style='text-align: right;' " +
"<td class='td_leftAlign'><input type='hidden' id=prodsCurr"+num+" value="+ currcode +" /><lable id=lblcurr"+num+">"+ currcode +"</lable></td>"+
"<td class='td_leftAlign'>" +
"<input type='text' class='input_editable' id=SuppProdCost"+num+" size='10' value='0.00' maxlength='11' style='text-align: right;' " +
" onchange='return isNumeric2(this)' />" +// Added by parikshit Kumbhar on 27/06/2015 [Maxlength added] [D15CKAT031]
"</td>" +
"<td>" +
"<input type='text' class='editInputClass' id=SuppDtFrom"+num+" size='8' style='text-align: left;' readonly='1' />" +
"</td>"+
"<td class='td_leftAlign'>" +
"<input type='text' class='input_editable' id=SuppDtFrom"+num+" size='8' style='text-align: left;' readonly='1' />" +
"</td class='td_leftAlign'>"+
"<td>" +
"<input type='text' class='editInputClass' id=SuppDtTo"+num+" size='8' style='text-align: left;' readonly='1' />" +
"<td class='td_leftAlign'>" +
"<input type='text' class='input_editable' id=SuppDtTo"+num+" size='8' style='text-align: left;' readonly='1' />" +
"</td>"+
"</tr>"
......@@ -734,6 +734,31 @@
document.getElementById("Detail2."+dbID+".item_gross_wt").focus();
return false;
}
// Changed by Sneha on 25-10-2016, for customer item reference [Start]
else if (document.getElementById("Detail2."+dbID+".phy_attrib_4").value == "")
{
alert("Please Enter value for Customer Item Reference'"+ document.getElementById("Detail2."+dbID+".phy_attrib_4").value +"'.");
document.getElementById("Detail2."+dbID+".phy_attrib_4").focus();
return false;
}
else if (!document.getElementById("Detail2."+dbID+".phy_attrib_4").value == "")
{
var curBarCode = document.getElementById("Detail2."+dbID+".phy_attrib_4").value;
for (var i = 0; i < barCodes.length; i++)
{
if(barCodes[i]==curBarCode)
{
alert("Duplicate Customer Item Reference found. Please Enter Different Customer Item Reference for the Product '"+ document.getElementById("Detail2."+dbID+".item_descr").value +"' '"+ document.getElementById("Detail2."+dbID+".phy_attrib_4").value +"'.");
document.getElementById("Detail2."+dbID+".phy_attrib_4").focus();
return false;
}
}
barCodes.push(document.getElementById("Detail2."+dbID+".phy_attrib_4").value);
}
// Changed by Sneha on 25-10-2016, for customer item reference [End]
else if (document.getElementById("Detail2."+dbID+".item_barcode").value == "")
{
alert("Please Enter Barcode for Product '"+ document.getElementById("Detail2."+dbID+".item_descr").value +"'.");
......@@ -767,6 +792,9 @@
barCodes.push(document.getElementById("Detail2."+dbID+".item_barcode").value);
}
// Added by Samadhan on 28/12/2015 for check duplicate barcodes end
}
}
if (check == 0)
......@@ -805,7 +833,7 @@
xmlString = xmlString + "</Detail1></Root>";
document.getElementById("PRE_FORM_VAL").value = xmlString;
console.log("xmlString========>>"+xmlString);
setActionVal( "previous" );
document.getElementById("prev").style.pointerEvents = 'none';
......@@ -813,3 +841,4 @@
document.getElementById("prodWizFormII").action = "/ibase/ProdWizHandlerServlet";
document.getElementById("prodWizFormII").submit();
}
\ No newline at end of file
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