1 2 3jQuery.extend(true, window.EUPORIA.fn.clienti, { 4 5 verificaFormaleCodiceFiscale: function (opts) { 6 7 var defaults = { 8 onSuccessCallback: '', 9 onErrorCallback: '', 10 nazione: '', 11 classe: '', /* A=azienda, P=privato, D=Ditta individuale S=associazione */ 12 codice: '' 13 }; 14 15 opts = jQuery.extend(defaults, opts); 16 17 jQuery.ajax({ 18 type: 'POST', 19 contentType: 'application/json; charset=utf-8', 20 url: '/ws/EUPORIA/Clienti.asmx/VerificaFormaleCodiceFiscale', 21 dataType: 'xml', 22 data: JSON.stringify({ Nazione: opts.nazione, Classe: opts.classe, Codice: opts.codice }), 23 async: true, 24 success: function (data) { 25 if (typeof (opts.onSuccessCallback) == 'function') { 26 opts.onSuccessCallback.apply(jQuery(this), new Array(data)) 27 } 28 }, 29 error: function (result, result2, result3) { 30 if (typeof (opts.onErrorCallback) == 'function') { 31 opts.onErrorCallback.apply(jQuery(this), new Array(result, result2, result3)) 32 } 33 } 34 }); 35 36 }, 37 38 verificaFormalePartitaIVA: function (opts) { 39 40 var defaults = { 41 onSuccessCallback: '', 42 onErrorCallback: '', 43 nazione: '', 44 codice: '' 45 }; 46 47 opts = jQuery.extend(defaults, opts); 48 49 jQuery.ajax({ 50 type: 'POST', 51 contentType: 'application/json; charset=utf-8', 52 url: '/ws/EUPORIA/Clienti.asmx/VerificaFormalePartitaIVA', 53 dataType: 'xml', 54 data: JSON.stringify({ Nazione: opts.nazione, Codice: opts.codice }), 55 async: true, 56 success: function (data) { 57 if (typeof (opts.onSuccessCallback) == 'function') { 58 opts.onSuccessCallback.apply(jQuery(this), new Array(data)) 59 } 60 }, 61 error: function (result, result2, result3) { 62 if (typeof (opts.onErrorCallback) == 'function') { 63 opts.onErrorCallback.apply(jQuery(this), new Array(result, result2, result3)) 64 } 65 } 66 }); 67 68 }, 69 70 salvaCliente: function (opts) { 71 72 var defaults = { 73 onSuccessCallback: '', 74 onErrorCallback: '', 75 azienda: '', 76 codice: '', 77 associaACarrello: true, 78 variabili: [] 79 }; 80 81 opts = jQuery.extend(defaults, opts); 82 83 jQuery.ajax({ 84 type: 'POST', 85 contentType: 'application/json; charset=utf-8', 86 url: '/ws/EUPORIA/Clienti.asmx/SalvaCliente', 87 dataType: 'xml', 88 data: JSON.stringify({ Azienda: opts.azienda, Codice: opts.codice, Variabili: opts.variabili, AssociaACarrello: opts.associaACarrello }), 89 async: true, 90 success: function (data) { 91 if (typeof (opts.onSuccessCallback) == 'function') { 92 opts.onSuccessCallback.apply(jQuery(this), new Array(data)) 93 } 94 }, 95 error: function (result, result2, result3) { 96 if (typeof (opts.onErrorCallback) == 'function') { 97 opts.onErrorCallback.apply(jQuery(this), new Array(result, result2, result3)) 98 } 99 } 100 }); 101 102 }, 103 104 datiCliente: function (opts) { 105 106 var defaults = { 107 onSuccessCallback: '', 108 onErrorCallback: '', 109 azienda: '' 110 }; 111 112 opts = jQuery.extend(defaults, opts); 113 114 jQuery.ajax({ 115 type: 'POST', 116 contentType: 'application/json; charset=utf-8', 117 url: '/ws/EUPORIA/Clienti.asmx/DatiCliente', 118 dataType: 'xml', 119 data: JSON.stringify({ Azienda: opts.azienda }), 120 async: true, 121 success: function (data) { 122 if (typeof (opts.onSuccessCallback) == 'function') { 123 opts.onSuccessCallback.apply(jQuery(this), new Array(data)) 124 } 125 }, 126 error: function (result, result2, result3) { 127 if (typeof (opts.onErrorCallback) == 'function') { 128 opts.onErrorCallback.apply(jQuery(this), new Array(result, result2, result3)) 129 } 130 } 131 }); 132 133 }, 134 135 agganciaClienteACarrello: function (opts) { 136 137 var defaults = { 138 onSuccessCallback: '', 139 onErrorCallback: '', 140 azienda: '', 141 variabili: [] 142 }; 143 144 opts = jQuery.extend(defaults, opts); 145 146 jQuery.ajax({ 147 type: 'POST', 148 contentType: 'application/json; charset=utf-8', 149 url: '/ws/EUPORIA/Clienti.asmx/AgganciaClienteACarrello', 150 dataType: 'xml', 151 data: JSON.stringify({ Azienda: opts.azienda }), 152 async: true, 153 success: function (data) { 154 if (typeof (opts.onSuccessCallback) == 'function') { 155 opts.onSuccessCallback.apply(jQuery(this), new Array(data)) 156 } 157 }, 158 error: function (result, result2, result3) { 159 if (typeof (opts.onErrorCallback) == 'function') { 160 opts.onErrorCallback.apply(jQuery(this), new Array(result, result2, result3)) 161 } 162 } 163 });
164 165 }, 166 167 salvaIndirizzoDiSpedizione: function (opts) { 168 169 var defaults = { 170 onSuccessCallback: '', 171 onErrorCallback: '', 172 azienda: '', 173 codice: '', 174 associaACarrello: true, 175 variabili: [] 176 }; 177 178 opts = jQuery.extend(defaults, opts); 179 180 jQuery.ajax({ 181 type: 'POST', 182 contentType: 'application/json; charset=utf-8', 183 url: '/ws/EUPORIA/Clienti.asmx/SalvaIndirizzoDiSpedizione', 184 dataType: 'xml', 185 data: JSON.stringify({ Azienda: opts.azienda, Codice: opts.codice, Variabili: opts.variabili, AssociaACarrello: opts.associaACarrello }), 186 async: true, 187 success: function (data) { 188 if (typeof (opts.onSuccessCallback) == 'function') { 189 opts.onSuccessCallback.apply(jQuery(this), new Array(data)) 190 } 191 }, 192 error: function (result, result2, result3) { 193 if (typeof (opts.onErrorCallback) == 'function') { 194 opts.onErrorCallback.apply(jQuery(this), new Array(result, result2, result3)) 195 } 196 } 197 }); 198 199 } 200 201});
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.