PageSourceSearch

https://erp.vg7demo.com/themes/vg7/js_src/site.js?v=1790239637

js vg7demo.com collected 2026-10-05 06:50:41 UTC 7,340 bytes, 322 lines download raw bytes

1
2function pieChart( selector, data  ){
3
4    Highcharts.chart( selector , {
5        chart: {
6            type: 'pie'
7        },
8        title: {
9            text: ' '
10        },
11        plotOptions: {
12            pie: {
13                allowPointSelect: true,
14                cursor: 'pointer',
15                dataLabels: {
16                    enabled: false
17                },
18                showInLegend: true
19            }
20        },
21        colors: ['#ea3b82', '#7ce0c5', '#67ae5b'],
22        xAxis: {
23            categories: ['Valore1', 'Valore2', 'Valore3']
24        },
25        yAxis: {
26            title: {
27                text: ''
28            }
29        },
30        series: [{
31            name: 'Quantita',
32            data: data
33        }]
34    });
35
36}
37
38
39
40$( document ).ready(function() {
41
42    /*
43
44    pieChart( 'chart', [
45        {
46            name: 'Valore1',
47            y: 13
48        },
49        {
50            name: 'Valore',
51            y: 17
52        },
53        {
54            name: 'Valore',
55            y: 18
56        },
57    ] );
58
59    pieChart( 'chart2', [
60        {
61            name: 'Valore1',
62            y: 7
63        },
64        {
65            name: 'Valore2',
66            y: 6
67        },
68        {
69            name: 'Valore3',
70            y: 8
71        },
72    ] );
73
74    pieChart( 'chart3', [
75        {
76            name: 'Valore',
77            y: 4
78        },
79        {
80            name: 'Valore',
81            y: 5
82        },
83        {
84            name: 'Valore',
85            y: 5
86        },
87    ] );
88
89    Highcharts.chart('chart4', {
90        chart: {
91            type: 'bar'
92        },
93        colors: ['#ea3b82', '#7ce0c5', '#67ae5b'],
94        title: {
95            text: ' '
96        },
97        xAxis: {
98            categories: ['iGen470x100 (Resa 2 - V)', 'Digi BobinaBobina (Resa 2 - O)', 'ROLAND 704ch - O_50x70', 'Komori LITHRONES-429']
99        },
100        yAxis: {
101            title: {
102                text: ''
103            }
104        },
105        legend : {
106            enabled : false
107        },
108        series: [{
109            name: 'Valore',
110            data: [
111                {
112                    y : 57,
113                    color : '#ea3b82'
114                },
115                {
116                    y : 107,
117                    color : '#7ce0c5'
118                },
119                {
120                    y : 75,
121                    color : '#67ae5b'
122                },
123                {
124                    y : 37,
125                    color : '#4473ea'
126                },
127            ]
128        }]
129    });
130
131
132
133
134    Highcharts.chart('chart5', {
135        chart: {
136            type: 'bar'
137        },
138        title: {
139            text: ' '
140        },
141        xAxis: {
142            categories: ['Valore', 'Valore', 'Valore']
143        },
144        yAxis: {
145            title: {
146                text: 'Fruit eaten'
147            }
148        },
149        series: [{
150            name: 'Jane',
151            data: [1, 0, 4]
152        }, {
153            name: 'John',
154            data: [5, 7, 3]
155        }]
156    });
157
158
159    /**/
160
161});
162
163if( typeof months_graph === "undefined" ){
164    months_graph = [];
165}
166if( typeof p_bars === "undefined" ){
167    p_bars = [];
168}
169if( typeof o_bars === "undefined" ){
170    o_bars = [];
171}
172
173if( $("#chart_lines").length > 0 )
174Highcharts.chart('chart_lines', {
175    chart: {
176        type: 'bar',
177        height: 150,
178    },
179    title: {
180        text: ''
181    },
182    xAxis: {
183        categories: months_graph,
184        margin : "0"
185    },
186    colors : ['#00a577', '#5bc5f2'],
187    yAxis: {
188        min: 0,
189        title: {
190            text: ''
191        }
192    },
193    legend: {
194        reversed: true,
195        enabled: false
196    },
197    labels : {
198        style: { "margin": "0px", "padding" : "0px", "font-size" : "10px"}
199    },
200    plotOptions: {
201        series: {
202            stacking: 'percent'
203        },
204    },
205    series: [{
206        name: 'Preventivi',
207        data: p_bars
208    },{
209        name: 'Ordini',
210        data: o_bars
211    }]
212});
213
214
215function apriTemplate() {
216    $('#preventivatori-template').show();
217    $('.preventivatori-link').hide();
218}
219function chiudiTemplate() {
220    $('#preventivatori-template').hide();
221    $('.preventivatori-link').show();
222}
223function selezionaTemplate() {
224    var tipo = $('#tipo_template').val();
225    $('.detail-tipo-template').hide();
226    $('.detail-tipo-template[tipo='+tipo+']').show();
227}
228
229function showAlertOperation(res,rigaId,idSuccess,idError){
230    if(res.esito.indexOf("ok")>=0){
231        $(idSuccess+rigaId).show().html(res.text);
232    }
233    else{
234        $(idError+rigaId).show().html(res.text);
235    }
236
237    setTimeout(()=>{
238        $(idSuccess+rigaId).hide();
239        $(idError+rigaId).hide();
240    },1500)
241}
242
243function accettaRifiutaFiles(rigaId,accettaRifiuta,orderId){
244
245    $.ajax({
246        type: 'POST',
247        url: '/index.php/site/accettaRifiutaFiles/orderId/' + orderId + '/idRiga/' + rigaId + '/accettaRifiuta/' + accettaRifiuta,
248        dataType: "json",
249        success: (res) => {
250            showAlertOperation(res, rigaId, "#alert-success-", "#alert-error-");
251            window.location.reload()
252        },
253        error: () => {
254        }
255    });
256    
257}
258function richiediApprovazione(rigaId,orderId){
259    $.ajax({
260        type: 'POST',
261        url: '/index.php/site/richiediApprovazioneFiles/orderId/'+orderId+'/idRiga/'+rigaId+'/approvazione/1',
262        dataType:"json",
263        success: (res) => {
264            showAlertOperation(res,rigaId,"#alert-success-","#alert-error-");
265            window.location.reload()
266        },
267        error: () => {}
268    });
269}
270function azioniGlobaliOrder(orderId,accettaRifiuta=null,action_short="richiedi_appr"){
271
272    let action = "";
273    switch (action_short)
274    {
275        case "richiedi_appr": action = '/index.php/site/richiediApprovazioneFiles/orderId/'+orderId+'/approvazione/1/flagAll/1';break;
276        case "approva": action = '/index.php/site/accettaRifiutaFiles/orderId/'+orderId+'/accettaRifiuta/'+accettaRifiuta+'/flagAll/1';break;
277    }
278    $.ajax({
279        type: 'POST',
280        url: action,
281        dataType:"json",
282        success: (res) => {
283            showAlertOperation(res,orderId,"#alert-success-order-","#alert-error-order-");
284            window.location.reload()
285        },
286        error: () => {}
287    });
288}
289function salvaNote(rigaId,idOrdine){
290    let note = $("#note_files"+rigaId).val();
291    $.ajax({
292        type: 'POST',
293        url: '/index.php/site/salvaNoteFiles/idRiga/'+rigaId+'/agenzia/0',
294        data:{
295          note:note
296        },
297        dataType:"json",
298        success: (res) => {
299            $("#noteModalRifiuta"+rigaId).modal("hide")
300            showAlertOperation(res,rigaId,"#alert-note-success-","#alert-note-error-");
301            accettaRifiutaFiles(rigaId,2,idOrdine)
302        },
303        error: () => {}
304    });
305}
306function salvaNoteGlobal(idOrdine){
307    let note = $("#note_file_centro_global"+idOrdine).val();
308    $.ajax({
309        type: 'POST',
310        url: '/index.php/site/salvaNoteFilesGlobal/idOrdine/'+idOrdine+'/agenzia/1',
311        data:{
312            note:note
313        },
314        dataType:"json",
315        success: (res) => {
316            $("#noteModalRifiutaGlobal"+idOrdine).modal("hide")
317            showAlertOperation(res,idOrdine,"#alert-note-success-order-","#alert-note-error-order-");
318            azioniGlobaliOrder(idOrdine,2,'approva')
319        },
320        error: () => {}
321    });
322}

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.