/*----------------VARIABILI GLOBALI----------------*/
//VOCI
var language = [];
language["CODICE_PRODOTTO"] = "Item code";
language["DESCRIZIONE"] = "Description";
language["PRODUTTORE"] = "Brand";
language["PREZZO"] = "Price";
language["DATA_VALIDITA"] = "Validity date";
language["QUANTITA"] = "Q.ty";
language["CONTATTO"] = "Reference person";
language["LOCALITA"] = "Locality";
language["NOTE"] = "Note";
language["NONOTE"] = "No note found";
language["LOGO"] = "Logo";
language["CANCELLA"] = "Delete";
language["AGGIUNGI"] = "Add";
language["AGGIUNGIFIL"] = "Add filter";
language["GRUPPO"] = "Group";
language["PER_CODICE"] = "By code";
language["UGUALE"] = "Equal";
language["INIZIA"] = "Begin";
language["SIMILE"] = "Similar";
language["CODICE_WVA"] = "WVA code";
language["PER_DESCRIZIONE"] = "By description";
language["RICERCA_AVANZATA"] = "Advanced search";
language["PER_PRODUTTORE"] = "By manufacturer";
language["PRODUTTTORE"] = "Brand";
language["PER_GRUPPO"] = "By assemblage group";
language["REIMPOSTA"] = "Reset";
language["INIZIA_RICERCA"] = "Start search";
language["FILTRO"] = "Filter";
language["RIMUOVI_FILTRO"] = "Remove filter";
language["CODICE"] = "Code";
language["CRITERI"] = "Selection criteria";
language["OBBLIGATORI"] = "Mandatory";
language["FACOLTATIVI"] = "Proposed";
language["ANNULLA"] = "Cancel";
language["TIPO_GRAFICO"] = "Chart type";
language["CHIUDI"] = "Close";
language["IMMAGINE_PROD"] = "Item image";
language["ATTENZIONE"] = "Warning";
language["MSG_ATTENZIONE"] = "Compile some following fields:
Code
Description
Manufacturer
Assemblage group
";
language["MSG_ARTICOLO_PRESENTE"] = "Item already inserted in cart. Increase the quantity?";
language["MSG_ARTICOLO_IN_ATTESA"] = "Create a new cart to insert the item or add it to an existing one";
language["PASSWORD_NON_CORR"] = "Password not correspondent";
language["NOME_UTENTE"] = "Username";
language["RAGIONE_SOCIALE"] = "Corporate name";
language["INDIRIZZO"] = "Address";
language["CAP"] = "ZIP code";
language["PROVINCIA"] = "Province";
language["TELEFONO"] = "Telephone";
language["FAX"] = "Fax";
language["MOBILE"] = "Mobile";
language["CODICE_FISCALE"] = "Fiscal code";
language["PARTITA_IVA"] = "VAT number";
language["EMAIL"] = "E-mail";
language["CARICA_LOGO"] = "Upload logo";
language["SALVA"] = "Save";
language["ATTENDERE_PREGO"] = "Please wait...";
language["SALVATAGGIO_IN_CORSO"] = "Data saving in progress...";
language["MODIFICA_DATI"] = "Personal data modification";
language["MSG_MODIFICA_DATI"] = "Data saved successfully";
language["STATO_RICHIESTA"] = "Request status";
language["PROCESSO_FALLITO"] = "Process failed";
language["ERRORE"] = "Error";
language["ELABORAZIONE_IN_CORSO"] = "Elaboration in progress...";
language["ELABORAZIONE_DI"] = "Elaboration of";
language["MSG_CONFERMA_CANC"] = "Are you sure to delete the selected folder and own content?";
language["NUOVA_CARTELLA"] = "New folder";
language["RINOMINA_CARTELLA"] = "Rename folder";
language["CREA"] = "Create";
language["RINOMINA"] = "Rename";
language["NOME_CARTELLA"] = "Folder name";
language["CARICA_FILE"] = "Upload file";
language["MSG_CARICA_FILE"] = "File uploaded successfully";
language["CARICA"] = "Upload";
language["SELEZIONA_FILE"] = "Select file";
language["FILE"] = "File";
language["VALORIZZATO"] = "Valued";
language["NUOVO"] = "New";
language["INSERISCI"] = "Insert";
language["NUOVO_CARRELLO"] = "New cart";
language["MODIFICA_CARRELLO"] = "Update cart";
language["MODIFICA"] = "Modify";
language["AGGIORNA"] = "Update";
language["MSG_CANCELLA_CARRELLO"] = "Delete the selected cart?";
language["MSG_CARRELLO_ATTIVO"] = "The contact has an active cart. Empty the cart before to delete the contact.";
language["AGGIUNGI_PRODOTTO"] = "Add item";
language["RIMUOVI_PRODOTTO"] = "Remove item";
language["MITTENTE"] = "From";
language["DESTINATARIO"] = "To";
language["OGGETTO"] = "Subject";
language["INVIO_DOC_DA_INFORICAMBI"] = "Sending document";
language["MESSAGGIO"] = "Messagge";
language["INVIA"] = "Send";
language["CONFERMA"] = "Confirm";
language["MSG_EMAIL_INVIATA"] = "E-mail sent";
language["FILTRA_PER_VERSIONE"] = "Filter for version";
language["CONFERMA_PWD"] = "Confirm password";
language["GRUPPO_CERCARE"] = "Group to search";
language["CODICE_CERCARE"] = "Code to search";
language["PAGINA"] = "Page";
language["DI"] = "of";
language["NUOVA_CARTELLA"] = "New folder";
language["RIMUOVI_CARTELLA"] = "Delete folder";
language["MSG_RIMUOVI_FILE"] = "Are you sure to delete the selected file?";
language["DA_CODICE"] = "From code";
language["A_CODICE"] = "To code";
language["DATI_AGGIUNTIVI"] = "Additional data";
language["ESPORTA"] = "Export";
language["SELEZIONA"] = "Select";
language["PRODOTTO_RISERVATO"] = "Item having reserved price. Contact the manufacturer or distributer of zone.";
language["LISTINO_RISERVATO"] = "Reserved pricelist. Contact the manufacturer or distributer of zone.";
language["SELEZIONA_REGIONE"] = "Select the region:";
language["TITOLO_CERCA_DISTRIBUTORE"] = "SEARCH THE DISTRIBUTOR {0} OF YOUR ZONE";
language["MSG_SELEZIONA_GRUPPO"] = "Select the type of vehicle to perform the search";
language["MSG_CANCELLA_CARRELLO"] = "Delete the selected cart?";
language["CARICAMENTO_FILE_IN_CORSO"] = "Uploading file in progress...";
language["RECORD_NON_TROVATO"] = "Record not found";
language["TESTO_SEGNALAZIONE"] = "Item code: {0} {1}";
language["INVIA_SEGNALAZIONE"] = "Signal";
language["TIPO_SEGNALAZIONE"] = "Signalling type";
language["SEGNALAZIONE_CODICI"] = "Codes signalling";
language["MSG_SEGNALAZIONE"] = "Dear customer,
thank you for signalling. We will verify the information to the aim to improve the service.
Bancadati Sofinn Staff";
language["PERS"] = "Customize";
language["ESTRAI"] = "Extract";
language["COD_SENZA_PUNTI"] = "Whitout dots";
language["COD_SENZA_SPAZI"] = "Without whitespaces";
language["COD_SENZA_SLASHES"] = "Whitout slashes (/)";
language["COD_SENZA_ZERI_INIZIALI"] = "Whitout leading zeros";
language["COD_SENZA_TRATTINI"] = "Whitout hyphens (-)";
language["SALVA_IMPOSTAZIONI"] = "Save settings";
language["CODICE_PRODUTTORE"] = "Manufacturer code";
language["LISTINO_ORIGINALE"] = "OE flag (YES/NO)";
language["CODICE_VETTURA"] = "Vehicle code";
language["CODICE_SEGNALE"] = "Signal code";
language["CODICE_FAMIGLIA"] = "Family code";
language["CATEGORIA_SCONTO"] = "Discount category";
language["CODICE_CATALOGO"] = "Catalog code";
language["PESO"] = "Weight";
language["CAMPI_EXPORT"] = "Fields to export";
language["TRATTAMENTO_CODICE"] = "Code treatment";
language["CONDIZIONI_EXPORT"] = "Conditions";
language["TESTATA_CAMPI"] = "Header fields";
language["DA_DATA"] = "From date";
language["A_DATA"] = "To date";
language["MSG_NO_ELAB_FILE"] = "Is not possible make elaborations more than once";
language["EXPORT_DELPHI"] = "Delphi layout (YES/NO)";
language["FISSO"] = "Fixed length fields";
language["COMPARA_IMMAGINI"] = "Compare images";
language["CHIUDI_COMPARAZIONE"] = "Close comparison";
language["COMPARATORE_IMMAGINI"] = "Comparator";
language["COMPARA_ORA"] = "Compare now!";
language["COMPONENTI"] = "Components";
language["KIT"] = "Kit";
language["COMPONENTE"] = "Component";
language["KITS"] = "Kits";
language["INCROCIO_DA_OE"] = "Comparison from OE code";
language["TUTTI_CROSS"] = "All cross references";
language["DESC_AMD"] = "List of cross references provided by {0} with competitors";
language["DESC_AMI"] = "List of cross references supplied by other competitors with the code {0}";
language["DESC_AMO"] = "List of cross references generated by OE codes crossed with the code {0} and AM codes of the list";
language["DESC_AMT"] = "Total List of cross references";
language["CODICE_COLLEGATO_OE"] = "OE codes in common";
language["MOSTRA_TUTTI_CROSS"] = "Show the tab All cross references at the beginning";
language["RICHIEDE_RIAVVIO"] = "Requires restart of Catalistino";
language["CERCA_MODELLO"] = "Search the model";
language["SENZA_VIRGOLA"] = "Replace at the price the dot with the comma";
language["OPZIONI_EXPORT"] = "Export options";
language["DISPONIBILITA"] = "Availability";
language["ORDINA"] = "Order";
language["PRODOTTO_NO_MAGAZZINO"] = "The selected item does not exist in this warehouse.";
language["CODICE_CERCATO"] = "Searched code";
language["USATO"] = "Used price";
language["UN"] = "Net used price";
language["NETTO"] = "Net price";
language["FORMATO_FILE"] = "File format";
language["ESTENSIONE_FILE"] = "File extension";
language["SCARICA"] = "Download";
language["AGGIUNGI_COMPETITOR"] = "Add competitor";
language["ELABORAZIONE_COMPLETATA"] = "Processing completed";
language["MARCHIO_RIFERIMENTO"] = "Reference brand";
language["OE_DA_ESTRARRE"] = "OE fields to extract";
language["AM_DA_ESTRARRE"] = "AM fields to extract";
language["COMPETITOR_RAFFRONTO"] = "Competitor {0}";
language["CROSS_DIRETTI"] = "Direct cross references";
language["CROSS_INDIRETTI"] = "Indirect cross references";
language["CROSS_DA_OE"] = "Cross references by crossing through OE";
language["MSG_SELEZIONA_OE_AM"] = "You must select the column OE and/or a competitor";
language["VALNOTA"] = "Select the technical note's value to filter";
language["NOTA"] = "Select the technical note to filter";
language["SFOGLIA"] = "Browse...";
language["AGGIUNGI_OE"] = "Add OE column";
language["APRI_COMPARATORE"] = "Open comparison";
language["COMPARA_NOTE"] = "Compare technical notes";
language["ESTRAI_AM_COLONNE"] = "Extract all AM into the row";
language["TRADE_NUMBER"] = "TRADE NUMBER";
language["MSG_CARATTERI_MIN"] = "Field code must contains at least 3 characters to search in way 'Begin'";
language["ESTRAI_CODICI_INIZIANO"] = "Extracting items beginning with...";
language["ESTRAI_CODICI_FAMIGLIA"] = "Extracting items for family codes";
language["MSG_ESTRAZIONE_VUOTA"] = "Extraction process didn't item results";
language["ESTRAI_CODICI_SCONTI"] = "Extracting items for discount category";
language["APRI_CATALOGO"] = "Open {0} extrenal catalogue";
language["TIPO_LOCATOR"] = "Business unit";
language["PAESE"] = "Country";
language["MSG_SELEZIONA_RIF"] = "You must select the reference brand";
language["SOLO_CROSS"] = "Extract only codes with comparisons";
language["CERCA_MOTORE"] = "Search the engine code";
language["PREZZO_PRECEDENTE"] = "Previous price";
language["DATA_PRECEDENTE"] = "Previous validity date";
language["TIPOLOGIA"] = "Price type";
language["DELTA"] = "Delta web";
language["DELTA_PRECEDENTE"] = "Delta previous price";
language["TRACCIATO_FILE"] = "File layout";
language["ARTICOLI_NON_ASSOCIATI"] = "Items list not inserted";
language["ARTICOLI_ASSOCIATI"] = "All items are inserted";
language["FILTRA_PRODUTTORE"] = "Filter by manufacturer";
language["FILTRA_COSTRUTTORE"] = "Filter by constructor";
language["TUTTI"] = "All";
language["N_TIPO_TECDOC"] = "Type number TECDOC";
language["MSG_GET_TYPENR"] = "The typed code corresponds to more than a vehicle.
Select vehicle to search.
";
language["NESSUN_VEICOLO_TECDOC"] = "No vehicle corresponds at this TECDOC type number";
language["NUMERO_MARCHI"] = "Total brands: ";
language["RICERCA_TARGA"] = "SEARCH BY NUMBER PLATES AND GRAPHICS";
language["TIPO_VETTURA"] = "Vehicle type";
language["ARTICOLO_AGGIUNTO"] = "Item added to cart";
language["ELIMINA_FILE"] = "Delete all {0} files";
language["CONFERMA_ELIMINAZIONE"] = "Are you sure to delete all {0} file processed previously?";
language["FILE_ELIMINATI"] = "Files deleted successfully";
language["AVV_CHIUSURA_NON_CORRETTA"] = "You're about to close Inforicambi incorrectly. Use the logout button.";
language["CONSULTAZIONI_RESTANTI"] = "Remaining number plates: {0}";
language["ULTIMA_TARGA"] = "Last number plates consulted: {0}";
language["PASSWORD"] = "Password";
language["CARRELLI"] = "Shopping carts";
language["MSG_PROD_CAR_ESIT"] = "Do you want to add the item to an existing shopping cart?";
language["MSG_SVUOTA_CARRELLO"] = "Empty the selected cart?";
language["INVIA_ECOMMERCE"] = "AVAILABILITY & PRICE";
language["RICERCA_ARTICOLI_IN_MAG"] = "Items will be search in this store";
language["PER_CATENE"] = "By snow chains";
language["MISURA_PNEUM"] = "Tire size";
language["MISURA_CERCHIO"] = "Wheel size";
language["PREZZO_QR"] = "Last updated price by Quattroruote for consultation purpose only. It may be different from the one in the lists exported from Inforicambi.";
language["PREVENTIVI_RESTANTI"] = "Remaining estimates: {0}";
language["RICAMBIO"] = "SPARE";
language["COSTRUTTORE"] = "Constructor";
language["MODELLO"] = "Model";
language["VERSIONE"] = "Version";
language["DAL"] = "since";
language["FINO_AL"] = "till";
language["SI"] = "YES";
language["NO"] = "NO";
language["TUTTO"] = "All";
language["CODICE_OE"] = "OE code";
language["LATO"] = "Side";
language["ALIMENTAZIONE"] = "Supply";
language["CILINDRATA_CM3"] = "Capacity [cm³]";
language["KW"] = "KW";
language["SISTEMA_TRAZIONE"] = "Traction system";
language["CODICE_COMP"] = "Competitor code";
language["TIPO_COMP"] = "Type of comparison";
language["PORTE"] = "Doors";
language["TRASCINA_X_RID"] = "Drag to resize";
language["PERIODO"] = "Period";
language["COLORE"] = "Color";
language["SOSTITUITI"] = "Substitutions";
language["VEICOLO"] = "Vehicle";
language["ELABORA"] = "Process";
language["SCARICA_OE_MANCANTI"] = "Download missing OE cross references";
language["ULTERIORE_DESCRIZIONE"] = "Further description";
language["PERIODO_COSTRUTTIVO"] = "Constructive period/Car frame";
language["CODIFICA_DISTRIBUTORE"] = "DISTRIBUTOR CODE";
language["ESTRAI_TUTTI"] = "Extract all the competitors";
language["ANALISI"] = "Sofia";
language["MSG_ATTENZIONE_ANALISI"] = "Required fields:
";
language["TIPO_SOSTI"] = "Type of replacement";
language["CODICE_SOSTI"] = "Replacement code";
language["CIRCOLANTE_REGIONE"] = "Vehicles circulating by region";
language["CIRCOLANTE_PROVINCIA"] = "Vehicles circulating by province";
language["ITALIA"] = "ITALY";
language["CIRCOLANTE"] = "circolante";
language["MARCHIO_DISTRIBUTORE"] = "Dealer brand";
language["MARCHIO_COMP"] = "Competitor brand";
language["MOTORE"] = "Engine";
language["NORMATIVA"] = "Regulations";
language["SCARICA_SOSTI"] = "Download the substitutions";
language["ALLESTIMENTO"] = "Equipment";
language["MSG_ATTENZIONE_CIRC_CODICE"] = "Type the item code";
language["MSG_ATTENZIONE_CIRC_APPS"] = "Select at least one of following fields:
";
language["COVERING"] = "Vehicles coverage";
language["VETTURE_AGGIUNTE"] = "Added vehicles for the edition: ";
language["CODICI_AGGIUNTI"] = "Added items for the edition: ";
language["VEICOLI"] = "Vehicles";
language["RISULTATO"] = "Result";
language["RISULTATI"] = "Results";
language["ELENCO_VENDITORI"] = "Sellers list";
language["MSG_GET_MP"] = "
";
language["AGGIUNGI_AL_CARRELLO"] = "Add item to the cart";
language["AGGIUNGI_A_MP"] = "Add item to Spare parts square";
language["AGGIUNGI"] = "Add";
language["MSG_ARTICOLO_IN_ATTESA_LISTA"] = "Create a new list to insert the item or add it to an existing one";
language["DATA_INIZIO_VALIDITA"] = "Beginning validity date";
language["DATA_FINE_VALIDITA"] = "End validity date";
language["NUOVA_LISTA"] = "New list";
language["ATTIVA"] = "Active";
language["LISTA"] = "List";
language["NOME"] = "Name";
language["MODIFICA_LISTA"] = "Edit the list";
language["NOTA_PRODOTTO"] = "Note";
language["MODIFICA_PRODOTTO"] = "Edit item";
language["ATTIVO"] = "Active";
language["PER"] = "for";
language["CARICA_LISTA_FILE"] = "Load list from file";
language["CODICI_RIMANENTI"] = "Remaining codes: {0}";
language["EMAIL_SECONDARIA"] = "Secondary email";
language["MSG_EMAIL_SEC"] = "Use the secondary email for Shopping cart/Spare parts square";
language["WWW"] = "Website";
language["MSG_CARICA_FILE_MP"] = "Before uploading a file, make sure that the list has already been created, so that you can get the Id.
Upload the file according to the following layout:
List id; Item code; Brand code; Price; Note";
language["SELEZIONA_VEICOLO"] = "Select vehicle";
language["CONTATTA_VENDITORE"] = "Contact the seller";
language["MSG_ELIM_ART"] = "Remove the selected item?";
language["MSG_ELIM_LISTA"] = "Remove the selected list?";
language["INVIA_DOCUMENTO"] = "Send email";
language["VENDITORI"] = "Sellers";
language["CLIENTE"] = "Customer";
language["MSG_VENDITORE_EMAIL"] = "Select the sellers to whom you want to send the request.";
language["INVIO_IN_CORSO"] = "Sending in progress...";
language["VUOTO_WHATSAPP"] = "Not include prefix eg. (+39)";
language["VUOTO_TELEGRAM"] = "Insert username without the @";
language["MSG_NO_VENDITORI_ART_CARR"] = "There are no sellers associated with the items in the cart";
language["MSG_EMIL_DEST_VENDITORE"] = "Select the seller";
language["MSG_RINNOVA_LISTA"] = "Renew items on the expiring list?";
language["MSG_RINNOVA_ART"] = "Renew the expiring item?";
language["SPOSTA_ARTICOLO"] = "Move item to other list";
language["SELEZIONA_LISTA"] = "Select list";
language["CLICCA_PIU"] = "Click on the + button to view the alternatives linked to the selected item";
language["MSG_ALTERN_VEND"] = "Seller lists do not contain alternatives";
language["SCARICA_EL_PROD"] = "Download manufacturers list";
language["PREZZO_SU_RICHIESTA"] = "Price upon request";
language["MSG_ART_ASSOCIATO"] = "Seller {0} is already associated for this item. Do you want to associate {1}?";
language["INVIA_EMAIL_CLI"] = "Send email to the customer";
language["INVIA_EMAIL_VEN"] = "Send email to the seller";
language["INVIO_LISTA_INFORICAMBI"] = "Sending items list from Inforicambi";
language["INDIETRO"] = "Go back";
language["PROVINCE"] = "province";
language["TOTALE_VETTURE"] = "Total number of vehicles";
language["TOTALE_CIRC_VEICOLO"] = "Total circulating for the selected vehicle: ";
language["TOTALE_CIRC_REGIONE"] = "Total circulating {0}: {1}";
language["TOTALE_CIRC_VEICOLO_SEL"] = "Total number of vehicles in circulation in the list: {0}";
language["FILTRA_REGIONE"] = "Filter by region";
language["FILTRA_PROVINCIA"] = "Filter by province";
var modello_motore, casa;
var tipo_db = 2;
var ecommerce = "";
var delta = 0;
//PRIMA LETTERA ELENCO PRODUTTORI...
var firstChar = "";
var firstCharExp = "";
var attiva = false;
var tabcross = 0;
//PERCORSI
var path_img = "include/img/";
var path_icons = "include/img/icons/";
var path_download = [];
path_download["INFORICAMBI"] = "download/";
path_download["CHIARO"] = "/u/ftp/chiaro/";
path_download["SIRX"] = "/u/ftp/bancadatie/";
path_download["SIRWIN"] = "/u/ftp/updates/sirwin/tarupg/";
path_download["ASCII"] = "/u/ftp/updates/tar_catalistini/";
path_download["EXCEL"] = "/u/tariffe/";
path_download["LINK_DOWNLOAD_SOFINN"] = "https://tariffe.inforicambi.it/?filename=";
path_download["SCAMBIO_DATI"] = "./scambio_dati/";
var totalRecord = [];
totalRecord["UC"] = totalRecord["LC"] = totalRecord["AP"] = totalRecord["AC"] = totalRecord["SO"] = totalRecord["OE"] = totalRecord["AM"] = totalRecord["ElencoProdotti"] = totalRecord["ElencoRicerca"] = 0;
//ETICHETTE STATUSBAR
var labelStatus = [];
labelStatus["ElencoRicerca"] = labelStatus["ElencoProdotti"] = "Items found: ";
labelStatus["OE"] = labelStatus["AM"] = labelStatus["UC"] = "Cross references found: ";
labelStatus["SO"] = "Substitutions found: ";
labelStatus["AC"] = "Codes found: ";
labelStatus["AP"] = "Applications found: ";
labelStatus["LC"] = "Components found: ";
labelStatus["KI"] = "Kits found: ";
labelStatus["Risultati"] = "Results found: ";
labelStatus["PROVINCE_TROVATE"] = "Provinces found: ";
//DIMENSIONI POPUP
var sizePopUp = [];
//DEFINIZIONI COLONNE GRIGLIE
var columnDef = [];
columnDef["ElencoProdotti"] = [
{header: "", width: 26, align: 'center', dataIndex: 'cmp', hidden: true, menuDisabled: true},
{header: "Item code", sortable: true, width: 150, dataIndex: 'codice'},
{header: "", width: 26, align: 'center', dataIndex: 'crossoe'},
{header: "", width: 26, align: 'center', dataIndex: 'ultcross'},
{header: "", width: 26, align: 'center', dataIndex: 'sostituzioni'},
{header: "", width: 26, align: 'center', dataIndex: 'codifiche'},
{header: "Description", sortable: true, dataIndex: 'art_descr', id: 'art_descr'},
{header: "Brand", sortable: true, width: 120, dataIndex: 'sup_ragsoc'},
{header: "", width: 26, align: 'center', dataIndex: 'applicazione'},
{header: "", width: 26, align: 'center', dataIndex: 'immagine'},
{header: "", width: 26, align: 'center', dataIndex: 'componenti'},
{header: "", width: 26, align: 'center', dataIndex: 'info'}
];
columnDef["ElencoProdottiR"] = [
{header: "", width: 26, align: 'center', dataIndex: 'cmp', hidden: true, menuDisabled: true},
{header: "Item code", sortable: true, width: 150, dataIndex: 'codice'},
{header: "", width: 26, align: 'center', dataIndex: 'crossoe'},
{header: "", width: 26, align: 'center', dataIndex: 'ultcross'},
{header: "", width: 26, align: 'center', dataIndex: 'sostituzioni'},
{header: "", width: 26, align: 'center', dataIndex: 'codifiche'},
{header: "Description", sortable: true, dataIndex: 'art_descr', id: 'art_descr'},
{header: "Brand", sortable: true, width: 120, dataIndex: 'sup_ragsoc'},
{header: "", width: 26, align: 'center', dataIndex: 'applicazione'},
{header: "", width: 26, align: 'center', dataIndex: 'immagine'},
{header: "", width: 26, align: 'center', dataIndex: 'componenti'},
{header: "", width: 26, align: 'center', dataIndex: 'info'}
];
columnDef["AM"] = [
{header: "", width: 26, align: 'center', dataIndex: 'cmp', hidden: true, menuDisabled: true}, {header: "Item code", sortable: true, width: 150, dataIndex: 'codice'},
{header: "", width: 26, align: 'center', dataIndex: 'sostituzioni'},
{header: "", width: 26, align: 'center', dataIndex: 'codifiche'},
{header: "Description", sortable: true, dataIndex: 'art_descr', id: 'art_descr'},
{header: "Brand", sortable: true, width: 120, dataIndex: 'sup_ragsoc'},
{header: "", width: 26, align: 'center', dataIndex: 'applicazione'},
{header: "", width: 26, align: 'center', dataIndex: 'immagine'},
{header: "", width: 26, align: 'center', dataIndex: 'componenti'},
{header: "", width: 26, align: 'center', dataIndex: 'info'}
];
columnDef["AMI"] = [
{header: "", width: 26, align: 'center', dataIndex: 'cmp', hidden: true, menuDisabled: true}, {header: "Item code", sortable: true, width: 150, dataIndex: 'codice'},
{header: "", width: 26, align: 'center', dataIndex: 'sostituzioni'},
{header: "", width: 26, align: 'center', dataIndex: 'codifiche'},
{header: "Description", sortable: true, dataIndex: 'art_descr', id: 'art_descr'},
{header: "Brand", sortable: true, width: 120, dataIndex: 'sup_ragsoc'},
{header: "", width: 26, align: 'center', dataIndex: 'applicazione'},
{header: "", width: 26, align: 'center', dataIndex: 'immagine'},
{header: "", width: 26, align: 'center', dataIndex: 'componenti'},
{header: "", width: 26, align: 'center', dataIndex: 'info'}
];
columnDef["AMO"] = [
{header: "", width: 26, align: 'center', dataIndex: 'cmp', hidden: true, menuDisabled: true}, {header: "Item code", sortable: true, width: 150, dataIndex: 'codice'},
{header: "", width: 26, align: 'center', dataIndex: 'tooltip', renderer: tooltipFormat},
{header: "", width: 26, align: 'center', dataIndex: 'sostituzioni'},
{header: "", width: 26, align: 'center', dataIndex: 'codifiche'},
{header: "Description", sortable: true, dataIndex: 'art_descr', id: 'art_descr'},
{header: "Brand", sortable: true, width: 120, dataIndex: 'sup_ragsoc'},
{header: "", width: 26, align: 'center', dataIndex: 'applicazione'},
{header: "", width: 26, align: 'center', dataIndex: 'immagine'},
{header: "", width: 26, align: 'center', dataIndex: 'componenti'},
{header: "", width: 26, align: 'center', dataIndex: 'info'}
];
columnDef["AMT"] = [
{header: "Item code", sortable: true, width: 150, dataIndex: 'codice'},
{header: "", width: 26, align: 'center', dataIndex: 'sostituzioni'},
{header: "", width: 26, align: 'center', dataIndex: 'codifiche'},
{header: "Description", sortable: true, dataIndex: 'art_descr', id: 'art_descr'},
{header: "Brand", sortable: true, width: 120, dataIndex: 'sup_ragsoc'},
{header: "", width: 26, align: 'center', dataIndex: 'applicazione'},
{header: "", width: 26, align: 'center', dataIndex: 'immagine'},
{header: "", width: 26, align: 'center', dataIndex: 'componenti'},
{header: "", width: 26, align: 'center', dataIndex: 'info'}
];
columnDef["OE"] = [
{header: "Item code", sortable: true, width: 150, dataIndex: 'codice'},
{header: "", width: 26, align: 'center', dataIndex: 'sostituzioni'},
{header: "", width: 26, align: 'center', dataIndex: 'codifiche'},
{header: "Description", sortable: true, dataIndex: 'art_descr', id: 'art_descr'},
{header: "Brand", sortable: true, width: 120, dataIndex: 'sup_ragsoc'},
{header: "", width: 26, align: 'center', dataIndex: 'applicazione'},
{header: "", width: 26, align: 'center', dataIndex: 'immagine'},
{header: "", width: 26, align: 'center', dataIndex: 'info'}
];
columnDef["OEC"] = [
{header: "Item code", sortable: true, width: 150, dataIndex: 'codice'},
{header: "", width: 26, align: 'center', dataIndex: 'sostituzioni'},
{header: "", width: 26, align: 'center', dataIndex: 'codifiche'},
{header: "Description", sortable: true, dataIndex: 'art_descr', id: 'art_descr'},
{header: "Brand", sortable: true, width: 120, dataIndex: 'sup_ragsoc'},
{header: "", width: 26, align: 'center', dataIndex: 'applicazione'},
{header: "", width: 26, align: 'center', dataIndex: 'immagine'},
{header: "", width: 26, align: 'center', dataIndex: 'info'}
];
columnDef["SO"] = [
{header: "Item code", sortable: true, width: 200, dataIndex: 'codice'},
{header: "Description", sortable: true, dataIndex: 'art_descr', id: 'art_descr'},
{header: "Sos. sesp.", sortable: true, width: 70, dataIndex: 'sos_sesp'},
{header: "Subst. rel.", width: 70, align: 'center', dataIndex: 'sos_rap'},
{header: "Sub. date", width: 70, align: 'center', dataIndex: 'sos_data', renderer: dateFormat}
];
columnDef["AC"] = [
{header: "Item code", sortable: true, width: 150, dataIndex: 'codice'},
{header: "Encoding type", sortable: true, width: 200, dataIndex: 'codifica'},
{header: "Description", sortable: true, dataIndex: 'art_descr', id: 'art_descr'},
{header: "Brand", sortable: true, width: 120, dataIndex: 'sup_ragsoc'}
];
columnDef["AP"] = [
{header: "Constructor", sortable: true, width: 200, dataIndex: 'sup_ragsoc'},
{header: "Model", sortable: true, dataIndex: 'mod_descr', id: 'mod_descr'},
{header: "Version", width: 250, sortable: true, dataIndex: 'ver_descr'},
{header: "Engine", sortable: true, width: 80, dataIndex: 'cod_motore'},
{header: "Period", width: 120, align: 'center', sortable: true, dataIndex: 'periodo'},
{header: "Piston disp.", width: 40, align: 'right', dataIndex: 'ver_cilindr'},
{header: "HP", width: 40, align: 'right', dataIndex: 'ver_hp'},
{header: "KW", width: 40, align: 'right', dataIndex: 'ver_kw'}
];
columnDef["APC"] = [
{header: "", width: 26, align: 'center', dataIndex: 'circolante'},
{header: "Constructor", sortable: true, width: 200, dataIndex: 'sup_ragsoc'},
{header: "Model", sortable: true, dataIndex: 'mod_descr', id: 'mod_descr'},
{header: "Period", width: 120, align: 'center', sortable: true, dataIndex: 'periodo'},
{header: "Car body", width: 200, sortable: true, dataIndex: 'descar'},
{header: "Supply", width: 200, sortable: true, dataIndex: 'descom'},
{header: "Piston disp.", width: 40, sortable: true, align: 'right', dataIndex: 'ver_cilindr'},
{header: "HP", width: 40, sortable: true, align: 'right', dataIndex: 'ver_hp'},
{header: "KW", width: 40, sortable: true, align: 'right', dataIndex: 'ver_kw'},
{header: "Regulations", width: 250, sortable: true, dataIndex: 'dsnor'}
];
columnDef["Ricerca"] = [
{header: "", width: 26, align: 'center', dataIndex: 'cmp', hidden: true, menuDisabled: true},
{header: "Item code", sortable: true, width: 250, dataIndex: 'codice'},
{header: "", width: 26, align: 'center', dataIndex: 'crossam'},
{header: "", width: 26, align: 'center', dataIndex: 'crossoe'},
{header: "", width: 26, align: 'center', dataIndex: 'ultcross'},
{header: "", width: 26, align: 'center', dataIndex: 'sostituzioni'},
{header: "", width: 26, align: 'center', dataIndex: 'codifiche'},
{header: "Description", sortable: true, dataIndex: 'art_descr', id: 'art_descr'},
{header: "Brand", sortable: true, width: 120, dataIndex: 'sup_ragsoc'},
{header: "", width: 26, align: 'center', dataIndex: 'applicazione'},
{header: "", width: 26, align: 'center', dataIndex: 'immagine'},
{header: "", width: 26, align: 'center', dataIndex: 'componenti'},
{header: "", width: 26, align: 'center', dataIndex: 'info'}
];
columnDef["Versioni"] = [
{header: "Det.", width: 40, align: 'center', dataIndex: 'ico_det'},
{header: "Version", sortable: true, dataIndex: 'ver_descr', id: 'ver_descr'},
{header: "Period", sortable: true, width: 120, align: 'center', dataIndex: 'periodo'},
{header: "Engine", sortable: true, width: 80, dataIndex: 'cod_motore'},
{header: "Piston disp.", sortable: true, width: 40, align: 'right', dataIndex: 'ver_cilindr'},
{header: "HP", sortable: true, width: 40, align: 'right', dataIndex: 'ver_hp'},
{header: "KW", sortable: true, width: 40, align: 'right', dataIndex: 'ver_kw'}
];
columnDef["Ver_assali"] = [
{header: "Det.", width: 40, align: 'center', dataIndex: 'ico_det'},
{header: "Version", sortable: true, dataIndex: 'ver_descr', id: 'ver_descr'},
{header: "Period", sortable: true, width: 100, align: 'center', dataIndex: 'periodo'},
{header: "Axle type", sortable: true, width: 80, dataIndex: 'tipo_assale'},
{header: "Axle weight", sortable: true, width: 80, align: 'right', dataIndex: 'peso_assale'},
{header: "Brake size", sortable: true, width: 100, align: 'center', dataIndex: 'mis_freno'}
];
columnDef["VersioniMotori"] = [
{header: "Constructor", sortable: true, width:200, dataIndex: 'costruttore', id: 'costruttore'},
{header: "Model", sortable: true, width:200, dataIndex: 'mod_descr', id: 'mod_descr'},
{header: "Version", sortable: true, dataIndex: 'ver_descr', id: 'ver_descr'},
{header: "Period", sortable: true, width: 120, align: 'center', dataIndex: 'periodo'},
{header: "Engine", sortable: true, width: 80, dataIndex: 'cod_motore'},
{header: "Piston disp.", sortable: true, width: 40, align: 'right', dataIndex: 'ver_cilindr'},
{header: "HP", sortable: true, width: 40, align: 'right', dataIndex: 'ver_hp'},
{header: "KW", sortable: true, width: 40, align: 'right', dataIndex: 'ver_kw'}
];
columnDef["articoli"] = [
{id:'ana_ref', header: "User", width: 90, sortable: true, dataIndex: 'ana_ref'},
{id:'venditore', header: "Associate seller", sortable: true, width: 150, dataIndex: 'venditore'},
{id:'art_codice', header: "Item code", width: 140, sortable: true, dataIndex: 'art_codice', editor: editor()},
{id:'art_descr', header: "Description", width: 200, sortable: true, dataIndex: 'art_descr', editor: editor()},
{id:'sup_ragsoc', header: "Brand", width:150,sortable: true, dataIndex: 'sup_ragsoc', editor: editor()},
{id:'qta', header: "Q.ty", width: 40, align: "right", sortable: true, dataIndex: 'qta', editor: editor()},
{id:'importo_netto',header: "Price", width: 80, align: "right", sortable: true, dataIndex: 'importo_netto', editor: editor(), renderer: currencyFormat},
{id:'sc1', header: "Dis.1", width: 40, align: "center", dataIndex: 'sc1', editor: editor()},
{id:'sc2', header: "Dis.2", width: 40, align: "center", dataIndex: 'sc2', editor: editor()},
{id:'sc3', header: "Dis.3", width: 40, align: "center", dataIndex: 'sc3', editor: editor()},
{id:'tot_rigo', header: "Total", width: 80, align: "right", dataIndex: 'tot_rigo', renderer: currencyFormat},
{id:'iva', header: "VAT", width: 40, align: "center", dataIndex: 'iva', editor: editor()},
{id:'marketparts', header: "", width: 26, align: "center", dataIndex: 'marketparts'},
{id:'del', header: "", width: 26, align: "center", dataIndex: 'del'}
];
columnDef["carrello"] = [
{id:'add', header: "", width: 26, align: 'center', hidden: true, dataIndex: "add"},
{id:'ordine', header: "Id", width: 40, align: "right", sortable: true, dataIndex: 'ordine'},
{id:'rag_soc', header: "Shopping cart", sortable: true, dataIndex: 'rag_soc'},
{id:'for_loca', header: "Locality", width:180, sortable: true, dataIndex: 'for_loca'},
{id:'tot', header: "Total", width: 80, align: "right", sortable: true, dataIndex: 'tot', renderer: currencyFormat},
{id:'tot_iva', header: "Total VAT", width: 80, align: "right", sortable: true, dataIndex: 'tot_iva', renderer: currencyFormat},
{id:'datac', header: "Date", width: 70, align: "center", sortable: true, dataIndex: 'datac', renderer: dateFormat},
{id:'note', header: "Note", width: 35, align: "center", dataIndex: 'note'},
{id:'pdf', header: "", width: 26, align: "center", dataIndex: 'pdf'},
{id:'mail_cli', header: "", width: 26, align: "center", dataIndex: 'mail_cli'},
{id:'mail_ven', header: "", width: 26, align: "center", dataIndex: 'mail_ven'},
{id:'mod', header: "", width: 26, align: "center", dataIndex: 'mod'},
{id:'emp', header: "", width: 26, align: "center", dataIndex: 'emp'},
{id:'del', header: "", width: 26, align: "center", dataIndex: 'del'}
];
columnDef["down_tar"] = [
{id:'sup_ragsoc', header: "Brand", sortable: true, dataIndex: 'sup_ragsoc', menuDisabled: true},
{id:'sup_codice', header: "Logo", width: 200, sortable: true, align: 'center', renderer: logo, dataIndex: 'sup_codice', menuDisabled: true},
{id:'reclastagg', header: "Items", width: 100, sortable: true, align: 'right', dataIndex: 'reclastagg', menuDisabled: true},
{id:'pri_dal',header: "Validity date", width: 100, sortable: true, align: 'center', dataIndex: 'pri_dal', renderer: dateFormat, menuDisabled: true},
{id:'ult_aggio_tar',header: "Updating date", width: 100, sortable: true, align: 'center', dataIndex: 'ult_aggio_tar', renderer: dateFormat, menuDisabled: true},
{id:'pers_export', header: "Customize", width: 90, align: 'center', dataIndex: 'pers_export', hidden: true, menuDisabled: true},
{id:'pers_down_export', header: "Custom. download", width: 100, align: 'center', dataIndex: 'pers_down_export', hidden: true, menuDisabled: true},
{id:'chiaro', header: "Full", width: 70, align: 'center', dataIndex: 'chiaro', menuDisabled: true},
{id:'sirx', header: "SirX", width: 60, align: 'center', dataIndex: 'sirx', menuDisabled: true},
{id:'sirwin', header: "SirWin", width: 60, align: 'center', dataIndex: 'sirwin', menuDisabled: true},
{id:'ascii', header: "ASCII", width: 60, align: 'center', dataIndex: 'ascii', menuDisabled: true},
{id:'excel', header: "Excel", width: 60, align: 'center', dataIndex: 'excel', menuDisabled: true}
];
columnDef["contatti"] = [
{header: "Name", sortable: true, dataIndex: 'rag_soc', id: 'rag_soc'}
];
columnDef["Dettagli"] = [
{header: "Details", sortable: true, dataIndex: 'dettaglio', id: 'dettaglio'}
];
columnDef["lista"] = [
{id: 'name', header: "Name", dataIndex: 'name', width: 250, editor: gridEditor},
{header: "Dimension", dataIndex: 'size', width: 100, align: 'right'},
{header: "Last modification", dataIndex: 'modified', width: 150, align: 'center'},
{header: "Permissions", dataIndex: 'perms', width: 100, align: 'center'},
{header: "Owner", dataIndex: 'owner', width: 100, sortable: false, align: 'center'},
{header: "Download", dataIndex: 'down', width: 50, sortable: false, align: 'center'},
{header: "Delete", dataIndex: 'eraser', width: 50, sortable: false, align: 'center'}
];
columnDef["produttori"] = [
{id: 'sup_ragsoc', header: "Brand", sortable: true, dataIndex: 'sup_ragsoc'},
{id: 'sup_codice', header: "Logo", width: 200, align: 'center', renderer: logo, dataIndex: 'sup_codice'},
{id: 'reclastagg', header: "Items", width: 100, sortable: true, align: 'right', dataIndex: 'reclastagg'},
{id: 'pri_dal', header: "Validity date", width: 100, sortable: true, align: 'center', dataIndex: 'pri_dal', renderer: dateFormat},
{id: 'ult_aggio_tar', header: "Updating date", width: 100, sortable: true, align: 'center', dataIndex: 'ult_aggio_tar', renderer: dateFormat},
{id: 'agg', header: "", width: 60, align: 'center', dataIndex: 'agg'}
];
columnDef["allegati"] = [
{id: 'qua_descr', header: "Attachment", dataIndex: 'qua_descr'},
{id: 'icon', width: 30, header: "", dataIndex: 'icon'}
];
columnDef["LC"] = [
Espandi,
{header: "Item code", sortable: true, width: 150, dataIndex: 'codice'},
{header: "", width: 26, align: 'center', dataIndex: 'sostituzioni'},
{header: "", width: 26, align: 'center', dataIndex: 'codifiche'},
{header: "Description", sortable: true, dataIndex: 'art_descr', id: 'art_descr'},
{header: "Brand", sortable: true, width: 120, dataIndex: 'sup_ragsoc'},
{header: "", width: 26, align: 'center', dataIndex: 'applicazione'},
{header: "", width: 26, align: 'center', dataIndex: 'immagine'},
{header: "", width: 26, align: 'center', dataIndex: 'info'}
];
columnDef["SLC"] = [
{header: "Item code", sortable: true, width: 150, dataIndex: 'codice'},
{header: "", width: 26, align: 'center', dataIndex: 'sostituzioni'},
{header: "", width: 26, align: 'center', dataIndex: 'codifiche'},
{header: "Description", sortable: true, dataIndex: 'art_descr', id: 'art_descr'},
{header: "Brand", sortable: true, width: 120, dataIndex: 'sup_ragsoc'},
{header: "", width: 26, align: 'center', dataIndex: 'applicazione'},
{header: "", width: 26, align: 'center', dataIndex: 'immagine'},
{header: "", width: 26, align: 'center', dataIndex: 'info'}
];
columnDef["GR"] = [
{header: "Item code", sortable: true, width: 150, dataIndex: "art_codice", id: "art_codice"},
{header: "Price", width: 130, align: 'right', sortable: true, dataIndex: "pri_prezzo", renderer: currencyFormat, sortType: "asFloat"}
];
columnDef["LIA"] = [
{header: "title", sortable: true, dataIndex: 'qualifica', id: 'qualifica'},
{header: "Price", width: 60, align: 'right', sortable: true, dataIndex: 'pri_prezzo', renderer: currencyFormat, sortType: 'asFloat'}
];
columnDef["Versioni_domus"] = [
{header: "Det.", width: 40, align: 'center', dataIndex: 'ico_det'},
{header: "Version", sortable: true, dataIndex: 'ver_descr', id: 'ver_descr'}
];
columnDef["circolante"] = [
{header: "Region", sortable: true, width: 400, dataIndex: 'dsreg', id: 'dsreg'},
{header: "Province", sortable: true, width: 400, dataIndex: 'dspro'},
{header: "Total", width: 200, align: 'right', dataIndex: 'n_veicoli'}
];
columnDef["news_analisi_vett"] = [
{header: "Constructor", sortable: true, width: 120, dataIndex: 'costruttore'},
{header: "Model", sortable: true, width: 140, dataIndex: 'modello'},
{header: "Version", sortable: true, width: 120, dataIndex: 'versione', id: 'versione'},
{header: "Period", sortable: true, width: 160, align: 'center', dataIndex: 'periodo'},
{header: "Piston disp.", sortable: true, width: 40, align: 'right', dataIndex: 'cilin'},
{header: "KW", sortable: true, width: 40, align: 'right', dataIndex: 'kw'}
];
columnDef["news_analisi_gruppi"] = [
{header: "Group", sortable: true, width: 200, dataIndex: 'gruppo'},
{header: "Spare", sortable: true, width: 200, dataIndex: 'ricambio', id: 'ricambio'},
{header: "Constructor", sortable: true, width: 120, dataIndex: 'costruttore'},
{header: "Model", sortable: true, width: 160, dataIndex: 'modello'},
{header: "Total", sortable: true, width: 60, align: 'right', dataIndex: 'tot_articoli'}
];
columnDef["listaVenditori"] = [
crossVenditoriExpander,
{header: "Seller", sortable: true, width: 150, dataIndex: "ana_ragsoc"},
{header: "Address", sortable: true, dataIndex: "ana_indi", id: "ana_indi"},
{header: "ZIP code", sortable: true, width: 50, dataIndex: "ana_cap"},
{header: "Locality", sortable: true, width: 100, dataIndex: "ana_loca"},
{header: "Province", sortable: true, width: 50, dataIndex: "ana_pro"},
{header: "Telephone", sortable: true, width: 100, dataIndex: "ana_tel"},
{header: "Mobile", sortable: true, width: 100, dataIndex: "ana_cell"},
{header: "WhatsApp", sortable: true, width: 70, align: "center", dataIndex: "whatsapp"},
{header: "Telegram", sortable: true, width: 70, align: "center", dataIndex: "telegram"},
{header: "E-mail", sortable: true, width: 50, align: "center", dataIndex: "email"},
{header: "Website", sortable: true, width: 100, dataIndex: "ana_web"},
{header: "Info", sortable: true, width: 50, align: "center", dataIndex: "mappa"},
{header: "Price", width: 100, align: "right", sortable: true, dataIndex: "prezzo", sortType: 'asFloat'},
{header: "Note", width: 40, align: "center", sortable: true, dataIndex: "nota"}
];
columnDef["listaVenditoriCarrello"] = [
{header: "Seller", sortable: true, width: 150, dataIndex: "ana_ragsoc"},
{header: "Address", sortable: true, dataIndex: "ana_indi", id: "ana_indi"},
{header: "ZIP code", sortable: true, width: 50, dataIndex: "ana_cap"},
{header: "Locality", sortable: true, width: 100, dataIndex: "ana_loca"},
{header: "Province", sortable: true, width: 50, dataIndex: "ana_pro"},
{header: "Telephone", sortable: true, width: 100, dataIndex: "ana_tel"},
{header: "Mobile", sortable: true, width: 100, dataIndex: "ana_cell"},
{header: "WhatsApp", sortable: true, width: 70, align: "center", dataIndex: "whatsapp"},
{header: "Telegram", sortable: true, width: 70, align: "center", dataIndex: "telegram"},
{header: "E-mail", sortable: true, width: 50, align: "center", dataIndex: "ana_email"},
{header: "Website", sortable: true, width: 100, dataIndex: "ana_web"},
{header: "Info", sortable: true, width: 50, align: "center", dataIndex: "mappa"},
{header: "Price", width: 60, align: "right", sortable: true, dataIndex: 'prezzo', renderer: currencyFormat, sortType: 'asFloat'},
{header: "", width: 100, align: 'center', sortable: true, dataIndex: 'associa'}
];
columnDef["elencoListe"] = [
{header: "", width: 26, align: 'center', hidden: true, dataIndex: "add"},
{header: "Id", sortable: true, width: 40, align: 'right', dataIndex: "lista_id"},
{header: "List", sortable: true, dataIndex: "nome", id: "nome"},
{header: "Beginning validity date", sortable: true, width: 100, align: 'center', dataIndex: "data_ini", renderer: dateFormat},
{header: "End validity date", sortable: true, width: 100, align: 'center', dataIndex: "data_fin", renderer: dateFormat},
{header: "", width: 26, align: 'center', dataIndex: "att_icon"},
{header: "Total items", sortable: true, width: 100, align: 'center', dataIndex: "totali"},
{header: "Expiring items", sortable: true, width: 120, align: 'center', dataIndex: "scadenza"},
{header: "Expired items", sortable: true, width: 100, align: 'center', dataIndex: "scaduti"},
{header: "", width: 26, align: "center", dataIndex: 'ren'},
{header: "", width: 26, align: "center", dataIndex: 'mod'},
{header: "", width: 26, align: "center", dataIndex: 'del'}
];
columnDef["dettaglioLista"] = [
{header: "", width: 26, align: 'center', dataIndex: "alert"},
{header: "User", width: 90, sortable: true, dataIndex: 'uname'},
{header: "Item code", sortable: true, width: 150, dataIndex: "codice"},
{header: "Code loaded from file", sortable: true, width: 150, dataIndex: "art_caricato"},
{header: "Description", sortable: true, dataIndex: "art_descr", id: "art_descr"},
{header: "Brand", sortable: true, width: 200, dataIndex: "sup_ragsoc"},
{header: "Note", sortable: true, width: 100, dataIndex: "nota"},
{header: "Price", sortable: true, width: 60, align: "right", dataIndex: "prezzo", renderer: currencyFormat, sortType: "asFloat"},
{header: "Expiry date", sortable: true, width: 100, align: 'center', dataIndex: "data_fin", renderer: dateFormat},
{header: "", width: 26, align: 'center', dataIndex: "att_icon"},
{header: "", width: 26, align: 'center', dataIndex: "ren"},
{header: "", width: 26, align: 'center', dataIndex: "mov"},
{header: "", width: 26, align: "center", dataIndex: "mod"},
{header: "", width: 26, align: "center", dataIndex: "del"}
];
columnDef["crossVenditori"] = [
{header: "Item code", sortable: true, width: 150, dataIndex: "art_codice"},
{header: "Description", sortable: true, dataIndex: "art_descr", id: "art_descr"},
{header: "Brand", sortable: true, width: 200, dataIndex: "sup_ragsoc"},
{header: "Price", sortable: true, width: 100, align: "right", dataIndex: "prezzo", renderer: currencyFormatMP, sortType: 'asFloat'},
{header: "Note", sortable: true, width: 40, align: "center", dataIndex: "nota"}
];
//DEFINIZIONI CAMPI GRIGLIE
var gridFields = [];
gridFields["Versioni_domus"] = [
'ico_det',
'ver_descr',
{name: 'ver_codice', type: 'int'}
];
gridFields["LIA"] = [
'qualifica',
{name: 'pri_prezzo', type: 'int'}
];
gridFields["lista"] = [
'name',
'size',
'modified',
'perms',
'owner',
'down',
'eraser'
];
gridFields["down_tar"] = [
{name: 'sup_codice', type: 'int'},
'sup_ragsoc',
{name: 'reclastagg', type: 'int'},
'pri_dal',
'ult_aggio_tar',
'chiaro',
'pers_export',
'pers_down_export',
'sirx',
'sirwin',
'sirxfile',
'ascii',
'excel',
{name: 'refresh', type: 'int'}
];
gridFields["VE"] = [
'ico_det',
'cod_motore',
'mod_tipo',
{name: 'ver_codice', type: 'int'},
{name: 'mod_codice', type: 'int'},
{name: 'sup_codice', type: 'int'},
'mod_descr',
'costruttore',
'ver_descr',
'periodo',
{name: 'ver_hp', type: 'int'},
{name: 'ver_kw', type: 'int'},
{name: 'ver_cilindr', type: 'int'}
];
gridFields["AS"] = [
'ico_det',
'cod_motore',
'mod_tipo',
{name: 'ver_codice', type: 'int'},
{name: 'mod_codice', type: 'int'},
{name: 'sup_codice', type: 'int'},
'mod_descr',
'costruttore',
'ver_descr',
'periodo',
{name: 'ver_hp', type: 'int'},
{name: 'ver_kw', type: 'int'},
{name: 'ver_cilindr', type: 'int'},
'peso_assale',
'tipo_assale',
'mis_freno'
];
gridFields["GR"] = [
'art_codice',
{name: 'pri_prezzo', type: 'float'}
];
gridFields["ElencoProdotti"] = [
'cmp',
'codice',
'crossoe',
'ultcross',
'sostituzioni',
'codifiche',
'art_descr',
'sup_ragsoc',
'applicazione',
'immagine',
'info',
{name: 'pri_prezzo', type: 'float'},
{name: 'qr', type: 'int'},
'storico',
'pri_dal',
'qta',
'carrello',
'componenti',
'fut',
'art_codice',
{name: 'art_suppl', type: 'int'},
{name: 'oe', type: 'int'},
{name: 'uc', type: 'int'},
{name: 'so', type: 'int'},
{name: 'ac', type: 'int'},
{name: 'ap', type: 'int'},
{name: 'im', type: 'int'},
{name: 'inf', type: 'int'},
{name: 'kit', type: 'int'},
{name: 'st', type: 'int'},
{name: 'note', type: 'int'},
{name: 'mp', type: 'int'}
];
gridFields["AM"] = [
'cmp',
'codice',
'sostituzioni',
'codifiche',
'art_descr',
'sup_ragsoc',
'applicazione',
'immagine',
'info',
{name: 'pri_prezzo', type: 'float'},
{name: 'qr', type: 'int'},
'storico',
'pri_dal',
'fut',
'qta',
'carrello',
'componenti',
'art_codice',
{name: 'art_suppl', type: 'int'},
{name: 'so', type: 'int'},
{name: 'ac', type: 'int'},
{name: 'ap', type: 'int'},
{name: 'im', type: 'int'},
{name: 'inf', type: 'int'},
{name: 'kit', type: 'int'},
{name: 'st', type: 'int'},
{name: 'note', type: 'int'},
'tooltip',
{name: 'mp', type: 'int'},
'flag_da',
];
gridFields["OE"] = [
'codice',
'sostituzioni',
'codifiche',
'art_descr',
'sup_ragsoc',
'applicazione',
'immagine',
'info',
{name: 'pri_prezzo', type: 'float'},
{name: 'qr', type: 'int'},
'storico',
'pri_dal',
'fut',
'qta',
'carrello',
'componenti',
'art_codice',
{name: 'art_suppl', type: 'int'},
{name: 'so', type: 'int'},
{name: 'ac', type: 'int'},
{name: 'ap', type: 'int'},
{name: 'im', type: 'int'},
{name: 'inf', type: 'int'},
{name: 'kit', type: 'int'},
{name: 'st', type: 'int'},
{name: 'note', type: 'int'},
{name: 'mp', type: 'int'},
{name: 'appqr', type: 'int'},
'flag_da',
];
gridFields["SO"] = [
'art_codice',
{name: 'art_suppl', type: 'int'},
'sup_ragsoc',
'codice',
'art_descr',
'sos_sesp',
'sos_rap',
'sos_data',
{name: 'pri_prezzo', type: 'float'},
{name: 'qr', type: 'int'},
'pri_dal'
];
gridFields["AC"] = [
'art_codice',
{name: 'art_suppl', type: 'int'},
'codifica',
'codice',
'sup_ragsoc',
'art_descr',
{name: 'pri_prezzo', type: 'float'},
{name: 'qr', type: 'int'},
'pri_dal',
'carrello'
];
gridFields["AP"] = [
'sup_ragsoc',
'mod_descr',
'ver_descr',
'ver_codice',
'periodo',
'cod_motore',
'mod_codice',
{name: 'ver_cilindr', type: 'int'},
{name: 'ver_hp', type: 'int'},
{name: 'ver_kw', type: 'int'},
{name: 'sup_codice', type: 'int'}
];
gridFields["APC"] = [
'circolante',
'sup_ragsoc',
'mod_descr',
'periodo',
'codcom',
'descom',
'mod_codice',
{name: 'ver_cilindr', type: 'int'},
{name: 'ver_hp', type: 'int'},
{name: 'ver_kw', type: 'int'},
{name: 'sup_codice', type: 'int'},
{name: 'idnor', type: 'int'},
'dsnor',
{name: 'apc', type: 'int'},
'codcar',
'descar'
];
gridFields["ST"] = [
'pri_prezzo',
'pri_dal'
];
gridFields["Ricerca"] = [
'cmp',
'codice',
'crossam',
'crossoe',
'ultcross',
'sostituzioni',
'codifiche',
'art_descr',
'componenti',
'sup_ragsoc',
'applicazione',
'immagine',
'info',
{name: 'qr', type: 'int'},
'storico',
'fut',
{name: 'pri_prezzo', type: 'float'},
'pri_dal',
'qta',
'carrello',
'art_codice',
{name: 'art_suppl', type: 'int'},
{name: 'am', type: 'int'},
{name: 'oe', type: 'int'},
{name: 'uc', type: 'int'},
{name: 'so', type: 'int'},
{name: 'ac', type: 'int'},
{name: 'ap', type: 'int'},
{name: 'im', type: 'int'},
{name: 'inf', type: 'int'},
{name: 'st', type: 'int'},
{name: 'kit', type: 'int'},
{name: 'note', type: 'int'},
{name: 'mp', type: 'int'}
,{name: 'appqr', type: 'int'}
];
gridFields["contatti"] = [
'id',
'rag_soc'
];
gridFields["carrello"] = [
"add",
{name: "fornitore_id", type: "int"},
"for_loca",
{name: "ordine", type:"int"},
{name: "id_utente", type: "int"},
{name: "id_team", type: "int"},
"rag_soc",
"ana_ragsoc",
"tot",
"tot_iva",
"datac",
"email",
"email_utente",
"datac",
"note",
"pdf",
"mail_cli",
"mail_ven",
"b2c",
"mod",
"emp",
"del"
];
gridFields["articoli"] = [
{name: "id", type: "int"},
"ana_ref",
"venditore",
"art_codice",
{name: "art_suppl", type: "int"},
"sup_ragsoc",
"art_descr",
"qta",
"importo_netto",
"tot_rigo",
"sc1",
"sc2",
"sc3",
"iva",
"marketparts",
{name: "fornitore_id", type: "int"},
"del"
];
gridFields["Dettagli"] = [
"dettaglio"
];
gridFields["produttori"] = [
{name: 'sup_codice', type: 'int'},
{name: 'sup_afterm', type: 'int'},
'sup_ragsoc',
{name: 'reclastagg', type: 'int'},
'pri_dal',
'ult_aggio_tar',
'agg'
];
gridFields["allegati"] = [
{name: 'qua_tipo', type: 'int'},
{name: 'qua_codice', type: 'int'},
'qua_descr',
'icon'
];
gridFields["LC"] = [
'expand',
'cmp',
'codice',
'crossam',
'crossoe',
'sostituzioni',
'codifiche',
'art_descr',
'sup_ragsoc',
'applicazione',
'immagine',
'info',
{name: 'pri_prezzo', type: 'float'},
{name: 'qr', type: 'int'},
'storico',
'pri_dal',
'qta',
'carrello',
'fut',
'art_codice',
{name: 'art_suppl', type: 'int'},
{name: 'oe', type: 'int'},
{name: 'am', type: 'int'},
{name: 'so', type: 'int'},
{name: 'ac', type: 'int'},
{name: 'ap', type: 'int'},
{name: 'im', type: 'int'},
{name: 'inf', type: 'int'},
{name: 'st', type: 'int'},
{name: 'note', type: 'int'}
];
gridFields["circolante"] = [
'dsreg',
'dspro',
{name: 'n_veicoli', type: 'int'},
{name: 'totale', type: 'int'}
];
gridFields["news_analisi_vett"] = [
'costruttore',
'modello',
'versione',
'periodo',
{name: 'cilin', type: 'int'},
{name: 'kw', type: 'float'}
];
gridFields["news_analisi_gruppi"] = [
'gruppo',
'ricambio',
'costruttore',
'modello',
{name: 'tot_articoli', type: 'int'}
];
gridFields["listaVenditori"] = [
{name: 'id', type: 'int'},
'ana_ragsoc',
'ana_indi',
{name: 'ana_cap', type: 'int'},
'ana_loca',
'ana_pro',
'ana_tel',
'ana_fax',
'ana_cell',
'ana_email',
'email',
'ana_web',
'whatsapp',
'telegram',
'mappa',
'prezzo',
'nota',
'carrello'
];
gridFields["listaVenditoriCarrello"] = [
{name: 'id', type: 'int'},
'ana_ragsoc',
'ana_indi',
{name: 'ana_cap', type: 'int'},
'ana_loca',
'ana_pro',
'ana_tel',
'ana_fax',
'ana_cell',
'ana_email',
'ana_web',
'whatsapp',
'telegram',
'mappa',
{name: 'prezzo', type: 'float'},
'associa',
{name: 'associato', type: 'int'}
];
gridFields["elencoListe"] = [
{name: 'lista_id', type: 'int'},
'nome',
'data_ini',
'data_fin',
{name: 'attiva', type: 'int'},
'att_icon',
{name: 'totali', type: 'int'},
{name: 'scadenza', type: 'int'},
{name: 'scaduti', type: 'int'},
'ren',
'mod',
'del',
'add'
];
gridFields["dettaglioLista"] = [
{name: 'lista_id', type: 'int'},
'alert',
'uname',
'codice',
'art_codice',
'art_caricato',
'art_descr',
{name: 'art_suppl', type: 'int'},
'sup_ragsoc',
'nota',
{name: 'prezzo', type: 'float'},
'data_fin',
'att_icon',
'ren',
'mov',
'mod',
'del'
];
gridFields["crossVenditori"] = [
'art_codice',
{name: 'art_suppl', type: 'int'},
'art_descr',
'sup_ragsoc',
{name: 'prezzo', type: 'float'},
'nota',
'carrello'
];
//ETICHETTE TABS
var labelTabs = [];
labelTabs["ElencoProdotti"] = "Items list";
labelTabs["AM"] = "AM cross references";
labelTabs["OE"] = "OE cross references";
labelTabs["UC"] = "Further cross references";
labelTabs["SO"] = "Substitutions";
labelTabs["AC"] = "Other codes";
labelTabs["AP"] = "Applications";
labelTabs["IM"] = "Technical info";
labelTabs["IN"] = "Info";
labelTabs["ST"] = "Flow prices";
labelTabs["LC"] = "Components";
//CLATREE_TYPE
var treetype = [];
treetype = [
["", 'All'],
[1, 'Cars - Commercial vehicles'],
[2, 'Bus - Industrial vehicles']
];
//TIPO GRAFICO
var tipo_grafico = [];
tipo_grafico = [
['drawAreaChart','Area'],
['drawBarChart','Columns'],
['drawLineChart','Lines']
];
//ELENCO TIPO VEICOLI CARPARK
var tipoveicolo = [];
tipoveicolo = [
["", 'All'],
["A", 'Cars - Commercial vehicles'],
["T", 'Bus - Industrial vehicles']
,["M", 'Engines'] ,["S", 'Axles']];
var typloc = [];
typloc = [
["", ''],
["1", 'Batterie avviamento'],
["2", 'Avvisatori acustici'],
["3", 'Antenne'],
["4", 'Batterie industriali']
];
//ELENCO TIPO VEICOLI RICAMBIO
var ritipoveicolo = [];
ritipoveicolo = [
[1, 'Cars - Commercial vehicles'],
[2, 'Bus - Industrial vehicles']
];
//CARRELLO
var codice_articolo = "";
var codice_produttore = 0;
var id_fornitore = 0;
var id_riga_art = 0;
var limit = 100;
var paging = false;
//PIAZZALE RICAMBI
var codice_articolo_lista = '';
var codice_produttore_lista = 0;
var codice_prezzo_lista = 0;
var id_venditore = 0;
//NEWS
var index_news = 0;
var content_news;
//CARTINA
var idLabel;
var swf_id;
//SEGNALAZIONI
var tipo_seg = new Array("Wrong code","Discordant price","Wrong validity date","Wrong/missing cross reference","Wrong image/technical note","Wrong application","Wrong other codes","Wrong description","Other");
//EXPORT
var cond_data = [];
cond_data = [
["","Select"],
["=","Equal"],
[">","Greater than"],
[">=","Greater than or equal"],
["<","Less than"],
["<=","Less than or equal"]
];
//ID UTENTE
var id_utente = null;
//ID TEAM
var team_id = null;
//COMPARAZIONE IMMAGINI
var comp_imgC = comp_imgT = comp_imgR = expanded_array = [];
//VISUALIZZA O MENO I GRUPPI DI ASSMBLAGGIO
var no_assembl = false;
//VISUALIZZA O MENO SOLO IL CAR PARK
var solo_carpark = false;
//VISUALIZZA O MENO SOLO INFOCAR
var solo_infocar = false;
//DELTA WEB
var contSup = 1;
var maxAM = 20;
var excludeSupp = [];
var strexclude = "";
//VALORE MINIMO PER INIZIA PER
var min_iniz = 3;
//MOSTRA o MENO I WVA
var no_wva = false;
//VISUALIZZA O MENO I PREZZI
var no_prezzi = 0;
var tempo = 5000;
//RICERCA TARGA
var apricp_targa = false;
var tipoveicolo_targa = "";
var ktype_targa = 0;
//SIRJ
var sirj_doc = "";
//TAB DI DEFAULT DA VISUALIZZARE IN RICERCA CODICE
var defaultTab = "";
//INFOCAR
var frominfocar = false;
var openedinfocar = false;
//INFOCAR REPAIR
var infocarRepair = null;
//LINK AFTERMARKET.IT
var host_mp = "www.aftermarket.it";
//CROSS DI INFORICAMBI NEL CATALISTINO
var am_inforicambi = false;
//COLONNA PREZZO DI LISTINO DI ECOMMERCE
var pri_listino = false;
//SEMAFORO RICERCA
var semaforo_ricerca = false;
var tabs_activated = [];
var open_cart = 0;
//GALLERIA NON SUPPORTATA PER BROWSER IE CON VERSIONE < 7
var galleria = !Ext.isIE6;
//FINESTRA INTERMEDIA DI ECOMMERCE
var win_inter_ecom = false;
//CARRELLO INTERNO
var carrello_interno = false;
//BOTTONE INVIA CROSS AL B2B
var invia_cross = false;
//MESSAGGIO DI VISUALIZZAZIONE ARTICOLI IN MAGAZZINO IN PRESENZA DI E-CARPARK
var artecom = false;
//VARIABILE GLOBALE QUANTITA' CARRELLO
var qta = 1;
//MOSTRA/NASCONDE LA QUANTITA' IN MODALITA' CATALISTINO
var vedi_qta = false;
//MOSTRA/NASCONDE LA RIERCA PER CATENE DA NEVE NEL CATALISTINO
var catene_neve = false;
//IVA DOCUMENTI
var iva_documenti = 22;
//VERIFICA ARTICOLO IN ECOMMERCE
var ec_ricerca_articolo = false;
var usa_indiretti = false;
var usa_oe = false;
var anarif = anarifdesc = [];
var analisi = 0;
var ctrl_idfe = 0;
var ajax_timeout = 180000;
var anteprima = null;
var marketparts = 0;
var returnToRicerca = false;
//ULTIMO ULTERIORI CROSS CONSULTATO
var ultucCP = 0;
var ultucRI = 0;
var ultucR = 0;
/*----------------VARIABILI GLOBALI----------------*/