RICERCA VELOCE

              SPEEDY ORDER
Istruzioni
Caricamento file ordini
Nome file: 

Inserisci gli articoli da ordinare
  
Digita parte del codice o del nome articolo per effettuare la ricerca

N.
Codice
Quantità
 
1
2
3
4
5
6
7
8
9
10


Le eventuali righe duplicate saranno cancellate.




I prezzi indicati si intendono IVA esclusa

OFFICE TECHNOLOGY S.r.L.
Via Olanda 5, 21013 Gallarate (VA)
Tel. 0331781447
Email: brunella@officetechonoly.it
P.I. / C.F. 03096070127

var NoResultsLabel = "No Results"; $j(document).ready(function () { $j.ui.autocomplete.prototype._renderItem = function (ul, item) { return $j('
  • ') .data('item.autocomplete', item) .append('' + item.da + '') .appendTo(ul); }; $j('input[id^="cod-"]').autocomplete({ source: "codici.asp", minLength: 3, search: function (event, ui) { $j("#autocompleteResults").empty(); }, focus: function (event, ui) { /*if (ui.item.ca == 0) { event.preventDefault(); }*/ event.preventDefault(); // prevent the input from being updated. Eventualmente inserire codice articolo }, messages: { noResults: '', results: function () { } }, select: function (event, ui) { var obj = $j(this); if (ui.item.ca != 0) { var arrId = obj.attr('id').split('-'); var nrg = arrId[1]; obj.val(ui.item.ca); $j('#qta' + nrg).val(ui.item.uv); } else event.preventDefault(); obj.focus(); return false; } }); // .data("ui-autocomplete")._renderItem = function (ul, item) { // return $j('
  • ') /*return $('
  • ')*/ // //.css('width', '500px').css('cursor', 'pointer') // .append('' + item.cArt + ' - ' + item.dArt + '') // .appendTo(ul); // //.append('' + item.cArt + ' - ' + item.dArt + '...') // //
  • " & rsLista(0) & "%" & rsLista(3) & " - " & rsLista(1) & " - UMV:" & rsLista(3) & "...
  • // }; }); function invia() { var obj = $j('#txtFile'); if (obj.val() == '') { alert("Seleziona il file da trasferire!"); setTimeout(function () { obj.focus(); }, 1); } else { $j('#mas1').submit(); } } function soloNumeri(obj) { var testoNumerico = eval(obj).value; if (isNaN(testoNumerico)) { alert("Inserisci solo valori numerici"); eval(obj).value = ""; eval(obj).focus(); } } function verificavalore(obj) { var testoNumerico = eval(obj).value; if (testoNumerico == '') { alert("Quantità non valida"); eval(obj).value = "1"; eval(obj).focus(); } } function disattiva(x) { document.getElementById("hdnConf").value = ""; document.mas.numeroriga.value = x; document.mas.submit(); } function aggiungi(x) { document.getElementById("hdnConf").value = ""; if (x == 3) { //Aggiunta righe vuote if ((isNaN(document.mas.numero.value)) || (document.mas.numero.value == " ") || (document.mas.numero.value.length) == 0) { alert("Inserire un numero"); return (false); } document.mas.numero.value = eval(document.mas.numero.value) + 5; } else if (x == 2) { //Cancellazione tutte le righe document.getElementById("hdnDel").value = "Cancella"; document.getElementById("hdnConf").value = ""; } else if (x == 1) { document.getElementById("hdnConf").value = "Conferma"; document.getElementById("hdnDel").value = ""; scambio = true; for (var i = 3; i < document.mas.elements.length - 4; i = i + 2) { if (document.mas.elements[i - 1].value != "Cancella") { if (scambio == true) { scambio = false; } else { if (isNaN(document.mas.elements[i - 1].value)) { alert(String.format("Inserisci una quantità valida per la riga {0}", Math.floor(i / 2))); return (false); } scambio = true; } } } } document.mas.submit(); } function goback() { history.go(-2); } function controllapresenza(indice) { for (var i = 1; i <= document.getElementById('Qrighe').value; i++) { if (i != indice) { if (trim(document.getElementById('cod-' + i).value) == trim(document.getElementById('cod-' + indice).value)) { alert("Articolo già presente nella lista. Questa riga sarà cancellata."); document.getElementById('cod-' + indice).value = ''; document.getElementById('qta' + indice).value = ''; setTimeout(function () { document.getElementById('cod-' + indice).focus(); }, 1); return false; } } } } function carica(codart, univen) { var inserito = "N"; for (var i = 1; i <= document.getElementById('Qrighe').value; i++) { if (trim(document.getElementById('cod-' + i).value) == codart) { alert("Articolo già presente nella lista"); return false; } else if (trim(document.getElementById('cod-' + i).value) == '') { document.getElementById('cod-' + i).value = codart; document.getElementById('qta' + i).value = univen; inserito = "S" return false; } } if (inserito == "N") { alert("Impossibile inserire l'articolo. Clicca sull'apposito pulsante per aggiungere altre righe vuote."); return false; } } //Controllo per il campo quantità function CKempty() { /*if (window.confirm('Attenzione, le eventuali righe duplicate verranno cancellate.\nVuoi proseguire l\'operazione?')) {*/ var cont = "N"; var doppio = "N"; for (var i = 1; i <= document.getElementById('Qrighe').value; i++) { if (document.getElementById('cod-' + i).value != '') { if ((isNaN(document.getElementById('qta' + i).value)) || (document.getElementById('qta' + i).value == '')) { alert(String.format("Inserisci una quantità valida per la riga {0}", i)); setTimeout(function () { document.getElementById('qta' + i).focus(); }, 1); return false; } else { doppio = "N"; for (var x = 1; x <= document.getElementById('Qrighe').value; x++) { if (x != i) { if (trim(document.getElementById('cod-' + i).value) == trim(document.getElementById('cod-' + x).value)) { //alert("Articolo già presente nella lista.\nLa riga numero " + i + " verrà cancellata."); document.getElementById('cod-' + x).value = ''; document.getElementById('qta' + x).value = ''; //setTimeout(function(){document.getElementById('cod-'+x).focus();},1); doppio = "S"; //return false; } } } if (doppio == "N" && cont == "N") { cont = "S"; } } } } if (cont == "N") { alert("Inserisci almeno un articolo"); return false; } /*} else { return false; }*/ }