function displayIcon(rowData) {
var str = JSON.parse(rowData);
//new datetime variable
var checktime = new Date();
//add 2 hours - needed to evaluate orange icon
checktime.setHours(checktime.getHours()+2);
//current time
var today = new Date();
//read datetime value - it is returned as a string!
var slastage = str.new_slastageend;
// convert to datetime object
var slastageend = new Date(slastage);
var imgName = "";
var tooltip = "";
compare object
if (checktime.getTime() > slastageend.getTime() && today.getTime() < slastageend.getTime())
{
imgName = "orange.png";
tooltip = "SLA Near Breach";
}
else if (checktime.getTime() < slastageend.getTime())
{
imgName = "green.png";
tooltip = "SLA OK";
}
else if (checktime.getTime() > slastageend.getTime())
{
imgName = "red.png";
tooltip = "SLA Breached";
}
var resultarray = [imgName, tooltip];
return resultarray;
}
Thanks for sharing such a nice info.I hope you will share more information like this. please keep on sharing!
ReplyDeleteInplant training in chennai
Inplant training in chennai for cse
Inplant training in chennai for ece
Inplant training in chennai for mechanical
Inplant training in chennai for ece students
Inplant training in chennai for eee
Inplant training in bmw chennai
Amazing Article, Really useful information I hope to share more information so you will be share and Check here.
ReplyDeleteinternship in chennai for mechanical
internship in chennai for cse students
internship in chennai for eee
internship in chennai for ece students
internship in chennai for bcom students
internship in chennai for mechanical engineering students
python internship in chennai
internship in chennai for it students
companies offering internship in chennai
internship in chennai for it
Help full post, lots of information
ReplyDeleteNatural Language Processing
Natural Language Processing with python
what Natural Language Processing
Natural Language Processing nlp
Natural Language Processing history
What is Affiliate Marketing
Affiliate Marketing on amazon
Affiliate Marketing programs
Affiliate Marketing companies
Affiliate Marketing
Help full post, lots of information
ReplyDeletegazetted officer
z or r twice
what is isp
space complexity
ng-focus
unexpected token o in json at position 1
do a barrel roll 20 times
cannot set headers after they are sent to the client
how to hack any instagram account 100% working
blink html google trick
Super article
ReplyDeleteartificial neural network
what is artificial neural network
what is an artificial neural network
application of artificial neural network
artificial neural network application
artificial neural network pdf
artificial neural network ppt
artificial neural network tutorial
artificial neural network definition
artificial neural network types
Thank you for nice article.I hope you will share more information to be check and share here
ReplyDeleteam pm full forms
nasa full forms
full forms of sap
mba full forms
full forms
full forms of mbbs
atm full forms
Thanks for sharing such a great blog......!!!
ReplyDeletefull form
full form of nrc
nrc full form
mbbs full form
full form of rip