1function getColumnFieldName(n){for(var i,r=[],u=$("#"+n).dxDataGrid("instance"),t=0;t<u.columnCount();t++)i=u.columnOption(t),i.dataField&&r.push(i.dataField);return r}function getParameterByArgs(n){var i,t;if(typeof URLSearchParams!="undefined"&&jQuery.param(n)!==""){t=new URLSearchParams(n);for(let[i,n]of Object.entries(n))t.has(i)?n instanceof Function?t.set(i,n()):t.set(i,n):n instanceof Function?t.append(i,n()):t.append(i,n);i=decodeURIComponent(t.toString())}return i}function initHunextGrid(n,t,i,r,u,f,e,o){var s=function(){var i=$.Deferred(),n,f;return typeof getFilters=="function"&&(r=getFilters(r)),n=getColumnFieldName(t),f="",n&&n.length>0&&(n=n.concat(this.key()),f="?$select="+n.join()),Hunext.ajax({url:u+f,dataType:"json",data:JSON.stringify(r),type:"post",contentType:"application/json"}).then(function(n){i.resolve(n,{totalCount:n.length})},function(){i.reject("Data Loading Error")}),i.promise()};return n||(s=function(){var n=$.Deferred();if(typeof getFilters=="function"&&(r=getFilters(r)),r){let t=u.includes("?"),n;if(typeof URLSearchParams!="undefined"&&jQuery.param(r)!==""){let t=new URLSearchParams(r);for(let[i,n]of Object.entries(r))t.has(i)?n instanceof Function?t.set(i,n()):t.set(i,n):n instanceof Function?t.append(i,n()):t.append(i,n);n=decodeURIComponent(t.toString())}if(t&&jQuery.param(r)!==""){let t=u.slice(-1);if(t==="?")u=u+n;else{let t=u.substr(0,u.indexOf("&"));u=t!==""?t+"&"+n:u+"&"+n}}else t||jQuery.param(r)===""||(u=u+"?"+n)}return Hunext.ajax({url:u,dataType:"json",type:"get",contentType:"application/json"}).then(function(t){n.resolve(t,{totalCount:t.length})},function(){n.reject("Data Loading Error")}),n.promise()}),new DevExpress.data.CustomStore({key:i,load:s,insert:function(n){var t=$.Deferred(),i=Object.assign({},n);return Hunext.ajax({url:o,data:i,type:"post"}).then(function(){t.resolve()},function(n){t.reject(n.responseText)}),t.promise()},update:function(n,t){var i=$.Deferred(),r=Object.assign({},n,t);return Hunext.ajax({url:e,data:r,type:"post"}).then(function(){i.resolve()},function(n){i.reject(n.responseText)}),i.promise()},remove:function(n){var t=$.Deferred(),i=n||{},r="application/x-www-form-urlencoded";return f.indexOf("/api/command/")>-1&&(i=JSON.stringify(i),r="application/json"),Hunext.ajax({url:f,data:i,contentType:r,type:"post"}).then(function(){t.resolve()},function(n){t.reject(n.responseText)}),t.promise()}})}function toAsync(n){var t=new FormData(n[0]);return $.ajax({url:n.attr("action"),data:t,type:n.attr("method"),processData:!1,contentType:!1,cache:!1})}function initHunextPopup(n,t,i,r){function e(n,t){return typeof t.validate=="function"&&(t.validate(),!t.valid())?(n.preventDefault(),!1):(toAsync(t).then(function(n){u.modal("hide");typeof i=="function"&&i(n)},function(n,t,i){typeof r=="function"?r(n,t,i):alert("Salvataggio non riuscito!")}),n.preventDefault(),!1)}function o(n){var i=n||{};Hunext.ajax({url:t,data:i,type:"post"}).then(function(n){f.html(n);var t=$("form",f);t.on("submit",function(n){e(n,t)});u.modal("show")},function(){alert("Errore nel recupero della form!")})}var u=$("#"+n),f=$(".modal-body",u);return{show:o}}function initHunextGridButtonAction(n,t,i,r,u){var f=$("#"+n);f.on("click",function(){typeof hunextLoadingShow=="function"&&hunextLoadingShow();var n=$("#"+t).dxDataGrid("instance"),f=n.getSelectedRowKeys();Hunext.ajax({url:i,data:JSON.stringify(f),contentType:"application/json",type:"post"}).then(function(t){typeof r=="function"&&r(t);typeof hunextLoadingHide=="function"&&hunextLoadingHide();n.refresh()},function(){typeof hunextLoadingHide=="function"&&hunextLoadingHide();typeof u=="function"?u(jqXHR,textStatus,errorThrown):alert("Errore nell'eseguire l'azione richiesta!")})})}function initHunextGridButtonDownload(n,t,i,r){var u=$("#"+n);u.on("click",function(){typeof hunextLoadingShow=="function"&&hunextLoadingShow();var u=$("#"+t).dxDataGrid("instance"),f=u.getSelectedRowKeys(),n=new XMLHttpRequest;n.open("POST",i,!0);n.setRequestHeader("Content-Type","application/json;charset=UTF-8");n.setRequestHeader("RequestVerificationToken",GetAntiXfrsToken());n.responseType="blob";n.onreadystatechange=function(){if(this.readyState==4&&this.status==200){typeof hunextLo
1adingHide=="function"&&hunextLoadingHide();var t=window.URL||window.webkitURL,i=this.response,n=document.createElement("a");n.href=t.createObjectURL(i);n.download=r;n.click()}};n.send(JSON.stringify(f))})}function initHunextGridButtonExport(n,t){var i=$("#"+n);i.on("click",function(){var n=$("#"+t).dxDataGrid("instance");n.exportToExcel(!1)})}function initHunextGridDropdownButton(n,t,i,r,u){var f=$("#"+n+" a");f.on("click",function(){var n;typeof hunextLoadingShow=="function"&&hunextLoadingShow();var f=$(this),o=f.data("val"),c=f.data("todownload"),l=f.data("filename"),s=$("#"+t).dxDataGrid("instance"),h=s.getSelectedRowKeys(),e=i;e=i.indexOf("?")>0?i+"&value="+o:i+"?value="+o;String(c)=="True"?(typeof hunextLoadingShow=="function"&&hunextLoadingShow(),n=new XMLHttpRequest,n.open("POST",e,!0),n.setRequestHeader("Content-Type","application/json;charset=UTF-8"),n.setRequestHeader("RequestVerificationToken",GetAntiXfrsToken()),n.responseType="blob",n.onreadystatechange=function(){if(this.readyState==4&&this.status==200){typeof hunextLoadingHide=="function"&&hunextLoadingHide();var t=window.URL||window.webkitURL,i=new Blob([this.response]),n=document.createElement("a");n.href=t.createObjectURL(i);n.download=l;n.click()}},n.send(JSON.stringify(h))):Hunext.ajax({url:e,data:JSON.stringify(h),contentType:"application/json",type:"post"}).then(function(n){typeof r=="function"&&r(n);typeof hunextLoadingHide=="function"&&hunextLoadingHide();s.refresh()},function(){typeof hunextLoadingHide=="function"&&hunextLoadingHide();typeof u=="function"?u(jqXHR,textStatus,errorThrown):alert("Errore nell'eseguire l'azione richiesta!")})})}var Hunext;(function(n){n.ajax=function(n){return n.headers={RequestVerificationToken:GetAntiXfrsToken()},$.ajax(n)};n.autoPostback=function(n){$(n).closest("form").submit()};n.refreshGrid=function(n){var t=$("#"+n).dxDataGrid("instance");t.refresh()}})(Hunext||(Hunext={}));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.