Commit f1bdf41f authored by wansari's avatar wansari

updated JS for getting ref ser from item transetup, and order_date in application date format.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@103952 ce508802-f39f-4f6c-b175-0d175dae99d5
parent d132fb86
...@@ -87,6 +87,12 @@ var selectedCode = new Array(); ...@@ -87,6 +87,12 @@ var selectedCode = new Array();
/*******POP Help Start**********/ /*******POP Help Start**********/
function setDoubleClickData(event, element)
{
setCheckedRow( event, element );
selectValue();
}
function selectValue() function selectValue()
{ {
var fieldId = ""; var fieldId = "";
...@@ -1295,6 +1301,13 @@ function setColumnValues( retVal ) ...@@ -1295,6 +1301,13 @@ function setColumnValues( retVal )
return true; return true;
} }
var checkData = xmlDoc.getElementsByTagName("Descr");
if(checkData.length == 0)
{
alert("Entered product does not exist or no data found.");
return false;
}
var x = xmldoc.getElementsByTagName("tr"); var x = xmldoc.getElementsByTagName("tr");
var sett = xmldoc.getElementsByTagName("SET"); var sett = xmldoc.getElementsByTagName("SET");
...@@ -3832,7 +3845,30 @@ function setDate(id) ...@@ -3832,7 +3845,30 @@ function setDate(id)
} }
function showcalender(id) function showcalender(id)
{ {
var date_format = "d/m/y"; //var date_format = "d/m/y";
var date_format = "";
var global_date_format = "";
if (document.getElementById('date_format') != null)
{
global_date_format = document.getElementById("date_format").value;
}
if ( global_date_format == "dd/MM/yy" )
{
date_format = "d/m/y";
}
else if ( global_date_format == "dd-MMM-yyyy" )
{
date_format = "d-M-y";
}
else if ( global_date_format == "MM/dd/yy" )
{
date_format = "m/d/y";
}
$( "#"+id).datetimepicker({ $( "#"+id).datetimepicker({
timepicker:false, timepicker:false,
format:date_format, format:date_format,
...@@ -4022,7 +4058,7 @@ function MakePopup (event) ...@@ -4022,7 +4058,7 @@ function MakePopup (event)
document.getElementById('itemParentImage').style.width = "200px"; document.getElementById('itemParentImage').style.width = "200px";
document.getElementById('itemParentImage').style.height = "230px"; document.getElementById('itemParentImage').style.height = "230px";
document.getElementById('itemParentImage').style.top = document.getElementById("accordion").offsetTop; document.getElementById('itemParentImage').style.top = document.getElementById("accordion").offsetTop;
document.getElementById('itemParentImage').style.left = "860px"; document.getElementById('itemParentImage').style.left = $(window).width()-210;
document.getElementById('itemParentImage').className = "fadeInDown"; document.getElementById('itemParentImage').className = "fadeInDown";
} }
//Show Item Parent Images start [END] //Show Item Parent Images start [END]
......
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