diff --git a/Projects/WebGIM/GIM_data/DS_applicazione.Designer.cs b/Projects/WebGIM/GIM_data/DS_applicazione.Designer.cs index eff4057..62edd7e 100644 --- a/Projects/WebGIM/GIM_data/DS_applicazione.Designer.cs +++ b/Projects/WebGIM/GIM_data/DS_applicazione.Designer.cs @@ -17096,7 +17096,7 @@ ORDER BY numIntMtz DESC"; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void InitCommandCollection() { - this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2]; + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[4]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; this._commandCollection[0].CommandText = "SELECT idxIntPro, idxMacchina, inizio, codFrequenza, cadenza, descrizione, idxPri" + @@ -17104,12 +17104,31 @@ ORDER BY numIntMtz DESC"; this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[1].Connection = this.Connection; - this._commandCollection[1].CommandText = @"SELECT MtzProgrammata.idxIntPro, MtzProgrammata.idxMacchina, MtzProgrammata.inizio, MtzProgrammata.codFrequenza, MtzProgrammata.cadenza, + this._commandCollection[1].CommandText = "dbo.stp_MtzProg_getByKey"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxIntPro", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[2].Connection = this.Connection; + this._commandCollection[2].CommandText = @"SELECT MtzProgrammata.idxIntPro, MtzProgrammata.idxMacchina, MtzProgrammata.inizio, MtzProgrammata.codFrequenza, MtzProgrammata.cadenza, MtzProgrammata.descrizione, MtzProgrammata.idxPriorita, MtzProgrammata.isFermo, MtzProgrammata.idxTipo FROM MtzProgrammata LEFT OUTER JOIN MtzProgPending ON MtzProgrammata.idxIntPro = MtzProgPending.idxIntPro WHERE (MtzProgPending.idxPending IS NULL)"; - this._commandCollection[1].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[2].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[3].Connection = this.Connection; + this._commandCollection[3].CommandText = "dbo.stp_MtzProg_update"; + this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxIntPro", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@inizio", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@codFrequenza", global::System.Data.SqlDbType.NChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cadenza", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@descrizione", global::System.Data.SqlDbType.NVarChar, 500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxPriorita", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@isFermo", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxTipo", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -17140,8 +17159,25 @@ WHERE (MtzProgPending.idxPending IS NULL)"; [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] - public virtual DS_applicazione.MtzProgrammataDataTable getNotScheduled() { + public virtual DS_applicazione.MtzProgrammataDataTable getByKey(global::System.Nullable idxIntPro) { this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((idxIntPro.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[1].Value = ((int)(idxIntPro.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + DS_applicazione.MtzProgrammataDataTable dataTable = new DS_applicazione.MtzProgrammataDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_applicazione.MtzProgrammataDataTable getNotScheduled() { + this.Adapter.SelectCommand = this.CommandCollection[2]; DS_applicazione.MtzProgrammataDataTable dataTable = new DS_applicazione.MtzProgrammataDataTable(); this.Adapter.Fill(dataTable); return dataTable; @@ -17336,6 +17372,76 @@ WHERE (MtzProgPending.idxPending IS NULL)"; } } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int updateQuery(global::System.Nullable idxIntPro, global::System.Nullable inizio, string codFrequenza, global::System.Nullable cadenza, string descrizione, global::System.Nullable idxPriorita, global::System.Nullable isFermo, global::System.Nullable idxTipo) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3]; + if ((idxIntPro.HasValue == true)) { + command.Parameters[1].Value = ((int)(idxIntPro.Value)); + } + else { + command.Parameters[1].Value = global::System.DBNull.Value; + } + if ((inizio.HasValue == true)) { + command.Parameters[2].Value = ((System.DateTime)(inizio.Value)); + } + else { + command.Parameters[2].Value = global::System.DBNull.Value; + } + if ((codFrequenza == null)) { + command.Parameters[3].Value = global::System.DBNull.Value; + } + else { + command.Parameters[3].Value = ((string)(codFrequenza)); + } + if ((cadenza.HasValue == true)) { + command.Parameters[4].Value = ((int)(cadenza.Value)); + } + else { + command.Parameters[4].Value = global::System.DBNull.Value; + } + if ((descrizione == null)) { + command.Parameters[5].Value = global::System.DBNull.Value; + } + else { + command.Parameters[5].Value = ((string)(descrizione)); + } + if ((idxPriorita.HasValue == true)) { + command.Parameters[6].Value = ((int)(idxPriorita.Value)); + } + else { + command.Parameters[6].Value = global::System.DBNull.Value; + } + if ((isFermo.HasValue == true)) { + command.Parameters[7].Value = ((bool)(isFermo.Value)); + } + else { + command.Parameters[7].Value = global::System.DBNull.Value; + } + if ((idxTipo.HasValue == true)) { + command.Parameters[8].Value = ((int)(idxTipo.Value)); + } + else { + command.Parameters[8].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } } /// diff --git a/Projects/WebGIM/GIM_data/DS_applicazione.xsd b/Projects/WebGIM/GIM_data/DS_applicazione.xsd index 4141326..acbd7fd 100644 --- a/Projects/WebGIM/GIM_data/DS_applicazione.xsd +++ b/Projects/WebGIM/GIM_data/DS_applicazione.xsd @@ -9,7 +9,7 @@ - + DELETE FROM [dbo].[LogUpdateDb] WHERE (([Versione] = @Original_Versione)) @@ -50,7 +50,7 @@ - + SELECT MAX(Versione) as Versione FROM LogUpdateDb @@ -62,7 +62,7 @@ - + DELETE FROM [dbo].[AnagAmbitoGuasto] WHERE (([idxAmbito] = @Original_idxAmbito)) @@ -101,7 +101,7 @@ - + DELETE FROM [dbo].[AnagAmbitoGuasto] WHERE (([idxAmbito] = @Original_idxAmbito)) @@ -115,7 +115,7 @@ - + DELETE FROM [dbo].[AnagPriorita] WHERE (([idxPriorita] = @Original_idxPriorita)) @@ -159,7 +159,7 @@ - + DELETE FROM [dbo].[AnagPriorita] WHERE (([idxPriorita] = @Original_idxPriorita)) @@ -169,7 +169,7 @@ - + SELECT * FROM dbo.AnagPriorita @@ -180,7 +180,7 @@ where idxPriorita=@idxPriorita - + SELECT MAX(idxPriorita) as idxPriorita FROM AnagPriorita @@ -188,7 +188,7 @@ where idxPriorita=@idxPriorita - + UPDATE AnagPriorita @@ -207,7 +207,7 @@ WHERE (idxPriorita = @Original_idxPriorita) - + DELETE FROM [dbo].[AnagImpianti] WHERE (([idxImpianto] = @Original_idxImpianto)) @@ -259,7 +259,7 @@ ORDER BY codImpianto, nomeImpianto - + DELETE FROM [dbo].[AnagImpianti] WHERE (([idxImpianto] = @Original_idxImpianto)) @@ -269,7 +269,7 @@ ORDER BY codImpianto, nomeImpianto - + dbo.sp_clonaImpianto @@ -284,7 +284,7 @@ ORDER BY codImpianto, nomeImpianto - + DELETE FROM [dbo].[AnagMacchine] WHERE (([idxMacchina] = @Original_idxMacchina)) @@ -352,7 +352,7 @@ FROM v_macchine - + DELETE FROM [dbo].[AnagMacchine] WHERE (([idxMacchina] = @Original_idxMacchina)) @@ -362,7 +362,7 @@ FROM v_macchine - + SELECT idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl, descrImpianto @@ -374,7 +374,7 @@ where idxImpianto=@idxImpianto - + SELECT idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl, descrImpianto @@ -386,7 +386,7 @@ WHERE idxMacchina=@idxMacchina - + dbo.sp_clonaMacchina @@ -397,7 +397,7 @@ WHERE idxMacchina=@idxMacchina - + dbo.sp_spostaMacchina @@ -413,7 +413,7 @@ WHERE idxMacchina=@idxMacchina - + DELETE FROM [dbo].[Macchine2FamMacchine] WHERE (([idxMacchina] = @Original_idxMacchina) AND ([idxFamMacchine] = @Original_idxFamMacchine)) @@ -459,7 +459,7 @@ FROM v_selFamMacc - + DELETE FROM [dbo].[Macchine2FamMacchine] WHERE (([idxMacchina] = @Original_idxMacchina) AND ([idxFamMacchine] = @Original_idxFamMacchine)) @@ -470,7 +470,7 @@ FROM v_selFamMacc - + SELECT idxFamMacchine, idxMacchina, famiglia, macchina @@ -482,7 +482,7 @@ WHERE (idxFamMacchine = @idxFamMacchine) - + INSERT INTO [dbo].[Macchine2FamMacchine] ([idxMacchina], [idxFamMacchine]) VALUES (@idxMacchina, @idxFamMacchine) @@ -497,7 +497,7 @@ WHERE (idxFamMacchine = @idxFamMacchine) - + DELETE FROM [dbo].[AnagFamMacchine] WHERE (([idxFamMacchine] = @Original_idxFamMacchine)) @@ -541,7 +541,7 @@ ORDER BY nomeFamMacch - + SELECT numIntMtz, richiesta, dataLav, turnoLav, matr, guasto, idxAmbito, descrAmbitoGuasto, idxPriorita, descrPriorita, isFermo, idxTipo, descrTipo, idxImpianto, @@ -586,7 +586,7 @@ ORDER BY numIntMtz DESC - + SELECT numIntMtz, richiesta, dataLav, turnoLav, matr, guasto, idxAmbito, descrAmbitoGuasto, idxPriorita, descrPriorita, isFermo, idxTipo, descrTipo, idxImpianto, @@ -600,7 +600,7 @@ WHERE (numIntMtz = @numIntMtz) - + SELECT * @@ -612,7 +612,7 @@ WHERE (idxCausale = @idxCausale) - + SELECT numIntMtz, richiesta, dataLav, turnoLav, matr, guasto, idxAmbito, descrAmbitoGuasto, idxPriorita, descrPriorita, isFermo, idxTipo, descrTipo, idxImpianto, @@ -628,7 +628,7 @@ ORDER BY numIntMtz DESC - + SELECT numIntMtz, richiesta, dataLav, turnoLav, matr, guasto, idxAmbito, descrAmbitoGuasto, idxPriorita, descrPriorita, isFermo, idxTipo, descrTipo, idxImpianto, @@ -643,7 +643,7 @@ ORDER BY numIntMtz DESC - + SELECT numIntMtz, richiesta, dataLav, turnoLav, matr, guasto, idxAmbito, descrAmbitoGuasto, idxPriorita, descrPriorita, isFermo, idxTipo, descrTipo, idxImpianto, @@ -659,7 +659,7 @@ ORDER BY numIntMtz DESC - + dbo.sp_insRichiesta @@ -684,7 +684,7 @@ ORDER BY numIntMtz DESC - + dbo.sp_setPresaInCarico @@ -696,7 +696,7 @@ ORDER BY numIntMtz DESC - + dbo.sp_updateIntervento @@ -712,7 +712,7 @@ ORDER BY numIntMtz DESC - + dbo.sp_updateInterventoFull @@ -743,7 +743,7 @@ ORDER BY numIntMtz DESC - + DELETE FROM [dbo].[AnagTipoGuasto] WHERE (([idxTipo] = @Original_idxTipo)) @@ -785,7 +785,7 @@ ORDER BY numIntMtz DESC - + DELETE FROM [dbo].[AnagStati] WHERE (([idxStato] = @Original_idxStato)) @@ -829,7 +829,7 @@ ORDER BY numIntMtz DESC - + SELECT idxStato, DescrStato, stile FROM dbo.AnagStati @@ -844,7 +844,7 @@ where idxStato=@idxStato - + DELETE FROM [dbo].[InterventoOpMtz] WHERE (([numIntMtz] = @Original_numIntMtz) AND ([matrOp] = @Original_matrOp)) @@ -890,7 +890,7 @@ where idxStato=@idxStato - + SELECT numIntMtz, matrOp, durataMinuti @@ -903,7 +903,7 @@ WHERE (numIntMtz = @numIntMtz) AND (matrOp = @matrOp) - + SELECT numIntMtz, matrOp, durataMinuti FROM dbo.InterventoOpMtz @@ -914,7 +914,7 @@ where numIntMtz=@numIntMtz - + UPDATE InterventoOpMtz @@ -933,7 +933,7 @@ WHERE (numIntMtz = @Original_numIntMtz) AND (matrOp = @Original_matrOp) - + DELETE FROM [dbo].[MtzProgrammata] WHERE (([idxIntPro] = @Original_idxIntPro)) @@ -1003,7 +1003,7 @@ FROM v_mtzProgExp - + DELETE FROM [dbo].[MtzProgPending] WHERE (([idxPending] = @Original_idxPending)) @@ -1060,7 +1060,7 @@ FROM v_mtzProgExp - + SELECT idxPending, idxIntPro, idxMacchina, data, descrizione, idxPriorita, isFermo, idxTipo FROM dbo.MtzProgPending WHERE data < @dataScadenza @@ -1074,7 +1074,7 @@ FROM v_mtzProgExp - + DELETE FROM [dbo].[MtzProgrammata] WHERE (([idxIntPro] = @Original_idxIntPro)) @@ -1134,7 +1134,18 @@ FROM v_mtzProgExp - + + + + dbo.stp_MtzProg_getByKey + + + + + + + + SELECT MtzProgrammata.idxIntPro, MtzProgrammata.idxMacchina, MtzProgrammata.inizio, MtzProgrammata.codFrequenza, MtzProgrammata.cadenza, @@ -1146,11 +1157,29 @@ WHERE (MtzProgPending.idxPending IS NULL) + + + + dbo.stp_MtzProg_update + + + + + + + + + + + + + + - + DELETE FROM [dbo].[CalendFesteFerie] WHERE (([data] = @Original_data)) @@ -1191,7 +1220,7 @@ WHERE (MtzProgPending.idxPending IS NULL) - + SELECT data, descrizione @@ -1208,7 +1237,7 @@ WHERE (data BETWEEN @inizio AND @fine) - + DELETE FROM [dbo].[OreAperturaSett] WHERE (([giorno] = @Original_giorno)) @@ -1252,7 +1281,7 @@ WHERE (data BETWEEN @inizio AND @fine) - + SELECT SUM(apertura) AS apertura FROM OreAperturaSett @@ -1260,7 +1289,7 @@ WHERE (data BETWEEN @inizio AND @fine) - + dbo.stp_oreEquivalenti @@ -1273,7 +1302,7 @@ WHERE (data BETWEEN @inizio AND @fine) - + UPDATE [dbo].[OreAperturaSett] SET [apertura] = @apertura WHERE (([giorno] = @Original_giorno)) @@ -1288,7 +1317,7 @@ WHERE (data BETWEEN @inizio AND @fine) - + DELETE FROM [dbo].[FiltroImpianti] WHERE (([username] = @Original_username) AND ([idxImpianto] = @Original_idxImpianto)) @@ -1331,7 +1360,7 @@ WHERE (data BETWEEN @inizio AND @fine) - + DELETE FROM [dbo].[FiltroImpianti] WHERE ([username] = @Original_username) @@ -1345,7 +1374,7 @@ WHERE (data BETWEEN @inizio AND @fine) - + DELETE FROM [dbo].[FiltroMacchine] WHERE (([username] = @Original_username) AND ([idxMacchina] = @Original_idxMacchina)) @@ -1388,7 +1417,7 @@ WHERE (data BETWEEN @inizio AND @fine) - + DELETE FROM [dbo].[FiltroMacchine] WHERE ([username] = @Original_username) @@ -1402,7 +1431,7 @@ WHERE (data BETWEEN @inizio AND @fine) - + DELETE FROM [dbo].[FiltroStati] WHERE (([username] = @Original_username) AND ([idxStato] = @Original_idxStato)) @@ -1445,7 +1474,7 @@ WHERE (data BETWEEN @inizio AND @fine) - + DELETE FROM [dbo].[FiltroStati] WHERE ([username] = @Original_username) @@ -1459,7 +1488,7 @@ WHERE (data BETWEEN @inizio AND @fine) - + DELETE FROM [dbo].[AnagCausali] WHERE (([idxCausale] = @Original_idxCausale)) @@ -1504,7 +1533,7 @@ WHERE (data BETWEEN @inizio AND @fine) - + UPDATE AnagCausali @@ -1522,7 +1551,7 @@ WHERE (idxCausale = @Original_idxCausale) - + DELETE FROM [dbo].[AnagrOperMtz] WHERE (([matrOp] = @Original_matrOp)) @@ -1572,22 +1601,22 @@ WHERE (idxCausale = @Original_idxCausale) - + - + - - + + - + - - + + @@ -1597,18 +1626,18 @@ WHERE (idxCausale = @Original_idxCausale) - + - - + + - + @@ -1618,75 +1647,75 @@ WHERE (idxCausale = @Original_idxCausale) - + - - + + - + - + - - + + - + - - - + + + - + - + - + - - - - - - + + + + + + @@ -1696,19 +1725,19 @@ WHERE (idxCausale = @Original_idxCausale) - + - - - + + + - + @@ -1718,11 +1747,11 @@ WHERE (idxCausale = @Original_idxCausale) - + - - + + @@ -1732,104 +1761,104 @@ WHERE (idxCausale = @Original_idxCausale) - + - - - - - + + + + + - - - - - - - - + + + + + + + + - - - - - + + + + + - - - + + + - + - + - + - + - + - + - + - + @@ -1839,11 +1868,11 @@ WHERE (idxCausale = @Original_idxCausale) - + - - + + @@ -1853,18 +1882,18 @@ WHERE (idxCausale = @Original_idxCausale) - + - - + + - + @@ -1874,74 +1903,74 @@ WHERE (idxCausale = @Original_idxCausale) - + - - + + - + - + - - - - + + + + - - + + - - - - + + + + - + - + - + - + @@ -1951,58 +1980,58 @@ WHERE (idxCausale = @Original_idxCausale) - + - - - - - + + + + + - - - + + + - + - - - - + + + + - - + + - - - + + + - + - - + + @@ -2012,97 +2041,97 @@ WHERE (idxCausale = @Original_idxCausale) - + - - + + - + - + - + - + - + - + - + - + - + - + - + - - - + + + - + - + - + - + - + @@ -2206,20 +2235,20 @@ WHERE (idxCausale = @Original_idxCausale) - - - - - - - - - - - - - - + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Projects/WebGIM/GIM_data/DS_applicazione.xss b/Projects/WebGIM/GIM_data/DS_applicazione.xss index bf7cabf..78733e3 100644 --- a/Projects/WebGIM/GIM_data/DS_applicazione.xss +++ b/Projects/WebGIM/GIM_data/DS_applicazione.xss @@ -4,29 +4,29 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - + - - + + - - - - - - - - - - - + + + + + + + + + + + @@ -129,19 +129,19 @@ - + 1141 - 846 + 861 - 1117 - 846 + 1056 + 861 - + 1017 @@ -157,7 +157,7 @@ - + 1362 @@ -173,7 +173,7 @@ - + 922 @@ -185,7 +185,7 @@ - + 1328 @@ -197,7 +197,7 @@ - + 754 diff --git a/Projects/WebGIM/GIM_data/bin/GIM_data.dll b/Projects/WebGIM/GIM_data/bin/GIM_data.dll index 2c3bafb..c19c08a 100644 Binary files a/Projects/WebGIM/GIM_data/bin/GIM_data.dll and b/Projects/WebGIM/GIM_data/bin/GIM_data.dll differ diff --git a/Projects/WebGIM/GIM_data/bin/SteamWare.XML b/Projects/WebGIM/GIM_data/bin/SteamWare.XML index fa4844d..64a2314 100644 --- a/Projects/WebGIM/GIM_data/bin/SteamWare.XML +++ b/Projects/WebGIM/GIM_data/bin/SteamWare.XML @@ -4,334 +4,553 @@ SteamWare - + - classe gesione log files applicazioni + classe con funzioni specifiche di calcolo - + - directory base x logs + inizializzazione classe - + - nome del file corrente + elenco dei caratteri base 36: 0..9A..Z - + + - max mb di log da accumulare + converte da base di dimensione nBase a valore intero - - - - controlla se si debba mantenere sotto controllo la dimensioen della cartella logs - - - - - singleton del logger - - - - - avvio del logger nella dir desiderata - - - - - avvio del logger nella dir desiderata - - - - - avvio del logger nella dir desiderata con il max di dati indicato - - - - - scrive sul file log di default il valore della variabile string passata su una riga... (tab delim?!?) - - testo iniziale del log + valore in formato nBase + base, max 36 (0..9A..Z) - + - scrive un messaggio di log con etichetta pre + metodo di accesso singleton - testo messaggio - tipo di log da registrare (etichetta [...]) + + + + Accesso in lettura e scrittura al filesystem per gestione files upload e download + + + + + path di lavoro dei metodi leggi/scrivi + + + + + verifica esistenza directory ed eventualmente crea restituendo nome completo di "/" finale + + - + - fornisce il nome del file in cui loggare (ed eventualmente crea...) + restituisce una tab di files dato l'elenco dei files + + + + + + + setta le directory + + + + + + oggetto WebClient - + - provvede a verificare la dim della cartella dei log e cancella i + vecchi fino a restare a dim inferiori a _logMaxMb + inizializza il metodo alla cartella indicata + + + non serve +... x retrocompatibilità... + + + + metodo di avvio empty - + - fornisce il file + vecchio + cerca di caricare il fileinfo o da httpcontext-application re-position o direttamente come workpath + nomefile + + + + + + + cerca di caricare il fileinfo o da httpcontext-application re-position o direttamente come workpath + nomefile + + + + + + + + cerca di caricare la directoryInfo o da httpcontext-application re-position o direttamente come workpath + + + + + + + Legge i dati da uno stream fino a quando arriva alla fine. + I dati sono restituiti come un byte[] array. un eccezione IOException è + sollevata se una delle chiamate IO sottostanti fallisce. + + Lo stream da cui leggere + Lunghezza buffer iniziale (-1 = default 32k) + + + + verifica esistenza directory, eventualmente crea e restituisce controllo DirectoryInfo + + + + + + ottiene il dataset dei files presenti nella directory indicata esplicitamente + + dir da indicizzare... già mappata! ( es SteamwareStrings.getFilePath(...) ) + + + + + ottiene il dataset dei files presenti nella directory indicata all'istanziazione dell'oggetto + + + + + + ottiene il dataset dei files DEL TIPO "like {param}" presenti nella directory indicata all'istanziazione dell'oggetto + + + + + + elenco dei files come array di oggetti FileInfo + + + + + + elenco dei files come array di oggetti FileInfo filtrati per parametro + + + + + + + elimina la directory di lavoro se è dir virtuale mappata + + + + + + elimina tutti i files con la regexp indicata da una directory, true se cancellato almeno uno + + regexp selezione files in dir (* = tutti!!!) + + + + + verifica se il file indicato esista in workDir + + + + + + + elimina il file indicato dalla directory di lavoro + + + + + + + restituisce lo stream del file richiesto + + + + + + + restituisce la stringa letta dal file richiesto + + + + + + + scrive il file dallo stream byte[] inviato + + + + + + + + scrive il file dalla stringa inviata + + + + + + + + converte una string in un byte[] + + + + + + + converte un byte[] in una string + + + + + + + sposta il file da From a To... + + + + + + + + + copia il file da From a To... + + + + + + + + + copia il file da From a To... + + + + + + + + + + imposta la dir di lavoro + + + + + + imposta la dir di lavoro + + + non serve +... x retrocompatibilità... + + + + imposta la dir di lavoro impostandola dal mapPath corretto della web app... + + + + + + esegue un comando in shell + + + + + + + + + esegue un comando in shell + + + + + + + + + Scarica un file dall'url fornito nella directory indicata x il filemover col nome richiesto + + url del file + nome con cui salvare il file + + + + + comprime zip il file indicato + + + + + + + comprime zip i files corrispondenti alla RegExp indicata nella dir corrente + + Espressione ricerca, come *.txt + Nome del file zip da creare + + + + + scompatta tutto il contenuto di un file zip + + + + + + + scompatta uno specifico file contenuto in un file zip + + + + + + + elimina il file indicato + + + + + + + calcola la dim della directory corrente... - + - livello di log applicazione (da web.config, chiave '_logLevel') - - - - - tipo di log ammesso - - - - - informazioni di debug - - - - - errori - - - - - eccezioni nell'esecuzione try/catch - - - - - errori fatali - - - - - informazioni opzionali - - - - - log dei lemmi invocati per traduzione da vocabolario - - - - - fase di avvio componente - - - - - avvisi - - - - - classe di wrap verso i TableAdapter impiegati - - - - - metodo protected di avvio della classe - - - - - procedura di avvio dei tableAdapter - - - - - procedura di avvio dei tableAdapter - - - - - effettua setup dei connection strings da web.config delal singola applicazione - - - - - effettua setup dei connection strings da web.config delal singola applicazione - - - - - setup delle tabelle vocabolario - - - - - prende l'oggetto tabVocabolario in ram e lo trasforma in dictionary + elimina il file + vecchio + - + - tableAdapter diritti + versione statica (singleton) del'oggetto fileMover - - - tableAdapter permessi + + + Represents a strongly typed in-memory cache of data. - - - tableAdapter funzione + + + Represents the strongly named DataTable class. - - - tableAdapter permessi2funzione + + + Represents the strongly named DataTable class. - - - tableAdapter CdC + + + Represents the strongly named DataTable class. - - - tableAdapter utenti + + + Represents the strongly named DataTable class. - - - table adapter lingue + + + Represents the strongly named DataTable class. - - - table adapter vocabolario + + + Represents the strongly named DataTable class. - - - table adapter versione vocabolario + + + Represents the strongly named DataTable class. - - - table adapter versione anagrafica + + + Represents the strongly named DataTable class. - - - oggetto vocabolario organizzato come dizionario con chiave lang#lemma e valore la traduzione + + + Represents the strongly named DataTable class. - - - resetta il vocabolario rileggendo i dati... + + + Represents the strongly named DataTable class. - - - crea nel db corrente il lemma richiesto e lo valorizza come "--{0}--" - - - - - - - classe singleton x la gestione dei tableadapters + + + Represents strongly named DataRow class. - - - elenco lingue ammesse da vocabolario... + + + Represents strongly named DataRow class. - - - classe di gestione lettura + + + Represents strongly named DataRow class. - - - esegue parsing fornendo dati ed headers - - - - - - - - esegue parsing fornendo dati - - - - - - - esegue parsing fornendo dati come stream - - - - - - - esegue parsing fornendo dati come stream ed headers - - - - - - - - struttura di comando da input utente (es: via barcode) + + + Represents strongly named DataRow class. - - - definisce se il comando sia valido o no + + + Represents strongly named DataRow class. - - - testo da mostrare dato il comando + + + Represents strongly named DataRow class. - - - comando registrato + + + Represents strongly named DataRow class. - - - comando precedentemente inserito + + + Represents strongly named DataRow class. - - - descrizione del comando + + + Represents strongly named DataRow class. - - - descrizione del comando precedente + + + Represents strongly named DataRow class. - - - valore del comando + + + Row event argument class - - - valore tradotto del comando + + + Row event argument class - - - costruttore del metodo... + + + Row event argument class + + + + + Row event argument class + + + + + Row event argument class + + + + + Row event argument class + + + + + Row event argument class + + + + + Row event argument class + + + + + Row event argument class + + + + + Row event argument class + + + + + Represents the connection and commands used to retrieve and save data. + + + + + Represents the connection and commands used to retrieve and save data. + + + + + Represents the connection and commands used to retrieve and save data. + + + + + Represents the connection and commands used to retrieve and save data. + + + + + Represents the connection and commands used to retrieve and save data. + + + + + Represents the connection and commands used to retrieve and save data. + + + + + Represents the connection and commands used to retrieve and save data. + + + + + Represents the connection and commands used to retrieve and save data. + + + + + Represents the connection and commands used to retrieve and save data. + + + + + Represents the connection and commands used to retrieve and save data. @@ -825,6 +1044,20 @@ filtro associato all'evento restituisce il numero di elementi contenuti, -1 significa nessuna differenza... + + + wrapper per log con salvataggio dell'IP del chiamante + + + + + + + wrapper per log con salvataggio dell'IP del chiamante + + + + imposto il tipo di anagrafica del controlloS @@ -861,423 +1094,6 @@ tipo di vista del modulo - - - Summary description for selettori - - - - - - - - - - - - - - - carica i dati CdC se in cache o da TableAdapter - - - - - restituisce l'elenco di tutti i cdc - - - - - - restituisce l'elenco di tutti i cdc della gerarchia dell'utente - - - - - - Represents a strongly typed in-memory cache of data. - - - - - Represents the strongly named DataTable class. - - - - - Represents the strongly named DataTable class. - - - - - Represents the strongly named DataTable class. - - - - - Represents the strongly named DataTable class. - - - - - Represents the strongly named DataTable class. - - - - - Represents the strongly named DataTable class. - - - - - Represents strongly named DataRow class. - - - - - Represents strongly named DataRow class. - - - - - Represents strongly named DataRow class. - - - - - Represents strongly named DataRow class. - - - - - Represents strongly named DataRow class. - - - - - Represents strongly named DataRow class. - - - - - Row event argument class - - - - - Row event argument class - - - - - Row event argument class - - - - - Row event argument class - - - - - Row event argument class - - - - - Row event argument class - - - - - Represents the connection and commands used to retrieve and save data. - - - - - Represents the connection and commands used to retrieve and save data. - - - - - Represents the connection and commands used to retrieve and save data. - - - - - Represents the connection and commands used to retrieve and save data. - - - - - Represents the connection and commands used to retrieve and save data. - - - - - Represents the connection and commands used to retrieve and save data. - - - - - classe di gestione dei db x creazione/update alla versione richiesta - - - - - oggetto connessione - - - - - stringa di connessione - - - - - dir che contiene gli script da eseguire... - - - - - formato del file SQL impiegato (nel senso di formato come iFormat del tipo "App_{0:0000}.sql" --> da App_0001.sql ad App_9999.sql) - - - - - avvio protected della classe - - - - - esegue gli script di sql di update dal file richiesto - - - - - - - - Aggiorna il db eseguendo gli script dalla versione di partenza a quella di arrivo - - NB: per definizione rev 0 = resetta svuotando DB, rev 1 crea tabelle iniziali, rev 2 inserisce i valori di default - - nome DB di cui cercare script - revisione di partenza - revisione di arrivo - timeout max per ogni operazione - - - - - verifica se il db indicato esiste o meno... - - - - - - - - crea il db indicato con i parametri di connessione specificati - - - - - - - - Represents a strongly typed in-memory cache of data. - - - - - Represents the strongly named DataTable class. - - - - - Represents the strongly named DataTable class. - - - - - Represents the strongly named DataTable class. - - - - - Represents the strongly named DataTable class. - - - - - Represents the strongly named DataTable class. - - - - - Represents the strongly named DataTable class. - - - - - Represents the strongly named DataTable class. - - - - - Represents the strongly named DataTable class. - - - - - Represents strongly named DataRow class. - - - - - Represents strongly named DataRow class. - - - - - Represents strongly named DataRow class. - - - - - Represents strongly named DataRow class. - - - - - Represents strongly named DataRow class. - - - - - Represents strongly named DataRow class. - - - - - Represents strongly named DataRow class. - - - - - Represents strongly named DataRow class. - - - - - Row event argument class - - - - - Row event argument class - - - - - Row event argument class - - - - - Row event argument class - - - - - Row event argument class - - - - - Row event argument class - - - - - Row event argument class - - - - - Row event argument class - - - - - Represents the connection and commands used to retrieve and save data. - - - - - Represents the connection and commands used to retrieve and save data. - - - - - Represents the connection and commands used to retrieve and save data. - - - - - Represents the connection and commands used to retrieve and save data. - - - - - Represents the connection and commands used to retrieve and save data. - - - - - Represents the connection and commands used to retrieve and save data. - - - - - Represents the connection and commands used to retrieve and save data. - - - - - Represents the connection and commands used to retrieve and save data. - - - - - classe con funzioni specifiche di calcolo - - - - - inizializzazione classe - - - - - elenco dei caratteri base 36: 0..9A..Z - - - - - - converte da base di dimensione nBase a valore intero - - valore in formato nBase - base, max 36 (0..9A..Z) - - - - - metodo di accesso singleton - - tipo di chart (2D/3D) @@ -1491,21 +1307,6 @@ - - - salvo un valore come cookie - - - - - - - - restituisco un valore da cookie - - - - inserisce in session un valore @@ -1528,6 +1329,36 @@ + + + restituisco un valore da cookie + + + + + + + salvo un valore come cookie + + + + + + + + salvo un valore come cookie con expiry date esplicita + + + + + + + + + elimina un cookie + + + carica dalla Cache un dato di tipo object generico @@ -1606,271 +1437,54 @@ elenco dictionary dei valori in session da NON aggiornare con update... - + - classe gestione parametri deviceper stampa + struttura di comando da input utente (es: via barcode) - + - creazione oggetto parametri per stampa - - - - - - - - - - - - formato output + definisce se il comando sia valido o no - + - altezza + testo da mostrare dato il comando - + - larghezza + comando registrato - + - margine Sx + comando precedentemente inserito - + - margine Dx + descrizione del comando - + - margine Top + descrizione del comando precedente - + - margine Bottom + valore del comando - + - enumeratore modalità login + valore tradotto del comando - + - login AD normale - - - - - forza utente fornendo password - - - - - forza ad un utente standard scelto dall'elenco - - - - - enumeratore modalità scrittura tag siteMap - - - - - nodo di tipo iniziale - apertura - - - - - nodo di tipo foglia - - - - - nodo di tipo finale - chiusura - - - - - enumeratore tipi di anagrafica - - - - - tipo di anagrafica Brembo - - - - - tipo di anagrafica generica - - - - - tipo di vista del modulo - - - - - modalità selezione - - - - - modalità editing - - - - - tipologia di file immagine - - - - - formato gif (no alpha channel) - - - - - formato jpeg - - - - - formato png - - - - - tipo di immagini usate per le icone di comando in web applications - - - - - icona annulla (croce rossa) - - - - - icona approva (simbolo coccarda) - - - - - icona barcode in campo bianco - - - - - icona barcode in campo arancio - - - - - icona clona (magic wand) - - - - - icona converma (spunta verde) - - - - - icona elimina (cestino) - - - - - icona modifica (matita) - - - - - icona notepad (blocco note) - - - - - icona notepad + pdf (blocco note) - - - - - icona nuovo (segno +) - - - - - icona seleziona (lente) - - - - - icona semaforo giallo - - - - - icona semaforo rosso - - - - - icona semaforo verde - - - - - icona stampa (printer) - - - - - dimensione immagini usate per le icone di comando in web applications - - - - - formato piccolo - - - - - formato medio - - - - - formato grande - - - - - modalità di esecuzione applicativi - - - - - modalità normale - - - - - modalità debug - - - - - salvataggio di tutti i lemmi tradotti + costruttore del metodo... @@ -1930,6 +1544,14 @@ + + + costruisce un oggetto intervallo date + + + + + effettua l'operazione di intersezione tra 2 intervali di date restituendo ulteriore intervallo: NB se sono intervali disgiunti restituisce 9/9/9999 x inizio e fine @@ -1982,14 +1604,14 @@ - restituisce l'intervallo del mese corrente per la data indicata + restituisce l'intervallo del mese corrente per la data indicata (dal giorno 1 all'indomani delal data indicata) - restituisce l'intervallo del mese che comprendela data indicata + restituisce l'intervallo del mese che comprende la data indicata (dal primo all'ultimo giorno) @@ -2166,6 +1788,61 @@ + + + + calcola il nome del computer dato l'IP + + + + + + + scarica una pagina da URL e fornisce testo string + + Indirizzo pagina (completo) + username (se necessario) + password (se necessaria) + + + + + manda pacchetto ARP + + + + + + + + + + fornisce mac address dato nome/IP + + + + + + + utils x cifrature e Crypto + + + + + cifra un messaggio con una password + + + + + + + + decifra un messaggio con una password + + + + + Represents a strongly typed in-memory cache of data. @@ -2291,6 +1968,270 @@ Represents the connection and commands used to retrieve and save data. + + + classe di gestione lettura + + + + + esegue parsing fornendo dati ed headers + + + + + + + + esegue parsing fornendo dati + + + + + + + esegue parsing fornendo dati come stream + + + + + + + esegue parsing fornendo dati come stream ed headers + + + + + + + + classe per effettuare confronto tra valori disomogeneri per tipo e costruire diff testuali + + + + + valore originale + + + + + nuovo valore + + + + + dictionary dei parametri vecchi + + + + + dictionary dei parametri nuovi + + + + + inizializzazione classe + + + + + valorizza i diff dei valori old e new + + + + + calcola solo il vettore dei valori old (x delete) + + + + + oggetto statico per il confronto valori + + + + + stringa diff dei valori originali modificati + + + + + stringa diff dei valori nuovi modificati + + + + + dictionary dei parametri old + + + + + dictionary dei parametri new + + + + + classe gesione log files applicazioni + + + + + directory base x logs + + + + + nome del file corrente + + + + + max mb di log da accumulare + + + + + controlla se si debba mantenere sotto controllo la dimensioen della cartella logs + + + + + singleton del logger + + + + + avvio del logger nella dir desiderata + + + + + avvio del logger nella dir desiderata + + + + + avvio del logger nella dir desiderata con il max di dati indicato + + + + + resetta il logfile odierno + + + + + scrive sul file log di default il valore della variabile string passata su una riga... (tab delim?!?) + + testo iniziale del log + + + + + scrive un messaggio di log con etichetta pre + + testo messaggio + tipo di log da registrare (etichetta [...]) + + + + + fornisce il nome del file in cui loggare (ed eventualmente crea...) + + + + + provvede a verificare la dim della cartella dei log e cancella i + vecchi fino a restare a dim inferiori a _logMaxMb + + + + + fornisce il file + vecchio + + + + + + + livello di log applicazione (da web.config, chiave '_logLevel') + + + + + tipo di log ammesso + + + + + informazioni di debug + + + + + errori + + + + + eccezioni nell'esecuzione try/catch + + + + + errori fatali + + + + + informazioni opzionali + + + + + log dei lemmi invocati per traduzione da vocabolario + + + + + fase di avvio componente + + + + + avvisi + + + + + Summary description for selettori + + + + + + + + + + + + + + + carica i dati CdC se in cache o da TableAdapter + + + + + restituisce l'elenco di tutti i cdc + + + + + + restituisce l'elenco di tutti i cdc della gerarchia dell'utente + + + classe gestione utente: auth e permission/ruoli - versione GENERICA @@ -2306,11 +2247,21 @@ carica la riga dati utente + + + carica la riga dati utente da SOLO USERNAME + + Carica la tabella diritti dell'utente da db e salva in session + + + Carica la tabella diritti dell'utente da db e salva in session + + Carica la tabella diritti dell'utente da db e salva in session SOLO per il CDC indicato @@ -2390,6 +2341,22 @@ + + + Procedura da chiamare DOPO aver messo in session i dati utente/dominio x caricare gli altri dati + + + + + + + + controllo utente/pwd da tab + + + + + Procedura da chiamare DOPO aver messo in session i dati utente/dominio x caricare gli altri dati CON I DIRITTI SOLO per il CDC indicato @@ -2583,6 +2550,11 @@ oggetto utente con metodi get/set + + + oggetto password con metodi get/set + + oggetto dominio con metodi get/set @@ -2648,386 +2620,382 @@ è un boolean che indica se in session ci siano user/dominio e quindi utente autenticato in rpecedenza... - + - Accesso in lettura e scrittura al filesystem per gestione files upload e download + classe gestione parametri deviceper stampa - + - path di lavoro dei metodi leggi/scrivi + creazione oggetto parametri per stampa + + + + + + + + + + + + formato output - + - verifica esistenza directory ed eventualmente crea restituendo nome completo di "/" finale + altezza - + + + + larghezza + + + + + margine Sx + + + + + margine Dx + + + + + margine Top + + + + + margine Bottom + + + + + enumeratore modalità login + + + + + login AD normale + + + + + forza utente fornendo password + + + + + forza ad un utente standard scelto dall'elenco + + + + + enumeratore modalità scrittura tag siteMap + + + + + nodo di tipo iniziale - apertura + + + + + nodo di tipo foglia + + + + + nodo di tipo finale - chiusura + + + + + enumeratore tipi di anagrafica + + + + + tipo di anagrafica Brembo + + + + + tipo di anagrafica generica + + + + + tipo di vista del modulo + + + + + modalità selezione + + + + + modalità editing + + + + + modalità inserting nuovo valore + + + + + tipologia di file immagine + + + + + formato gif (no alpha channel) + + + + + formato jpeg + + + + + formato png + + + + + tipo di immagini usate per le icone di comando in web applications + + + + + icona annulla (croce rossa) + + + + + icona approva (simbolo coccarda) + + + + + icona barcode in campo bianco + + + + + icona barcode in campo arancio + + + + + icona clona (magic wand) + + + + + icona converma (spunta verde) + + + + + icona elimina (cestino) + + + + + icona modifica (matita) + + + + + icona notepad (blocco note) + + + + + icona notepad + pdf (blocco note) + + + + + icona nuovo (segno +) + + + + + icona seleziona (lente) + + + + + icona semaforo giallo + + + + + icona semaforo rosso + + + + + icona semaforo verde + + + + + icona stampa (printer) + + + + + dimensione immagini usate per le icone di comando in web applications + + + + + formato piccolo + + + + + formato medio + + + + + formato grande + + + + + modalità di esecuzione applicativi + + + + + modalità normale + + + + + modalità debug + + + + + salvataggio di tutti i lemmi tradotti + + + + + classe di gestione dei db x creazione/update alla versione richiesta + + + + + oggetto connessione + + + + + stringa di connessione + + + + + dir che contiene gli script da eseguire... + + + + + formato del file SQL impiegato (nel senso di formato come iFormat del tipo "App_{0:0000}.sql" --> da App_0001.sql ad App_9999.sql) + + + + + avvio protected della classe + + + + + esegue gli script di sql di update dal file richiesto + + + - + - restituisce una tab di files dato l'elenco dei files + Aggiorna il db eseguendo gli script dalla versione di partenza a quella di arrivo + + NB: per definizione rev 0 = resetta svuotando DB, rev 1 crea tabelle iniziali, rev 2 inserisce i valori di default - + nome DB di cui cercare script + revisione di partenza + revisione di arrivo + timeout max per ogni operazione - + - setta le directory + verifica se il db indicato esiste o meno... - - - - - oggetto WebClient - - - - - inizializza il metodo alla cartella indicata - - - non serve +... x retrocompatibilità... - - - - metodo di avvio empty - - - - - cerca di caricare il fileinfo o da httpcontext-application re-position o direttamente come workpath + nomefile - - + + - + - cerca di caricare il fileinfo o da httpcontext-application re-position o direttamente come workpath + nomefile + crea il db indicato con i parametri di connessione specificati - - + + - + - cerca di caricare la directoryInfo o da httpcontext-application re-position o direttamente come workpath + Pagina base applicazioni SteamWare da cui derivare le altre - + + + + Iniziazlizzazione void (non fa nulla) + + + + + Metodo MAIN: viene eseguita al caricamento ed effettua delle routines per il controllo utente e istanzia l'oggetto memLayer + + + + + + + rimanda alla pagina di Work In Progress salvando in session un titolo ed una descrizione che al pagina wip poi mostrerà all'utente + + titolo da mostrare nella pagina WIP + descrizione da mostrare nella pagina WIP + + + + wrapper per log con salvataggio dell'IP del chiamante + + - + - Legge i dati da uno stream fino a quando arriva alla fine. - I dati sono restituiti come un byte[] array. un eccezione IOException è - sollevata se una delle chiamate IO sottostanti fallisce. - - Lo stream da cui leggere - Lunghezza buffer iniziale (-1 = default 32k) - - - - verifica esistenza directory, eventualmente crea e restituisce controllo DirectoryInfo + wrapper per log con salvataggio dell'IP del chiamante + - - - ottiene il dataset dei files presenti nella directory indicata esplicitamente - - dir da indicizzare... già mappata! ( es SteamwareStrings.getFilePath(...) ) - - - - - ottiene il dataset dei files presenti nella directory indicata all'istanziazione dell'oggetto - - - - - - ottiene il dataset dei files DEL TIPO "like {param}" presenti nella directory indicata all'istanziazione dell'oggetto - - - - - - elenco dei files come array di oggetti FileInfo - - - - - - elenco dei files come array di oggetti FileInfo filtrati per parametro - - - - - - - elimina la directory di lavoro se è dir virtuale mappata - - - - - - elimina tutti i files con la regexp indicata da una directory, true se cancellato almeno uno - - regexp selezione files in dir (* = tutti!!!) - - - - - verifica se il file indicato esista in workDir - - - - - - - elimina il file indicato dalla directory di lavoro - - - - - - - restituisce lo stream del file richiesto - - - - - - - restituisce la stringa letta dal file richiesto - - - - - - - scrive il file dallo stream byte[] inviato - - - - - - - - scrive il file dalla stringa inviata - - - - - - - - converte una string in un byte[] - - - - - - - converte un byte[] in una string - - - - - - - sposta il file da From a To... - - - - - - - - - copia il file da From a To... - - - - - - - - - copia il file da From a To... - - - - - - - - - - imposta la dir di lavoro - - - - - - imposta la dir di lavoro - - - non serve +... x retrocompatibilità... - - - - imposta la dir di lavoro impostandola dal mapPath corretto della web app... - - - - - - esegue un comando in shell - - - - - - - - - esegue un comando in shell - - - - - - - - - Scarica un file dall'url fornito nella directory indicata x il filemover col nome richiesto - - url del file - nome con cui salvare il file - - - - - comprime zip il file indicato - - - - - - - comprime zip i files corrispondenti alla RegExp indicata nella dir corrente - - Espressione ricerca, come *.txt - Nome del file zip da creare - - - - - scompatta tutto il contenuto di un file zip - - - - - - - scompatta uno specifico file contenuto in un file zip - - - - - - - elimina il file indicato - - - - - - - calcola la dim della directory corrente... - - - - - - - elimina il file + vecchio - - - - - - - versione statica (singleton) del'oggetto fileMover - - - - - classe per effettuare confronto tra valori disomogeneri per tipo e costruire diff testuali - - - - - valore originale - - - - - nuovo valore - - - - - dictionary dei parametri vecchi - - - - - dictionary dei parametri nuovi - - - - - inizializzazione classe - - - - - valorizza i diff dei valori old e new - - - - - calcola solo il vettore dei valori old (x delete) - - - - - oggetto statico per il confronto valori - - - - - stringa diff dei valori originali modificati - - - - - stringa diff dei valori nuovi modificati - - - - - dictionary dei parametri old - - - - - dictionary dei parametri new - - classe gestione logging esteso di eventi e note utente (correlabili) @@ -3241,29 +3209,258 @@ permette SIA con revisione che senza (e anche rev -1) - - - Pagina base applicazioni SteamWare da cui derivare le altre + + + Represents a strongly typed in-memory cache of data. - - - Iniziazlizzazione void (non fa nulla) + + + Represents the strongly named DataTable class. - - - Metodo MAIN: viene eseguita al caricamento ed effettua delle routines per il controllo utente e istanzia l'oggetto memLayer + + + Represents the strongly named DataTable class. - - - - - rimanda alla pagina di Work In Progress salvando in session un titolo ed una descrizione che al pagina wip poi mostrerà all'utente + + + Represents the strongly named DataTable class. + + + + + Represents the strongly named DataTable class. + + + + + Represents the strongly named DataTable class. + + + + + Represents the strongly named DataTable class. + + + + + Represents strongly named DataRow class. + + + + + Represents strongly named DataRow class. + + + + + Represents strongly named DataRow class. + + + + + Represents strongly named DataRow class. + + + + + Represents strongly named DataRow class. + + + + + Represents strongly named DataRow class. + + + + + Row event argument class + + + + + Row event argument class + + + + + Row event argument class + + + + + Row event argument class + + + + + Row event argument class + + + + + Row event argument class + + + + + Represents the connection and commands used to retrieve and save data. + + + + + Represents the connection and commands used to retrieve and save data. + + + + + Represents the connection and commands used to retrieve and save data. + + + + + Represents the connection and commands used to retrieve and save data. + + + + + Represents the connection and commands used to retrieve and save data. + + + + + Represents the connection and commands used to retrieve and save data. + + + + + classe di wrap verso i TableAdapter impiegati + + + + + metodo protected di avvio della classe + + + + + procedura di avvio dei tableAdapter + + + + + procedura di avvio dei tableAdapter + + + + + effettua setup dei connection strings da web.config delal singola applicazione + + + + + effettua setup dei connection strings da web.config delal singola applicazione + + + + + setup delle tabelle vocabolario + + + + + prende l'oggetto tabVocabolario in ram e lo trasforma in dictionary + + + + + + tableAdapter diritti + + + + + tableAdapter permessi + + + + + tableAdapter funzione + + + + + tableAdapter permessi2funzione + + + + + tableAdapter CdC + + + + + tableAdapter utenti + + + + + tableAdapter userData (user/pwd) + + + + + tableAdapter userDataExt (user/pwd) + + + + + table adapter lingue + + + + + table adapter vocabolario + + + + + table adapter versione vocabolario + + + + + table adapter versione anagrafica + + + + + oggetto vocabolario organizzato come dizionario con chiave lang#lemma e valore la traduzione + + + + + resetta il vocabolario rileggendo i dati... + + + + + crea nel db corrente il lemma richiesto e lo valorizza come "--{0}--" + + + + + + + classe singleton x la gestione dei tableadapters + + + + + elenco lingue ammesse da vocabolario... - titolo da mostrare nella pagina WIP - descrizione da mostrare nella pagina WIP diff --git a/Projects/WebGIM/GIM_data/bin/SteamWare.dll b/Projects/WebGIM/GIM_data/bin/SteamWare.dll index 6cb13fb..0c20a46 100644 Binary files a/Projects/WebGIM/GIM_data/bin/SteamWare.dll and b/Projects/WebGIM/GIM_data/bin/SteamWare.dll differ diff --git a/Projects/WebGIM/GIM_data/mtzProgr.cs b/Projects/WebGIM/GIM_data/mtzProgr.cs index c6fbb0d..4858704 100644 --- a/Projects/WebGIM/GIM_data/mtzProgr.cs +++ b/Projects/WebGIM/GIM_data/mtzProgr.cs @@ -10,8 +10,8 @@ public class mtzProgr { #region table adapters - protected GIM_data.DS_applicazioneTableAdapters.MtzProgrammataTableAdapter taMtzProg; - protected GIM_data.DS_applicazioneTableAdapters.MtzProgPendingTableAdapter taMtzPend; + public GIM_data.DS_applicazioneTableAdapters.MtzProgrammataTableAdapter taMtzProg; + public GIM_data.DS_applicazioneTableAdapters.MtzProgPendingTableAdapter taMtzPend; #endregion diff --git a/Projects/WebGIM/GIM_data/obj/Debug/GIM_data.csprojResolveAssemblyReference.cache b/Projects/WebGIM/GIM_data/obj/Debug/GIM_data.csprojResolveAssemblyReference.cache new file mode 100644 index 0000000..afaa67d Binary files /dev/null and b/Projects/WebGIM/GIM_data/obj/Debug/GIM_data.csprojResolveAssemblyReference.cache differ diff --git a/Projects/WebGIM/GIM_data/obj/Somaschini/GIM_data.dll b/Projects/WebGIM/GIM_data/obj/Somaschini/GIM_data.dll index 2c3bafb..b4546d5 100644 Binary files a/Projects/WebGIM/GIM_data/obj/Somaschini/GIM_data.dll and b/Projects/WebGIM/GIM_data/obj/Somaschini/GIM_data.dll differ diff --git a/Projects/WebGIM/GIM_data/obj/Somaschini/TempPE/DS_applicazione.Designer.cs.dll b/Projects/WebGIM/GIM_data/obj/Somaschini/TempPE/DS_applicazione.Designer.cs.dll index febad88..f85c8ba 100644 Binary files a/Projects/WebGIM/GIM_data/obj/Somaschini/TempPE/DS_applicazione.Designer.cs.dll and b/Projects/WebGIM/GIM_data/obj/Somaschini/TempPE/DS_applicazione.Designer.cs.dll differ diff --git a/Projects/WebGIM/GIM_site/GIM_site.csproj b/Projects/WebGIM/GIM_site/GIM_site.csproj index 94f6ee6..277149f 100644 --- a/Projects/WebGIM/GIM_site/GIM_site.csproj +++ b/Projects/WebGIM/GIM_site/GIM_site.csproj @@ -106,9 +106,12 @@ false - + False - ..\..\..\..\..\..\..\Library\AspNetAjax\WebForms\Release\AjaxControlToolkit.dll + ..\packages\AjaxControlToolkit.4.1.60623\lib\35\AjaxControlToolkit.dll + + + ..\packages\AjaxControlToolkit.4.1.60623\lib\35\SanitizerProviders\SanitizerProviders.dll @@ -162,6 +165,9 @@ + + + @@ -1011,9 +1017,7 @@ - - @@ -1085,16 +1089,31 @@ - - - - - - - - - - + + + + + + + + + + + + Web.config + + + Web.config + + + Web.config + + + Web.config + + + Web.config + diff --git a/Projects/WebGIM/GIM_site/Style.css b/Projects/WebGIM/GIM_site/Style.css index 5711068..5889c62 100644 --- a/Projects/WebGIM/GIM_site/Style.css +++ b/Projects/WebGIM/GIM_site/Style.css @@ -68,7 +68,6 @@ padding-bottom: 1px; margin-bottom: 5px; } - .semaforoVerde { color: Green; @@ -84,6 +83,14 @@ font-weight: bold; } +/* colori base */ +.sfondoGrigio +{ + background-color: #CDCDCD; +} + +/* END colori base */ + /* @group Calendario */ .calSel @@ -1251,10 +1258,6 @@ A:hover { font-size: 8pt; } -.txtMini -{ - font-size: 8pt; -} .txtMiniLeft { font-size: 8pt; @@ -3001,3 +3004,4 @@ grViewBorder { background-color: silver; } + diff --git a/Projects/WebGIM/GIM_site/Web.Debug.config b/Projects/WebGIM/GIM_site/Web.Debug.config new file mode 100644 index 0000000..319441e --- /dev/null +++ b/Projects/WebGIM/GIM_site/Web.Debug.config @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Projects/WebGIM/GIM_site/Web.Release.config b/Projects/WebGIM/GIM_site/Web.Release.config new file mode 100644 index 0000000..141832b --- /dev/null +++ b/Projects/WebGIM/GIM_site/Web.Release.config @@ -0,0 +1,31 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/Projects/WebGIM/GIM_site/Web.Somaschini.config b/Projects/WebGIM/GIM_site/Web.Somaschini.config new file mode 100644 index 0000000..a0dc0e5 --- /dev/null +++ b/Projects/WebGIM/GIM_site/Web.Somaschini.config @@ -0,0 +1,72 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Projects/WebGIM/GIM_site/Web.Test218.config b/Projects/WebGIM/GIM_site/Web.Test218.config new file mode 100644 index 0000000..141832b --- /dev/null +++ b/Projects/WebGIM/GIM_site/Web.Test218.config @@ -0,0 +1,31 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/Projects/WebGIM/GIM_site/Web.WinLab.config b/Projects/WebGIM/GIM_site/Web.WinLab.config new file mode 100644 index 0000000..141832b --- /dev/null +++ b/Projects/WebGIM/GIM_site/Web.WinLab.config @@ -0,0 +1,31 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/Projects/WebGIM/GIM_site/Web.config b/Projects/WebGIM/GIM_site/Web.config index 526c7b5..a7995ce 100644 --- a/Projects/WebGIM/GIM_site/Web.config +++ b/Projects/WebGIM/GIM_site/Web.config @@ -1,4 +1,4 @@ - + + @@ -81,73 +82,75 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + + + - - - + + + - - - - - - - - - - - - - + + + + + + + + + + + + + - - - - + + + + - + - + @@ -180,6 +183,10 @@ + + + + @@ -195,4 +202,4 @@ - + \ No newline at end of file diff --git a/Projects/WebGIM/GIM_site/WebUserControls/mod_dettMtzProg.ascx b/Projects/WebGIM/GIM_site/WebUserControls/mod_dettMtzProg.ascx index b2c75c3..a1ca745 100644 --- a/Projects/WebGIM/GIM_site/WebUserControls/mod_dettMtzProg.ascx +++ b/Projects/WebGIM/GIM_site/WebUserControls/mod_dettMtzProg.ascx @@ -1,21 +1,20 @@ -<%@ Control Language="C#" AutoEventWireup="true" - Inherits="mod_dettMtzProg" Codebehind="mod_dettMtzProg.ascx.cs" %> +<%@ Control Language="C#" AutoEventWireup="true" Inherits="mod_dettMtzProg" CodeBehind="mod_dettMtzProg.ascx.cs" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> <%@ Register Src="mod_filtro.ascx" TagName="mod_filtro" TagPrefix="uc1" %> @@ -31,10 +30,9 @@
-
- +
diff --git a/Projects/WebGIM/GIM_site/WebUserControls/mod_dettMtzProg.ascx.designer.cs b/Projects/WebGIM/GIM_site/WebUserControls/mod_dettMtzProg.ascx.designer.cs index 31be36d..2b26fc9 100644 --- a/Projects/WebGIM/GIM_site/WebUserControls/mod_dettMtzProg.ascx.designer.cs +++ b/Projects/WebGIM/GIM_site/WebUserControls/mod_dettMtzProg.ascx.designer.cs @@ -1,10 +1,9 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:2.0.50727.4927 // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. // //------------------------------------------------------------------------------ diff --git a/Projects/WebGIM/GIM_site/WebUserControls/mod_elencoMtzProg.ascx b/Projects/WebGIM/GIM_site/WebUserControls/mod_elencoMtzProg.ascx index ef0690f..9faf5f3 100644 --- a/Projects/WebGIM/GIM_site/WebUserControls/mod_elencoMtzProg.ascx +++ b/Projects/WebGIM/GIM_site/WebUserControls/mod_elencoMtzProg.ascx @@ -1,112 +1,216 @@ -<%@ Control Language="C#" AutoEventWireup="true" - Inherits="mod_elencoMtzProg" Codebehind="mod_elencoMtzProg.ascx.cs" %> +<%@ Control Language="C#" AutoEventWireup="true" Inherits="mod_elencoMtzProg" CodeBehind="mod_elencoMtzProg.ascx.cs" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> <%@ Register Src="~/WebUserControls/mod_filtro.ascx" TagName="mod_filtro" TagPrefix="uc1" %> -
+<% if (false) + { %> + +<% } %> +
+ + + + +
+
+
+ + + + + + +
+
+ + + + + + +
+
+
+
+ + + + +
+
+ + + + + + + +
+
+
+
+ + + + + + + +
+
+ + + + +
+
+
+
+ + + + +
+
+ Selezionare a sinistra le opzioni da sovrascrivere: +
+ +
+ +
+
+
+
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <%-- + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%-- --%> - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/Projects/WebGIM/GIM_site/WebUserControls/mod_elencoMtzProg.ascx.cs b/Projects/WebGIM/GIM_site/WebUserControls/mod_elencoMtzProg.ascx.cs index 771d34b..b3170f4 100644 --- a/Projects/WebGIM/GIM_site/WebUserControls/mod_elencoMtzProg.ascx.cs +++ b/Projects/WebGIM/GIM_site/WebUserControls/mod_elencoMtzProg.ascx.cs @@ -5,6 +5,7 @@ using System.Web.UI; using System.Web.UI.WebControls; using SteamWare; using System.Data; +using GIM_data; public partial class mod_elencoMtzProg : ApplicationUserControl { @@ -13,6 +14,7 @@ public partial class mod_elencoMtzProg : ApplicationUserControl public event EventHandler eh_newReq; public event EventHandler eh_resetSelezione; public event EventHandler eh_selValore; + public event EventHandler eh_updateDone; #endregion protected string _idxGridView; @@ -24,8 +26,17 @@ public partial class mod_elencoMtzProg : ApplicationUserControl { base.traduciObj(); btnShowNew.Text = traduci("btnShowNew"); - //lblFiltMacchina.Text = traduci("lblFiltMacchina"); - //lblFiltTipo.Text = traduci("lblFiltTipo"); + btnMassEdit.Text = traduci("btnMassEditShow"); + btnEditCancel.Text = traduci("btnEditCancel"); + btnEditConfirm.Text = traduci("btnEditConfirm"); + chkInizioMtzPro.Text = traduci("chkInizioMtzPro"); + chkPrior.Text = traduci("chkPrior"); + chkSetFermo.Text = traduci("chkSetFermo"); + chkImpFermo.Text = traduci("chkImpFermo"); + chkTipoGuasto.Text = traduci("chkTipoGuasto"); + chkFreq.Text = traduci("lblFreq"); + chkCadenza.Text = traduci("lblCadenza"); + chkDescrMtzPro.Text = traduci("chkDescrMtzPro"); } /// @@ -54,6 +65,7 @@ public partial class mod_elencoMtzProg : ApplicationUserControl /// public void doUpdate() { + setBtnEdit(); checkFixOds(); grView.DataBind(); } @@ -206,6 +218,8 @@ public partial class mod_elencoMtzProg : ApplicationUserControl { base.OnInit(e); _idxGridView = "idxIntPro"; + txtDataInizio.Text = DateTime.Now.ToShortDateString(); + txtCadenza.Text = "1"; } void mod_filtroMacchina_eh_selValore(object sender, EventArgs e) @@ -234,4 +248,196 @@ public partial class mod_elencoMtzProg : ApplicationUserControl } ods.DataBind(); } + /// + /// controllo visibilità pannello edit in massa + /// + /// + /// + protected void btnMassEdit_Click(object sender, EventArgs e) + { + pnlMassEdit.Visible = !pnlMassEdit.Visible; + if (pnlMassEdit.Visible) + { + btnMassEdit.Text = traduci("btnMassEditHide"); + } + else + { + btnMassEdit.Text = traduci("btnMassEditShow"); + } + checkFixOds(); + } + /// + /// seleziona/deseleziona le righe indicate... + /// + /// + /// + protected void btnSelAll_Click(object sender, EventArgs e) + { + // seleziono tutti i valori visibili nel datagrid + CheckBox chkbox = ((CheckBox)sender); + bool isChecked = chkbox.Checked; + if (!isChecked) + { + chkbox.ToolTip = traduci("btnSelAll"); + } + else + { + chkbox.ToolTip = traduci("btnDeselAll"); + } + foreach (GridViewRow riga in grView.Rows) + { + ((CheckBox)riga.FindControl("chkSelect")).Checked = isChecked; + } + } + /// + /// aggiorna selezione di default + /// + /// + /// + protected void ddlPrior_DataBound(object sender, EventArgs e) + { + ddlPrior.SelectedIndex = 2; + } + + #region gestione checkBox edit campi + + protected void chkInizioMtzPro_CheckedChanged(object sender, EventArgs e) + { + pnlInizio.Visible = chkInizioMtzPro.Checked; + setBtnEdit(); + } + protected void chkPrior_CheckedChanged(object sender, EventArgs e) + { + pnlPrior.Visible = chkPrior.Checked; + setBtnEdit(); + } + protected void chkSetFermo_CheckedChanged(object sender, EventArgs e) + { + pnlSetFermo.Visible = chkSetFermo.Checked; + setBtnEdit(); + } + protected void chkTipoGuasto_CheckedChanged(object sender, EventArgs e) + { + pnlTipoGuasto.Visible = chkTipoGuasto.Checked; + setBtnEdit(); + } + protected void chkFreq_CheckedChanged(object sender, EventArgs e) + { + pnlFreq.Visible = chkFreq.Checked; + setBtnEdit(); + } + protected void chkCadenza_CheckedChanged(object sender, EventArgs e) + { + pnlCadenza.Visible = chkCadenza.Checked; + setBtnEdit(); + } + protected void chkDescrMtzPro_CheckedChanged(object sender, EventArgs e) + { + pnlDescrMtzPro.Visible = chkDescrMtzPro.Checked; + setBtnEdit(); + } + /// + /// sistema btn edit (attivi se almeno 1 valore checked) + /// + protected void setBtnEdit() + { + bool saveEnabled = false; + if (chkCadenza.Checked || chkDescrMtzPro.Checked || chkFreq.Checked || chkTipoGuasto.Checked || chkInizioMtzPro.Checked || chkPrior.Checked || chkSetFermo.Checked) + { + saveEnabled = true; + } + btnEditConfirm.Enabled = saveEnabled; + btnEditCancel.Enabled = saveEnabled; + } + + #endregion + + /// + /// applica edit a tutte le righe selezionate + /// + /// + /// + protected void btnEditConfirm_Click(object sender, EventArgs e) + { + // controllo quali righe siano checked + DS_applicazione.MtzProgrammataRow rigaMtzPro; + int idxIntPro; + foreach (GridViewRow riga in grView.Rows) + { + if (((CheckBox)riga.FindControl("chkSelect")).Checked) + { + try + { + // leggo il record della riga + idxIntPro = Convert.ToInt32(((Label)riga.FindControl("lblidxIntPro")).Text); + rigaMtzPro = (DS_applicazione.MtzProgrammataRow)mtzProgr.obj.taMtzProg.getByKey(idxIntPro)[0]; + // controllo 1:1 i valori che si vogliono sovrascrivere + if (chkInizioMtzPro.Checked) + { + rigaMtzPro.inizio = Convert.ToDateTime(txtDataInizio.Text); + } + if (chkPrior.Checked) + { + rigaMtzPro.idxPriorita = Convert.ToInt32(ddlPrior.SelectedValue); + } + if (chkSetFermo.Checked) + { + rigaMtzPro.isFermo = chkSetFermo.Checked; + } + if (chkTipoGuasto.Checked) + { + rigaMtzPro.idxTipo = Convert.ToInt32(ddlTipo.Text); + } + if (chkFreq.Checked) + { + rigaMtzPro.codFrequenza = ddlFreq.SelectedValue; + } + if (chkCadenza.Checked) + { + rigaMtzPro.cadenza = Convert.ToInt32(txtCadenza.Text); + } + if (chkDescrMtzPro.Checked) + { + rigaMtzPro.descrizione = txtDescrizione.Text; + } + // aggiorno i valori! + mtzProgr.obj.taMtzProg.updateQuery(rigaMtzPro.idxIntPro, rigaMtzPro.inizio, rigaMtzPro.codFrequenza, rigaMtzPro.cadenza, rigaMtzPro.descrizione, rigaMtzPro.idxPriorita, rigaMtzPro.isFermo, rigaMtzPro.idxTipo); + } + catch + { } + } + } + // a questo punto aggiorno e ricalcolo pending! + mtzProgr.obj.processaCodaMtzPro(); + grView.DataBind(); + UpdatePanel2.Update(); + // chiamo evento + if (eh_updateDone != null) + { + eh_updateDone(this, new EventArgs()); + } + } + /// + /// annulla edit (deseleziona checkbox...) + /// + /// + /// + protected void btnEditCancel_Click(object sender, EventArgs e) + { + chkCadenza.Checked = false; + chkDescrMtzPro.Checked = false; + chkFreq.Checked = false; + chkInizioMtzPro.Checked = false; + chkPrior.Checked = false; + chkSetFermo.Checked = false; + chkTipoGuasto.Checked = false; + pnlCadenza.Visible = false; + pnlDescrMtzPro.Visible = false; + pnlFreq.Visible = false; + pnlInizio.Visible = false; + pnlPrior.Visible = false; + pnlSetFermo.Visible = false; + pnlTipoGuasto.Visible = false; + } + } diff --git a/Projects/WebGIM/GIM_site/WebUserControls/mod_elencoMtzProg.ascx.designer.cs b/Projects/WebGIM/GIM_site/WebUserControls/mod_elencoMtzProg.ascx.designer.cs index ec1cf4b..ae254a0 100644 --- a/Projects/WebGIM/GIM_site/WebUserControls/mod_elencoMtzProg.ascx.designer.cs +++ b/Projects/WebGIM/GIM_site/WebUserControls/mod_elencoMtzProg.ascx.designer.cs @@ -1,10 +1,9 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:2.0.50727.4927 // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. // //------------------------------------------------------------------------------ @@ -21,6 +20,285 @@ public partial class mod_elencoMtzProg { /// protected global::System.Web.UI.WebControls.Button btnShowNew; + /// + /// btnMassEdit control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Button btnMassEdit; + + /// + /// UpdatePanel1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.UpdatePanel UpdatePanel1; + + /// + /// pnlMassEdit control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Panel pnlMassEdit; + + /// + /// chkInizioMtzPro control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.CheckBox chkInizioMtzPro; + + /// + /// pnlInizio control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Panel pnlInizio; + + /// + /// txtDataInizio control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtDataInizio; + + /// + /// CalendarExtender1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::AjaxControlToolkit.CalendarExtender CalendarExtender1; + + /// + /// chkPrior control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.CheckBox chkPrior; + + /// + /// pnlPrior control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Panel pnlPrior; + + /// + /// ddlPrior control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList ddlPrior; + + /// + /// odsPrior control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource odsPrior; + + /// + /// chkSetFermo control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.CheckBox chkSetFermo; + + /// + /// pnlSetFermo control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Panel pnlSetFermo; + + /// + /// chkImpFermo control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.CheckBox chkImpFermo; + + /// + /// chkTipoGuasto control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.CheckBox chkTipoGuasto; + + /// + /// pnlTipoGuasto control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Panel pnlTipoGuasto; + + /// + /// ddlTipo control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList ddlTipo; + + /// + /// odsTipo control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource odsTipo; + + /// + /// chkFreq control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.CheckBox chkFreq; + + /// + /// pnlFreq control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Panel pnlFreq; + + /// + /// ddlFreq control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList ddlFreq; + + /// + /// odsFreq control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource odsFreq; + + /// + /// chkCadenza control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.CheckBox chkCadenza; + + /// + /// pnlCadenza control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Panel pnlCadenza; + + /// + /// txtCadenza control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtCadenza; + + /// + /// chkDescrMtzPro control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.CheckBox chkDescrMtzPro; + + /// + /// pnlDescrMtzPro control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Panel pnlDescrMtzPro; + + /// + /// txtDescrizione control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtDescrizione; + + /// + /// btnEditConfirm control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Button btnEditConfirm; + + /// + /// btnEditCancel control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Button btnEditCancel; + + /// + /// UpdatePanel2 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.UpdatePanel UpdatePanel2; + /// /// grView control. /// diff --git a/Projects/WebGIM/GIM_site/WebUserControls/mod_mtzPrevPending.ascx b/Projects/WebGIM/GIM_site/WebUserControls/mod_mtzPrevPending.ascx index abe56ec..6c36b54 100644 --- a/Projects/WebGIM/GIM_site/WebUserControls/mod_mtzPrevPending.ascx +++ b/Projects/WebGIM/GIM_site/WebUserControls/mod_mtzPrevPending.ascx @@ -1,12 +1,11 @@ -<%@ Control Language="C#" AutoEventWireup="true" - Inherits="mod_mtzPrevPending" Codebehind="mod_mtzPrevPending.ascx.cs" %> +<%@ Control Language="C#" AutoEventWireup="true" Inherits="mod_mtzPrevPending" CodeBehind="mod_mtzPrevPending.ascx.cs" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
+ DataKeyNames="idxPending" DataSourceID="ods" OnDataBound="grView_DataBound" EnableModelValidation="True"> @@ -21,19 +20,29 @@ - - - - + + + +
+ +
+
+ + + +
+ +
+
- + + OldValuesParameterFormatString="Original_{0}" FilterExpression=" (codImpianto LIKE '%{0}%') OR (nomeImpianto LIKE '%{0}%') OR (codMacchina LIKE '%{0}%') OR (nomeMacchina LIKE '%{0}%') OR (descrizione LIKE '%{0}%') OR (descrPriorita LIKE '%{0}%') OR (descrTipo LIKE '%{0}%') "> // This code was generated by a tool. -// Runtime Version:2.0.50727.4927 // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. // //------------------------------------------------------------------------------ diff --git a/Projects/WebGIM/GIM_site/bin/AjaxControlToolkit.dll b/Projects/WebGIM/GIM_site/bin/AjaxControlToolkit.dll index 0f57b2a..23c20d6 100644 Binary files a/Projects/WebGIM/GIM_site/bin/AjaxControlToolkit.dll and b/Projects/WebGIM/GIM_site/bin/AjaxControlToolkit.dll differ diff --git a/Projects/WebGIM/GIM_site/bin/AjaxControlToolkit.pdb b/Projects/WebGIM/GIM_site/bin/AjaxControlToolkit.pdb deleted file mode 100644 index ffbe387..0000000 Binary files a/Projects/WebGIM/GIM_site/bin/AjaxControlToolkit.pdb and /dev/null differ diff --git a/Projects/WebGIM/GIM_site/bin/GIM_data.dll b/Projects/WebGIM/GIM_site/bin/GIM_data.dll index 2c3bafb..c19c08a 100644 Binary files a/Projects/WebGIM/GIM_site/bin/GIM_data.dll and b/Projects/WebGIM/GIM_site/bin/GIM_data.dll differ diff --git a/Projects/WebGIM/GIM_site/bin/GIM_site.dll b/Projects/WebGIM/GIM_site/bin/GIM_site.dll index d0ceb32..9970d1a 100644 Binary files a/Projects/WebGIM/GIM_site/bin/GIM_site.dll and b/Projects/WebGIM/GIM_site/bin/GIM_site.dll differ diff --git a/Projects/WebGIM/GIM_site/bin/SanitizerProviders.dll b/Projects/WebGIM/GIM_site/bin/SanitizerProviders.dll new file mode 100644 index 0000000..004e4ec Binary files /dev/null and b/Projects/WebGIM/GIM_site/bin/SanitizerProviders.dll differ diff --git a/Projects/WebGIM/GIM_site/bin/SteamWare.XML b/Projects/WebGIM/GIM_site/bin/SteamWare.XML index fa4844d..64a2314 100644 --- a/Projects/WebGIM/GIM_site/bin/SteamWare.XML +++ b/Projects/WebGIM/GIM_site/bin/SteamWare.XML @@ -4,334 +4,553 @@ SteamWare - + - classe gesione log files applicazioni + classe con funzioni specifiche di calcolo - + - directory base x logs + inizializzazione classe - + - nome del file corrente + elenco dei caratteri base 36: 0..9A..Z - + + - max mb di log da accumulare + converte da base di dimensione nBase a valore intero - - - - controlla se si debba mantenere sotto controllo la dimensioen della cartella logs - - - - - singleton del logger - - - - - avvio del logger nella dir desiderata - - - - - avvio del logger nella dir desiderata - - - - - avvio del logger nella dir desiderata con il max di dati indicato - - - - - scrive sul file log di default il valore della variabile string passata su una riga... (tab delim?!?) - - testo iniziale del log + valore in formato nBase + base, max 36 (0..9A..Z) - + - scrive un messaggio di log con etichetta pre + metodo di accesso singleton - testo messaggio - tipo di log da registrare (etichetta [...]) + + + + Accesso in lettura e scrittura al filesystem per gestione files upload e download + + + + + path di lavoro dei metodi leggi/scrivi + + + + + verifica esistenza directory ed eventualmente crea restituendo nome completo di "/" finale + + - + - fornisce il nome del file in cui loggare (ed eventualmente crea...) + restituisce una tab di files dato l'elenco dei files + + + + + + + setta le directory + + + + + + oggetto WebClient - + - provvede a verificare la dim della cartella dei log e cancella i + vecchi fino a restare a dim inferiori a _logMaxMb + inizializza il metodo alla cartella indicata + + + non serve +... x retrocompatibilità... + + + + metodo di avvio empty - + - fornisce il file + vecchio + cerca di caricare il fileinfo o da httpcontext-application re-position o direttamente come workpath + nomefile + + + + + + + cerca di caricare il fileinfo o da httpcontext-application re-position o direttamente come workpath + nomefile + + + + + + + + cerca di caricare la directoryInfo o da httpcontext-application re-position o direttamente come workpath + + + + + + + Legge i dati da uno stream fino a quando arriva alla fine. + I dati sono restituiti come un byte[] array. un eccezione IOException è + sollevata se una delle chiamate IO sottostanti fallisce. + + Lo stream da cui leggere + Lunghezza buffer iniziale (-1 = default 32k) + + + + verifica esistenza directory, eventualmente crea e restituisce controllo DirectoryInfo + + + + + + ottiene il dataset dei files presenti nella directory indicata esplicitamente + + dir da indicizzare... già mappata! ( es SteamwareStrings.getFilePath(...) ) + + + + + ottiene il dataset dei files presenti nella directory indicata all'istanziazione dell'oggetto + + + + + + ottiene il dataset dei files DEL TIPO "like {param}" presenti nella directory indicata all'istanziazione dell'oggetto + + + + + + elenco dei files come array di oggetti FileInfo + + + + + + elenco dei files come array di oggetti FileInfo filtrati per parametro + + + + + + + elimina la directory di lavoro se è dir virtuale mappata + + + + + + elimina tutti i files con la regexp indicata da una directory, true se cancellato almeno uno + + regexp selezione files in dir (* = tutti!!!) + + + + + verifica se il file indicato esista in workDir + + + + + + + elimina il file indicato dalla directory di lavoro + + + + + + + restituisce lo stream del file richiesto + + + + + + + restituisce la stringa letta dal file richiesto + + + + + + + scrive il file dallo stream byte[] inviato + + + + + + + + scrive il file dalla stringa inviata + + + + + + + + converte una string in un byte[] + + + + + + + converte un byte[] in una string + + + + + + + sposta il file da From a To... + + + + + + + + + copia il file da From a To... + + + + + + + + + copia il file da From a To... + + + + + + + + + + imposta la dir di lavoro + + + + + + imposta la dir di lavoro + + + non serve +... x retrocompatibilità... + + + + imposta la dir di lavoro impostandola dal mapPath corretto della web app... + + + + + + esegue un comando in shell + + + + + + + + + esegue un comando in shell + + + + + + + + + Scarica un file dall'url fornito nella directory indicata x il filemover col nome richiesto + + url del file + nome con cui salvare il file + + + + + comprime zip il file indicato + + + + + + + comprime zip i files corrispondenti alla RegExp indicata nella dir corrente + + Espressione ricerca, come *.txt + Nome del file zip da creare + + + + + scompatta tutto il contenuto di un file zip + + + + + + + scompatta uno specifico file contenuto in un file zip + + + + + + + elimina il file indicato + + + + + + + calcola la dim della directory corrente... - + - livello di log applicazione (da web.config, chiave '_logLevel') - - - - - tipo di log ammesso - - - - - informazioni di debug - - - - - errori - - - - - eccezioni nell'esecuzione try/catch - - - - - errori fatali - - - - - informazioni opzionali - - - - - log dei lemmi invocati per traduzione da vocabolario - - - - - fase di avvio componente - - - - - avvisi - - - - - classe di wrap verso i TableAdapter impiegati - - - - - metodo protected di avvio della classe - - - - - procedura di avvio dei tableAdapter - - - - - procedura di avvio dei tableAdapter - - - - - effettua setup dei connection strings da web.config delal singola applicazione - - - - - effettua setup dei connection strings da web.config delal singola applicazione - - - - - setup delle tabelle vocabolario - - - - - prende l'oggetto tabVocabolario in ram e lo trasforma in dictionary + elimina il file + vecchio + - + - tableAdapter diritti + versione statica (singleton) del'oggetto fileMover - - - tableAdapter permessi + + + Represents a strongly typed in-memory cache of data. - - - tableAdapter funzione + + + Represents the strongly named DataTable class. - - - tableAdapter permessi2funzione + + + Represents the strongly named DataTable class. - - - tableAdapter CdC + + + Represents the strongly named DataTable class. - - - tableAdapter utenti + + + Represents the strongly named DataTable class. - - - table adapter lingue + + + Represents the strongly named DataTable class. - - - table adapter vocabolario + + + Represents the strongly named DataTable class. - - - table adapter versione vocabolario + + + Represents the strongly named DataTable class. - - - table adapter versione anagrafica + + + Represents the strongly named DataTable class. - - - oggetto vocabolario organizzato come dizionario con chiave lang#lemma e valore la traduzione + + + Represents the strongly named DataTable class. - - - resetta il vocabolario rileggendo i dati... + + + Represents the strongly named DataTable class. - - - crea nel db corrente il lemma richiesto e lo valorizza come "--{0}--" - - - - - - - classe singleton x la gestione dei tableadapters + + + Represents strongly named DataRow class. - - - elenco lingue ammesse da vocabolario... + + + Represents strongly named DataRow class. - - - classe di gestione lettura + + + Represents strongly named DataRow class. - - - esegue parsing fornendo dati ed headers - - - - - - - - esegue parsing fornendo dati - - - - - - - esegue parsing fornendo dati come stream - - - - - - - esegue parsing fornendo dati come stream ed headers - - - - - - - - struttura di comando da input utente (es: via barcode) + + + Represents strongly named DataRow class. - - - definisce se il comando sia valido o no + + + Represents strongly named DataRow class. - - - testo da mostrare dato il comando + + + Represents strongly named DataRow class. - - - comando registrato + + + Represents strongly named DataRow class. - - - comando precedentemente inserito + + + Represents strongly named DataRow class. - - - descrizione del comando + + + Represents strongly named DataRow class. - - - descrizione del comando precedente + + + Represents strongly named DataRow class. - - - valore del comando + + + Row event argument class - - - valore tradotto del comando + + + Row event argument class - - - costruttore del metodo... + + + Row event argument class + + + + + Row event argument class + + + + + Row event argument class + + + + + Row event argument class + + + + + Row event argument class + + + + + Row event argument class + + + + + Row event argument class + + + + + Row event argument class + + + + + Represents the connection and commands used to retrieve and save data. + + + + + Represents the connection and commands used to retrieve and save data. + + + + + Represents the connection and commands used to retrieve and save data. + + + + + Represents the connection and commands used to retrieve and save data. + + + + + Represents the connection and commands used to retrieve and save data. + + + + + Represents the connection and commands used to retrieve and save data. + + + + + Represents the connection and commands used to retrieve and save data. + + + + + Represents the connection and commands used to retrieve and save data. + + + + + Represents the connection and commands used to retrieve and save data. + + + + + Represents the connection and commands used to retrieve and save data. @@ -825,6 +1044,20 @@ filtro associato all'evento restituisce il numero di elementi contenuti, -1 significa nessuna differenza... + + + wrapper per log con salvataggio dell'IP del chiamante + + + + + + + wrapper per log con salvataggio dell'IP del chiamante + + + + imposto il tipo di anagrafica del controlloS @@ -861,423 +1094,6 @@ tipo di vista del modulo - - - Summary description for selettori - - - - - - - - - - - - - - - carica i dati CdC se in cache o da TableAdapter - - - - - restituisce l'elenco di tutti i cdc - - - - - - restituisce l'elenco di tutti i cdc della gerarchia dell'utente - - - - - - Represents a strongly typed in-memory cache of data. - - - - - Represents the strongly named DataTable class. - - - - - Represents the strongly named DataTable class. - - - - - Represents the strongly named DataTable class. - - - - - Represents the strongly named DataTable class. - - - - - Represents the strongly named DataTable class. - - - - - Represents the strongly named DataTable class. - - - - - Represents strongly named DataRow class. - - - - - Represents strongly named DataRow class. - - - - - Represents strongly named DataRow class. - - - - - Represents strongly named DataRow class. - - - - - Represents strongly named DataRow class. - - - - - Represents strongly named DataRow class. - - - - - Row event argument class - - - - - Row event argument class - - - - - Row event argument class - - - - - Row event argument class - - - - - Row event argument class - - - - - Row event argument class - - - - - Represents the connection and commands used to retrieve and save data. - - - - - Represents the connection and commands used to retrieve and save data. - - - - - Represents the connection and commands used to retrieve and save data. - - - - - Represents the connection and commands used to retrieve and save data. - - - - - Represents the connection and commands used to retrieve and save data. - - - - - Represents the connection and commands used to retrieve and save data. - - - - - classe di gestione dei db x creazione/update alla versione richiesta - - - - - oggetto connessione - - - - - stringa di connessione - - - - - dir che contiene gli script da eseguire... - - - - - formato del file SQL impiegato (nel senso di formato come iFormat del tipo "App_{0:0000}.sql" --> da App_0001.sql ad App_9999.sql) - - - - - avvio protected della classe - - - - - esegue gli script di sql di update dal file richiesto - - - - - - - - Aggiorna il db eseguendo gli script dalla versione di partenza a quella di arrivo - - NB: per definizione rev 0 = resetta svuotando DB, rev 1 crea tabelle iniziali, rev 2 inserisce i valori di default - - nome DB di cui cercare script - revisione di partenza - revisione di arrivo - timeout max per ogni operazione - - - - - verifica se il db indicato esiste o meno... - - - - - - - - crea il db indicato con i parametri di connessione specificati - - - - - - - - Represents a strongly typed in-memory cache of data. - - - - - Represents the strongly named DataTable class. - - - - - Represents the strongly named DataTable class. - - - - - Represents the strongly named DataTable class. - - - - - Represents the strongly named DataTable class. - - - - - Represents the strongly named DataTable class. - - - - - Represents the strongly named DataTable class. - - - - - Represents the strongly named DataTable class. - - - - - Represents the strongly named DataTable class. - - - - - Represents strongly named DataRow class. - - - - - Represents strongly named DataRow class. - - - - - Represents strongly named DataRow class. - - - - - Represents strongly named DataRow class. - - - - - Represents strongly named DataRow class. - - - - - Represents strongly named DataRow class. - - - - - Represents strongly named DataRow class. - - - - - Represents strongly named DataRow class. - - - - - Row event argument class - - - - - Row event argument class - - - - - Row event argument class - - - - - Row event argument class - - - - - Row event argument class - - - - - Row event argument class - - - - - Row event argument class - - - - - Row event argument class - - - - - Represents the connection and commands used to retrieve and save data. - - - - - Represents the connection and commands used to retrieve and save data. - - - - - Represents the connection and commands used to retrieve and save data. - - - - - Represents the connection and commands used to retrieve and save data. - - - - - Represents the connection and commands used to retrieve and save data. - - - - - Represents the connection and commands used to retrieve and save data. - - - - - Represents the connection and commands used to retrieve and save data. - - - - - Represents the connection and commands used to retrieve and save data. - - - - - classe con funzioni specifiche di calcolo - - - - - inizializzazione classe - - - - - elenco dei caratteri base 36: 0..9A..Z - - - - - - converte da base di dimensione nBase a valore intero - - valore in formato nBase - base, max 36 (0..9A..Z) - - - - - metodo di accesso singleton - - tipo di chart (2D/3D) @@ -1491,21 +1307,6 @@ - - - salvo un valore come cookie - - - - - - - - restituisco un valore da cookie - - - - inserisce in session un valore @@ -1528,6 +1329,36 @@ + + + restituisco un valore da cookie + + + + + + + salvo un valore come cookie + + + + + + + + salvo un valore come cookie con expiry date esplicita + + + + + + + + + elimina un cookie + + + carica dalla Cache un dato di tipo object generico @@ -1606,271 +1437,54 @@ elenco dictionary dei valori in session da NON aggiornare con update... - + - classe gestione parametri deviceper stampa + struttura di comando da input utente (es: via barcode) - + - creazione oggetto parametri per stampa - - - - - - - - - - - - formato output + definisce se il comando sia valido o no - + - altezza + testo da mostrare dato il comando - + - larghezza + comando registrato - + - margine Sx + comando precedentemente inserito - + - margine Dx + descrizione del comando - + - margine Top + descrizione del comando precedente - + - margine Bottom + valore del comando - + - enumeratore modalità login + valore tradotto del comando - + - login AD normale - - - - - forza utente fornendo password - - - - - forza ad un utente standard scelto dall'elenco - - - - - enumeratore modalità scrittura tag siteMap - - - - - nodo di tipo iniziale - apertura - - - - - nodo di tipo foglia - - - - - nodo di tipo finale - chiusura - - - - - enumeratore tipi di anagrafica - - - - - tipo di anagrafica Brembo - - - - - tipo di anagrafica generica - - - - - tipo di vista del modulo - - - - - modalità selezione - - - - - modalità editing - - - - - tipologia di file immagine - - - - - formato gif (no alpha channel) - - - - - formato jpeg - - - - - formato png - - - - - tipo di immagini usate per le icone di comando in web applications - - - - - icona annulla (croce rossa) - - - - - icona approva (simbolo coccarda) - - - - - icona barcode in campo bianco - - - - - icona barcode in campo arancio - - - - - icona clona (magic wand) - - - - - icona converma (spunta verde) - - - - - icona elimina (cestino) - - - - - icona modifica (matita) - - - - - icona notepad (blocco note) - - - - - icona notepad + pdf (blocco note) - - - - - icona nuovo (segno +) - - - - - icona seleziona (lente) - - - - - icona semaforo giallo - - - - - icona semaforo rosso - - - - - icona semaforo verde - - - - - icona stampa (printer) - - - - - dimensione immagini usate per le icone di comando in web applications - - - - - formato piccolo - - - - - formato medio - - - - - formato grande - - - - - modalità di esecuzione applicativi - - - - - modalità normale - - - - - modalità debug - - - - - salvataggio di tutti i lemmi tradotti + costruttore del metodo... @@ -1930,6 +1544,14 @@ + + + costruisce un oggetto intervallo date + + + + + effettua l'operazione di intersezione tra 2 intervali di date restituendo ulteriore intervallo: NB se sono intervali disgiunti restituisce 9/9/9999 x inizio e fine @@ -1982,14 +1604,14 @@ - restituisce l'intervallo del mese corrente per la data indicata + restituisce l'intervallo del mese corrente per la data indicata (dal giorno 1 all'indomani delal data indicata) - restituisce l'intervallo del mese che comprendela data indicata + restituisce l'intervallo del mese che comprende la data indicata (dal primo all'ultimo giorno) @@ -2166,6 +1788,61 @@ + + + + calcola il nome del computer dato l'IP + + + + + + + scarica una pagina da URL e fornisce testo string + + Indirizzo pagina (completo) + username (se necessario) + password (se necessaria) + + + + + manda pacchetto ARP + + + + + + + + + + fornisce mac address dato nome/IP + + + + + + + utils x cifrature e Crypto + + + + + cifra un messaggio con una password + + + + + + + + decifra un messaggio con una password + + + + + Represents a strongly typed in-memory cache of data. @@ -2291,6 +1968,270 @@ Represents the connection and commands used to retrieve and save data. + + + classe di gestione lettura + + + + + esegue parsing fornendo dati ed headers + + + + + + + + esegue parsing fornendo dati + + + + + + + esegue parsing fornendo dati come stream + + + + + + + esegue parsing fornendo dati come stream ed headers + + + + + + + + classe per effettuare confronto tra valori disomogeneri per tipo e costruire diff testuali + + + + + valore originale + + + + + nuovo valore + + + + + dictionary dei parametri vecchi + + + + + dictionary dei parametri nuovi + + + + + inizializzazione classe + + + + + valorizza i diff dei valori old e new + + + + + calcola solo il vettore dei valori old (x delete) + + + + + oggetto statico per il confronto valori + + + + + stringa diff dei valori originali modificati + + + + + stringa diff dei valori nuovi modificati + + + + + dictionary dei parametri old + + + + + dictionary dei parametri new + + + + + classe gesione log files applicazioni + + + + + directory base x logs + + + + + nome del file corrente + + + + + max mb di log da accumulare + + + + + controlla se si debba mantenere sotto controllo la dimensioen della cartella logs + + + + + singleton del logger + + + + + avvio del logger nella dir desiderata + + + + + avvio del logger nella dir desiderata + + + + + avvio del logger nella dir desiderata con il max di dati indicato + + + + + resetta il logfile odierno + + + + + scrive sul file log di default il valore della variabile string passata su una riga... (tab delim?!?) + + testo iniziale del log + + + + + scrive un messaggio di log con etichetta pre + + testo messaggio + tipo di log da registrare (etichetta [...]) + + + + + fornisce il nome del file in cui loggare (ed eventualmente crea...) + + + + + provvede a verificare la dim della cartella dei log e cancella i + vecchi fino a restare a dim inferiori a _logMaxMb + + + + + fornisce il file + vecchio + + + + + + + livello di log applicazione (da web.config, chiave '_logLevel') + + + + + tipo di log ammesso + + + + + informazioni di debug + + + + + errori + + + + + eccezioni nell'esecuzione try/catch + + + + + errori fatali + + + + + informazioni opzionali + + + + + log dei lemmi invocati per traduzione da vocabolario + + + + + fase di avvio componente + + + + + avvisi + + + + + Summary description for selettori + + + + + + + + + + + + + + + carica i dati CdC se in cache o da TableAdapter + + + + + restituisce l'elenco di tutti i cdc + + + + + + restituisce l'elenco di tutti i cdc della gerarchia dell'utente + + + classe gestione utente: auth e permission/ruoli - versione GENERICA @@ -2306,11 +2247,21 @@ carica la riga dati utente + + + carica la riga dati utente da SOLO USERNAME + + Carica la tabella diritti dell'utente da db e salva in session + + + Carica la tabella diritti dell'utente da db e salva in session + + Carica la tabella diritti dell'utente da db e salva in session SOLO per il CDC indicato @@ -2390,6 +2341,22 @@ + + + Procedura da chiamare DOPO aver messo in session i dati utente/dominio x caricare gli altri dati + + + + + + + + controllo utente/pwd da tab + + + + + Procedura da chiamare DOPO aver messo in session i dati utente/dominio x caricare gli altri dati CON I DIRITTI SOLO per il CDC indicato @@ -2583,6 +2550,11 @@ oggetto utente con metodi get/set + + + oggetto password con metodi get/set + + oggetto dominio con metodi get/set @@ -2648,386 +2620,382 @@ è un boolean che indica se in session ci siano user/dominio e quindi utente autenticato in rpecedenza... - + - Accesso in lettura e scrittura al filesystem per gestione files upload e download + classe gestione parametri deviceper stampa - + - path di lavoro dei metodi leggi/scrivi + creazione oggetto parametri per stampa + + + + + + + + + + + + formato output - + - verifica esistenza directory ed eventualmente crea restituendo nome completo di "/" finale + altezza - + + + + larghezza + + + + + margine Sx + + + + + margine Dx + + + + + margine Top + + + + + margine Bottom + + + + + enumeratore modalità login + + + + + login AD normale + + + + + forza utente fornendo password + + + + + forza ad un utente standard scelto dall'elenco + + + + + enumeratore modalità scrittura tag siteMap + + + + + nodo di tipo iniziale - apertura + + + + + nodo di tipo foglia + + + + + nodo di tipo finale - chiusura + + + + + enumeratore tipi di anagrafica + + + + + tipo di anagrafica Brembo + + + + + tipo di anagrafica generica + + + + + tipo di vista del modulo + + + + + modalità selezione + + + + + modalità editing + + + + + modalità inserting nuovo valore + + + + + tipologia di file immagine + + + + + formato gif (no alpha channel) + + + + + formato jpeg + + + + + formato png + + + + + tipo di immagini usate per le icone di comando in web applications + + + + + icona annulla (croce rossa) + + + + + icona approva (simbolo coccarda) + + + + + icona barcode in campo bianco + + + + + icona barcode in campo arancio + + + + + icona clona (magic wand) + + + + + icona converma (spunta verde) + + + + + icona elimina (cestino) + + + + + icona modifica (matita) + + + + + icona notepad (blocco note) + + + + + icona notepad + pdf (blocco note) + + + + + icona nuovo (segno +) + + + + + icona seleziona (lente) + + + + + icona semaforo giallo + + + + + icona semaforo rosso + + + + + icona semaforo verde + + + + + icona stampa (printer) + + + + + dimensione immagini usate per le icone di comando in web applications + + + + + formato piccolo + + + + + formato medio + + + + + formato grande + + + + + modalità di esecuzione applicativi + + + + + modalità normale + + + + + modalità debug + + + + + salvataggio di tutti i lemmi tradotti + + + + + classe di gestione dei db x creazione/update alla versione richiesta + + + + + oggetto connessione + + + + + stringa di connessione + + + + + dir che contiene gli script da eseguire... + + + + + formato del file SQL impiegato (nel senso di formato come iFormat del tipo "App_{0:0000}.sql" --> da App_0001.sql ad App_9999.sql) + + + + + avvio protected della classe + + + + + esegue gli script di sql di update dal file richiesto + + + - + - restituisce una tab di files dato l'elenco dei files + Aggiorna il db eseguendo gli script dalla versione di partenza a quella di arrivo + + NB: per definizione rev 0 = resetta svuotando DB, rev 1 crea tabelle iniziali, rev 2 inserisce i valori di default - + nome DB di cui cercare script + revisione di partenza + revisione di arrivo + timeout max per ogni operazione - + - setta le directory + verifica se il db indicato esiste o meno... - - - - - oggetto WebClient - - - - - inizializza il metodo alla cartella indicata - - - non serve +... x retrocompatibilità... - - - - metodo di avvio empty - - - - - cerca di caricare il fileinfo o da httpcontext-application re-position o direttamente come workpath + nomefile - - + + - + - cerca di caricare il fileinfo o da httpcontext-application re-position o direttamente come workpath + nomefile + crea il db indicato con i parametri di connessione specificati - - + + - + - cerca di caricare la directoryInfo o da httpcontext-application re-position o direttamente come workpath + Pagina base applicazioni SteamWare da cui derivare le altre - + + + + Iniziazlizzazione void (non fa nulla) + + + + + Metodo MAIN: viene eseguita al caricamento ed effettua delle routines per il controllo utente e istanzia l'oggetto memLayer + + + + + + + rimanda alla pagina di Work In Progress salvando in session un titolo ed una descrizione che al pagina wip poi mostrerà all'utente + + titolo da mostrare nella pagina WIP + descrizione da mostrare nella pagina WIP + + + + wrapper per log con salvataggio dell'IP del chiamante + + - + - Legge i dati da uno stream fino a quando arriva alla fine. - I dati sono restituiti come un byte[] array. un eccezione IOException è - sollevata se una delle chiamate IO sottostanti fallisce. - - Lo stream da cui leggere - Lunghezza buffer iniziale (-1 = default 32k) - - - - verifica esistenza directory, eventualmente crea e restituisce controllo DirectoryInfo + wrapper per log con salvataggio dell'IP del chiamante + - - - ottiene il dataset dei files presenti nella directory indicata esplicitamente - - dir da indicizzare... già mappata! ( es SteamwareStrings.getFilePath(...) ) - - - - - ottiene il dataset dei files presenti nella directory indicata all'istanziazione dell'oggetto - - - - - - ottiene il dataset dei files DEL TIPO "like {param}" presenti nella directory indicata all'istanziazione dell'oggetto - - - - - - elenco dei files come array di oggetti FileInfo - - - - - - elenco dei files come array di oggetti FileInfo filtrati per parametro - - - - - - - elimina la directory di lavoro se è dir virtuale mappata - - - - - - elimina tutti i files con la regexp indicata da una directory, true se cancellato almeno uno - - regexp selezione files in dir (* = tutti!!!) - - - - - verifica se il file indicato esista in workDir - - - - - - - elimina il file indicato dalla directory di lavoro - - - - - - - restituisce lo stream del file richiesto - - - - - - - restituisce la stringa letta dal file richiesto - - - - - - - scrive il file dallo stream byte[] inviato - - - - - - - - scrive il file dalla stringa inviata - - - - - - - - converte una string in un byte[] - - - - - - - converte un byte[] in una string - - - - - - - sposta il file da From a To... - - - - - - - - - copia il file da From a To... - - - - - - - - - copia il file da From a To... - - - - - - - - - - imposta la dir di lavoro - - - - - - imposta la dir di lavoro - - - non serve +... x retrocompatibilità... - - - - imposta la dir di lavoro impostandola dal mapPath corretto della web app... - - - - - - esegue un comando in shell - - - - - - - - - esegue un comando in shell - - - - - - - - - Scarica un file dall'url fornito nella directory indicata x il filemover col nome richiesto - - url del file - nome con cui salvare il file - - - - - comprime zip il file indicato - - - - - - - comprime zip i files corrispondenti alla RegExp indicata nella dir corrente - - Espressione ricerca, come *.txt - Nome del file zip da creare - - - - - scompatta tutto il contenuto di un file zip - - - - - - - scompatta uno specifico file contenuto in un file zip - - - - - - - elimina il file indicato - - - - - - - calcola la dim della directory corrente... - - - - - - - elimina il file + vecchio - - - - - - - versione statica (singleton) del'oggetto fileMover - - - - - classe per effettuare confronto tra valori disomogeneri per tipo e costruire diff testuali - - - - - valore originale - - - - - nuovo valore - - - - - dictionary dei parametri vecchi - - - - - dictionary dei parametri nuovi - - - - - inizializzazione classe - - - - - valorizza i diff dei valori old e new - - - - - calcola solo il vettore dei valori old (x delete) - - - - - oggetto statico per il confronto valori - - - - - stringa diff dei valori originali modificati - - - - - stringa diff dei valori nuovi modificati - - - - - dictionary dei parametri old - - - - - dictionary dei parametri new - - classe gestione logging esteso di eventi e note utente (correlabili) @@ -3241,29 +3209,258 @@ permette SIA con revisione che senza (e anche rev -1) - - - Pagina base applicazioni SteamWare da cui derivare le altre + + + Represents a strongly typed in-memory cache of data. - - - Iniziazlizzazione void (non fa nulla) + + + Represents the strongly named DataTable class. - - - Metodo MAIN: viene eseguita al caricamento ed effettua delle routines per il controllo utente e istanzia l'oggetto memLayer + + + Represents the strongly named DataTable class. - - - - - rimanda alla pagina di Work In Progress salvando in session un titolo ed una descrizione che al pagina wip poi mostrerà all'utente + + + Represents the strongly named DataTable class. + + + + + Represents the strongly named DataTable class. + + + + + Represents the strongly named DataTable class. + + + + + Represents the strongly named DataTable class. + + + + + Represents strongly named DataRow class. + + + + + Represents strongly named DataRow class. + + + + + Represents strongly named DataRow class. + + + + + Represents strongly named DataRow class. + + + + + Represents strongly named DataRow class. + + + + + Represents strongly named DataRow class. + + + + + Row event argument class + + + + + Row event argument class + + + + + Row event argument class + + + + + Row event argument class + + + + + Row event argument class + + + + + Row event argument class + + + + + Represents the connection and commands used to retrieve and save data. + + + + + Represents the connection and commands used to retrieve and save data. + + + + + Represents the connection and commands used to retrieve and save data. + + + + + Represents the connection and commands used to retrieve and save data. + + + + + Represents the connection and commands used to retrieve and save data. + + + + + Represents the connection and commands used to retrieve and save data. + + + + + classe di wrap verso i TableAdapter impiegati + + + + + metodo protected di avvio della classe + + + + + procedura di avvio dei tableAdapter + + + + + procedura di avvio dei tableAdapter + + + + + effettua setup dei connection strings da web.config delal singola applicazione + + + + + effettua setup dei connection strings da web.config delal singola applicazione + + + + + setup delle tabelle vocabolario + + + + + prende l'oggetto tabVocabolario in ram e lo trasforma in dictionary + + + + + + tableAdapter diritti + + + + + tableAdapter permessi + + + + + tableAdapter funzione + + + + + tableAdapter permessi2funzione + + + + + tableAdapter CdC + + + + + tableAdapter utenti + + + + + tableAdapter userData (user/pwd) + + + + + tableAdapter userDataExt (user/pwd) + + + + + table adapter lingue + + + + + table adapter vocabolario + + + + + table adapter versione vocabolario + + + + + table adapter versione anagrafica + + + + + oggetto vocabolario organizzato come dizionario con chiave lang#lemma e valore la traduzione + + + + + resetta il vocabolario rileggendo i dati... + + + + + crea nel db corrente il lemma richiesto e lo valorizza come "--{0}--" + + + + + + + classe singleton x la gestione dei tableadapters + + + + + elenco lingue ammesse da vocabolario... - titolo da mostrare nella pagina WIP - descrizione da mostrare nella pagina WIP diff --git a/Projects/WebGIM/GIM_site/bin/SteamWare.dll b/Projects/WebGIM/GIM_site/bin/SteamWare.dll index 6cb13fb..0c20a46 100644 Binary files a/Projects/WebGIM/GIM_site/bin/SteamWare.dll and b/Projects/WebGIM/GIM_site/bin/SteamWare.dll differ diff --git a/Projects/WebGIM/GIM_site/bin/ar/AjaxControlToolkit.resources.dll b/Projects/WebGIM/GIM_site/bin/ar/AjaxControlToolkit.resources.dll index e9d9d28..57cc1b5 100644 Binary files a/Projects/WebGIM/GIM_site/bin/ar/AjaxControlToolkit.resources.dll and b/Projects/WebGIM/GIM_site/bin/ar/AjaxControlToolkit.resources.dll differ diff --git a/Projects/WebGIM/GIM_site/bin/cs/AjaxControlToolkit.resources.dll b/Projects/WebGIM/GIM_site/bin/cs/AjaxControlToolkit.resources.dll index 29d72c0..167bcf3 100644 Binary files a/Projects/WebGIM/GIM_site/bin/cs/AjaxControlToolkit.resources.dll and b/Projects/WebGIM/GIM_site/bin/cs/AjaxControlToolkit.resources.dll differ diff --git a/Projects/WebGIM/GIM_site/bin/de/AjaxControlToolkit.resources.dll b/Projects/WebGIM/GIM_site/bin/de/AjaxControlToolkit.resources.dll index 84ff3b9..e92774b 100644 Binary files a/Projects/WebGIM/GIM_site/bin/de/AjaxControlToolkit.resources.dll and b/Projects/WebGIM/GIM_site/bin/de/AjaxControlToolkit.resources.dll differ diff --git a/Projects/WebGIM/GIM_site/bin/es/AjaxControlToolkit.resources.dll b/Projects/WebGIM/GIM_site/bin/es/AjaxControlToolkit.resources.dll index 8123499..387675e 100644 Binary files a/Projects/WebGIM/GIM_site/bin/es/AjaxControlToolkit.resources.dll and b/Projects/WebGIM/GIM_site/bin/es/AjaxControlToolkit.resources.dll differ diff --git a/Projects/WebGIM/GIM_site/bin/fr/AjaxControlToolkit.resources.dll b/Projects/WebGIM/GIM_site/bin/fr/AjaxControlToolkit.resources.dll index 2698d63..10fcbed 100644 Binary files a/Projects/WebGIM/GIM_site/bin/fr/AjaxControlToolkit.resources.dll and b/Projects/WebGIM/GIM_site/bin/fr/AjaxControlToolkit.resources.dll differ diff --git a/Projects/WebGIM/GIM_site/bin/he/AjaxControlToolkit.resources.dll b/Projects/WebGIM/GIM_site/bin/he/AjaxControlToolkit.resources.dll index 9736f27..f9a1b6a 100644 Binary files a/Projects/WebGIM/GIM_site/bin/he/AjaxControlToolkit.resources.dll and b/Projects/WebGIM/GIM_site/bin/he/AjaxControlToolkit.resources.dll differ diff --git a/Projects/WebGIM/GIM_site/bin/hi/AjaxControlToolkit.resources.dll b/Projects/WebGIM/GIM_site/bin/hi/AjaxControlToolkit.resources.dll index 11120ac..7325b17 100644 Binary files a/Projects/WebGIM/GIM_site/bin/hi/AjaxControlToolkit.resources.dll and b/Projects/WebGIM/GIM_site/bin/hi/AjaxControlToolkit.resources.dll differ diff --git a/Projects/WebGIM/GIM_site/bin/it/AjaxControlToolkit.resources.dll b/Projects/WebGIM/GIM_site/bin/it/AjaxControlToolkit.resources.dll index 9c9e0c1..5c1b9d7 100644 Binary files a/Projects/WebGIM/GIM_site/bin/it/AjaxControlToolkit.resources.dll and b/Projects/WebGIM/GIM_site/bin/it/AjaxControlToolkit.resources.dll differ diff --git a/Projects/WebGIM/GIM_site/bin/ja/AjaxControlToolkit.resources.dll b/Projects/WebGIM/GIM_site/bin/ja/AjaxControlToolkit.resources.dll index 1b8ffcb..d4f0676 100644 Binary files a/Projects/WebGIM/GIM_site/bin/ja/AjaxControlToolkit.resources.dll and b/Projects/WebGIM/GIM_site/bin/ja/AjaxControlToolkit.resources.dll differ diff --git a/Projects/WebGIM/GIM_site/bin/ko/AjaxControlToolkit.resources.dll b/Projects/WebGIM/GIM_site/bin/ko/AjaxControlToolkit.resources.dll index 7f761bb..a223cc9 100644 Binary files a/Projects/WebGIM/GIM_site/bin/ko/AjaxControlToolkit.resources.dll and b/Projects/WebGIM/GIM_site/bin/ko/AjaxControlToolkit.resources.dll differ diff --git a/Projects/WebGIM/GIM_site/bin/nl/AjaxControlToolkit.resources.dll b/Projects/WebGIM/GIM_site/bin/nl/AjaxControlToolkit.resources.dll index e3f72c6..eea3619 100644 Binary files a/Projects/WebGIM/GIM_site/bin/nl/AjaxControlToolkit.resources.dll and b/Projects/WebGIM/GIM_site/bin/nl/AjaxControlToolkit.resources.dll differ diff --git a/Projects/WebGIM/GIM_site/bin/pt/AjaxControlToolkit.resources.dll b/Projects/WebGIM/GIM_site/bin/pt/AjaxControlToolkit.resources.dll index d1e480f..332a200 100644 Binary files a/Projects/WebGIM/GIM_site/bin/pt/AjaxControlToolkit.resources.dll and b/Projects/WebGIM/GIM_site/bin/pt/AjaxControlToolkit.resources.dll differ diff --git a/Projects/WebGIM/GIM_site/bin/ru/AjaxControlToolkit.resources.dll b/Projects/WebGIM/GIM_site/bin/ru/AjaxControlToolkit.resources.dll index 2107995..c2affc0 100644 Binary files a/Projects/WebGIM/GIM_site/bin/ru/AjaxControlToolkit.resources.dll and b/Projects/WebGIM/GIM_site/bin/ru/AjaxControlToolkit.resources.dll differ diff --git a/Projects/WebGIM/GIM_site/bin/tr-TR/AjaxControlToolkit.resources.dll b/Projects/WebGIM/GIM_site/bin/tr-TR/AjaxControlToolkit.resources.dll index 3754b53..3ff44ce 100644 Binary files a/Projects/WebGIM/GIM_site/bin/tr-TR/AjaxControlToolkit.resources.dll and b/Projects/WebGIM/GIM_site/bin/tr-TR/AjaxControlToolkit.resources.dll differ diff --git a/Projects/WebGIM/GIM_site/bin/zh-CHS/AjaxControlToolkit.resources.dll b/Projects/WebGIM/GIM_site/bin/zh-CHS/AjaxControlToolkit.resources.dll index f966088..c13a230 100644 Binary files a/Projects/WebGIM/GIM_site/bin/zh-CHS/AjaxControlToolkit.resources.dll and b/Projects/WebGIM/GIM_site/bin/zh-CHS/AjaxControlToolkit.resources.dll differ diff --git a/Projects/WebGIM/GIM_site/bin/zh-CHT/AjaxControlToolkit.resources.dll b/Projects/WebGIM/GIM_site/bin/zh-CHT/AjaxControlToolkit.resources.dll index 7979b96..fc3061d 100644 Binary files a/Projects/WebGIM/GIM_site/bin/zh-CHT/AjaxControlToolkit.resources.dll and b/Projects/WebGIM/GIM_site/bin/zh-CHT/AjaxControlToolkit.resources.dll differ diff --git a/Projects/WebGIM/GIM_site/images/sfondo.png b/Projects/WebGIM/GIM_site/images/sfondo.png deleted file mode 100644 index 5fcffdd..0000000 Binary files a/Projects/WebGIM/GIM_site/images/sfondo.png and /dev/null differ diff --git a/Projects/WebGIM/GIM_site/mtzProg.aspx.cs b/Projects/WebGIM/GIM_site/mtzProg.aspx.cs index 7cdde8e..c07e5b8 100644 --- a/Projects/WebGIM/GIM_site/mtzProg.aspx.cs +++ b/Projects/WebGIM/GIM_site/mtzProg.aspx.cs @@ -10,11 +10,18 @@ public partial class mtzProg : System.Web.UI.Page protected void Page_Load(object sender, EventArgs e) { mod_elencoMtzProg1.eh_newReq += new EventHandler(mod_elencoMtzProg1_eh_newReq); + mod_elencoMtzProg1.eh_updateDone += new EventHandler(mod_elencoMtzProg1_eh_updateDone); mod_dettMtzProg1.eh_newInserted += new EventHandler(mod_dettMtzProg1_eh_newInserted); mod_filtraMtzProg1.eh_newFiltroSel += new EventHandler(mod_filtraMtzProg1_eh_newFiltroSel); traduciObj(); } + void mod_elencoMtzProg1_eh_updateDone(object sender, EventArgs e) + { + // update della visualizzazione pre-export in excel + mod_mtzPrevPending1.doUpdate(); + } + /// /// è stato chiamato evento "nuovo filtro" e quindi aggiorno /// diff --git a/Projects/WebGIM/GIM_site/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/Projects/WebGIM/GIM_site/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache index 7c7698f..9389da0 100644 Binary files a/Projects/WebGIM/GIM_site/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache and b/Projects/WebGIM/GIM_site/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/Projects/WebGIM/GIM_site/obj/Debug/GIM_site.csproj.FileListAbsolute.txt b/Projects/WebGIM/GIM_site/obj/Debug/GIM_site.csproj.FileListAbsolute.txt index b175a6a..b3068eb 100644 --- a/Projects/WebGIM/GIM_site/obj/Debug/GIM_site.csproj.FileListAbsolute.txt +++ b/Projects/WebGIM/GIM_site/obj/Debug/GIM_site.csproj.FileListAbsolute.txt @@ -97,3 +97,36 @@ c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\WebGIM\GIM_s c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\WebGIM\GIM_site\obj\Debug\RdlCompile.compiled c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\WebGIM\GIM_site\obj\Debug\GIM_site.dll c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\WebGIM\GIM_site\obj\Debug\GIM_site.pdb +C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\GIM_site.dll +C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\GIM_site.pdb +C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\GIM_data.dll +C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\SteamWare.dll +C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\Flesk.ViewState.dll +C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\ICSharpCode.SharpZipLib.dll +C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\SteamWare.pdb +C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\SteamWare.xml +C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\GIM_data.pdb +C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\obj\Debug\GIM_site.csprojResolveAssemblyReference.cache +C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\obj\Debug\RdlCompile.cache +C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\obj\Debug\RdlCompile.compiled +C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\obj\Debug\GIM_site.dll +C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\obj\Debug\GIM_site.pdb +C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\AjaxControlToolkit.dll +C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\SanitizerProviders.dll +C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\AjaxControlToolkit.pdb +C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\ar\AjaxControlToolkit.resources.dll +C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\cs\AjaxControlToolkit.resources.dll +C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\de\AjaxControlToolkit.resources.dll +C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\es\AjaxControlToolkit.resources.dll +C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\fr\AjaxControlToolkit.resources.dll +C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\he\AjaxControlToolkit.resources.dll +C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\hi\AjaxControlToolkit.resources.dll +C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\it\AjaxControlToolkit.resources.dll +C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\ja\AjaxControlToolkit.resources.dll +C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\ko\AjaxControlToolkit.resources.dll +C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\nl\AjaxControlToolkit.resources.dll +C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\pt\AjaxControlToolkit.resources.dll +C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\ru\AjaxControlToolkit.resources.dll +C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\tr-TR\AjaxControlToolkit.resources.dll +C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\zh-CHS\AjaxControlToolkit.resources.dll +C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\zh-CHT\AjaxControlToolkit.resources.dll diff --git a/Projects/WebGIM/GIM_site/obj/Debug/GIM_site.csprojResolveAssemblyReference.cache b/Projects/WebGIM/GIM_site/obj/Debug/GIM_site.csprojResolveAssemblyReference.cache new file mode 100644 index 0000000..31c6e7c Binary files /dev/null and b/Projects/WebGIM/GIM_site/obj/Debug/GIM_site.csprojResolveAssemblyReference.cache differ diff --git a/Projects/WebGIM/GIM_site/obj/Debug/GIM_site.dll b/Projects/WebGIM/GIM_site/obj/Debug/GIM_site.dll index cfb57ef..9970d1a 100644 Binary files a/Projects/WebGIM/GIM_site/obj/Debug/GIM_site.dll and b/Projects/WebGIM/GIM_site/obj/Debug/GIM_site.dll differ diff --git a/Projects/WebGIM/GIM_site/obj/Debug/RdlCompile.cache b/Projects/WebGIM/GIM_site/obj/Debug/RdlCompile.cache index be7d116..9adf17b 100644 Binary files a/Projects/WebGIM/GIM_site/obj/Debug/RdlCompile.cache and b/Projects/WebGIM/GIM_site/obj/Debug/RdlCompile.cache differ diff --git a/Projects/WebGIM/GIM_site/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache b/Projects/WebGIM/GIM_site/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache index 13ac898..5204b21 100644 Binary files a/Projects/WebGIM/GIM_site/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache and b/Projects/WebGIM/GIM_site/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/Projects/WebGIM/GIM_site/obj/Somaschini/DesignTimeResolveAssemblyReferencesInput.cache b/Projects/WebGIM/GIM_site/obj/Somaschini/DesignTimeResolveAssemblyReferencesInput.cache index 9ff3018..7cff4aa 100644 Binary files a/Projects/WebGIM/GIM_site/obj/Somaschini/DesignTimeResolveAssemblyReferencesInput.cache and b/Projects/WebGIM/GIM_site/obj/Somaschini/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/Projects/WebGIM/GIM_site/obj/Somaschini/GIM_site.csproj.FileListAbsolute.txt b/Projects/WebGIM/GIM_site/obj/Somaschini/GIM_site.csproj.FileListAbsolute.txt index d072cdc..fbcb7db 100644 --- a/Projects/WebGIM/GIM_site/obj/Somaschini/GIM_site.csproj.FileListAbsolute.txt +++ b/Projects/WebGIM/GIM_site/obj/Somaschini/GIM_site.csproj.FileListAbsolute.txt @@ -4,10 +4,8 @@ C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\GIM_d C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\SteamWare.dll C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\Flesk.ViewState.dll C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\ICSharpCode.SharpZipLib.dll -C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\System.Web.Ajax.dll C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\GIM_data.pdb C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\AjaxControlToolkit.pdb -C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\System.Web.Ajax.pdb C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\ar\AjaxControlToolkit.resources.dll C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\cs\AjaxControlToolkit.resources.dll C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\de\AjaxControlToolkit.resources.dll @@ -29,3 +27,5 @@ C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\obj\Somas C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\obj\Somaschini\RdlCompile.compiled C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\obj\Somaschini\GIM_site.dll C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\obj\Somaschini\GIM_site.pdb +C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\AjaxControlToolkit.dll +C:\Users\samuele\Documents\Visual Studio 2010\Projects\WebGIM\GIM_site\bin\SanitizerProviders.dll diff --git a/Projects/WebGIM/GIM_site/obj/Somaschini/GIM_site.csprojResolveAssemblyReference.cache b/Projects/WebGIM/GIM_site/obj/Somaschini/GIM_site.csprojResolveAssemblyReference.cache index d4551e4..d645c42 100644 Binary files a/Projects/WebGIM/GIM_site/obj/Somaschini/GIM_site.csprojResolveAssemblyReference.cache and b/Projects/WebGIM/GIM_site/obj/Somaschini/GIM_site.csprojResolveAssemblyReference.cache differ diff --git a/Projects/WebGIM/GIM_site/obj/Somaschini/GIM_site.dll b/Projects/WebGIM/GIM_site/obj/Somaschini/GIM_site.dll index d0ceb32..1ecc6fd 100644 Binary files a/Projects/WebGIM/GIM_site/obj/Somaschini/GIM_site.dll and b/Projects/WebGIM/GIM_site/obj/Somaschini/GIM_site.dll differ diff --git a/Projects/WebGIM/GIM_site/packages.config b/Projects/WebGIM/GIM_site/packages.config new file mode 100644 index 0000000..cb03133 --- /dev/null +++ b/Projects/WebGIM/GIM_site/packages.config @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/Projects/WebGIM/GIM_site/sql/Applicazione/GIM_0000.sql b/Projects/WebGIM/GIM_site/sql/Applicazione/GIM_0000.sql new file mode 100644 index 0000000..b71c759 --- /dev/null +++ b/Projects/WebGIM/GIM_site/sql/Applicazione/GIM_0000.sql @@ -0,0 +1,420 @@ +/**************************************************************** +* SteamWare s.r.l. +* +* Setup iniziale DB applicazione WebGIM con eliminazione oggetti +* +* modificato: 2009-01-23 S.E.L. +* +****************************************************************/ + +/* elimino funzioni */ +SET xact_abort ON +GO + +BEGIN TRANSACTION +GO + +IF NOT object_id('f_padLeft') IS NULL +DROP FUNCTION f_padLeft +GO + +IF NOT object_id('rightDivision') IS NULL +DROP FUNCTION rightDivision +GO + +COMMIT +GO + + + + + +/* elimino stored */ +SET xact_abort ON +GO + +BEGIN TRANSACTION +GO + +IF NOT object_id('sp_clonaImpianto') IS NULL +DROP PROCEDURE sp_clonaImpianto +GO + +IF NOT object_id('sp_clonaMacchina') IS NULL +DROP PROCEDURE sp_clonaMacchina +GO + +IF NOT object_id('sp_elencoIntMTBF_MTTR') IS NULL +DROP PROCEDURE sp_elencoIntMTBF_MTTR +GO + +IF NOT object_id('sp_insRichiesta') IS NULL +DROP PROCEDURE sp_insRichiesta +GO + +IF NOT object_id('sp_procStatEv') IS NULL +DROP PROCEDURE sp_procStatEv +GO + +IF NOT object_id('sp_setPresaInCarico') IS NULL +DROP PROCEDURE sp_setPresaInCarico +GO + +IF NOT object_id('sp_spostaMacchina') IS NULL +DROP PROCEDURE sp_spostaMacchina +GO + +IF NOT object_id('sp_updateIntervento') IS NULL +DROP PROCEDURE sp_updateIntervento +GO + +IF NOT object_id('sp_updateInterventoFull') IS NULL +DROP PROCEDURE sp_updateInterventoFull +GO + +COMMIT +GO + + + + + + + +/* elimino le viste... */ +SET xact_abort ON +GO + +BEGIN TRANSACTION +GO + +IF NOT object_id('v_datiMTBFMTTR') IS NULL +DROP VIEW v_datiMTBFMTTR +GO + +IF NOT object_id('v_elencoImpiantiMacchine') IS NULL +DROP VIEW v_elencoImpiantiMacchine +GO + +IF NOT object_id('v_elencoIntervFilt') IS NULL +DROP VIEW v_elencoIntervFilt +GO + +IF NOT object_id('v_interventiErogati') IS NULL +DROP VIEW v_interventiErogati +GO + +IF NOT object_id('v_intervExp') IS NULL +DROP VIEW v_intervExp +GO + +IF NOT object_id('v_macchine') IS NULL +DROP VIEW v_macchine +GO + +IF NOT object_id('v_mtzProgExp') IS NULL +DROP VIEW v_mtzProgExp +GO + +IF NOT object_id('v_selAmbiti') IS NULL +DROP VIEW v_selAmbiti +GO + +IF NOT object_id('v_selCausaliMacchine') IS NULL +DROP VIEW v_selCausaliMacchine +GO + +IF NOT object_id('v_selFamMacc') IS NULL +DROP VIEW v_selFamMacc +GO + +IF NOT object_id('v_selFreq') IS NULL +DROP VIEW v_selFreq +GO + +IF NOT object_id('v_selImpianti') IS NULL +DROP VIEW v_selImpianti +GO + +IF NOT object_id('v_selMacchine') IS NULL +DROP VIEW v_selMacchine +GO + +IF NOT object_id('v_selPeriodiTrad') IS NULL +DROP VIEW v_selPeriodiTrad +GO + +IF NOT object_id('v_selPrior') IS NULL +DROP VIEW v_selPrior +GO + +IF NOT object_id('v_selSemafori') IS NULL +DROP VIEW v_selSemafori +GO + +IF NOT object_id('v_selStato') IS NULL +DROP VIEW v_selStato +GO + +IF NOT object_id('v_selTipoGuasto') IS NULL +DROP VIEW v_selTipoGuasto +GO + +IF NOT object_id('v_vocabolario') IS NULL +DROP VIEW v_vocabolario +GO + +COMMIT +GO + + + + + + + + + +/*Svuoto eventuali tabelle già presenti...*/ +SET xact_abort ON +GO + +BEGIN TRANSACTION +GO + +IF NOT object_id('FK_InterventiMtz_AnagAmbitoGuasto') IS NULL + +ALTER TABLE InterventiMtz DROP + CONSTRAINT FK_InterventiMtz_AnagAmbitoGuasto +GO + +IF NOT object_id('AnagAmbitoGuasto') IS NULL +DROP TABLE AnagAmbitoGuasto +GO + +IF NOT object_id('FK_Causali2FamMacchine_AnagCausali') IS NULL + +ALTER TABLE Causali2FamMacchine DROP + CONSTRAINT FK_Causali2FamMacchine_AnagCausali +GO + +IF NOT object_id('FK_InterventiMtz_AnagCausali') IS NULL + +ALTER TABLE InterventiMtz DROP + CONSTRAINT FK_InterventiMtz_AnagCausali +GO + +IF NOT object_id('AnagCausali') IS NULL +DROP TABLE AnagCausali +GO + +IF NOT object_id('FK_Tra_Ev2Stati_AnagEventi') IS NULL + +ALTER TABLE Tra_Ev2Stati DROP + CONSTRAINT FK_Tra_Ev2Stati_AnagEventi +GO + +IF NOT object_id('AnagEventi') IS NULL +DROP TABLE AnagEventi +GO + +IF NOT object_id('FK_Causali2FamMacchine_AnagFamMacchine') IS NULL + +ALTER TABLE Causali2FamMacchine DROP + CONSTRAINT FK_Causali2FamMacchine_AnagFamMacchine +GO + +IF NOT object_id('FK_Macchine2FamMacchine_AnagFamMacchine') IS NULL + +ALTER TABLE Macchine2FamMacchine DROP + CONSTRAINT FK_Macchine2FamMacchine_AnagFamMacchine +GO + +IF NOT object_id('AnagFamMacchine') IS NULL +DROP TABLE AnagFamMacchine +GO + +IF NOT object_id('FK_MtzProgrammata_AnagFrequenze') IS NULL + +ALTER TABLE MtzProgrammata DROP + CONSTRAINT FK_MtzProgrammata_AnagFrequenze +GO + +IF NOT object_id('AnagFrequenze') IS NULL +DROP TABLE AnagFrequenze +GO + +IF NOT object_id('FK_FiltroImpianti_AnagImpianti') IS NULL + +ALTER TABLE FiltroImpianti DROP + CONSTRAINT FK_FiltroImpianti_AnagImpianti +GO + +IF NOT object_id('FK_InterventiMtz_AnagImpianti') IS NULL + +ALTER TABLE InterventiMtz DROP + CONSTRAINT FK_InterventiMtz_AnagImpianti +GO + +IF NOT object_id('FK_AnagMacchine_AnagImpianti') IS NULL + +ALTER TABLE AnagMacchine DROP + CONSTRAINT FK_AnagMacchine_AnagImpianti +GO + +IF NOT object_id('AnagImpianti') IS NULL +DROP TABLE AnagImpianti +GO + +IF NOT object_id('FK_MtzProgrammata_AnagMacchine') IS NULL + +ALTER TABLE MtzProgrammata DROP + CONSTRAINT FK_MtzProgrammata_AnagMacchine +GO + +IF NOT object_id('FK_FiltroMacchine_AnagMacchine') IS NULL + +ALTER TABLE FiltroMacchine DROP + CONSTRAINT FK_FiltroMacchine_AnagMacchine +GO + +IF NOT object_id('FK_InterventiMtz_AnagMacchine') IS NULL + +ALTER TABLE InterventiMtz DROP + CONSTRAINT FK_InterventiMtz_AnagMacchine +GO + +IF NOT object_id('FK_Macchine2FamMacchine_AnagMacchine') IS NULL + +ALTER TABLE Macchine2FamMacchine DROP + CONSTRAINT FK_Macchine2FamMacchine_AnagMacchine +GO + +IF NOT object_id('AnagMacchine') IS NULL +DROP TABLE AnagMacchine +GO + +IF NOT object_id('AnagPeriodi') IS NULL +DROP TABLE AnagPeriodi +GO + +IF NOT object_id('FK_InterventiMtz_AnagPriorita') IS NULL + +ALTER TABLE InterventiMtz DROP + CONSTRAINT FK_InterventiMtz_AnagPriorita +GO + +IF NOT object_id('AnagPriorita') IS NULL +DROP TABLE AnagPriorita +GO + +IF NOT object_id('AnagSemafori') IS NULL +DROP TABLE AnagSemafori +GO + +IF NOT object_id('FK_Tra_Ev2Stati_AnagStati') IS NULL + +ALTER TABLE Tra_Ev2Stati DROP + CONSTRAINT FK_Tra_Ev2Stati_AnagStati +GO + +IF NOT object_id('FK_FiltroStati_AnagStati') IS NULL + +ALTER TABLE FiltroStati DROP + CONSTRAINT FK_FiltroStati_AnagStati +GO + +IF NOT object_id('FK_InterventiMtz_AnagStati') IS NULL + +ALTER TABLE InterventiMtz DROP + CONSTRAINT FK_InterventiMtz_AnagStati +GO + +IF NOT object_id('AnagStati') IS NULL +DROP TABLE AnagStati +GO + +IF NOT object_id('FK_InterventiMtz_AnagTipoGuasto') IS NULL + +ALTER TABLE InterventiMtz DROP + CONSTRAINT FK_InterventiMtz_AnagTipoGuasto +GO + +IF NOT object_id('AnagTipoGuasto') IS NULL +DROP TABLE AnagTipoGuasto +GO + +IF NOT object_id('CalendFesteFerie') IS NULL +DROP TABLE CalendFesteFerie +GO + +IF NOT object_id('Causali2FamMacchine') IS NULL +DROP TABLE Causali2FamMacchine +GO + +IF NOT object_id('FiltroImpianti') IS NULL +DROP TABLE FiltroImpianti +GO + +IF NOT object_id('FiltroMacchine') IS NULL +DROP TABLE FiltroMacchine +GO + +IF NOT object_id('FiltroStati') IS NULL +DROP TABLE FiltroStati +GO + +IF NOT object_id('FK_InterventoOpMtz_InterventiMtz') IS NULL + +ALTER TABLE InterventoOpMtz DROP + CONSTRAINT FK_InterventoOpMtz_InterventiMtz +GO + +IF NOT object_id('InterventiMtz') IS NULL +DROP TABLE InterventiMtz +GO + +IF NOT object_id('InterventoOpMtz') IS NULL +DROP TABLE InterventoOpMtz +GO + +IF NOT object_id('LogUpdateDb') IS NULL +DROP TABLE LogUpdateDb +GO + +IF NOT object_id('Macchine2FamMacchine') IS NULL +DROP TABLE Macchine2FamMacchine +GO + +IF NOT object_id('MtzProgPending') IS NULL +DROP TABLE MtzProgPending +GO + +IF NOT object_id('MtzProgrammata') IS NULL +DROP TABLE MtzProgrammata +GO + +IF NOT object_id('OreAperturaSett') IS NULL +DROP TABLE OreAperturaSett +GO + +IF NOT object_id('FK_Permessi2Funzione_Permessi') IS NULL + +ALTER TABLE Permessi2Funzione DROP + CONSTRAINT FK_Permessi2Funzione_Permessi +GO + +IF NOT object_id('Permessi') IS NULL +DROP TABLE Permessi +GO + +IF NOT object_id('Permessi2Funzione') IS NULL +DROP TABLE Permessi2Funzione +GO + +IF NOT object_id('Tra_Ev2Stati') IS NULL +DROP TABLE Tra_Ev2Stati +GO + +COMMIT +GO diff --git a/Projects/WebGIM/GIM_site/sql/Applicazione/GIM_0001.sql b/Projects/WebGIM/GIM_site/sql/Applicazione/GIM_0001.sql new file mode 100644 index 0000000..2d31df8 --- /dev/null +++ b/Projects/WebGIM/GIM_site/sql/Applicazione/GIM_0001.sql @@ -0,0 +1,2908 @@ +/**************************************************************** +* SteamWare s.r.l. +* +* Setup iniziale DB applicazione WebGIM con creazione tabelle +* +* modificato: 2009-01-23 S.E.L. +* +****************************************************************/ + +/* creo tabelle */ +SET xact_abort ON +GO + +BEGIN TRANSACTION +GO + +CREATE TABLE AnagAmbitoGuasto( + idxAmbito INT NOT NULL IDENTITY CONSTRAINT PK_AnagAmbitoGuasto PRIMARY KEY, + descrAmbitoGuasto NVARCHAR(50) +) +GO + +CREATE TABLE AnagCausali( + idxCausale INT NOT NULL IDENTITY CONSTRAINT PK_AnagCausali PRIMARY KEY, + descrCausale NVARCHAR(50) +) +GO + +CREATE TABLE AnagEventi( + idxEvento INT NOT NULL CONSTRAINT PK_AnagEventi PRIMARY KEY, + DescrEvento NVARCHAR(50) +) +GO + +CREATE TABLE AnagFamMacchine( + idxFamMacchine INT NOT NULL IDENTITY CONSTRAINT PK_AnagFamMacchine PRIMARY KEY, + nomeFamMacch NVARCHAR(50) +) +GO + +CREATE TABLE AnagFrequenze( + codFrequenza NCHAR(2) NOT NULL CONSTRAINT PK_AnagFrequenze PRIMARY KEY, + frequenza NVARCHAR(50) +) +GO + +CREATE TABLE AnagImpianti( + idxImpianto INT NOT NULL IDENTITY CONSTRAINT PK_AnagImpianti PRIMARY KEY, + codImpianto NVARCHAR(50), + nomeImpianto NVARCHAR(50), + tipoImpianto NVARCHAR(50), + funzDal DATETIME, + funzAl DATETIME +) +GO + +CREATE TABLE AnagMacchine( + idxMacchina INT NOT NULL IDENTITY CONSTRAINT PK_AnagMacchine PRIMARY KEY, + idxImpianto INT, + codMacchina NVARCHAR(50), + nomeMacchina NVARCHAR(50), + modello NVARCHAR(50), + matricola NVARCHAR(50), + anno INT, + kgPeso FLOAT NOT NULL CONSTRAINT DF_AnagMacchine_kgPeso DEFAULT (0), + kwConsumo FLOAT NOT NULL CONSTRAINT DF_AnagMacchine_kwConsumo DEFAULT (0), + funzDal DATETIME, + funzAl DATETIME +) +GO + +ALTER TABLE AnagMacchine ADD + CONSTRAINT FK_AnagMacchine_AnagImpianti FOREIGN KEY(idxImpianto) REFERENCES AnagImpianti(idxImpianto) ON UPDATE CASCADE +GO + +CREATE TABLE AnagPeriodi( + codPeriodo NVARCHAR(20) NOT NULL CONSTRAINT PK_AnagPeriodi PRIMARY KEY, + lemmaPeriodo NVARCHAR(50) +) +GO + +CREATE TABLE AnagPriorita( + idxPriorita INT NOT NULL CONSTRAINT PK_AnagPriorita PRIMARY KEY, + descrPriorita NVARCHAR(50), + stile NVARCHAR(50) +) +GO + +CREATE TABLE AnagSemafori( + codSemaforo NVARCHAR(50) NOT NULL CONSTRAINT PK_AnagSemafori PRIMARY KEY, + descrSemaforo NVARCHAR(50) +) +GO + +CREATE TABLE AnagStati( + idxStato INT NOT NULL CONSTRAINT PK_AnagStati PRIMARY KEY, + DescrStato NVARCHAR(50), + stile NVARCHAR(50) +) +GO + +CREATE TABLE AnagTipoGuasto( + idxTipo INT NOT NULL IDENTITY CONSTRAINT PK_AnagTipoGuasto PRIMARY KEY, + descrTipo NVARCHAR(50) +) +GO + +CREATE TABLE CalendFesteFerie( + data DATETIME NOT NULL CONSTRAINT PK_CalendFesteFerie PRIMARY KEY, + descrizione NVARCHAR(50) +) +GO + +CREATE TABLE Causali2FamMacchine( + idxCausale INT NOT NULL, + idxFamMacchine INT NOT NULL, + + CONSTRAINT PK_Causali2FamMacchine PRIMARY KEY(idxCausale,idxFamMacchine) +) +GO + +ALTER TABLE Causali2FamMacchine ADD + CONSTRAINT FK_Causali2FamMacchine_AnagCausali FOREIGN KEY(idxCausale) REFERENCES AnagCausali(idxCausale) ON UPDATE CASCADE, + CONSTRAINT FK_Causali2FamMacchine_AnagFamMacchine FOREIGN KEY(idxFamMacchine) REFERENCES AnagFamMacchine(idxFamMacchine) ON UPDATE CASCADE +GO + +CREATE TABLE FiltroImpianti( + username NVARCHAR(50) NOT NULL, + idxImpianto INT NOT NULL, + + CONSTRAINT PK_FiltroImpianti PRIMARY KEY(username,idxImpianto) +) +GO + +ALTER TABLE FiltroImpianti ADD + CONSTRAINT FK_FiltroImpianti_AnagImpianti FOREIGN KEY(idxImpianto) REFERENCES AnagImpianti(idxImpianto) ON UPDATE CASCADE ON DELETE CASCADE +GO + +CREATE TABLE FiltroMacchine( + username NVARCHAR(50) NOT NULL, + idxMacchina INT NOT NULL, + + CONSTRAINT PK_FiltroMacchine PRIMARY KEY(username,idxMacchina) +) +GO + +ALTER TABLE FiltroMacchine ADD + CONSTRAINT FK_FiltroMacchine_AnagMacchine FOREIGN KEY(idxMacchina) REFERENCES AnagMacchine(idxMacchina) ON UPDATE CASCADE ON DELETE CASCADE +GO + +CREATE TABLE FiltroStati( + username NVARCHAR(50) NOT NULL, + idxStato INT NOT NULL, + + CONSTRAINT PK_FiltroStati PRIMARY KEY(username,idxStato) +) +GO + +ALTER TABLE FiltroStati ADD + CONSTRAINT FK_FiltroStati_AnagStati FOREIGN KEY(idxStato) REFERENCES AnagStati(idxStato) ON UPDATE CASCADE ON DELETE CASCADE +GO + +CREATE TABLE InterventiMtz( + numIntMtz INT NOT NULL IDENTITY CONSTRAINT PK_InterventiMtz PRIMARY KEY, + richiesta DATETIME NOT NULL, + dataLav DATETIME NOT NULL, + turnoLav INT NOT NULL, + matr NVARCHAR(10) NOT NULL, + guasto DATETIME NOT NULL, + idxAmbito INT NOT NULL, + idxPriorita INT NOT NULL, + isFermo BIT NOT NULL CONSTRAINT DF_InterventiMtz_isFermo DEFAULT (1), + idxTipo INT NOT NULL, + idxImpianto INT NOT NULL, + idxMacchina INT NOT NULL, + descrizione NVARCHAR(500) NOT NULL, + idxStato INT NOT NULL, + presaInCarico DATETIME, + inizioIntervento DATETIME, + fineIntervento DATETIME, + descrizioneIntervento NVARCHAR(500), + isPreventivabile BIT NOT NULL CONSTRAINT DF_InterventiMtz_isPreventivabile DEFAULT (0), + idxCausale INT +) +GO + +ALTER TABLE InterventiMtz ADD + CONSTRAINT FK_InterventiMtz_AnagPriorita FOREIGN KEY(idxPriorita) REFERENCES AnagPriorita(idxPriorita) ON UPDATE CASCADE, + CONSTRAINT FK_InterventiMtz_AnagStati FOREIGN KEY(idxStato) REFERENCES AnagStati(idxStato) ON UPDATE CASCADE, + CONSTRAINT FK_InterventiMtz_AnagImpianti FOREIGN KEY(idxImpianto) REFERENCES AnagImpianti(idxImpianto), + CONSTRAINT FK_InterventiMtz_AnagTipoGuasto FOREIGN KEY(idxTipo) REFERENCES AnagTipoGuasto(idxTipo) ON UPDATE CASCADE, + CONSTRAINT FK_InterventiMtz_AnagAmbitoGuasto FOREIGN KEY(idxAmbito) REFERENCES AnagAmbitoGuasto(idxAmbito) ON UPDATE CASCADE, + CONSTRAINT FK_InterventiMtz_AnagCausali FOREIGN KEY(idxCausale) REFERENCES AnagCausali(idxCausale) ON UPDATE CASCADE, + CONSTRAINT FK_InterventiMtz_AnagMacchine FOREIGN KEY(idxMacchina) REFERENCES AnagMacchine(idxMacchina) ON UPDATE CASCADE +GO + +CREATE TABLE InterventoOpMtz( + numIntMtz INT NOT NULL, + matrOp NVARCHAR(10) NOT NULL, + durataMinuti INT, + + CONSTRAINT PK_InterventoOpMtz PRIMARY KEY(numIntMtz,matrOp) +) +GO + +ALTER TABLE InterventoOpMtz ADD + CONSTRAINT FK_InterventoOpMtz_InterventiMtz FOREIGN KEY(numIntMtz) REFERENCES InterventiMtz(numIntMtz) ON UPDATE CASCADE +GO + +CREATE TABLE LogUpdateDb( + Versione INT NOT NULL CONSTRAINT PK_LogUpdateDb PRIMARY KEY, + Data DATETIME +) +GO + +CREATE TABLE Macchine2FamMacchine( + idxMacchina INT NOT NULL, + idxFamMacchine INT NOT NULL, + + CONSTRAINT PK_Macchine2FamMacchine PRIMARY KEY(idxMacchina,idxFamMacchine) +) +GO + +ALTER TABLE Macchine2FamMacchine ADD + CONSTRAINT FK_Macchine2FamMacchine_AnagMacchine FOREIGN KEY(idxMacchina) REFERENCES AnagMacchine(idxMacchina) ON UPDATE CASCADE, + CONSTRAINT FK_Macchine2FamMacchine_AnagFamMacchine FOREIGN KEY(idxFamMacchine) REFERENCES AnagFamMacchine(idxFamMacchine) ON UPDATE CASCADE +GO + +CREATE TABLE MtzProgPending( + idxPending INT NOT NULL IDENTITY CONSTRAINT PK_MtzProgPending PRIMARY KEY, + idxIntPro INT NOT NULL, + idxMacchina INT, + data DATETIME, + descrizione NVARCHAR(500), + idxPriorita INT, + isFermo BIT CONSTRAINT DF_MtzProgPending_isFermo DEFAULT (1), + idxTipo INT +) +GO + +CREATE TABLE MtzProgrammata( + idxIntPro INT NOT NULL IDENTITY CONSTRAINT PK_MtzProgrammata PRIMARY KEY, + idxMacchina INT, + inizio DATETIME, + codFrequenza NCHAR(2), + cadenza INT, + descrizione NVARCHAR(500), + idxPriorita INT, + isFermo BIT CONSTRAINT DF_MtzProgrammata_isFermo DEFAULT (1), + idxTipo INT +) +GO + +ALTER TABLE MtzProgrammata ADD + CONSTRAINT FK_MtzProgrammata_AnagFrequenze FOREIGN KEY(codFrequenza) REFERENCES AnagFrequenze(codFrequenza) ON UPDATE CASCADE, + CONSTRAINT FK_MtzProgrammata_AnagMacchine FOREIGN KEY(idxMacchina) REFERENCES AnagMacchine(idxMacchina) ON UPDATE CASCADE +GO + +CREATE TABLE OreAperturaSett( + giorno INT NOT NULL CONSTRAINT PK_OreAperturaSett PRIMARY KEY, + descrGiorno NVARCHAR(50), + apertura DECIMAL(4,2) +) +GO + +CREATE TABLE Permessi( + COD_PERMESSO VARCHAR(50) NOT NULL CONSTRAINT PK_Permessi PRIMARY KEY, + URL VARCHAR(250) NOT NULL, + GRUPPO INT, + NUMERO INT, + NOME VARCHAR(50), + DESCRIZIONE VARCHAR(50) +) +GO + +CREATE TABLE Permessi2Funzione( + COD_PERMESSO VARCHAR(50) NOT NULL, + COD_FUNZIONE NVARCHAR(31) NOT NULL, + READWRITE CHAR(1), + + CONSTRAINT PK_Permessi2Funzione PRIMARY KEY(COD_PERMESSO,COD_FUNZIONE) +) +GO + +ALTER TABLE Permessi2Funzione ADD + CONSTRAINT FK_Permessi2Funzione_Permessi FOREIGN KEY(COD_PERMESSO) REFERENCES Permessi(COD_PERMESSO) ON UPDATE CASCADE +GO + +CREATE TABLE Tra_Ev2Stati( + idxStato INT NOT NULL, + idxEvento INT NOT NULL, + nextIdxStato INT NOT NULL, + + CONSTRAINT PK_Tra_Ev2Stati PRIMARY KEY(idxStato,idxEvento) +) +GO + +ALTER TABLE Tra_Ev2Stati ADD + CONSTRAINT FK_Tra_Ev2Stati_AnagStati FOREIGN KEY(idxStato) REFERENCES AnagStati(idxStato) ON UPDATE CASCADE, + CONSTRAINT FK_Tra_Ev2Stati_AnagEventi FOREIGN KEY(idxEvento) REFERENCES AnagEventi(idxEvento) ON UPDATE CASCADE +GO + +ALTER TABLE MtzProgPending ADD + CONSTRAINT FK_MtzProgPending_MtzProgrammata FOREIGN KEY(idxIntPro) REFERENCES MtzProgrammata(idxIntPro) ON UPDATE CASCADE ON DELETE CASCADE +GO + +COMMIT +GO + + + + + + + + +/* creo funzioni */ +SET xact_abort ON +GO + +BEGIN TRANSACTION +GO + +SET ANSI_NULLS ON +GO + +CREATE FUNCTION f_padLeft (@string VARCHAR(255), @desired_length INTEGER, @pad_character CHAR(1)) +RETURNS VARCHAR(255) AS +BEGIN + + -- Prefix the required number of spaces to bulk up the string and then replace the spaces with the desired character + RETURN CASE + WHEN LEN(@string) < @desired_length + THEN REPLACE(SPACE(@desired_length - LEN(@string)), ' ', @pad_character) + @string + ELSE @string + END + +END +GO + +CREATE FUNCTION rightDivision +( + @dividendo FLOAT, + @divisore FLOAT +) +RETURNS FLOAT +AS + BEGIN + + DECLARE @errore AS INT + DECLARE @risultato AS FLOAT + + SET @errore =0 + + SET @errore = CASE WHEN (isnull(@dividendo,0))<=0 THEN 1 END + + SET @errore = CASE WHEN (isnull(@divisore,0)) <=0 THEN 1 END + + SET @risultato= CASE WHEN (@errore=1) THEN -1 ELSE @dividendo/@divisore END + + RETURN @risultato + + END +GO + +COMMIT +GO + + +/* creo stored e funzioni */ +SET xact_abort ON +GO + +BEGIN TRANSACTION +GO + +SET ANSI_NULLS ON +GO + +/************************************* +* STORED PROCEDURE sp_clonaImpianto +* Clona i dati dell'impianto indicato +* +* modif.: S.E.L. - 2009.01.14 +**************************************/ +CREATE PROCEDURE sp_clonaImpianto +( + @idxImpianto INT +) +AS + +BEGIN TRAN + + INSERT INTO AnagImpianti + (codImpianto, nomeImpianto, tipoImpianto, funzDal, funzAl) + SELECT codImpianto + '-clone' AS Expr1, nomeImpianto + '-clone' AS Expr2, tipoImpianto, funzDal, funzAl + FROM AnagImpianti AS AnagImpianti_1 + WHERE (idxImpianto = @idxImpianto) + +COMMIT TRAN + +RETURN +GO + +/************************************* +* STORED PROCEDURE sp_clonaMacchina +* Clona i dati della macchina indicata +* +* modif.: S.E.L. - 2009.01.14 +**************************************/ +CREATE PROCEDURE sp_clonaMacchina +( + @idxMacchina INT +) +AS + +BEGIN TRAN + + INSERT INTO AnagMacchine + (idxImpianto, codMacchina, nomeMacchina, modello, anno, kgPeso, kwConsumo, funzDal, funzAl) + SELECT idxImpianto, codMacchina + '-clone' AS Expr1, nomeMacchina + '-clone' AS Expr2, modello, anno, kgPeso, kwConsumo, funzDal, funzAl + FROM AnagMacchine AS AnagMacchine_1 + WHERE (idxMacchina = @idxMacchina) + +COMMIT TRAN + +RETURN +GO + +/************************************* +* STORED PROCEDURE sp_elencoIntMTBF_MTTR +* Restituisce elenco degli interventi x fare il calcolo MTBF/MTTR FILTRANDO per: +* - idxStati +* - idxImpianto +* - idxMacchina +* +* modif.: S.E.L. - 2009.02.11 +**************************************/ +CREATE PROCEDURE sp_elencoIntMTBF_MTTR +( + @inizio DATETIME, + @fine DATETIME, + @username VARCHAR(100) +) +AS + + SELECT COUNT(v_elencoIntervFilt.numIntMtz) AS numInterventi, SUM(v_elencoIntervFilt.durataMtz) AS totOreMtz, SUM(v_elencoIntervFilt.durataOff) AS totOreOfficina, + v_elencoIntervFilt.codImpianto, v_elencoIntervFilt.codMacchina, v_elencoIntervFilt.nomeImpianto, v_elencoIntervFilt.nomeMacchina + FROM FiltroImpianti INNER JOIN + FiltroMacchine INNER JOIN + v_elencoIntervFilt INNER JOIN + FiltroStati ON v_elencoIntervFilt.idxStato = FiltroStati.idxStato ON FiltroMacchine.idxMacchina = v_elencoIntervFilt.idxMacchina ON + FiltroImpianti.idxImpianto = v_elencoIntervFilt.idxImpianto + WHERE (v_elencoIntervFilt.richiesta BETWEEN @inizio AND @fine) AND (FiltroStati.username = @username) AND (FiltroMacchine.username = @username) AND + (FiltroImpianti.username = @username) + GROUP BY v_elencoIntervFilt.codImpianto, v_elencoIntervFilt.codMacchina, v_elencoIntervFilt.nomeImpianto, v_elencoIntervFilt.nomeMacchina + +RETURN +GO + +/************************************* +* STORED PROCEDURE sp_insRichiesta +* Inserisce nuova richiesta di intervento +* +* modif.: S.E.L. - 2009.01.22 +**************************************/ +CREATE PROCEDURE sp_insRichiesta +( + @richiesta DATETIME, + @dataLav DATETIME, + @turnoLav INT, + @matr VARCHAR(10), + @guasto DATETIME, + @idxAmbito INT, + @idxPriorita INT, + @isFermo BIT, + @idxTipo INT, + @idxImpianto INT, + @idxMacchina INT, + @descrizione VARCHAR(500), + @numIntMtz INT output +) +AS + +BEGIN TRAN + + INSERT INTO InterventiMtz + (richiesta, dataLav, turnoLav, matr, guasto, idxAmbito, idxPriorita, isFermo, idxTipo, idxImpianto, idxMacchina, descrizione, idxStato) + VALUES (@richiesta,@dataLav,@turnoLav,@matr,@guasto,@idxAmbito,@idxPriorita,@isFermo,@idxTipo,@idxImpianto,@idxMacchina,@descrizione, 1) + + /************************************* + * salvo idx del nuovo record + **************************************/ + SET @numIntMtz = SCOPE_IDENTITY() + +COMMIT TRAN + +RETURN (@numIntMtz) +GO + +/************************************* +* STORED PROCEDURE sp_procStatEv +* esegue la chiamata d processing x stati in base all'attuale stato ed all'evento associato +* +* modif.: S.E.L. +* il: 2009.01.22 +**************************************/ +CREATE PROCEDURE sp_procStatEv +( + @numIntMtz INT, + @idxEvento INT, + @idxStatoNew INT OUTPUT +) + +AS + -- chiamo la query di update, che cerca una riga nella tab transizioni x lo stato e l'evento richiesti e se li trova esegue update del ciclo... + + DECLARE @currIdxStato AS INT + DECLARE @procedere AS INT + +BEGIN TRAN + -- calcolo stato corrente del ciclo... + SET @currIdxStato = ISNULL((SELECT idxStato + FROM InterventiMtz + WHERE (numIntMtz = @numIntMtz)),0) + + -- cerco transizione da stato ed evento associati... + SET @procedere = ISNULL((SELECT COUNT(*) FROM Tra_Ev2Stati WHERE idxEvento=@idxEvento AND idxStato=@currIdxStato),0) + + -- se trovo eseguo transizione... + IF(@procedere >0) + BEGIN + UPDATE InterventiMtz + SET idxStato = Tra_Ev2Stati.nextIdxStato + FROM InterventiMtz INNER JOIN + Tra_Ev2Stati ON InterventiMtz.idxStato = Tra_Ev2Stati.idxStato + WHERE (InterventiMtz.numIntMtz = @numIntMtz) AND (Tra_Ev2Stati.idxEvento = @idxEvento) + END + +COMMIT TRAN + + -- calcolo lo stato nuovo... + SET @idxStatoNew = ISNULL((SELECT idxStato + FROM InterventiMtz + WHERE (numIntMtz = @numIntMtz)),0) + +RETURN (@idxStatoNew) +GO + +/************************************* +* STORED PROCEDURE sp_setPresaInCarico +* indica la richiesta come presa in carico con data/ora attuale del server +* +* modif.: S.E.L. - 2009.01.22 +**************************************/ +CREATE PROCEDURE sp_setPresaInCarico +( + @numIntMtz INT, + @idxStatoNew INT OUTPUT +) +AS + +BEGIN TRAN + -- inserisco data presa in carico + UPDATE InterventiMtz + SET presaInCarico = GETDATE() + WHERE (numIntMtz = @numIntMtz) + + -- aggiorno da machcian a stati... + EXEC sp_procStatEv @numIntMtz, 1, @idxStatoNew +COMMIT TRAN + +RETURN (@idxStatoNew) +GO + +/************************************* +* STORED PROCEDURE sp_spostaMacchina +* Sposta la macchina all'impianto indicato +* +* modif.: S.E.L. - 2009.01.14 +**************************************/ +CREATE PROCEDURE sp_spostaMacchina +( + @idxMacchina INT, + @idxImpiantoTo INT +) +AS + +UPDATE AnagMacchine +SET idxImpianto = @idxImpiantoTo +WHERE (idxMacchina = @idxMacchina) + +RETURN +GO + +/************************************* +* STORED PROCEDURE sp_updateIntervento +* aggiorna i dati dell'intervento compilati dalla manutenzione +* +* modif.: S.E.L. - 2009.01.28 +**************************************/ +CREATE PROCEDURE sp_updateIntervento +( + @Original_numIntMtz INT, + @idxStato INT, + @inizioIntervento DATETIME, + @fineIntervento DATETIME, + @isPreventivabile BIT, + @descrizioneIntervento VARCHAR(500) +) +AS + +UPDATE InterventiMtz +SET inizioIntervento = @inizioIntervento, fineIntervento = @fineIntervento, descrizioneIntervento = @descrizioneIntervento, isPreventivabile = @isPreventivabile, idxStato = @idxStato +WHERE (numIntMtz = @Original_numIntMtz) + +RETURN +GO + +/************************************* +* STORED PROCEDURE sp_updateInterventoFull +* aggiorna TUTTI i dati dell'intervento +* +* modif.: S.E.L. - 2009.02.02 +**************************************/ +CREATE PROCEDURE sp_updateInterventoFull +( + @Original_numIntMtz INT, + @idxStato INT, + @inizioIntervento DATETIME, + @fineIntervento DATETIME, + @isPreventivabile BIT, + @descrizioneIntervento VARCHAR(500), + @matr VARCHAR(50), + @guasto DATETIME, + @isFermo BIT, + @idxImpianto INT, + @idxMacchina INT, + @idxAmbito INT, + @idxPriorita INT, + @descrizione VARCHAR(500), + @idxTipo INT, + @presaInCarico DATETIME +) +AS + +UPDATE InterventiMtz +SET inizioIntervento = @inizioIntervento, fineIntervento = @fineIntervento, descrizioneIntervento = @descrizioneIntervento, isPreventivabile = @isPreventivabile, + idxStato = @idxStato, matr = @matr, guasto = @guasto, idxAmbito = @idxAmbito, idxPriorita = @idxPriorita, isFermo = @isFermo, idxTipo = @idxTipo, + idxImpianto = @idxImpianto, idxMacchina = @idxMacchina, descrizione = @descrizione, presaInCarico = @presaInCarico +WHERE (numIntMtz = @Original_numIntMtz) + +RETURN +GO + +COMMIT +GO + + + + + + + + +/* creo viste */ +SET xact_abort ON +GO + +BEGIN TRANSACTION +GO + +SET ANSI_NULLS ON +GO + +CREATE VIEW v_vocabolario +AS +SELECT Lingua, Lemma, Traduzione +FROM SteamWare_Vocabolario.dbo.Vocabolario +GO + +EXEC sp_addextendedproperty 'MS_DiagramPane1', '[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00] +Begin DesignProperties = + Begin PaneConfigurations = + Begin PaneConfiguration = 0 + NumPanes = 4 + Configuration = "(H (1[40] 4[20] 2[20] 3) )" + End + Begin PaneConfiguration = 1 + NumPanes = 3 + Configuration = "(H (1 [50] 4 [25] 3))" + End + Begin PaneConfiguration = 2 + NumPanes = 3 + Configuration = "(H (1 [50] 2 [25] 3))" + End + Begin PaneConfiguration = 3 + NumPanes = 3 + Configuration = "(H (4 [30] 2 [40] 3))" + End + Begin PaneConfiguration = 4 + NumPanes = 2 + Configuration = "(H (1 [56] 3))" + End + Begin PaneConfiguration = 5 + NumPanes = 2 + Configuration = "(H (2 [66] 3))" + End + Begin PaneConfiguration = 6 + NumPanes = 2 + Configuration = "(H (4 [50] 3))" + End + Begin PaneConfiguration = 7 + NumPanes = 1 + Configuration = "(V (3))" + End + Begin PaneConfiguration = 8 + NumPanes = 3 + Configuration = "(H (1[56] 4[18] 2) )" + End + Begin PaneConfiguration = 9 + NumPanes = 2 + Configuration = "(H (1 [75] 4))" + End + Begin PaneConfiguration = 10 + NumPanes = 2 + Configuration = "(H (1[66] 2) )" + End + Begin PaneConfiguration = 11 + NumPanes = 2 + Configuration = "(H (4 [60] 2))" + End + Begin PaneConfiguration = 12 + NumPanes = 1 + Configuration = "(H (1) )" + End + Begin PaneConfiguration = 13 + NumPanes = 1 + Configuration = "(V (4))" + End + Begin PaneConfiguration = 14 + NumPanes = 1 + Configuration = "(V (2))" + End + ActivePaneConfig = 0 + End + Begin DiagramPane = + Begin Origin = + Top = 0 + Left = 0 + End + Begin Tables = + Begin Table = "Vocabolario (SteamWare_Vocabolario.dbo)" + Begin Extent = + Top = 6 + Left = 38 + Bottom = 99 + Right = 189 + End + DisplayFlags = 280 + TopColumn = 0 + End + End + End + Begin SQLPane = + End + Begin DataPane = + Begin ParameterDefaults = "" + End + End + Begin CriteriaPane = + Begin ColumnWidths = 11 + Column = 1440 + Alias = 900 + Table = 1170 + Output = 720 + Append = 1400 + NewValue = 1170 + SortType = 1350 + SortOrder = 1410 + GroupBy = 1350 + Filter = 1350 + Or = 1350 + Or = 1350 + Or = 1350 + End + End +End +', 'SCHEMA', 'dbo', 'VIEW', 'v_vocabolario' +GO + +EXEC sp_addextendedproperty 'MS_DiagramPaneCount', 1, 'SCHEMA', 'dbo', 'VIEW', 'v_vocabolario' +GO + +COMMIT +GO + + +SET xact_abort ON +GO + +BEGIN TRANSACTION +GO + +SET ANSI_NULLS ON +GO + +CREATE VIEW v_selAmbiti +AS +SELECT TOP (100) PERCENT idxAmbito AS value, descrAmbitoGuasto AS label +FROM dbo.AnagAmbitoGuasto +ORDER BY label +GO + +CREATE VIEW v_selCausaliMacchine +AS +SELECT dbo.AnagCausali.idxCausale AS value, dbo.AnagCausali.descrCausale AS label, dbo.Macchine2FamMacchine.idxMacchina AS conditio +FROM dbo.Causali2FamMacchine INNER JOIN + dbo.Macchine2FamMacchine ON dbo.Causali2FamMacchine.idxFamMacchine = dbo.Macchine2FamMacchine.idxFamMacchine INNER JOIN + dbo.AnagCausali ON dbo.Causali2FamMacchine.idxCausale = dbo.AnagCausali.idxCausale +GO + +CREATE VIEW v_selFamMacc +AS +SELECT dbo.Macchine2FamMacchine.idxFamMacchine, dbo.AnagMacchine.idxMacchina, dbo.AnagFamMacchine.nomeFamMacch AS famiglia, + ISNULL(dbo.AnagMacchine.codMacchina, 'n.d.') + ' - ' + dbo.AnagMacchine.nomeMacchina + ', mod. ' + ISNULL(dbo.AnagMacchine.modello, 'n.d.') + + ' (' + ISNULL(dbo.AnagMacchine.matricola, 'n.d.') + ')' AS macchina +FROM dbo.Macchine2FamMacchine INNER JOIN + dbo.AnagFamMacchine ON dbo.Macchine2FamMacchine.idxFamMacchine = dbo.AnagFamMacchine.idxFamMacchine INNER JOIN + dbo.AnagMacchine ON dbo.Macchine2FamMacchine.idxMacchina = dbo.AnagMacchine.idxMacchina +GO + +CREATE VIEW v_selFreq +AS +SELECT codFrequenza AS value, frequenza AS label +FROM dbo.AnagFrequenze +GO + +EXEC sp_addextendedproperty 'MS_DiagramPane1', '[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00] +Begin DesignProperties = + Begin PaneConfigurations = + Begin PaneConfiguration = 0 + NumPanes = 4 + Configuration = "(H (1[40] 4[20] 2[20] 3) )" + End + Begin PaneConfiguration = 1 + NumPanes = 3 + Configuration = "(H (1 [50] 4 [25] 3))" + End + Begin PaneConfiguration = 2 + NumPanes = 3 + Configuration = "(H (1 [50] 2 [25] 3))" + End + Begin PaneConfiguration = 3 + NumPanes = 3 + Configuration = "(H (4 [30] 2 [40] 3))" + End + Begin PaneConfiguration = 4 + NumPanes = 2 + Configuration = "(H (1 [56] 3))" + End + Begin PaneConfiguration = 5 + NumPanes = 2 + Configuration = "(H (2 [66] 3))" + End + Begin PaneConfiguration = 6 + NumPanes = 2 + Configuration = "(H (4 [50] 3))" + End + Begin PaneConfiguration = 7 + NumPanes = 1 + Configuration = "(V (3))" + End + Begin PaneConfiguration = 8 + NumPanes = 3 + Configuration = "(H (1[56] 4[18] 2) )" + End + Begin PaneConfiguration = 9 + NumPanes = 2 + Configuration = "(H (1 [75] 4))" + End + Begin PaneConfiguration = 10 + NumPanes = 2 + Configuration = "(H (1[66] 2) )" + End + Begin PaneConfiguration = 11 + NumPanes = 2 + Configuration = "(H (4 [60] 2))" + End + Begin PaneConfiguration = 12 + NumPanes = 1 + Configuration = "(H (1) )" + End + Begin PaneConfiguration = 13 + NumPanes = 1 + Configuration = "(V (4))" + End + Begin PaneConfiguration = 14 + NumPanes = 1 + Configuration = "(V (2))" + End + ActivePaneConfig = 0 + End + Begin DiagramPane = + Begin Origin = + Top = 0 + Left = 0 + End + Begin Tables = + Begin Table = "AnagFrequenze" + Begin Extent = + Top = 6 + Left = 38 + Bottom = 84 + Right = 189 + End + DisplayFlags = 280 + TopColumn = 0 + End + End + End + Begin SQLPane = + End + Begin DataPane = + Begin ParameterDefaults = "" + End + Begin ColumnWidths = 9 + Width = 284 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + End + End + Begin CriteriaPane = + Begin ColumnWidths = 11 + Column = 1440 + Alias = 900 + Table = 1170 + Output = 720 + Append = 1400 + NewValue = 1170 + SortType = 1350 + SortOrder = 1410 + GroupBy = 1350 + Filter = 1350 + Or = 1350 + Or = 1350 + Or = 1350 + End + End +End +', 'SCHEMA', 'dbo', 'VIEW', 'v_selFreq' +GO + +EXEC sp_addextendedproperty 'MS_DiagramPaneCount', 1, 'SCHEMA', 'dbo', 'VIEW', 'v_selFreq' +GO + +CREATE VIEW v_selImpianti +AS +SELECT TOP (100) PERCENT idxImpianto AS value, nomeImpianto + ' - ' + ISNULL(tipoImpianto, 'n.d.') + ' (' + ISNULL(codImpianto, 'n.d.') + ')' AS label +FROM dbo.AnagImpianti +ORDER BY label +GO + +EXEC sp_addextendedproperty 'MS_DiagramPane1', '[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00] +Begin DesignProperties = + Begin PaneConfigurations = + Begin PaneConfiguration = 0 + NumPanes = 4 + Configuration = "(H (1[40] 4[20] 2[20] 3) )" + End + Begin PaneConfiguration = 1 + NumPanes = 3 + Configuration = "(H (1 [50] 4 [25] 3))" + End + Begin PaneConfiguration = 2 + NumPanes = 3 + Configuration = "(H (1 [50] 2 [25] 3))" + End + Begin PaneConfiguration = 3 + NumPanes = 3 + Configuration = "(H (4 [30] 2 [40] 3))" + End + Begin PaneConfiguration = 4 + NumPanes = 2 + Configuration = "(H (1 [56] 3))" + End + Begin PaneConfiguration = 5 + NumPanes = 2 + Configuration = "(H (2 [66] 3))" + End + Begin PaneConfiguration = 6 + NumPanes = 2 + Configuration = "(H (4 [50] 3))" + End + Begin PaneConfiguration = 7 + NumPanes = 1 + Configuration = "(V (3))" + End + Begin PaneConfiguration = 8 + NumPanes = 3 + Configuration = "(H (1[56] 4[18] 2) )" + End + Begin PaneConfiguration = 9 + NumPanes = 2 + Configuration = "(H (1 [75] 4))" + End + Begin PaneConfiguration = 10 + NumPanes = 2 + Configuration = "(H (1[66] 2) )" + End + Begin PaneConfiguration = 11 + NumPanes = 2 + Configuration = "(H (4 [60] 2))" + End + Begin PaneConfiguration = 12 + NumPanes = 1 + Configuration = "(H (1) )" + End + Begin PaneConfiguration = 13 + NumPanes = 1 + Configuration = "(V (4))" + End + Begin PaneConfiguration = 14 + NumPanes = 1 + Configuration = "(V (2))" + End + ActivePaneConfig = 0 + End + Begin DiagramPane = + Begin Origin = + Top = 0 + Left = 0 + End + Begin Tables = + Begin Table = "AnagImpianti" + Begin Extent = + Top = 6 + Left = 38 + Bottom = 114 + Right = 189 + End + DisplayFlags = 280 + TopColumn = 0 + End + End + End + Begin SQLPane = + End + Begin DataPane = + Begin ParameterDefaults = "" + End + Begin ColumnWidths = 9 + Width = 284 + Width = 1500 + Width = 4185 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + End + End + Begin CriteriaPane = + Begin ColumnWidths = 11 + Column = 1440 + Alias = 900 + Table = 1170 + Output = 720 + Append = 1400 + NewValue = 1170 + SortType = 1350 + SortOrder = 1410 + GroupBy = 1350 + Filter = 1350 + Or = 1350 + Or = 1350 + Or = 1350 + End + End +End +', 'SCHEMA', 'dbo', 'VIEW', 'v_selImpianti' +GO + +EXEC sp_addextendedproperty 'MS_DiagramPaneCount', 1, 'SCHEMA', 'dbo', 'VIEW', 'v_selImpianti' +GO + +CREATE VIEW v_selMacchine +AS +SELECT TOP (100) PERCENT idxMacchina AS value, LTRIM(RTRIM(nomeMacchina)) + ' (' + ISNULL(codMacchina, 'n.d.') + ') ' + ', mod. ' + ISNULL(modello, 'n.d.') + + ' (' + ISNULL(matricola, 'n.d.') + ')' AS label, idxImpianto AS conditio +FROM dbo.AnagMacchine +ORDER BY label +GO + +EXEC sp_addextendedproperty 'MS_DiagramPane1', '[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00] +Begin DesignProperties = + Begin PaneConfigurations = + Begin PaneConfiguration = 0 + NumPanes = 4 + Configuration = "(H (1[40] 4[20] 2[20] 3) )" + End + Begin PaneConfiguration = 1 + NumPanes = 3 + Configuration = "(H (1 [50] 4 [25] 3))" + End + Begin PaneConfiguration = 2 + NumPanes = 3 + Configuration = "(H (1 [50] 2 [25] 3))" + End + Begin PaneConfiguration = 3 + NumPanes = 3 + Configuration = "(H (4 [30] 2 [40] 3))" + End + Begin PaneConfiguration = 4 + NumPanes = 2 + Configuration = "(H (1 [56] 3))" + End + Begin PaneConfiguration = 5 + NumPanes = 2 + Configuration = "(H (2 [66] 3))" + End + Begin PaneConfiguration = 6 + NumPanes = 2 + Configuration = "(H (4 [50] 3))" + End + Begin PaneConfiguration = 7 + NumPanes = 1 + Configuration = "(V (3))" + End + Begin PaneConfiguration = 8 + NumPanes = 3 + Configuration = "(H (1[56] 4[18] 2) )" + End + Begin PaneConfiguration = 9 + NumPanes = 2 + Configuration = "(H (1 [75] 4))" + End + Begin PaneConfiguration = 10 + NumPanes = 2 + Configuration = "(H (1[66] 2) )" + End + Begin PaneConfiguration = 11 + NumPanes = 2 + Configuration = "(H (4 [60] 2))" + End + Begin PaneConfiguration = 12 + NumPanes = 1 + Configuration = "(H (1) )" + End + Begin PaneConfiguration = 13 + NumPanes = 1 + Configuration = "(V (4))" + End + Begin PaneConfiguration = 14 + NumPanes = 1 + Configuration = "(V (2))" + End + ActivePaneConfig = 0 + End + Begin DiagramPane = + Begin Origin = + Top = -384 + Left = 0 + End + Begin Tables = + Begin Table = "AnagMacchine" + Begin Extent = + Top = 6 + Left = 38 + Bottom = 114 + Right = 189 + End + DisplayFlags = 280 + TopColumn = 0 + End + End + End + Begin SQLPane = + End + Begin DataPane = + Begin ParameterDefaults = "" + End + Begin ColumnWidths = 9 + Width = 284 + Width = 1500 + Width = 6795 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + End + End + Begin CriteriaPane = + Begin ColumnWidths = 11 + Column = 1440 + Alias = 900 + Table = 1170 + Output = 720 + Append = 1400 + NewValue = 1170 + SortType = 1350 + SortOrder = 1410 + GroupBy = 1350 + Filter = 1350 + Or = 1350 + Or = 1350 + Or = 1350 + End + End +End +', 'SCHEMA', 'dbo', 'VIEW', 'v_selMacchine' +GO + +EXEC sp_addextendedproperty 'MS_DiagramPaneCount', 1, 'SCHEMA', 'dbo', 'VIEW', 'v_selMacchine' +GO + +CREATE VIEW v_selPeriodiTrad +AS +SELECT TOP (100) PERCENT dbo.AnagPeriodi.codPeriodo AS value, dbo.v_vocabolario.Traduzione AS label, dbo.v_vocabolario.Lingua AS conditio +FROM dbo.AnagPeriodi INNER JOIN + dbo.v_vocabolario ON dbo.AnagPeriodi.lemmaPeriodo = dbo.v_vocabolario.Lemma +ORDER BY label +GO + +EXEC sp_addextendedproperty 'MS_DiagramPane1', '[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00] +Begin DesignProperties = + Begin PaneConfigurations = + Begin PaneConfiguration = 0 + NumPanes = 4 + Configuration = "(H (1[40] 4[20] 2[20] 3) )" + End + Begin PaneConfiguration = 1 + NumPanes = 3 + Configuration = "(H (1 [50] 4 [25] 3))" + End + Begin PaneConfiguration = 2 + NumPanes = 3 + Configuration = "(H (1 [50] 2 [25] 3))" + End + Begin PaneConfiguration = 3 + NumPanes = 3 + Configuration = "(H (4 [30] 2 [40] 3))" + End + Begin PaneConfiguration = 4 + NumPanes = 2 + Configuration = "(H (1 [56] 3))" + End + Begin PaneConfiguration = 5 + NumPanes = 2 + Configuration = "(H (2 [66] 3))" + End + Begin PaneConfiguration = 6 + NumPanes = 2 + Configuration = "(H (4 [50] 3))" + End + Begin PaneConfiguration = 7 + NumPanes = 1 + Configuration = "(V (3))" + End + Begin PaneConfiguration = 8 + NumPanes = 3 + Configuration = "(H (1[56] 4[18] 2) )" + End + Begin PaneConfiguration = 9 + NumPanes = 2 + Configuration = "(H (1 [75] 4))" + End + Begin PaneConfiguration = 10 + NumPanes = 2 + Configuration = "(H (1[66] 2) )" + End + Begin PaneConfiguration = 11 + NumPanes = 2 + Configuration = "(H (4 [60] 2))" + End + Begin PaneConfiguration = 12 + NumPanes = 1 + Configuration = "(H (1) )" + End + Begin PaneConfiguration = 13 + NumPanes = 1 + Configuration = "(V (4))" + End + Begin PaneConfiguration = 14 + NumPanes = 1 + Configuration = "(V (2))" + End + ActivePaneConfig = 0 + End + Begin DiagramPane = + Begin Origin = + Top = 0 + Left = 0 + End + Begin Tables = + Begin Table = "AnagPeriodi" + Begin Extent = + Top = 6 + Left = 38 + Bottom = 84 + Right = 189 + End + DisplayFlags = 280 + TopColumn = 0 + End + Begin Table = "v_vocabolario" + Begin Extent = + Top = 6 + Left = 227 + Bottom = 99 + Right = 378 + End + DisplayFlags = 280 + TopColumn = 0 + End + End + End + Begin SQLPane = + End + Begin DataPane = + Begin ParameterDefaults = "" + End + Begin ColumnWidths = 9 + Width = 284 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + End + End + Begin CriteriaPane = + Begin ColumnWidths = 11 + Column = 1440 + Alias = 900 + Table = 1170 + Output = 720 + Append = 1400 + NewValue = 1170 + SortType = 1350 + SortOrder = 1410 + GroupBy = 1350 + Filter = 1350 + Or = 1350 + Or = 1350 + Or = 1350 + End + End +End +', 'SCHEMA', 'dbo', 'VIEW', 'v_selPeriodiTrad' +GO + +EXEC sp_addextendedproperty 'MS_DiagramPaneCount', 1, 'SCHEMA', 'dbo', 'VIEW', 'v_selPeriodiTrad' +GO + +CREATE VIEW v_selPrior +AS +SELECT TOP (100) PERCENT idxPriorita AS value, CAST(idxPriorita AS VARCHAR(4)) + ' - ' + descrPriorita AS label +FROM dbo.AnagPriorita +ORDER BY label +GO + +CREATE VIEW v_selSemafori +AS +SELECT TOP (100) PERCENT codSemaforo AS value, descrSemaforo AS label +FROM dbo.AnagSemafori +ORDER BY label +GO + +EXEC sp_addextendedproperty 'MS_DiagramPane1', '[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00] +Begin DesignProperties = + Begin PaneConfigurations = + Begin PaneConfiguration = 0 + NumPanes = 4 + Configuration = "(H (1[40] 4[20] 2[20] 3) )" + End + Begin PaneConfiguration = 1 + NumPanes = 3 + Configuration = "(H (1 [50] 4 [25] 3))" + End + Begin PaneConfiguration = 2 + NumPanes = 3 + Configuration = "(H (1 [50] 2 [25] 3))" + End + Begin PaneConfiguration = 3 + NumPanes = 3 + Configuration = "(H (4 [30] 2 [40] 3))" + End + Begin PaneConfiguration = 4 + NumPanes = 2 + Configuration = "(H (1 [56] 3))" + End + Begin PaneConfiguration = 5 + NumPanes = 2 + Configuration = "(H (2 [66] 3))" + End + Begin PaneConfiguration = 6 + NumPanes = 2 + Configuration = "(H (4 [50] 3))" + End + Begin PaneConfiguration = 7 + NumPanes = 1 + Configuration = "(V (3))" + End + Begin PaneConfiguration = 8 + NumPanes = 3 + Configuration = "(H (1[56] 4[18] 2) )" + End + Begin PaneConfiguration = 9 + NumPanes = 2 + Configuration = "(H (1 [75] 4))" + End + Begin PaneConfiguration = 10 + NumPanes = 2 + Configuration = "(H (1[66] 2) )" + End + Begin PaneConfiguration = 11 + NumPanes = 2 + Configuration = "(H (4 [60] 2))" + End + Begin PaneConfiguration = 12 + NumPanes = 1 + Configuration = "(H (1) )" + End + Begin PaneConfiguration = 13 + NumPanes = 1 + Configuration = "(V (4))" + End + Begin PaneConfiguration = 14 + NumPanes = 1 + Configuration = "(V (2))" + End + ActivePaneConfig = 0 + End + Begin DiagramPane = + Begin Origin = + Top = 0 + Left = 0 + End + Begin Tables = + Begin Table = "AnagSemafori" + Begin Extent = + Top = 6 + Left = 38 + Bottom = 84 + Right = 190 + End + DisplayFlags = 280 + TopColumn = 0 + End + End + End + Begin SQLPane = + End + Begin DataPane = + Begin ParameterDefaults = "" + End + Begin ColumnWidths = 9 + Width = 284 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + End + End + Begin CriteriaPane = + Begin ColumnWidths = 11 + Column = 1440 + Alias = 900 + Table = 1170 + Output = 720 + Append = 1400 + NewValue = 1170 + SortType = 1350 + SortOrder = 1410 + GroupBy = 1350 + Filter = 1350 + Or = 1350 + Or = 1350 + Or = 1350 + End + End +End +', 'SCHEMA', 'dbo', 'VIEW', 'v_selSemafori' +GO + +EXEC sp_addextendedproperty 'MS_DiagramPaneCount', 1, 'SCHEMA', 'dbo', 'VIEW', 'v_selSemafori' +GO + +CREATE VIEW v_selStato +AS +SELECT idxStato AS value, DescrStato AS label +FROM dbo.AnagStati +GO + +EXEC sp_addextendedproperty 'MS_DiagramPane1', '[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00] +Begin DesignProperties = + Begin PaneConfigurations = + Begin PaneConfiguration = 0 + NumPanes = 4 + Configuration = "(H (1[40] 4[20] 2[20] 3) )" + End + Begin PaneConfiguration = 1 + NumPanes = 3 + Configuration = "(H (1 [50] 4 [25] 3))" + End + Begin PaneConfiguration = 2 + NumPanes = 3 + Configuration = "(H (1 [50] 2 [25] 3))" + End + Begin PaneConfiguration = 3 + NumPanes = 3 + Configuration = "(H (4 [30] 2 [40] 3))" + End + Begin PaneConfiguration = 4 + NumPanes = 2 + Configuration = "(H (1 [56] 3))" + End + Begin PaneConfiguration = 5 + NumPanes = 2 + Configuration = "(H (2 [66] 3))" + End + Begin PaneConfiguration = 6 + NumPanes = 2 + Configuration = "(H (4 [50] 3))" + End + Begin PaneConfiguration = 7 + NumPanes = 1 + Configuration = "(V (3))" + End + Begin PaneConfiguration = 8 + NumPanes = 3 + Configuration = "(H (1[56] 4[18] 2) )" + End + Begin PaneConfiguration = 9 + NumPanes = 2 + Configuration = "(H (1 [75] 4))" + End + Begin PaneConfiguration = 10 + NumPanes = 2 + Configuration = "(H (1[66] 2) )" + End + Begin PaneConfiguration = 11 + NumPanes = 2 + Configuration = "(H (4 [60] 2))" + End + Begin PaneConfiguration = 12 + NumPanes = 1 + Configuration = "(H (1) )" + End + Begin PaneConfiguration = 13 + NumPanes = 1 + Configuration = "(V (4))" + End + Begin PaneConfiguration = 14 + NumPanes = 1 + Configuration = "(V (2))" + End + ActivePaneConfig = 0 + End + Begin DiagramPane = + Begin Origin = + Top = 0 + Left = 0 + End + Begin Tables = + Begin Table = "AnagStati" + Begin Extent = + Top = 6 + Left = 38 + Bottom = 99 + Right = 189 + End + DisplayFlags = 280 + TopColumn = 0 + End + End + End + Begin SQLPane = + End + Begin DataPane = + Begin ParameterDefaults = "" + End + Begin ColumnWidths = 9 + Width = 284 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + End + End + Begin CriteriaPane = + Begin ColumnWidths = 11 + Column = 1440 + Alias = 900 + Table = 1170 + Output = 720 + Append = 1400 + NewValue = 1170 + SortType = 1350 + SortOrder = 1410 + GroupBy = 1350 + Filter = 1350 + Or = 1350 + Or = 1350 + Or = 1350 + End + End +End +', 'SCHEMA', 'dbo', 'VIEW', 'v_selStato' +GO + +EXEC sp_addextendedproperty 'MS_DiagramPaneCount', 1, 'SCHEMA', 'dbo', 'VIEW', 'v_selStato' +GO + +CREATE VIEW v_selTipoGuasto +AS +SELECT TOP (100) PERCENT idxTipo AS value, descrTipo AS label +FROM dbo.AnagTipoGuasto +ORDER BY label +GO + +EXEC sp_addextendedproperty 'MS_DiagramPane1', '[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00] +Begin DesignProperties = + Begin PaneConfigurations = + Begin PaneConfiguration = 0 + NumPanes = 4 + Configuration = "(H (1[40] 4[20] 2[20] 3) )" + End + Begin PaneConfiguration = 1 + NumPanes = 3 + Configuration = "(H (1 [50] 4 [25] 3))" + End + Begin PaneConfiguration = 2 + NumPanes = 3 + Configuration = "(H (1 [50] 2 [25] 3))" + End + Begin PaneConfiguration = 3 + NumPanes = 3 + Configuration = "(H (4 [30] 2 [40] 3))" + End + Begin PaneConfiguration = 4 + NumPanes = 2 + Configuration = "(H (1 [56] 3))" + End + Begin PaneConfiguration = 5 + NumPanes = 2 + Configuration = "(H (2 [66] 3))" + End + Begin PaneConfiguration = 6 + NumPanes = 2 + Configuration = "(H (4 [50] 3))" + End + Begin PaneConfiguration = 7 + NumPanes = 1 + Configuration = "(V (3))" + End + Begin PaneConfiguration = 8 + NumPanes = 3 + Configuration = "(H (1[56] 4[18] 2) )" + End + Begin PaneConfiguration = 9 + NumPanes = 2 + Configuration = "(H (1 [75] 4))" + End + Begin PaneConfiguration = 10 + NumPanes = 2 + Configuration = "(H (1[66] 2) )" + End + Begin PaneConfiguration = 11 + NumPanes = 2 + Configuration = "(H (4 [60] 2))" + End + Begin PaneConfiguration = 12 + NumPanes = 1 + Configuration = "(H (1) )" + End + Begin PaneConfiguration = 13 + NumPanes = 1 + Configuration = "(V (4))" + End + Begin PaneConfiguration = 14 + NumPanes = 1 + Configuration = "(V (2))" + End + ActivePaneConfig = 0 + End + Begin DiagramPane = + Begin Origin = + Top = 0 + Left = 0 + End + Begin Tables = + Begin Table = "AnagTipoGuasto" + Begin Extent = + Top = 6 + Left = 38 + Bottom = 84 + Right = 189 + End + DisplayFlags = 280 + TopColumn = 0 + End + End + End + Begin SQLPane = + End + Begin DataPane = + Begin ParameterDefaults = "" + End + Begin ColumnWidths = 9 + Width = 284 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + End + End + Begin CriteriaPane = + Begin ColumnWidths = 11 + Column = 1440 + Alias = 900 + Table = 1170 + Output = 720 + Append = 1400 + NewValue = 1170 + SortType = 1350 + SortOrder = 1410 + GroupBy = 1350 + Filter = 1350 + Or = 1350 + Or = 1350 + Or = 1350 + End + End +End +', 'SCHEMA', 'dbo', 'VIEW', 'v_selTipoGuasto' +GO + +EXEC sp_addextendedproperty 'MS_DiagramPaneCount', 1, 'SCHEMA', 'dbo', 'VIEW', 'v_selTipoGuasto' +GO + +COMMIT +GO + + +SET xact_abort ON +GO + +BEGIN TRANSACTION +GO + +SET ANSI_NULLS ON +GO + +CREATE VIEW v_interventiErogati +AS +SELECT numIntMtz, SUM(durataMinuti) AS totMinErogati +FROM dbo.InterventoOpMtz +GROUP BY numIntMtz +GO + +EXEC sp_addextendedproperty 'MS_DiagramPane1', '[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00] +Begin DesignProperties = + Begin PaneConfigurations = + Begin PaneConfiguration = 0 + NumPanes = 4 + Configuration = "(H (1[40] 4[20] 2[20] 3) )" + End + Begin PaneConfiguration = 1 + NumPanes = 3 + Configuration = "(H (1 [50] 4 [25] 3))" + End + Begin PaneConfiguration = 2 + NumPanes = 3 + Configuration = "(H (1 [50] 2 [25] 3))" + End + Begin PaneConfiguration = 3 + NumPanes = 3 + Configuration = "(H (4 [30] 2 [40] 3))" + End + Begin PaneConfiguration = 4 + NumPanes = 2 + Configuration = "(H (1 [56] 3))" + End + Begin PaneConfiguration = 5 + NumPanes = 2 + Configuration = "(H (2 [66] 3))" + End + Begin PaneConfiguration = 6 + NumPanes = 2 + Configuration = "(H (4 [50] 3))" + End + Begin PaneConfiguration = 7 + NumPanes = 1 + Configuration = "(V (3))" + End + Begin PaneConfiguration = 8 + NumPanes = 3 + Configuration = "(H (1[56] 4[18] 2) )" + End + Begin PaneConfiguration = 9 + NumPanes = 2 + Configuration = "(H (1 [75] 4))" + End + Begin PaneConfiguration = 10 + NumPanes = 2 + Configuration = "(H (1[66] 2) )" + End + Begin PaneConfiguration = 11 + NumPanes = 2 + Configuration = "(H (4 [60] 2))" + End + Begin PaneConfiguration = 12 + NumPanes = 1 + Configuration = "(H (1) )" + End + Begin PaneConfiguration = 13 + NumPanes = 1 + Configuration = "(V (4))" + End + Begin PaneConfiguration = 14 + NumPanes = 1 + Configuration = "(V (2))" + End + ActivePaneConfig = 0 + End + Begin DiagramPane = + Begin Origin = + Top = 0 + Left = 0 + End + Begin Tables = + Begin Table = "InterventoOpMtz" + Begin Extent = + Top = 6 + Left = 38 + Bottom = 99 + Right = 189 + End + DisplayFlags = 280 + TopColumn = 0 + End + End + End + Begin SQLPane = + End + Begin DataPane = + Begin ParameterDefaults = "" + End + Begin ColumnWidths = 9 + Width = 284 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + End + End + Begin CriteriaPane = + Begin ColumnWidths = 12 + Column = 1440 + Alias = 900 + Table = 1170 + Output = 720 + Append = 1400 + NewValue = 1170 + SortType = 1350 + SortOrder = 1410 + GroupBy = 1350 + Filter = 1350 + Or = 1350 + Or = 1350 + Or = 1350 + End + End +End +', 'SCHEMA', 'dbo', 'VIEW', 'v_interventiErogati' +GO + +EXEC sp_addextendedproperty 'MS_DiagramPaneCount', 1, 'SCHEMA', 'dbo', 'VIEW', 'v_interventiErogati' +GO + +CREATE VIEW v_intervExp +AS +SELECT TOP (100) PERCENT dbo.InterventiMtz.numIntMtz, dbo.InterventiMtz.richiesta, dbo.InterventiMtz.dataLav, dbo.InterventiMtz.turnoLav, dbo.InterventiMtz.matr, + dbo.InterventiMtz.guasto, dbo.InterventiMtz.idxAmbito, dbo.AnagAmbitoGuasto.descrAmbitoGuasto, dbo.InterventiMtz.idxPriorita, + dbo.AnagPriorita.descrPriorita, dbo.InterventiMtz.isFermo, dbo.InterventiMtz.idxTipo, dbo.AnagTipoGuasto.descrTipo, dbo.InterventiMtz.idxImpianto, + dbo.AnagImpianti.codImpianto, dbo.AnagImpianti.nomeImpianto, dbo.InterventiMtz.idxMacchina, dbo.AnagMacchine.codMacchina, + dbo.AnagMacchine.nomeMacchina, dbo.InterventiMtz.descrizione, dbo.InterventiMtz.idxStato, dbo.AnagStati.DescrStato, + ISNULL(dbo.InterventiMtz.presaInCarico, dbo.InterventiMtz.richiesta) AS presaInCarico, ISNULL(dbo.InterventiMtz.inizioIntervento, + ISNULL(dbo.InterventiMtz.presaInCarico, dbo.InterventiMtz.richiesta)) AS inizioIntervento, ISNULL(dbo.InterventiMtz.fineIntervento, GETDATE()) + AS fineIntervento, dbo.InterventiMtz.descrizioneIntervento, dbo.InterventiMtz.isPreventivabile, dbo.InterventiMtz.idxCausale, + ISNULL(dbo.AnagCausali.descrCausale, 'N.D.') AS descrCausale +FROM dbo.InterventiMtz INNER JOIN + dbo.AnagAmbitoGuasto ON dbo.InterventiMtz.idxAmbito = dbo.AnagAmbitoGuasto.idxAmbito INNER JOIN + dbo.AnagImpianti ON dbo.InterventiMtz.idxImpianto = dbo.AnagImpianti.idxImpianto INNER JOIN + dbo.AnagMacchine ON dbo.InterventiMtz.idxMacchina = dbo.AnagMacchine.idxMacchina INNER JOIN + dbo.AnagTipoGuasto ON dbo.InterventiMtz.idxTipo = dbo.AnagTipoGuasto.idxTipo INNER JOIN + dbo.AnagPriorita ON dbo.InterventiMtz.idxPriorita = dbo.AnagPriorita.idxPriorita INNER JOIN + dbo.AnagStati ON dbo.InterventiMtz.idxStato = dbo.AnagStati.idxStato LEFT OUTER JOIN + dbo.AnagCausali ON dbo.InterventiMtz.idxCausale = dbo.AnagCausali.idxCausale +ORDER BY dbo.InterventiMtz.numIntMtz DESC +GO + +EXEC sp_addextendedproperty 'MS_DiagramPane1', '[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00] +Begin DesignProperties = + Begin PaneConfigurations = + Begin PaneConfiguration = 0 + NumPanes = 4 + Configuration = "(H (1[40] 4[20] 2[20] 3) )" + End + Begin PaneConfiguration = 1 + NumPanes = 3 + Configuration = "(H (1 [50] 4 [25] 3))" + End + Begin PaneConfiguration = 2 + NumPanes = 3 + Configuration = "(H (1 [50] 2 [25] 3))" + End + Begin PaneConfiguration = 3 + NumPanes = 3 + Configuration = "(H (4 [30] 2 [40] 3))" + End + Begin PaneConfiguration = 4 + NumPanes = 2 + Configuration = "(H (1 [56] 3))" + End + Begin PaneConfiguration = 5 + NumPanes = 2 + Configuration = "(H (2 [66] 3))" + End + Begin PaneConfiguration = 6 + NumPanes = 2 + Configuration = "(H (4 [50] 3))" + End + Begin PaneConfiguration = 7 + NumPanes = 1 + Configuration = "(V (3))" + End + Begin PaneConfiguration = 8 + NumPanes = 3 + Configuration = "(H (1[56] 4[18] 2) )" + End + Begin PaneConfiguration = 9 + NumPanes = 2 + Configuration = "(H (1 [75] 4))" + End + Begin PaneConfiguration = 10 + NumPanes = 2 + Configuration = "(H (1[66] 2) )" + End + Begin PaneConfiguration = 11 + NumPanes = 2 + Configuration = "(H (4 [60] 2))" + End + Begin PaneConfiguration = 12 + NumPanes = 1 + Configuration = "(H (1) )" + End + Begin PaneConfiguration = 13 + NumPanes = 1 + Configuration = "(V (4))" + End + Begin PaneConfiguration = 14 + NumPanes = 1 + Configuration = "(V (2))" + End + ActivePaneConfig = 0 + End + Begin DiagramPane = + Begin Origin = + Top = 0 + Left = 0 + End + Begin Tables = + Begin Table = "InterventiMtz" + Begin Extent = + Top = 5 + Left = 576 + Bottom = 360 + Right = 761 + End + DisplayFlags = 280 + TopColumn = 0 + End + Begin Table = "AnagAmbitoGuasto" + Begin Extent = + Top = 4 + Left = 213 + Bottom = 82 + Right = 386 + End + DisplayFlags = 280 + TopColumn = 0 + End + Begin Table = "AnagImpianti" + Begin Extent = + Top = 113 + Left = 834 + Bottom = 221 + Right = 985 + End + DisplayFlags = 280 + TopColumn = 0 + End + Begin Table = "AnagMacchine" + Begin Extent = + Top = 181 + Left = 227 + Bottom = 289 + Right = 378 + End + DisplayFlags = 280 + TopColumn = 0 + End + Begin Table = "AnagTipoGuasto" + Begin Extent = + Top = 91 + Left = 228 + Bottom = 169 + Right = 379 + End + DisplayFlags = 280 + TopColumn = 0 + End + Begin Table = "AnagPriorita" + Begin Extent = + Top = 19 + Left = 834 + Bottom = 97 + Right = 985 + End + DisplayFlags = 280 + TopColumn = 0 + End + Begin Table = "AnagStati" + Begin Extent = + Top = 237 + Left = 834 + Bottom = 315 + Right = 985 + ', 'SCHEMA', 'dbo', 'VIEW', 'v_intervExp' +GO + +EXEC sp_addextendedproperty 'MS_DiagramPane2', ' End + DisplayFlags = 280 + TopColumn = 0 + End + Begin Table = "AnagCausali" + Begin Extent = + Top = 295 + Left = 235 + Bottom = 373 + Right = 386 + End + DisplayFlags = 280 + TopColumn = 0 + End + End + End + Begin SQLPane = + End + Begin DataPane = + Begin ParameterDefaults = "" + End + Begin ColumnWidths = 30 + Width = 284 + Width = 1500 + Width = 1665 + Width = 1185 + Width = 1500 + Width = 1500 + Width = 1830 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + End + End + Begin CriteriaPane = + Begin ColumnWidths = 11 + Column = 1440 + Alias = 900 + Table = 1170 + Output = 720 + Append = 1400 + NewValue = 1170 + SortType = 1350 + SortOrder = 1410 + GroupBy = 1350 + Filter = 1350 + Or = 1350 + Or = 1350 + Or = 1350 + End + End +End +', 'SCHEMA', 'dbo', 'VIEW', 'v_intervExp' +GO + +EXEC sp_addextendedproperty 'MS_DiagramPaneCount', 2, 'SCHEMA', 'dbo', 'VIEW', 'v_intervExp' +GO + +CREATE VIEW v_macchine +AS +SELECT dbo.AnagMacchine.idxMacchina, dbo.AnagMacchine.idxImpianto, dbo.AnagMacchine.codMacchina, dbo.AnagMacchine.nomeMacchina, dbo.AnagMacchine.modello, + dbo.AnagMacchine.matricola, dbo.AnagMacchine.anno, dbo.AnagMacchine.kgPeso, dbo.AnagMacchine.kwConsumo, dbo.AnagMacchine.funzDal, + dbo.AnagMacchine.funzAl, dbo.AnagImpianti.codImpianto + ' - ' + dbo.AnagImpianti.nomeImpianto AS descrImpianto +FROM dbo.AnagMacchine INNER JOIN + dbo.AnagImpianti ON dbo.AnagMacchine.idxImpianto = dbo.AnagImpianti.idxImpianto +GO + +CREATE VIEW v_mtzProgExp +AS +SELECT dbo.MtzProgrammata.idxIntPro, dbo.MtzProgrammata.idxMacchina, dbo.AnagMacchine.codMacchina, dbo.AnagMacchine.nomeMacchina, dbo.MtzProgrammata.inizio, + dbo.MtzProgrammata.codFrequenza, dbo.AnagFrequenze.frequenza, dbo.MtzProgrammata.cadenza, dbo.MtzProgrammata.descrizione, + dbo.MtzProgrammata.idxPriorita, dbo.AnagPriorita.descrPriorita, dbo.MtzProgrammata.isFermo, dbo.MtzProgrammata.idxTipo, dbo.AnagTipoGuasto.descrTipo +FROM dbo.MtzProgrammata INNER JOIN + dbo.AnagMacchine ON dbo.MtzProgrammata.idxMacchina = dbo.AnagMacchine.idxMacchina INNER JOIN + dbo.AnagFrequenze ON dbo.MtzProgrammata.codFrequenza = dbo.AnagFrequenze.codFrequenza INNER JOIN + dbo.AnagPriorita ON dbo.MtzProgrammata.idxPriorita = dbo.AnagPriorita.idxPriorita INNER JOIN + dbo.AnagTipoGuasto ON dbo.MtzProgrammata.idxTipo = dbo.AnagTipoGuasto.idxTipo +GO + +EXEC sp_addextendedproperty 'MS_DiagramPane1', '[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00] +Begin DesignProperties = + Begin PaneConfigurations = + Begin PaneConfiguration = 0 + NumPanes = 4 + Configuration = "(H (1[40] 4[20] 2[20] 3) )" + End + Begin PaneConfiguration = 1 + NumPanes = 3 + Configuration = "(H (1 [50] 4 [25] 3))" + End + Begin PaneConfiguration = 2 + NumPanes = 3 + Configuration = "(H (1 [50] 2 [25] 3))" + End + Begin PaneConfiguration = 3 + NumPanes = 3 + Configuration = "(H (4 [30] 2 [40] 3))" + End + Begin PaneConfiguration = 4 + NumPanes = 2 + Configuration = "(H (1 [56] 3))" + End + Begin PaneConfiguration = 5 + NumPanes = 2 + Configuration = "(H (2 [66] 3))" + End + Begin PaneConfiguration = 6 + NumPanes = 2 + Configuration = "(H (4 [50] 3))" + End + Begin PaneConfiguration = 7 + NumPanes = 1 + Configuration = "(V (3))" + End + Begin PaneConfiguration = 8 + NumPanes = 3 + Configuration = "(H (1[56] 4[18] 2) )" + End + Begin PaneConfiguration = 9 + NumPanes = 2 + Configuration = "(H (1 [75] 4))" + End + Begin PaneConfiguration = 10 + NumPanes = 2 + Configuration = "(H (1[66] 2) )" + End + Begin PaneConfiguration = 11 + NumPanes = 2 + Configuration = "(H (4 [60] 2))" + End + Begin PaneConfiguration = 12 + NumPanes = 1 + Configuration = "(H (1) )" + End + Begin PaneConfiguration = 13 + NumPanes = 1 + Configuration = "(V (4))" + End + Begin PaneConfiguration = 14 + NumPanes = 1 + Configuration = "(V (2))" + End + ActivePaneConfig = 0 + End + Begin DiagramPane = + Begin Origin = + Top = 0 + Left = 0 + End + Begin Tables = + Begin Table = "MtzProgrammata" + Begin Extent = + Top = 6 + Left = 38 + Bottom = 275 + Right = 189 + End + DisplayFlags = 280 + TopColumn = 0 + End + Begin Table = "AnagMacchine" + Begin Extent = + Top = 6 + Left = 227 + Bottom = 114 + Right = 378 + End + DisplayFlags = 280 + TopColumn = 0 + End + Begin Table = "AnagFrequenze" + Begin Extent = + Top = 6 + Left = 416 + Bottom = 84 + Right = 567 + End + DisplayFlags = 280 + TopColumn = 0 + End + Begin Table = "AnagPriorita" + Begin Extent = + Top = 6 + Left = 605 + Bottom = 99 + Right = 756 + End + DisplayFlags = 280 + TopColumn = 0 + End + Begin Table = "AnagTipoGuasto" + Begin Extent = + Top = 6 + Left = 794 + Bottom = 84 + Right = 945 + End + DisplayFlags = 280 + TopColumn = 0 + End + End + End + Begin SQLPane = + End + Begin DataPane = + Begin ParameterDefaults = "" + End + Begin ColumnWidths = 15 + Width = 284 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width ', 'SCHEMA', 'dbo', 'VIEW', 'v_mtzProgExp' +GO + +EXEC sp_addextendedproperty 'MS_DiagramPane2', '= 1500 + Width = 1500 + End + End + Begin CriteriaPane = + Begin ColumnWidths = 11 + Column = 1440 + Alias = 900 + Table = 1170 + Output = 720 + Append = 1400 + NewValue = 1170 + SortType = 1350 + SortOrder = 1410 + GroupBy = 1350 + Filter = 1350 + Or = 1350 + Or = 1350 + Or = 1350 + End + End +End +', 'SCHEMA', 'dbo', 'VIEW', 'v_mtzProgExp' +GO + +EXEC sp_addextendedproperty 'MS_DiagramPaneCount', 2, 'SCHEMA', 'dbo', 'VIEW', 'v_mtzProgExp' +GO + +COMMIT +GO + + +SET xact_abort ON +GO + +BEGIN TRANSACTION +GO + +SET ANSI_NULLS ON +GO + +CREATE VIEW v_elencoImpiantiMacchine +AS +SELECT dbo.AnagImpianti.codImpianto, dbo.AnagImpianti.nomeImpianto, dbo.AnagImpianti.tipoImpianto, dbo.AnagMacchine.codMacchina, dbo.AnagMacchine.nomeMacchina, + dbo.AnagMacchine.modello, ISNULL(dbo.AnagMacchine.matricola, 'n.d.') AS matricola, dbo.AnagMacchine.anno, dbo.AnagMacchine.kgPeso, + dbo.AnagMacchine.kwConsumo +FROM dbo.AnagImpianti INNER JOIN + dbo.AnagMacchine ON dbo.AnagImpianti.idxImpianto = dbo.AnagMacchine.idxImpianto +GO + +EXEC sp_addextendedproperty 'MS_DiagramPane1', '[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00] +Begin DesignProperties = + Begin PaneConfigurations = + Begin PaneConfiguration = 0 + NumPanes = 4 + Configuration = "(H (1[40] 4[20] 2[20] 3) )" + End + Begin PaneConfiguration = 1 + NumPanes = 3 + Configuration = "(H (1 [50] 4 [25] 3))" + End + Begin PaneConfiguration = 2 + NumPanes = 3 + Configuration = "(H (1 [50] 2 [25] 3))" + End + Begin PaneConfiguration = 3 + NumPanes = 3 + Configuration = "(H (4 [30] 2 [40] 3))" + End + Begin PaneConfiguration = 4 + NumPanes = 2 + Configuration = "(H (1 [56] 3))" + End + Begin PaneConfiguration = 5 + NumPanes = 2 + Configuration = "(H (2 [66] 3))" + End + Begin PaneConfiguration = 6 + NumPanes = 2 + Configuration = "(H (4 [50] 3))" + End + Begin PaneConfiguration = 7 + NumPanes = 1 + Configuration = "(V (3))" + End + Begin PaneConfiguration = 8 + NumPanes = 3 + Configuration = "(H (1[56] 4[18] 2) )" + End + Begin PaneConfiguration = 9 + NumPanes = 2 + Configuration = "(H (1 [75] 4))" + End + Begin PaneConfiguration = 10 + NumPanes = 2 + Configuration = "(H (1[66] 2) )" + End + Begin PaneConfiguration = 11 + NumPanes = 2 + Configuration = "(H (4 [60] 2))" + End + Begin PaneConfiguration = 12 + NumPanes = 1 + Configuration = "(H (1) )" + End + Begin PaneConfiguration = 13 + NumPanes = 1 + Configuration = "(V (4))" + End + Begin PaneConfiguration = 14 + NumPanes = 1 + Configuration = "(V (2))" + End + ActivePaneConfig = 0 + End + Begin DiagramPane = + Begin Origin = + Top = 0 + Left = 0 + End + Begin Tables = + Begin Table = "AnagImpianti" + Begin Extent = + Top = 6 + Left = 38 + Bottom = 171 + Right = 189 + End + DisplayFlags = 280 + TopColumn = 0 + End + Begin Table = "AnagMacchine" + Begin Extent = + Top = 6 + Left = 227 + Bottom = 207 + Right = 378 + End + DisplayFlags = 280 + TopColumn = 0 + End + End + End + Begin SQLPane = + End + Begin DataPane = + Begin ParameterDefaults = "" + End + Begin ColumnWidths = 11 + Width = 284 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + End + End + Begin CriteriaPane = + Begin ColumnWidths = 11 + Column = 1440 + Alias = 900 + Table = 1170 + Output = 720 + Append = 1400 + NewValue = 1170 + SortType = 1350 + SortOrder = 1410 + GroupBy = 1350 + Filter = 1350 + Or = 1350 + Or = 1350 + Or = 1350 + End + End +End +', 'SCHEMA', 'dbo', 'VIEW', 'v_elencoImpiantiMacchine' +GO + +EXEC sp_addextendedproperty 'MS_DiagramPaneCount', 1, 'SCHEMA', 'dbo', 'VIEW', 'v_elencoImpiantiMacchine' +GO + +CREATE VIEW v_elencoIntervFilt +AS +SELECT TOP (100) PERCENT dbo.InterventiMtz.numIntMtz, dbo.InterventiMtz.richiesta, dbo.AnagImpianti.codImpianto, dbo.AnagImpianti.nomeImpianto, + dbo.AnagMacchine.codMacchina, dbo.AnagMacchine.nomeMacchina, dbo.InterventiMtz.descrizione, dbo.InterventiMtz.inizioIntervento, + dbo.InterventiMtz.fineIntervento, ISNULL(dbo.InterventiMtz.descrizioneIntervento, 'n.d. (report mtz)') AS descrizioneIntervento, ISNULL(dbo.AnagCausali.descrCausale, + 'n.d. (causale)') AS descrCausale, ISNULL(dbo.v_interventiErogati.totMinErogati / 60, 0) AS minErogati, ISNULL(DATEDIFF(hour, dbo.InterventiMtz.inizioIntervento, + dbo.InterventiMtz.fineIntervento), 0) AS durataMtz, ISNULL(DATEDIFF(hour, dbo.InterventiMtz.guasto, dbo.InterventiMtz.fineIntervento), 0) AS durataOff, + dbo.InterventiMtz.guasto, dbo.InterventiMtz.idxStato, dbo.InterventiMtz.idxImpianto, dbo.InterventiMtz.idxMacchina +FROM dbo.InterventiMtz INNER JOIN + dbo.AnagAmbitoGuasto ON dbo.InterventiMtz.idxAmbito = dbo.AnagAmbitoGuasto.idxAmbito INNER JOIN + dbo.AnagImpianti ON dbo.InterventiMtz.idxImpianto = dbo.AnagImpianti.idxImpianto INNER JOIN + dbo.AnagMacchine ON dbo.InterventiMtz.idxMacchina = dbo.AnagMacchine.idxMacchina INNER JOIN + dbo.AnagTipoGuasto ON dbo.InterventiMtz.idxTipo = dbo.AnagTipoGuasto.idxTipo INNER JOIN + dbo.AnagPriorita ON dbo.InterventiMtz.idxPriorita = dbo.AnagPriorita.idxPriorita INNER JOIN + dbo.AnagStati ON dbo.InterventiMtz.idxStato = dbo.AnagStati.idxStato LEFT OUTER JOIN + dbo.v_interventiErogati ON dbo.InterventiMtz.numIntMtz = dbo.v_interventiErogati.numIntMtz LEFT OUTER JOIN + dbo.AnagCausali ON dbo.InterventiMtz.idxCausale = dbo.AnagCausali.idxCausale +ORDER BY dbo.InterventiMtz.numIntMtz DESC +GO + +EXEC sp_addextendedproperty 'MS_DiagramPane1', '[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00] +Begin DesignProperties = + Begin PaneConfigurations = + Begin PaneConfiguration = 0 + NumPanes = 4 + Configuration = "(H (1[40] 4[20] 2[20] 3) )" + End + Begin PaneConfiguration = 1 + NumPanes = 3 + Configuration = "(H (1 [50] 4 [25] 3))" + End + Begin PaneConfiguration = 2 + NumPanes = 3 + Configuration = "(H (1 [50] 2 [25] 3))" + End + Begin PaneConfiguration = 3 + NumPanes = 3 + Configuration = "(H (4 [30] 2 [40] 3))" + End + Begin PaneConfiguration = 4 + NumPanes = 2 + Configuration = "(H (1 [56] 3))" + End + Begin PaneConfiguration = 5 + NumPanes = 2 + Configuration = "(H (2 [66] 3))" + End + Begin PaneConfiguration = 6 + NumPanes = 2 + Configuration = "(H (4 [50] 3))" + End + Begin PaneConfiguration = 7 + NumPanes = 1 + Configuration = "(V (3))" + End + Begin PaneConfiguration = 8 + NumPanes = 3 + Configuration = "(H (1[56] 4[18] 2) )" + End + Begin PaneConfiguration = 9 + NumPanes = 2 + Configuration = "(H (1 [75] 4))" + End + Begin PaneConfiguration = 10 + NumPanes = 2 + Configuration = "(H (1[66] 2) )" + End + Begin PaneConfiguration = 11 + NumPanes = 2 + Configuration = "(H (4 [60] 2))" + End + Begin PaneConfiguration = 12 + NumPanes = 1 + Configuration = "(H (1) )" + End + Begin PaneConfiguration = 13 + NumPanes = 1 + Configuration = "(V (4))" + End + Begin PaneConfiguration = 14 + NumPanes = 1 + Configuration = "(V (2))" + End + ActivePaneConfig = 0 + End + Begin DiagramPane = + Begin Origin = + Top = -23 + Left = 0 + End + Begin Tables = + Begin Table = "InterventiMtz" + Begin Extent = + Top = 8 + Left = 486 + Bottom = 354 + Right = 671 + End + DisplayFlags = 280 + TopColumn = 0 + End + Begin Table = "AnagAmbitoGuasto" + Begin Extent = + Top = 11 + Left = 82 + Bottom = 89 + Right = 255 + End + DisplayFlags = 280 + TopColumn = 0 + End + Begin Table = "AnagImpianti" + Begin Extent = + Top = 123 + Left = 219 + Bottom = 231 + Right = 370 + End + DisplayFlags = 280 + TopColumn = 0 + End + Begin Table = "AnagMacchine" + Begin Extent = + Top = 190 + Left = 826 + Bottom = 298 + Right = 977 + End + DisplayFlags = 280 + TopColumn = 0 + End + Begin Table = "AnagTipoGuasto" + Begin Extent = + Top = 90 + Left = 1143 + Bottom = 168 + Right = 1294 + End + DisplayFlags = 280 + TopColumn = 0 + End + Begin Table = "AnagPriorita" + Begin Extent = + Top = 23 + Left = 958 + Bottom = 116 + Right = 1109 + End + DisplayFlags = 280 + TopColumn = 0 + End + Begin Table = "AnagStati" + Begin Extent = + Top = 263 + Left = 90 + Bottom = 356 + Right = 241 + ', 'SCHEMA', 'dbo', 'VIEW', 'v_elencoIntervFilt' +GO + +EXEC sp_addextendedproperty 'MS_DiagramPane2', ' End + DisplayFlags = 280 + TopColumn = 0 + End + Begin Table = "v_interventiErogati" + Begin Extent = + Top = 3 + Left = 739 + Bottom = 81 + Right = 890 + End + DisplayFlags = 280 + TopColumn = 0 + End + Begin Table = "AnagCausali" + Begin Extent = + Top = 291 + Left = 1011 + Bottom = 369 + Right = 1162 + End + DisplayFlags = 280 + TopColumn = 0 + End + End + End + Begin SQLPane = + End + Begin DataPane = + Begin ParameterDefaults = "" + End + Begin ColumnWidths = 30 + Width = 284 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1575 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + End + End + Begin CriteriaPane = + Begin ColumnWidths = 11 + Column = 1440 + Alias = 900 + Table = 1170 + Output = 720 + Append = 1400 + NewValue = 1170 + SortType = 1350 + SortOrder = 1410 + GroupBy = 1350 + Filter = 1350 + Or = 1350 + Or = 1350 + Or = 1350 + End + End +End +', 'SCHEMA', 'dbo', 'VIEW', 'v_elencoIntervFilt' +GO + +EXEC sp_addextendedproperty 'MS_DiagramPaneCount', 2, 'SCHEMA', 'dbo', 'VIEW', 'v_elencoIntervFilt' +GO + +COMMIT +GO + + +SET xact_abort ON +GO + +BEGIN TRANSACTION +GO + +SET ANSI_NULLS ON +GO + +CREATE VIEW v_datiMTBFMTTR +AS +SELECT COUNT(numIntMtz) AS numInterventi, SUM(durataMtz) AS totOreMtz, SUM(durataOff) AS totOreOfficina, codImpianto, codMacchina, nomeImpianto, + nomeMacchina +FROM dbo.v_elencoIntervFilt +GROUP BY codImpianto, codMacchina, nomeImpianto, nomeMacchina +GO + +EXEC sp_addextendedproperty 'MS_DiagramPane1', '[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00] +Begin DesignProperties = + Begin PaneConfigurations = + Begin PaneConfiguration = 0 + NumPanes = 4 + Configuration = "(H (1[41] 4[20] 2[20] 3) )" + End + Begin PaneConfiguration = 1 + NumPanes = 3 + Configuration = "(H (1 [50] 4 [25] 3))" + End + Begin PaneConfiguration = 2 + NumPanes = 3 + Configuration = "(H (1 [50] 2 [25] 3))" + End + Begin PaneConfiguration = 3 + NumPanes = 3 + Configuration = "(H (4 [30] 2 [40] 3))" + End + Begin PaneConfiguration = 4 + NumPanes = 2 + Configuration = "(H (1 [56] 3))" + End + Begin PaneConfiguration = 5 + NumPanes = 2 + Configuration = "(H (2 [66] 3))" + End + Begin PaneConfiguration = 6 + NumPanes = 2 + Configuration = "(H (4 [50] 3))" + End + Begin PaneConfiguration = 7 + NumPanes = 1 + Configuration = "(V (3))" + End + Begin PaneConfiguration = 8 + NumPanes = 3 + Configuration = "(H (1[56] 4[18] 2) )" + End + Begin PaneConfiguration = 9 + NumPanes = 2 + Configuration = "(H (1 [75] 4))" + End + Begin PaneConfiguration = 10 + NumPanes = 2 + Configuration = "(H (1[66] 2) )" + End + Begin PaneConfiguration = 11 + NumPanes = 2 + Configuration = "(H (4 [60] 2))" + End + Begin PaneConfiguration = 12 + NumPanes = 1 + Configuration = "(H (1) )" + End + Begin PaneConfiguration = 13 + NumPanes = 1 + Configuration = "(V (4))" + End + Begin PaneConfiguration = 14 + NumPanes = 1 + Configuration = "(V (2))" + End + ActivePaneConfig = 0 + End + Begin DiagramPane = + Begin Origin = + Top = 0 + Left = 0 + End + Begin Tables = + Begin Table = "v_elencoIntervFilt" + Begin Extent = + Top = 6 + Left = 38 + Bottom = 391 + Right = 223 + End + DisplayFlags = 280 + TopColumn = 0 + End + End + End + Begin SQLPane = + End + Begin DataPane = + Begin ParameterDefaults = "" + End + Begin ColumnWidths = 9 + Width = 284 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 2235 + Width = 3210 + Width = 1500 + End + End + Begin CriteriaPane = + Begin ColumnWidths = 12 + Column = 1440 + Alias = 900 + Table = 1170 + Output = 720 + Append = 1400 + NewValue = 1170 + SortType = 1350 + SortOrder = 1410 + GroupBy = 1350 + Filter = 1350 + Or = 1350 + Or = 1350 + Or = 1350 + End + End +End +', 'SCHEMA', 'dbo', 'VIEW', 'v_datiMTBFMTTR' +GO + +EXEC sp_addextendedproperty 'MS_DiagramPaneCount', 1, 'SCHEMA', 'dbo', 'VIEW', 'v_datiMTBFMTTR' +GO + +COMMIT +GO + + + + + + + + +-- registro versione... +INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(1, GETDATE()) +GO diff --git a/Projects/WebGIM/GIM_site/sql/Applicazione/GIM_0002.sql b/Projects/WebGIM/GIM_site/sql/Applicazione/GIM_0002.sql new file mode 100644 index 0000000..69b3003 --- /dev/null +++ b/Projects/WebGIM/GIM_site/sql/Applicazione/GIM_0002.sql @@ -0,0 +1,991 @@ +/**************************************************************** +* SteamWare s.r.l. +* +* Setup iniziale DB WebGIM con valorizzazione valori di default +* +* modificato: 2009-01-13 S.E.L. +* +****************************************************************/ + +SET xact_abort ON +GO + +BEGIN TRANSACTION +GO + +SET IDENTITY_INSERT dbo.AnagAmbitoGuasto ON +GO + +INSERT INTO dbo.AnagAmbitoGuasto + (idxAmbito, descrAmbitoGuasto) + VALUES (1, N'non definito') +INSERT INTO dbo.AnagAmbitoGuasto + (idxAmbito, descrAmbitoGuasto) + VALUES (2, N'usura') +INSERT INTO dbo.AnagAmbitoGuasto + (idxAmbito, descrAmbitoGuasto) + VALUES (3, N'accidentale - urti') +INSERT INTO dbo.AnagAmbitoGuasto + (idxAmbito, descrAmbitoGuasto) + VALUES (4, N'set-up') +INSERT INTO dbo.AnagAmbitoGuasto + (idxAmbito, descrAmbitoGuasto) + VALUES (5, N'rottura inserto') +INSERT INTO dbo.AnagAmbitoGuasto + (idxAmbito, descrAmbitoGuasto) + VALUES (6, N'mancanza energia') +INSERT INTO dbo.AnagAmbitoGuasto + (idxAmbito, descrAmbitoGuasto) + VALUES (7, N'Mtz programmata') +INSERT INTO dbo.AnagAmbitoGuasto + (idxAmbito, descrAmbitoGuasto) + VALUES (8, N'errata programmazione') +INSERT INTO dbo.AnagAmbitoGuasto + (idxAmbito, descrAmbitoGuasto) + VALUES (9, N'pulizia') +GO + +SET IDENTITY_INSERT dbo.AnagAmbitoGuasto OFF +GO + +COMMIT TRANSACTION +GO + +SET xact_abort ON +GO + +BEGIN TRANSACTION +GO + +INSERT INTO dbo.AnagEventi + VALUES (1, N'Presa in carico') +INSERT INTO dbo.AnagEventi + VALUES (2, N'Conclusione intervento') +INSERT INTO dbo.AnagEventi + VALUES (3, N'Annullamento intervento') +GO + +COMMIT TRANSACTION +GO + + +SET xact_abort ON +GO + +BEGIN TRANSACTION +GO + +SET IDENTITY_INSERT dbo.AnagFamMacchine ON +GO + +INSERT INTO dbo.AnagFamMacchine + (idxFamMacchine, nomeFamMacch) + VALUES (1, N'Tornitrici MonoMandrino') +INSERT INTO dbo.AnagFamMacchine + (idxFamMacchine, nomeFamMacch) + VALUES (2, N'Foratrici') +INSERT INTO dbo.AnagFamMacchine + (idxFamMacchine, nomeFamMacch) + VALUES (3, N'Lappatrici') +INSERT INTO dbo.AnagFamMacchine + (idxFamMacchine, nomeFamMacch) + VALUES (4, N'Impianto Elettrico') +INSERT INTO dbo.AnagFamMacchine + (idxFamMacchine, nomeFamMacch) + VALUES (5, N'Impianto Pneumatico') +INSERT INTO dbo.AnagFamMacchine + (idxFamMacchine, nomeFamMacch) + VALUES (6, N'Impianto Idraulico') +INSERT INTO dbo.AnagFamMacchine + (idxFamMacchine, nomeFamMacch) + VALUES (7, N'Raccolta sfrido') +GO + +SET IDENTITY_INSERT dbo.AnagFamMacchine OFF +GO + +COMMIT TRANSACTION +GO + + +SET xact_abort ON +GO + +BEGIN TRANSACTION +GO + +SET IDENTITY_INSERT dbo.AnagImpianti ON +GO + +INSERT INTO dbo.AnagImpianti + (idxImpianto, codImpianto, nomeImpianto, tipoImpianto, funzDal, funzAl) + VALUES (1, N'MTZ', N'Manutenzione', N'VIRTUALE', '1900-01-01 00:00:00.000', '2100-12-31 00:00:00.000') +INSERT INTO dbo.AnagImpianti + (idxImpianto, codImpianto, nomeImpianto, tipoImpianto, funzDal, funzAl) + VALUES (2, N'STRUM', N'Strumenti di misura /Controllo', N'VIRTUALE', '1900-01-01 00:00:00.000', '2100-12-31 00:00:00.000') +INSERT INTO dbo.AnagImpianti + (idxImpianto, codImpianto, nomeImpianto, tipoImpianto, funzDal, funzAl) + VALUES (3, N'TORN', N'Tornitura', N'Reparto', '2009-01-01 00:00:00.000', '2018-12-31 00:00:00.000') +INSERT INTO dbo.AnagImpianti + (idxImpianto, codImpianto, nomeImpianto, tipoImpianto, funzDal, funzAl) + VALUES (4, N'DEN', N'Dentatura', N'Reparto', '2009-01-01 00:00:00.000', '2018-12-31 00:00:00.000') +INSERT INTO dbo.AnagImpianti + (idxImpianto, codImpianto, nomeImpianto, tipoImpianto, funzDal, funzAl) + VALUES (5, N'DENGLE', N'Dentatura Gleason', N'Reparto', '2009-01-01 00:00:00.000', '2018-12-31 00:00:00.000') +INSERT INTO dbo.AnagImpianti + (idxImpianto, codImpianto, nomeImpianto, tipoImpianto, funzDal, funzAl) + VALUES (6, N'CLAV', N'Centri di lavoro', N'Reparto', '1900-01-01 00:00:00.000', '2100-12-31 00:00:00.000') +INSERT INTO dbo.AnagImpianti + (idxImpianto, codImpianto, nomeImpianto, tipoImpianto, funzDal, funzAl) + VALUES (7, N'CTS', N'Centratura Intestatura / Taglio Seghetti', N'Reparto', '1900-01-01 00:00:00.000', '2100-12-31 00:00:00.000') +INSERT INTO dbo.AnagImpianti + (idxImpianto, codImpianto, nomeImpianto, tipoImpianto, funzDal, funzAl) + VALUES (8, N'TRA', N'Trapani', N'Reparto', '1900-01-01 00:00:00.000', '2100-12-31 00:00:00.000') +INSERT INTO dbo.AnagImpianti + (idxImpianto, codImpianto, nomeImpianto, tipoImpianto, funzDal, funzAl) + VALUES (9, N'SBA', N'Sbavatrici', N'Reparto', '1900-01-01 00:00:00.000', '2100-12-31 00:00:00.000') +INSERT INTO dbo.AnagImpianti + (idxImpianto, codImpianto, nomeImpianto, tipoImpianto, funzDal, funzAl) + VALUES (10, N'REINT', N'Rettifiche Interne', N'Reparto', '1900-01-01 00:00:00.000', '2100-12-31 00:00:00.000') +INSERT INTO dbo.AnagImpianti + (idxImpianto, codImpianto, nomeImpianto, tipoImpianto, funzDal, funzAl) + VALUES (11, N'REEXT', N'Rettifiche Esterne', N'Reparto', '1900-01-01 00:00:00.000', '2100-12-31 00:00:00.000') +INSERT INTO dbo.AnagImpianti + (idxImpianto, codImpianto, nomeImpianto, tipoImpianto, funzDal, funzAl) + VALUES (12, N'TORFIN', N'Tornitura Finitura', N'Reparto', '1900-01-01 00:00:00.000', '2100-12-31 00:00:00.000') +INSERT INTO dbo.AnagImpianti + (idxImpianto, codImpianto, nomeImpianto, tipoImpianto, funzDal, funzAl) + VALUES (13, N'REDENT', N'Rettifiche Denti', N'Reparto', '1900-01-01 00:00:00.000', '2100-12-31 00:00:00.000') +INSERT INTO dbo.AnagImpianti + (idxImpianto, codImpianto, nomeImpianto, tipoImpianto, funzDal, funzAl) + VALUES (14, N'LOG', N'Logistica', N'VIRTUALE', '1900-01-01 00:00:00.000', '2100-12-31 00:00:00.000') +INSERT INTO dbo.AnagImpianti + (idxImpianto, codImpianto, nomeImpianto, tipoImpianto, funzDal, funzAl) + VALUES (15, N'IMP', N'Impianti e Servizi', N'VIRTUALE', '1900-01-01 00:00:00.000', '2100-12-31 00:00:00.000') +INSERT INTO dbo.AnagImpianti + (idxImpianto, codImpianto, nomeImpianto, tipoImpianto, funzDal, funzAl) + VALUES (16, N'SI', N'Sistemi Informatici', N'VIRTUALE', '1900-01-01 00:00:00.000', '2100-12-31 00:00:00.000') +GO + +SET IDENTITY_INSERT dbo.AnagImpianti OFF +GO + +COMMIT TRANSACTION +GO + + +SET xact_abort ON +GO + +BEGIN TRANSACTION +GO + +SET IDENTITY_INSERT dbo.AnagMacchine ON +GO + +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (3, 7, N'--SE/1', N'Segatrice a nastro', N'DAITO GA 260 W', NULL, 1988, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (4, 7, N'--SE/2', N'Segatrice a nastro', N'DAITO GA 260 W', NULL, 1988, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (5, 3, N'--EM/7', N'Tornio verticale CN con caricatore', N'EMAG VSC 7', NULL, 2007, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (6, 3, N'--DT20', N'Tornio a 2 teste CN con portale (isola LP1)', N'MAZAK DT20', NULL, 2005, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (7, 3, N'EM3152', N'Tornio verticale CN con caricatore', N'EMAG VSC 315', NULL, 2005, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (8, 3, N'-EM400', N'Tornio verticale CN con caricatore', N'EMAG VSC 400', NULL, 1999, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (9, 3, N'MT5003', N'Tornio CN con portale', N'GRAZIANO MT500 CNC', NULL, 1998, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (10, 3, N'-EM315', N'Tornio verticale CN con caricatore', N'EMAG VSC 315', NULL, 1997, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (11, 3, N'---PDF', N'Tornio frontale a 2 teste CN', N'PITTLER 200 CNC PDF', NULL, 1995, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (12, 3, N'MT5002', N'Tornio CN con portale', N'GRAZIANO MT500 CNC', NULL, 1995, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (13, 3, N'-MT500', N'Tornio CN con portale', N'GRAZIANO MT500 CNC', NULL, 1994, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (14, 3, N'--P200', N'Tornio frontale a 2 teste CN con robot', N'PITTLER 200 CNC PETRA 1', NULL, 1989, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (15, 3, N'-OK165', N'Tornio frontale a 2 teste CN', N'OKUMA 165 CNC', NULL, 1989, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (16, 3, N'--P315', N'Tornio frontale a 2 teste CN', N'PITTLER 315 CNC PETRA 2', NULL, 1988, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (17, 3, N'--P250', N'Tornio frontale a 2 teste CN con robot', N'PITTLER 250 CNC PETRA 1', NULL, 1987, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (18, 3, N'--TP/1', N'Tornio parallelo', N'CMT URSUS 225', NULL, 1980, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (19, 3, N'--TP/2', N'Tornio parallelo', N'CMT URSUS 225', NULL, 1985, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (20, 3, N'-FELSO', N'Tornio verticale CN a 2 teste con caricatore', N'FELSOMAT FZ350', NULL, 2008, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (21, 8, N'-TMB/1', N'Trapano multiplo', N'BERARDI VB II Z', NULL, 1980, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (22, 8, N'-TMB/2', N'Trapano multiplo', N'BERARDI VB II Z', NULL, 1980, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (23, 8, N'---TMO', N'Trapano multiplo', N'OLIVETTI', NULL, 1978, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (24, 8, N'----TO', N'Trapano', N'OLIVETTI', NULL, 1975, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (25, 1, N'RECORD', N'Maschiatrice', N'RECORD', NULL, 1993, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (26, 1, N'---MJN', N'Maschiatrice', N'JOANNES', NULL, 1978, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (27, 1, N'--BV25', N'Brocciatrice', N'VARINELLI 1320', NULL, 1981, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (28, 1, N'--BMV6', N'Brocciatrice', N'VARINELLI 1600', NULL, 1980, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (29, 9, N'--GR/5', N'Sbavatrice GR/5', N'MPM SAG50/PN', NULL, 1978, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (30, 9, N'--GR/4', N'Sbavatrice GR/4', N'MINITOOLS MT600', NULL, 1990, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (31, 9, N'--GR/7', N'Smussatrice GR/7', N'RAVAGLIA', NULL, 2005, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (32, 9, N'--GR/8', N'Smussatrice GR/8', N'RAVAGLIA', NULL, 2005, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (33, 9, N'--GR/3', N'Sbavatrice GR/3', N'MPM', NULL, 1988, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (34, 9, N'N/D', N'Sbavatrice (in Isola LP1)', N'SAMPUTENSILI ', NULL, 2004, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (35, 9, N'---SCT', N'Sbavatrice', N'SAMPUTENSILI SCT3', NULL, 1998, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (36, 9, N'--GR/1', N'Sbavatrice GR/1', N'GRATOMAT KGG533', NULL, 1979, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (37, 9, N'--GR/2', N'Sbavatrice GR/2', N'GRATOMAT 300L', NULL, 1989, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (38, 6, N'-V5005', N'Centro di lavoro CN', N'DOOSAN VC500', NULL, NULL, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (39, 6, N'-V5004', N'Centro di lavoro CN', N'DOOSAN VC500', NULL, NULL, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (40, 6, N'--V500', N'Centro di lavoro CN', N'DAEWOO ACE VC500', NULL, NULL, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (41, 6, N'-V5002', N'Centro di lavoro CN', N'DAEWOO ACE VC500', NULL, NULL, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (42, 6, N'-V5003', N'Centro di lavoro CN', N'DAEWOO ACE VC500', NULL, NULL, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (43, 6, N'--V400', N'Centro di lavoro CN', N'DAEWOO ACE V400', NULL, 1998, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (44, 1, N'----MK', N'Fresatrice CN', N'MIKRON WF 31 CNC', NULL, 1989, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (45, 6, N'--V650', N'Centro di lavoro CN', N'DOOSAN MYNX 650', NULL, 2008, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (46, 4, N'-GP20A', N'Dentatrice a creatore CN con caricatore', N'GLEASON PFAUTER GP 200', NULL, 2005, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (47, 4, N'P180/1', N'Dentatrice a creatore CN con caricatore', N'PFAUTER PA 180 CNC', NULL, 2001, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (48, 4, N'P300/1', N'Dentatrice a creatore CN con caricatore', N'PFAUTER PE 300 CNC', NULL, 1997, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (49, 4, N'P250/1', N'Dentatrice a creatore CN con caricatore', N'PFAUTER PE 250 CNC', NULL, 1995, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (50, 4, N'H280C1', N'Dentatrice a creatore CN con caricatore', N'HURTH WF 280', NULL, 1988, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (51, 4, N'H280/1', N'Dentatrice a creatore', N'HURTH WF 280', NULL, 1983, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (52, 4, N'P160/1', N'Dentatrice a creatore CNC', N'PFAUTER P160 H/11', NULL, 1990, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (53, 4, N'P160H1', N'Dentatrice a creatore', N'PFAUTER P160 H/11', NULL, 1983, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (54, 4, N'P403/1', N'Dentatrice a creatore', N'PFAUTER P403', NULL, 1983, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (55, 4, N'P630/1', N'Dentatrice a creatore CNC', N'PFAUTER P630', NULL, 2005, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (56, 4, N'P400/1', N'Dentatrice a creatore', N'PFAUTER P400', NULL, 1972, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (57, 4, N'--LS/2', N'Dentatrice a stozzare con robot', N'LORENZ LS 200', NULL, 2001, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (58, 4, N'-SNJ/3', N'Dentatrice a stozzare', N'LORENZ SNJ 5 AUTO', NULL, 2001, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (59, 4, N'--LS/1', N'Dentatrice a stozzare', N'LORENZ LS 302', NULL, 1986, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (60, 4, N'-SN4/2', N'Dentatrice a stozzare', N'LORENZ SN 4', NULL, 1969, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (61, 4, N'-SNJ/1', N'Dentatrice a stozzare', N'LORENZ SNJ 5', NULL, 1962, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (62, 4, N'-SNJ/2', N'Dentatrice a stozzare', N'LORENZ SNJ 5', NULL, 1962, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (63, 11, N'STU1/1', N'Rettifica per esterni CN con caricatore (isol', N'STUDER ECO 1000', NULL, 2003, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (64, 11, N'K175/1', N'Rettifica per esterni CN', N'KELLENBERGER R 175 CN', NULL, 1988, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (65, 11, N'K175/2', N'Rettifica per esterni CN', N'KELLENBERGER R 175 CN', NULL, 1994, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (66, 11, N'--K125', N'Rettifica per esterni', N'KELLENBERGER R 125', NULL, 1987, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (67, 11, N'TA1018', N'Rettifica per esterni', N'TACCHELLA UM 1018', NULL, 1986, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (68, 11, N'-TA612', N'Rettifica per esterni', N'TACCHELLA UN 612', NULL, 1986, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (69, 1, N'-RE12K', N'Rettifica per alberi scanalati CN', N'F.W. REFORM KSA 1200 CN', NULL, 1990, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (70, 1, N'--RIT4', N'Rettifica per innesti', N'TACCHELLA 4 AM', NULL, 1986, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (71, 1, N'----FV', N'Rettifica piani a tavola rotante', N'FAVRETTO MR 75 CN', NULL, 1988, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (72, 1, N'----RC', N'Rettifica centri', N'TECHNICA ZSM 6-5100-810', NULL, 1994, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (73, 1, N'N/D', N'Rettifica filetti', N'REISHAUER US', NULL, 1981, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (74, 1, N'-RFMSO', N'Rettifica filetti', N'MSO GA-2', NULL, 1979, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (75, 1, N'N/D', N'Affilatrice per creatori rettifica filetti', N'REISHAUER US', NULL, 1981, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (76, 10, N'--VM40', N'Rettifica per interni CN', N'VOUMARD 403 Y CN', NULL, 2003, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (77, 10, N'--VM15', N'Rettifica per interni CN', N'VOUMARD 150 CNC', NULL, 2002, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (78, 10, N'--VM5N', N'Rettifica per interni CN', N'VOUMARD 5N CN', NULL, 1999, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (79, 10, N'-MRE44', N'Rettifica per interni CN', N'MORARA 700 CN', NULL, 1989, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (80, 10, N'--MRIE', N'Rettifica per interni CN', N'MORARA MICRO I-E CN', NULL, 1987, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (81, 10, N'-VM5/1', N'Rettifica per interni', N'VOUMARD 5A', NULL, 1978, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (82, 10, N'-VM5/2', N'Rettifica per interni', N'VOUMARD 5A', NULL, 1979, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (83, 10, N'-VM5/3', N'Rettifica per interni', N'VOUMARD 5A', NULL, 1980, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (84, 10, N'-IC2MC', N'Rettifica per interni CN (in isola LP2)', N'MORARA I/C 2M', NULL, 2005, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (85, 1, N'--SN/2', N'Lappatrice (in isola LP2)', N'SUNNEN ML-2000', NULL, 2005, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (86, 1, N'----SN', N'Lappatrice', N'SUNNEN MBB1680A', NULL, 1983, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (87, 1, N'-RZ400', N'Rettifica denti CN con robot', N'REISHAUER RZ 400', NULL, 2005, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (88, 1, N'RZ4002', N'Rettifica denti CN con robot', N'REISHAUER RZ 400', NULL, 2006, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (89, 1, N'RZ4003', N'Rettifica denti CN con robot', N'REISHAUER RZ 400', NULL, 2008, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (90, 1, N'-RZ150', N'Rettifica denti CN con robot', N'REISHAUER RZ 150', NULL, 2003, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (91, 1, N'-RZ362', N'Rettifica denti CN ', N'REISHAUER RZ 362 A', NULL, 1997, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (92, 1, N'RZ362C', N'Rettifica denti CN ', N'REISHAUER RZ 362 A', NULL, 1998, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (93, 1, N'RZ362P', N'Rettifica denti CN ', N'REISHAUER RZ 362 A', NULL, 2000, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (94, 1, N'--RZ/2', N'Rettifica denti elettronica', N'REISHAUER RZ 300 E', NULL, 1996, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (95, 1, N'-RZ820', N'Rettifica denti CN', N'REISHAUER RZ 820 CN', NULL, 1995, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (96, 1, N'--RZAS', N'Rettifica denti CN', N'REISHAUER RZ 301 AS CN', NULL, 1994, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (97, 1, N'---RZS', N'Rettifica denti CN', N'REISHAUER RZ 301 S CN', NULL, 1989, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (98, 1, N'----ZB', N'Rettifica denti', N'REISHAUER ZB', NULL, 1979, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (99, 1, N'-H20BU', N'Bilanciatrice CN', N'SCHENCK H280BU', NULL, 1998, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (100, 1, N'N/D', N'Lavatrice', N'CEMASTIR TURBO LC1000', NULL, 0, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (101, 1, N'----GB', N'Raddrizzatrice', N'GALDABINI RPRS/25', NULL, 1970, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (102, 1, N'N/D', N'Diamantatrici per mole', N'REISHAUER AM10', NULL, 1987, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (103, 1, N'N/D', N'Diamantatrici per mole', N'REISHAUER AM10', NULL, 1987, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (104, 1, N'N/D', N'Bilanciatrice per mole', N'HOFFMAN', NULL, 0, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (105, 1, N'--PR/2', N'Macchina piantaggio spine Mercedes Z92', N'NUOVA VAEP MA0079', NULL, 2006, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (106, 1, N'--PR/3', N'Macchina piantaggio spine Mercedes Z46', N'SOMASCHINI', NULL, 0, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (107, 1, N'---STR', N'Punzonatrice a rullare', N'SOMAUT', NULL, 0, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (108, 1, N'--ST/1', N'Punzonatrice', N'AUTOMATOR', NULL, 0, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (109, 1, N'--ST/2', N'Punzonatrice', N'AUTOMATOR', NULL, 0, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (110, 1, N'--PRCM', N'Pressa', N'CMP T150', NULL, 1999, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (111, 1, N'----PR', N'Pressa', N'OMCN 161/R T40', NULL, 0, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (112, 1, N'N/D', N'Arrotondatrice per dentature', N'PICCO K15', NULL, 1980, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (113, 1, N'N/D', N'Dentatrice a creatore', N'PFAUTER RS9 KS', NULL, 1972, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (114, 1, N'N/D', N'Dentatrice conica spirale CN', N'GLEASON G175 CNC', NULL, NULL, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (115, 1, N'N/D', N'Dentatrice conica spirale CN', N'GLEASON 116 CNC', NULL, NULL, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (116, 1, N'N/D', N'Dentatrice conica spirale', N'GLEASON 106', NULL, 1989, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (117, 1, N'N/D', N'Lappatrice per coppie coniche Gleason', N'GLEASON LAPPER 503', NULL, 1998, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (118, 1, N'N/D', N'Lappatrice per coppie coniche Gleason', N'GLEASON LAPPER 119 HYPOID', NULL, NULL, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (119, 1, N'N/D', N'Lappatrice per coppie coniche Gleason', N'GLEASON LAPPER 6"', NULL, 0, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (120, 2, N'N/D', N'Tester di controllo coppie coniche Gleason', N'TESTER 6"', NULL, NULL, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (121, 2, N'N/D', N'Tester di controllo coppie coniche Gleason', N'TESTER 17A', NULL, NULL, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (122, 2, N'N/D', N'Tester di controllo coppie coniche Gleason', N'TESTER 502', NULL, NULL, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (123, 2, N'N/D', N'Tester di controllo coppie coniche Gleason', N'TESTER 13', NULL, 1985, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (124, 11, N'N/D', N'Rettifica per esterni', N'MSO FH 300x500', NULL, NULL, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (125, 2, N'N/D', N'Centro CN di misurazione 3D', N'ZEISS PRISMO 9/12/7', NULL, 1998, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (126, 2, N'N/D', N'Centro CN di misurazione ingr.', N'HÖFLER ZP 630 CN', NULL, 1996, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (127, 2, N'N/D', N'Centro CN di misurazione ingr.', N'HÖFLER EMZ 632 CN', NULL, 1990, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (128, 2, N'N/D', N'Ingranometro', N'HÖFLER ZW630 CN', NULL, 1995, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (129, 2, N'N/D', N'Macchina prova rumorosità', N'HURTH ZP 300', NULL, NULL, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (130, 2, N'N/D', N'Rugosimetro', N'PERTHEN S5P', NULL, NULL, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (131, 2, N'N/D', N'Durometro', N'WOLPERT DIA-TESTOR 1551', NULL, 1995, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (132, 2, N'N/D', N'Durometro', N'REICHERTER', NULL, 0, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (133, 2, N'N/D', N'Durometro', N'GALILEO', NULL, 0, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (134, 2, N'N/D', N'Proiettore di profili', N'HAUSER', NULL, 0, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (135, 2, N'N/D', N'Apparecchio altimetro digitale con controp.', N'DIGIMAR 817C', NULL, 1990, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (136, 2, N'N/D', N'Interassimetro', N'PARKSON', NULL, 0, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (137, 2, N'N/D', N'Apparecchio controllo conicita'' pneum./elettr.', N'STOTZ DLS-27', NULL, 1996, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (138, 2, N'N/D', N'Appararecchio controllo strumenti di misura', N'JOINT DMS 680', NULL, 1995, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (139, 1, N'N/D', N'Profilometro', N'MAHR - PERTHOMETER PRK', NULL, 1997, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (140, 2, N'N/D', N'Appararecchio prova bruciature', N'ROLLSCAN 200-1', NULL, 1997, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (141, 1, N'N/D', N'Apparecchio per coni', N'STOTZ - DLS 27 M1 (4 elementi)', NULL, 1997, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (142, 2, N'N/D', N'Altimetro', N'TESA - MICROHITE', NULL, 1998, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (143, 1, N'N/D', N'Troncatrice', N'IMPTECH - C 10', NULL, 1998, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (144, 1, N'N/D', N'Inglobatrice', N'BUEHLER - SIMPLIMET 2000', NULL, 1998, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (145, 1, N'N/D', N'Levigatrice', N'BUEHLER - METASERV 2000', NULL, 1998, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (146, 2, N'N/D', N'Microdurometro', N'FUTURE TECH - FM-7', NULL, 1998, 1, 1, NULL, NULL) +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (147, 2, N'N/D', N'Magnetoscopio per controllo ND', N'CGM ITALIA CEMSA FOS 1000', NULL, 2000, 1, 1, NULL, NULL) +GO + +SET IDENTITY_INSERT dbo.AnagMacchine OFF +GO + +COMMIT TRANSACTION +GO + + + + + +SET xact_abort ON +GO + +BEGIN TRANSACTION +GO + +INSERT INTO dbo.AnagSemafori + VALUES (N'semaforoGiallo', N'Valore da verificare') +INSERT INTO dbo.AnagSemafori + VALUES (N'semaforoRosso', N'Errore/Attenzione') +INSERT INTO dbo.AnagSemafori + VALUES (N'semaforoVerde', N'Valore OK') +GO + +COMMIT TRANSACTION +GO + + +SET xact_abort ON +GO + +BEGIN TRANSACTION +GO + +INSERT INTO dbo.CalendFesteFerie + VALUES ('2009-01-01 00:00:00.000', N'primo dell''anno') +INSERT INTO dbo.CalendFesteFerie + VALUES ('2009-01-06 00:00:00.000', N'epifania') +INSERT INTO dbo.CalendFesteFerie + VALUES ('2009-04-12 00:00:00.000', N'Pasqua') +INSERT INTO dbo.CalendFesteFerie + VALUES ('2009-04-13 00:00:00.000', N'Lunedì dell''angelo') +INSERT INTO dbo.CalendFesteFerie + VALUES ('2009-04-25 00:00:00.000', N'festa della liberazione') +INSERT INTO dbo.CalendFesteFerie + VALUES ('2009-05-01 00:00:00.000', N'festa dei lavoratori') +INSERT INTO dbo.CalendFesteFerie + VALUES ('2009-06-02 00:00:00.000', N'festa della repubblica') +INSERT INTO dbo.CalendFesteFerie + VALUES ('2009-08-15 00:00:00.000', N'ferragosto') +INSERT INTO dbo.CalendFesteFerie + VALUES ('2009-11-02 00:00:00.000', N'festività dei morti') +INSERT INTO dbo.CalendFesteFerie + VALUES ('2009-12-08 00:00:00.000', N'immacolata concezione') +INSERT INTO dbo.CalendFesteFerie + VALUES ('2009-12-25 00:00:00.000', N'Natale') +INSERT INTO dbo.CalendFesteFerie + VALUES ('2009-12-26 00:00:00.000', N'S.Stefano') +GO + +COMMIT TRANSACTION +GO + + +SET xact_abort ON +GO + +BEGIN TRANSACTION +GO + +INSERT INTO dbo.OreAperturaSett + VALUES (0, N'Dom', 2.00) +INSERT INTO dbo.OreAperturaSett + VALUES (1, N'Lun', 24.00) +INSERT INTO dbo.OreAperturaSett + VALUES (2, N'Mar', 24.00) +INSERT INTO dbo.OreAperturaSett + VALUES (3, N'Mer', 24.00) +INSERT INTO dbo.OreAperturaSett + VALUES (4, N'Gio', 24.00) +INSERT INTO dbo.OreAperturaSett + VALUES (5, N'Ven', 24.00) +INSERT INTO dbo.OreAperturaSett + VALUES (6, N'Sab', 22.00) +GO + +COMMIT TRANSACTION +GO + + + + + + +SET xact_abort ON +GO + +BEGIN TRANSACTION +GO + +INSERT INTO dbo.AnagPriorita + VALUES (1, N'Pericolo di infortunio', N'semaforoRosso') +INSERT INTO dbo.AnagPriorita + VALUES (2, N'Produzione Ferma', N'semaforoGiallo') +INSERT INTO dbo.AnagPriorita + VALUES (3, N'Intervento fine lavoro', N'semaforoVerde') +INSERT INTO dbo.AnagPriorita + VALUES (4, N'Intervento nel mese', N'semaforoVerde') +GO + +COMMIT TRANSACTION +GO + + +SET xact_abort ON +GO + +BEGIN TRANSACTION +GO + +INSERT INTO dbo.AnagStati + VALUES (1, N'Richiesto', N'semaforoRosso') +INSERT INTO dbo.AnagStati + VALUES (2, N'In corso', N'semaforoGiallo') +INSERT INTO dbo.AnagStati + VALUES (3, N'Concluso', N'semaforoVerde') +INSERT INTO dbo.AnagStati + VALUES (4, N'Annullato', N'semaforoVerde') +GO + +COMMIT TRANSACTION +GO + + +SET xact_abort ON +GO + +BEGIN TRANSACTION +GO + +SET IDENTITY_INSERT dbo.AnagTipoGuasto ON +GO + +INSERT INTO dbo.AnagTipoGuasto + (idxTipo, descrTipo) + VALUES (1, N'elettrico') +INSERT INTO dbo.AnagTipoGuasto + (idxTipo, descrTipo) + VALUES (2, N'meccanico') +INSERT INTO dbo.AnagTipoGuasto + (idxTipo, descrTipo) + VALUES (3, N'pulizia') +INSERT INTO dbo.AnagTipoGuasto + (idxTipo, descrTipo) + VALUES (4, N'servizi') +GO + +SET IDENTITY_INSERT dbo.AnagTipoGuasto OFF +GO + +COMMIT TRANSACTION +GO + + + +SET xact_abort ON +GO + +BEGIN TRANSACTION +GO + +INSERT INTO dbo.AnagPeriodi + VALUES (N'0_freeSel', N'_freeSel') +INSERT INTO dbo.AnagPeriodi + VALUES (N'1_today', N'today') +INSERT INTO dbo.AnagPeriodi + VALUES (N'2_yesterday', N'yesterday') +INSERT INTO dbo.AnagPeriodi + VALUES (N'3_last_7', N'last_7') +INSERT INTO dbo.AnagPeriodi + VALUES (N'4_this_week', N'this_week') +INSERT INTO dbo.AnagPeriodi + VALUES (N'5_last_30', N'last_30') +INSERT INTO dbo.AnagPeriodi + VALUES (N'6_this_month', N'this_month') +INSERT INTO dbo.AnagPeriodi + VALUES (N'7_last_month', N'last_month') +INSERT INTO dbo.AnagPeriodi + VALUES (N'8_this_year', N'this_year') +INSERT INTO dbo.AnagPeriodi + VALUES (N'9_last_year', N'last_year') +GO + +COMMIT TRANSACTION +GO + + +SET xact_abort ON +GO + +BEGIN TRANSACTION +GO + +INSERT INTO dbo.Permessi + VALUES ('ADMIN', 'menu.aspx', 4, 0, 'Admin', 'Admin') +INSERT INTO dbo.Permessi + VALUES ('ADMIN_vocab', 'vocabolario.aspx', 4, 1, 'Vocabolario', 'Vocabolario') +INSERT INTO dbo.Permessi + VALUES ('ADV_MTZ', 'menu.aspx', 3, 0, 'AreaMtz', 'AreaMtzLong') +INSERT INTO dbo.Permessi + VALUES ('ADV_MTZ_Impianti', 'report_impianti.aspx', 3, 2, 'reportImpianti', 'reportImpiantiLong') +INSERT INTO dbo.Permessi + VALUES ('ADV_MTZ_Interactive', 'reportInteractive.aspx', 9993, 4, 'reportInterattivo', 'reportInterattivoLong') +INSERT INTO dbo.Permessi + VALUES ('ADV_MTZ_Interventi', 'report_analisi.aspx', 3, 3, 'reportInterventi', 'reportInterventiLong') +INSERT INTO dbo.Permessi + VALUES ('ADV_MTZ_mtzProg', 'mtzProg.aspx', 3, 1, 'MtzProg', 'MtzProgLong') +INSERT INTO dbo.Permessi + VALUES ('ANAG', 'menu.aspx', 1, 0, 'AnagraficheBase', 'AnagraficheBase') +INSERT INTO dbo.Permessi + VALUES ('ANAG_ambitiGuasto', 'anagAmbitiGuasto.aspx', 1, 1, 'AnagAmbitiGuasto', 'AnagAmbitiGuastoLong') +INSERT INTO dbo.Permessi + VALUES ('ANAG_aperturaImp', 'aperturaImpianti.aspx', 1, 9, 'AnagAperturaSett', 'AnagAperturaSettLong') +INSERT INTO dbo.Permessi + VALUES ('ANAG_assegnazioni', 'assegnazioniMacchineImpianti.aspx', 1, 5, 'AssegnMaccImp', 'AssegnMaccImpLong') +INSERT INTO dbo.Permessi + VALUES ('ANAG_calChiusura', 'calendChiusura.aspx', 1, 10, 'AnagCalChiusure', 'AnagCalChiusureLong') +INSERT INTO dbo.Permessi + VALUES ('ANAG_causali', 'gestioneCausali.aspx', 9991, 7, 'GestioneCausali', 'GestioneCausaliLong') +INSERT INTO dbo.Permessi + VALUES ('ANAG_famMacc', 'famiglieMacchine.aspx', 9991, 6, 'FamMacchine', 'FamMacchineLong') +INSERT INTO dbo.Permessi + VALUES ('ANAG_impianti', 'impianti.aspx', 1, 3, 'GestImpianti', 'GestImpiantiLong') +INSERT INTO dbo.Permessi + VALUES ('ANAG_macchine', 'macchine.aspx', 1, 4, 'GestMacchine', 'GestMacchineLong') +INSERT INTO dbo.Permessi + VALUES ('ANAG_priorita', 'priorita.aspx', 1, 2, 'AnagPriorita', 'AnagPrioritaLong') +INSERT INTO dbo.Permessi + VALUES ('ANAG_tipo', 'tipoGuasto.aspx', 1, 8, 'AnagTipo', 'AnagTipoLong') +INSERT INTO dbo.Permessi + VALUES ('HELP', 'menu.aspx', 5, 0, 'Help', 'HelpLong') +INSERT INTO dbo.Permessi + VALUES ('HELP_support', 'help.aspx', 5, 1, 'HelpSupport', 'HelpSupportLong') +INSERT INTO dbo.Permessi + VALUES ('RicMan', 'menu.aspx', 2, 0, 'RicManArea', 'RicManAreaLong') +INSERT INTO dbo.Permessi + VALUES ('RicMan_edit', 'dettaglioIntervento.aspx', 999, 1, 'EditRicMan', 'EditRicManLong') +INSERT INTO dbo.Permessi + VALUES ('RicMan_ins', 'insertRichiesta.aspx', 2, 1, 'InsRicMan', 'InsRicManLong') +INSERT INTO dbo.Permessi + VALUES ('RicMan_list', 'elencoRichieste.aspx', 2, 2, 'ElencoRichieste', 'ElencoRichiesteLong') +GO + +COMMIT TRANSACTION +GO + + + +SET xact_abort ON +GO + +BEGIN TRANSACTION +GO + +INSERT INTO dbo.Permessi2Funzione + VALUES ('ADMIN', N'GIM_AppAdmin', NULL) +INSERT INTO dbo.Permessi2Funzione + VALUES ('ADMIN_vocab', N'GIM_AppAdmin', NULL) +INSERT INTO dbo.Permessi2Funzione + VALUES ('ADV_MTZ', N'GIM_U', NULL) +INSERT INTO dbo.Permessi2Funzione + VALUES ('ADV_MTZ_Impianti', N'GIM_U', NULL) +INSERT INTO dbo.Permessi2Funzione + VALUES ('ADV_MTZ_Interactive', N'GIM_SU', NULL) +INSERT INTO dbo.Permessi2Funzione + VALUES ('ADV_MTZ_Interventi', N'GIM_SU', NULL) +INSERT INTO dbo.Permessi2Funzione + VALUES ('ADV_MTZ_mtzProg', N'GIM_SU', NULL) +INSERT INTO dbo.Permessi2Funzione + VALUES ('ANAG', N'GIM_SU', NULL) +INSERT INTO dbo.Permessi2Funzione + VALUES ('ANAG_ambitiGuasto', N'GIM_SU', NULL) +INSERT INTO dbo.Permessi2Funzione + VALUES ('ANAG_aperturaImp', N'GIM_SU', NULL) +INSERT INTO dbo.Permessi2Funzione + VALUES ('ANAG_assegnazioni', N'GIM_SU', NULL) +INSERT INTO dbo.Permessi2Funzione + VALUES ('ANAG_calChiusura', N'GIM_SU', NULL) +INSERT INTO dbo.Permessi2Funzione + VALUES ('ANAG_causali', N'GIM_SU', NULL) +INSERT INTO dbo.Permessi2Funzione + VALUES ('ANAG_famMacc', N'GIM_SU', NULL) +INSERT INTO dbo.Permessi2Funzione + VALUES ('ANAG_impianti', N'GIM_SU', NULL) +INSERT INTO dbo.Permessi2Funzione + VALUES ('ANAG_macchine', N'GIM_SU', NULL) +INSERT INTO dbo.Permessi2Funzione + VALUES ('ANAG_priorita', N'GIM_SU', NULL) +INSERT INTO dbo.Permessi2Funzione + VALUES ('ANAG_tipo', N'GIM_SU', NULL) +INSERT INTO dbo.Permessi2Funzione + VALUES ('HELP', N'GIM_U', NULL) +INSERT INTO dbo.Permessi2Funzione + VALUES ('HELP_support', N'GIM_U', NULL) +INSERT INTO dbo.Permessi2Funzione + VALUES ('RicMan', N'GIM_U', NULL) +INSERT INTO dbo.Permessi2Funzione + VALUES ('RicMan_edit', N'GIM_SU', NULL) +INSERT INTO dbo.Permessi2Funzione + VALUES ('RicMan_ins', N'GIM_U', NULL) +INSERT INTO dbo.Permessi2Funzione + VALUES ('RicMan_list', N'GIM_U', NULL) +GO + +COMMIT TRANSACTION +GO + + + + + + +SET xact_abort ON +GO + +BEGIN TRANSACTION +GO + +INSERT INTO dbo.Tra_Ev2Stati + VALUES (1, 1, 2) +INSERT INTO dbo.Tra_Ev2Stati + VALUES (1, 2, 3) +INSERT INTO dbo.Tra_Ev2Stati + VALUES (1, 3, 4) +INSERT INTO dbo.Tra_Ev2Stati + VALUES (2, 2, 3) +INSERT INTO dbo.Tra_Ev2Stati + VALUES (2, 3, 4) +GO + +COMMIT TRANSACTION +GO + +SET xact_abort ON +GO + +BEGIN TRANSACTION +GO + +INSERT INTO dbo.AnagFrequenze + VALUES (N'dd', N'giorni') +INSERT INTO dbo.AnagFrequenze + VALUES (N'MM', N'mesi') +INSERT INTO dbo.AnagFrequenze + VALUES (N'ww', N'settimane') +INSERT INTO dbo.AnagFrequenze + VALUES (N'yy', N'anni') +GO + +COMMIT TRANSACTION +GO + + + + + +-- registro versione... +INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(2, GETDATE()) +GO diff --git a/Projects/WebGIM/GIM_site/sql/Applicazione/GIM_0003.sql b/Projects/WebGIM/GIM_site/sql/Applicazione/GIM_0003.sql new file mode 100644 index 0000000..3beb714 --- /dev/null +++ b/Projects/WebGIM/GIM_site/sql/Applicazione/GIM_0003.sql @@ -0,0 +1,2567 @@ +-- update tabelle +SET xact_abort ON +GO + +BEGIN TRANSACTION +GO + +ALTER TABLE Causali2FamMacchine DROP + CONSTRAINT FK_Causali2FamMacchine_AnagCausali +GO + +ALTER TABLE InterventiMtz DROP + CONSTRAINT FK_InterventiMtz_AnagCausali +GO + +EXEC sp_rename 'PK_AnagCausali', 'tmp__PK_AnagCausali', 'OBJECT' +GO + +EXEC sp_rename 'AnagCausali', 'tmp__AnagCausali_0', 'OBJECT' +GO + +CREATE TABLE AnagCausali( + idxCausale INT NOT NULL IDENTITY CONSTRAINT PK_AnagCausali PRIMARY KEY, + idxFamMacchine INT NOT NULL, + descrCausale NVARCHAR(50), + attiva BIT CONSTRAINT DF_AnagCausali_attiva DEFAULT (1) +) +GO + +ALTER TABLE AnagCausali ADD + CONSTRAINT FK_AnagCausali_AnagFamMacchine FOREIGN KEY(idxFamMacchine) REFERENCES AnagFamMacchine(idxFamMacchine) ON UPDATE CASCADE +GO + +SET IDENTITY_INSERT AnagCausali ON +GO + +INSERT INTO AnagCausali(idxCausale,idxFamMacchine,descrCausale) SELECT idxCausale,0,descrCausale FROM tmp__AnagCausali_0 +GO + +SET IDENTITY_INSERT AnagCausali OFF +GO + +DROP TABLE tmp__AnagCausali_0 +GO + +ALTER TABLE InterventiMtz ADD + CONSTRAINT FK_InterventiMtz_AnagCausali FOREIGN KEY(idxCausale) REFERENCES AnagCausali(idxCausale) ON UPDATE CASCADE +GO + +COMMIT +GO + + +SET xact_abort ON +GO + +BEGIN TRANSACTION +GO + +ALTER TABLE AnagMacchine ALTER COLUMN + nomeMacchina NVARCHAR(250) +GO + +ALTER TABLE AnagMacchine ALTER COLUMN + modello NVARCHAR(250) +GO + +SET ANSI_NULLS ON +GO + +ALTER PROCEDURE sp_caricaUpdateMAcchine +AS +INSERT INTO AnagMacchine + (codMacchina, nomeMacchina, modello, funzDal, idxImpianto, funzAl, kgPeso, kwConsumo, anno, matricola) +SELECT ISNULL(tmp_importaMacchine.idGest, N'--') AS idxMacchina, ISNULL(tmp_importaMacchine.denominazione, N'nd') AS nomeMacchina, + ISNULL(tmp_importaMacchine.costruttore, N'nd') AS modello, CAST(CAST(ISNULL(tmp_importaMacchine.anno, 1900) AS VARCHAR) + '-01-01 12:00:00' AS DATETIME) + AS funzDal, AnagImpianti.idxImpianto, CAST('2100-01-01 00:00:00' AS DATETIME) AS fine, 1 AS kg, 1 AS kw, ISNULL(tmp_importaMacchine.anno, 1900) AS anno, + '-' AS matr +FROM tmp_importaMacchine INNER JOIN + AnagImpianti ON tmp_importaMacchine.reparto = AnagImpianti.nomeImpianto +RETURN +GO + +COMMIT +GO + + +ALTER TABLE InterventoOpMtz ADD + CONSTRAINT FK_InterventoOpMtz_AnagrOperMtz FOREIGN KEY(matrOp) REFERENCES AnagrOperMtz(matrOp) ON UPDATE CASCADE +GO + + +DROP TABLE Causali2FamMacchine +GO + + +-- update viste +SET xact_abort ON +GO + +BEGIN TRANSACTION +GO + +SET ANSI_NULLS ON +GO + +ALTER VIEW v_intervExp +AS +SELECT TOP (100) PERCENT dbo.InterventiMtz.numIntMtz, dbo.InterventiMtz.richiesta, dbo.InterventiMtz.dataLav, dbo.InterventiMtz.turnoLav, dbo.InterventiMtz.matr, + dbo.InterventiMtz.guasto, dbo.InterventiMtz.idxAmbito, dbo.AnagAmbitoGuasto.descrAmbitoGuasto, dbo.InterventiMtz.idxPriorita, dbo.AnagPriorita.descrPriorita, + CASE dbo.InterventiMtz.isFermo WHEN 'True' THEN 'SI' ELSE 'NO' END AS isFermoSiNo, dbo.InterventiMtz.idxTipo, dbo.AnagTipoGuasto.descrTipo, + dbo.InterventiMtz.idxImpianto, dbo.AnagImpianti.codImpianto, dbo.AnagImpianti.nomeImpianto, dbo.InterventiMtz.idxMacchina, dbo.AnagMacchine.codMacchina, + dbo.AnagMacchine.nomeMacchina, dbo.InterventiMtz.descrizione, dbo.InterventiMtz.idxStato, dbo.AnagStati.DescrStato, ISNULL(dbo.InterventiMtz.presaInCarico, + dbo.InterventiMtz.richiesta) AS presaInCarico, ISNULL(dbo.InterventiMtz.inizioIntervento, ISNULL(dbo.InterventiMtz.presaInCarico, dbo.InterventiMtz.richiesta)) + AS inizioIntervento, ISNULL(dbo.InterventiMtz.fineIntervento, GETDATE()) AS fineIntervento, dbo.InterventiMtz.descrizioneIntervento, + dbo.InterventiMtz.isPreventivabile, dbo.InterventiMtz.idxCausale, ISNULL(dbo.AnagCausali.descrCausale, 'N.D.') AS descrCausale, dbo.InterventiMtz.isFermo +FROM dbo.InterventiMtz INNER JOIN + dbo.AnagAmbitoGuasto ON dbo.InterventiMtz.idxAmbito = dbo.AnagAmbitoGuasto.idxAmbito INNER JOIN + dbo.AnagImpianti ON dbo.InterventiMtz.idxImpianto = dbo.AnagImpianti.idxImpianto INNER JOIN + dbo.AnagMacchine ON dbo.InterventiMtz.idxMacchina = dbo.AnagMacchine.idxMacchina INNER JOIN + dbo.AnagTipoGuasto ON dbo.InterventiMtz.idxTipo = dbo.AnagTipoGuasto.idxTipo INNER JOIN + dbo.AnagPriorita ON dbo.InterventiMtz.idxPriorita = dbo.AnagPriorita.idxPriorita INNER JOIN + dbo.AnagStati ON dbo.InterventiMtz.idxStato = dbo.AnagStati.idxStato LEFT OUTER JOIN + dbo.AnagCausali ON dbo.InterventiMtz.idxCausale = dbo.AnagCausali.idxCausale +ORDER BY dbo.InterventiMtz.numIntMtz DESC +GO + +COMMIT +GO + +SET xact_abort ON +GO + +BEGIN TRANSACTION +GO + +SET ANSI_NULLS ON +GO + +ALTER VIEW v_selCausaliMacchine +AS +SELECT TOP (100) PERCENT dbo.AnagCausali.idxCausale AS value, dbo.AnagCausali.descrCausale AS label, dbo.Macchine2FamMacchine.idxMacchina AS conditio +FROM dbo.Macchine2FamMacchine INNER JOIN + dbo.AnagCausali ON dbo.Macchine2FamMacchine.idxFamMacchine = dbo.AnagCausali.idxFamMacchine +WHERE (dbo.AnagCausali.attiva = 1) +ORDER BY conditio, label +GO +EXEC sp_addextendedproperty 'MS_DiagramPane1', '[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00] +Begin DesignProperties = + Begin PaneConfigurations = + Begin PaneConfiguration = 0 + NumPanes = 4 + Configuration = "(H (1[40] 4[20] 2[20] 3) )" + End + Begin PaneConfiguration = 1 + NumPanes = 3 + Configuration = "(H (1 [50] 4 [25] 3))" + End + Begin PaneConfiguration = 2 + NumPanes = 3 + Configuration = "(H (1 [50] 2 [25] 3))" + End + Begin PaneConfiguration = 3 + NumPanes = 3 + Configuration = "(H (4 [30] 2 [40] 3))" + End + Begin PaneConfiguration = 4 + NumPanes = 2 + Configuration = "(H (1 [56] 3))" + End + Begin PaneConfiguration = 5 + NumPanes = 2 + Configuration = "(H (2 [66] 3))" + End + Begin PaneConfiguration = 6 + NumPanes = 2 + Configuration = "(H (4 [50] 3))" + End + Begin PaneConfiguration = 7 + NumPanes = 1 + Configuration = "(V (3))" + End + Begin PaneConfiguration = 8 + NumPanes = 3 + Configuration = "(H (1[56] 4[18] 2) )" + End + Begin PaneConfiguration = 9 + NumPanes = 2 + Configuration = "(H (1 [75] 4))" + End + Begin PaneConfiguration = 10 + NumPanes = 2 + Configuration = "(H (1[66] 2) )" + End + Begin PaneConfiguration = 11 + NumPanes = 2 + Configuration = "(H (4 [60] 2))" + End + Begin PaneConfiguration = 12 + NumPanes = 1 + Configuration = "(H (1) )" + End + Begin PaneConfiguration = 13 + NumPanes = 1 + Configuration = "(V (4))" + End + Begin PaneConfiguration = 14 + NumPanes = 1 + Configuration = "(V (2))" + End + ActivePaneConfig = 0 + End + Begin DiagramPane = + Begin Origin = + Top = 0 + Left = 0 + End + Begin Tables = + Begin Table = "Macchine2FamMacchine" + Begin Extent = + Top = 15 + Left = 448 + Bottom = 93 + Right = 606 + End + DisplayFlags = 280 + TopColumn = 0 + End + Begin Table = "AnagCausali" + Begin Extent = + Top = 54 + Left = 38 + Bottom = 162 + Right = 196 + End + DisplayFlags = 280 + TopColumn = 0 + End + End + End + Begin SQLPane = + End + Begin DataPane = + Begin ParameterDefaults = "" + End + Begin ColumnWidths = 9 + Width = 284 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + End + End + Begin CriteriaPane = + Begin ColumnWidths = 11 + Column = 1440 + Alias = 900 + Table = 1170 + Output = 720 + Append = 1400 + NewValue = 1170 + SortType = 1350 + SortOrder = 1410 + GroupBy = 1350 + Filter = 1350 + Or = 1350 + Or = 1350 + Or = 1350 + End + End +End +', 'SCHEMA', 'dbo', 'VIEW', 'v_selCausaliMacchine' +GO + +EXEC sp_addextendedproperty 'MS_DiagramPaneCount', 1, 'SCHEMA', 'dbo', 'VIEW', 'v_selCausaliMacchine' +GO + +COMMIT +GO + + +IF NOT object_id('v_mtzProgPendingExp') IS NULL +DROP VIEW v_mtzProgPendingExp +GO + + + +SET xact_abort ON +GO + +BEGIN TRANSACTION +GO + +SET ANSI_NULLS ON +GO + +CREATE VIEW v_mtzProgPendingExp +AS +SELECT TOP (100) PERCENT dbo.MtzProgPending.idxPending, dbo.AnagImpianti.codImpianto, dbo.AnagImpianti.nomeImpianto, dbo.AnagMacchine.codMacchina, + dbo.AnagMacchine.nomeMacchina, dbo.MtzProgPending.data, dbo.MtzProgPending.descrizione, dbo.AnagPriorita.descrPriorita, dbo.MtzProgPending.isFermo, + dbo.AnagTipoGuasto.descrTipo +FROM dbo.MtzProgPending INNER JOIN + dbo.AnagMacchine ON dbo.MtzProgPending.idxMacchina = dbo.AnagMacchine.idxMacchina INNER JOIN + dbo.AnagImpianti ON dbo.AnagMacchine.idxImpianto = dbo.AnagImpianti.idxImpianto INNER JOIN + dbo.AnagTipoGuasto ON dbo.MtzProgPending.idxTipo = dbo.AnagTipoGuasto.idxTipo INNER JOIN + dbo.AnagPriorita ON dbo.MtzProgPending.idxPriorita = dbo.AnagPriorita.idxPriorita +ORDER BY dbo.MtzProgPending.data +GO + +EXEC sp_addextendedproperty 'MS_DiagramPane1', '[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00] +Begin DesignProperties = + Begin PaneConfigurations = + Begin PaneConfiguration = 0 + NumPanes = 4 + Configuration = "(H (1[40] 4[20] 2[20] 3) )" + End + Begin PaneConfiguration = 1 + NumPanes = 3 + Configuration = "(H (1 [50] 4 [25] 3))" + End + Begin PaneConfiguration = 2 + NumPanes = 3 + Configuration = "(H (1 [50] 2 [25] 3))" + End + Begin PaneConfiguration = 3 + NumPanes = 3 + Configuration = "(H (4 [30] 2 [40] 3))" + End + Begin PaneConfiguration = 4 + NumPanes = 2 + Configuration = "(H (1 [56] 3))" + End + Begin PaneConfiguration = 5 + NumPanes = 2 + Configuration = "(H (2 [66] 3))" + End + Begin PaneConfiguration = 6 + NumPanes = 2 + Configuration = "(H (4 [50] 3))" + End + Begin PaneConfiguration = 7 + NumPanes = 1 + Configuration = "(V (3))" + End + Begin PaneConfiguration = 8 + NumPanes = 3 + Configuration = "(H (1[56] 4[18] 2) )" + End + Begin PaneConfiguration = 9 + NumPanes = 2 + Configuration = "(H (1 [75] 4))" + End + Begin PaneConfiguration = 10 + NumPanes = 2 + Configuration = "(H (1[66] 2) )" + End + Begin PaneConfiguration = 11 + NumPanes = 2 + Configuration = "(H (4 [60] 2))" + End + Begin PaneConfiguration = 12 + NumPanes = 1 + Configuration = "(H (1) )" + End + Begin PaneConfiguration = 13 + NumPanes = 1 + Configuration = "(V (4))" + End + Begin PaneConfiguration = 14 + NumPanes = 1 + Configuration = "(V (2))" + End + ActivePaneConfig = 0 + End + Begin DiagramPane = + Begin Origin = + Top = 0 + Left = 0 + End + Begin Tables = + Begin Table = "MtzProgPending" + Begin Extent = + Top = 57 + Left = 597 + Bottom = 228 + Right = 748 + End + DisplayFlags = 280 + TopColumn = 0 + End + Begin Table = "AnagMacchine" + Begin Extent = + Top = 33 + Left = 341 + Bottom = 253 + Right = 492 + End + DisplayFlags = 280 + TopColumn = 0 + End + Begin Table = "AnagImpianti" + Begin Extent = + Top = 83 + Left = 127 + Bottom = 226 + Right = 278 + End + DisplayFlags = 280 + TopColumn = 0 + End + Begin Table = "AnagTipoGuasto" + Begin Extent = + Top = 182 + Left = 869 + Bottom = 260 + Right = 1020 + End + DisplayFlags = 280 + TopColumn = 0 + End + Begin Table = "AnagPriorita" + Begin Extent = + Top = 16 + Left = 874 + Bottom = 109 + Right = 1025 + End + DisplayFlags = 280 + TopColumn = 0 + End + End + End + Begin SQLPane = + End + Begin DataPane = + Begin ParameterDefaults = "" + End + Begin ColumnWidths = 10 + Width = 284 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + End + End + Begin CriteriaPane = + Begin ColumnWidths = 1', 'SCHEMA', 'dbo', 'VIEW', 'v_mtzProgPendingExp' +GO + +EXEC sp_addextendedproperty 'MS_DiagramPane2', '1 + Column = 1440 + Alias = 900 + Table = 1170 + Output = 720 + Append = 1400 + NewValue = 1170 + SortType = 1350 + SortOrder = 1410 + GroupBy = 1350 + Filter = 1350 + Or = 1350 + Or = 1350 + Or = 1350 + End + End +End +', 'SCHEMA', 'dbo', 'VIEW', 'v_mtzProgPendingExp' +GO + +EXEC sp_addextendedproperty 'MS_DiagramPaneCount', 2, 'SCHEMA', 'dbo', 'VIEW', 'v_mtzProgPendingExp' +GO + +COMMIT +GO + + +IF NOT object_id('v_selOperMtz') IS NULL +DROP VIEW v_selOperMtz +GO + +SET xact_abort ON +GO + +BEGIN TRANSACTION +GO + +SET ANSI_NULLS ON +GO + +CREATE VIEW v_selOperMtz +AS +SELECT TOP (100) PERCENT matrOp AS value, matrOp + ' - ' + Cognome + ' ' + Nome AS label +FROM dbo.AnagrOperMtz +ORDER BY label +GO + +EXEC sp_addextendedproperty 'MS_DiagramPane1', '[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00] +Begin DesignProperties = + Begin PaneConfigurations = + Begin PaneConfiguration = 0 + NumPanes = 4 + Configuration = "(H (1[40] 4[20] 2[20] 3) )" + End + Begin PaneConfiguration = 1 + NumPanes = 3 + Configuration = "(H (1 [50] 4 [25] 3))" + End + Begin PaneConfiguration = 2 + NumPanes = 3 + Configuration = "(H (1 [50] 2 [25] 3))" + End + Begin PaneConfiguration = 3 + NumPanes = 3 + Configuration = "(H (4 [30] 2 [40] 3))" + End + Begin PaneConfiguration = 4 + NumPanes = 2 + Configuration = "(H (1 [56] 3))" + End + Begin PaneConfiguration = 5 + NumPanes = 2 + Configuration = "(H (2 [66] 3))" + End + Begin PaneConfiguration = 6 + NumPanes = 2 + Configuration = "(H (4 [50] 3))" + End + Begin PaneConfiguration = 7 + NumPanes = 1 + Configuration = "(V (3))" + End + Begin PaneConfiguration = 8 + NumPanes = 3 + Configuration = "(H (1[56] 4[18] 2) )" + End + Begin PaneConfiguration = 9 + NumPanes = 2 + Configuration = "(H (1 [75] 4))" + End + Begin PaneConfiguration = 10 + NumPanes = 2 + Configuration = "(H (1[66] 2) )" + End + Begin PaneConfiguration = 11 + NumPanes = 2 + Configuration = "(H (4 [60] 2))" + End + Begin PaneConfiguration = 12 + NumPanes = 1 + Configuration = "(H (1) )" + End + Begin PaneConfiguration = 13 + NumPanes = 1 + Configuration = "(V (4))" + End + Begin PaneConfiguration = 14 + NumPanes = 1 + Configuration = "(V (2))" + End + ActivePaneConfig = 0 + End + Begin DiagramPane = + Begin Origin = + Top = 0 + Left = 0 + End + Begin Tables = + Begin Table = "AnagrOperMtz" + Begin Extent = + Top = 6 + Left = 38 + Bottom = 99 + Right = 190 + End + DisplayFlags = 280 + TopColumn = 0 + End + End + End + Begin SQLPane = + End + Begin DataPane = + Begin ParameterDefaults = "" + End + Begin ColumnWidths = 9 + Width = 284 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + End + End + Begin CriteriaPane = + Begin ColumnWidths = 11 + Column = 1440 + Alias = 900 + Table = 1170 + Output = 720 + Append = 1400 + NewValue = 1170 + SortType = 1350 + SortOrder = 1410 + GroupBy = 1350 + Filter = 1350 + Or = 1350 + Or = 1350 + Or = 1350 + End + End +End +', 'SCHEMA', 'dbo', 'VIEW', 'v_selOperMtz' +GO + +EXEC sp_addextendedproperty 'MS_DiagramPaneCount', 1, 'SCHEMA', 'dbo', 'VIEW', 'v_selOperMtz' +GO + +COMMIT +GO + + +IF NOT object_id('v_selFam') IS NULL +DROP VIEW v_selFam +GO + + +SET xact_abort ON +GO + +BEGIN TRANSACTION +GO + +SET ANSI_NULLS ON +GO + +CREATE VIEW v_selFam +AS +SELECT idxFamMacchine AS value, nomeFamMacch AS label +FROM dbo.AnagFamMacchine +GO + +EXEC sp_addextendedproperty 'MS_DiagramPane1', '[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00] +Begin DesignProperties = + Begin PaneConfigurations = + Begin PaneConfiguration = 0 + NumPanes = 4 + Configuration = "(H (1[40] 4[20] 2[20] 3) )" + End + Begin PaneConfiguration = 1 + NumPanes = 3 + Configuration = "(H (1 [50] 4 [25] 3))" + End + Begin PaneConfiguration = 2 + NumPanes = 3 + Configuration = "(H (1 [50] 2 [25] 3))" + End + Begin PaneConfiguration = 3 + NumPanes = 3 + Configuration = "(H (4 [30] 2 [40] 3))" + End + Begin PaneConfiguration = 4 + NumPanes = 2 + Configuration = "(H (1 [56] 3))" + End + Begin PaneConfiguration = 5 + NumPanes = 2 + Configuration = "(H (2 [66] 3))" + End + Begin PaneConfiguration = 6 + NumPanes = 2 + Configuration = "(H (4 [50] 3))" + End + Begin PaneConfiguration = 7 + NumPanes = 1 + Configuration = "(V (3))" + End + Begin PaneConfiguration = 8 + NumPanes = 3 + Configuration = "(H (1[56] 4[18] 2) )" + End + Begin PaneConfiguration = 9 + NumPanes = 2 + Configuration = "(H (1 [75] 4))" + End + Begin PaneConfiguration = 10 + NumPanes = 2 + Configuration = "(H (1[66] 2) )" + End + Begin PaneConfiguration = 11 + NumPanes = 2 + Configuration = "(H (4 [60] 2))" + End + Begin PaneConfiguration = 12 + NumPanes = 1 + Configuration = "(H (1) )" + End + Begin PaneConfiguration = 13 + NumPanes = 1 + Configuration = "(V (4))" + End + Begin PaneConfiguration = 14 + NumPanes = 1 + Configuration = "(V (2))" + End + ActivePaneConfig = 0 + End + Begin DiagramPane = + Begin Origin = + Top = 0 + Left = 0 + End + Begin Tables = + Begin Table = "AnagFamMacchine" + Begin Extent = + Top = 6 + Left = 38 + Bottom = 84 + Right = 196 + End + DisplayFlags = 280 + TopColumn = 0 + End + End + End + Begin SQLPane = + End + Begin DataPane = + Begin ParameterDefaults = "" + End + End + Begin CriteriaPane = + Begin ColumnWidths = 11 + Column = 1440 + Alias = 900 + Table = 1170 + Output = 720 + Append = 1400 + NewValue = 1170 + SortType = 1350 + SortOrder = 1410 + GroupBy = 1350 + Filter = 1350 + Or = 1350 + Or = 1350 + Or = 1350 + End + End +End +', 'SCHEMA', 'dbo', 'VIEW', 'v_selFam' +GO + +EXEC sp_addextendedproperty 'MS_DiagramPaneCount', 1, 'SCHEMA', 'dbo', 'VIEW', 'v_selFam' +GO + +COMMIT +GO + + + + + +-- update stored +SET xact_abort ON +GO + +BEGIN TRANSACTION +GO + +SET ANSI_NULLS ON +GO + +/************************************* +* STORED PROCEDURE sp_insRichiesta +* Inserisce nuova richiesta di intervento +* +* modif.: S.E.L. - 2009.02.20 +**************************************/ +ALTER PROCEDURE sp_insRichiesta +( + @richiesta DATETIME, + @dataLav DATETIME, + @turnoLav INT, + @matr VARCHAR(10), + @guasto DATETIME, + @idxAmbito INT, + @idxPriorita INT, + @isFermo BIT, + @idxTipo INT, + @idxImpianto INT, + @idxMacchina INT, + @descrizione VARCHAR(500), + @idxCausale INT, + @numIntMtz INT output +) +AS + +BEGIN TRAN + + INSERT INTO InterventiMtz + (richiesta, dataLav, turnoLav, matr, guasto, idxAmbito, idxPriorita, isFermo, idxTipo, idxImpianto, idxMacchina, descrizione, idxStato, idxCausale) + VALUES (@richiesta,@dataLav,@turnoLav,@matr,@guasto,@idxAmbito,@idxPriorita,@isFermo,@idxTipo,@idxImpianto,@idxMacchina,@descrizione, 1,@idxCausale) + + /************************************* + * salvo idx del nuovo record + **************************************/ + SET @numIntMtz = SCOPE_IDENTITY() + +COMMIT TRAN + +RETURN (@numIntMtz) +GO + +COMMIT +GO + +SET xact_abort ON +GO + +BEGIN TRANSACTION +GO + +SET ANSI_NULLS ON +GO + +/************************************* +* STORED PROCEDURE sp_updateInterventoFull +* aggiorna TUTTI i dati dell'intervento +* +* modif.: S.E.L. - 2009.02.20 +**************************************/ +ALTER PROCEDURE sp_updateInterventoFull +( + @Original_numIntMtz INT, + @idxStato INT, + @inizioIntervento DATETIME, + @fineIntervento DATETIME, + @isPreventivabile BIT, + @descrizioneIntervento VARCHAR(500), + @matr VARCHAR(50), + @guasto DATETIME, + @isFermo BIT, + @idxImpianto INT, + @idxMacchina INT, + @idxAmbito INT, + @idxPriorita INT, + @descrizione VARCHAR(500), + @idxTipo INT, + @idxCausale INT, + @presaInCarico DATETIME +) +AS + +UPDATE InterventiMtz +SET inizioIntervento = @inizioIntervento, fineIntervento = @fineIntervento, descrizioneIntervento = @descrizioneIntervento, isPreventivabile = @isPreventivabile, + idxStato = @idxStato, matr = @matr, guasto = @guasto, idxAmbito = @idxAmbito, idxPriorita = @idxPriorita, isFermo = @isFermo, idxTipo = @idxTipo, + idxImpianto = @idxImpianto, idxMacchina = @idxMacchina, descrizione = @descrizione, presaInCarico = @presaInCarico, idxCausale = @idxCausale +WHERE (numIntMtz = @Original_numIntMtz) + +RETURN +GO + +COMMIT +GO + + + + + +-- update valori +SET xact_abort ON +GO + +BEGIN TRANSACTION +GO + +UPDATE dbo.AnagAmbitoGuasto SET + descrAmbitoGuasto=N'errore programma CN' + WHERE idxAmbito=8 +GO + +COMMIT TRANSACTION +GO + +SET xact_abort ON +GO + +BEGIN TRANSACTION +GO + +SET IDENTITY_INSERT dbo.AnagFamMacchine ON +GO + +UPDATE dbo.AnagFamMacchine SET + nomeFamMacch=N'Tutte' + WHERE idxFamMacchine=1 +UPDATE dbo.AnagFamMacchine SET + nomeFamMacch=N'Paranchi' + WHERE idxFamMacchine=3 +UPDATE dbo.AnagFamMacchine SET + nomeFamMacch=N'Rettifiche' + WHERE idxFamMacchine=4 +UPDATE dbo.AnagFamMacchine SET + nomeFamMacch=N'Banchetti' + WHERE idxFamMacchine=5 +UPDATE dbo.AnagFamMacchine SET + nomeFamMacch=N'Rulliere' + WHERE idxFamMacchine=6 +UPDATE dbo.AnagFamMacchine SET + nomeFamMacch=N'Robot' + WHERE idxFamMacchine=7 +INSERT INTO dbo.AnagFamMacchine + (idxFamMacchine, nomeFamMacch) + VALUES (8, N'Segatrici') +INSERT INTO dbo.AnagFamMacchine + (idxFamMacchine, nomeFamMacch) + VALUES (9, N'Tornitrici') +GO + +SET IDENTITY_INSERT dbo.AnagFamMacchine OFF +GO + +COMMIT TRANSACTION +GO + + +SET xact_abort ON +GO + +BEGIN TRANSACTION +GO + +SET IDENTITY_INSERT dbo.AnagCausali ON +GO + +INSERT INTO dbo.AnagCausali + (idxCausale, idxFamMacchine, descrCausale, attiva) + VALUES (1, 1, N'N.D.', 1) +INSERT INTO dbo.AnagCausali + (idxCausale, idxFamMacchine, descrCausale, attiva) + VALUES (2, 8, N'CATENA', 1) +INSERT INTO dbo.AnagCausali + (idxCausale, idxFamMacchine, descrCausale, attiva) + VALUES (3, 8, N'MOTORE', 1) +INSERT INTO dbo.AnagCausali + (idxCausale, idxFamMacchine, descrCausale, attiva) + VALUES (4, 4, N'ATTREZZATURA DI BLOCCAGGIO', 1) +INSERT INTO dbo.AnagCausali + (idxCausale, idxFamMacchine, descrCausale, attiva) + VALUES (5, 4, N'ASSI LINEARI', 1) +INSERT INTO dbo.AnagCausali + (idxCausale, idxFamMacchine, descrCausale, attiva) + VALUES (6, 5, N'ASSI LINEARI O CIRCOLARE', 1) +INSERT INTO dbo.AnagCausali + (idxCausale, idxFamMacchine, descrCausale, attiva) + VALUES (7, 6, N'PASSO-PASSO', 1) +INSERT INTO dbo.AnagCausali + (idxCausale, idxFamMacchine, descrCausale, attiva) + VALUES (8, 1, N'IMPIANTO IDRAULICO E LUBRIFICAZIONE', 1) +INSERT INTO dbo.AnagCausali + (idxCausale, idxFamMacchine, descrCausale, attiva) + VALUES (9, 1, N'CONTROLLO NUMERICO, AZIONAMENTO O PLC', 1) +INSERT INTO dbo.AnagCausali + (idxCausale, idxFamMacchine, descrCausale, attiva) + VALUES (10, 1, N'EVACUATORE TRUCIOLI', 1) +INSERT INTO dbo.AnagCausali + (idxCausale, idxFamMacchine, descrCausale, attiva) + VALUES (11, 1, N'IMPIANTO LUBROREFRIGERANTE', 1) +INSERT INTO dbo.AnagCausali + (idxCausale, idxFamMacchine, descrCausale, attiva) + VALUES (12, 1, N'SENSORI-FINECORSA-FOTOCELLULE', 1) +INSERT INTO dbo.AnagCausali + (idxCausale, idxFamMacchine, descrCausale, attiva) + VALUES (13, 1, N'RULLIERE', 1) +INSERT INTO dbo.AnagCausali + (idxCausale, idxFamMacchine, descrCausale, attiva) + VALUES (14, 1, N'PORTE E RIPARI', 1) +INSERT INTO dbo.AnagCausali + (idxCausale, idxFamMacchine, descrCausale, attiva) + VALUES (15, 1, N'IMPIANTO PNEUMATICO', 1) +INSERT INTO dbo.AnagCausali + (idxCausale, idxFamMacchine, descrCausale, attiva) + VALUES (16, 1, N'POMPE E MOTORI', 1) +INSERT INTO dbo.AnagCausali + (idxCausale, idxFamMacchine, descrCausale, attiva) + VALUES (17, 1, N'LAMPADE DI LAVORO O SEGNALAZIONE', 1) +INSERT INTO dbo.AnagCausali + (idxCausale, idxFamMacchine, descrCausale, attiva) + VALUES (18, 1, N'ERRATA PROGRAMMAZIONE', 1) +INSERT INTO dbo.AnagCausali + (idxCausale, idxFamMacchine, descrCausale, attiva) + VALUES (19, 1, N'PULIZIA GENERALE', 1) +INSERT INTO dbo.AnagCausali + (idxCausale, idxFamMacchine, descrCausale, attiva) + VALUES (20, 2, N'TAVOLA', 1) +INSERT INTO dbo.AnagCausali + (idxCausale, idxFamMacchine, descrCausale, attiva) + VALUES (21, 2, N'CAMBIO UTENSILE', 1) +INSERT INTO dbo.AnagCausali + (idxCausale, idxFamMacchine, descrCausale, attiva) + VALUES (22, 2, N'ATTREZZATURA DI BLOCCAGGIO', 1) +INSERT INTO dbo.AnagCausali + (idxCausale, idxFamMacchine, descrCausale, attiva) + VALUES (23, 2, N'LINEA MANDRINO', 1) +INSERT INTO dbo.AnagCausali + (idxCausale, idxFamMacchine, descrCausale, attiva) + VALUES (24, 2, N'ASSI LINEARI', 1) +INSERT INTO dbo.AnagCausali + (idxCausale, idxFamMacchine, descrCausale, attiva) + VALUES (25, 2, N'MONITOR', 1) +INSERT INTO dbo.AnagCausali + (idxCausale, idxFamMacchine, descrCausale, attiva) + VALUES (26, 2, N'CINGHIE O INGRANAGGI', 1) +INSERT INTO dbo.AnagCausali + (idxCausale, idxFamMacchine, descrCausale, attiva) + VALUES (27, 9, N'TORRETTA PORTAUTENSILI', 1) +INSERT INTO dbo.AnagCausali + (idxCausale, idxFamMacchine, descrCausale, attiva) + VALUES (28, 9, N'ATTREZZATURA DI BLOCCAGGIO', 1) +INSERT INTO dbo.AnagCausali + (idxCausale, idxFamMacchine, descrCausale, attiva) + VALUES (29, 9, N'LINEA MANDRINO', 1) +INSERT INTO dbo.AnagCausali + (idxCausale, idxFamMacchine, descrCausale, attiva) + VALUES (30, 9, N'ASSI LINEARI', 1) +INSERT INTO dbo.AnagCausali + (idxCausale, idxFamMacchine, descrCausale, attiva) + VALUES (31, 9, N'MANIPOLATORI (GUPO)-MAGNETI', 1) +INSERT INTO dbo.AnagCausali + (idxCausale, idxFamMacchine, descrCausale, attiva) + VALUES (32, 9, N'MONITOR', 1) +INSERT INTO dbo.AnagCausali + (idxCausale, idxFamMacchine, descrCausale, attiva) + VALUES (33, 9, N'CINGHIA E INGRANAGGI', 1) +INSERT INTO dbo.AnagCausali + (idxCausale, idxFamMacchine, descrCausale, attiva) + VALUES (34, 9, N'ASPIRATORE-CONDIZIONATORE', 1) +INSERT INTO dbo.AnagCausali + (idxCausale, idxFamMacchine, descrCausale, attiva) + VALUES (35, 7, N'ELETTROMAGNETI E PINZA', 1) +INSERT INTO dbo.AnagCausali + (idxCausale, idxFamMacchine, descrCausale, attiva) + VALUES (36, 7, N'ECCESSIVO GIOCO ASSI', 1) +INSERT INTO dbo.AnagCausali + (idxCausale, idxFamMacchine, descrCausale, attiva) + VALUES (37, 7, N'CAVO SPIRALATO', 1) +INSERT INTO dbo.AnagCausali + (idxCausale, idxFamMacchine, descrCausale, attiva) + VALUES (38, 7, N'SCHEDA ELETTRONICA', 1) +INSERT INTO dbo.AnagCausali + (idxCausale, idxFamMacchine, descrCausale, attiva) + VALUES (39, 7, N'MOTORE ASSI 1-6', 1) +INSERT INTO dbo.AnagCausali + (idxCausale, idxFamMacchine, descrCausale, attiva) + VALUES (40, 7, N'MONITOR O TASTIERA', 1) +INSERT INTO dbo.AnagCausali + (idxCausale, idxFamMacchine, descrCausale, attiva) + VALUES (41, 7, N'INGRANAGGI O POLSO', 1) +INSERT INTO dbo.AnagCausali + (idxCausale, idxFamMacchine, descrCausale, attiva) + VALUES (42, 4, N'CONTROPUNTA', 1) +INSERT INTO dbo.AnagCausali + (idxCausale, idxFamMacchine, descrCausale, attiva) + VALUES (43, 4, N'PORTAPEZZO', 1) +INSERT INTO dbo.AnagCausali + (idxCausale, idxFamMacchine, descrCausale, attiva) + VALUES (44, 4, N'MOLE E DIAMANTI', 1) +INSERT INTO dbo.AnagCausali + (idxCausale, idxFamMacchine, descrCausale, attiva) + VALUES (45, 4, N'MONITOR', 1) +INSERT INTO dbo.AnagCausali + (idxCausale, idxFamMacchine, descrCausale, attiva) + VALUES (46, 4, N'CARICATORE', 1) +INSERT INTO dbo.AnagCausali + (idxCausale, idxFamMacchine, descrCausale, attiva) + VALUES (47, 4, N'CINGHIA E INGRANAGGI', 1) +INSERT INTO dbo.AnagCausali + (idxCausale, idxFamMacchine, descrCausale, attiva) + VALUES (48, 5, N'MONITOR', 1) +INSERT INTO dbo.AnagCausali + (idxCausale, idxFamMacchine, descrCausale, attiva) + VALUES (49, 5, N'CINGHIA', 1) +INSERT INTO dbo.AnagCausali + (idxCausale, idxFamMacchine, descrCausale, attiva) + VALUES (50, 6, N'RULLI', 1) +INSERT INTO dbo.AnagCausali + (idxCausale, idxFamMacchine, descrCausale, attiva) + VALUES (51, 6, N'CATENE', 1) +INSERT INTO dbo.AnagCausali + (idxCausale, idxFamMacchine, descrCausale, attiva) + VALUES (52, 6, N'CENTRAGGIO', 1) +INSERT INTO dbo.AnagCausali + (idxCausale, idxFamMacchine, descrCausale, attiva) + VALUES (53, 3, N'ATTREZZATURE DI BLOCCAGGIO', 1) +INSERT INTO dbo.AnagCausali + (idxCausale, idxFamMacchine, descrCausale, attiva) + VALUES (54, 3, N'GANCIO-CATENA-CORDA ACCIAIO', 1) +GO + +SET IDENTITY_INSERT dbo.AnagCausali OFF +GO + +COMMIT TRANSACTION +GO + + +SET xact_abort ON +GO + +BEGIN TRANSACTION +GO + +SET IDENTITY_INSERT dbo.AnagImpianti ON +GO + +UPDATE dbo.AnagImpianti SET + nomeImpianto=N'MANUTENZIONE' + WHERE idxImpianto=1 +UPDATE dbo.AnagImpianti SET + codImpianto=N'35', nomeImpianto=N'QUALITA'' (35)' + WHERE idxImpianto=2 +UPDATE dbo.AnagImpianti SET + codImpianto=N'04', nomeImpianto=N'TORNITURA (04)' + WHERE idxImpianto=3 +UPDATE dbo.AnagImpianti SET + codImpianto=N'11', nomeImpianto=N'DENTATURA (11)' + WHERE idxImpianto=4 +UPDATE dbo.AnagImpianti SET + codImpianto=N'12', nomeImpianto=N'GLEASON (12)' + WHERE idxImpianto=5 +UPDATE dbo.AnagImpianti SET + codImpianto=N'20', nomeImpianto=N'AFFILATURA (20)' + WHERE idxImpianto=6 +UPDATE dbo.AnagImpianti SET + codImpianto=N'01', nomeImpianto=N'SEGHETTI (01)' + WHERE idxImpianto=7 +UPDATE dbo.AnagImpianti SET + codImpianto=N'05', nomeImpianto=N'TRAPANI (05)' + WHERE idxImpianto=8 +UPDATE dbo.AnagImpianti SET + codImpianto=N'07', nomeImpianto=N'SBAVATURA (07)' + WHERE idxImpianto=9 +UPDATE dbo.AnagImpianti SET + codImpianto=N'15', nomeImpianto=N'RETTIFICHE SCANALATI (15)' + WHERE idxImpianto=10 +UPDATE dbo.AnagImpianti SET + codImpianto=N'14', nomeImpianto=N'RETTIFICHE ESTERNE (14)' + WHERE idxImpianto=11 +UPDATE dbo.AnagImpianti SET + codImpianto=N'08', nomeImpianto=N'FRESATURA (08)' + WHERE idxImpianto=12 +UPDATE dbo.AnagImpianti SET + codImpianto=N'19', nomeImpianto=N'RETTIFICHE DENTI (19)' + WHERE idxImpianto=13 +UPDATE dbo.AnagImpianti SET + codImpianto=N'17', nomeImpianto=N'SERVIZI PER RETTIFICHE (17)' + WHERE idxImpianto=14 +UPDATE dbo.AnagImpianti SET + codImpianto=N'16', nomeImpianto=N'RETTIFICHE FILETTI (16)', tipoImpianto=N'Reparto' + WHERE idxImpianto=15 +UPDATE dbo.AnagImpianti SET + codImpianto=N'18', nomeImpianto=N'RETTIFICHE INTERNE (18)', tipoImpianto=N'Reparto' + WHERE idxImpianto=16 +INSERT INTO dbo.AnagImpianti + (idxImpianto, codImpianto, nomeImpianto, tipoImpianto, funzDal, funzAl) + VALUES (17, N'06', N'BROCCIATURA (06)', N'Reparto', '1900-01-01 00:00:00.000', '2100-12-31 00:00:00.000') +INSERT INTO dbo.AnagImpianti + (idxImpianto, codImpianto, nomeImpianto, tipoImpianto, funzDal, funzAl) + VALUES (18, N'10', N'LAVORAZIONI AL BANCO (10)', N'Reparto', '1900-01-01 00:00:00.000', '2100-12-31 00:00:00.000') +INSERT INTO dbo.AnagImpianti + (idxImpianto, codImpianto, nomeImpianto, tipoImpianto, funzDal, funzAl) + VALUES (19, N'25', N'LAVATRICI (25)', N'Reparto', '1900-01-01 00:00:00.000', '2100-12-31 00:00:00.000') +INSERT INTO dbo.AnagImpianti + (idxImpianto, codImpianto, nomeImpianto, tipoImpianto, funzDal, funzAl) + VALUES (20, N'21', N'UNIVERSALE (21)', N'Reparto', '1900-01-01 00:00:00.000', '2100-12-31 00:00:00.000') +INSERT INTO dbo.AnagImpianti + (idxImpianto, codImpianto, nomeImpianto, tipoImpianto, funzDal, funzAl) + VALUES (21, N'OBSO', N'OBSOLETE (TRESCORE 2)', N'VIRTUALE', '1900-01-01 00:00:00.000', '2100-12-31 00:00:00.000') +INSERT INTO dbo.AnagImpianti + (idxImpianto, codImpianto, nomeImpianto, tipoImpianto, funzDal, funzAl) + VALUES (22, N'09', N'ARROTONDATRICI (09)', N'Reparto', '1900-01-01 00:00:00.000', '2100-12-31 00:00:00.000') +INSERT INTO dbo.AnagImpianti + (idxImpianto, codImpianto, nomeImpianto, tipoImpianto, funzDal, funzAl) + VALUES (23, N'ENTR', N'ENTRATICO', N'Reparto', '1900-01-01 00:00:00.000', '2100-12-31 00:00:00.000') +INSERT INTO dbo.AnagImpianti + (idxImpianto, codImpianto, nomeImpianto, tipoImpianto, funzDal, funzAl) + VALUES (24, N'45', N'UFFICI/SERVIZI (45)', N'VIRTUALE', '1900-01-01 00:00:00.000', '2100-12-31 00:00:00.000') +GO + +SET IDENTITY_INSERT dbo.AnagImpianti OFF +GO + +COMMIT TRANSACTION +GO + +SET xact_abort ON +GO + +BEGIN TRANSACTION +GO + +SET IDENTITY_INSERT dbo.AnagMacchine ON +GO + +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (425, 7, N'--SE/1', N'Segatrice a nastro', N'DAITO GA 260 W', N'-', 1988, 1, 1, '1988-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (426, 7, N'--SE/2', N'Segatrice a nastro', N'DAITO GA 260 W', N'-', 1988, 1, 1, '1988-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (427, 3, N'---LP1', N'ISOLA TORNITURA+DENTATURA+SBAVATURA', N'MAZAK+SAMP+GLEASON', N'-', 1900, 1, 1, '1900-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (428, 13, N'--EM/7', N'Tornio verticale CN con caricatore', N'EMAG VSC 7', N'-', 2007, 1, 1, '2007-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (429, 3, N'--DT20', N'Tornio a 2 teste CN con portale (isola LP1)', N'MAZAK DT20', N'-', 2005, 1, 1, '2005-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (430, 13, N'EM3152', N'Tornio verticale CN con caricatore', N'EMAG VSC 315', N'-', 2005, 1, 1, '2005-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (431, 13, N'-EM400', N'Tornio verticale CN con caricatore', N'EMAG VSC 400', N'-', 1999, 1, 1, '1999-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (432, 3, N'MT5003', N'Tornio CN con portale', N'GRAZIANO MT500 CNC', N'-', 1998, 1, 1, '1998-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (433, 13, N'-EM315', N'Tornio verticale CN con caricatore', N'EMAG VSC 315', N'-', 1997, 1, 1, '1997-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (434, 3, N'---PDF', N'Tornio frontale a 2 teste CN', N'PITTLER 200 CNC PDF', N'-', 1995, 1, 1, '1995-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (435, 3, N'MT5002', N'Tornio CN con portale', N'GRAZIANO MT500 CNC', N'-', 1995, 1, 1, '1995-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (436, 3, N'-MT500', N'Tornio CN con portale', N'GRAZIANO MT500 CNC', N'-', 1994, 1, 1, '1994-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (437, 3, N'--P200', N'Tornio frontale a 2 teste CN con robot', N'PITTLER 200 CNC PETRA 1', N'-', 1989, 1, 1, '1989-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (438, 3, N'-OK165', N'Tornio frontale a 2 teste CN', N'OKUMA 165 CNC', N'-', 1989, 1, 1, '1989-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (439, 3, N'--P315', N'Tornio frontale a 2 teste CN', N'PITTLER 315 CNC PETRA 2', N'-', 1988, 1, 1, '1988-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (440, 3, N'--P250', N'Tornio frontale a 2 teste CN con robot', N'PITTLER 250 CNC PETRA 1', N'-', 1987, 1, 1, '1987-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (441, 3, N'--TP/1', N'Tornio parallelo', N'CMT URSUS 225', N'-', 1980, 1, 1, '1980-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (442, 3, N'--TP/2', N'Tornio parallelo', N'CMT URSUS 225', N'-', 1985, 1, 1, '1985-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (443, 13, N'-FZ350', N'Tornio verticale CN a 2 teste con caricatore', N'TORNIO FELSOMAT FZ350', N'-', 2008, 1, 1, '2008-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (444, 8, N'-TMB/1', N'Trapano multiplo', N'BERARDI VB II Z', N'-', 1980, 1, 1, '1980-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (445, 8, N'-TMB/2', N'Trapano multiplo', N'BERARDI VB II Z', N'-', 1980, 1, 1, '1980-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (446, 8, N'---TMO', N'Trapano multiplo', N'OLIVETTI', N'-', 1978, 1, 1, '1978-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (447, 8, N'----TO', N'Trapano', N'OLIVETTI', N'-', 1975, 1, 1, '1975-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (448, 8, N'---MCX', N'Trapano', N'SERRMAC', N'-', 1900, 1, 1, '1900-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (449, 8, N'RECORD', N'Maschiatrice', N'RECORD', N'-', 1993, 1, 1, '1993-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (450, 8, N'---MJN', N'Maschiatrice', N'JOANNES', N'-', 1978, 1, 1, '1978-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (451, 17, N'--BV25', N'Brocciatrice', N'VARINELLI 25 TON', N'-', 1981, 1, 1, '1981-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (452, 17, N'--BVM6', N'Brocciatrice', N'VARINELLI 6 TON', N'-', 1980, 1, 1, '1980-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (453, 9, N'--GR/5', N'Sbavatrice GR/5', N'MPM SAG50/PN', N'-', 1978, 1, 1, '1978-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (454, 9, N'--GR/4', N'Sbavatrice GR/4', N'MINITOOLS MT600', N'-', 1990, 1, 1, '1990-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (455, 9, N'--GR/7', N'Smussatrice GR/7', N'RAVAGLIA', N'-', 2005, 1, 1, '2005-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (456, 9, N'--GR/8', N'Smussatrice GR/8', N'RAVAGLIA', N'-', 2005, 1, 1, '2005-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (457, 9, N'--GR/3', N'Sbavatrice GR/3', N'MPM', N'-', 1988, 1, 1, '1988-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (458, 3, N'no ID (isola LP1)', N'Sbavatrice (in Isola LP1)', N'SAMPUTENSILI ', N'-', 2004, 1, 1, '2004-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (459, 9, N'---SCT', N'Sbavatrice', N'SAMPUTENSILI SCT3', N'-', 1998, 1, 1, '1998-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (460, 9, N'-SCT/2', N'Sbavatrice', N'SAMPUTENSILI SCT3', N'-', 2008, 1, 1, '2008-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (461, 9, N'--GR/1', N'Sbavatrice GR/1', N'GRATOMAT KGG533', N'-', 1979, 1, 1, '1979-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (462, 9, N'--GR/2', N'Sbavatrice GR/2', N'GRATOMAT 300L', N'-', 1989, 1, 1, '1989-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (463, 12, N'-V5005', N'Centro di lavoro CN', N'DOOSAN VC500', N'-', 2007, 1, 1, '2007-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (464, 12, N'-V5004', N'Centro di lavoro CN', N'DOOSAN VC500', N'-', 2007, 1, 1, '2007-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (465, 12, N'--V500', N'Centro di lavoro CN', N'DAEWOO ACE VC500', N'-', 2000, 1, 1, '2000-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (466, 12, N'-V5002', N'Centro di lavoro CN', N'DAEWOO ACE VC500', N'-', 2001, 1, 1, '2001-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (467, 12, N'-V5003', N'Centro di lavoro CN', N'DAEWOO ACE VC500', N'-', 2005, 1, 1, '2005-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (468, 12, N'--V400', N'Centro di lavoro CN', N'DAEWOO ACE V400', N'-', 1998, 1, 1, '1998-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (469, 12, N'----MK', N'Fresatrice CN', N'MIKRON WF 31 CNC', N'-', 1989, 1, 1, '1989-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (470, 12, N'--V650', N'Centro di lavoro CN', N'DOOSAN MYNX 650', N'-', 2008, 1, 1, '2008-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (471, 3, N'-GP20A', N'Dentatrice a creatore CN con caricatore (isola LP1)', N'GLEASON PFAUTER GP 200', N'-', 2005, 1, 1, '2005-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (472, 4, N'P180/1', N'Dentatrice a creatore CN con caricatore', N'PFAUTER PA 180 CNC', N'-', 2001, 1, 1, '2001-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (473, 4, N'P300/1', N'Dentatrice a creatore CN con caricatore', N'PFAUTER PE 300 CNC', N'-', 1997, 1, 1, '1997-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (474, 4, N'P250/1', N'Dentatrice a creatore CN con caricatore', N'PFAUTER PE 250 CNC', N'-', 1995, 1, 1, '1995-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (475, 4, N'H280C1', N'Dentatrice a creatore CN con caricatore', N'HURTH WF 280', N'-', 1988, 1, 1, '1988-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (476, 4, N'H280/1', N'Dentatrice a creatore', N'HURTH WF 280', N'-', 1983, 1, 1, '1983-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (477, 4, N'P160/1', N'Dentatrice a creatore CNC', N'PFAUTER P160 H/11', N'-', 1990, 1, 1, '1990-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (478, 4, N'P160H1', N'Dentatrice a creatore', N'PFAUTER P160 H/11', N'-', 1983, 1, 1, '1983-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (479, 4, N'P403/1', N'Dentatrice a creatore', N'PFAUTER P403', N'-', 1983, 1, 1, '1983-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (480, 4, N'P630/1', N'Dentatrice a creatore CNC', N'PFAUTER P630', N'-', 2005, 1, 1, '2005-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (481, 4, N'P400/1', N'Dentatrice a creatore', N'PFAUTER P400', N'-', 1972, 1, 1, '1972-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (482, 4, N'--LS/2', N'Dentatrice a stozzare con robot', N'LORENZ LS 200', N'-', 2001, 1, 1, '2001-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (483, 4, N'-SNJ/3', N'Dentatrice a stozzare', N'LORENZ SNJ 5 AUTO', N'-', 2001, 1, 1, '2001-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (484, 4, N'--LS/1', N'Dentatrice a stozzare', N'LORENZ LS 302', N'-', 1986, 1, 1, '1986-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (485, 21, N'-SN4/2', N'Dentatrice a stozzare', N'LORENZ SN 4', N'-', 1969, 1, 1, '1969-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (486, 4, N'-SNJ/1', N'Dentatrice a stozzare', N'LORENZ SNJ 5', N'-', 1962, 1, 1, '1962-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (487, 21, N'-SNJ/2', N'Dentatrice a stozzare', N'LORENZ SNJ 5', N'-', 1962, 1, 1, '1962-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (488, 13, N'---LP2', N'ISOLA RETTIFICA E LAPPATURA', N'MORARA+STUDER', N'-', 1900, 1, 1, '1900-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (489, 13, N'STU1/1', N'Rettifica per esterni CN con caricatore (isola LP2)', N'STUDER ECO 1000', N'-', 2003, 1, 1, '2003-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (490, 11, N'K175/1', N'Rettifica per esterni CN', N'KELLENBERGER R 175 CN', N'-', 1988, 1, 1, '1988-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (491, 11, N'K175/2', N'Rettifica per esterni CN', N'KELLENBERGER R 175 CN', N'-', 1994, 1, 1, '1994-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (492, 11, N'--K125', N'Rettifica per esterni', N'KELLENBERGER R 125', N'-', 1987, 1, 1, '1987-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (493, 11, N'TA1018', N'Rettifica per esterni', N'TACCHELLA UM 1018', N'-', 1986, 1, 1, '1986-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (494, 11, N'-TA612', N'Rettifica per esterni', N'TACCHELLA UN 612', N'-', 1986, 1, 1, '1986-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (495, 10, N'-RE12K', N'Rettifica per alberi scanalati CN', N'F.W. REFORM KSA 1200 CN', N'-', 1990, 1, 1, '1990-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (496, 6, N'--RIT4', N'Affilatrice/Rettifica per innesti', N'TACCHELLA 4 AM', N'-', 1986, 1, 1, '1986-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (497, 11, N'----FV', N'Rettifica piani a tavola rotante', N'FAVRETTO MR 75 CN', N'-', 1988, 1, 1, '1988-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (498, 14, N'----RC', N'Rettifica centri', N'TECHNICA ZSM 6-5100-810', N'-', 1994, 1, 1, '1994-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (499, 15, N'no ID', N'Rettifica filetti', N'REISHAUER US', N'-', 1981, 1, 1, '1981-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (500, 15, N'-RFMSO', N'Rettifica filetti', N'MSO GA-2', N'-', 1979, 1, 1, '1979-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (501, 15, N'no ID', N'Affilatrice per creatori rettifica filetti', N'REISHAUER US', N'-', 1981, 1, 1, '1981-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (502, 16, N'--VM40', N'Rettifica per interni CN', N'VOUMARD 403 Y CN', N'-', 2003, 1, 1, '2003-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (503, 16, N'--VM15', N'Rettifica per interni CN', N'VOUMARD 150 CNC', N'-', 2002, 1, 1, '2002-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (504, 16, N'--VM5N', N'Rettifica per interni CN', N'VOUMARD 5N CN', N'-', 1999, 1, 1, '1999-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (505, 16, N'-MRE44', N'Rettifica per interni CN', N'MORARA 700 CN', N'-', 1989, 1, 1, '1989-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (506, 16, N'--MRIE', N'Rettifica per interni CN', N'MORARA MICRO I-E CN', N'-', 1987, 1, 1, '1987-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (507, 16, N'-VM5/1', N'Rettifica per interni', N'VOUMARD 5A', N'-', 1978, 1, 1, '1978-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (508, 16, N'-VM5/2', N'Rettifica per interni', N'VOUMARD 5A', N'-', 1979, 1, 1, '1979-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (509, 16, N'-VM5/3', N'Rettifica per interni', N'VOUMARD 5A', N'-', 1980, 1, 1, '1980-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (510, 16, N'-IC2MC', N'Rettifica per interni CN (in isola LP2)', N'MORARA I/C 2M', N'-', 2005, 1, 1, '2005-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (511, 16, N'--SN/2', N'Lappatrice (in isola LP2)', N'SUNNEN ML-2000', N'-', 2005, 1, 1, '2005-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (512, 16, N'----SN', N'Lappatrice', N'SUNNEN MBB1680A', N'-', 1983, 1, 1, '1983-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (513, 13, N'-RZ400', N'Rettifica denti CN con robot', N'REISHAUER RZ 400', N'-', 2005, 1, 1, '2005-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (514, 13, N'RZ4002', N'Rettifica denti CN con robot', N'REISHAUER RZ 400', N'-', 2006, 1, 1, '2006-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (515, 13, N'RZ4003', N'Rettifica denti CN con robot', N'REISHAUER RZ 400', N'-', 2008, 1, 1, '2008-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (516, 13, N'-RZ150', N'Rettifica denti CN con robot', N'REISHAUER RZ 150', N'-', 2003, 1, 1, '2003-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (517, 13, N'-RZ362', N'Rettifica denti CN ', N'REISHAUER RZ 362 A', N'-', 1997, 1, 1, '1997-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (518, 13, N'RZ362C', N'Rettifica denti CN ', N'REISHAUER RZ 362 A', N'-', 1998, 1, 1, '1998-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (519, 13, N'RZ362P', N'Rettifica denti CN ', N'REISHAUER RZ 362 A', N'-', 2000, 1, 1, '2000-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (520, 13, N'--RZ/2', N'Rettifica denti elettronica', N'REISHAUER RZ 300 E', N'-', 1996, 1, 1, '1996-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (521, 13, N'-RZ820', N'Rettifica denti CN', N'REISHAUER RZ 820 CN', N'-', 1995, 1, 1, '1995-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (522, 13, N'--RZAS', N'Rettifica denti CN', N'REISHAUER RZ 301 AS CN', N'-', 1994, 1, 1, '1994-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (523, 13, N'---RZS', N'Rettifica denti CN', N'REISHAUER RZ 301 S CN', N'-', 1989, 1, 1, '1989-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (524, 13, N'----ZB', N'Rettifica denti', N'REISHAUER ZB', N'-', 1979, 1, 1, '1979-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (525, 18, N'-H20BU', N'Bilanciatrice CN', N'SCHENCK H280BU', N'-', 1998, 1, 1, '1998-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (526, 19, N'no ID', N'Lavatrice', N'CEMASTIR TURBO LC1000', N'-', 1900, 1, 1, '1900-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (527, 19, N'no ID', N'Lavatrice (in RZ150)', N'TECNOFIRMA', N'-', 1900, 1, 1, '1900-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (528, 19, N'no ID', N'Lavatrice (in RZ400)', N'CP3', N'-', 1900, 1, 1, '1900-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (529, 19, N'nd', N'Lavatrice (dentatura - su H280C)', N'', N'-', 1900, 1, 1, '1900-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (530, 19, N'nd', N'Lavatrice (dentatura - su P250/P300)', N'', N'-', 1900, 1, 1, '1900-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (531, 14, N'----GB', N'Raddrizzatrice', N'GALDABINI RPRS/25', N'-', 1970, 1, 1, '1970-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (532, 14, N'no ID', N'Diamantatrici per mole', N'REISHAUER AM10', N'-', 1987, 1, 1, '1987-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (533, 14, N'no ID', N'Diamantatrici per mole', N'REISHAUER AM10', N'-', 1987, 1, 1, '1987-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (534, 14, N'no ID', N'Bilanciatrice per mole', N'HOFFMAN', N'-', 1900, 1, 1, '1900-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (535, 18, N'--PR/1', N'Pressa cecatura fase', N'SOMASCHINI', N'-', 1900, 1, 1, '1900-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (536, 18, N'--PR/2', N'Macchina piantaggio spine Mercedes Z92', N'NUOVA VAEP MA0079', N'-', 2006, 1, 1, '2006-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (537, 18, N'--PR/3', N'Macchina piantaggio spine Mercedes Z46', N'SOMASCHINI', N'-', 1900, 1, 1, '1900-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (538, 18, N'---STR', N'Punzonatrice a rullare', N'SOMAUT-AUTOMATOR', N'-', 1900, 1, 1, '1900-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (539, 18, N'--ST/1', N'Punzonatrice', N'AUTOMATOR 35/S', N'-', 2004, 1, 1, '2004-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (540, 18, N'--ST/2', N'Punzonatrice', N'AUTOMATOR MB35', N'-', 1900, 1, 1, '1900-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (541, 18, N'--PRCM', N'Pressa', N'CMP T150', N'-', 1999, 1, 1, '1999-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (542, 18, N'----PR', N'Pressa', N'OMCN 161/R T40', N'-', 1900, 1, 1, '1900-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (543, 18, N'---BA3', N'BANCO ASSEMBLAGGIO TRIPLO MERCEDES', N'SOMASCHINI', N'-', 1900, 1, 1, '1900-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (544, 18, N'no ID', N'BANCO LAVORO', N'SOMASCHINI', N'-', 1900, 1, 1, '1900-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (545, 18, N'no ID', N'SPAZZOLATRICE', N'ACETI MACCHINE 9532', N'-', 2006, 1, 1, '2006-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (546, 18, N'no ID', N'MARCATRICE', N'RR AXTRON T2000', N'-', 2008, 1, 1, '2008-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (547, 18, N'no ID', N'FORNO INVECCHIAMENTO', N'INOX2', N'-', 1900, 1, 1, '1900-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (548, 18, N'no ID', N'CELLA FRIGO', N'LINDE 77/73', N'-', 1900, 1, 1, '1900-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (549, 6, N'no ID', N'KLINGELNBERG TF1584', N'KLINGELNBERG TF1584', N'-', 1900, 1, 1, '1900-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (550, 6, N'no ID', N'AFFILATRICE', N'CUOGHI', N'-', 1992, 1, 1, '1992-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (551, 6, N'-RSWK3', N'AFFILATRICE', N'SCHUTTE WU3', N'-', 1900, 1, 1, '1900-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (552, 6, N'no ID', N'CINCINNATI OM', N'CINCINNATI OM', N'-', 1900, 1, 1, '1900-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (553, 6, N'no ID', N'ZOCCA RPV650', N'ZOCCA RPV650', N'-', 1900, 1, 1, '1900-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (554, 20, N'nd', N'MACCHINA UNIVERSALE', N'', N'-', 1900, 1, 1, '1900-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (555, 23, N'-L502A', N'Dentatrice a creatore', N'LIEBHERR LC 502 CNC', N'-', 2005, 1, 1, '2005-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (556, 23, N'nd', N'DENTATRICE A CREATORE', N'GLEASON PFAUTER GP200CN', N'-', 2007, 1, 1, '2007-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (557, 23, N'no ID', N'PRESSA', N'OMCN 161/R 40 TON', N'-', 2008, 1, 1, '2008-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (558, 23, N'no ID', N'MARCATRICE', N'RR AXTRON T2000', N'-', 2007, 1, 1, '2007-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (559, 23, N'--MW1A + --MW2A', N'TORNIO (LINEA A-BIANCO)', N'MURATEC MW200-1', N'-', 2007, 1, 1, '2007-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (560, 23, N'-LC30A', N'DENTATRICE A CREATORE (LINEA A-BIANCO)', N'LIEBHERR LC180', N'-', 2007, 1, 1, '2007-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (561, 23, N'-S250A', N'SBAVATRICE (LINEA A-BIANCO)', N'SAMPUTENSILI S250CD', N'-', 2008, 1, 1, '2008-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (562, 23, N'--MW1B + --MW2B', N'TORNIO (LINEA B-BIANCO)', N'MURATEC MW200-1', N'-', 2007, 1, 1, '2007-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (563, 23, N'-LC30B', N'DENTATRICE A CREATORE (LINEA B-BIANCO)', N'LIEBHERR LC300', N'-', 2007, 1, 1, '2007-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (564, 23, N'-S250B', N'SBAVATRICE (LINEA B-BIANCO)', N'SAMPUTENSILI S250CD', N'-', 2008, 1, 1, '2008-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (565, 23, N'--HX30', N'CENTRO DI LAVORO CN', N'KITAMURA HX300IF', N'-', 2007, 1, 1, '2007-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (566, 23, N'---BRE', N'BROCCIATRICE', N'MANACA', N'-', 2007, 1, 1, '2007-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (567, 23, N'-VSC1A + -VSC2A', N'TORNIO (LINEA A-DOPO T.T.)', N'EMAG VSC315', N'-', 2007, 1, 1, '2007-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (568, 23, N'-R303A', N'RETTIFICA DENTI (LINEA A-DOPO T.T.)', N'REISHAUER RZ303C', N'-', 2008, 1, 1, '2008-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (569, 23, N'no ID', N'LAVATRICE (LINEA A-DOPO T.T.)', N'TECNOFIRMA SAT-LIN', N'-', 2008, 1, 1, '2008-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (570, 23, N'-VSC1B + -VSC2B', N'TORNIO (LINEA B-DOPO T.T.)', N'EMAG VSC315', N'-', 2007, 1, 1, '2007-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (571, 23, N'-R303B', N'RETTIFICA DENTI (LINEA B-DOPO T.T.)', N'REISHAUER RZ303C', N'-', 2008, 1, 1, '2008-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (572, 23, N'no ID', N'LAVATRICE (LINEA B-DOPO T.T.)', N'TECNOFIRMA SAT-LIN', N'-', 2008, 1, 1, '2008-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (573, 23, N'--ASDU', N'CELLA SIR PER MONTAGGIO DUPLO', N'SIR 2062R1', N'-', 2007, 1, 1, '2007-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (574, 23, N'nd', N'PRESSA ASSEMBLAGGIO DUPLO (FASE 10)', N'SIR', N'-', 2007, 1, 1, '2007-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (575, 23, N'no ID', N'FORNO A INDUZIONE (FASE 10)', N'ATE-IFC 15/2', N'-', 2007, 1, 1, '2007-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (576, 23, N'no ID', N'VASCA DI RAFFREDDAMENTO (FASE 10)', N'CEEVER AGITO', N'-', 2007, 1, 1, '2007-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (577, 23, N'-CESP', N'CENTRO DI LAVORO CN (FASE 20-SPINATURA)', N'DAEWOO VC500', N'-', 2008, 1, 1, '2008-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (578, 23, N'--ASBU', N'CELLA SIR PER ASSEMBLAGGIO BUSSOLA', N'SIR 2062R2', N'-', 2007, 1, 1, '2007-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (579, 23, N'--VSCM', N'TORNIO (FASE 30)', N'EMAG VSC315', N'-', 2007, 1, 1, '2007-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (580, 23, N'nd', N'PRESSA ASSEMBLAGGIO BUSSOLA (FASE 40) + MARPOSS', N'SIR', N'-', 2007, 1, 1, '2007-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (581, 23, N'no ID', N'LAVATRICE (FASE 60)', N'TECNOFIRMA SAT 3-10', N'-', 2007, 1, 1, '2007-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (582, 21, N'non necessario', N'Tornio CN', N'CASTOR FNC 45 CNC', N'-', 1986, 1, 1, '1986-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (583, 21, N'non necessario', N'Trapano', N'AUDAX', N'-', 1900, 1, 1, '1900-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (584, 21, N'non necessario', N'Trapano multiplo', N'BERARDI VBM II', N'-', 1995, 1, 1, '1995-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (585, 21, N'non necessario', N'Trapano a colonna', N'CABER', N'-', 1972, 1, 1, '1972-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (586, 21, N'non necessario', N'Trapano multiplo', N'FAMUP', N'-', 1900, 1, 1, '1900-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (587, 21, N'non necessario', N'Sbavatrice 2 teste', N'TECNOMACCHINE TM 200', N'-', 2003, 1, 1, '2003-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (588, 21, N'non necessario', N'Fresatrice CN', N'RIVA CNC', N'-', 1985, 1, 1, '1985-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (589, 21, N'non necessario', N'Rasatrice', N'HURTH ZSA 320', N'-', 1984, 1, 1, '1984-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (590, 21, N'non necessario', N'Rettifica per esterni CN con caricatore', N'MORARA EA 700 CN', N'-', 1996, 1, 1, '1996-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (591, 21, N'non necessario', N'Rettifica per interni', N'VOUMARD 251 L6 / 550', N'-', 1979, 1, 1, '1979-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (592, 21, N'non necessario', N'Rettifica per alberi scanalati CN', N'F.W. REFORM SK12A CN', N'-', 1985, 1, 1, '1985-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (593, 21, N'non necessario', N'Rettifica filetti', N'REISHAUER G4-I', N'-', 1974, 1, 1, '1974-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (594, 21, N'non necessario', N'Rettifica per interni', N'WOTAN RJ 133', N'-', 1977, 1, 1, '1977-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (595, 21, N'non necessario', N'Rettifica denti elettronica', N'REISHAUER RZ 300 E', N'-', 1988, 1, 1, '1988-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (596, 21, N'non necessario', N'Rettifica denti', N'REISHAUER AZA', N'-', 1900, 1, 1, '1900-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (597, 21, N'non necessario', N'Lappatrice per ingranaggi', N'FÄSSLER D-250', N'-', 1993, 1, 1, '1993-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (598, 21, N'non necessario', N'Rettifica per esterni', N'MSO FH 300x500', N'-', 1900, 1, 1, '1900-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (599, 21, N'non necessario', N'Dentatrice a creatore', N'PFAUTER RS9 KS', N'-', 1972, 1, 1, '1972-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (600, 22, N'--PK15', N'Arrotondatrice per dentature', N'PICCO K15', N'-', 1980, 1, 1, '1980-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (601, 5, N'G175/7 + G175/8', N'Dentatrice conica spirale CN', N'GLEASON G175 CNC PHOENIX', N'-', 2006, 1, 1, '2006-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (602, 5, N'G116', N'Dentatrice conica spirale CN', N'GLEASON 116 CNC', N'-', 1900, 1, 1, '1900-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (603, 5, N'G106/2', N'Dentatrice conica spirale', N'GLEASON 106', N'-', 1989, 1, 1, '1989-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (604, 5, N'G106/1', N'Dentatrice conica spirale', N'GLEASON 106 REMAUT CNC', N'-', 2008, 1, 1, '2008-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (605, 5, N'RD503', N'Lappatrice per coppie coniche Gleason', N'GLEASON LAPPER 503', N'-', 1998, 1, 1, '1998-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (606, 5, N'RD/1+RD/2', N'Lappatrice per coppie coniche Gleason', N'GLEASON LAPPER 119 HYPOID', N'-', 1900, 1, 1, '1900-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (607, 5, N'CRD5 4', N'Tester di controllo coppie coniche Gleason', N'TESTER 5" (REVISIONATO 2008)', N'-', 1900, 1, 1, '1900-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (608, 5, N'CRD6 1/2/3/5', N'Tester di controllo coppie coniche Gleason', N'TESTER 6"', N'-', 1900, 1, 1, '1900-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (609, 5, N'CRD17A 1/2/3/5/7/8', N'Tester di controllo coppie coniche Gleason', N'TESTER 17A', N'-', 1900, 1, 1, '1900-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (610, 5, N'CRD502 4/6', N'Tester di controllo coppie coniche Gleason', N'TESTER 502', N'-', 1900, 1, 1, '1900-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (611, 5, N'CRD13', N'Tester di controllo coppie coniche Gleason', N'TESTER 13', N'-', 1985, 1, 1, '1985-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (612, 11, N'---MSO', N'Rettifica per esterni', N'MSO FH 300x500', N'-', 1900, 1, 1, '1900-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (613, 7, N'----IC', N'Intestatrice Centratrice', N'MACHINTEST M25/M35T', N'-', 1990, 1, 1, '1990-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (614, 2, N'nd', N'Centro CN di misurazione 3D', N'ZEISS PRISMO 9/12/7', N'-', 1998, 1, 1, '1998-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (615, 2, N'nd', N'Centro CN di misurazione ingr.', N'HÖFLER ZP 630 CN', N'-', 1996, 1, 1, '1996-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (616, 2, N'nd', N'Centro CN di misurazione ingr.', N'HÖFLER EMZ 632 CN', N'-', 1990, 1, 1, '1990-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (617, 2, N'nd', N'Ingranometro', N'HÖFLER ZW630 CN', N'-', 1995, 1, 1, '1995-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (618, 2, N'nd', N'Macchina prova rumorosità', N'HURTH ZP 300', N'-', 1900, 1, 1, '1900-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (619, 2, N'nd', N'Rugosimetro', N'PERTHEN S5P', N'-', 1900, 1, 1, '1900-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (620, 2, N'nd', N'Durometro', N'WOLPERT DIA-TESTOR 1551', N'-', 1995, 1, 1, '1995-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (621, 2, N'nd', N'Durometro', N'REICHERTER', N'-', 1900, 1, 1, '1900-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (622, 2, N'nd', N'Durometro', N'GALILEO', N'-', 1900, 1, 1, '1900-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (623, 2, N'nd', N'Proiettore di profili', N'HAUSER', N'-', 1900, 1, 1, '1900-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (624, 2, N'nd', N'Apparecchio altimetro digitale con controp.', N'DIGIMAR 817C', N'-', 1990, 1, 1, '1990-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (625, 2, N'nd', N'Interassimetro', N'PARKSON', N'-', 1900, 1, 1, '1900-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (626, 2, N'nd', N'Apparecchio controllo conicita'' pneum./elettr.', N'STOTZ DLS-27', N'-', 1996, 1, 1, '1996-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (627, 2, N'nd', N'Appararecchio controllo strumenti di misura', N'JOINT DMS 680', N'-', 1995, 1, 1, '1995-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (628, 2, N'nd', N'Profilometro', N'MAHR - PERTHOMETER PRK', N'-', 1997, 1, 1, '1997-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (629, 2, N'nd', N'Appararecchio prova bruciature', N'ROLLSCAN 200-1', N'-', 1997, 1, 1, '1997-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (630, 2, N'nd', N'Apparecchio per coni', N'STOTZ - DLS 27 M1 (4 elementi)', N'-', 1997, 1, 1, '1997-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (631, 2, N'nd', N'Altimetro', N'TESA - MICROHITE', N'-', 1998, 1, 1, '1998-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (632, 2, N'nd', N'Troncatrice', N'IMPTECH - C 10', N'-', 1998, 1, 1, '1998-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (633, 2, N'nd', N'Inglobatrice', N'BUEHLER - SIMPLIMET 2000', N'-', 1998, 1, 1, '1998-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (634, 2, N'nd', N'Levigatrice', N'BUEHLER - METASERV 2000', N'-', 1998, 1, 1, '1998-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (635, 2, N'nd', N'Microdurometro', N'FUTURE TECH - FM-7', N'-', 1998, 1, 1, '1998-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (636, 2, N'---MGX', N'MAGNETOSCOPIO', N'MAGNISCOP CGM CEMSAFOS 1000', N'-', 2000, 1, 1, '2000-01-01 12:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (638, 1, N'0000', N'-- [NUOVA] Nome Macchina non definito --', N'modello n.d.', N'', 2009, 0, 0, '2009-03-10 00:00:00.000', '2019-03-10 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (645, 1, N'0000', N'-- [NUOVA] Nome Macchina non definito --', N'modello n.d.', N'', 2009, 0, 0, '2009-03-10 00:00:00.000', '2019-03-10 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (647, 24, N'TM', N'UFFICIO TEMPI E METODI', N'ND', NULL, 2009, 0, 0, '2009-03-10 00:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (648, 24, N'UT', N'UFFICIO TECNICO', N'ND', NULL, 2009, 0, 0, '2009-03-10 00:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (649, 24, N'PRG', N'UFFICIO PROGRAMMAZIONE', N'ND', NULL, 2009, 0, 0, '2009-03-10 00:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (650, 24, N'ACQ', N'UFFICIO ACQUISTI', N'ND', NULL, 2009, 0, 0, '2009-03-10 00:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (651, 24, N'COM', N'UFFICIO COMMERCIALE', N'ND', NULL, 2009, 0, 0, '2009-03-10 00:00:00.000', '2100-01-01 00:00:00.000') +INSERT INTO dbo.AnagMacchine + (idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, anno, kgPeso, kwConsumo, funzDal, funzAl) + VALUES (652, 24, N'DIR', N'DIREZIONE', N'ND', NULL, 2009, 0, 0, '2009-03-10 00:00:00.000', '2100-01-01 00:00:00.000') + +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=3 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=4 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=5 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=6 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=7 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=8 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=9 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=10 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=11 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=12 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=13 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=14 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=15 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=16 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=17 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=18 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=19 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=20 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=21 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=22 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=23 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=24 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=25 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=26 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=27 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=28 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=29 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=30 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=31 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=32 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=33 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=34 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=35 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=36 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=37 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=38 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=39 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=40 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=41 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=42 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=43 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=44 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=45 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=46 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=47 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=48 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=49 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=50 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=51 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=52 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=53 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=54 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=55 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=56 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=57 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=58 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=59 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=60 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=61 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=62 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=63 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=64 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=65 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=66 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=67 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=68 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=69 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=70 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=71 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=72 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=73 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=74 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=75 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=76 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=77 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=78 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=79 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=80 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=81 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=82 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=83 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=84 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=85 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=86 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=87 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=88 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=89 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=90 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=91 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=92 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=93 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=94 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=95 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=96 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=97 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=98 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=99 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=100 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=101 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=102 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=103 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=104 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=105 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=106 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=107 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=108 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=109 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=110 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=111 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=112 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=113 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=114 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=115 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=116 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=117 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=118 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=119 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=120 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=121 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=122 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=123 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=124 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=125 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=126 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=127 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=128 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=129 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=130 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=131 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=132 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=133 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=134 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=135 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=136 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=137 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=138 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=139 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=140 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=141 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=142 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=143 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=144 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=145 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=146 +DELETE FROM dbo.AnagMacchine WHERE idxMacchina=147 +UPDATE dbo.AnagMacchine SET + modello=N'FÄSSLER D-250' + WHERE idxMacchina=597 +UPDATE dbo.AnagMacchine SET + modello=N'HÖFLER ZP 630 CN' + WHERE idxMacchina=615 +UPDATE dbo.AnagMacchine SET + modello=N'HÖFLER EMZ 632 CN' + WHERE idxMacchina=616 +UPDATE dbo.AnagMacchine SET + modello=N'HÖFLER ZW630 CN' + WHERE idxMacchina=617 +UPDATE dbo.AnagMacchine SET + nomeMacchina=N'Macchina prova rumorosità' + WHERE idxMacchina=618 +GO + +GO + +set identity_insert dbo.AnagMacchine off +GO + +commit transaction +GO + +SET xact_abort ON +GO + +BEGIN TRANSACTION +GO + +INSERT INTO dbo.AnagPriorita + VALUES (5, N'Lavoro urgente', N'semaforoRosso') +GO + +COMMIT TRANSACTION +GO + +SET xact_abort ON +GO + +BEGIN TRANSACTION +GO + +INSERT INTO dbo.AnagrOperMtz + VALUES (N'0000', N'Selezionare', N'Operatore') +INSERT INTO dbo.AnagrOperMtz + VALUES (N'000191', N'ALLIERI', N'PIERANGELO') +INSERT INTO dbo.AnagrOperMtz + VALUES (N'000300', N'ARMANNI', N'FRANCO') +INSERT INTO dbo.AnagrOperMtz + VALUES (N'000324', N'BENA', N'ANDREA') +INSERT INTO dbo.AnagrOperMtz + VALUES (N'000349', N'BONETTI', N'GIUSEPPE') +INSERT INTO dbo.AnagrOperMtz + VALUES (N'000410', N'PEZZOTTA', N'ANGELO') +GO + +COMMIT TRANSACTION +GO + + + + +SET xact_abort ON +GO + +BEGIN TRANSACTION +GO + +INSERT INTO dbo.Macchine2FamMacchine + VALUES (425, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (426, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (427, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (428, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (429, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (430, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (431, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (432, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (433, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (434, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (435, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (436, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (437, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (438, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (439, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (440, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (441, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (442, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (443, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (444, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (445, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (446, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (447, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (448, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (449, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (450, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (451, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (452, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (453, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (454, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (455, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (456, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (457, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (458, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (459, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (460, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (461, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (462, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (463, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (464, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (465, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (466, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (467, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (468, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (469, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (470, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (471, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (472, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (473, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (474, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (475, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (476, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (477, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (478, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (479, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (480, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (481, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (482, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (483, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (484, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (485, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (486, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (487, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (488, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (489, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (490, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (491, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (492, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (493, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (494, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (495, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (496, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (497, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (498, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (499, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (500, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (501, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (502, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (503, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (504, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (505, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (506, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (507, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (508, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (509, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (510, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (511, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (512, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (513, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (514, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (515, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (516, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (517, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (518, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (519, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (520, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (521, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (522, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (523, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (524, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (525, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (526, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (527, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (528, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (529, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (530, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (531, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (532, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (533, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (534, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (535, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (536, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (537, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (538, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (539, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (540, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (541, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (542, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (543, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (544, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (545, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (546, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (547, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (548, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (549, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (550, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (551, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (552, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (553, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (554, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (555, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (556, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (557, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (558, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (559, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (560, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (561, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (562, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (563, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (564, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (565, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (566, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (567, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (568, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (569, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (570, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (571, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (572, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (573, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (574, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (575, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (576, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (577, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (578, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (579, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (580, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (581, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (582, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (583, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (584, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (585, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (586, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (587, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (588, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (589, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (590, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (591, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (592, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (593, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (594, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (595, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (596, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (597, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (598, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (599, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (600, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (601, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (602, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (603, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (604, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (605, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (606, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (607, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (608, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (609, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (610, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (611, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (612, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (613, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (614, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (615, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (616, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (617, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (618, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (619, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (620, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (621, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (622, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (623, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (624, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (625, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (626, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (627, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (628, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (629, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (630, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (631, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (632, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (633, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (634, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (635, 1) +INSERT INTO dbo.Macchine2FamMacchine + VALUES (636, 1) +GO + +COMMIT TRANSACTION +GO + + +SET xact_abort ON +GO + +BEGIN TRANSACTION +GO + +UPDATE dbo.Permessi SET + GRUPPO=1, NUMERO=13 + WHERE COD_PERMESSO='ANAG_causali' +UPDATE dbo.Permessi SET + GRUPPO=1, NUMERO=12 + WHERE COD_PERMESSO='ANAG_famMacc' +INSERT INTO dbo.Permessi + VALUES ('ANAG_gestUtenti', 'gestUtentiGIM.aspx', 1, 11, 'GestioneUtenti', 'GestioneUtentiLong') +INSERT INTO dbo.Permessi + VALUES ('ANAG_opMtz', 'AnagOperatoriMtz.aspx', 1, 14, 'GestOperMtz', 'GestOperMtzLong') +GO + +COMMIT TRANSACTION +GO + + +SET xact_abort ON +GO + +BEGIN TRANSACTION +GO + +INSERT INTO dbo.Permessi2Funzione + VALUES ('ANAG_gestUtenti', N'GIM_AppAdmin', NULL) +INSERT INTO dbo.Permessi2Funzione + VALUES ('ANAG_opMtz', N'GIM_SU', NULL) +INSERT INTO dbo.Permessi2Funzione + VALUES ('RicMan_edit', N'GIM_U', NULL) +DELETE FROM dbo.Permessi2Funzione WHERE COD_PERMESSO='RicMan_edit' AND COD_FUNZIONE=N'GIM_SU' +GO + +COMMIT TRANSACTION +GO + + + + +-- registro versione... +INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(3, GETDATE()) +GO diff --git a/Projects/WebGIM/GIM_site/sql/Applicazione/GIM_0004.sql b/Projects/WebGIM/GIM_site/sql/Applicazione/GIM_0004.sql new file mode 100644 index 0000000..96ea883 --- /dev/null +++ b/Projects/WebGIM/GIM_site/sql/Applicazione/GIM_0004.sql @@ -0,0 +1,38 @@ +SET xact_abort ON +GO + +BEGIN TRANSACTION +GO + +SET ANSI_NULLS ON +GO + +ALTER VIEW v_elencoIntervFilt +AS +SELECT TOP (100) PERCENT dbo.InterventiMtz.numIntMtz, dbo.InterventiMtz.richiesta, dbo.AnagImpianti.codImpianto, dbo.AnagImpianti.nomeImpianto, + dbo.AnagMacchine.codMacchina, dbo.AnagMacchine.nomeMacchina, dbo.InterventiMtz.descrizione, dbo.InterventiMtz.inizioIntervento, + dbo.InterventiMtz.fineIntervento, ISNULL(dbo.InterventiMtz.descrizioneIntervento, 'n.d. (report mtz)') AS descrizioneIntervento, ISNULL(dbo.AnagCausali.descrCausale, + 'n.d. (causale)') AS descrCausale, ISNULL(dbo.v_interventiErogati.totMinErogati / 60, 0) AS minErogati, ISNULL(DATEDIFF(hour, dbo.InterventiMtz.inizioIntervento, + dbo.InterventiMtz.fineIntervento), 0) AS durataMtz, CASE (isFermo) WHEN 1 THEN ISNULL(DATEDIFF(hour, dbo.InterventiMtz.guasto, dbo.InterventiMtz.fineIntervento), + 0) WHEN 0 THEN ISNULL(DATEDIFF(hour, dbo.InterventiMtz.inizioIntervento, dbo.InterventiMtz.fineIntervento), 0) END AS durataOff, dbo.InterventiMtz.guasto, + dbo.InterventiMtz.idxStato, dbo.InterventiMtz.idxImpianto, dbo.InterventiMtz.idxMacchina +FROM dbo.InterventiMtz INNER JOIN + dbo.AnagAmbitoGuasto ON dbo.InterventiMtz.idxAmbito = dbo.AnagAmbitoGuasto.idxAmbito INNER JOIN + dbo.AnagImpianti ON dbo.InterventiMtz.idxImpianto = dbo.AnagImpianti.idxImpianto INNER JOIN + dbo.AnagMacchine ON dbo.InterventiMtz.idxMacchina = dbo.AnagMacchine.idxMacchina INNER JOIN + dbo.AnagTipoGuasto ON dbo.InterventiMtz.idxTipo = dbo.AnagTipoGuasto.idxTipo INNER JOIN + dbo.AnagPriorita ON dbo.InterventiMtz.idxPriorita = dbo.AnagPriorita.idxPriorita INNER JOIN + dbo.AnagStati ON dbo.InterventiMtz.idxStato = dbo.AnagStati.idxStato LEFT OUTER JOIN + dbo.v_interventiErogati ON dbo.InterventiMtz.numIntMtz = dbo.v_interventiErogati.numIntMtz LEFT OUTER JOIN + dbo.AnagCausali ON dbo.InterventiMtz.idxCausale = dbo.AnagCausali.idxCausale +ORDER BY dbo.InterventiMtz.numIntMtz DESC +GO + +COMMIT +GO + + + +-- registro versione... +INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(4, GETDATE()) +GO diff --git a/Projects/WebGIM/GIM_site/sql/Applicazione/GIM_0005.sql b/Projects/WebGIM/GIM_site/sql/Applicazione/GIM_0005.sql new file mode 100644 index 0000000..582d442 --- /dev/null +++ b/Projects/WebGIM/GIM_site/sql/Applicazione/GIM_0005.sql @@ -0,0 +1,327 @@ +SET xact_abort ON +GO + +BEGIN TRANSACTION +GO + +SET ANSI_NULLS ON +GO + +-- ============================================= +-- Author: Marco Salvi +-- Create date: 11/03/2009 +-- Description: Stored procedure per ricostruire gli indici e fare lo shrink su un db +-- ============================================= +CREATE PROCEDURE sp_IndiciAndShrink +( + @databaseName sysname +) +AS +BEGIN + + -- elimino eventuale tab temporanea preesistente + IF (SELECT COUNT(*) FROM TEMPDB..SYSOBJECTS WHERE NAME = '##TMP_nomiTabelle') > 0 + BEGIN + DROP TABLE ##TMP_nomiTabelle + END + + -- enumero le tab del db in una tab temporanea + SELECT IDENT = IDENTITY (INT,1,1), NAME + INTO ##TMP_nomiTabelle + FROM sys.Tables + + -- eseguo reindicizzazione + DECLARE @VAR1 INT + SET @VAR1 = 1 + WHILE @VAR1 < = ( SELECT COUNT(*) FROM ##TMP_nomiTabelle) + BEGIN + + DECLARE @OBJECTNAME VARCHAR(256) + + -- carico il nome della tab i-esima + SELECT @OBJECTNAME = NAME + FROM ##TMP_nomiTabelle + WHERE [IDENT] = @VAR1 + + -- rebuild indice + DBCC DBREINDEX(@OBJECTNAME) + + -- incremento + SET @VAR1 = @VAR1 + 1 + + END + + --shrink del db + DBCC SHRINKDATABASE (@databaseName) + +END +GO + +COMMIT +GO + + +SET xact_abort ON +GO + +BEGIN TRANSACTION +GO + +SET ANSI_NULLS ON +GO + +ALTER VIEW v_elencoIntervFilt +AS +SELECT TOP (100) PERCENT dbo.InterventiMtz.numIntMtz, dbo.InterventiMtz.richiesta, dbo.AnagImpianti.codImpianto, dbo.AnagImpianti.nomeImpianto, + dbo.AnagMacchine.codMacchina, dbo.AnagMacchine.nomeMacchina, dbo.InterventiMtz.descrizione, dbo.InterventiMtz.inizioIntervento, + dbo.InterventiMtz.fineIntervento, ISNULL(dbo.InterventiMtz.descrizioneIntervento, 'n.d. (report mtz)') AS descrizioneIntervento, ISNULL(dbo.AnagCausali.descrCausale, + 'n.d. (causale)') AS descrCausale, ROUND(CAST(ISNULL(dbo.v_interventiErogati.totMinErogati, 0) AS FLOAT) / 60, 2) AS minErogati, + ROUND(CAST(ISNULL(DATEDIFF(minute, dbo.InterventiMtz.inizioIntervento, dbo.InterventiMtz.fineIntervento), 0) AS FLOAT) / 60, 2) AS durataMtz, CASE (isFermo) + WHEN 1 THEN ROUND(CAST(ISNULL(DATEDIFF(minute, dbo.InterventiMtz.guasto, dbo.InterventiMtz.fineIntervento), 0) AS FLOAT) / 60, 2) + WHEN 0 THEN ROUND(CAST(ISNULL(DATEDIFF(minute, dbo.InterventiMtz.inizioIntervento, dbo.InterventiMtz.fineIntervento), 0) AS FLOAT) / 60, 2) END AS durataOff, + dbo.InterventiMtz.guasto, dbo.InterventiMtz.idxStato, dbo.InterventiMtz.idxImpianto, dbo.InterventiMtz.idxMacchina +FROM dbo.InterventiMtz INNER JOIN + dbo.AnagAmbitoGuasto ON dbo.InterventiMtz.idxAmbito = dbo.AnagAmbitoGuasto.idxAmbito INNER JOIN + dbo.AnagImpianti ON dbo.InterventiMtz.idxImpianto = dbo.AnagImpianti.idxImpianto INNER JOIN + dbo.AnagMacchine ON dbo.InterventiMtz.idxMacchina = dbo.AnagMacchine.idxMacchina INNER JOIN + dbo.AnagTipoGuasto ON dbo.InterventiMtz.idxTipo = dbo.AnagTipoGuasto.idxTipo INNER JOIN + dbo.AnagPriorita ON dbo.InterventiMtz.idxPriorita = dbo.AnagPriorita.idxPriorita INNER JOIN + dbo.AnagStati ON dbo.InterventiMtz.idxStato = dbo.AnagStati.idxStato LEFT OUTER JOIN + dbo.v_interventiErogati ON dbo.InterventiMtz.numIntMtz = dbo.v_interventiErogati.numIntMtz LEFT OUTER JOIN + dbo.AnagCausali ON dbo.InterventiMtz.idxCausale = dbo.AnagCausali.idxCausale +ORDER BY dbo.InterventiMtz.numIntMtz DESC +GO + +EXEC sp_updateextendedproperty 'MS_DiagramPane1', '[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00] +Begin DesignProperties = + Begin PaneConfigurations = + Begin PaneConfiguration = 0 + NumPanes = 4 + Configuration = "(H (1[40] 4[20] 2[20] 3) )" + End + Begin PaneConfiguration = 1 + NumPanes = 3 + Configuration = "(H (1 [50] 4 [25] 3))" + End + Begin PaneConfiguration = 2 + NumPanes = 3 + Configuration = "(H (1 [50] 2 [25] 3))" + End + Begin PaneConfiguration = 3 + NumPanes = 3 + Configuration = "(H (4 [30] 2 [40] 3))" + End + Begin PaneConfiguration = 4 + NumPanes = 2 + Configuration = "(H (1 [56] 3))" + End + Begin PaneConfiguration = 5 + NumPanes = 2 + Configuration = "(H (2 [66] 3))" + End + Begin PaneConfiguration = 6 + NumPanes = 2 + Configuration = "(H (4 [50] 3))" + End + Begin PaneConfiguration = 7 + NumPanes = 1 + Configuration = "(V (3))" + End + Begin PaneConfiguration = 8 + NumPanes = 3 + Configuration = "(H (1[56] 4[18] 2) )" + End + Begin PaneConfiguration = 9 + NumPanes = 2 + Configuration = "(H (1 [75] 4))" + End + Begin PaneConfiguration = 10 + NumPanes = 2 + Configuration = "(H (1[66] 2) )" + End + Begin PaneConfiguration = 11 + NumPanes = 2 + Configuration = "(H (4 [60] 2))" + End + Begin PaneConfiguration = 12 + NumPanes = 1 + Configuration = "(H (1) )" + End + Begin PaneConfiguration = 13 + NumPanes = 1 + Configuration = "(V (4))" + End + Begin PaneConfiguration = 14 + NumPanes = 1 + Configuration = "(V (2))" + End + ActivePaneConfig = 0 + End + Begin DiagramPane = + Begin Origin = + Top = 0 + Left = 0 + End + Begin Tables = + Begin Table = "InterventiMtz" + Begin Extent = + Top = 8 + Left = 486 + Bottom = 354 + Right = 671 + End + DisplayFlags = 280 + TopColumn = 0 + End + Begin Table = "AnagAmbitoGuasto" + Begin Extent = + Top = 11 + Left = 82 + Bottom = 89 + Right = 255 + End + DisplayFlags = 280 + TopColumn = 0 + End + Begin Table = "AnagImpianti" + Begin Extent = + Top = 123 + Left = 219 + Bottom = 231 + Right = 370 + End + DisplayFlags = 280 + TopColumn = 0 + End + Begin Table = "AnagMacchine" + Begin Extent = + Top = 190 + Left = 826 + Bottom = 298 + Right = 977 + End + DisplayFlags = 280 + TopColumn = 0 + End + Begin Table = "AnagTipoGuasto" + Begin Extent = + Top = 90 + Left = 1143 + Bottom = 168 + Right = 1294 + End + DisplayFlags = 280 + TopColumn = 0 + End + Begin Table = "AnagPriorita" + Begin Extent = + Top = 23 + Left = 958 + Bottom = 116 + Right = 1109 + End + DisplayFlags = 280 + TopColumn = 0 + End + Begin Table = "AnagStati" + Begin Extent = + Top = 263 + Left = 90 + Bottom = 356 + Right = 241 + ', 'SCHEMA', 'dbo', 'VIEW', 'v_elencoIntervFilt' +GO + +EXEC sp_updateextendedproperty 'MS_DiagramPane2', ' End + DisplayFlags = 280 + TopColumn = 0 + End + Begin Table = "v_interventiErogati" + Begin Extent = + Top = 3 + Left = 739 + Bottom = 81 + Right = 890 + End + DisplayFlags = 280 + TopColumn = 0 + End + Begin Table = "AnagCausali" + Begin Extent = + Top = 291 + Left = 1011 + Bottom = 369 + Right = 1162 + End + DisplayFlags = 280 + TopColumn = 0 + End + End + End + Begin SQLPane = + End + Begin DataPane = + Begin ParameterDefaults = "" + End + Begin ColumnWidths = 30 + Width = 284 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1665 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1575 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + End + End + Begin CriteriaPane = + Begin ColumnWidths = 11 + Column = 1440 + Alias = 900 + Table = 1170 + Output = 720 + Append = 1400 + NewValue = 1170 + SortType = 1350 + SortOrder = 1410 + GroupBy = 1350 + Filter = 1350 + Or = 1350 + Or = 1350 + Or = 1350 + End + End +End +', 'SCHEMA', 'dbo', 'VIEW', 'v_elencoIntervFilt' +GO + +COMMIT +GO + + + +-- registro versione... +INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(5, GETDATE()) +GO diff --git a/Projects/WebGIM/GIM_site/sql/Applicazione/GIM_0006.sql b/Projects/WebGIM/GIM_site/sql/Applicazione/GIM_0006.sql new file mode 100644 index 0000000..d3f3e1f --- /dev/null +++ b/Projects/WebGIM/GIM_site/sql/Applicazione/GIM_0006.sql @@ -0,0 +1,434 @@ +/* modifiche per gestione corretta reportistica x mtz preventiva o meno... */ + +set xact_abort on +go + +begin transaction +go + +alter table InterventiMtz add + scheduled bit constraint DF_InterventiMtz_scheduled default (0) +go + +exec sp_addextendedproperty 'MS_Description', 'indica se l''intervento sia stato generato da manutenzione programmata/preventiva', 'USER', 'dbo', 'TABLE', 'InterventiMtz', 'COLUMN', 'scheduled' +go + +update InterventiMtz set scheduled=0 +go + +commit +go + +set xact_abort on +go + +begin transaction +go + +set ANSI_NULLS on +go + +/************************************* +* STORED PROCEDURE sp_insRichiesta +* Inserisce nuova richiesta di intervento +* +* modif.: S.E.L. - 2009.02.20 +**************************************/ +alter PROCEDURE sp_insRichiesta +( + @richiesta datetime, + @dataLav datetime, + @turnoLav int, + @matr varchar(10), + @guasto datetime, + @idxAmbito int, + @idxPriorita int, + @isFermo bit, + @idxTipo int, + @idxImpianto int, + @idxMacchina int, + @descrizione varchar(500), + @idxCausale int, + @scheduled bit, + @numIntMtz int output +) +AS + +BEGIN tran + + INSERT INTO InterventiMtz + (richiesta, dataLav, turnoLav, matr, guasto, idxAmbito, idxPriorita, isFermo, idxTipo, idxImpianto, idxMacchina, descrizione, idxStato, idxCausale, scheduled) + VALUES (@richiesta,@dataLav,@turnoLav,@matr,@guasto,@idxAmbito,@idxPriorita,@isFermo,@idxTipo,@idxImpianto,@idxMacchina,@descrizione, + 1,@idxCausale,@scheduled) + + /************************************* + * salvo idx del nuovo record + **************************************/ + SET @numIntMtz = SCOPE_IDENTITY() + +COMMIT tran + +RETURN (@numIntMtz) +go + +commit +go + + +/* aggiorno: se Ambito Guasto è 7 allora è mtz Prog... */ +UPDATE InterventiMtz +SET scheduled = 1 +WHERE (idxAmbito = 7) +GO + + +/* indici! */ +set xact_abort on +go + +begin transaction +go + +create index i_username on FiltroImpianti(username) +go + +create index i_username on FiltroMacchine(username) +go + +create index i_username on FiltroStati(username) +go + +create index i_richiesta on InterventiMtz(richiesta) +go + +create index i_impianto on InterventiMtz(idxImpianto) +go + +create index i_macchina on InterventiMtz(idxMacchina) +go + +create index i_stato on InterventiMtz(idxStato) +go + +commit +go + + +/* update view */ +set xact_abort on +go + +begin transaction +go + +alter VIEW v_elencoIntervFilt +AS +SELECT TOP (100) PERCENT dbo.InterventiMtz.numIntMtz, dbo.InterventiMtz.richiesta, dbo.AnagImpianti.codImpianto, dbo.AnagImpianti.nomeImpianto, + dbo.AnagMacchine.codMacchina, dbo.AnagMacchine.nomeMacchina, dbo.InterventiMtz.descrizione, dbo.InterventiMtz.inizioIntervento, + dbo.InterventiMtz.fineIntervento, ISNULL(dbo.InterventiMtz.descrizioneIntervento, 'n.d. (report mtz)') AS descrizioneIntervento, + ISNULL(dbo.AnagCausali.descrCausale, 'n.d. (causale)') AS descrCausale, ROUND(CAST(ISNULL(dbo.v_interventiErogati.totMinErogati, 0) AS float) / 60, 2) + AS minErogati, ROUND(CAST(ISNULL(DATEDIFF(minute, dbo.InterventiMtz.inizioIntervento, dbo.InterventiMtz.fineIntervento), 0) AS float) / 60, 2) AS durataMtz, + CASE (isFermo) WHEN 1 THEN ROUND(CAST(ISNULL(DATEDIFF(minute, dbo.InterventiMtz.guasto, dbo.InterventiMtz.fineIntervento), 0) AS float) / 60, 2) + WHEN 0 THEN ROUND(CAST(ISNULL(DATEDIFF(minute, dbo.InterventiMtz.inizioIntervento, dbo.InterventiMtz.fineIntervento), 0) AS float) / 60, 2) END AS durataOff, + dbo.InterventiMtz.guasto, dbo.InterventiMtz.idxStato, dbo.InterventiMtz.idxImpianto, dbo.InterventiMtz.idxMacchina, dbo.InterventiMtz.isFermo, + dbo.InterventiMtz.scheduled +FROM dbo.InterventiMtz INNER JOIN + dbo.AnagAmbitoGuasto ON dbo.InterventiMtz.idxAmbito = dbo.AnagAmbitoGuasto.idxAmbito INNER JOIN + dbo.AnagImpianti ON dbo.InterventiMtz.idxImpianto = dbo.AnagImpianti.idxImpianto INNER JOIN + dbo.AnagMacchine ON dbo.InterventiMtz.idxMacchina = dbo.AnagMacchine.idxMacchina INNER JOIN + dbo.AnagTipoGuasto ON dbo.InterventiMtz.idxTipo = dbo.AnagTipoGuasto.idxTipo INNER JOIN + dbo.AnagPriorita ON dbo.InterventiMtz.idxPriorita = dbo.AnagPriorita.idxPriorita INNER JOIN + dbo.AnagStati ON dbo.InterventiMtz.idxStato = dbo.AnagStati.idxStato LEFT OUTER JOIN + dbo.v_interventiErogati ON dbo.InterventiMtz.numIntMtz = dbo.v_interventiErogati.numIntMtz LEFT OUTER JOIN + dbo.AnagCausali ON dbo.InterventiMtz.idxCausale = dbo.AnagCausali.idxCausale +ORDER BY dbo.InterventiMtz.numIntMtz DESC +go + +exec sp_updateextendedproperty 'MS_DiagramPane1', '[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00] +Begin DesignProperties = + Begin PaneConfigurations = + Begin PaneConfiguration = 0 + NumPanes = 4 + Configuration = "(H (1[40] 4[20] 2[20] 3) )" + End + Begin PaneConfiguration = 1 + NumPanes = 3 + Configuration = "(H (1 [50] 4 [25] 3))" + End + Begin PaneConfiguration = 2 + NumPanes = 3 + Configuration = "(H (1 [50] 2 [25] 3))" + End + Begin PaneConfiguration = 3 + NumPanes = 3 + Configuration = "(H (4 [30] 2 [40] 3))" + End + Begin PaneConfiguration = 4 + NumPanes = 2 + Configuration = "(H (1 [56] 3))" + End + Begin PaneConfiguration = 5 + NumPanes = 2 + Configuration = "(H (2 [66] 3))" + End + Begin PaneConfiguration = 6 + NumPanes = 2 + Configuration = "(H (4 [50] 3))" + End + Begin PaneConfiguration = 7 + NumPanes = 1 + Configuration = "(V (3))" + End + Begin PaneConfiguration = 8 + NumPanes = 3 + Configuration = "(H (1[56] 4[18] 2) )" + End + Begin PaneConfiguration = 9 + NumPanes = 2 + Configuration = "(H (1 [75] 4))" + End + Begin PaneConfiguration = 10 + NumPanes = 2 + Configuration = "(H (1[66] 2) )" + End + Begin PaneConfiguration = 11 + NumPanes = 2 + Configuration = "(H (4 [60] 2))" + End + Begin PaneConfiguration = 12 + NumPanes = 1 + Configuration = "(H (1) )" + End + Begin PaneConfiguration = 13 + NumPanes = 1 + Configuration = "(V (4))" + End + Begin PaneConfiguration = 14 + NumPanes = 1 + Configuration = "(V (2))" + End + ActivePaneConfig = 0 + End + Begin DiagramPane = + Begin Origin = + Top = 0 + Left = 0 + End + Begin Tables = + Begin Table = "InterventiMtz" + Begin Extent = + Top = 8 + Left = 486 + Bottom = 354 + Right = 671 + End + DisplayFlags = 280 + TopColumn = 5 + End + Begin Table = "AnagAmbitoGuasto" + Begin Extent = + Top = 11 + Left = 82 + Bottom = 89 + Right = 255 + End + DisplayFlags = 280 + TopColumn = 0 + End + Begin Table = "AnagImpianti" + Begin Extent = + Top = 123 + Left = 219 + Bottom = 231 + Right = 370 + End + DisplayFlags = 280 + TopColumn = 0 + End + Begin Table = "AnagMacchine" + Begin Extent = + Top = 190 + Left = 826 + Bottom = 298 + Right = 977 + End + DisplayFlags = 280 + TopColumn = 0 + End + Begin Table = "AnagTipoGuasto" + Begin Extent = + Top = 90 + Left = 1143 + Bottom = 168 + Right = 1294 + End + DisplayFlags = 280 + TopColumn = 0 + End + Begin Table = "AnagPriorita" + Begin Extent = + Top = 23 + Left = 958 + Bottom = 116 + Right = 1109 + End + DisplayFlags = 280 + TopColumn = 0 + End + Begin Table = "AnagStati" + Begin Extent = + Top = 263 + Left = 90 + Bottom = 356 + Right = 241 + ', 'SCHEMA', 'dbo', 'VIEW', 'v_elencoIntervFilt' +go + +commit +go + + +/* nuove stored + stored con filtraggio esteso! */ +set xact_abort on +go + +begin transaction +go + +set ANSI_NULLS on +go + +/************************************* +* STORED PROCEDURE stp_elencoIntByIntervDate +* Recupera elenco interventi a partire dalle date inizio/fine di ricerca +* +* modif.: S.E.L. - 2010.01.25 +**************************************/ +create PROCEDURE stp_elencoIntByIntervDate +( + @inizio DATETIME, + @fine DATETIME +) +AS + + SELECT codImpianto, codMacchina, descrCausale, descrizione, descrizioneIntervento, durataMtz, durataOff, fineIntervento, guasto, idxImpianto, idxMacchina, idxStato, + inizioIntervento, minErogati, nomeImpianto, nomeMacchina, numIntMtz, richiesta, isFermo, scheduled + FROM v_elencoIntervFilt + WHERE (richiesta BETWEEN @inizio AND @fine) + +RETURN +go + +/************************************* +* STORED PROCEDURE stp_elencoIntByIntervDateUserFilt +* Recupera elenco interventi a partire dalle date inizio/fine di ricerca e dall'username ed i relativi filtri di ricerca salvati +* +* modif.: S.E.L. - 2010.01.25 +**************************************/ +create PROCEDURE stp_elencoIntByIntervDateUserFilt +( + @inizio DATETIME, + @fine DATETIME, + @username VARCHAR(50) +) +AS + + SELECT v_elencoIntervFilt.codImpianto, v_elencoIntervFilt.codMacchina, v_elencoIntervFilt.descrCausale, v_elencoIntervFilt.descrizione, + v_elencoIntervFilt.descrizioneIntervento, v_elencoIntervFilt.durataMtz, v_elencoIntervFilt.durataOff, v_elencoIntervFilt.fineIntervento, v_elencoIntervFilt.guasto, + v_elencoIntervFilt.idxImpianto, v_elencoIntervFilt.idxMacchina, v_elencoIntervFilt.idxStato, v_elencoIntervFilt.inizioIntervento, v_elencoIntervFilt.minErogati, + v_elencoIntervFilt.nomeImpianto, v_elencoIntervFilt.nomeMacchina, v_elencoIntervFilt.numIntMtz, v_elencoIntervFilt.richiesta, v_elencoIntervFilt.isFermo, + v_elencoIntervFilt.scheduled + FROM v_elencoIntervFilt INNER JOIN + FiltroImpianti ON v_elencoIntervFilt.idxImpianto = FiltroImpianti.idxImpianto INNER JOIN + FiltroMacchine ON v_elencoIntervFilt.idxMacchina = FiltroMacchine.idxMacchina INNER JOIN + FiltroStati ON v_elencoIntervFilt.idxStato = FiltroStati.idxStato + WHERE (v_elencoIntervFilt.richiesta BETWEEN @inizio AND @fine) AND (FiltroStati.username = @username) AND (FiltroMacchine.username = @username) AND + (FiltroImpianti.username = @username) + + +RETURN +go + +/************************************* +* STORED PROCEDURE stp_elencoIntByIntervDateUserFilt +* Recupera elenco interventi a partire dalle date inizio/fine di ricerca e dall'username ed i relativi filtri di ricerca salvati +* e con rispetto filtro x int a macchian ferma o di mtz preventiva +* +* modif.: S.E.L. - 2010.01.25 +**************************************/ +create PROCEDURE stp_elencoIntByIntervDateUserFilt_fermaPrev +( + @inizio DATETIME, + @fine DATETIME, + @username VARCHAR(50), + @soloMaccFerma BIT, + @includiPreventiva BIT +) +AS + + SELECT v_elencoIntervFilt.codImpianto, v_elencoIntervFilt.codMacchina, v_elencoIntervFilt.descrCausale, v_elencoIntervFilt.descrizione, + v_elencoIntervFilt.descrizioneIntervento, v_elencoIntervFilt.durataMtz, v_elencoIntervFilt.durataOff, v_elencoIntervFilt.fineIntervento, + v_elencoIntervFilt.guasto, v_elencoIntervFilt.idxImpianto, v_elencoIntervFilt.idxMacchina, v_elencoIntervFilt.idxStato, + v_elencoIntervFilt.inizioIntervento, v_elencoIntervFilt.minErogati, v_elencoIntervFilt.nomeImpianto, v_elencoIntervFilt.nomeMacchina, + v_elencoIntervFilt.numIntMtz, v_elencoIntervFilt.richiesta, v_elencoIntervFilt.isFermo, v_elencoIntervFilt.scheduled + FROM v_elencoIntervFilt INNER JOIN + FiltroImpianti ON v_elencoIntervFilt.idxImpianto = FiltroImpianti.idxImpianto INNER JOIN + FiltroMacchine ON v_elencoIntervFilt.idxMacchina = FiltroMacchine.idxMacchina INNER JOIN + FiltroStati ON v_elencoIntervFilt.idxStato = FiltroStati.idxStato + WHERE (v_elencoIntervFilt.richiesta BETWEEN @inizio AND @fine) AND (FiltroStati.username = @username) + AND (FiltroMacchine.username = @username) AND (FiltroImpianti.username = @username) + AND (v_elencoIntervFilt.isFermo = case @soloMaccFerma when 1 then 1 else v_elencoIntervFilt.isFermo end) + AND (v_elencoIntervFilt.scheduled = case @includiPreventiva when 0 then 0 else v_elencoIntervFilt.scheduled end) + +RETURN +go + +commit +go + +/************************************* +* STORED PROCEDURE stp_elencoIntMTBF_MTTR_fermaPrev +* Restituisce elenco degli interventi x fare il calcolo MTBF/MTTR FILTRANDO per: +* - idxStati +* - idxImpianto +* - idxMacchina +* - solo ferma +* - inclusione preventiva +* +* modif.: S.E.L. - 2010.01.25 +**************************************/ +create PROCEDURE stp_elencoIntMTBF_MTTR_fermaPrev +( + @inizio DATETIME, + @fine DATETIME, + @username VARCHAR(100), + @soloMaccFerma BIT, + @includiPreventiva BIT +) +AS + + SELECT COUNT(v_elencoIntervFilt.numIntMtz) AS numInterventi, SUM(v_elencoIntervFilt.durataMtz) AS totOreMtz, + SUM(v_elencoIntervFilt.durataOff) AS totOreOfficina, v_elencoIntervFilt.codImpianto, v_elencoIntervFilt.codMacchina, + v_elencoIntervFilt.nomeImpianto, v_elencoIntervFilt.nomeMacchina + FROM FiltroImpianti INNER JOIN FiltroMacchine INNER JOIN v_elencoIntervFilt INNER JOIN + FiltroStati ON v_elencoIntervFilt.idxStato = FiltroStati.idxStato ON FiltroMacchine.idxMacchina = v_elencoIntervFilt.idxMacchina ON + FiltroImpianti.idxImpianto = v_elencoIntervFilt.idxImpianto + WHERE (v_elencoIntervFilt.richiesta BETWEEN @inizio AND @fine) AND (FiltroStati.username = @username) AND (FiltroMacchine.username = @username) AND + (FiltroImpianti.username = @username) AND (v_elencoIntervFilt.isFermo = CASE @soloMaccFerma WHEN 1 THEN 1 ELSE v_elencoIntervFilt.isFermo END) + AND (v_elencoIntervFilt.scheduled = CASE @includiPreventiva WHEN 0 THEN 0 ELSE v_elencoIntervFilt.scheduled END) + GROUP BY v_elencoIntervFilt.codImpianto, v_elencoIntervFilt.codMacchina, v_elencoIntervFilt.nomeImpianto, v_elencoIntervFilt.nomeMacchina + +RETURN +go + +commit +go + + + + + + +-- registro versione... +INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(6, GETDATE()) +GO diff --git a/Projects/WebGIM/GIM_site/sql/Applicazione/GIM_0007.sql b/Projects/WebGIM/GIM_site/sql/Applicazione/GIM_0007.sql new file mode 100644 index 0000000..317706c --- /dev/null +++ b/Projects/WebGIM/GIM_site/sql/Applicazione/GIM_0007.sql @@ -0,0 +1,19 @@ +/* Sistemo trigger x la gestioen di nuove macchine con le causali sstandard... */ + +CREATE TRIGGER updateAssociazioneFamMacchine +ON dbo.AnagMacchine +FOR INSERT +AS + +-- aggiungo le eventuali "macchine orfane" alla fam macchine di base (1 = TUTTE) +INSERT INTO Macchine2FamMacchine(idxMacchina, idxFamMacchine) +( + SELECT am.idxMacchina, 1 FROM anagMacchine am LEFT OUTER JOIN macchine2FamMacchine m2f + ON am.idxMacchina=m2f.idxMacchina + WHERE m2f.idxmacchina IS NULL +) +GO + +-- registro versione... +INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(7, GETDATE()) +GO \ No newline at end of file diff --git a/Projects/WebGIM/GIM_site/sql/Applicazione/GIM_0008.sql b/Projects/WebGIM/GIM_site/sql/Applicazione/GIM_0008.sql new file mode 100644 index 0000000..7a45a9f --- /dev/null +++ b/Projects/WebGIM/GIM_site/sql/Applicazione/GIM_0008.sql @@ -0,0 +1,67 @@ +set xact_abort on +go + +begin transaction +go + +set ANSI_NULLS on +go + +/************************************* +* STORED PROCEDURE sp_elencoIntMTBF_MTTR +* Restituisce elenco degli interventi x fare il calcolo MTBF/MTTR FILTRANDO per: +* - idxStati +* - idxImpianto +* - idxMacchina +* +* modif.: S.E.L. - 2010.05.11 +**************************************/ +alter PROCEDURE sp_elencoIntMTBF_MTTR +( + @inizio DATETIME, + @fine DATETIME, + @username VARCHAR(100) +) +AS + + -- inizio con il creare la vista che mi serve x selezionare gli interventi filtrati dall'utente (per poterli escludere-includere) + WITH ElencoInt AS (SELECT v_elencoIntervFilt.* + FROM FiltroImpianti INNER JOIN + FiltroMacchine INNER JOIN + v_elencoIntervFilt INNER JOIN + FiltroStati ON v_elencoIntervFilt.idxStato = FiltroStati.idxStato ON FiltroMacchine.idxMacchina = v_elencoIntervFilt.idxMacchina ON + FiltroImpianti.idxImpianto = v_elencoIntervFilt.idxImpianto + WHERE (v_elencoIntervFilt.richiesta BETWEEN @inizio AND @fine) AND (FiltroStati.username = @username) AND (FiltroMacchine.username = @username) AND + (FiltroImpianti.username = @username)) + + + -- seleziono gli interventi DAVVERO erogati + SELECT COUNT(ElencoInt.numIntMtz) AS numInterventi, SUM(ElencoInt.durataMtz) AS totOreMtz, + SUM(ElencoInt.durataOff) AS totOreOfficina, ElencoInt.codImpianto, ElencoInt.codMacchina, + ElencoInt.nomeImpianto, ElencoInt.nomeMacchina + FROM ElencoInt + GROUP BY ElencoInt.codImpianto, ElencoInt.codMacchina, ElencoInt.nomeImpianto, ElencoInt.nomeMacchina + + UNION + + -- seleziono gli impianti che NON hanno ricevuto interventi ma comunque scelti dall'utente... + SELECT 0 AS numInterventi, 0 AS totOreMtz, 0 AS totOreOfficina, AnagImpianti.codImpianto, AnagMacchine.codMacchina, AnagImpianti.nomeImpianto, + AnagMacchine.nomeMacchina + FROM FiltroMacchine INNER JOIN + AnagMacchine ON FiltroMacchine.idxMacchina = AnagMacchine.idxMacchina INNER JOIN + AnagImpianti ON AnagMacchine.idxImpianto = AnagImpianti.idxImpianto LEFT OUTER JOIN + ElencoInt ON FiltroMacchine.idxMacchina = ElencoInt.idxMacchina + WHERE (ElencoInt.numIntMtz IS NULL) + GROUP BY AnagImpianti.codImpianto, AnagMacchine.codMacchina, AnagImpianti.nomeImpianto, AnagMacchine.nomeMacchina + +RETURN +go + +commit +go + + + +-- registro versione... +INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(8, GETDATE()) +GO \ No newline at end of file diff --git a/Projects/WebGIM/GIM_site/sql/Applicazione/GIM_0020.sql b/Projects/WebGIM/GIM_site/sql/Applicazione/GIM_0020.sql new file mode 100644 index 0000000..03743a3 --- /dev/null +++ b/Projects/WebGIM/GIM_site/sql/Applicazione/GIM_0020.sql @@ -0,0 +1,601 @@ +create table AnagClasseTurno( + CodClasseTurno nvarchar(50) not null constraint PK_AnagClasseTurno primary key, + Descrizione nvarchar(50), + hSettStd int +) +go + + +set xact_abort on +go + +begin transaction +go + +INSERT INTO dbo.AnagClasseTurno + VALUES (N'2t5gg', N'2 turni, 5 gg', 80) +INSERT INTO dbo.AnagClasseTurno + VALUES (N'3t5gg', N'3 turni, 5 gg', 120) +go + +commit transaction +go + + +create table AnagTurni( + CodTurno nvarchar(50) not null constraint PK_AnagTurni primary key, + hStart int, + hEnd int, + descr nvarchar(50) +) +go + + +set xact_abort on +go + +begin transaction +go + +INSERT INTO dbo.AnagTurni + VALUES (N'T1', 6, 14, N'Turno 8h standard') +INSERT INTO dbo.AnagTurni + VALUES (N'T2', 14, 22, N'Turno 8h standard') +INSERT INTO dbo.AnagTurni + VALUES (N'T3', 22, 6, N'Turno 8h standard') +INSERT INTO dbo.AnagTurni + VALUES (N'TA', 0, 6, N'Turno 6h std') +INSERT INTO dbo.AnagTurni + VALUES (N'TB', 6, 12, N'Turno 6h std') +INSERT INTO dbo.AnagTurni + VALUES (N'TC', 12, 18, N'Turno 6h std') +INSERT INTO dbo.AnagTurni + VALUES (N'TD', 18, 24, N'Turno 6h std') +go + +commit transaction +go + + +drop table OreAperturaSett +go + + +create table OreAperturaSettTurni( + CodClasseTurno nvarchar(50) not null, + CodTurno nvarchar(50) not null, + giorno int not null, + descrGiorno nvarchar(50), + + constraint PK_OreAperturaSett primary key(CodClasseTurno,giorno,CodTurno) +) +go + + +set xact_abort on +go + +begin transaction +go + +INSERT INTO dbo.OreAperturaSettTurni + VALUES (N'2t5gg', N'T1', 1, N'Lun') +INSERT INTO dbo.OreAperturaSettTurni + VALUES (N'2t5gg', N'T1', 2, N'Mar') +INSERT INTO dbo.OreAperturaSettTurni + VALUES (N'2t5gg', N'T1', 3, N'Mer') +INSERT INTO dbo.OreAperturaSettTurni + VALUES (N'2t5gg', N'T1', 4, N'Gio') +INSERT INTO dbo.OreAperturaSettTurni + VALUES (N'2t5gg', N'T1', 5, N'Ven') +INSERT INTO dbo.OreAperturaSettTurni + VALUES (N'2t5gg', N'T2', 1, N'Lun') +INSERT INTO dbo.OreAperturaSettTurni + VALUES (N'2t5gg', N'T2', 2, N'Mar') +INSERT INTO dbo.OreAperturaSettTurni + VALUES (N'2t5gg', N'T2', 3, N'Mer') +INSERT INTO dbo.OreAperturaSettTurni + VALUES (N'2t5gg', N'T2', 4, N'Gio') +INSERT INTO dbo.OreAperturaSettTurni + VALUES (N'2t5gg', N'T2', 5, N'Ven') +INSERT INTO dbo.OreAperturaSettTurni + VALUES (N'3t5gg', N'T1', 1, N'Lun') +INSERT INTO dbo.OreAperturaSettTurni + VALUES (N'3t5gg', N'T1', 2, N'Mar') +INSERT INTO dbo.OreAperturaSettTurni + VALUES (N'3t5gg', N'T1', 3, N'Mer') +INSERT INTO dbo.OreAperturaSettTurni + VALUES (N'3t5gg', N'T1', 4, N'Gio') +INSERT INTO dbo.OreAperturaSettTurni + VALUES (N'3t5gg', N'T1', 5, N'Ven') +INSERT INTO dbo.OreAperturaSettTurni + VALUES (N'3t5gg', N'T2', 1, N'Lun') +INSERT INTO dbo.OreAperturaSettTurni + VALUES (N'3t5gg', N'T2', 2, N'Mar') +INSERT INTO dbo.OreAperturaSettTurni + VALUES (N'3t5gg', N'T2', 3, N'Mer') +INSERT INTO dbo.OreAperturaSettTurni + VALUES (N'3t5gg', N'T2', 4, N'Gio') +INSERT INTO dbo.OreAperturaSettTurni + VALUES (N'3t5gg', N'T2', 5, N'Ven') +INSERT INTO dbo.OreAperturaSettTurni + VALUES (N'3t5gg', N'T3', 1, N'Lun') +INSERT INTO dbo.OreAperturaSettTurni + VALUES (N'3t5gg', N'T3', 2, N'Mar') +INSERT INTO dbo.OreAperturaSettTurni + VALUES (N'3t5gg', N'T3', 3, N'Mer') +INSERT INTO dbo.OreAperturaSettTurni + VALUES (N'3t5gg', N'T3', 4, N'Gio') +INSERT INTO dbo.OreAperturaSettTurni + VALUES (N'3t5gg', N'T3', 5, N'Ven') +go + +commit transaction +go + + +create table OreChiusuraSett( + giorno int not null constraint PK_OreAperturaSett_1 primary key, + descrGiorno nvarchar(50), + chiusura int +) +go + + +set xact_abort on +go + +begin transaction +go + +INSERT INTO dbo.OreChiusuraSett + VALUES (6, N'Sab', 16) +INSERT INTO dbo.OreChiusuraSett + VALUES (7, N'Dom', 24) +go + +commit transaction +go + + +set xact_abort on +go + +begin transaction +go + +set ANSI_NULLS on +go + +/*********************************************************************************** +* FUNCTION f_dateOnly +* +* restituisce solo la parte data di un campo datetime (ovvero a mezzanotte...) +* +***********************************************************************************/ +create FUNCTION f_dateOnly +( + @dateIn DATETIME +) +RETURNS DATETIME +AS + BEGIN + RETURN dateadd(dd, -datediff(dd, @dateIn, 1), 1) + END +go + +commit +go + + +set xact_abort on +go + +begin transaction +go + +set ANSI_NULLS on +go + +/*********************************************************************************** +* FUNCTION f_diffOreLavorative +* +* calcola le effettive ore lavorative sottraendo chiusure x festività o aperture programmate +* +***********************************************************************************/ +create FUNCTION f_diffOreLavorative +( + @dataFrom DATETIME, + @dataTo DATETIME, + @idxMacchina INT -- per ora non lo considero poiché non ci sono calendari diversi x macchina... +) +RETURNS FLOAT +AS + BEGIN + + -- dichiarazioni variabili + DECLARE @oreTot AS FLOAT + DECLARE @oreOff AS FLOAT + DECLARE @tmp_dates TABLE (DateValue DATETIME, h INT) + SET @oreTot = 0 + + -- controllo date coerenti + IF(@dataTo > @dataFrom) + BEGIN + -- calcolo totale "raw" delle ore + SET @oreTot = CAST(ISNULL(DATEDIFF(minute, @dataFrom, @dataTo), 0) AS float) / 60; + -- definisco tabella cte ricorsiva + WITH mycte AS + ( + SELECT CAST(dbo.f_dateOnly(DATEADD(dd,1,@dataFROM)) AS DATETIME) DateValue + UNION ALL + SELECT DateValue + 1 + FROM mycte + WHERE DateValue + 1 < dbo.f_dateOnly(@dataTo) + ) + -- carico nella tab temporanea i sabati e le domeniche... + INSERT into @tmp_dates(DateValue, h) + SELECT *, CASE ((DATEPART(dw, DateValue) + @@DATEFIRST) % 7) WHEN 0 THEN 16 ELSE 24 END AS h + FROM mycte + WHERE ((DATEPART(dw, DateValue) + @@DATEFIRST) % 7) IN (0,1) + OPTION (MAXRECURSION 0) + -- carico le festività per le date NON ancora presenti + insert into @tmp_dates(DateValue, h) + select data as DateValue, 24 as h--, descrizione + from CalendFesteFerie + where data between @dataFrom and @dataTo and data not in (select distinct DateValue from @tmp_dates) + -- aggiorno sabati/domenica che fossero festivi (ipotesi che hfest > h sab/dom... + UPDATE @tmp_dates + SET h=24 + WHERE DateValue in (SELECT data FROM CalendFesteFerie WHERE data between @dataFrom and @dataTo) + + -- calcolo INFINE le ore off! + SET @oreOff = (SELECT ISNULL(SUM(h),0) FROM @tmp_dates) + END + -- setto le nuove ore totali... se ho un numero di ore > delle fermate le sottraggo per evitare ore engative... + IF(@oreTot > @oreOff) + BEGIN + SET @oreTot = @oreTot - @oreOff + END + + RETURN @oreTot + END +go + +commit +go + + +set xact_abort on +go + +begin transaction +go + +set ANSI_NULLS on +go + +alter VIEW v_elencoIntervFilt +AS +SELECT TOP (100) PERCENT dbo.InterventiMtz.numIntMtz, dbo.InterventiMtz.richiesta, dbo.AnagImpianti.codImpianto, dbo.AnagImpianti.nomeImpianto, + dbo.AnagMacchine.codMacchina, dbo.AnagMacchine.nomeMacchina, dbo.InterventiMtz.descrizione, dbo.InterventiMtz.inizioIntervento, + dbo.InterventiMtz.fineIntervento, ISNULL(dbo.InterventiMtz.descrizioneIntervento, 'n.d. (report mtz)') AS descrizioneIntervento, + ISNULL(dbo.AnagCausali.descrCausale, 'n.d. (causale)') AS descrCausale, ROUND(CAST(ISNULL(dbo.v_interventiErogati.totMinErogati, 0) AS float) / 60, 2) + AS minErogati, dbo.f_diffOreLavorative(dbo.InterventiMtz.inizioIntervento, dbo.InterventiMtz.fineIntervento, dbo.InterventiMtz.idxMacchina) AS durataMtz, + CASE (isFermo) WHEN 1 THEN dbo.f_diffOreLavorative(dbo.InterventiMtz.guasto, dbo.InterventiMtz.fineIntervento, InterventiMtz.idxMacchina) + WHEN 0 THEN dbo.f_diffOreLavorative(dbo.InterventiMtz.inizioIntervento, dbo.InterventiMtz.fineIntervento, InterventiMtz.idxMacchina) END AS durataOff, + dbo.InterventiMtz.guasto, dbo.InterventiMtz.idxStato, dbo.InterventiMtz.idxImpianto, dbo.InterventiMtz.idxMacchina, dbo.InterventiMtz.isFermo, + dbo.InterventiMtz.scheduled +FROM dbo.InterventiMtz INNER JOIN + dbo.AnagAmbitoGuasto ON dbo.InterventiMtz.idxAmbito = dbo.AnagAmbitoGuasto.idxAmbito INNER JOIN + dbo.AnagImpianti ON dbo.InterventiMtz.idxImpianto = dbo.AnagImpianti.idxImpianto INNER JOIN + dbo.AnagMacchine ON dbo.InterventiMtz.idxMacchina = dbo.AnagMacchine.idxMacchina INNER JOIN + dbo.AnagTipoGuasto ON dbo.InterventiMtz.idxTipo = dbo.AnagTipoGuasto.idxTipo INNER JOIN + dbo.AnagPriorita ON dbo.InterventiMtz.idxPriorita = dbo.AnagPriorita.idxPriorita INNER JOIN + dbo.AnagStati ON dbo.InterventiMtz.idxStato = dbo.AnagStati.idxStato LEFT OUTER JOIN + dbo.v_interventiErogati ON dbo.InterventiMtz.numIntMtz = dbo.v_interventiErogati.numIntMtz LEFT OUTER JOIN + dbo.AnagCausali ON dbo.InterventiMtz.idxCausale = dbo.AnagCausali.idxCausale +ORDER BY dbo.InterventiMtz.numIntMtz DESC +go + +exec sp_updateextendedproperty 'MS_DiagramPane1', '[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00] +Begin DesignProperties = + Begin PaneConfigurations = + Begin PaneConfiguration = 0 + NumPanes = 4 + Configuration = "(H (1[40] 4[20] 2[20] 3) )" + End + Begin PaneConfiguration = 1 + NumPanes = 3 + Configuration = "(H (1 [50] 4 [25] 3))" + End + Begin PaneConfiguration = 2 + NumPanes = 3 + Configuration = "(H (1 [50] 2 [25] 3))" + End + Begin PaneConfiguration = 3 + NumPanes = 3 + Configuration = "(H (4 [30] 2 [40] 3))" + End + Begin PaneConfiguration = 4 + NumPanes = 2 + Configuration = "(H (1 [56] 3))" + End + Begin PaneConfiguration = 5 + NumPanes = 2 + Configuration = "(H (2 [66] 3))" + End + Begin PaneConfiguration = 6 + NumPanes = 2 + Configuration = "(H (4 [50] 3))" + End + Begin PaneConfiguration = 7 + NumPanes = 1 + Configuration = "(V (3))" + End + Begin PaneConfiguration = 8 + NumPanes = 3 + Configuration = "(H (1[56] 4[18] 2) )" + End + Begin PaneConfiguration = 9 + NumPanes = 2 + Configuration = "(H (1 [75] 4))" + End + Begin PaneConfiguration = 10 + NumPanes = 2 + Configuration = "(H (1[66] 2) )" + End + Begin PaneConfiguration = 11 + NumPanes = 2 + Configuration = "(H (4 [60] 2))" + End + Begin PaneConfiguration = 12 + NumPanes = 1 + Configuration = "(H (1) )" + End + Begin PaneConfiguration = 13 + NumPanes = 1 + Configuration = "(V (4))" + End + Begin PaneConfiguration = 14 + NumPanes = 1 + Configuration = "(V (2))" + End + ActivePaneConfig = 0 + End + Begin DiagramPane = + Begin Origin = + Top = 0 + Left = 0 + End + Begin Tables = + Begin Table = "AnagAmbitoGuasto" + Begin Extent = + Top = 11 + Left = 82 + Bottom = 89 + Right = 255 + End + DisplayFlags = 280 + TopColumn = 0 + End + Begin Table = "AnagImpianti" + Begin Extent = + Top = 123 + Left = 219 + Bottom = 231 + Right = 370 + End + DisplayFlags = 280 + TopColumn = 0 + End + Begin Table = "AnagMacchine" + Begin Extent = + Top = 190 + Left = 826 + Bottom = 298 + Right = 977 + End + DisplayFlags = 280 + TopColumn = 0 + End + Begin Table = "AnagTipoGuasto" + Begin Extent = + Top = 90 + Left = 1143 + Bottom = 168 + Right = 1294 + End + DisplayFlags = 280 + TopColumn = 0 + End + Begin Table = "AnagPriorita" + Begin Extent = + Top = 23 + Left = 958 + Bottom = 116 + Right = 1109 + End + DisplayFlags = 280 + TopColumn = 0 + End + Begin Table = "AnagStati" + Begin Extent = + Top = 263 + Left = 90 + Bottom = 356 + Right = 241 + End + DisplayFlags = 280 + TopColumn = 0 + End + Begin Table = "v_interventiErogati" + Begin Extent = + Top = 3 + Left = 739 + Bottom = 81 + Right = 890 + ', 'SCHEMA', 'dbo', 'VIEW', 'v_elencoIntervFilt' +go + +exec sp_updateextendedproperty 'MS_DiagramPane2', ' End + DisplayFlags = 280 + TopColumn = 0 + End + Begin Table = "AnagCausali" + Begin Extent = + Top = 291 + Left = 1011 + Bottom = 369 + Right = 1162 + End + DisplayFlags = 280 + TopColumn = 0 + End + Begin Table = "InterventiMtz" + Begin Extent = + Top = 8 + Left = 486 + Bottom = 354 + Right = 671 + End + DisplayFlags = 280 + TopColumn = 0 + End + End + End + Begin SQLPane = + End + Begin DataPane = + Begin ParameterDefaults = "" + End + Begin ColumnWidths = 30 + Width = 284 + Width = 915 + Width = 1815 + Width = 690 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1665 + Width = 1665 + Width = 1500 + Width = 1500 + Width = 1050 + Width = 1020 + Width = 1125 + Width = 1815 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + End + End + Begin CriteriaPane = + Begin ColumnWidths = 11 + Column = 1440 + Alias = 900 + Table = 1170 + Output = 720 + Append = 1400 + NewValue = 1170 + SortType = 1350 + SortOrder = 1410 + GroupBy = 1350 + Filter = 1350 + Or = 1350 + Or = 1350 + Or = 1350 + End + End +End +', 'SCHEMA', 'dbo', 'VIEW', 'v_elencoIntervFilt' +go + +commit +go + + +create table OreAperturaSett( + giorno int not null constraint PK_OreAperturaSett_2 primary key, + descrGiorno nvarchar(50), + apertura int +) +go + + +set xact_abort on +go + +begin transaction +go + +INSERT INTO dbo.OreAperturaSett + VALUES (0, N'Dom', 0) +INSERT INTO dbo.OreAperturaSett + VALUES (1, N'Lun', 24) +INSERT INTO dbo.OreAperturaSett + VALUES (2, N'Mar', 24) +INSERT INTO dbo.OreAperturaSett + VALUES (3, N'Mer', 24) +INSERT INTO dbo.OreAperturaSett + VALUES (4, N'Gio', 24) +INSERT INTO dbo.OreAperturaSett + VALUES (5, N'Ven', 24) +INSERT INTO dbo.OreAperturaSett + VALUES (6, N'Sab', 8) +go + +commit transaction +go + + +set xact_abort on +go + +begin transaction +go + +set ANSI_NULLS on +go + +/************************************* +* STORED PROCEDURE stp_oreEquivalenti +* calcola le ore di apertura equivalenti x una data macchina e periodo +* +* modif.: S.E.L. - 2011.06.29 +**************************************/ +create PROCEDURE stp_oreEquivalenti +( + @dataFrom DATETIME, + @dataTo DATETIME, + @idxMacchina INT +) +AS + +SELECT dbo.f_diffOreLavorative(@dataFrom, @dataTo, @idxMacchina) AS apertura + +RETURN +go + +commit +go + + + + + +-- registro versione... +INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(20, GETDATE()) +GO \ No newline at end of file diff --git a/Projects/WebGIM/GIM_site/sql/Applicazione/GIM_0200.sql b/Projects/WebGIM/GIM_site/sql/Applicazione/GIM_0200.sql new file mode 100644 index 0000000..8d16c52 --- /dev/null +++ b/Projects/WebGIM/GIM_site/sql/Applicazione/GIM_0200.sql @@ -0,0 +1,111 @@ +set xact_abort on +go + +begin transaction +go + +set ANSI_NULLS on +go + +/********************************************************************************* +* TRIGGER trg_updateMPPending +* +* eliminazione, in caso di update di un intervento di MtzProgrammata, +* dei record di interventi "pending" predisposti... così saranno rigenerati corretti +* +**********************************************************************************/ +create TRIGGER trg_updateMPPending +ON MtzProgrammata +FOR UPDATE, DELETE +AS + +BEGIN tran + -- elimino interventi pending interessati... + DELETE + FROM MtzProgPending + WHERE idxIntPro IN + ( + -- prendendo gli interventi mtzProgrammata modificati... + SELECT DISTINCT idxIntPro FROM DELETED + ) + +COMMIT tran +go + +commit +go + + +set xact_abort on +go + +begin transaction +go + +exec sp_rename 'stp_duplicaMtzProgr', 'stp_MtzProg_duplica', 'object' +go + +set ANSI_NULLS on +go + +/********************************************************************************* +* STORED stp_MtzProg_getByKey +* +* restituisce riga MtzProg +* +**********************************************************************************/ +create PROCEDURE stp_MtzProg_getByKey +( + @idxIntPro INT +) +AS + +SELECT * +FROM MtzProgrammata +WHERE idxIntPro = @idxIntPro + +RETURN +go + +/********************************************************************************* +* STORED stp_MtzProg_update +* +* aggiorna riga MtzProg +* +**********************************************************************************/ +create PROCEDURE stp_MtzProg_update +( + @idxIntPro INT, + @inizio DATETIME, + @codFrequenza NCHAR(2), + @cadenza INT, + @descrizione NVARCHAR(500), + @idxPriorita INT, + @isFermo BIT, + @idxTipo INT +) +AS + +UPDATE MtzProgrammata +SET inizio = @inizio, + codFrequenza= @codFrequenza, + cadenza = @cadenza, + descrizione = @descrizione, + idxPriorita = @idxPriorita, + isFermo = @isFermo, + idxTipo = @idxTipo +WHERE idxIntPro = @idxIntPro + +RETURN +go + +commit +go + + + + + +-- registro versione... +INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(200, GETDATE()) +GO \ No newline at end of file diff --git a/Projects/WebGIM/GIM_site/sql/Voc/Somas_Vocabolario_V200.zip b/Projects/WebGIM/GIM_site/sql/Voc/Somas_Vocabolario_V200.zip new file mode 100644 index 0000000..83e4171 Binary files /dev/null and b/Projects/WebGIM/GIM_site/sql/Voc/Somas_Vocabolario_V200.zip differ diff --git a/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/AjaxControlToolkit.4.1.60623.nupkg b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/AjaxControlToolkit.4.1.60623.nupkg new file mode 100644 index 0000000..30edbea Binary files /dev/null and b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/AjaxControlToolkit.4.1.60623.nupkg differ diff --git a/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/content/web.config.transform b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/content/web.config.transform new file mode 100644 index 0000000..5c3cbea --- /dev/null +++ b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/content/web.config.transform @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/35/AjaxControlToolkit.dll b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/35/AjaxControlToolkit.dll new file mode 100644 index 0000000..23c20d6 Binary files /dev/null and b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/35/AjaxControlToolkit.dll differ diff --git a/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/35/SanitizerProviders/SanitizerProviders.dll b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/35/SanitizerProviders/SanitizerProviders.dll new file mode 100644 index 0000000..004e4ec Binary files /dev/null and b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/35/SanitizerProviders/SanitizerProviders.dll differ diff --git a/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/35/ar/AjaxControlToolkit.resources.dll b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/35/ar/AjaxControlToolkit.resources.dll new file mode 100644 index 0000000..57cc1b5 Binary files /dev/null and b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/35/ar/AjaxControlToolkit.resources.dll differ diff --git a/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/35/cs/AjaxControlToolkit.resources.dll b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/35/cs/AjaxControlToolkit.resources.dll new file mode 100644 index 0000000..167bcf3 Binary files /dev/null and b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/35/cs/AjaxControlToolkit.resources.dll differ diff --git a/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/35/de/AjaxControlToolkit.resources.dll b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/35/de/AjaxControlToolkit.resources.dll new file mode 100644 index 0000000..e92774b Binary files /dev/null and b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/35/de/AjaxControlToolkit.resources.dll differ diff --git a/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/35/es/AjaxControlToolkit.resources.dll b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/35/es/AjaxControlToolkit.resources.dll new file mode 100644 index 0000000..387675e Binary files /dev/null and b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/35/es/AjaxControlToolkit.resources.dll differ diff --git a/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/35/fr/AjaxControlToolkit.resources.dll b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/35/fr/AjaxControlToolkit.resources.dll new file mode 100644 index 0000000..10fcbed Binary files /dev/null and b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/35/fr/AjaxControlToolkit.resources.dll differ diff --git a/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/35/he/AjaxControlToolkit.resources.dll b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/35/he/AjaxControlToolkit.resources.dll new file mode 100644 index 0000000..f9a1b6a Binary files /dev/null and b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/35/he/AjaxControlToolkit.resources.dll differ diff --git a/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/35/hi/AjaxControlToolkit.resources.dll b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/35/hi/AjaxControlToolkit.resources.dll new file mode 100644 index 0000000..7325b17 Binary files /dev/null and b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/35/hi/AjaxControlToolkit.resources.dll differ diff --git a/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/35/it/AjaxControlToolkit.resources.dll b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/35/it/AjaxControlToolkit.resources.dll new file mode 100644 index 0000000..5c1b9d7 Binary files /dev/null and b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/35/it/AjaxControlToolkit.resources.dll differ diff --git a/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/35/ja/AjaxControlToolkit.resources.dll b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/35/ja/AjaxControlToolkit.resources.dll new file mode 100644 index 0000000..d4f0676 Binary files /dev/null and b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/35/ja/AjaxControlToolkit.resources.dll differ diff --git a/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/35/ko/AjaxControlToolkit.resources.dll b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/35/ko/AjaxControlToolkit.resources.dll new file mode 100644 index 0000000..a223cc9 Binary files /dev/null and b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/35/ko/AjaxControlToolkit.resources.dll differ diff --git a/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/35/nl/AjaxControlToolkit.resources.dll b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/35/nl/AjaxControlToolkit.resources.dll new file mode 100644 index 0000000..eea3619 Binary files /dev/null and b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/35/nl/AjaxControlToolkit.resources.dll differ diff --git a/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/35/pt/AjaxControlToolkit.resources.dll b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/35/pt/AjaxControlToolkit.resources.dll new file mode 100644 index 0000000..332a200 Binary files /dev/null and b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/35/pt/AjaxControlToolkit.resources.dll differ diff --git a/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/35/ru/AjaxControlToolkit.resources.dll b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/35/ru/AjaxControlToolkit.resources.dll new file mode 100644 index 0000000..c2affc0 Binary files /dev/null and b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/35/ru/AjaxControlToolkit.resources.dll differ diff --git a/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/35/tr-TR/AjaxControlToolkit.resources.dll b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/35/tr-TR/AjaxControlToolkit.resources.dll new file mode 100644 index 0000000..3ff44ce Binary files /dev/null and b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/35/tr-TR/AjaxControlToolkit.resources.dll differ diff --git a/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/35/zh-CHS/AjaxControlToolkit.resources.dll b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/35/zh-CHS/AjaxControlToolkit.resources.dll new file mode 100644 index 0000000..c13a230 Binary files /dev/null and b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/35/zh-CHS/AjaxControlToolkit.resources.dll differ diff --git a/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/35/zh-CHT/AjaxControlToolkit.resources.dll b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/35/zh-CHT/AjaxControlToolkit.resources.dll new file mode 100644 index 0000000..fc3061d Binary files /dev/null and b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/35/zh-CHT/AjaxControlToolkit.resources.dll differ diff --git a/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/40/AjaxControlToolkit.dll b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/40/AjaxControlToolkit.dll new file mode 100644 index 0000000..367a298 Binary files /dev/null and b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/40/AjaxControlToolkit.dll differ diff --git a/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/40/SanitizerProviders/HtmlAgilityPack.dll b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/40/SanitizerProviders/HtmlAgilityPack.dll new file mode 100644 index 0000000..b0692c1 Binary files /dev/null and b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/40/SanitizerProviders/HtmlAgilityPack.dll differ diff --git a/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/40/SanitizerProviders/SanitizerProviders.dll b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/40/SanitizerProviders/SanitizerProviders.dll new file mode 100644 index 0000000..9fa2fb5 Binary files /dev/null and b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/40/SanitizerProviders/SanitizerProviders.dll differ diff --git a/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/40/ar/AjaxControlToolkit.resources.dll b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/40/ar/AjaxControlToolkit.resources.dll new file mode 100644 index 0000000..17b19bf Binary files /dev/null and b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/40/ar/AjaxControlToolkit.resources.dll differ diff --git a/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/40/cs/AjaxControlToolkit.resources.dll b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/40/cs/AjaxControlToolkit.resources.dll new file mode 100644 index 0000000..1308906 Binary files /dev/null and b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/40/cs/AjaxControlToolkit.resources.dll differ diff --git a/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/40/de/AjaxControlToolkit.resources.dll b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/40/de/AjaxControlToolkit.resources.dll new file mode 100644 index 0000000..a2eea13 Binary files /dev/null and b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/40/de/AjaxControlToolkit.resources.dll differ diff --git a/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/40/es/AjaxControlToolkit.resources.dll b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/40/es/AjaxControlToolkit.resources.dll new file mode 100644 index 0000000..c122fbf Binary files /dev/null and b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/40/es/AjaxControlToolkit.resources.dll differ diff --git a/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/40/fr/AjaxControlToolkit.resources.dll b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/40/fr/AjaxControlToolkit.resources.dll new file mode 100644 index 0000000..42afefc Binary files /dev/null and b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/40/fr/AjaxControlToolkit.resources.dll differ diff --git a/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/40/he/AjaxControlToolkit.resources.dll b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/40/he/AjaxControlToolkit.resources.dll new file mode 100644 index 0000000..99011f2 Binary files /dev/null and b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/40/he/AjaxControlToolkit.resources.dll differ diff --git a/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/40/hi/AjaxControlToolkit.resources.dll b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/40/hi/AjaxControlToolkit.resources.dll new file mode 100644 index 0000000..3292c49 Binary files /dev/null and b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/40/hi/AjaxControlToolkit.resources.dll differ diff --git a/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/40/it/AjaxControlToolkit.resources.dll b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/40/it/AjaxControlToolkit.resources.dll new file mode 100644 index 0000000..b67c154 Binary files /dev/null and b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/40/it/AjaxControlToolkit.resources.dll differ diff --git a/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/40/ja/AjaxControlToolkit.resources.dll b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/40/ja/AjaxControlToolkit.resources.dll new file mode 100644 index 0000000..2de08da Binary files /dev/null and b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/40/ja/AjaxControlToolkit.resources.dll differ diff --git a/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/40/ko/AjaxControlToolkit.resources.dll b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/40/ko/AjaxControlToolkit.resources.dll new file mode 100644 index 0000000..e23bf66 Binary files /dev/null and b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/40/ko/AjaxControlToolkit.resources.dll differ diff --git a/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/40/nl/AjaxControlToolkit.resources.dll b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/40/nl/AjaxControlToolkit.resources.dll new file mode 100644 index 0000000..09efaa4 Binary files /dev/null and b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/40/nl/AjaxControlToolkit.resources.dll differ diff --git a/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/40/pt/AjaxControlToolkit.resources.dll b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/40/pt/AjaxControlToolkit.resources.dll new file mode 100644 index 0000000..d1dcdf3 Binary files /dev/null and b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/40/pt/AjaxControlToolkit.resources.dll differ diff --git a/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/40/ru/AjaxControlToolkit.resources.dll b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/40/ru/AjaxControlToolkit.resources.dll new file mode 100644 index 0000000..d4a1715 Binary files /dev/null and b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/40/ru/AjaxControlToolkit.resources.dll differ diff --git a/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/40/tr-TR/AjaxControlToolkit.resources.dll b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/40/tr-TR/AjaxControlToolkit.resources.dll new file mode 100644 index 0000000..52128f7 Binary files /dev/null and b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/40/tr-TR/AjaxControlToolkit.resources.dll differ diff --git a/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/40/zh-CHS/AjaxControlToolkit.resources.dll b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/40/zh-CHS/AjaxControlToolkit.resources.dll new file mode 100644 index 0000000..6e0ac87 Binary files /dev/null and b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/40/zh-CHS/AjaxControlToolkit.resources.dll differ diff --git a/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/40/zh-CHT/AjaxControlToolkit.resources.dll b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/40/zh-CHT/AjaxControlToolkit.resources.dll new file mode 100644 index 0000000..4c56583 Binary files /dev/null and b/Projects/WebGIM/packages/AjaxControlToolkit.4.1.60623/lib/40/zh-CHT/AjaxControlToolkit.resources.dll differ diff --git a/Projects/WebGIM/packages/repositories.config b/Projects/WebGIM/packages/repositories.config new file mode 100644 index 0000000..7b73145 --- /dev/null +++ b/Projects/WebGIM/packages/repositories.config @@ -0,0 +1,4 @@ + + + + \ No newline at end of file
-
-

- -

+
+

+ +

+
+
+ + +
-
- - - -