SLADefinitionAJAX var SLADefinitionAJAX = Class.create(); SLADefinitionAJAX.prototype = Object.e..."/>
您好,登錄后才能下訂單哦!
//script include ->SLADefinitionAJAX var SLADefinitionAJAX = Class.create(); SLADefinitionAJAX.prototype = Object.extendsObject(AbstractAjaxProcessor, { /** * Creates an example breach time message. * * @param sysparm_schedule String schedule id * @param sysparm_duration String duration * * @return String */ getExampleBreachTime: function() { var scheduleId = this.getParameter("sysparm_schedule"); var duration = this.getParameter("sysparm_duration"); if (!duration) return null; var startDate = new GlideDateTime(); var slaDef = new SLADefinition(); slaDef.setSchedule(scheduleId); slaDef.setDuration(duration); var endDate = slaDef.getExampleBreachTime(startDate); if (!endDate) return null; var dateDifference = endDate.getNumericValue() - startDate.getNumericValue(); var actualElapsedTime = new GlideDuration(dateDifference); return gs.getMessage("An SLA starting now will breach on {0} (Actual elapsed time: {1})", [ endDate.getDisplayValue(), actualElapsedTime.getDisplayValue() ]); }, type: 'SLADefinitionAJAX' });
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。