diff --git a/GIM_data/ExtLib/Microsoft.ReportViewer.Common.dll b/GIM_data/ExtLib/Microsoft.ReportViewer.Common.dll
deleted file mode 100644
index 8fae427..0000000
Binary files a/GIM_data/ExtLib/Microsoft.ReportViewer.Common.dll and /dev/null differ
diff --git a/GIM_data/ExtLib/Microsoft.ReportViewer.WebForms.dll b/GIM_data/ExtLib/Microsoft.ReportViewer.WebForms.dll
deleted file mode 100644
index d8b7fb3..0000000
Binary files a/GIM_data/ExtLib/Microsoft.ReportViewer.WebForms.dll and /dev/null differ
diff --git a/GIM_data/ExtLib/Microsoft.ReportViewer.WinForms.dll b/GIM_data/ExtLib/Microsoft.ReportViewer.WinForms.dll
deleted file mode 100644
index 2cb6418..0000000
Binary files a/GIM_data/ExtLib/Microsoft.ReportViewer.WinForms.dll and /dev/null differ
diff --git a/GIM_data/GIM_data.csproj b/GIM_data/GIM_data.csproj
deleted file mode 100644
index a11a3d8..0000000
--- a/GIM_data/GIM_data.csproj
+++ /dev/null
@@ -1,175 +0,0 @@
-
-
-
-
- Debug
- AnyCPU
- 9.0.30729
- 2.0
- {F66427C8-882A-4EF8-B42F-EF142906DC8C}
- {349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}
- Library
- Properties
- GIM_data
- GIM_data
- v4.6.2
-
-
- 3.5
-
- false
-
-
-
-
-
-
-
-
- true
- full
- false
- bin\
- DEBUG;TRACE
- prompt
- 4
- AllRules.ruleset
- false
-
-
- pdbonly
- true
- bin\
- TRACE
- prompt
- 4
- AllRules.ruleset
- false
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- True
- True
- DS_applicazione.xsd
-
-
- True
- True
- DS_Mag.xsd
-
-
- True
- True
- DS_utility.xsd
-
-
-
-
-
-
-
-
-
-
-
-
- DS_applicazione.xsd
-
-
- MSDataSetGenerator
- Designer
- DS_applicazione1.Designer.cs
-
-
- DS_applicazione.xsd
-
-
- DS_Mag.xsd
-
-
- Designer
- MSDataSetGenerator
- DS_Mag.Designer.cs
-
-
- DS_Mag.xsd
-
-
- DS_utility.xsd
-
-
- MSDataSetGenerator
- DS_utility.Designer.cs
- Designer
-
-
- DS_utility.xsd
-
-
-
-
-
-
-
- {2872dcfe-8b46-43b2-baa0-842a816a2dd5}
- SteamWare
-
-
-
- 10.0
- $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)
-
-
-
-
-
-
-
-
-
- False
- True
- 51125
- /
-
-
- False
- False
-
-
- False
-
-
-
-
-
\ No newline at end of file
diff --git a/GIM_data/TA_app.cs b/GIM_data/TA_app.cs
deleted file mode 100644
index b565d18..0000000
--- a/GIM_data/TA_app.cs
+++ /dev/null
@@ -1,228 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Web;
-using SteamWare;
-
-///
-/// Summary description for TA_app
-///
-public class TA_app
-{
- #region table adapters
-
- public GIM_data.DS_applicazioneTableAdapters.LogUpdateDbTableAdapter taLogUpdate;
- public GIM_data.DS_applicazioneTableAdapters.AnagImpiantiTableAdapter taImpianti;
- public GIM_data.DS_applicazioneTableAdapters.v_macchineTableAdapter taMacchine;
- public GIM_data.DS_utilityTableAdapters.v_selImpiantiTableAdapter taSelImpianti;
- public GIM_data.DS_utilityTableAdapters.v_selMacchineTableAdapter taSelMacchine;
- public GIM_data.DS_applicazioneTableAdapters.v_selFamMaccTableAdapter taMacc2Fam;
- public GIM_data.DS_applicazioneTableAdapters.v_intervExpTableAdapter taInterventiMtz;
- public GIM_data.DS_applicazioneTableAdapters.AnagStatiTableAdapter taStati;
- public GIM_data.DS_applicazioneTableAdapters.AnagPrioritaTableAdapter taPrior;
- public GIM_data.DS_applicazioneTableAdapters.InterventoOpMtzTableAdapter taIntOpMtz;
- public GIM_data.DS_applicazioneTableAdapters.v_mtzProgExpTableAdapter taMtzPro;
- public GIM_data.DS_utilityTableAdapters.v_elencoImpiantiMacchineTableAdapter taElencoImpMacch;
- public GIM_data.DS_utilityTableAdapters.v_elencoIntervFiltTableAdapter taElencoIntFilt;
- public GIM_data.DS_utilityTableAdapters.sp_elencoIntMTBF_MTTRTableAdapter taElenco_MTBF_MTTR;
- public GIM_data.DS_applicazioneTableAdapters.CalendFesteFerieTableAdapter taCalFF;
- public GIM_data.DS_applicazioneTableAdapters.OreAperturaSettTableAdapter taOreApert;
- public GIM_data.DS_applicazioneTableAdapters.FiltroImpiantiTableAdapter taFiltImp;
- public GIM_data.DS_applicazioneTableAdapters.FiltroMacchineTableAdapter taFiltMac;
- public GIM_data.DS_applicazioneTableAdapters.FiltroStatiTableAdapter taFiltSta;
- public GIM_data.DS_applicazioneTableAdapters.AnagCausaliTableAdapter taAnagCau;
- public GIM_data.DS_utilityTableAdapters.v_selOperMtzTableAdapter taSelMatrOp;
- public GIM_data.DS_utilityTableAdapters.v_selCodRicAmmTableAdapter taSelCRA;
- public GIM_data.DS_applicazioneTableAdapters.ImpiegoRisorseTableAdapter taImpRis;
- public GIM_data.DS_applicazioneTableAdapters.v_allDataTableAdapter taAllData;
- public GIM_data.DS_applicazioneTableAdapters.ElencoIntervExtTableAdapter taElencoIntExt;
- public GIM_data.DS_MagTableAdapters.AnagItemsTableAdapter taAnagItem;
- public GIM_data.DS_MagTableAdapters.AnagLocazioniTableAdapter taAnagLoc;
- public GIM_data.DS_MagTableAdapters.AnagTagsTableAdapter taAnagTags;
- public GIM_data.DS_MagTableAdapters.MagRicTableAdapter taMagRic;
- public GIM_data.DS_MagTableAdapters.MovMagRicTableAdapter taMovMag;
- public GIM_data.DS_MagTableAdapters.SinonimiTagTableAdapter taSinTag;
- public GIM_data.DS_MagTableAdapters.StatoMagTableAdapter taStatoMag;
- public GIM_data.DS_MagTableAdapters.Tag2ItemTableAdapter taTag2Item;
- public GIM_data.DS_MagTableAdapters.Tag2MaccTableAdapter taTag2Macc;
-
- #endregion
-
- ///
- /// effettua setup dei connection strings da web.config della singola applicazione
- ///
- protected virtual void setupConnectionString()
- {
- // connections del db
- string connString = memLayer.ML.confReadString("AppConnectionString");
- taLogUpdate.Connection.ConnectionString = connString;
- taImpianti.Connection.ConnectionString = connString;
- taMacchine.Connection.ConnectionString = connString;
- taSelImpianti.Connection.ConnectionString = connString;
- taSelMacchine.Connection.ConnectionString = connString;
- taMacc2Fam.Connection.ConnectionString = connString;
- taInterventiMtz.Connection.ConnectionString = connString;
- taStati.Connection.ConnectionString = connString;
- taPrior.Connection.ConnectionString = connString;
- taIntOpMtz.Connection.ConnectionString = connString;
- taMtzPro.Connection.ConnectionString = connString;
- taElencoImpMacch.Connection.ConnectionString = connString;
- taElencoIntFilt.Connection.ConnectionString = connString;
- taElenco_MTBF_MTTR.Connection.ConnectionString = connString;
- taCalFF.Connection.ConnectionString = connString;
- taOreApert.Connection.ConnectionString = connString;
- taFiltImp.Connection.ConnectionString = connString;
- taFiltMac.Connection.ConnectionString = connString;
- taFiltSta.Connection.ConnectionString = connString;
- taAnagCau.Connection.ConnectionString = connString;
- taSelMatrOp.Connection.ConnectionString = connString;
- taSelCRA.Connection.ConnectionString = connString;
- taImpRis.Connection.ConnectionString = connString;
- taAllData.Connection.ConnectionString = connString;
- taElencoIntExt.Connection.ConnectionString = connString;
- taAnagItem.Connection.ConnectionString = connString;
- taAnagLoc.Connection.ConnectionString = connString;
- taAnagTags.Connection.ConnectionString = connString;
- taMagRic.Connection.ConnectionString = connString;
- taMovMag.Connection.ConnectionString = connString;
- taSinTag.Connection.ConnectionString = connString;
- taStatoMag.Connection.ConnectionString = connString;
- taTag2Item.Connection.ConnectionString = connString;
- taTag2Macc.Connection.ConnectionString = connString;
- }
- protected TA_app()
- {
- initTA();
- setupConnectionString();
- }
-
- private void initTA()
- {
- // avvio table adapters
- taLogUpdate = new GIM_data.DS_applicazioneTableAdapters.LogUpdateDbTableAdapter();
- taImpianti = new GIM_data.DS_applicazioneTableAdapters.AnagImpiantiTableAdapter();
- taMacchine = new GIM_data.DS_applicazioneTableAdapters.v_macchineTableAdapter();
- taSelImpianti = new GIM_data.DS_utilityTableAdapters.v_selImpiantiTableAdapter();
- taSelMacchine = new GIM_data.DS_utilityTableAdapters.v_selMacchineTableAdapter();
- taMacc2Fam = new GIM_data.DS_applicazioneTableAdapters.v_selFamMaccTableAdapter();
- taInterventiMtz = new GIM_data.DS_applicazioneTableAdapters.v_intervExpTableAdapter();
- taStati = new GIM_data.DS_applicazioneTableAdapters.AnagStatiTableAdapter();
- taPrior = new GIM_data.DS_applicazioneTableAdapters.AnagPrioritaTableAdapter();
- taIntOpMtz = new GIM_data.DS_applicazioneTableAdapters.InterventoOpMtzTableAdapter();
- taMtzPro = new GIM_data.DS_applicazioneTableAdapters.v_mtzProgExpTableAdapter();
- taElencoImpMacch = new GIM_data.DS_utilityTableAdapters.v_elencoImpiantiMacchineTableAdapter();
- taElencoIntFilt = new GIM_data.DS_utilityTableAdapters.v_elencoIntervFiltTableAdapter();
- taElenco_MTBF_MTTR = new GIM_data.DS_utilityTableAdapters.sp_elencoIntMTBF_MTTRTableAdapter();
- taCalFF = new GIM_data.DS_applicazioneTableAdapters.CalendFesteFerieTableAdapter();
- taOreApert = new GIM_data.DS_applicazioneTableAdapters.OreAperturaSettTableAdapter();
- taFiltImp = new GIM_data.DS_applicazioneTableAdapters.FiltroImpiantiTableAdapter();
- taFiltMac = new GIM_data.DS_applicazioneTableAdapters.FiltroMacchineTableAdapter();
- taFiltSta = new GIM_data.DS_applicazioneTableAdapters.FiltroStatiTableAdapter();
- taAnagCau = new GIM_data.DS_applicazioneTableAdapters.AnagCausaliTableAdapter();
- taSelMatrOp = new GIM_data.DS_utilityTableAdapters.v_selOperMtzTableAdapter();
- taSelCRA= new GIM_data.DS_utilityTableAdapters.v_selCodRicAmmTableAdapter();
- taImpRis = new GIM_data.DS_applicazioneTableAdapters.ImpiegoRisorseTableAdapter();
- taAllData = new GIM_data.DS_applicazioneTableAdapters.v_allDataTableAdapter();
- taElencoIntExt = new GIM_data.DS_applicazioneTableAdapters.ElencoIntervExtTableAdapter();
- taAnagItem = new GIM_data.DS_MagTableAdapters.AnagItemsTableAdapter();
- taAnagLoc = new GIM_data.DS_MagTableAdapters.AnagLocazioniTableAdapter();
- taAnagTags = new GIM_data.DS_MagTableAdapters.AnagTagsTableAdapter();
- taMagRic = new GIM_data.DS_MagTableAdapters.MagRicTableAdapter();
- taMovMag = new GIM_data.DS_MagTableAdapters.MovMagRicTableAdapter();
- taSinTag = new GIM_data.DS_MagTableAdapters.SinonimiTagTableAdapter();
- taStatoMag = new GIM_data.DS_MagTableAdapters.StatoMagTableAdapter();
- taTag2Item = new GIM_data.DS_MagTableAdapters.Tag2ItemTableAdapter();
- taTag2Macc = new GIM_data.DS_MagTableAdapters.Tag2MaccTableAdapter();
- }
-
- ///
- /// Singleton
- ///
- public static TA_app obj = new TA_app();
- ///
- /// restituisce versione corrente del db applicativo
- ///
- public int appDB_act
- {
- get
- {
- int answ = -1;
- try
- {
- answ = (int)taLogUpdate.getDbVers();
- }
- catch
- {
- logger.lg.scriviLog("Errore recupero versione DB applicativo GIM!", tipoLog.EXCEPTION);
- }
- return answ;
- }
- }
- ///
- /// restituisce versione corrente del db vocabolario
- ///
- public int vocDB_act
- {
- get
- {
- int answ = -1;
- try
- {
- answ = (int)DataWrap.DW.taLogVoc.getDbVers();
- }
- catch
- {
- logger.lg.scriviLog("Errore recupero versione DB Vocabolario!", tipoLog.EXCEPTION);
- }
- return answ;
- }
- }
- ///
- /// restituisce versione corrente del db anagrafica
- ///
- public int anaDB_act
- {
- get
- {
- int answ = -1;
- try
- {
- answ = answ = (int)DataWrap.DW.taLogAna.getDbVers();
- }
- catch
- {
- logger.lg.scriviLog("Errore recupero versione DB Anagrafica!", tipoLog.EXCEPTION);
- }
- return answ;
- }
- }
- ///
- /// restituisce versione richiesta per il db applicativo
- ///
- public int appDB_req
- {
- get
- {
- return memLayer.ML.confReadInt("dbAppVers");
- }
- }
- ///
- /// restituisce versione richiesta per il db vocabolario
- ///
- public int vocDB_req
- {
- get
- {
- return memLayer.ML.confReadInt("dbVocabVers");
- }
- }
- ///
- /// restituisce versione richiesta per il db anagrafica
- ///
- public int anaDB_req
- {
- get
- {
- return memLayer.ML.confReadInt("dbAuthVers");
- }
- }
-}
\ No newline at end of file
diff --git a/GIM_data/WebGimUtils.cs b/GIM_data/WebGimUtils.cs
deleted file mode 100644
index 1eaec28..0000000
--- a/GIM_data/WebGimUtils.cs
+++ /dev/null
@@ -1,103 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Web;
-using SteamWare;
-using System.Globalization;
-
-///
-/// Utility varie di WebGim
-///
-public class WebGimUtils
-{
- protected WebGimUtils()
- {
- }
- ///
- /// calcola le ore lavorative equivalenti ad un dato periodo calcolando la settimana tipo e togliendo le festività eventualmente presenti
- ///
- ///
- ///
- public double oreEquivalenti(intervalloDate periodo)
- {
- double answ = 0;
- try
- {
- answ = Convert.ToDouble(TA_app.obj.taOreApert.oreLavoratePeriodo(periodo.inizio, periodo.fine, 0));// per ora non imposto la macchina...
- }
- catch
- { }
- // restituisco risposta
- return answ;
- }
-
- ///
- /// converte in datetime un valore formattato con una culture generica ed un formato generico
- ///
- ///
- ///
- ///
- ///
- ///
- public static DateTime convDate(string dataOra, string formato, string cultura, bool doLog)
- {
- DateTime answ = DateTime.Now;
- CultureInfo culture = new CultureInfo(cultura);
- if(doLog) logger.lg.scriviLog(string.Format("Valore txt:{1}", Environment.NewLine, dataOra), tipoLog.INFO);
- bool fatto = false;
- fatto = DateTime.TryParseExact(dataOra, formato, culture, DateTimeStyles.None, out answ);
- if (doLog) logger.lg.scriviLog(string.Format("{0}Valore txt:{1}{0}Valore conv:{2}", Environment.NewLine, dataOra, answ), tipoLog.INFO);
- if (!fatto)
- {
- answ = Convert.ToDateTime(dataOra);
- }
- if (doLog) logger.lg.scriviLog(string.Format("{0}Valore txt:{1}{0}Valore conv BIS:{2}", Environment.NewLine, dataOra, answ), tipoLog.INFO);
- return answ;
- }
- ///
- /// converte in datetime un valore formattato con una culture generica ed un formato generico
- ///
- ///
- ///
- ///
- ///
- public static DateTime convDate(string dataOra, string formato, string cultura)
- {
- return convDate(dataOra, formato, cultura, false);
- }
- public static WebGimUtils obj = new WebGimUtils();
-
- ///
- /// restituisce il filePath (reale) della dir dedicata ad un dato intervento...
- ///
- ///
- ///
- public static string dirPathIntMtz(int numInt)
- {
- // ipotesi: folder bilanciate andando a mettere MAX 1000 files x folder, quindi fodler 0 --> 0...999, 1000 --> 1000...1999, etc
- int maxFiles = 1000;
- int numDir = numInt / maxFiles;
- string uploadDir = memLayer.ML.CRS("uploadDir");
- return string.Format(@"{0}\{1}\{2}", uploadDir, numDir*maxFiles, numInt);
- }
-
- ///
- /// Fornisce elenco dei files di un dato intervento di MTZ cercando su filesystem
- ///
- ///
- ///
- public static DataLayer_generic.filesDataTable elencoFiles(int numInt)
- {
- // in primis faccio controllo esistenza folder...
- return fileMover.obj.elencoFilesDir(dirPathIntMtz(numInt));
- }
- ///
- /// Elimina file richiesto
- ///
- ///
- ///
- public void eliminaFile(int numInt, string Original_Nome)
- {
- fileMover.deleteFile(string.Format("{0}\\{1}", dirPathIntMtz(numInt), Original_Nome));
- }
-
-}
\ No newline at end of file
diff --git a/GIM_data/bin/GIM_data.dll b/GIM_data/bin/GIM_data.dll
deleted file mode 100644
index 99edb65..0000000
Binary files a/GIM_data/bin/GIM_data.dll and /dev/null differ
diff --git a/GIM_data/bin/Microsoft.ReportViewer.Common.dll b/GIM_data/bin/Microsoft.ReportViewer.Common.dll
deleted file mode 100644
index 8fae427..0000000
Binary files a/GIM_data/bin/Microsoft.ReportViewer.Common.dll and /dev/null differ
diff --git a/GIM_data/bin/Microsoft.ReportViewer.WinForms.dll b/GIM_data/bin/Microsoft.ReportViewer.WinForms.dll
deleted file mode 100644
index 2cb6418..0000000
Binary files a/GIM_data/bin/Microsoft.ReportViewer.WinForms.dll and /dev/null differ
diff --git a/GIM_data/bin/SteamWare.dll b/GIM_data/bin/SteamWare.dll
deleted file mode 100644
index f8621ee..0000000
Binary files a/GIM_data/bin/SteamWare.dll and /dev/null differ
diff --git a/GIM_data/enumerazioni.cs b/GIM_data/enumerazioni.cs
deleted file mode 100644
index efa09af..0000000
--- a/GIM_data/enumerazioni.cs
+++ /dev/null
@@ -1,24 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Web;
-
-///
-/// Summary description for enumerazioni
-///
-public class enumerazioni
-{
- public enumerazioni()
- {
- //
- // TODO: Add constructor logic here
- //
- }
-}
-public enum tipoSelettore
-{
- cdc,
- impianti,
- macchine,
- utentiAll,
- utentiCdc
-}
diff --git a/GIM_data/mtzProgr.cs b/GIM_data/mtzProgr.cs
deleted file mode 100644
index c506379..0000000
--- a/GIM_data/mtzProgr.cs
+++ /dev/null
@@ -1,187 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Web;
-using SteamWare;
-
-///
-/// Metodi di gestione della manutenzione programmata
-///
-public class mtzProgr
-{
- #region table adapters
-
- public GIM_data.DS_applicazioneTableAdapters.MtzProgrammataTableAdapter taMtzProg;
- public GIM_data.DS_applicazioneTableAdapters.MtzProgPendingTableAdapter taMtzPend;
-
- #endregion
-
- ///
- /// avvio componente
- ///
- protected mtzProgr()
- {
- initTA();
- setupConnectionString();
- }
-
- private void initTA()
- {
- taMtzPend = new GIM_data.DS_applicazioneTableAdapters.MtzProgPendingTableAdapter();
- taMtzProg = new GIM_data.DS_applicazioneTableAdapters.MtzProgrammataTableAdapter();
- }
- ///
- /// effettua setup dei connection strings da web.config della singola applicazione
- ///
- protected virtual void setupConnectionString()
- {
- // connections del db
- string connString = memLayer.ML.confReadString("AppConnectionString");
- taMtzPend.Connection.ConnectionString = connString;
- taMtzProg.Connection.ConnectionString = connString;
- }
- ///
- /// singleton accesso ai metodi di manutenzione programmata
- ///
- public static mtzProgr obj = new mtzProgr();
- ///
- /// verifica se ci siano interventi pending ed eventualmente li accoda
- ///
- public void processaCodaMtzPro()
- {
- // cerco eventuali interventi scaduti
- insertPending();
- // metto in coda tutte le ricorrenze non presenti...
- rebuildPending();
- }
- ///
- /// inserisce nelle richieste attuali gli interventi programmati scaduti
- ///
- private void insertPending()
- {
- int richInserted = 0;
- //recupero solo gli interventi già "scaduti"
- foreach (GIM_data.DS_applicazione.MtzProgPendingRow rigaMtz in taMtzPend.getByDataScad(DateTime.Now))
- {
- richInserted = insRich(rigaMtz);
- // inserisco trasformandoli in richieste ...
- if (richInserted != 0) // se va a buon fine
- {
- logger.lg.scriviLog(string.Format("Accodata la richiesta di manutenzione (programmata) num {0}", richInserted), tipoLog.INFO);
- // ...e li tolgo dall'elenco pending
- taMtzPend.Delete(rigaMtz.idxPending);
- }
- else
- {
- logger.lg.scriviLog(string.Format("Non è stato possibile accodare la richiesta di manutenzione programmata cod {0} relativa alla macchina {1}", rigaMtz.idxIntPro, rigaMtz.idxMacchina), tipoLog.ERROR);
- }
- }
- }
- ///
- /// ricostruisce la coda degli intervneti pending
- ///
- private void rebuildPending()
- {
- int multiplo = 0;
- int stimaIniz = 0;
- double ggEquiv = 0;
- TimeSpan distDate;
- DateTime adesso = DateTime.Now;
- DateTime dataProp;
- foreach (GIM_data.DS_applicazione.MtzProgrammataRow rigaMtz in taMtzProg.getNotScheduled())
- {
- dataProp = rigaMtz.inizio;
- // proseguo SOLO se inizio interventi <= data odierna...)
- if (rigaMtz.inizio < adesso)
- {
- //calcolo l'intervallo timeSpan tra inizio interventi e data odierna
- distDate = adesso.Subtract(rigaMtz.inizio);
- // in base al tipo di intervallo faccio un calcolo grezzo del periodo trascorso...
- ggEquiv = distDate.TotalDays;
- switch (rigaMtz.codFrequenza)
- {
- case "dd":
- stimaIniz = (int)Math.Floor(ggEquiv / rigaMtz.cadenza);
- break;
- case "ww":
- stimaIniz = (int)Math.Floor(ggEquiv / (rigaMtz.cadenza * 7));
- break;
- case "MM":
- stimaIniz = (int)Math.Floor(ggEquiv / (rigaMtz.cadenza * 30));
- break;
- case "yy":
- stimaIniz = (int)Math.Floor(ggEquiv / (rigaMtz.cadenza * 365));
- break;
- }
- // parto con la stima iniziale decrementata (se >0...)
- if (stimaIniz == 0)
- {
- multiplo = 0;
- }
- else
- {
- multiplo = stimaIniz - 1;
- }
- // ciclo fino a quando la data indicata non è successiva all'adesso...
- while (dataProp < adesso)
- {
- // aggiorno la data di riferimento
- switch (rigaMtz.codFrequenza)
- {
- case "dd":
- dataProp = rigaMtz.inizio.AddDays(rigaMtz.cadenza * multiplo);
- break;
- case "ww":
- dataProp = rigaMtz.inizio.AddDays(rigaMtz.cadenza * 7 * multiplo);
- break;
- case "MM":
- dataProp = rigaMtz.inizio.AddMonths(rigaMtz.cadenza * multiplo);
- break;
- case "yy":
- dataProp = rigaMtz.inizio.AddYears(rigaMtz.cadenza * multiplo);
- break;
- }
- multiplo++;
- }
- // salvo la data trovata...
- rigaMtz.inizio = dataProp;
- }
- // infine inserisco intervento...
- insMtzPend(rigaMtz);
- }
- }
- ///
- /// inserisce l'intervento della riga indicata tra quelli "pending"
- ///
- ///
- protected void insMtzPend(GIM_data.DS_applicazione.MtzProgrammataRow riga)
- {
- mtzProgr.obj.taMtzPend.Insert(riga.idxIntPro, riga.idxMacchina, riga.inizio, riga.descrizione, riga.idxPriorita, riga.isFermo, riga.idxTipo, riga.idxCausale);
- }
- ///
- /// genera la richiesta di manutenzione dalla richiesta pending associata
- ///
- ///
- ///
- protected int insRich(GIM_data.DS_applicazione.MtzProgPendingRow riga)
- {
- int? answ = 0;
- // calcolo date riferimento...
- DateTime adesso = DateTime.Now;
- int shift = memLayer.ML.confReadInt("shiftTurno");
- int durataTurno = memLayer.ML.confReadInt("durataTurno");
- int turno = Convert.ToInt32(Math.Ceiling((double)Convert.ToDouble(DateTime.Now.AddHours(-shift + 1).Hour) / durataTurno));
- int idxAmbito = 7; //mtz programmata...
- int idxImpianto = 0;
- try
- {
- idxImpianto = TA_app.obj.taMacchine.getByIdxMacchina(riga.idxMacchina)[0].idxImpianto;
- }
- catch (Exception e)
- {
- logger.lg.scriviLog(string.Format("Errore nel recuperare impianto relativo alla macchina {0}, eccezione {1}", riga.idxMacchina, e), tipoLog.EXCEPTION);
- }
- // inserisco
- TA_app.obj.taInterventiMtz.sp_insRichiesta(adesso, adesso.AddHours(-shift + 1), turno, "PROG", riga.data, idxAmbito, riga.idxPriorita, riga.isFermo, riga.idxTipo, idxImpianto, riga.idxMacchina, riga.descrizione, riga.idxCausale, true, ref answ);
- return (int)answ;
- }
-}
diff --git a/GIM_data/reportExporter.cs b/GIM_data/reportExporter.cs
deleted file mode 100644
index 05fbbba..0000000
--- a/GIM_data/reportExporter.cs
+++ /dev/null
@@ -1,217 +0,0 @@
-using System;
-using System.Data;
-using SteamWare;
-using Microsoft.Reporting.WinForms;
-
-///
-/// Classe che restituisce uno stream ed i dati accessori per reinviare un report in pdf
-///
-public class reportExporter
-{
- ///
- /// mimeType del report
- ///
- public string mimeType;
- ///
- /// encoding dei dati
- ///
- public string encoding;
- ///
- /// nome estensione
- ///
- public string fileNameExtension;
- ///
- /// steam di bytes del report
- ///
- public byte[] renderedBytes;
- ///
- /// metodo protected
- ///
- public reportExporter()
- {
- }
- ///
- /// carica i dati richiesti dal report dalla StoredProcedure (filtrando quindi...)
- ///
- /// report ammessi: RichiestaIntervento
- /// num int mtz
- /// tabella dati
- private DataTable caricaDati(reportRichiesto tipoReport, string idxObj)
- {
- DataTable tab = new DataTable();
- switch (tipoReport)
- {
- case reportRichiesto.ElencoMacchine:
- tab = (DataTable)TA_app.obj.taElencoImpMacch.GetData();
- break;
- case reportRichiesto.RichiestaIntervento:
- tab = (DataTable)TA_app.obj.taInterventiMtz.getByIdx(Convert.ToInt32(idxObj));
- break;
- default:
- break;
- }
- return tab;
- }
- ///
- /// carica i dati richiesti dal report dalla StoredProcedure (filtrando quindi...)
- ///
- /// report ammessi: ElencoMacchine
- /// tabella dati
- private DataTable caricaDati(reportRichiesto tipoReport)
- {
- DataTable tab = new DataTable();
- switch (tipoReport)
- {
- case reportRichiesto.ElencoMacchine:
- tab = (DataTable)TA_app.obj.taElencoImpMacch.GetData();
- break;
- default:
- break;
- }
- return tab;
- }
- ///
- /// carica i dati richiesti dal report dalla StoredProcedure (filtrando quindi...)
- ///
- /// report ammessi: ElencoInterventi / MTBF_MTTR
- /// oggetto che contiene data inizio e data fine dell'analisi richiesta per il report
- /// username (per caricare i suoi filtraggi...
- /// se si devono includere SOLO i dati di macchina ferma
- /// se si deve includere anche nel report le fermate di mtz preventiva
- /// tabella dati
- private DataTable caricaDati(reportRichiesto tipoReport, intervalloDate periodoAnalizzato, string username, bool soloMacchinaFerma, bool includiMtzPrev)
- {
- DataTable tab = new DataTable();
- switch (tipoReport)
- {
- case reportRichiesto.ElencoInterventi:
- // controllo: se include mtz prev e non solo ferma
- if (!soloMacchinaFerma && includiMtzPrev)
- {
- // ...uso metodo std
- tab = (DataTable)TA_app.obj.taElencoIntFilt.getByIntervDateUsernameFilt(periodoAnalizzato.inizio, periodoAnalizzato.fine, username);
- }
- else
- {
- // altrimenti stored compelta (e + lenta)
- tab = (DataTable)TA_app.obj.taElencoIntFilt.getByIntervDateUsernameFilt_fermaPrev(periodoAnalizzato.inizio, periodoAnalizzato.fine, username, soloMacchinaFerma, includiMtzPrev);
- }
- break;
- case reportRichiesto.MTBF_MTTR:
- // controllo: se include mtz prev e non solo ferma
- if (!soloMacchinaFerma && includiMtzPrev)
- {
- // ...uso metodo std
- tab = (DataTable)TA_app.obj.taElenco_MTBF_MTTR.GetData(periodoAnalizzato.inizio, periodoAnalizzato.fine, username);
- }
- else
- {
- // altrimenti stored compelta (e + lenta)
- tab = (DataTable)TA_app.obj.taElenco_MTBF_MTTR.getByFermaPrev(periodoAnalizzato.inizio, periodoAnalizzato.fine, username, soloMacchinaFerma, includiMtzPrev);
- }
- break;
- default:
- break;
- }
- return tab;
- }
- ///
- /// renderizza il report in pdf
- ///
- /// report ammessi: ElencoMacchine
- ///
- public void popolaPdfStream(reportRichiesto tipoReport)
- {
- LocalReport report = new LocalReport();
- report.EnableExternalImages = true;
- devInfoParam deviceInfo = new devInfoParam("PDF", "21cm", "29.7cm", "0.2cm", "0.2cm", "0.2cm", "0.2cm");
- switch (tipoReport)
- {
- case reportRichiesto.ElencoMacchine:
- report.ReportPath = string.Format(@".\{0}\{1}\MacchineReparti.rdlc", memLayer.ML.CRS("ReportBasePath"), user_std.UtSn.lingua);
- report.DataSources.Add(new ReportDataSource("WebGim", caricaDati(tipoReport)));
- deviceInfo = new devInfoParam("PDF", "21cm", "29.7cm", "0.2cm", "0.2cm", "0.2cm", "0.2cm");
- break;
- default:
- break;
- }
- createPdfStream(report, deviceInfo.xmlParam);
- }
- ///
- /// renderizza il report in pdf
- ///
- /// report ammessi: RichiestaIntervento
- /// idx della richiesta (numIntMtz)
- ///
- public void popolaPdfStream(reportRichiesto tipoReport, string parametro)
- {
- LocalReport report = new LocalReport();
- report.EnableExternalImages = true;
- devInfoParam deviceInfo = new devInfoParam("PDF", "21cm", "29.7cm", "0.2cm", "0.2cm", "0.2cm", "0.2cm");
- switch (tipoReport)
- {
- case reportRichiesto.RichiestaIntervento:
- report.ReportPath = string.Format(@".\{0}\{1}\RichiestaIntervento.rdlc", memLayer.ML.CRS("ReportBasePath"), user_std.UtSn.lingua);
- report.DataSources.Add(new ReportDataSource("WebGim", caricaDati(tipoReport, parametro))); // OCCHIO!!! va messa sorgente dati CORRETTA
- deviceInfo = new devInfoParam("PDF", "29.7cm", "21cm", "0.2cm", "0.2cm", "0.2cm", "0.2cm");
- break;
- default:
- break;
- }
- createPdfStream(report, deviceInfo.xmlParam);
- }
- ///
- /// renderizza il report in pdf
- ///
- /// report ammessi: ElencoInterventi / MTBF_MTTR
- /// oggetto che contiene data inizio e data fine dell'analisi richiesta per il report
- /// username (per caricare i suoi filtraggi...
- /// se si devono includere SOLO i dati di macchina ferma
- /// se si deve includere anche nel report le fermate di mtz preventiva
- public void popolaPdfStream(reportRichiesto tipoReport, intervalloDate periodoAnalizzato, string username, bool soloMacchinaFerma, bool includiMtzPrev)
- {
- LocalReport report = new LocalReport();
- report.EnableExternalImages = true;
- devInfoParam deviceInfo = new devInfoParam("PDF", "21cm", "29.7cm", "0.2cm", "0.2cm", "0.2cm", "0.2cm");
- switch (tipoReport)
- {
- case reportRichiesto.ElencoInterventi:
- report.ReportPath = string.Format(@".\{0}\{1}\ReportInterventi.rdlc", memLayer.ML.CRS("ReportBasePath"), user_std.UtSn.lingua);
- report.DataSources.Add(new ReportDataSource("WebGim", caricaDati(tipoReport, periodoAnalizzato, username, soloMacchinaFerma, includiMtzPrev)));
- deviceInfo = new devInfoParam("PDF", "29.7cm", "21cm", "0.2cm", "0.2cm", "0.2cm", "0.2cm");
- break;
- case reportRichiesto.MTBF_MTTR:
- report.ReportPath = string.Format(@".\{0}\{1}\Report_MTBF_MTTR.rdlc", memLayer.ML.CRS("ReportBasePath"), user_std.UtSn.lingua);
- report.DataSources.Add(new ReportDataSource("WebGim", caricaDati(tipoReport, periodoAnalizzato, username, soloMacchinaFerma, includiMtzPrev)));
- deviceInfo = new devInfoParam("PDF", "29.7cm", "21cm", "0.2cm", "0.2cm", "0.2cm", "0.2cm");
- // calcolo le ore totali equivalenti...
- ReportParameter[] OreTotali = { new ReportParameter("OreTotali", WebGimUtils.obj.oreEquivalenti(periodoAnalizzato).ToString()) };
- report.SetParameters(OreTotali);
- break;
- default:
- break;
- }
- createPdfStream(report, deviceInfo.xmlParam);
- }
- ///
- /// crea il vero e proprio stream pdf
- ///
- ///
- ///
- private void createPdfStream(LocalReport report, string deviceInfo)
- {
- // export in PDF
- string reportType = "PDF";
- Warning[] warnings;
- string[] streams;
- renderedBytes = report.Render(
- reportType,
- deviceInfo,
- out mimeType,
- out encoding,
- out fileNameExtension,
- out streams,
- out warnings);
- }
-
-}
diff --git a/GIM_data/reportPrinter.cs b/GIM_data/reportPrinter.cs
deleted file mode 100644
index ce63d2f..0000000
--- a/GIM_data/reportPrinter.cs
+++ /dev/null
@@ -1,236 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Data;
-using System.Drawing.Imaging;
-using System.Drawing.Printing;
-using System.IO;
-using System.Text;
-using SteamWare;
-using Microsoft.Reporting.WinForms;
-
-///
-/// Classe che si occupa di stampare report da reportViewer via printer remota
-///
-public class reportPrinter
-{
-
- #region area codice da non modificare
-
- private int m_currentPageIndex;
- private IList m_streams;
- ///
- /// ciclo da fornire al renderizzatore dei report, per salvare 1 immagine da ogni pagina del report
- ///
- ///
- ///
- ///
- ///
- ///
- ///
- private Stream CreateStream(string name, string fileNameExtension, Encoding encoding, string mimeType, bool willSeek)
- {
- Stream stream = new FileStream(SteamWare.SteamwareStrings.getFilePath(@".\temp\" + name + "." + fileNameExtension), FileMode.Create);
- m_streams.Add(stream);
- return stream;
- }
- ///
- /// Handler per PrintPageEvents
- ///
- ///
- ///
- private void PrintPage(object sender, PrintPageEventArgs ev)
- {
- Metafile pageImage = new Metafile(m_streams[m_currentPageIndex]);
- ev.Graphics.DrawImage(pageImage, ev.PageBounds);
- m_currentPageIndex++;
- ev.HasMorePages = (m_currentPageIndex < m_streams.Count);
- }
- ///
- /// funzione di stampa...
- ///
- private void Print(string printerName)
- {
- //const string printerName = "Microsoft Office Document Image Writer";
- //const string printerName = "Brother HL-2170W series";
- if (m_streams == null || m_streams.Count == 0)
- return;
- PrintDocument printDoc = new PrintDocument();
- printDoc.PrinterSettings.PrinterName = printerName;
- if (!printDoc.PrinterSettings.IsValid)
- {
- logger.lg.scriviLog(String.Format("Can't find printer \"{0}\".", printerName), tipoLog.ERROR);
- return;
- }
- printDoc.PrintPage += new PrintPageEventHandler(PrintPage);
- printDoc.Print();
- }
- ///
- /// Export del report come EMF (Enhanced Metafile) file.
- ///
- ///
- private void Export(LocalReport report, string deviceInfo)
- {
- Warning[] warnings;
- m_streams = new List();
- report.Render("Image", deviceInfo, CreateStream, out warnings);
- foreach (Stream stream in m_streams) stream.Position = 0;
- }
- ///
- /// dispone l'applicazione e rilascia le risorse
- ///
- public void Dispose()
- {
- if (m_streams != null)
- {
- foreach (Stream stream in m_streams)
- stream.Close();
- m_streams = null;
- }
- }
-
- #endregion
-
- #region area codice da modificare
-
- ///
- /// carica i dati richiesti dal report dalla StoredProcedure (filtrando quindi...)
- ///
- /// report ammessi: ElencoMacchine / RichiestaIntervento
- /// oggetto che contiene data inizio e data fine dell'analisi richiesta per il report
- /// tabella dati
- private DataTable caricaDati(reportRichiesto tipoReport, string idxObj)
- {
- DataTable tab = new DataTable();
- switch (tipoReport)
- {
- case reportRichiesto.ElencoMacchine:
- tab = (DataTable)TA_app.obj.taElencoImpMacch.GetData();
- break;
- case reportRichiesto.RichiestaIntervento:
- tab = (DataTable)TA_app.obj.taInterventiMtz.getByIdx(Convert.ToInt32(idxObj));
- break;
- default:
- break;
- }
- return tab;
- }
- ///
- /// carica i dati richiesti dal report dalla StoredProcedure (filtrando quindi...)
- ///
- /// report ammessi: ElencoInterventi / MTBF_MTTR
- /// oggetto che contiene data inizio e data fine dell'analisi richiesta per il report
- /// tabella dati
- private DataTable caricaDati(reportRichiesto tipoReport, intervalloDate periodoAnalizzato, string username)
- {
- DataTable tab = new DataTable();
- switch (tipoReport)
- {
- case reportRichiesto.ElencoInterventi:
- tab = (DataTable)TA_app.obj.taElencoIntFilt.getByIntervDateUsernameFilt(periodoAnalizzato.inizio, periodoAnalizzato.fine, username);
- break;
- case reportRichiesto.MTBF_MTTR:
- tab = (DataTable)TA_app.obj.taElenco_MTBF_MTTR.GetData(periodoAnalizzato.inizio, periodoAnalizzato.fine, username);
- break;
- default:
- break;
- }
- return tab;
- }
- ///
- /// Crea un report locale da file rdlc, carica i dati, esporta report come EMF file e quindi lo invia alla stampante
- ///
- /// report ammessi: ElencoMacchine / RichiestaIntervento
- /// nome completo stampante (rispetto al server)
- /// numIntMtz (codice numero richiesta)
- public void printReport(reportRichiesto tipoReport, string printerName, string parametro)
- {
- LocalReport report = new LocalReport();
- devInfoParam deviceInfo = new devInfoParam("EMF", "21cm", "29.7cm", "0.2cm", "0.2cm", "0.2cm", "0.2cm");
- switch (tipoReport)
- {
- case reportRichiesto.ElencoMacchine:
- report.ReportPath = string.Format(@".\{0}\MacchineReparti.rdlc", memLayer.ML.CRS("ReportBasePath"));
- report.DataSources.Add(new ReportDataSource("WebGim", caricaDati(tipoReport, parametro)));
- deviceInfo = new devInfoParam("EMF", "21cm", "29.7cm", "0.2cm", "0.2cm", "0.2cm", "0.2cm");
- break;
- case reportRichiesto.RichiestaIntervento:
- report.ReportPath = string.Format(@".\{0}\RichiestaIntervento.rdlc", memLayer.ML.CRS("ReportBasePath"));
- report.DataSources.Add(new ReportDataSource("WebGim", caricaDati(tipoReport, parametro)));
- deviceInfo = new devInfoParam("EMF", "29.7cm", "21cm", "0.2cm", "0.2cm", "0.2cm", "0.2cm");
- break;
- default:
- break;
- }
- doEmfPrint(printerName, report, deviceInfo.xmlParam);
- }
- ///
- /// Crea un report locale da file rdlc, carica i dati, esporta report come EMF file e quindi lo invia alla stampante
- ///
- /// report ammessi: ElencoInterventi / MTBF_MTTR
- /// nome completo stampante (rispetto al server)
- /// oggetto che contiene data inizio e data fine dell'analisi richiesta per il report
- public void printReport(reportRichiesto tipoReport, string printerName, intervalloDate periodoAnalizzato, string username)
- {
- LocalReport report = new LocalReport();
- devInfoParam deviceInfo = new devInfoParam("EMF", "21cm", "29.7cm", "0.2cm", "0.2cm", "0.2cm", "0.2cm");
- switch (tipoReport)
- {
- case reportRichiesto.ElencoInterventi:
- report.ReportPath = string.Format(@".\{0}\ReportInterventi.rdlc", memLayer.ML.CRS("ReportBasePath"));
- report.DataSources.Add(new ReportDataSource("WebGim", caricaDati(tipoReport, periodoAnalizzato, username)));
- deviceInfo = new devInfoParam("EMF", "29.7cm", "21cm", "0.2cm", "0.2cm", "0.2cm", "0.2cm");
- break;
- case reportRichiesto.MTBF_MTTR:
- report.ReportPath = string.Format(@".\{0}\Report_MTBF_MTTR.rdlc", memLayer.ML.CRS("ReportBasePath"));
- report.DataSources.Add(new ReportDataSource("WebGim", caricaDati(tipoReport, periodoAnalizzato, username)));
- deviceInfo = new devInfoParam("EMF", "29.7cm", "21cm", "0.2cm", "0.2cm", "0.2cm", "0.2cm");
- // calcolo le ore totali equivalenti...
- ReportParameter[] OreTotali = { new ReportParameter("OreTotali", WebGimUtils.obj.oreEquivalenti(periodoAnalizzato).ToString()) };
- report.SetParameters(OreTotali);
- break;
- default:
- break;
- }
- doEmfPrint(printerName, report, deviceInfo.xmlParam);
- }
- ///
- /// esegue print vero e proprio
- ///
- ///
- ///
- ///
- private void doEmfPrint(string printerName, LocalReport report, string deviceInfo)
- {
- // export in EMF
- Export(report, deviceInfo);
- m_currentPageIndex = 0;
- // stampo
- Print(printerName);
- // do dispose?
- Dispose();
- }
-
- ///
- /// oggetto protected
- ///
- ///
- protected reportPrinter()
- {
- }
- ///
- /// singleton pubblico
- ///
- public static reportPrinter obj = new reportPrinter();
-
- #endregion
-}
-///
-/// tipologia di report ammessi alla stampa...
-///
-public enum reportRichiesto
-{
- ElencoInterventi,
- ElencoMacchine,
- MTBF_MTTR,
- RichiestaIntervento
-}
diff --git a/GIM_data/selData.cs b/GIM_data/selData.cs
deleted file mode 100644
index c94a996..0000000
--- a/GIM_data/selData.cs
+++ /dev/null
@@ -1,76 +0,0 @@
-using System;
-using System.Data;
-using System.Configuration;
-using System.Web;
-using System.Web.Security;
-using System.Web.UI;
-using System.Web.UI.WebControls;
-using System.Web.UI.WebControls.WebParts;
-using System.Web.UI.HtmlControls;
-using SteamWare;
-
-///
-/// Classe gestione metodi di accesso ai dati embeddati
-///
-public class selData : selettori
-{
-
- ///
- /// classe accesso tabelle selettori
- ///
- public selData()
- {
- }
-
- ///
- /// elenco impianti come view value/label
- ///
- ///
- public GIM_data.DS_utility.v_selImpiantiDataTable getSelImpianti()
- {
- return TA_app.obj.taSelImpianti.GetData();
- }
- ///
- /// elenco macchine come view value/label
- ///
- ///
- public GIM_data.DS_utility.v_selMacchineDataTable getSelMacchine()
- {
- return TA_app.obj.taSelMacchine.GetData();
- }
- ///
- /// tabella vocabolario
- ///
- ///
- public SteamWare.DataLayer_generic.VocabolarioDataTable getVocabolario()
- {
- return SteamWare.DataWrap.DW.taVocabolario.GetData();
- }
- ///
- /// tabella lingue
- ///
- ///
- public SteamWare.DataLayer_generic.LingueDataTable getLingue()
- {
- return SteamWare.DataWrap.DW.taLingue.GetData();
- }
- ///
- /// faccio update del lemma indicato...
- ///
- ///
- ///
- ///
- public void updateLemmaVoc(string Traduzione, string Original_Lingua, string Original_Lemma)
- {
- SteamWare.DataWrap.DW.taVocabolario.UpdateQuery(Traduzione, Original_Lingua, Original_Lemma);
- }
- ///
- /// cancella il lemma indicato
- ///
- ///
- ///
- public void deleteLemmaVoc(string Original_Lingua, string Original_Lemma)
- {
- SteamWare.DataWrap.DW.taVocabolario.DeleteQuery(Original_Lingua, Original_Lemma);
- }
-}
diff --git a/GIM_data/sql/GIM_0000.sql b/GIM_data/sql/GIM_0000.sql
deleted file mode 100644
index 16214f0..0000000
--- a/GIM_data/sql/GIM_0000.sql
+++ /dev/null
@@ -1,420 +0,0 @@
-/****************************************************************
-* 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/GIM_data/sql/GIM_0001.sql b/GIM_data/sql/GIM_0001.sql
deleted file mode 100644
index 3cbab89..0000000
--- a/GIM_data/sql/GIM_0001.sql
+++ /dev/null
@@ -1,2908 +0,0 @@
-/****************************************************************
-* 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/GIM_data/sql/GIM_0002.sql b/GIM_data/sql/GIM_0002.sql
deleted file mode 100644
index 02bbb64..0000000
--- a/GIM_data/sql/GIM_0002.sql
+++ /dev/null
@@ -1,991 +0,0 @@
-/****************************************************************
-* 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/GIM_data/sql/GIM_0003.sql b/GIM_data/sql/GIM_0003.sql
deleted file mode 100644
index 5932803..0000000
--- a/GIM_data/sql/GIM_0003.sql
+++ /dev/null
@@ -1,2567 +0,0 @@
--- 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/GIM_data/sql/GIM_0004.sql b/GIM_data/sql/GIM_0004.sql
deleted file mode 100644
index d574c58..0000000
--- a/GIM_data/sql/GIM_0004.sql
+++ /dev/null
@@ -1,38 +0,0 @@
-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/GIM_data/sql/GIM_0005.sql b/GIM_data/sql/GIM_0005.sql
deleted file mode 100644
index cf4c722..0000000
--- a/GIM_data/sql/GIM_0005.sql
+++ /dev/null
@@ -1,327 +0,0 @@
-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/GIM_data/sql/GIM_0006.sql b/GIM_data/sql/GIM_0006.sql
deleted file mode 100644
index 153b6b1..0000000
--- a/GIM_data/sql/GIM_0006.sql
+++ /dev/null
@@ -1,87 +0,0 @@
-/* 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
-
-
--- registro versione...
-INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(6, GETDATE())
-GO
diff --git a/GIM_data/sql/updateGIMperManutenzione.txt b/GIM_data/sql/updateGIMperManutenzione.txt
deleted file mode 100644
index 389ecfa..0000000
--- a/GIM_data/sql/updateGIMperManutenzione.txt
+++ /dev/null
@@ -1,28 +0,0 @@
-update InterventiMtz
-set idxImpianto = 35
-where idxImpianto = 1
-
-update AnagMacchine
-set idxImpianto = 35
-where idxImpianto = 1
-
-
-
-INSERT INTO [GIM_TEST].[dbo].[FiltroImpianti](username, idxImpianto)
-VALUES ('SERVER2\steamware', '35');
-INSERT INTO [GIM_TEST].[dbo].[FiltroImpianti](username, idxImpianto)
-VALUES ('SOMASCHINI\Administrator', '35');
-INSERT INTO [GIM_TEST].[dbo].[FiltroImpianti](username, idxImpianto)
-VALUES ('SOMASCHINI\manutenzio', '35');
-INSERT INTO [GIM_TEST].[dbo].[FiltroImpianti](username, idxImpianto)
-VALUES ('SOMASCHINI\manutenzione', '35');
-INSERT INTO [GIM_TEST].[dbo].[FiltroImpianti](username, idxImpianto)
-VALUES ('SOMASCHINI\mapelli', '35');
-INSERT INTO [GIM_TEST].[dbo].[FiltroImpianti](username, idxImpianto)
-VALUES ('SOMASCHINI\pompei', '35');
-INSERT INTO [GIM_TEST].[dbo].[FiltroImpianti](username, idxImpianto)
-VALUES ('SOMASCHINI\previtali', '35');
-INSERT INTO [GIM_TEST].[dbo].[FiltroImpianti](username, idxImpianto)
-VALUES ('VOSTRO410\Administrator', '35');
-INSERT INTO [GIM_TEST].[dbo].[FiltroImpianti](username, idxImpianto)
-VALUES ('VOSTRO410\Ermanno', '35');