- TECH_ARCHITECTURE.md: technical blueprint for the new platform - AI_LAYER_DESIGN_NOTES.md: AI agent, event/action, SQL and audit design - Axpert 11.2 web runtime source, structure exports and release notes (reference) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 line
34 KiB
JavaScript
1 line
34 KiB
JavaScript
/*https://web.agile-labs.com/minZIP/*//*version=3.9.1*/function _typeof(e){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var isiOS=(/iPad|iPhone|iPod/i.test(navigator.userAgent)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!window.MSStream,isiPad=isiOS&&!/iPhone|iPod/i.test(navigator.userAgent),appGlobalVarsObject=undefined;function CheckSuccCallBackValidate(){var returnValue=!1,pervsid=eval(callParent("hdnpsid"));return void 0!==pervsid&&""!=pervsid&&getSession("nsessionid",function(e){e.d!=undefined&&e.d!=pervsid&&(callParentNew("","getParent").location.href="../aspx/mainnew.aspx",returnValue=!0)}),returnValue}function SuccCallBackValidate(e){return void 0!==e&&"Duplicate session"==e&&(CheckSuccCallBackValidate(),!0)}iframeScrollFix(),CheckSuccCallBackValidate();try{var mainPageUrl="",isMainPage=!0,linkHref=window.location.href;if(!callParentNew("isDWB")&&(-1!=linkHref.toLowerCase().indexOf("/aspx/tstruct.aspx")||-1!=linkHref.toLowerCase().indexOf("/aspx/iview.aspx")||-1!=linkHref.toLowerCase().indexOf("/aspx/ivtoivload.aspx")||-1!=linkHref.toLowerCase().indexOf("/aspx/ivtstload.aspx"))){var parentPage=callParentNew("","getParent");parentPage!=undefined&&parentPage.document!=undefined&&(mainPageUrl=parentPage.document.URL),mainPageUrl!=undefined&&""!=mainPageUrl&&-1!=mainPageUrl.toLowerCase().indexOf("/aspx/mainnew.aspx")||(isMainPage=!1,mainPageUrl=GetMainPageUrl()),!isMainPage&&mainPageUrl.toLowerCase().indexOf("/aspx/mainnew.aspx")>-1&&LoadMainPage(mainPageUrl,linkHref)}}catch(ex){console.warn("Error in GetMainPageUrl call : "+ex.message)}function LoadMainPage(e,t){try{SetSession({key:"PageToLoad",val:t,appendVal:!0,async:!0,delimiter:"♠",cb:function(t){e+="#url=sess",window.location.href=e}})}catch(ex){console.warn("Error in LoadMainPage call : "+ex.message)}}function GetMainPageUrl(){var e="";try{var t=window.location.href;-1!==t.indexOf("/aspx/")&&(e=(t=t.substring(0,t.indexOf("/aspx/")+6))+"Mainnew.aspx")}catch(ex){console.warn("Error in GetMainPageUrl call : "+ex.message)}return e}function ClearRedisKeys(rsKeys){var clearrsKeys=rsKeys.split("*"),settings=redisNodeApiSettings();settings.url=eval(callParent("nodeApi"))+"clearkeys",settings.data.rKey=JSON.stringify(clearrsKeys),settings.data.rUtl=eval(callParent("redisUtl")),$.ajax(settings).done(function(e){e.status})}function PeriodicRefreshCache(){var settings=redisNodeApiSettings();settings.url=eval(callParent("nodeApi"))+"periodicrefresh",settings.data.utl=eval(callParent("utl")),settings.data.rUtl=eval(callParent("redisUtl")),$.ajax(settings).done(function(e){e.status})}var redisNodeApiSettings=function(){return{async:!0,crossDomain:!0,method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},data:{}}},initReadyComplete=!1;function commonReadyTasks(){if(initReadyComplete)ShowDimmer("false");else{void 0===appGlobalVarsObject&&(appGlobalVarsObject=callParentNew("appGlobalVarsObject")),closeParentFrame(),ShowDimmer("false"),checkSuccessAxpertMsg();try{"middle1"==window.frameElement.id&&callParentNew("middle1URL=",window.location.href)}catch(ex){}resetMainPageUI(),initReadyComplete=!0}}function iframeScrollFix(){["iview.aspx","tstruct.aspx","ExportNew.aspx","ImportNew.aspx","adminconsole.aspx","WorkflowNew.aspx"].filter(function(e){return window.location.href.toLowerCase().indexOf("/".concat(e.toLowerCase()))>-1}).length>0&&$("html").addClass("iframeScrollFix")}function resetMainPageUI(){try{$(callParentNew(appGlobalVarsObject._CONSTANTS.search.staging.div.substr(1),"id")).val(""),$(callParentNew(appGlobalVarsObject._CONSTANTS.search.staging.divparent.substr(1),"class")).removeClass("open")}catch(ex){}try{var e=$(callParentNew("homePageBody","class"));e&&!e.hasClass("enableExpandCollapse")&&(e.removeClass("overlay-open"),e.find(".overlay").fadeOut())}catch(ex){}}function validateFilesize(){var attachement=document.getElementById("filMyFile");attachement.onchange=function(){var fileType="File",attachmentSizeMB=callParentNew("axAttachmentSize","axAttachmentSize")==undefined?1:callParentNew("axAttachmentSize","axAttachmentSize"),fileUploadLimit=1024*attachmentSizeMB*1024;$j("#imgUploadLimit").length&&(fileType="Image");for(var i=0;i<attachement.files.length;i++){var file=attachement.files[i];if(null==file||file.size>fileUploadLimit)null==file?"File"==fileType?$("#fileuploadsts").text("["+eval(callParent("lcm[80]")).replace("{0}",attachmentSizeMB)+"]"):$("#fileuploadsts").text("["+eval(callParent("lcm[81]")).replace("{0}",attachmentSizeMB)+"]"):"File"==fileType?$("#fileuploadsts").text("["+eval(callParent("lcm[82]")).replace("{0}",attachmentSizeMB)+"]"):$("#fileuploadsts").text("["+eval(callParent("lcm[83]")).replace("{0}",attachmentSizeMB)+"]"),ResetFileUploadProperties();else{var fileName=file.name;fileName.indexOf("+")>-1?($("#fileuploadsts").text("[FileName should not contain '+' character.]"),ResetFileUploadProperties()):-1==fileName.indexOf(".")?($("#fileuploadsts").text(eval(callParent("lcm[362]"))),ResetFileUploadProperties()):("File"==fileType?$("#fileuploadsts").text("[Click 'Attach' button]"):$("#fileuploadsts").text("[Click 'Upload' button]"),$("#fileuploadsts").css("color","Green"),$(".file-upload.active .file-select .file-select-button").css({background:"#3fa46a"}),$(".file-upload.active .file-select").css({"border-color":"#3fa46a"}))}}}}function ValidateFileExtension(e,t,n){try{var a=ax_changeValidateFileExtensionParams(e,t,n);"object"==_typeof(a)?("undefined"!=typeof a.filename&&(e=a.filename),"undefined"!=typeof a.fileType&&(t=a.fileType),"undefined"!=typeof a.CustomList&&(n=a.CustomList)):"string"==typeof a&&(t=a)}catch(ex){}var o=e.split(".").pop().toLowerCase();return"image"==t?-1!=$.inArray(o,["gif","png","jpg","jpeg","bmp","tiff","tif","heic","jfif"]):"file"==t?-1!=$.inArray(o,["bmp","jpg","jpeg","pjpeg","png","doc","gif","docx","xml","xls","ppt","pdf","txt","xlsx","pwd","tiff","tif","dib","jfif","heic","xlxs","csv","html","css","js","htm","eml","msg","pptx"]):"CustomList"==t?!$.inArray(o,-1==n):void 0}function ResetFileUploadProperties(){$("#fileuploadsts").css("color","#DB2222"),$("#filMyFile")[0].value="",$("#noFile")[0].textContent=eval(callParent("lcm[66]")),$(".file-upload.active .file-select .file-select-button").css({background:"grey"}),$(".file-upload.active .file-select").css({"border-color":"grey"})}function checkSuccessAxpertMsg(){var e=window.localStorage.getItem("axpertSuccessMessage");e&&(showAlertDialog("success",e),valoutput=window.localStorage.removeItem("axpertSuccessMessage"))}function disableBackDrop(e,t){if("destroy"==e)return jQuery(document).unbind("keyup.cnfrmPopupKU"),void jQuery(document).unbind("keydown.cnfrmPopupKD");jQuery(document).bind("keyup.cnfrmPopupKU",function(e){}),jQuery(document).bind("keydown.cnfrmPopupKD",function(e){var n='button[tabindex!="-1"],a[tabindex!="-1"],input[tabindex!="-1"],select[tabindex!="-1"],textarea[tabindex!="-1"]';e.shiftKey||9!=e.keyCode?e.shiftKey&&9==e.keyCode?$(document.activeElement)[0]==$(".jconfirm-box").find(n).first()[0]&&(e.preventDefault(),$(".jconfirm-box").find(n).last().focus()):27==e.keyCode&&(e.preventDefault(),t&&$(".jconfirm-box .jconfirm-buttons .coldbtn").click()):$(document.activeElement)[0]==$(".jconfirm-buttons button:last")[0]&&(e.preventDefault(),$(".jconfirm-box").find(n).first().focus())}),$(".jconfirm-buttons button").each(function(){var e=$(this).text();$(this).prop("title",e.charAt(0).toUpperCase()+e.slice(1))}),$(".jconfirm-buttons .hotbtn").focus()}function callParent(name,type){var hirarchy="window";try{void 0===eval(name)&&(hirarchy+=".parent")}catch(ex){hirarchy+=".parent"}for(var maxParentToCheck=10,reachedCntPlcHlder=!1,i=0;i<maxParentToCheck;i++)try{if(!reachedCntPlcHlder&&checkForCntPlcHldrFrame(hirarchy))reachedCntPlcHlder=!0;else if(reachedCntPlcHlder)break;if("id"==type||"class"==type){var byName="";if(byName="id"==type?"Id":"sByClassName",null==eval(hirarchy+".document.getElementBy"+byName+"('"+name+"')")){hirarchy+=".parent";continue}return hirarchy+".document"}if("function"==type)var fParams=name.substr(name.indexOf("(")+1,name.lastIndexOf(")")).slice(0,-1),checkName=name.substr(0,name.indexOf("("));else checkName=name;if(void 0===eval(hirarchy+"."+checkName)){hirarchy+=".parent";continue}return"function"==type?""==fParams?hirarchy+"."+checkName+"()":hirarchy+"."+checkName+"('"+fParams+"')":hirarchy+"."+name}catch(ex){hirarchy+=".parent";continue}}function checkForCntPlcHldrFrame(hirarchy){return eval(hirarchy+".leftMenuWrapper")!=undefined}function callParentNew(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"",t=arguments.length>1?arguments[1]:undefined,n=window,a=!1;"="===(e=e.trim()).substr(e.length-1)&&(e=(e=e.slice(0,-1)).trim(),a=!0);try{"undefined"==typeof window[e]&&(n=window.parent)}catch(ex){n=window.parent}for(var o=!1,i=0;i<10;i++)try{if(!o&&checkForCntPlcHldrFrameNew(n))o=!0;else if(o)break;if("id"==t||"class"==t){var l="id"==t?"ById":"sByClassName",r=n.document["getElement"+l](e);if(null==r){n=n.parent;continue}return r}if("function"==t)var s=e.substr(e.indexOf("(")+1,e.lastIndexOf(")")).slice(0,-1),c=e.substr(0,e.indexOf("("));else c="getParent"==t?e||"leftMenuWrapper":e;if("undefined"==typeof n[c]){n=n.parent;continue}return"function"==t?n[c].apply(this,s.split(",")):"getParent"===t?n:a?(n[e]=t,!0):n[e]}catch(ex){n=n.parent;continue}}function checkForCntPlcHldrFrameNew(e){return e.leftMenuWrapper!=undefined}function chooseFileUpload(e){13==e.keyCode&&$("#filMyFile").click()}function valSessByApi(e){(401===e.statusCode&&"not a valid session"==e.errMsg.toLowerCase()||403===e.statusCode)&&(parent.location.href="sess.aspx")}function closeRemodalPopupOnEsc(){$j("#popupIframeRemodal",parent.document).attr("src")!=undefined&&$j(document).keyup(function(e){27===e.keyCode&&$j(".remodal-close",parent.document).click()})}function IFrameModalDialogTabEvents(e){var t=$("#form1").find('button[tabindex!="-1"],a[tabindex!="-1"],input[tabindex!="-1"],select[tabindex!="-1"],radio[tabindex!="-1"]').filter(":visible").not(":disabled");firstInput=t.first(),lastInput=t.last(),""!=e?$("."+e).addClass("firstFocusable"):firstInput.addClass("firstFocusable"),lastInput.addClass("lastFocusable"),$(".firstFocusable").focus(),$(".lastFocusable").on("keydown.tabRot",function(e){9!==e.which||e.shiftKey||(e.preventDefault(),$(".firstFocusable").focus())}),$(".firstFocusable").on("keydown.tabRot",function(e){9===e.which&&e.shiftKey&&(e.preventDefault(),$(".lastFocusable").focus())}),$(".file-select").on("keydown",function(e){13==e.which&&$("#filMyFile").click()})}$(document).click(function(e){-1===document.URL.indexOf("aspx/mainnew.aspx")&&callParentNew("createMobileQRcode(destroy)","function");$("#menuContentWrapper",window.parent.document);var t=$("#hamburgerMenuIcon",window.parent.document);if($(e.target).hasClass("menuName")||$(e.target).hasClass("hasSubChildIcon")||$(e.target).hasClass("menuBgIcon")||$(e.target).hasClass("hasSubChild")||$(e.target).hasClass("hirarchy")||"menuContentWrapper"==$(e.target).attr("id")||"hamburgerMenuIcon"==$(e.target).attr("id")||0!==$(e.target).parents("#hamburgerMenuIcon").length||0!==$(e.target).parents("#menuContentWrapper").length||0!==$(e.target).parents(".mnuPagination").length||!t.hasClass("is-active"))try{if(window.currentThemeColor===undefined)(n=$(".panel-control,#customizer",window.parent.document)).is(e.target)||0!==n.has(e.target).length||$("#customizer",window.parent.document).hasClass("panel-open")&&$("#customizer",window.parent.document).removeClass("panel-open");else if(window.currentThemeColor){var n;(n=$(".panel-control,#customizer")).is(e.target)||0!==n.has(e.target).length||$("#customizer").hasClass("panel-open")&&$("#customizer").removeClass("panel-open")}}catch(ex){console.log(ex.message)}else t.find("button").click()});var dialogWindow="";function displayBootstrapModalDialog(header,modalType,height,isIFrame,htmlContentOriFrameUrl,requiredConfirm,dialogLoadEvent,dialogUnloadEvent){height=""==height||height==undefined?"250px":height,modalType=""==modalType||modalType==undefined?"md":modalType,requiredConfirm=""!=requiredConfirm&&requiredConfirm!=undefined,closeIcon=requiredConfirm?"confirm-modal-close":"modal",langAlignment="en"===eval(callParent("gllangType"))?"right":"left";var modalId="divModal"+header.split(" ").join(""),iFrameId="iFrame"+header.split(" ").join("");$("#"+modalId).next().hasClass("modal-backdrop")&&$("#"+modalId).next().remove(),$("#"+modalId).remove();var modalHtml="";setTimeout(function(){modalHtml+='<div class="custom-dialog modal fade" id="'+modalId+'" role="dialog" data-iframe-src="'+(isIFrame?htmlContentOriFrameUrl:"")+'" data-keyboard="false" data-confirm-leave="'+requiredConfirm+'" data-iframe-id="'+iFrameId+'"><div class="modal-dialog modal-'+modalType+'"><div class="modal-content"><div class="modal-header"><h4 class="modal-title" id="divModalHeader">'+header+'</h4></div><div class="modal-body">',modalHtml+=isIFrame?'<iframe src="'+htmlContentOriFrameUrl+'" style="width: 100%;height: '+height+';border: none;" id="'+iFrameId+'"></iframe>':'<div id="htmlContentOriFrameUrl" style="height:'+height+'">'+("string"==typeof htmlContentOriFrameUrl?htmlContentOriFrameUrl:"")+"</div>",$("body").append(modalHtml),"object"==_typeof(htmlContentOriFrameUrl)&&$("#htmlContentOriFrameUrl").append(htmlContentOriFrameUrl),$("#"+modalId).on("shown.bs.modal",function(){dialogLoadEvent&&dialogLoadEvent()}),$("#"+modalId).on("hide.bs.modal",function(){dialogUnloadEvent&&dialogUnloadEvent()}),setTimeout(function(){removeUnclickableMenuCssClass(),$("#btnModalClose").addClass("d-none")},1e4),isIFrame?(iframe=eval(callParent(iFrameId,"id")+".getElementById('"+iFrameId+"')"),null!=iframe&&(iframe.onload=function(){$("#"+modalId).modal("show"),removeUnclickableMenuCssClass();var e=$("#"+modalId).attr("data-iframe-src"),t=$(iframe).contents().find("#form1").attr("action");void 0!==t&&e.indexOf(t.substr(1))<0&&$(iframe).contents().find("#goback").hide(),dialogWindow=document.getElementById(iFrameId),$(iframe.contentWindow.document).keydown(function(e){if(27==e.which){var t="true"===$(".modal").filter(".in").attr("data-confirm-leave");$(".modal").filter(".in").attr("data-iframe-id");t&&dialogWindow!=undefined&&dialogWindow.contentWindow.checkIfFormChanges!=undefined&&dialogWindow.contentWindow.checkIfFormChanges()?dialogWindow.contentWindow.ConfirmLeave():closeModalDialog()}}),requiredConfirm?$("#"+modalId).on("shown.bs.modal",function(){$("[data-dismiss='confirm-modal-close']").unbind("click").bind("click",function(){dialogWindow!=undefined&&dialogWindow.contentWindow.checkIfFormChanges!=undefined&&dialogWindow.contentWindow.checkIfFormChanges()?dialogWindow.contentWindow.ConfirmLeave():closeModalDialog(),actionsClicked=""}),$(".modal.in").length>0&&$(".navbar-inner").unbind("click").bind("click",function(e){"Li1"!=$(e.target)[0].id&&(dialogWindow!=undefined&&dialogWindow.contentWindow.checkIfFormChanges!=undefined&&dialogWindow.contentWindow.checkIfFormChanges()?$(e.target).closest("li").length>0&&"li_Logout"==$(e.target).closest("li")[0].id?dialogWindow.contentWindow.removeConfirmDialog():dialogWindow.contentWindow.ConfirmLeave():closeModalDialog())}),$("body :not(.modal-header)").find(".modal").unbind("click").bind("click",function(e){$(e.target)[0].id==modalId&&dialogWindow!=undefined&&dialogWindow.contentWindow.checkIfFormChanges!=undefined&&dialogWindow.contentWindow.checkIfFormChanges()?dialogWindow.contentWindow.checkIfFormChanges():closeModalDialog(),actionsClicked=""}),$("body").find(".modal").unbind("click").bind("click",function(e){$(e.target).hasClass("fade")&&$(e.target).hasClass("in")&&dialogWindow!=undefined&&dialogWindow.contentWindow.waitDialogUntilFormLoad!=undefined&&dialogWindow.contentWindow.waitDialogUntilFormLoad||($(e.target).hasClass("fade")&&$(e.target).hasClass("in")&&dialogWindow!=undefined&&dialogWindow.contentWindow.checkIfFormChanges!=undefined&&dialogWindow.contentWindow.checkIfFormChanges()?dialogWindow.contentWindow.ConfirmLeave():$(e.target).hasClass("fade")&&$(e.target).hasClass("in")&&closeModalDialog(),actionsClicked="")})}):$("#"+modalId).on("shown.bs.modal",function(){$(".navbar-inner").unbind("click").bind("click",function(){$(".navbar-inner").unbind("click"),$(".modal.in").length>0&&closeModalDialog()})}).on("hidden.bs.modal",function(){$(".navbar-inner").unbind("click"),closeModalDialog()}).on("hide.bs.modal",function(){$(".navbar-inner").unbind("click"),$("#"+modalId).next().hasClass("modal-backdrop")&&$("#"+modalId).next().remove(),setTimeout(function(){$("#"+modalId).remove()},300)})})):($("#"+modalId).modal("show"),$("body").keydown(function(e){27==e.which&&(closeModalDialog(),e.stopPropagation())}))},200)}function BootstrapDialogAppParamsShow(){var e=new BSModal("ApplicationParams","Application Params","<iframe src='../aspx/ParamsTstruct.aspx?transid=axglo&recordid=1' class='vw-100 vh-100'></iframe>",function(){$(".btn-close").focus()},function(){});e.changeSize("fullscreen"),e.hideFooter(),e.modalBody.classList.add("p-0"),e.close()}function closeModalDialog(){if($(".jconfirm-box").length)$(".jconfirm-box .jconfirm-buttons .coldbtn").click();else{var e=0;$(".modal").each(function(){e++}),$($(".modal")[e-1]).next().hasClass("modal-backdrop")&&$($(".modal")[e-1]).next().remove(),$($(".modal")[e-1]).modal("hide"),setTimeout(function(){$($(".modal")[e-1]).remove(),iFrameId=$(".custom-dialog").attr("data-iframe-id"),dialogWindow=document.getElementById(iFrameId)},300),removeUnclickableMenuCssClass()}}function removePageHeaders(){var e={};"ar"==gllangType?(!0,e={opacity:"1",position:"absolute","background-color":"rgb(255 255 255)",height:"33px",width:"33px",cursor:"pointer","-webkit-transition":"color .2s",transition:"color .2s",color:"#95979c","border-radius":"50%","font-size":"20px",top:"2px",right:"4px"}):(!1,e={opacity:"1",position:"absolute","background-color":"rgb(255 255 255)",height:"33px",width:"33px",cursor:"pointer","-webkit-transition":"color .2s",transition:"color .2s",color:"#95979c","border-radius":"50%","font-size":"20px",top:"2px",right:"4px"});var t=$(".custom-dialog.modal[id^=divModal]:eq(0)").attr("id");$(".custom-dialog.modal[id^=divModal]:eq(0)").data("iframeId");$("#"+t+" .modal-content .modal-body").css({padding:"0px"}),$("#"+t+" .modal-content .modal-header").hide(),$("#"+t+" .modal-content .modal-body").prepend($("#"+t+" .modal-content #btnModalClose").detach()),$("#"+t+" .modal-content #btnModalClose").css(e),$("#"+t+" .modal-dialog").css({margin:"0px auto"}).parent().css({top:"25px"})}function removeUnclickableMenuCssClass(){$("#settingdropdown, #ExportImportCogIcon").removeClass("menu-not-allowed")}function getSession(e,t){$.ajax({type:"POST",url:"../WebService.asmx/GetSession",cache:!1,async:!1,contentType:"application/json;charset=utf-8",data:JSON.stringify({key:e}),dataType:"json",success:function(e){"function"==typeof t&&t(e)}})}function SetSession(e){var t=e.key,n=e.val,a=e.async,o=void 0===a||a,i=e.cb,l=void 0===i?function(){}:i,r=e.appendVal,s=void 0!==r&&r,c=e.delimiter,d=void 0===c?"":c;try{$.ajax({type:"POST",url:"../WebService.asmx/SetSession",cache:!1,async:o,contentType:"application/json;charset=utf-8",data:JSON.stringify({key:t,val:n,appendVal:s,delimiter:d}),dataType:"json",success:function(e){"function"==typeof l&&l(e)}})}catch(ex){console.warn("Error in SetSession Ajax call : "+ex.message)}}function GetNewTabPageSess(e){var t=e.key,n=e.cb;try{$.ajax({type:"POST",url:"../WebService.asmx/GetNewTabPageSess",cache:!1,async:!0,contentType:"application/json;charset=utf-8",data:JSON.stringify({key:t}),dataType:"json",success:function(e){"function"==typeof n&&n(e)}})}catch(a){console.warn("Error in GetNewTabPageSess Ajax call : "+ex.message)}}function tabFocusEventHandler(e,t,n,a,o){if("unbind"!==e){var i=$("#"+t),l=i.find("a:visible,input:enabled,select:enabled,button:enabled,textarea:enabled").not("[tabindex='-1']");if(l.first().focus(),n){var r=l.first(),s=l.last();$(document).off("keydown.loopingInsideParent"+t),(a!=undefined&&a?i:$(document)).on("keydown.loopingInsideParent"+t,function(e){e.shiftKey||9!=e.keyCode?e.shiftKey&&9==e.keyCode&&$(document.activeElement)[0]==r[0]&&(e.preventDefault(),s.focus()):$(document.activeElement)[0]==s[0]&&(e.preventDefault(),r.focus())})}}else $(document).off("keydown.loopingInsideParent"+t)}function UnlockConfigApp(e){var t=e.forceUnlock,n=void 0!==t&&t,a=e.cb;try{$.ajax({type:"POST",url:"../WebService.asmx/UnlockConfigApp",data:JSON.stringify({forceUnlock:n}),cache:!1,async:!0,contentType:"application/json;charset=utf-8",dataType:"json",success:function(e){"function"==typeof a&&a(e)}})}catch(ex){console.warn("Error in UnlockConfigApp : "+ex.message)}}$(document).ready(function(){void 0===appGlobalVarsObject&&(appGlobalVarsObject=callParentNew("appGlobalVarsObject")),setHybridLocations(),$("div").scroll(function(){$("#ui-datepicker-div, .ui-widget-content.acOpen").hide()}),$(".modal-dialog-events, .modal-dialog-events-settings").click(function(){$("#settingdropdown, #ExportImportCogIcon").addClass("menu-not-allowed")}),isMobileDevice()&&(document.oncontextmenu=function(){return!1}),appGlobalVarsObject&&appGlobalVarsObject._CONSTANTS.isHybridAddressBarVisible&&$("body").addClass("isHybridAddressBarVisible")}),$(window).bind("load",function(){return!$(window.frameElement).hasClass("bootStrapModal")&&((!window||!window.frameElement||"popupIframeRemodal"!=window.frameElement.id)&&((!window||!window.frameElement||"axpiframeac"!=window.frameElement.id)&&((!window||!window.frameElement||0!==window.frameElement.id.indexOf("iFrame"))&&(!("undefined"!=typeof window.location.href&&window.location.href.indexOf("adminconsole.aspx?")>0)&&void callParentNew("updateAppLinkObj("+window.location.href+")","function")))))});var AxClColors={clNone:"transparent",clAqua:"#00FFFF",clBlack:"#000000",clBlue:"#0000FF",clCream:"#FFFBF0",clDkGray:"#808080",clFuchsia:"#FF00FF",clGray:"#808080",clGreen:"#008000",clLime:"#00FF00",clLtGray:"#C0C0C0",clMaroon:"#800000",clMedGray:"#A0A0A4",clMoneyGreen:"#C0DCC0",clNavy:"#000080",clOlive:"#808000",clPurple:"#800080",clRed:"#FF0000",clSilver:"#C0C0C0",clSkyBlue:"#A6CAF0",clTeal:"#008080",clWhite:"#FFFFFF",clYellow:"#FFFF00",clWindowText:"",Clwindow:"#FFFFFF"};function CheckSpecialChars(e){return e==undefined||null==e?"":e=(e=(e=(e=(e=e.replace(/&/g,"&")).replace(/</g,"<")).replace(/>/g,">")).replace(/'/g,"'")).replace(/"/g,""")}function ReverseCheckSpecialChars(e){return e==undefined||null==e?"":e=(e=(e=(e=(e=(e=(e=e.replace(/&/g,"&")).replace(/</g,"<")).replace(/>/g,">")).replace(/'/g,"'")).replace(/"/g,'"')).replace(/ /g," ")).replace(/;bkslh/g,"\\")}function ReverseCheckSpecialCharsInQuery(e){return e==undefined||null==e?"":e=(e=(e=(e=(e=e.replace(/&/g,"&")).replace(/</g,"<")).replace(/>/g,">")).replace(/'/g,"'")).replace(/"/g,'"')}function CheckUrlSpecialChars(e){return e==undefined||null==e?"":e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/%/g,"%25")).replace(/#/g,"%23")).replace(/&/g,"%26")).replace(/'/g,"%27")).replace(/\"/g,"%22")).replace(/\+/g,"%2b")).replace(/</g,"%3C")).replace(/\\/g,"%5C")).Replace(/ /g,"%20")}function findGetParameter(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:location.search,n=null,a=[];return(t=t||"").substr(t.indexOf("?")+1).split("&").forEach(function(t){(a=t.split("="))[0].toLowerCase()===e.toLowerCase()&&(n=decodeURIComponent(a[1]))}),n}function isMobileDevice(){return"undefined"!=typeof window.orientation||-1!==navigator.userAgent.indexOf("Mobile")||isiOS}function getCaseInSensitiveJsonProperty(e,t){var n=new RegExp("^".concat(t,"$"),"i");return Object.keys(e).reduce(function(t,a){return n.test(a)&&t.push(e[a]),t},[])}var loadAndCall=function(e){var t={files:{css:[],js:[]},callBack:"",mapCustomPath:!1,win:window};$.extend(t,e);var n=function i(e){"css"==e&&0==t.files[e].length&&(e="js");var n="..".concat(t.mapCustomPath?"/"+callParentNew("thmProj"):"");if(e&&t.files&&t.files[e]&&t.files[e].length>0){var o=t.files[e].splice(0,1),l=(o[0].indexOf("://")>-1?"":n)+o;if("css"==e)if(t.win.document.getElementsByTagName("head")[0].querySelectorAll("link[href='".concat(l,"']")).length)i(e);else{var r=t.win.document.createElement("link");r.rel="stylesheet",a(r,l,"css")}else if("js"==e)if(t.win.document.getElementsByTagName("head")[0].querySelectorAll("script[src='".concat(l,"']")).length)i(e);else{var s=t.win.document.createElement("script");s.type="text/javascript",a(s,l,"js")}}else t.callBack()},a=function(e,a,o){e.onload=function(){n(o)},e.onerror=function(){n(o)},"css"==o?e.href=a:"js"==o&&(e.src=a),t.win.document.getElementsByTagName("head")[0].appendChild(e)},o="";t.files.css&&t.files.css.length>0?o="css":t.files.js&&t.files.js.length>0&&(o="js"),n(o)},renderTemplete=function(e){var t=document.querySelector(e);if(t){var n=null;if(t.content){n=t.content;try{n.children[0].classList.add("templateRendered")}catch(ex){}}else{n=createElementFromHTML(t.innerHTML);try{n.classList.add("templateRendered")}catch(ex){}}if(n){var a=document.importNode(n,!0);if(a)t.parentElement.insertBefore(a,t)}}};function createElementFromHTML(e){var t=document.createElement("div");return t.innerHTML=e.trim(),t.firstChild}function getClassStartingWith(e,t){return $.grep(e.split(" "),function(e,n){return 0===e.indexOf(t)}).join()}function getRedisString(e,t){var n="";return $.ajax({type:"POST",url:"../WebService.asmx/GetRedisString",cache:!1,async:!1,contentType:"application/json;charset=utf-8",data:JSON.stringify({key:e,id:t}),dataType:"json",success:function(e){null!=e.d&&(n=e.d)}}),n}function setHybridLocations(){appGlobalVarsObject&&appGlobalVarsObject._CONSTANTS.isHybrid&&(navigator.geolocation.getCurrentPositionOld=navigator.geolocation.getCurrentPosition,navigator.geolocation.getCurrentPosition=function(e){var t;try{t=JSON.parse(getRedisString("hybridinfo",callParentNew("hybridGUID"))).location}catch(ex){}return t?e(t):navigator.geolocation.getCurrentPositionOld(e)})}function UpdateExceptionMessageInET(e){var t=top.window.location.href.toLowerCase().substring("0",top.window.location.href.indexOf("/aspx/"));if("undefined"==typeof localStorage["ExecutionLogText-"+t])localStorage.setItem("ExecutionLogText-"+t,e);else{var n=localStorage["ExecutionLogText-"+t];localStorage.setItem("ExecutionLogText-"+t,n+e+"♦")}}function GetProcessTime(){var e=top.window.location.href.toLowerCase().substring("0",top.window.location.href.indexOf("/aspx/")),t=localStorage["BST-"+e],n=new Date(t.split("-")[2].split(" ")[0],t.split("-")[1]-1,t.split("-")[0],t.split(":")[0].split(" ")[1],t.split(":")[1],t.split(":")[2],t.split(".")[1]).getTime(),a=localStorage["ProcessBlockTime-"+e],o=new Date(a.split("-")[2].split(" ")[0],a.split("-")[1]-1,a.split("-")[0],a.split(":")[0].split(" ")[1],a.split(":")[1],a.split(":")[2],a.split(".")[1]).getTime(),i=((new Date).getTime()-o).toFixed(4),l="Preparing request in client, "+i+" ms ♦ ";if(localStorage.setItem("ProcessBlockTimeTaken-"+e,i),"undefined"==typeof localStorage["ExecutionLogText-"+e])localStorage.setItem("ExecutionLogText-"+e,l);else{var r=localStorage["ExecutionLogText-"+e];localStorage.setItem("ExecutionLogText-"+e,r+l)}callParentNew("browserElapsTime=",(new Date).getTime()-n)}function WireElapsTime(e,t){var n=arguments.length>2&&arguments[2]!==undefined&&arguments[2],a=top.window.location.href.toLowerCase().substring("0",top.window.location.href.indexOf("/aspx/")),o=localStorage["ExecutionLogText-"+a];localStorage.setItem("ExecutionLogText-"+a,o+t);var i=localStorage["ProcessBlockTime-"+a],l=new Date(i.split("-")[2].split(" ")[0],i.split("-")[1]-1,i.split("-")[0],i.split(":")[0].split(" ")[1],i.split(":")[1],i.split(":")[2],i.split(".")[1]).getTime(),r=(new Date).getTime()-l;r-=parseFloat(e),r=(r-=localStorage["ProcessBlockTimeTaken-"+a]).toFixed(4);var s="";s=n?o+t+"Request and Response wire transfer time "+r+" ms ♦ ":o+t+"Response received in client, wire transfer time "+r+" ms ♦ ",localStorage.setItem("ExecutionLogText-"+a,s);var c=new Date,d=c.getDate()+"-"+(c.getMonth()+1)+"-"+c.getFullYear()+" "+c.getHours()+":"+c.getMinutes()+":"+c.getSeconds()+"."+c.getMilliseconds();localStorage.setItem("ProcessBlockTime-"+a,d)}function GetCurrentTime(e){var t=top.window.location.href.toLowerCase().substring("0",top.window.location.href.indexOf("/aspx/")),n=new Date,a=n.getDate()+"-"+(n.getMonth()+1)+"-"+n.getFullYear()+" "+n.getHours()+":"+n.getMinutes()+":"+n.getSeconds()+"."+n.getMilliseconds();localStorage.setItem("ProcessStartTime-"+t,a),localStorage.setItem("ProcessBlockTime-"+t,a),localStorage.setItem("ExecutionLogText-"+t,e+" process started at "+a+" ♦♦ ")}function GetTotalElapsTime(){var e=top.window.location.href.toLowerCase().substring("0",top.window.location.href.indexOf("/aspx/")),t=localStorage["ProcessStartTime-"+e],n=new Date(t.split("-")[2].split(" ")[0],t.split("-")[1]-1,t.split("-")[0],t.split(":")[0].split(" ")[1],t.split(":")[1],t.split(":")[2],t.split(".")[1]).getTime(),a=(new Date).getTime(),o=new Date,i=o.getDate()+"-"+(o.getMonth()+1)+"-"+o.getFullYear()+" "+o.getHours()+":"+o.getMinutes()+":"+o.getSeconds()+"."+o.getMilliseconds(),l=a-n,r=localStorage["ExecutionLogText-"+e];if(r+=" ♦ Total time elapsed "+l+" ms ♦ ",r+="Process ended at "+i+" ♦",localStorage.setItem("ExecutionLogText-"+e,r),"undefined"!=typeof localStorage["ExecutionLogText-"+e]){var s=localStorage["ExecutionLogText-"+e];if("undefined"==typeof localStorage["ExecutionFullLog-"+e])localStorage.setItem("ExecutionFullLog-"+e,s);else{var c=localStorage["ExecutionFullLog-"+e];localStorage.setItem("ExecutionFullLog-"+e,c+" ♦♦ "+s)}}}function AdditionalRunTimeMsg(e){var t=top.window.location.href.toLowerCase().substring("0",top.window.location.href.indexOf("/aspx/"));if("undefined"==typeof localStorage["ExecutionLogText-"+t])localStorage.setItem("ExecutionLogText-"+t,e+" ♦ ");else{var n=localStorage["ExecutionLogText-"+t];localStorage.setItem("ExecutionLogText-"+t,n+" ♦ "+e+" ♦ ")}}function iframePopupLoadOpts(e){e[0].contentWindow.$&&(e.contents().find("head").append($('\n <style>\n html {\n overflow: hidden;\n }\n #backforwrdbuttons {\n display: none;\n }\n a[onclick^="javascript:CallListView("] {\n display: none !important;\n }\n #new,.ftbtn_iNewLi {\n display: none !important;\n }\n #dvGoBack {\n display: none !important;\n }\n #ivInSearch {\n right: 30px;\n top:0px;\n }\n .requestJSON #ivInSearch {\n position: absolute;\n }\n .requestJSON.isMobile #ivInSearch {\n right: 40px;\n }\n .requestJSON.requestJsonOldUi #ivInSearch {\n top:5px;\n }\n .btextDir-rtl #ivInSearch {\n left: 25px;\n right: auto;\n }\n .btextDir-rtl.requestJsonOldUi #ivInSearch{\n left:40px;\n top:4px;\n }\n .btextDir-rtl.requestJSON:not(.requestJsonOldUi).isMobile #ivInSearch{\n left: 26px;\n }\n .requestJSON.isMobile #ivInSearch ul#iconsUl,\n .requestJSON.isMobile #ivInSearch ul#iconsExportUl,\n .requestJSON.isMobile #ivInSearch ul.dropDownButton__list.dropdown-menu {\n right: -23px !important;\n }\n .btextDir-rtl.requestJSON.isMobile #ivInSearch ul#iconsUl,\n .btextDir-rtl.requestJSON.isMobile #ivInSearch ul#iconsExportUl,\n .btextDir-rtl.requestJSON.isMobile #ivInSearch ul.dropDownButton__list.dropdown-menu {\n left: -12px !important;\n right: auto !important;\n }\n .requestJSON.isMobile div#searchBar #iconsNew .searchBoxChildContainer {\n right: -17px !important;\n }\n .btextDir-rtl.requestJSON.isMobile div#searchBar #iconsNew .searchBoxChildContainer {\n left: 0px !important;\n right: auto !important;\n }\n .btextDir-rtl div#searchBar {\n right: -16px !important;\n }\n </style>\n ')),e.contents().find("head").append($("\n <script>\n $(document).ready(function () {\n if ($('[id^=gridToggleBtn]').length > 0 && recordid != '0') {\n $($('[id^=gridToggleBtn]')).each(function (index) {\n toggleTheEditLayout($('[id^=gridToggleBtn]')[index].id.substr($('[id^=gridToggleBtn]')[index].id.indexOf('gridToggleBtn') + 13));\n });\n }\n });\n window['isAxpertPopup'] = true;\n <\/script>\n ")))}function getProjectAppLogo(e){var t=arguments.length>1&&arguments[1]!==undefined&&arguments[1],n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:function(e){},a=arguments.length>3&&arguments[3]!==undefined?arguments[3]:function(e){},o="";return $.ajax({type:"POST",url:"../WebService.asmx/GetProjectAppLogo",cache:!1,data:JSON.stringify({projName:e}),contentType:"application/json; charset=utf-8",dataType:"json",async:t,success:function(e){t?n(e):o=e.d},error:function(e){t?a(e):o=data},failure:function(e){t?a(e):o=data}}),o}function createPopup(e){try{var t='<iframe id="'.concat("loadPopUpPage",'" name="').concat("loadPopUpPage",'" class="col-12 flex-column-fluid w-100 h-100 p-0" src="').concat(e,'" frameborder="0" allowtransparency="True"></iframe>'),n=new BSModal("loadPopUpPage","",t);n.changeSize("fullscreen"),n.hideHeader(),n.hideFooter(),n.showFloatingClose(),n.modalBody.classList.add("p-0")}catch(a){showAlertDialog("error",a.message)}}function UrlExists(e){var t=new XMLHttpRequest;return t.open("HEAD",e,!1),t.send(),404!=t.status}$&&($.fn.hasScrollBar=function(){return this.get(0).scrollHeight>this.height()}); |