eliminato vecchio progetto WebSite x Gim_data
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,175 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>9.0.30729</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{F66427C8-882A-4EF8-B42F-EF142906DC8C}</ProjectGuid>
|
||||
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>GIM_data</RootNamespace>
|
||||
<AssemblyName>GIM_data</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
|
||||
<FileUpgradeFlags>
|
||||
</FileUpgradeFlags>
|
||||
<OldToolsVersion>3.5</OldToolsVersion>
|
||||
<UpgradeBackupLocation />
|
||||
<UseIISExpress>false</UseIISExpress>
|
||||
<IISExpressSSLPort />
|
||||
<IISExpressAnonymousAuthentication />
|
||||
<IISExpressWindowsAuthentication />
|
||||
<IISExpressUseClassicPipelineMode />
|
||||
<UseGlobalApplicationHostFile />
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Microsoft.ReportViewer.WinForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="System.Web.ApplicationServices" />
|
||||
<Reference Include="System.Web.DynamicData" />
|
||||
<Reference Include="System.Web.Entity" />
|
||||
<Reference Include="System.Web.Extensions" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Web" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="System.Configuration" />
|
||||
<Reference Include="System.Web.Services" />
|
||||
<Reference Include="System.EnterpriseServices" />
|
||||
<Reference Include="System.Web.Mobile" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="ExtLib\Microsoft.ReportViewer.Common.dll" />
|
||||
<None Include="ExtLib\Microsoft.ReportViewer.WebForms.dll" />
|
||||
<None Include="ExtLib\Microsoft.ReportViewer.WinForms.dll" />
|
||||
<Content Include="Web.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="DS_applicazione1.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>DS_applicazione.xsd</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="DS_Mag.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>DS_Mag.xsd</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="DS_utility.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>DS_utility.xsd</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="enumerazioni.cs" />
|
||||
<Compile Include="mtzProgr.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="reportExporter.cs" />
|
||||
<Compile Include="reportPrinter.cs" />
|
||||
<Compile Include="selData.cs" />
|
||||
<Compile Include="TA_app.cs" />
|
||||
<Compile Include="WebGimUtils.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="DS_applicazione.xsc">
|
||||
<DependentUpon>DS_applicazione.xsd</DependentUpon>
|
||||
</None>
|
||||
<None Include="DS_applicazione.xsd">
|
||||
<Generator>MSDataSetGenerator</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
<LastGenOutput>DS_applicazione1.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
<None Include="DS_applicazione.xss">
|
||||
<DependentUpon>DS_applicazione.xsd</DependentUpon>
|
||||
</None>
|
||||
<Content Include="DS_Mag.xsc">
|
||||
<DependentUpon>DS_Mag.xsd</DependentUpon>
|
||||
</Content>
|
||||
<None Include="DS_Mag.xsd">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSDataSetGenerator</Generator>
|
||||
<LastGenOutput>DS_Mag.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
<Content Include="DS_Mag.xss">
|
||||
<DependentUpon>DS_Mag.xsd</DependentUpon>
|
||||
</Content>
|
||||
<None Include="DS_utility.xsc">
|
||||
<DependentUpon>DS_utility.xsd</DependentUpon>
|
||||
</None>
|
||||
<None Include="DS_utility.xsd">
|
||||
<Generator>MSDataSetGenerator</Generator>
|
||||
<LastGenOutput>DS_utility.Designer.cs</LastGenOutput>
|
||||
<SubType>Designer</SubType>
|
||||
</None>
|
||||
<None Include="DS_utility.xss">
|
||||
<DependentUpon>DS_utility.xsd</DependentUpon>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="App_Data\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\..\SteamWare\SteamWareLib\SteamWare.csproj">
|
||||
<Project>{2872dcfe-8b46-43b2-baa0-842a816a2dd5}</Project>
|
||||
<Name>SteamWare</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<PropertyGroup>
|
||||
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
|
||||
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<Import Project="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" Condition="'$(VSToolsPath)' != ''" />
|
||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" Condition="false" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
<ProjectExtensions>
|
||||
<VisualStudio>
|
||||
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
|
||||
<WebProjectProperties>
|
||||
<UseIIS>False</UseIIS>
|
||||
<AutoAssignPort>True</AutoAssignPort>
|
||||
<DevelopmentServerPort>51125</DevelopmentServerPort>
|
||||
<DevelopmentServerVPath>/</DevelopmentServerVPath>
|
||||
<IISUrl>
|
||||
</IISUrl>
|
||||
<NTLMAuthentication>False</NTLMAuthentication>
|
||||
<UseCustomServer>False</UseCustomServer>
|
||||
<CustomServerUrl>
|
||||
</CustomServerUrl>
|
||||
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
|
||||
</WebProjectProperties>
|
||||
</FlavorProperties>
|
||||
</VisualStudio>
|
||||
</ProjectExtensions>
|
||||
</Project>
|
||||
@@ -1,228 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Web;
|
||||
using SteamWare;
|
||||
|
||||
/// <summary>
|
||||
/// Summary description for TA_app
|
||||
/// </summary>
|
||||
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
|
||||
|
||||
/// <summary>
|
||||
/// effettua setup dei connection strings da web.config della singola applicazione
|
||||
/// </summary>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Singleton
|
||||
/// </summary>
|
||||
public static TA_app obj = new TA_app();
|
||||
/// <summary>
|
||||
/// restituisce versione corrente del db applicativo
|
||||
/// </summary>
|
||||
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;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// restituisce versione corrente del db vocabolario
|
||||
/// </summary>
|
||||
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;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// restituisce versione corrente del db anagrafica
|
||||
/// </summary>
|
||||
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;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// restituisce versione richiesta per il db applicativo
|
||||
/// </summary>
|
||||
public int appDB_req
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.confReadInt("dbAppVers");
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// restituisce versione richiesta per il db vocabolario
|
||||
/// </summary>
|
||||
public int vocDB_req
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.confReadInt("dbVocabVers");
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// restituisce versione richiesta per il db anagrafica
|
||||
/// </summary>
|
||||
public int anaDB_req
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.confReadInt("dbAuthVers");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,103 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Web;
|
||||
using SteamWare;
|
||||
using System.Globalization;
|
||||
|
||||
/// <summary>
|
||||
/// Utility varie di WebGim
|
||||
/// </summary>
|
||||
public class WebGimUtils
|
||||
{
|
||||
protected WebGimUtils()
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// calcola le ore lavorative equivalenti ad un dato periodo calcolando la settimana tipo e togliendo le festività eventualmente presenti
|
||||
/// </summary>
|
||||
/// <param name="periodo"></param>
|
||||
/// <returns></returns>
|
||||
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;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// converte in datetime un valore formattato con una culture generica ed un formato generico
|
||||
/// </summary>
|
||||
/// <param name="dataOra"></param>
|
||||
/// <param name="formato"></param>
|
||||
/// <param name="culture"></param>
|
||||
/// <param name="doLog"></param>
|
||||
/// <returns></returns>
|
||||
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;
|
||||
}
|
||||
/// <summary>
|
||||
/// converte in datetime un valore formattato con una culture generica ed un formato generico
|
||||
/// </summary>
|
||||
/// <param name="dataOra"></param>
|
||||
/// <param name="formato"></param>
|
||||
/// <param name="culture"></param>
|
||||
/// <returns></returns>
|
||||
public static DateTime convDate(string dataOra, string formato, string cultura)
|
||||
{
|
||||
return convDate(dataOra, formato, cultura, false);
|
||||
}
|
||||
public static WebGimUtils obj = new WebGimUtils();
|
||||
|
||||
/// <summary>
|
||||
/// restituisce il filePath (reale) della dir dedicata ad un dato intervento...
|
||||
/// </summary>
|
||||
/// <param name="numInt"></param>
|
||||
/// <returns></returns>
|
||||
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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Fornisce elenco dei files di un dato intervento di MTZ cercando su filesystem
|
||||
/// </summary>
|
||||
/// <param name="numInt"></param>
|
||||
/// <returns></returns>
|
||||
public static DataLayer_generic.filesDataTable elencoFiles(int numInt)
|
||||
{
|
||||
// in primis faccio controllo esistenza folder...
|
||||
return fileMover.obj.elencoFilesDir(dirPathIntMtz(numInt));
|
||||
}
|
||||
/// <summary>
|
||||
/// Elimina file richiesto
|
||||
/// </summary>
|
||||
/// <param name="numInt"></param>
|
||||
/// <param name="Original_Nome"></param>
|
||||
public void eliminaFile(int numInt, string Original_Nome)
|
||||
{
|
||||
fileMover.deleteFile(string.Format("{0}\\{1}", dirPathIntMtz(numInt), Original_Nome));
|
||||
}
|
||||
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,24 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Web;
|
||||
|
||||
/// <summary>
|
||||
/// Summary description for enumerazioni
|
||||
/// </summary>
|
||||
public class enumerazioni
|
||||
{
|
||||
public enumerazioni()
|
||||
{
|
||||
//
|
||||
// TODO: Add constructor logic here
|
||||
//
|
||||
}
|
||||
}
|
||||
public enum tipoSelettore
|
||||
{
|
||||
cdc,
|
||||
impianti,
|
||||
macchine,
|
||||
utentiAll,
|
||||
utentiCdc
|
||||
}
|
||||
@@ -1,187 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Web;
|
||||
using SteamWare;
|
||||
|
||||
/// <summary>
|
||||
/// Metodi di gestione della manutenzione programmata
|
||||
/// </summary>
|
||||
public class mtzProgr
|
||||
{
|
||||
#region table adapters
|
||||
|
||||
public GIM_data.DS_applicazioneTableAdapters.MtzProgrammataTableAdapter taMtzProg;
|
||||
public GIM_data.DS_applicazioneTableAdapters.MtzProgPendingTableAdapter taMtzPend;
|
||||
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// avvio componente
|
||||
/// </summary>
|
||||
protected mtzProgr()
|
||||
{
|
||||
initTA();
|
||||
setupConnectionString();
|
||||
}
|
||||
|
||||
private void initTA()
|
||||
{
|
||||
taMtzPend = new GIM_data.DS_applicazioneTableAdapters.MtzProgPendingTableAdapter();
|
||||
taMtzProg = new GIM_data.DS_applicazioneTableAdapters.MtzProgrammataTableAdapter();
|
||||
}
|
||||
/// <summary>
|
||||
/// effettua setup dei connection strings da web.config della singola applicazione
|
||||
/// </summary>
|
||||
protected virtual void setupConnectionString()
|
||||
{
|
||||
// connections del db
|
||||
string connString = memLayer.ML.confReadString("AppConnectionString");
|
||||
taMtzPend.Connection.ConnectionString = connString;
|
||||
taMtzProg.Connection.ConnectionString = connString;
|
||||
}
|
||||
/// <summary>
|
||||
/// singleton accesso ai metodi di manutenzione programmata
|
||||
/// </summary>
|
||||
public static mtzProgr obj = new mtzProgr();
|
||||
/// <summary>
|
||||
/// verifica se ci siano interventi pending ed eventualmente li accoda
|
||||
/// </summary>
|
||||
public void processaCodaMtzPro()
|
||||
{
|
||||
// cerco eventuali interventi scaduti
|
||||
insertPending();
|
||||
// metto in coda tutte le ricorrenze non presenti...
|
||||
rebuildPending();
|
||||
}
|
||||
/// <summary>
|
||||
/// inserisce nelle richieste attuali gli interventi programmati scaduti
|
||||
/// </summary>
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// ricostruisce la coda degli intervneti pending
|
||||
/// </summary>
|
||||
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);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// inserisce l'intervento della riga indicata tra quelli "pending"
|
||||
/// </summary>
|
||||
/// <param name="riga"></param>
|
||||
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);
|
||||
}
|
||||
/// <summary>
|
||||
/// genera la richiesta di manutenzione dalla richiesta pending associata
|
||||
/// </summary>
|
||||
/// <param name="riga"></param>
|
||||
/// <returns></returns>
|
||||
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;
|
||||
}
|
||||
}
|
||||
@@ -1,217 +0,0 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using SteamWare;
|
||||
using Microsoft.Reporting.WinForms;
|
||||
|
||||
/// <summary>
|
||||
/// Classe che restituisce uno stream ed i dati accessori per reinviare un report in pdf
|
||||
/// </summary>
|
||||
public class reportExporter
|
||||
{
|
||||
/// <summary>
|
||||
/// mimeType del report
|
||||
/// </summary>
|
||||
public string mimeType;
|
||||
/// <summary>
|
||||
/// encoding dei dati
|
||||
/// </summary>
|
||||
public string encoding;
|
||||
/// <summary>
|
||||
/// nome estensione
|
||||
/// </summary>
|
||||
public string fileNameExtension;
|
||||
/// <summary>
|
||||
/// steam di bytes del report
|
||||
/// </summary>
|
||||
public byte[] renderedBytes;
|
||||
/// <summary>
|
||||
/// metodo protected
|
||||
/// </summary>
|
||||
public reportExporter()
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// carica i dati richiesti dal report dalla StoredProcedure (filtrando quindi...)
|
||||
/// </summary>
|
||||
/// <param name="tipoReport">report ammessi: RichiestaIntervento</param>
|
||||
/// <param name="idxObj">num int mtz</param>
|
||||
/// <returns>tabella dati</returns>
|
||||
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;
|
||||
}
|
||||
/// <summary>
|
||||
/// carica i dati richiesti dal report dalla StoredProcedure (filtrando quindi...)
|
||||
/// </summary>
|
||||
/// <param name="tipoReport">report ammessi: ElencoMacchine</param>
|
||||
/// <returns>tabella dati</returns>
|
||||
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;
|
||||
}
|
||||
/// <summary>
|
||||
/// carica i dati richiesti dal report dalla StoredProcedure (filtrando quindi...)
|
||||
/// </summary>
|
||||
/// <param name="tipoReport">report ammessi: ElencoInterventi / MTBF_MTTR</param>
|
||||
/// <param name="periodoAnalizzato">oggetto che contiene data inizio e data fine dell'analisi richiesta per il report</param>
|
||||
/// <param name="username">username (per caricare i suoi filtraggi...</param>
|
||||
/// <param name="soloMacchinaFerma">se si devono includere SOLO i dati di macchina ferma</param>
|
||||
/// <param name="includiMtzPrev">se si deve includere anche nel report le fermate di mtz preventiva</param>
|
||||
/// <returns>tabella dati</returns>
|
||||
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;
|
||||
}
|
||||
/// <summary>
|
||||
/// renderizza il report in pdf
|
||||
/// </summary>
|
||||
/// <param name="tipoReport">report ammessi: ElencoMacchine</param>
|
||||
/// <returns></returns>
|
||||
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);
|
||||
}
|
||||
/// <summary>
|
||||
/// renderizza il report in pdf
|
||||
/// </summary>
|
||||
/// <param name="tipoReport">report ammessi: RichiestaIntervento</param>
|
||||
/// <param name="parametro">idx della richiesta (numIntMtz)</param>
|
||||
/// <returns></returns>
|
||||
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);
|
||||
}
|
||||
/// <summary>
|
||||
/// renderizza il report in pdf
|
||||
/// </summary>
|
||||
/// <param name="tipoReport">report ammessi: ElencoInterventi / MTBF_MTTR</param>
|
||||
/// <param name="periodoAnalizzato">oggetto che contiene data inizio e data fine dell'analisi richiesta per il report</param>
|
||||
/// <param name="username">username (per caricare i suoi filtraggi...</param>
|
||||
/// <param name="soloMacchinaFerma">se si devono includere SOLO i dati di macchina ferma</param>
|
||||
/// <param name="includiMtzPrev">se si deve includere anche nel report le fermate di mtz preventiva</param>
|
||||
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);
|
||||
}
|
||||
/// <summary>
|
||||
/// crea il vero e proprio stream pdf
|
||||
/// </summary>
|
||||
/// <param name="report"></param>
|
||||
/// <param name="deviceInfo"></param>
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
/// <summary>
|
||||
/// Classe che si occupa di stampare report da reportViewer via printer remota
|
||||
/// </summary>
|
||||
public class reportPrinter
|
||||
{
|
||||
|
||||
#region area codice da non modificare
|
||||
|
||||
private int m_currentPageIndex;
|
||||
private IList<Stream> m_streams;
|
||||
/// <summary>
|
||||
/// ciclo da fornire al renderizzatore dei report, per salvare 1 immagine da ogni pagina del report
|
||||
/// </summary>
|
||||
/// <param name="name"></param>
|
||||
/// <param name="fileNameExtension"></param>
|
||||
/// <param name="encoding"></param>
|
||||
/// <param name="mimeType"></param>
|
||||
/// <param name="willSeek"></param>
|
||||
/// <returns></returns>
|
||||
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;
|
||||
}
|
||||
/// <summary>
|
||||
/// Handler per PrintPageEvents
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="ev"></param>
|
||||
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);
|
||||
}
|
||||
/// <summary>
|
||||
/// funzione di stampa...
|
||||
/// </summary>
|
||||
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();
|
||||
}
|
||||
/// <summary>
|
||||
/// Export del report come EMF (Enhanced Metafile) file.
|
||||
/// </summary>
|
||||
/// <param name="report"></param>
|
||||
private void Export(LocalReport report, string deviceInfo)
|
||||
{
|
||||
Warning[] warnings;
|
||||
m_streams = new List<Stream>();
|
||||
report.Render("Image", deviceInfo, CreateStream, out warnings);
|
||||
foreach (Stream stream in m_streams) stream.Position = 0;
|
||||
}
|
||||
/// <summary>
|
||||
/// dispone l'applicazione e rilascia le risorse
|
||||
/// </summary>
|
||||
public void Dispose()
|
||||
{
|
||||
if (m_streams != null)
|
||||
{
|
||||
foreach (Stream stream in m_streams)
|
||||
stream.Close();
|
||||
m_streams = null;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region area codice da modificare
|
||||
|
||||
/// <summary>
|
||||
/// carica i dati richiesti dal report dalla StoredProcedure (filtrando quindi...)
|
||||
/// </summary>
|
||||
/// <param name="tipoReport">report ammessi: ElencoMacchine / RichiestaIntervento</param>
|
||||
/// <param name="periodoAnalizzato">oggetto che contiene data inizio e data fine dell'analisi richiesta per il report</param>
|
||||
/// <returns>tabella dati</returns>
|
||||
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;
|
||||
}
|
||||
/// <summary>
|
||||
/// carica i dati richiesti dal report dalla StoredProcedure (filtrando quindi...)
|
||||
/// </summary>
|
||||
/// <param name="tipoReport">report ammessi: ElencoInterventi / MTBF_MTTR</param>
|
||||
/// <param name="periodoAnalizzato">oggetto che contiene data inizio e data fine dell'analisi richiesta per il report</param>
|
||||
/// <returns>tabella dati</returns>
|
||||
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;
|
||||
}
|
||||
/// <summary>
|
||||
/// Crea un report locale da file rdlc, carica i dati, esporta report come EMF file e quindi lo invia alla stampante
|
||||
/// </summary>
|
||||
/// <param name="tipoReport">report ammessi: ElencoMacchine / RichiestaIntervento</param>
|
||||
/// <param name="printerName">nome completo stampante (rispetto al server)</param>
|
||||
/// <param name="parametro">numIntMtz (codice numero richiesta)</param>
|
||||
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);
|
||||
}
|
||||
/// <summary>
|
||||
/// Crea un report locale da file rdlc, carica i dati, esporta report come EMF file e quindi lo invia alla stampante
|
||||
/// </summary>
|
||||
/// <param name="tipoReport">report ammessi: ElencoInterventi / MTBF_MTTR</param>
|
||||
/// <param name="printerName">nome completo stampante (rispetto al server)</param>
|
||||
/// <param name="periodoAnalizzato">oggetto che contiene data inizio e data fine dell'analisi richiesta per il report</param>
|
||||
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);
|
||||
}
|
||||
/// <summary>
|
||||
/// esegue print vero e proprio
|
||||
/// </summary>
|
||||
/// <param name="printerName"></param>
|
||||
/// <param name="report"></param>
|
||||
/// <param name="deviceInfo"></param>
|
||||
private void doEmfPrint(string printerName, LocalReport report, string deviceInfo)
|
||||
{
|
||||
// export in EMF
|
||||
Export(report, deviceInfo);
|
||||
m_currentPageIndex = 0;
|
||||
// stampo
|
||||
Print(printerName);
|
||||
// do dispose?
|
||||
Dispose();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// oggetto protected
|
||||
/// </summary>
|
||||
/// <param name="args"></param>
|
||||
protected reportPrinter()
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// singleton pubblico
|
||||
/// </summary>
|
||||
public static reportPrinter obj = new reportPrinter();
|
||||
|
||||
#endregion
|
||||
}
|
||||
/// <summary>
|
||||
/// tipologia di report ammessi alla stampa...
|
||||
/// </summary>
|
||||
public enum reportRichiesto
|
||||
{
|
||||
ElencoInterventi,
|
||||
ElencoMacchine,
|
||||
MTBF_MTTR,
|
||||
RichiestaIntervento
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
/// <summary>
|
||||
/// Classe gestione metodi di accesso ai dati embeddati
|
||||
/// </summary>
|
||||
public class selData : selettori
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// classe accesso tabelle selettori
|
||||
/// </summary>
|
||||
public selData()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// elenco impianti come view value/label
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public GIM_data.DS_utility.v_selImpiantiDataTable getSelImpianti()
|
||||
{
|
||||
return TA_app.obj.taSelImpianti.GetData();
|
||||
}
|
||||
/// <summary>
|
||||
/// elenco macchine come view value/label
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public GIM_data.DS_utility.v_selMacchineDataTable getSelMacchine()
|
||||
{
|
||||
return TA_app.obj.taSelMacchine.GetData();
|
||||
}
|
||||
/// <summary>
|
||||
/// tabella vocabolario
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public SteamWare.DataLayer_generic.VocabolarioDataTable getVocabolario()
|
||||
{
|
||||
return SteamWare.DataWrap.DW.taVocabolario.GetData();
|
||||
}
|
||||
/// <summary>
|
||||
/// tabella lingue
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public SteamWare.DataLayer_generic.LingueDataTable getLingue()
|
||||
{
|
||||
return SteamWare.DataWrap.DW.taLingue.GetData();
|
||||
}
|
||||
/// <summary>
|
||||
/// faccio update del lemma indicato...
|
||||
/// </summary>
|
||||
/// <param name="Traduzione"></param>
|
||||
/// <param name="Original_Lingua"></param>
|
||||
/// <param name="Original_Lemma"></param>
|
||||
public void updateLemmaVoc(string Traduzione, string Original_Lingua, string Original_Lemma)
|
||||
{
|
||||
SteamWare.DataWrap.DW.taVocabolario.UpdateQuery(Traduzione, Original_Lingua, Original_Lemma);
|
||||
}
|
||||
/// <summary>
|
||||
/// cancella il lemma indicato
|
||||
/// </summary>
|
||||
/// <param name="Original_Lingua"></param>
|
||||
/// <param name="Original_Lemma"></param>
|
||||
public void deleteLemmaVoc(string Original_Lingua, string Original_Lemma)
|
||||
{
|
||||
SteamWare.DataWrap.DW.taVocabolario.DeleteQuery(Original_Lingua, Original_Lemma);
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
File diff suppressed because it is too large
Load Diff
@@ -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
|
||||
File diff suppressed because it is too large
Load Diff
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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');
|
||||
Reference in New Issue
Block a user