28119 lines
899 KiB
XML
28119 lines
899 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<DataSchemaModel FileFormatVersion="1.2" SchemaVersion="2.4" DspName="Microsoft.Data.Tools.Schema.Sql.Sql110DatabaseSchemaProvider" CollationLcid="1033" CollationCaseSensitive="False" xmlns="http://schemas.microsoft.com/sqlserver/dac/Serialization/2012/02">
|
|
<Header>
|
|
<CustomData Category="AnsiNulls">
|
|
<Metadata Name="AnsiNulls" Value="False" />
|
|
</CustomData>
|
|
<CustomData Category="QuotedIdentifier">
|
|
<Metadata Name="QuotedIdentifier" Value="False" />
|
|
</CustomData>
|
|
<CustomData Category="CompatibilityMode">
|
|
<Metadata Name="CompatibilityMode" Value="90" />
|
|
</CustomData>
|
|
<CustomData Category="Reference" Type="Assembly">
|
|
<Metadata Name="LogicalName" Value="GimDB.dll" />
|
|
<Metadata Name="FileName" Value="C:\USERS\SAMUELE\DOCUMENTS\VISUALSTUDIOPROJECTS\WEBGIM\WEBGIM\GIMDB\OBJ\DEBUG\GIMDB.DLL" />
|
|
<Metadata Name="AssemblyName" Value="GimDB" />
|
|
<Metadata Name="PermissionSet" Value="SAFE" />
|
|
<Metadata Name="Owner" Value="" />
|
|
<Metadata Name="GenerateSqlClrDdl" Value="True" />
|
|
<Metadata Name="IsVisible" Value="True" />
|
|
<Metadata Name="IsModelAware" Value="True" />
|
|
<Metadata Name="SkipCreationIfEmpty" Value="True" />
|
|
<Metadata Name="AssemblySymbolsName" Value="C:\Users\samuele\Documents\VisualStudioProjects\WebGIM\WebGIM\GimDB\obj\Debug\GimDB.pdb" />
|
|
</CustomData>
|
|
<CustomData Category="SqlCmdVariables" Type="SqlCmdVariable" />
|
|
</Header>
|
|
<Model>
|
|
<Element Type="SqlDatabaseOptions">
|
|
<Property Name="Collation" Value="Latin1_General_CI_AS" />
|
|
<Property Name="IsAnsiPaddingOn" Value="False" />
|
|
<Property Name="IsQuotedIdentifierOn" Value="False" />
|
|
<Property Name="IsCursorDefaultScopeGlobal" Value="True" />
|
|
<Property Name="IsTornPageProtectionOn" Value="False" />
|
|
<Property Name="RecoveryMode" Value="1" />
|
|
<Property Name="CompatibilityMode" Value="90" />
|
|
<Property Name="DefaultLanguage" Value="" />
|
|
<Property Name="DefaultFullTextLanguage" Value="" />
|
|
<Relationship Name="DefaultFilegroup">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[PRIMARY]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[CDC].[COD_CDC]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[CDC]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="3" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[AnagAmbitoGuasto]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagAmbitoGuasto].[idxAmbito]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Property Name="IsIdentity" Value="True" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagAmbitoGuasto].[descrAmbitoGuasto]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="4" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[AnagCausali]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagCausali].[idxCausale]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Property Name="IsIdentity" Value="True" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagCausali].[idxFamMacchine]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagCausali].[descrCausale]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagCausali].[attiva]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[bit]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="5" />
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="6" />
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="7" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[AnagClasseTurno]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagClasseTurno].[CodClasseTurno]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagClasseTurno].[Descrizione]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagClasseTurno].[hSettStd]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="8" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[AnagEventi]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagEventi].[idxEvento]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagEventi].[DescrEvento]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="9" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[AnagFamMacchine]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagFamMacchine].[idxFamMacchine]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Property Name="IsIdentity" Value="True" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagFamMacchine].[nomeFamMacch]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="10" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[AnagFrequenze]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagFrequenze].[codFrequenza]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="2" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagFrequenze].[frequenza]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="11" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[AnagImpianti]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagImpianti].[idxImpianto]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Property Name="IsIdentity" Value="True" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagImpianti].[codImpianto]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagImpianti].[nomeImpianto]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagImpianti].[tipoImpianto]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagImpianti].[funzDal]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagImpianti].[funzAl]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="12" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[AnagItems]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagItems].[idxItem]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Property Name="IsIdentity" Value="True" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagItems].[Famiglia]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="13" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagItems].[Descrizione]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="250" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="14" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagItems].[NomeCostruttore]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="250" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="15" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagItems].[CodCostruttore]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="250" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="16" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagItems].[CodInterno]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="17" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagItems].[QtaMin]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="18" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagItems].[QtaLotto]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="19" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagItems].[Valore]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="18" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="20" />
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="21" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[AnagLocazioni]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagLocazioni].[CodLocazione]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="22" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagLocazioni].[Descrizione]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="23" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[AnagMacchine]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagMacchine].[idxMacchina]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Property Name="IsIdentity" Value="True" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagMacchine].[idxImpianto]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagMacchine].[codMacchina]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagMacchine].[nomeMacchina]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="250" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagMacchine].[modello]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="250" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagMacchine].[matricola]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagMacchine].[anno]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagMacchine].[kgPeso]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Precision" Value="53" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[float]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="24" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagMacchine].[kwConsumo]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Precision" Value="53" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[float]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="25" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagMacchine].[funzDal]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagMacchine].[funzAl]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="26" />
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="27" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[AnagPeriodi]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagPeriodi].[codPeriodo]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="20" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagPeriodi].[lemmaPeriodo]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="28" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[AnagPriorita]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagPriorita].[idxPriorita]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagPriorita].[descrPriorita]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagPriorita].[stile]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="29" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[AnagrOperMtz]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagrOperMtz].[matrOp]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="10" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagrOperMtz].[Cognome]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagrOperMtz].[Nome]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="30" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[AnagSemafori]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagSemafori].[codSemaforo]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagSemafori].[descrSemaforo]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="31" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[AnagStati]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagStati].[idxStato]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagStati].[DescrStato]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagStati].[stile]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="32" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[AnagTags]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagTags].[TagCode]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagTags].[Class]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="33" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagTags].[TagDescr]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="34" />
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="35" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[AnagTipoGuasto]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagTipoGuasto].[idxTipo]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Property Name="IsIdentity" Value="True" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagTipoGuasto].[descrTipo]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="36" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[AnagTipoRisorsa]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagTipoRisorsa].[CodRisorsa]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="10" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagTipoRisorsa].[UM]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="10" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagTipoRisorsa].[DescrRisorsa]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagTipoRisorsa].[Valuta]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="5" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="37" />
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="38" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[AnagTurni]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagTurni].[CodTurno]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagTurni].[hStart]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagTurni].[hEnd]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AnagTurni].[descr]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="39" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[CalendFesteFerie]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[CalendFesteFerie].[data]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[CalendFesteFerie].[descrizione]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="40" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[CDC]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[CDC].[COD_CDC]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="10" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[varchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[CDC].[DESCRIZIONE]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="200" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[varchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[CDC].[COD_TIPO]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="1" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[varchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[CDC].[POSIZIONE]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="100" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[varchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="3" />
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[clonaDirittiUser]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
|
|
INSERT INTO DIRITTI
|
|
(USER_NAME, COD_CDC, COD_MODULO, COD_FUNZIONE)
|
|
SELECT @userDest AS USER_NAME, COD_CDC, COD_MODULO, COD_FUNZIONE
|
|
FROM DIRITTI AS DIRITTI_1
|
|
WHERE (USER_NAME = @userOrig)
|
|
|
|
RETURN]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[DIRITTI]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DIRITTI].[USER_NAME]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DIRITTI].[COD_CDC]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DIRITTI].[COD_MODULO]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DIRITTI].[COD_FUNZIONE]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[clonaDirittiUser].[@userDest]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[clonaDirittiUser].[@userOrig]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[clonaDirittiUser].[@userOrig]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="20" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[varchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[clonaDirittiUser].[@userDest]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="20" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[varchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="Length" Value="337" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="create PROCEDURE clonaDirittiUser
(
	@userOrig varchar(20),
	@userDest varchar(20)
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[clonaDirittiUserModulo]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
|
|
INSERT INTO DIRITTI
|
|
(USER_NAME, COD_CDC, COD_MODULO, COD_FUNZIONE)
|
|
SELECT @userDest AS USER_NAME, COD_CDC, COD_MODULO, COD_FUNZIONE
|
|
FROM DIRITTI AS DIRITTI_1
|
|
WHERE (USER_NAME = @userOrig) AND (COD_MODULO=@codModulo)
|
|
|
|
RETURN]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[DIRITTI]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DIRITTI].[USER_NAME]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DIRITTI].[COD_CDC]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DIRITTI].[COD_MODULO]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DIRITTI].[COD_FUNZIONE]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[clonaDirittiUserModulo].[@userDest]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[clonaDirittiUserModulo].[@userOrig]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[clonaDirittiUserModulo].[@codModulo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[clonaDirittiUserModulo].[@userOrig]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="20" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[varchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[clonaDirittiUserModulo].[@userDest]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="20" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[varchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[clonaDirittiUserModulo].[@codModulo]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="31" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[varchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="Length" Value="397" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="create PROCEDURE clonaDirittiUserModulo
(
	@userOrig varchar(20),
	@userDest varchar(20),
	@codModulo varchar(31)
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF__MagRicamb__CodLo__041093DD]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[MagRic]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[MagRic].[CodLocazione]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="41" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF__MagRicambi__Note__0504B816]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[MagRic]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[MagRic].[Note]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="42" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF__MagRicambi__Qta__031C6FA4]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[MagRic]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[MagRic].[Giacenza]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="43" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_AnagCausali_attiva]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[((1))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagCausali]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagCausali].[attiva]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="5" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_AnagItems_CodCostruttore]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[CodCostruttore]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="16" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_AnagItems_CodInterno]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[CodInterno]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="17" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_AnagItems_Descrizione]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[Descrizione]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="14" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_AnagItems_Famiglia]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[Famiglia]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="13" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_AnagItems_NomeCostruttore]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[NomeCostruttore]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="15" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_AnagItems_QtaLotto]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[((1))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[QtaLotto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="19" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_AnagItems_QtaMin]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[QtaMin]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="18" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_AnagItems_Valore]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[Valore]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="20" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_AnagLocazioni_CodLocazione]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagLocazioni]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagLocazioni].[CodLocazione]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="22" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_AnagMacchine_kgPeso]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[kgPeso]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="24" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_AnagMacchine_kwConsumo]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[kwConsumo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="25" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_AnagTag_Class]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTags]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTags].[Class]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="33" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_AnagTag_TagDescr]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTags]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTags].[TagDescr]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="34" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_AnagTipoRisorsa_Valuta]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[('€')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoRisorsa]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoRisorsa].[Valuta]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="37" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_ImpiegoRisorse_CostoUnit]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[ImpiegoRisorse]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[ImpiegoRisorse].[CostoUnit]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="44" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_ImpiegoRisorse_Note]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[ImpiegoRisorse]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[ImpiegoRisorse].[Note]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="45" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_InterventiMtz_isFermo]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[((1))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[isFermo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="46" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_InterventiMtz_isPreventivabile]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[isPreventivabile]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="47" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_InterventiMtz_scheduled]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[scheduled]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="48" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_MovMagRic_Qta]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[MovMagRic]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[MovMagRic].[Qta]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="49" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_MtzProgPending_isFermo]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[((1))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgPending]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgPending].[isFermo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="50" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_MtzProgrammata_isFermo]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[((1))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata].[isFermo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="51" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[DIRITTI]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[DIRITTI].[USER_NAME]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[DIRITTI].[COD_CDC]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[DIRITTI].[COD_MODULO]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="31" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[DIRITTI].[COD_FUNZIONE]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="31" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[DIRITTI].[VALUE]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="255" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[varchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="52" />
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="53" />
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="54" />
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="55" />
|
|
</Element>
|
|
<Element Type="SqlScalarFunction" Name="[dbo].[f_dateOnly]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[f_dateOnly].[@dateIn]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="FunctionBody">
|
|
<Entry>
|
|
<Element Type="SqlScriptFunctionImplementation">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
BEGIN
|
|
RETURN dateadd(dd, -datediff(dd, @dateIn, 1), 1)
|
|
END]]></Value>
|
|
</Property>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="283" />
|
|
<Property Name="Length" Value="423" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="
/***********************************************************************************
* FUNCTION f_dateOnly
*
* restituisce solo la parte data di un campo datetime (ovvero a mezzanotte...)
*
***********************************************************************************/
create FUNCTION f_dateOnly
(
	@dateIn		DATETIME
)
RETURNS DATETIME
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[f_dateOnly].[@dateIn]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlScalarFunction" Name="[dbo].[f_diffOreLavorative]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[float]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[float]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_diffOreLavorative].[@dataTo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_diffOreLavorative].[@dataFrom]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[float]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_dateOnly]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_diffOreLavorative].[CTE1].[mycte].[DateValue]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_dateOnly]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_diffOreLavorative].[@tmp_dates].[DateValue]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_diffOreLavorative].[@tmp_dates].[h]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[CalendFesteFerie]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[CalendFesteFerie].[data]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_diffOreLavorative].[@tmp_dates].[DateValue]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[CalendFesteFerie]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[CalendFesteFerie].[data]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_diffOreLavorative].[@tmp_dates].[h]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DynamicObjects">
|
|
<Entry>
|
|
<Element Type="SqlDynamicColumnSource" Name="[dbo].[f_diffOreLavorative].[@tmp_dates]">
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[f_diffOreLavorative].[@tmp_dates].[DateValue]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[f_diffOreLavorative].[@tmp_dates].[h]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlDynamicColumnSource" Name="[dbo].[f_diffOreLavorative].[CTE1].[mycte]">
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[f_diffOreLavorative].[CTE1].[mycte].[DateValue]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="FunctionBody">
|
|
<Entry>
|
|
<Element Type="SqlScriptFunctionImplementation">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
BEGIN
|
|
|
|
-- dichiarazioni variabili
|
|
DECLARE @oreTot AS FLOAT
|
|
DECLARE @oreOff AS FLOAT
|
|
DECLARE @tmp_dates TABLE (DateValue DATETIME, h INT)
|
|
SET @oreTot = 0
|
|
|
|
-- controllo date coerenti
|
|
IF(@dataTo > @dataFrom)
|
|
BEGIN
|
|
-- calcolo totale "raw" delle ore
|
|
SET @oreTot = CAST(ISNULL(DATEDIFF(minute, @dataFrom, @dataTo), 0) AS float) / 60;
|
|
-- definisco tabella cte ricorsiva
|
|
WITH mycte AS
|
|
(
|
|
SELECT CAST(dbo.f_dateOnly(DATEADD(dd,1,@dataFROM)) AS DATETIME) DateValue
|
|
UNION ALL
|
|
SELECT DateValue + 1
|
|
FROM mycte
|
|
WHERE DateValue + 1 < dbo.f_dateOnly(@dataTo)
|
|
)
|
|
-- carico nella tab temporanea i sabati e le domeniche...
|
|
INSERT into @tmp_dates(DateValue, h)
|
|
SELECT *, CASE ((DATEPART(dw, DateValue) + @@DATEFIRST) % 7) WHEN 0 THEN 16 ELSE 24 END AS h
|
|
FROM mycte
|
|
WHERE ((DATEPART(dw, DateValue) + @@DATEFIRST) % 7) IN (0,1)
|
|
OPTION (MAXRECURSION 0)
|
|
-- carico le festività per le date NON ancora presenti
|
|
insert into @tmp_dates(DateValue, h)
|
|
select data as DateValue, 24 as h--, descrizione
|
|
from CalendFesteFerie
|
|
where data between @dataFrom and @dataTo and data not in (select distinct DateValue from @tmp_dates)
|
|
-- aggiorno sabati/domenica che fossero festivi (ipotesi che hfest > h sab/dom...
|
|
UPDATE @tmp_dates
|
|
SET h=24
|
|
WHERE DateValue in (SELECT data FROM CalendFesteFerie WHERE data between @dataFrom and @dataTo)
|
|
|
|
-- calcolo INFINE le ore off!
|
|
SET @oreOff = (SELECT ISNULL(SUM(h),0) FROM @tmp_dates)
|
|
END
|
|
-- setto le nuove ore totali... se ho un numero di ore > delle fermate le sottraggo per evitare ore engative...
|
|
IF(@oreTot > @oreOff)
|
|
BEGIN
|
|
SET @oreTot = @oreTot - @oreOff
|
|
END
|
|
|
|
RETURN @oreTot
|
|
END]]></Value>
|
|
</Property>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="306" />
|
|
<Property Name="Length" Value="2324" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="
/***********************************************************************************
* FUNCTION f_diffOreLavorative
*
* calcola le effettive ore lavorative sottraendo chiusure x festività o aperture programmate
*
***********************************************************************************/
create FUNCTION f_diffOreLavorative
(
	@dataFrom		DATETIME,
	@dataTo			DATETIME,
	@idxMacchina	INT -- per ora non lo considero poiché non ci sono calendari diversi x macchina...
)
RETURNS FLOAT
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[f_diffOreLavorative].[@dataFrom]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[f_diffOreLavorative].[@dataTo]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[f_diffOreLavorative].[@idxMacchina]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Precision" Value="53" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[float]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlScalarFunction" Name="[dbo].[f_fixCR]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[f_fixCR].[@string]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="FunctionBody">
|
|
<Entry>
|
|
<Element Type="SqlScriptFunctionImplementation">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
BEGIN
|
|
|
|
RETURN REPLACE(REPLACE(REPLACE(@string, CHAR(13), '-'), CHAR(10), '-'), CHAR(9), '-')
|
|
|
|
END]]></Value>
|
|
</Property>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="280" />
|
|
<Property Name="Length" Value="465" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="
/***********************************************************************************
* FUNCTION f_fixCR
*
* restituisce una stringa in cui ritorni/andate a capo sono sostituiti con "-"
*
***********************************************************************************/
CREATE FUNCTION [dbo].[f_fixCR] (@string VARCHAR(MAX))
RETURNS VARCHAR(MAX) AS" />
|
|
</Annotation>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[f_fixCR].[@string]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="IsMax" Value="True" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[varchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="IsMax" Value="True" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[varchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlScalarFunction" Name="[dbo].[f_padLeft]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[f_padLeft].[@string]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_padLeft].[@desired_length]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_padLeft].[@pad_character]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="FunctionBody">
|
|
<Entry>
|
|
<Element Type="SqlScriptFunctionImplementation">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
BEGIN
|
|
|
|
-- Prefix the required number of spaces to bulk up the string and then replace the spaces with the desired character
|
|
RETURN CASE
|
|
WHEN LEN(@string) < @desired_length
|
|
THEN REPLACE(SPACE(@desired_length - LEN(@string)), ' ', @pad_character) + @string
|
|
ELSE @string
|
|
END
|
|
|
|
END]]></Value>
|
|
</Property>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="299" />
|
|
<Property Name="Length" Value="752" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="/***********************************************************************************
* FUNCTION f_padLeft
*
* restituisce una stringa con padding del carattere desiderato per la lunghezza totale desiderata
*
***********************************************************************************/
CREATE FUNCTION f_padLeft (@string VARCHAR(255), @desired_length INTEGER, @pad_character CHAR(1))
RETURNS VARCHAR(255) AS" />
|
|
</Annotation>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[f_padLeft].[@string]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="255" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[varchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[f_padLeft].[@desired_length]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[f_padLeft].[@pad_character]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="1" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[char]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="255" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[varchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[FiltroImpianti]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[FiltroImpianti].[username]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[FiltroImpianti].[idxImpianto]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="56" />
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="57" />
|
|
</Element>
|
|
<Element Type="SqlIndex" Name="[dbo].[FiltroImpianti].[i_username]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroImpianti].[username]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="IndexedObject">
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroImpianti]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[FiltroMacchine]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[FiltroMacchine].[username]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[FiltroMacchine].[idxMacchina]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="58" />
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="59" />
|
|
</Element>
|
|
<Element Type="SqlIndex" Name="[dbo].[FiltroMacchine].[i_username]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroMacchine].[username]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="IndexedObject">
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroMacchine]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[FiltroStati]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[FiltroStati].[username]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[FiltroStati].[idxStato]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="60" />
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="61" />
|
|
</Element>
|
|
<Element Type="SqlIndex" Name="[dbo].[FiltroStati].[i_username]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroStati].[username]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="IndexedObject">
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroStati]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlForeignKeyConstraint" Name="[dbo].[FK_AnagCausali_AnagFamMacchine]">
|
|
<Property Name="OnUpdateAction" Value="1" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagCausali].[idxFamMacchine]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagCausali]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagFamMacchine].[idxFamMacchine]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagFamMacchine]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="7" />
|
|
</Element>
|
|
<Element Type="SqlForeignKeyConstraint" Name="[dbo].[FK_AnagMacchine_AnagImpianti]">
|
|
<Property Name="OnUpdateAction" Value="1" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[idxImpianto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[idxImpianto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="27" />
|
|
</Element>
|
|
<Element Type="SqlForeignKeyConstraint" Name="[dbo].[FK_DIRITTI_FUNZIONE]">
|
|
<Property Name="OnUpdateAction" Value="1" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<References Name="[dbo].[DIRITTI].[COD_FUNZIONE]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[DIRITTI]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[FUNZIONE].[COD_FUNZIONE]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignTable">
|
|
<Entry>
|
|
<References Name="[dbo].[FUNZIONE]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="53" />
|
|
</Element>
|
|
<Element Type="SqlForeignKeyConstraint" Name="[dbo].[FK_DIRITTI_MODULO]">
|
|
<Property Name="OnUpdateAction" Value="1" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<References Name="[dbo].[DIRITTI].[COD_MODULO]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[DIRITTI]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[MODULO].[COD_MODULO]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignTable">
|
|
<Entry>
|
|
<References Name="[dbo].[MODULO]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="54" />
|
|
</Element>
|
|
<Element Type="SqlForeignKeyConstraint" Name="[dbo].[FK_DIRITTI_UTENTE]">
|
|
<Property Name="OnUpdateAction" Value="1" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<References Name="[dbo].[DIRITTI].[USER_NAME]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[DIRITTI]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[UTENTE].[USER_NAME]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignTable">
|
|
<Entry>
|
|
<References Name="[dbo].[UTENTE]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="55" />
|
|
</Element>
|
|
<Element Type="SqlForeignKeyConstraint" Name="[dbo].[FK_FiltroImpianti_AnagImpianti]">
|
|
<Property Name="OnUpdateAction" Value="1" />
|
|
<Property Name="OnDeleteAction" Value="1" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroImpianti].[idxImpianto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroImpianti]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[idxImpianto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="57" />
|
|
</Element>
|
|
<Element Type="SqlForeignKeyConstraint" Name="[dbo].[FK_FiltroMacchine_AnagMacchine]">
|
|
<Property Name="OnUpdateAction" Value="1" />
|
|
<Property Name="OnDeleteAction" Value="1" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroMacchine].[idxMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroMacchine]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[idxMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="59" />
|
|
</Element>
|
|
<Element Type="SqlForeignKeyConstraint" Name="[dbo].[FK_FiltroStati_AnagStati]">
|
|
<Property Name="OnUpdateAction" Value="1" />
|
|
<Property Name="OnDeleteAction" Value="1" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroStati].[idxStato]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroStati]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagStati].[idxStato]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagStati]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="61" />
|
|
</Element>
|
|
<Element Type="SqlForeignKeyConstraint" Name="[dbo].[FK_ImpiegoRisorse_AnagTipoRisorsa]">
|
|
<Property Name="OnUpdateAction" Value="1" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<References Name="[dbo].[ImpiegoRisorse].[CodRisorsa]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[ImpiegoRisorse]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoRisorsa].[CodRisorsa]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoRisorsa]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="62" />
|
|
</Element>
|
|
<Element Type="SqlForeignKeyConstraint" Name="[dbo].[FK_ImpiegoRisorse_InterventiMtz]">
|
|
<Property Name="OnUpdateAction" Value="1" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<References Name="[dbo].[ImpiegoRisorse].[numIntMtz]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[ImpiegoRisorse]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[numIntMtz]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignTable">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="63" />
|
|
</Element>
|
|
<Element Type="SqlForeignKeyConstraint" Name="[dbo].[FK_InterventiMtz_AnagAmbitoGuasto]">
|
|
<Property Name="OnUpdateAction" Value="1" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxAmbito]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagAmbitoGuasto].[idxAmbito]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagAmbitoGuasto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="64" />
|
|
</Element>
|
|
<Element Type="SqlForeignKeyConstraint" Name="[dbo].[FK_InterventiMtz_AnagCausali]">
|
|
<Property Name="OnUpdateAction" Value="1" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxCausale]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagCausali].[idxCausale]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagCausali]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="65" />
|
|
</Element>
|
|
<Element Type="SqlForeignKeyConstraint" Name="[dbo].[FK_InterventiMtz_AnagImpianti]">
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxImpianto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[idxImpianto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="66" />
|
|
</Element>
|
|
<Element Type="SqlForeignKeyConstraint" Name="[dbo].[FK_InterventiMtz_AnagMacchine]">
|
|
<Property Name="OnUpdateAction" Value="1" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[idxMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="67" />
|
|
</Element>
|
|
<Element Type="SqlForeignKeyConstraint" Name="[dbo].[FK_InterventiMtz_AnagPriorita]">
|
|
<Property Name="OnUpdateAction" Value="1" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxPriorita]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagPriorita].[idxPriorita]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagPriorita]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="68" />
|
|
</Element>
|
|
<Element Type="SqlForeignKeyConstraint" Name="[dbo].[FK_InterventiMtz_AnagStati]">
|
|
<Property Name="OnUpdateAction" Value="1" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxStato]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagStati].[idxStato]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagStati]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="69" />
|
|
</Element>
|
|
<Element Type="SqlForeignKeyConstraint" Name="[dbo].[FK_InterventiMtz_AnagTipoGuasto]">
|
|
<Property Name="OnUpdateAction" Value="1" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxTipo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoGuasto].[idxTipo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoGuasto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="70" />
|
|
</Element>
|
|
<Element Type="SqlForeignKeyConstraint" Name="[dbo].[FK_InterventoOpMtz_AnagrOperMtz]">
|
|
<Property Name="OnUpdateAction" Value="1" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventoOpMtz].[matrOp]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventoOpMtz]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagrOperMtz].[matrOp]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagrOperMtz]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="71" />
|
|
</Element>
|
|
<Element Type="SqlForeignKeyConstraint" Name="[dbo].[FK_InterventoOpMtz_InterventiMtz]">
|
|
<Property Name="OnUpdateAction" Value="1" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventoOpMtz].[numIntMtz]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventoOpMtz]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[numIntMtz]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignTable">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="72" />
|
|
</Element>
|
|
<Element Type="SqlForeignKeyConstraint" Name="[dbo].[FK_Macchine2FamMacchine_AnagFamMacchine]">
|
|
<Property Name="OnUpdateAction" Value="1" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<References Name="[dbo].[Macchine2FamMacchine].[idxFamMacchine]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[Macchine2FamMacchine]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagFamMacchine].[idxFamMacchine]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagFamMacchine]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="73" />
|
|
</Element>
|
|
<Element Type="SqlForeignKeyConstraint" Name="[dbo].[FK_Macchine2FamMacchine_AnagMacchine]">
|
|
<Property Name="OnUpdateAction" Value="1" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<References Name="[dbo].[Macchine2FamMacchine].[idxMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[Macchine2FamMacchine]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[idxMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="74" />
|
|
</Element>
|
|
<Element Type="SqlForeignKeyConstraint" Name="[dbo].[FK_MagRic_AnagItems]">
|
|
<Property Name="OnUpdateAction" Value="1" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<References Name="[dbo].[MagRic].[idxItem]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[MagRic]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[idxItem]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="75" />
|
|
</Element>
|
|
<Element Type="SqlForeignKeyConstraint" Name="[dbo].[FK_MagRic_AnagLocazioni]">
|
|
<Property Name="OnUpdateAction" Value="1" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<References Name="[dbo].[MagRic].[CodLocazione]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[MagRic]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagLocazioni].[CodLocazione]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagLocazioni]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="76" />
|
|
</Element>
|
|
<Element Type="SqlForeignKeyConstraint" Name="[dbo].[FK_MovMagRic_AnagItems]">
|
|
<Property Name="OnUpdateAction" Value="1" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<References Name="[dbo].[MovMagRic].[idxItem]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[MovMagRic]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[idxItem]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="77" />
|
|
</Element>
|
|
<Element Type="SqlForeignKeyConstraint" Name="[dbo].[FK_MovMagRic_InterventiMtz]">
|
|
<Property Name="OnUpdateAction" Value="1" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<References Name="[dbo].[MovMagRic].[numIntMtz]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[MovMagRic]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[numIntMtz]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignTable">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="78" />
|
|
</Element>
|
|
<Element Type="SqlForeignKeyConstraint" Name="[dbo].[FK_MtzProgPending_MtzProgrammata]">
|
|
<Property Name="OnUpdateAction" Value="1" />
|
|
<Property Name="OnDeleteAction" Value="1" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgPending].[idxIntPro]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgPending]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata].[idxIntPro]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignTable">
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="79" />
|
|
</Element>
|
|
<Element Type="SqlForeignKeyConstraint" Name="[dbo].[FK_MtzProgrammata_AnagFrequenze]">
|
|
<Property Name="OnUpdateAction" Value="1" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata].[codFrequenza]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagFrequenze].[codFrequenza]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagFrequenze]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="80" />
|
|
</Element>
|
|
<Element Type="SqlForeignKeyConstraint" Name="[dbo].[FK_MtzProgrammata_AnagMacchine]">
|
|
<Property Name="OnUpdateAction" Value="1" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata].[idxMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[idxMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="81" />
|
|
</Element>
|
|
<Element Type="SqlForeignKeyConstraint" Name="[dbo].[FK_Permessi2Funzione_Permessi]">
|
|
<Property Name="OnUpdateAction" Value="1" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<References Name="[dbo].[Permessi2Funzione].[COD_PERMESSO]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[Permessi2Funzione]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[Permessi].[COD_PERMESSO]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignTable">
|
|
<Entry>
|
|
<References Name="[dbo].[Permessi]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="82" />
|
|
</Element>
|
|
<Element Type="SqlForeignKeyConstraint" Name="[dbo].[FK_Tag2Item_AnagItems]">
|
|
<Property Name="OnUpdateAction" Value="1" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<References Name="[dbo].[Tag2Item].[idxItem]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[Tag2Item]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[idxItem]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="83" />
|
|
</Element>
|
|
<Element Type="SqlForeignKeyConstraint" Name="[dbo].[FK_Tag2Item_AnagTag]">
|
|
<Property Name="OnUpdateAction" Value="1" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<References Name="[dbo].[Tag2Item].[TagCode]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[Tag2Item]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTags].[TagCode]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTags]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="84" />
|
|
</Element>
|
|
<Element Type="SqlForeignKeyConstraint" Name="[dbo].[FK_Tag2Macc_AnagMacchine]">
|
|
<Property Name="OnUpdateAction" Value="1" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<References Name="[dbo].[Tag2Macc].[idxMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[Tag2Macc]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[idxMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="85" />
|
|
</Element>
|
|
<Element Type="SqlForeignKeyConstraint" Name="[dbo].[FK_Tag2Macc_AnagTag]">
|
|
<Property Name="OnUpdateAction" Value="1" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<References Name="[dbo].[Tag2Macc].[TagCode]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[Tag2Macc]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTags].[TagCode]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTags]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="86" />
|
|
</Element>
|
|
<Element Type="SqlForeignKeyConstraint" Name="[dbo].[FK_Tra_Ev2Stati_AnagEventi]">
|
|
<Property Name="OnUpdateAction" Value="1" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<References Name="[dbo].[Tra_Ev2Stati].[idxEvento]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[Tra_Ev2Stati]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagEventi].[idxEvento]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagEventi]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="87" />
|
|
</Element>
|
|
<Element Type="SqlForeignKeyConstraint" Name="[dbo].[FK_Tra_Ev2Stati_AnagStati]">
|
|
<Property Name="OnUpdateAction" Value="1" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<References Name="[dbo].[Tra_Ev2Stati].[idxStato]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[Tra_Ev2Stati]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagStati].[idxStato]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagStati]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="88" />
|
|
</Element>
|
|
<Element Type="SqlForeignKeyConstraint" Name="[dbo].[FK_UTENTE_CDC]">
|
|
<Property Name="OnUpdateAction" Value="1" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<References Name="[dbo].[UTENTE].[COD_CDC]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[UTENTE]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[CDC].[COD_CDC]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignTable">
|
|
<Entry>
|
|
<References Name="[dbo].[CDC]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="89" />
|
|
</Element>
|
|
<Element Type="SqlForeignKeyConstraint" Name="[dbo].[FK_Vocabolario_Lingue]">
|
|
<Property Name="OnUpdateAction" Value="1" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<References Name="[dbo].[Vocabolario].[Lingua]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[Vocabolario]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[Lingue].[Lingua]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignTable">
|
|
<Entry>
|
|
<References Name="[dbo].[Lingue]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="90" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[FUNZIONE]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[FUNZIONE].[COD_FUNZIONE]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="31" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[FUNZIONE].[DESCRIZIONE]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="500" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="91" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[ImpiegoRisorse]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[ImpiegoRisorse].[idxImpiego]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Property Name="IsIdentity" Value="True" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[ImpiegoRisorse].[CodRisorsa]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="10" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[ImpiegoRisorse].[numIntMtz]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[ImpiegoRisorse].[QtaRisorsa]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="18" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[ImpiegoRisorse].[CostoUnit]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="18" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="44" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[ImpiegoRisorse].[TotImport]">
|
|
<Property Name="ExpressionScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[([QtaRisorsa]*[CostoUnit])]]></Value>
|
|
</Property>
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[ImpiegoRisorse].[QtaRisorsa]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ImpiegoRisorse].[CostoUnit]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[ImpiegoRisorse].[Note]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="IsMax" Value="True" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="45" />
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="92" />
|
|
<AttachedAnnotation Disambiguator="62" />
|
|
<AttachedAnnotation Disambiguator="63" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[InterventiMtz]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[InterventiMtz].[numIntMtz]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Property Name="IsIdentity" Value="True" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[InterventiMtz].[richiesta]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[InterventiMtz].[dataLav]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[InterventiMtz].[turnoLav]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[InterventiMtz].[matr]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="10" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[InterventiMtz].[guasto]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[InterventiMtz].[idxAmbito]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[InterventiMtz].[idxPriorita]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[InterventiMtz].[isFermo]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[bit]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="46" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[InterventiMtz].[idxTipo]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[InterventiMtz].[idxImpianto]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[InterventiMtz].[idxMacchina]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[InterventiMtz].[descrizione]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="2500" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[InterventiMtz].[idxStato]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[InterventiMtz].[presaInCarico]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[InterventiMtz].[inizioIntervento]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[InterventiMtz].[fineIntervento]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[InterventiMtz].[descrizioneIntervento]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="2500" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[InterventiMtz].[isPreventivabile]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[bit]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="47" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[InterventiMtz].[idxCausale]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[InterventiMtz].[scheduled]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[bit]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="48" />
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="93" />
|
|
<AttachedAnnotation Disambiguator="64" />
|
|
<AttachedAnnotation Disambiguator="65" />
|
|
<AttachedAnnotation Disambiguator="66" />
|
|
<AttachedAnnotation Disambiguator="67" />
|
|
<AttachedAnnotation Disambiguator="68" />
|
|
<AttachedAnnotation Disambiguator="69" />
|
|
<AttachedAnnotation Disambiguator="70" />
|
|
</Element>
|
|
<Element Type="SqlIndex" Name="[dbo].[InterventiMtz].[i_impianto]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxImpianto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="IndexedObject">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlIndex" Name="[dbo].[InterventiMtz].[i_macchina]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="IndexedObject">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlIndex" Name="[dbo].[InterventiMtz].[i_richiesta]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[richiesta]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="IndexedObject">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlIndex" Name="[dbo].[InterventiMtz].[i_stato]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxStato]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="IndexedObject">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[InterventoOpMtz]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[InterventoOpMtz].[numIntMtz]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[InterventoOpMtz].[matrOp]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="10" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[InterventoOpMtz].[durataMinuti]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="94" />
|
|
<AttachedAnnotation Disambiguator="71" />
|
|
<AttachedAnnotation Disambiguator="72" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[Lingue]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[Lingue].[Lingua]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="3" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[Lingue].[DescrizioneLingua]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="95" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[ListValues]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[ListValues].[TableName]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[ListValues].[FieldName]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[ListValues].[value]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="10" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[ListValues].[label]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[ListValues].[ordinal]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="96" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[LogUpdateDb]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[LogUpdateDb].[Versione]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[LogUpdateDb].[Data]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="97" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[Macchine2FamMacchine]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[Macchine2FamMacchine].[idxMacchina]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[Macchine2FamMacchine].[idxFamMacchine]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="98" />
|
|
<AttachedAnnotation Disambiguator="73" />
|
|
<AttachedAnnotation Disambiguator="74" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[MagRic]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[MagRic].[idxItem]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[MagRic].[CodLocazione]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="41" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[MagRic].[Giacenza]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="43" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[MagRic].[Note]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="IsMax" Value="True" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="42" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[MagRic].[dtLastUpd]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="99" />
|
|
<AttachedAnnotation Disambiguator="75" />
|
|
<AttachedAnnotation Disambiguator="76" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[MODULO]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[MODULO].[COD_MODULO]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="31" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[MODULO].[DESCRIZIONE]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="200" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[varchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="100" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[MovMagRic]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[MovMagRic].[idxItem]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[MovMagRic].[numIntMtz]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[MovMagRic].[dtMov]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[MovMagRic].[Qta]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="49" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[MovMagRic].[idxMacchina]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[MovMagRic].[dtExport]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="101" />
|
|
<AttachedAnnotation Disambiguator="77" />
|
|
<AttachedAnnotation Disambiguator="78" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[MtzProgPending]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[MtzProgPending].[idxPending]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Property Name="IsIdentity" Value="True" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[MtzProgPending].[idxIntPro]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[MtzProgPending].[idxMacchina]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[MtzProgPending].[data]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[MtzProgPending].[descrizione]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="2500" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[MtzProgPending].[idxPriorita]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[MtzProgPending].[isFermo]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[bit]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="50" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[MtzProgPending].[idxTipo]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="102" />
|
|
<AttachedAnnotation Disambiguator="79" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[MtzProgrammata]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[MtzProgrammata].[idxIntPro]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Property Name="IsIdentity" Value="True" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[MtzProgrammata].[idxMacchina]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[MtzProgrammata].[inizio]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[MtzProgrammata].[codFrequenza]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="2" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[MtzProgrammata].[cadenza]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[MtzProgrammata].[descrizione]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="2500" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[MtzProgrammata].[idxPriorita]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[MtzProgrammata].[isFermo]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[bit]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="51" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[MtzProgrammata].[idxTipo]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="103" />
|
|
<AttachedAnnotation Disambiguator="80" />
|
|
<AttachedAnnotation Disambiguator="81" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[OreAperturaSett]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[OreAperturaSett].[giorno]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[OreAperturaSett].[descrGiorno]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[OreAperturaSett].[apertura]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="104" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[OreAperturaSettTurni]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[OreAperturaSettTurni].[CodClasseTurno]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[OreAperturaSettTurni].[CodTurno]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[OreAperturaSettTurni].[giorno]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[OreAperturaSettTurni].[descrGiorno]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="105" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[OreChiusuraSett]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[OreChiusuraSett].[giorno]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[OreChiusuraSett].[descrGiorno]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[OreChiusuraSett].[chiusura]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="106" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[Permessi]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[Permessi].[COD_PERMESSO]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[varchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[Permessi].[URL]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="250" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[varchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[Permessi].[GRUPPO]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[Permessi].[NUMERO]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[Permessi].[NOME]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[varchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[Permessi].[DESCRIZIONE]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[varchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="107" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[Permessi2Funzione]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[Permessi2Funzione].[COD_PERMESSO]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[varchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[Permessi2Funzione].[COD_FUNZIONE]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="31" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[Permessi2Funzione].[READWRITE]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="1" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[char]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="108" />
|
|
<AttachedAnnotation Disambiguator="82" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK__MagRicam__51E8426210504E93]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[MagRic].[idxItem]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[MagRic].[CodLocazione]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[MagRic]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="99" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_AnagAmbitoGuasto]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagAmbitoGuasto].[idxAmbito]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagAmbitoGuasto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="4" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_AnagCausali]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagCausali].[idxCausale]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagCausali]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="6" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_AnagClasseTurno]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagClasseTurno].[CodClasseTurno]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagClasseTurno]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="8" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_AnagEventi]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagEventi].[idxEvento]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagEventi]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="9" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_AnagFamMacchine]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagFamMacchine].[idxFamMacchine]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagFamMacchine]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="10" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_AnagFrequenze]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagFrequenze].[codFrequenza]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagFrequenze]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="11" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_AnagImpianti]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[idxImpianto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="12" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_AnagItems]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[idxItem]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="21" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_AnagLocazioni]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagLocazioni].[CodLocazione]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagLocazioni]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="23" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_AnagMacchine]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[idxMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="26" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_AnagPeriodi]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagPeriodi].[codPeriodo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagPeriodi]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="28" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_AnagPriorita]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagPriorita].[idxPriorita]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagPriorita]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="29" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_AnagrOperatoriMtz]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagrOperMtz].[matrOp]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagrOperMtz]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="30" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_AnagSemafori]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagSemafori].[codSemaforo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagSemafori]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="31" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_AnagStati]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagStati].[idxStato]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagStati]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="32" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_AnagTag]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTags].[TagCode]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTags]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="35" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_AnagTipoGuasto]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoGuasto].[idxTipo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoGuasto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="36" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_AnagTipoRisorsa]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoRisorsa].[CodRisorsa]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoRisorsa]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="38" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_AnagTurni]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTurni].[CodTurno]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTurni]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="39" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_CalendFesteFerie]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[CalendFesteFerie].[data]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[CalendFesteFerie]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="40" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_DIRITTI]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[DIRITTI].[USER_NAME]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[DIRITTI].[COD_CDC]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[DIRITTI].[COD_MODULO]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[DIRITTI].[COD_FUNZIONE]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[DIRITTI]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="52" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_FiltroImpianti]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroImpianti].[username]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroImpianti].[idxImpianto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroImpianti]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="56" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_FiltroMacchine]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroMacchine].[username]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroMacchine].[idxMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroMacchine]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="58" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_FiltroStati]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroStati].[username]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroStati].[idxStato]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroStati]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="60" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_FUNZIONE]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[FUNZIONE].[COD_FUNZIONE]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[FUNZIONE]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="91" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_ImpiegoRisorse]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[ImpiegoRisorse].[idxImpiego]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[ImpiegoRisorse]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="92" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_InterventiMtz]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[numIntMtz]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="93" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_InterventoOpMtz]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventoOpMtz].[numIntMtz]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventoOpMtz].[matrOp]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventoOpMtz]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="94" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_Lingue]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[Lingue].[Lingua]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[Lingue]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="95" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_ListValues]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[ListValues].[TableName]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[ListValues].[FieldName]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[ListValues].[value]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[ListValues]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="96" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_LogUpdateDb]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[LogUpdateDb].[Versione]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[LogUpdateDb]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="97" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_Macchine2FamMacchine]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[Macchine2FamMacchine].[idxMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[Macchine2FamMacchine].[idxFamMacchine]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[Macchine2FamMacchine]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="98" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_MODULO]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[MODULO].[COD_MODULO]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[MODULO]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="100" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_MovMagRic]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[MovMagRic].[idxItem]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[MovMagRic].[numIntMtz]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[MovMagRic].[dtMov]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[MovMagRic]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="101" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_MtzProgPending]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgPending].[idxPending]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgPending]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="102" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_MtzProgrammata]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata].[idxIntPro]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="103" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_OreAperturaSett]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[OreAperturaSettTurni].[CodClasseTurno]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[OreAperturaSettTurni].[giorno]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[OreAperturaSettTurni].[CodTurno]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[OreAperturaSettTurni]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="105" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_OreAperturaSett_1]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[OreChiusuraSett].[giorno]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[OreChiusuraSett]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="106" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_OreAperturaSett_2]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[OreAperturaSett].[giorno]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[OreAperturaSett]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="104" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_Permessi]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[Permessi].[COD_PERMESSO]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[Permessi]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="107" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_Permessi2Funzione]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[Permessi2Funzione].[COD_PERMESSO]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[Permessi2Funzione].[COD_FUNZIONE]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[Permessi2Funzione]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="108" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_SinonimiTag]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[SinonimiTag].[TagCodeOrig]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[SinonimiTag]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="109" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_Tag2Item]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[Tag2Item].[idxItem]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[Tag2Item].[TagCode]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[Tag2Item]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="110" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_Tag2Macc]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[Tag2Macc].[TagCode]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[Tag2Macc].[idxMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[Tag2Macc]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="111" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_tmp_importaMacchine]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[tmp_importaMacchine].[idx]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[tmp_importaMacchine]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="112" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_Tra_Ev2Stati]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[Tra_Ev2Stati].[idxStato]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[Tra_Ev2Stati].[idxEvento]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[Tra_Ev2Stati]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="113" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_UTENTE]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[UTENTE].[USER_NAME]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[UTENTE]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="114" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_Vocabolario]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[Vocabolario].[Lingua]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[Vocabolario].[Lemma]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[Vocabolario]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="115" />
|
|
</Element>
|
|
<Element Type="SqlScalarFunction" Name="[dbo].[rightDivision]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[float]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[rightDivision].[@dividendo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[rightDivision].[@divisore]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="FunctionBody">
|
|
<Entry>
|
|
<Element Type="SqlScriptFunctionImplementation">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
BEGIN
|
|
|
|
declare @errore as int
|
|
declare @risultato as float
|
|
|
|
set @errore =0
|
|
|
|
set @errore = case when (isnull(@dividendo,0))<=0 then 1 end
|
|
|
|
set @errore = case when (isnull(@divisore,0)) <=0 then 1 end
|
|
|
|
set @risultato= case when (@errore=1) then -1 else @dividendo/@divisore end
|
|
|
|
RETURN @risultato
|
|
|
|
END]]></Value>
|
|
</Property>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="282" />
|
|
<Property Name="Length" Value="705" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="/***********************************************************************************
* FUNCTION rightDivision
*
* calcola la divisione altrimenti mostra errore -1 se dividendo/divisore < 0
*
***********************************************************************************/
CREATE FUNCTION rightDivision
(
	@dividendo float,
	@divisore float
)
RETURNS float
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[rightDivision].[@dividendo]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Precision" Value="53" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[float]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[rightDivision].[@divisore]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Precision" Value="53" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[float]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Precision" Value="53" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[float]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[SinonimiTag]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[SinonimiTag].[TagCodeOrig]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[SinonimiTag].[TagCode]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="109" />
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[sp_caricaUpdateMAcchine]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
|
|
SET XACT_ABORT ON;
|
|
|
|
DECLARE @Id AS INT = 0;
|
|
|
|
BEGIN TRAN
|
|
|
|
-- reset idx tabelle
|
|
SELECT @Id = ISNULL(MAX(idxImpianto),0) FROM dbo.AnagImpianti
|
|
DBCC CHECKIDENT ('AnagImpianti', RESEED, @Id);
|
|
|
|
SELECT @Id = ISNULL(MAX(idxMacchina),0) FROM dbo.AnagMacchine
|
|
DBCC CHECKIDENT ('AnagMacchine', RESEED, @Id);
|
|
|
|
SELECT @Id = ISNULL(MAX(idxFamMacchine),0) FROM dbo.AnagFamMacchine
|
|
DBCC CHECKIDENT ('AnagFamMacchine', RESEED, @Id);
|
|
|
|
-- cerco se ci sono nuovi impianti e lo carico
|
|
INSERT INTO dbo.AnagImpianti(codImpianto, nomeImpianto, tipoImpianto, funzDal, funzAl)
|
|
SELECT 'IT' + dbo.f_padLeft(ROW_NUMBER() OVER (ORDER BY reparto), 2,'0') as codImpianto,
|
|
reparto as nomeImpianto,
|
|
'Reparto' as tipoImpianto,
|
|
CONVERT(DATETIME, '01-01-'+CAST(MIN(anno) AS NVARCHAR(4)), 110) as funzDal, '9999-12-31' as funzAl
|
|
FROM tmp_importaMacchine tmp
|
|
LEFT OUTER JOIN AnagImpianti ai ON tmp.reparto = ai.nomeImpianto
|
|
WHERE ai.codImpianto IS NULL
|
|
GROUP BY reparto
|
|
|
|
-- carico famiglie nuove e le carico
|
|
INSERT INTO dbo.AnagFamMacchine
|
|
SELECT DISTINCT Gruppo FROM dbo.tmp_importaMacchine AS i
|
|
LEFT JOIN dbo.AnagFamMacchine AS f ON RTRIM(i.Gruppo) = RTRIM(f.nomeFamMacch)
|
|
WHERE f.nomeFamMacch IS NULL
|
|
|
|
-- cerco se ci sono nuove macchine e le carico
|
|
INSERT INTO dbo.AnagMacchine
|
|
(codMacchina, nomeMacchina, modello, funzDal, idxImpianto, funzAl, kgPeso, kwConsumo, anno, matricola)
|
|
SELECT ISNULL(i.idGest, N'--') AS codMacchina,
|
|
ISNULL(i.denominazione, N'nd') AS nomeMacchina,
|
|
ISNULL(i.costruttore, N'nd') AS modello,
|
|
CAST(CAST(ISNULL(i.anno, 1900) AS varchar) + '-01-01 12:00:00' AS datetime) AS funzDal,
|
|
AnagImpianti.idxImpianto,
|
|
CAST('9999-12-31' AS datetime) AS fine,
|
|
1 AS kg,
|
|
1 AS kw,
|
|
ISNULL(i.anno, 1900) AS anno,
|
|
i.matricola
|
|
FROM dbo.tmp_importaMacchine AS i
|
|
INNER JOIN AnagImpianti ON i.reparto = AnagImpianti.nomeImpianto
|
|
LEFT JOIN dbo.AnagMacchine AS am ON i.idGest = am.codMacchina
|
|
WHERE am.codMacchina IS NULL -- solo nuove
|
|
|
|
-- carico Macchine2FamMacchine - solo x macchine nuove ( NON faccio update )
|
|
INSERT INTO dbo.Macchine2FamMacchine
|
|
SELECT m.idxMacchina, f.idxFamMacchine FROM dbo.AnagMacchine AS m
|
|
INNER JOIN dbo.tmp_importaMacchine AS i ON m.codMacchina = i.idGest
|
|
INNER JOIN dbo.AnagFamMacchine AS f ON i.Gruppo = f.nomeFamMacch
|
|
LEFT JOIN dbo.Macchine2FamMacchine AS m2f ON m.idxMacchina = m2f.idxMacchina
|
|
WHERE m2f.idxMacchina IS NULL
|
|
|
|
/* Test
|
|
SELECT * FROM tmp_importaMacchine
|
|
SELECT * FROM AnagFamMacchine
|
|
SELECT * FROM AnagMacchine
|
|
SELECT * FROM AnagImpianti
|
|
SELECT * FROM dbo.Macchine2FamMacchine
|
|
*/
|
|
|
|
COMMIT
|
|
|
|
RETURN]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[idxImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagFamMacchine]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagFamMacchine].[idxFamMacchine]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[codImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[nomeImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[tipoImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[funzDal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[funzAl]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[tmp_importaMacchine]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[tmp_importaMacchine].[reparto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[nomeImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_padLeft]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[tmp_importaMacchine].[reparto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[tmp_importaMacchine].[reparto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[tmp_importaMacchine].[anno]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[codImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[tmp_importaMacchine].[Gruppo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagFamMacchine].[nomeFamMacch]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[tmp_importaMacchine].[Gruppo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[codMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[nomeMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[modello]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[funzDal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[idxImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[funzAl]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[kgPeso]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[kwConsumo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[anno]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[matricola]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[tmp_importaMacchine].[reparto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[nomeImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[tmp_importaMacchine].[idGest]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[codMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[tmp_importaMacchine].[denominazione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[tmp_importaMacchine].[costruttore]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[varchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[tmp_importaMacchine].[anno]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[idxImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[tmp_importaMacchine].[matricola]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Macchine2FamMacchine]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[codMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[tmp_importaMacchine].[idGest]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[tmp_importaMacchine].[Gruppo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagFamMacchine].[nomeFamMacch]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Macchine2FamMacchine].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagFamMacchine].[idxFamMacchine]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="206" />
|
|
<Property Name="Length" Value="3264" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="/*************************************
* STORED PROCEDURE sp_caricaUpdateMAcchine
* 	carica impianti/macchien da tab temporanea
*
* modif.:	S.E.L. - 2015.02.04
**************************************/
CREATE PROCEDURE sp_caricaUpdateMAcchine
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[sp_clonaImpianto]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
|
|
BEGIN tran
|
|
|
|
INSERT INTO AnagImpianti
|
|
(codImpianto, nomeImpianto, tipoImpianto, funzDal, funzAl)
|
|
SELECT codImpianto + '-clone' AS Expr1, nomeImpianto + '-clone' AS Expr2, tipoImpianto, funzDal, funzAl
|
|
FROM AnagImpianti AS AnagImpianti_1
|
|
WHERE (idxImpianto = @idxImpianto)
|
|
|
|
COMMIT tran
|
|
|
|
RETURN]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[codImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[nomeImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[tipoImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[funzDal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[funzAl]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[idxImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[sp_clonaImpianto].[@idxImpianto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[sp_clonaImpianto].[@idxImpianto]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="192" />
|
|
<Property Name="Length" Value="606" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="/*************************************
* STORED PROCEDURE sp_clonaImpianto
* 	Clona i dati dell'impianto indicato
*
* modif.:	S.E.L. - 2009.01.14
**************************************/
CREATE PROCEDURE dbo.sp_clonaImpianto
(
	@idxImpianto int
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[sp_clonaMacchina]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
|
|
BEGIN tran
|
|
|
|
INSERT INTO AnagMacchine
|
|
(idxImpianto, codMacchina, nomeMacchina, modello, anno, kgPeso, kwConsumo, funzDal, funzAl)
|
|
SELECT idxImpianto, codMacchina + '-clone' AS Expr1, nomeMacchina + '-clone' AS Expr2, modello, anno, kgPeso, kwConsumo, funzDal, funzAl
|
|
FROM AnagMacchine AS AnagMacchine_1
|
|
WHERE (idxMacchina = @idxMacchina)
|
|
|
|
COMMIT tran
|
|
|
|
RETURN]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[idxImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[codMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[nomeMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[modello]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[anno]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[kgPeso]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[kwConsumo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[funzDal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[funzAl]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[sp_clonaMacchina].[@idxMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[sp_clonaMacchina].[@idxMacchina]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="193" />
|
|
<Property Name="Length" Value="673" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="/*************************************
* STORED PROCEDURE sp_clonaMacchina
* 	Clona i dati della macchina indicata
*
* modif.:	S.E.L. - 2009.01.14
**************************************/
CREATE PROCEDURE dbo.sp_clonaMacchina
(
	@idxMacchina int
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[sp_elencoIntMTBF_MTTR]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
|
|
-- inizio con il creare la vista che mi serve x selezionare gli interventi filtrati dall'utente (per poterli escludere-includere)
|
|
WITH ElencoInt AS (SELECT v_elencoIntervFilt.*
|
|
FROM FiltroImpianti INNER JOIN
|
|
FiltroMacchine INNER JOIN
|
|
v_elencoIntervFilt INNER JOIN
|
|
FiltroStati ON v_elencoIntervFilt.idxStato = FiltroStati.idxStato ON FiltroMacchine.idxMacchina = v_elencoIntervFilt.idxMacchina ON
|
|
FiltroImpianti.idxImpianto = v_elencoIntervFilt.idxImpianto
|
|
WHERE (v_elencoIntervFilt.richiesta BETWEEN @inizio AND @fine) AND (FiltroStati.username = @username) AND (FiltroMacchine.username = @username) AND
|
|
(FiltroImpianti.username = @username))
|
|
|
|
|
|
-- seleziono gli interventi DAVVERO erogati
|
|
SELECT COUNT(ElencoInt.numIntMtz) AS numInterventi, SUM(ElencoInt.durataMtz) AS totOreMtz,
|
|
SUM(ElencoInt.durataOff) AS totOreOfficina, ElencoInt.codImpianto, ElencoInt.codMacchina,
|
|
ElencoInt.nomeImpianto, ElencoInt.nomeMacchina
|
|
FROM ElencoInt
|
|
GROUP BY ElencoInt.codImpianto, ElencoInt.codMacchina, ElencoInt.nomeImpianto, ElencoInt.nomeMacchina
|
|
|
|
UNION
|
|
|
|
-- seleziono gli impianti che NON hanno ricevuto interventi ma comunque scelti dall'utente...
|
|
SELECT 0 AS numInterventi, 0 AS totOreMtz, 0 AS totOreOfficina, AnagImpianti.codImpianto, AnagMacchine.codMacchina, AnagImpianti.nomeImpianto,
|
|
AnagMacchine.nomeMacchina
|
|
FROM FiltroMacchine INNER JOIN
|
|
AnagMacchine ON FiltroMacchine.idxMacchina = AnagMacchine.idxMacchina INNER JOIN
|
|
AnagImpianti ON AnagMacchine.idxImpianto = AnagImpianti.idxImpianto LEFT OUTER JOIN
|
|
ElencoInt ON FiltroMacchine.idxMacchina = ElencoInt.idxMacchina
|
|
WHERE (ElencoInt.numIntMtz IS NULL)
|
|
GROUP BY AnagImpianti.codImpianto, AnagMacchine.codMacchina, AnagImpianti.nomeImpianto, AnagMacchine.nomeMacchina
|
|
|
|
RETURN]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroImpianti]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroMacchine]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroStati]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[idxStato]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroStati].[idxStato]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroMacchine].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroImpianti].[idxImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[idxImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[richiesta]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[sp_elencoIntMTBF_MTTR].[@inizio]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[sp_elencoIntMTBF_MTTR].[@fine]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroStati].[username]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[sp_elencoIntMTBF_MTTR].[@username]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroMacchine].[username]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroImpianti].[username]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[numIntMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[durataMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[durataOff]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[codImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[codMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[nomeImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[nomeMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroMacchine].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[idxImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[idxImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroMacchine].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[codImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[codMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[nomeImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[nomeMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[numIntMtz]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DynamicObjects">
|
|
<Entry>
|
|
<Element Type="SqlDynamicColumnSource" Name="[dbo].[sp_elencoIntMTBF_MTTR].[CTE1].[ElencoInt]">
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[sp_elencoIntMTBF_MTTR].[CTE1].[ElencoInt].[numIntMtz]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[numIntMtz]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[sp_elencoIntMTBF_MTTR].[CTE1].[ElencoInt].[richiesta]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[richiesta]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[sp_elencoIntMTBF_MTTR].[CTE1].[ElencoInt].[codImpianto]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[codImpianto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[sp_elencoIntMTBF_MTTR].[CTE1].[ElencoInt].[nomeImpianto]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[nomeImpianto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[sp_elencoIntMTBF_MTTR].[CTE1].[ElencoInt].[codMacchina]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[codMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[sp_elencoIntMTBF_MTTR].[CTE1].[ElencoInt].[nomeMacchina]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[nomeMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[sp_elencoIntMTBF_MTTR].[CTE1].[ElencoInt].[descrizione]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[descrizione]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[sp_elencoIntMTBF_MTTR].[CTE1].[ElencoInt].[inizioIntervento]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[inizioIntervento]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[sp_elencoIntMTBF_MTTR].[CTE1].[ElencoInt].[fineIntervento]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[fineIntervento]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[sp_elencoIntMTBF_MTTR].[CTE1].[ElencoInt].[descrizioneIntervento]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[descrizioneIntervento]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[sp_elencoIntMTBF_MTTR].[CTE1].[ElencoInt].[descrCausale]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[descrCausale]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[sp_elencoIntMTBF_MTTR].[CTE1].[ElencoInt].[minErogati]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[minErogati]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[sp_elencoIntMTBF_MTTR].[CTE1].[ElencoInt].[durataMtz]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[durataMtz]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[sp_elencoIntMTBF_MTTR].[CTE1].[ElencoInt].[durataOff]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[durataOff]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[sp_elencoIntMTBF_MTTR].[CTE1].[ElencoInt].[guasto]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[guasto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[sp_elencoIntMTBF_MTTR].[CTE1].[ElencoInt].[idxStato]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[idxStato]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[sp_elencoIntMTBF_MTTR].[CTE1].[ElencoInt].[idxImpianto]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[idxImpianto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[sp_elencoIntMTBF_MTTR].[CTE1].[ElencoInt].[idxMacchina]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[idxMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[sp_elencoIntMTBF_MTTR].[CTE1].[ElencoInt].[isFermo]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[isFermo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[sp_elencoIntMTBF_MTTR].[CTE1].[ElencoInt].[scheduled]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[scheduled]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[sp_elencoIntMTBF_MTTR].[@inizio]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[sp_elencoIntMTBF_MTTR].[@fine]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[sp_elencoIntMTBF_MTTR].[@username]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="100" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[varchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="290" />
|
|
<Property Name="Length" Value="2474" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="
/*************************************
* STORED PROCEDURE sp_elencoIntMTBF_MTTR
* 	Restituisce elenco degli interventi x fare il calcolo MTBF/MTTR FILTRANDO per:
* - idxStati
* - idxImpianto
* - idxMacchina
*
* modif.:	S.E.L. - 2010.05.11
**************************************/
CREATE PROCEDURE sp_elencoIntMTBF_MTTR
(
	@inizio DATETIME,
	@fine DATETIME,
	@username VARCHAR(100)
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[sp_IndiciAndShrink]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
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]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[varchar]" />
|
|
</Entry>
|
|
<Entry />
|
|
<Entry />
|
|
<Entry>
|
|
<References Name="[dbo].[sp_IndiciAndShrink].[##TMP_nomiTabelle]" />
|
|
</Entry>
|
|
<Entry />
|
|
<Entry />
|
|
<Entry>
|
|
<References Name="[dbo].[sp_IndiciAndShrink].[##TMP_nomiTabelle].[name]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[sp_IndiciAndShrink].[##TMP_nomiTabelle].[IDENT]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[sp_IndiciAndShrink].[@databaseName]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DynamicObjects">
|
|
<Entry>
|
|
<Element Type="SqlDynamicColumnSource" Name="[dbo].[sp_IndiciAndShrink].[##TMP_nomiTabelle]">
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[sp_IndiciAndShrink].[##TMP_nomiTabelle].[IDENT]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[sp_IndiciAndShrink].[##TMP_nomiTabelle].[name]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry />
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[sp_IndiciAndShrink].[@databaseName]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[sys].[sysname]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="240" />
|
|
<Property Name="Length" Value="1122" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="-- =============================================
-- Author:		Marco Salvi
-- Create date: 11/03/2009
-- Description:	Stored procedure per ricostruire gli indici e fare lo shrink su un db
-- =============================================
CREATE PROCEDURE [dbo].[sp_IndiciAndShrink] 
(
	@databaseName sysname
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[sp_insRichiesta]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
|
|
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)]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[richiesta]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[dataLav]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[turnoLav]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[matr]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[guasto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxAmbito]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxPriorita]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[isFermo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxTipo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[descrizione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxStato]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxCausale]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[scheduled]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[sp_insRichiesta].[@richiesta]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[sp_insRichiesta].[@dataLav]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[sp_insRichiesta].[@turnoLav]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[sp_insRichiesta].[@matr]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[sp_insRichiesta].[@guasto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[sp_insRichiesta].[@idxAmbito]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[sp_insRichiesta].[@idxPriorita]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[sp_insRichiesta].[@isFermo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[sp_insRichiesta].[@idxTipo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[sp_insRichiesta].[@idxImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[sp_insRichiesta].[@idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[sp_insRichiesta].[@descrizione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[sp_insRichiesta].[@idxCausale]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[sp_insRichiesta].[@scheduled]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[sp_insRichiesta].[@numIntMtz]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[sp_insRichiesta].[@richiesta]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[sp_insRichiesta].[@dataLav]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[sp_insRichiesta].[@turnoLav]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[sp_insRichiesta].[@matr]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="10" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[varchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[sp_insRichiesta].[@guasto]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[sp_insRichiesta].[@idxAmbito]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[sp_insRichiesta].[@idxPriorita]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[sp_insRichiesta].[@isFermo]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[bit]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[sp_insRichiesta].[@idxTipo]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[sp_insRichiesta].[@idxImpianto]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[sp_insRichiesta].[@idxMacchina]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[sp_insRichiesta].[@descrizione]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="2500" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[varchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[sp_insRichiesta].[@idxCausale]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[sp_insRichiesta].[@scheduled]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[bit]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[sp_insRichiesta].[@numIntMtz]">
|
|
<Property Name="IsOutput" Value="True" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="197" />
|
|
<Property Name="Length" Value="1162" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="
/*************************************
* STORED PROCEDURE sp_insRichiesta
* 	Inserisce nuova richiesta di intervento
*
* modif.:	S.E.L. - 2009.02.20
**************************************/
CREATE PROCEDURE sp_insRichiesta
(
	@richiesta datetime,
	@dataLav datetime,
	@turnoLav int,
	@matr varchar(10),
	@guasto datetime,
	@idxAmbito int,
	@idxPriorita int,
	@isFermo bit,
	@idxTipo int,
	@idxImpianto int,
	@idxMacchina int,
	@descrizione varchar(2500),
	@idxCausale int,
	@scheduled bit,
	@numIntMtz int output
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[sp_procStatEv]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
-- chiamo la query di update, che cerca una riga nella tab transizioni x lo stato e l'evento richiesti e se li trova esegue update del ciclo...
|
|
|
|
DECLARE @currIdxStato AS INT
|
|
DECLARE @procedere AS INT
|
|
|
|
BEGIN TRAN
|
|
-- calcolo stato corrente del ciclo...
|
|
SET @currIdxStato = ISNULL((SELECT idxStato
|
|
FROM InterventiMtz
|
|
WHERE (numIntMtz = @numIntMtz)),0)
|
|
|
|
-- cerco transizione da stato ed evento associati...
|
|
SET @procedere = ISNULL((SELECT COUNT(*) FROM Tra_Ev2Stati WHERE idxEvento=@idxEvento AND idxStato=@currIdxStato),0)
|
|
|
|
-- se trovo eseguo transizione...
|
|
IF(@procedere >0)
|
|
BEGIN
|
|
UPDATE InterventiMtz
|
|
SET idxStato = Tra_Ev2Stati.nextIdxStato
|
|
FROM InterventiMtz INNER JOIN
|
|
Tra_Ev2Stati ON InterventiMtz.idxStato = Tra_Ev2Stati.idxStato
|
|
WHERE (InterventiMtz.numIntMtz = @numIntMtz) AND (Tra_Ev2Stati.idxEvento = @idxEvento)
|
|
END
|
|
|
|
COMMIT TRAN
|
|
|
|
-- calcolo lo stato nuovo...
|
|
SET @idxStatoNew = ISNULL((SELECT idxStato
|
|
FROM InterventiMtz
|
|
WHERE (numIntMtz = @numIntMtz)),0)
|
|
|
|
RETURN (@idxStatoNew)]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxStato]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[numIntMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[sp_procStatEv].[@numIntMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Tra_Ev2Stati]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Tra_Ev2Stati].[idxEvento]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[sp_procStatEv].[@idxEvento]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Tra_Ev2Stati].[idxStato]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Tra_Ev2Stati]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxStato]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Tra_Ev2Stati].[idxStato]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxStato]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Tra_Ev2Stati].[nextIdxStato]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[numIntMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Tra_Ev2Stati].[idxEvento]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[sp_procStatEv].[@idxStatoNew]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[sp_procStatEv].[@numIntMtz]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[sp_procStatEv].[@idxEvento]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[sp_procStatEv].[@idxStatoNew]">
|
|
<Property Name="IsOutput" Value="True" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="249" />
|
|
<Property Name="Length" Value="1547" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="/*************************************
* STORED PROCEDURE sp_procStatEv
* 	esegue la chiamata d processing x stati in base all'attuale stato ed all'evento associato
*
* modif.:	S.E.L.
* il:		2009.01.22
**************************************/
CREATE PROCEDURE sp_procStatEv
(
	@numIntMtz INT,
	@idxEvento INT,
	@idxStatoNew INT OUTPUT
)

AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[sp_setPresaInCarico]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
|
|
BEGIN tran
|
|
-- inserisco data presa in carico
|
|
UPDATE InterventiMtz
|
|
SET presaInCarico = GETDATE()
|
|
WHERE (numIntMtz = @numIntMtz)
|
|
|
|
-- aggiorno da machcian a stati...
|
|
exec sp_procStatEv @numIntMtz, 1, @idxStatoNew
|
|
COMMIT tran
|
|
|
|
RETURN (@idxStatoNew)]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[presaInCarico]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[numIntMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[sp_setPresaInCarico].[@numIntMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[sp_procStatEv]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[sp_setPresaInCarico].[@idxStatoNew]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[sp_setPresaInCarico].[@numIntMtz]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[sp_setPresaInCarico].[@idxStatoNew]">
|
|
<Property Name="IsOutput" Value="True" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="232" />
|
|
<Property Name="Length" Value="610" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="/*************************************
* STORED PROCEDURE sp_setPresaInCarico
* 	indica la richiesta come presa in carico con data/ora attuale del server
*
* modif.:	S.E.L. - 2009.01.22
**************************************/
CREATE PROCEDURE dbo.sp_setPresaInCarico
(
	@numIntMtz INT,
	@idxStatoNew INT OUTPUT
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[sp_spostaMacchina]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
|
|
UPDATE AnagMacchine
|
|
SET idxImpianto = @idxImpiantoTo
|
|
WHERE (idxMacchina = @idxMacchina)
|
|
|
|
RETURN]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[idxImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[sp_spostaMacchina].[@idxImpiantoTo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[sp_spostaMacchina].[@idxMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[sp_spostaMacchina].[@idxMacchina]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[sp_spostaMacchina].[@idxImpiantoTo]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="198" />
|
|
<Property Name="Length" Value="411" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="/*************************************
* STORED PROCEDURE sp_spostaMacchina
* 	Sposta la macchina all'impianto indicato
*
* modif.:	S.E.L. - 2009.01.14
**************************************/
CREATE PROCEDURE dbo.sp_spostaMacchina
(
	@idxMacchina int,
	@idxImpiantoTo int
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[sp_updateIntervento]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
|
|
UPDATE InterventiMtz
|
|
SET inizioIntervento = @inizioIntervento, fineIntervento = @fineIntervento, descrizioneIntervento = @descrizioneIntervento, isPreventivabile = @isPreventivabile, idxStato = @idxStato
|
|
WHERE (numIntMtz = @Original_numIntMtz)
|
|
|
|
RETURN]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[inizioIntervento]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[sp_updateIntervento].[@inizioIntervento]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[fineIntervento]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[sp_updateIntervento].[@fineIntervento]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[descrizioneIntervento]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[sp_updateIntervento].[@descrizioneIntervento]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[isPreventivabile]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[sp_updateIntervento].[@isPreventivabile]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxStato]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[sp_updateIntervento].[@idxStato]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[numIntMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[sp_updateIntervento].[@Original_numIntMtz]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[sp_updateIntervento].[@Original_numIntMtz]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[sp_updateIntervento].[@idxStato]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[sp_updateIntervento].[@inizioIntervento]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[sp_updateIntervento].[@fineIntervento]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[sp_updateIntervento].[@isPreventivabile]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[bit]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[sp_updateIntervento].[@descrizioneIntervento]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="2500" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="220" />
|
|
<Property Name="Length" Value="716" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="/*************************************
* STORED PROCEDURE sp_updateIntervento
* 	aggiorna i dati dell'intervento compilati dalla manutenzione
*
* modif.:	S.E.L. - 2009.01.28
**************************************/
CREATE PROCEDURE dbo.sp_updateIntervento
(
	@Original_numIntMtz INT,
	@idxStato INT,
	@inizioIntervento DATETIME,
	@fineIntervento DATETIME,
	@isPreventivabile BIT,
	@descrizioneIntervento NVARCHAR(2500)
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[sp_updateInterventoFull]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
|
|
UPDATE InterventiMtz
|
|
SET inizioIntervento = @inizioIntervento, fineIntervento = @fineIntervento, descrizioneIntervento = @descrizioneIntervento, isPreventivabile = @isPreventivabile,
|
|
idxStato = @idxStato, matr = @matr, guasto = @guasto, idxAmbito = @idxAmbito, idxPriorita = @idxPriorita, isFermo = @isFermo, idxTipo = @idxTipo,
|
|
idxImpianto = @idxImpianto, idxMacchina = @idxMacchina, descrizione = @descrizione, presaInCarico = @presaInCarico, idxCausale = @idxCausale
|
|
WHERE (numIntMtz = @Original_numIntMtz)
|
|
|
|
RETURN]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[inizioIntervento]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[sp_updateInterventoFull].[@inizioIntervento]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[fineIntervento]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[sp_updateInterventoFull].[@fineIntervento]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[descrizioneIntervento]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[sp_updateInterventoFull].[@descrizioneIntervento]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[isPreventivabile]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[sp_updateInterventoFull].[@isPreventivabile]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxStato]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[sp_updateInterventoFull].[@idxStato]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[matr]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[sp_updateInterventoFull].[@matr]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[guasto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[sp_updateInterventoFull].[@guasto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxAmbito]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[sp_updateInterventoFull].[@idxAmbito]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxPriorita]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[sp_updateInterventoFull].[@idxPriorita]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[isFermo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[sp_updateInterventoFull].[@isFermo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxTipo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[sp_updateInterventoFull].[@idxTipo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[sp_updateInterventoFull].[@idxImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[sp_updateInterventoFull].[@idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[descrizione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[sp_updateInterventoFull].[@descrizione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[presaInCarico]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[sp_updateInterventoFull].[@presaInCarico]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxCausale]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[sp_updateInterventoFull].[@idxCausale]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[numIntMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[sp_updateInterventoFull].[@Original_numIntMtz]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[sp_updateInterventoFull].[@Original_numIntMtz]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[sp_updateInterventoFull].[@idxStato]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[sp_updateInterventoFull].[@inizioIntervento]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[sp_updateInterventoFull].[@fineIntervento]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[sp_updateInterventoFull].[@isPreventivabile]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[bit]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[sp_updateInterventoFull].[@descrizioneIntervento]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="2500" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[sp_updateInterventoFull].[@matr]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[sp_updateInterventoFull].[@guasto]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[sp_updateInterventoFull].[@isFermo]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[bit]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[sp_updateInterventoFull].[@idxImpianto]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[sp_updateInterventoFull].[@idxMacchina]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[sp_updateInterventoFull].[@idxAmbito]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[sp_updateInterventoFull].[@idxPriorita]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[sp_updateInterventoFull].[@descrizione]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="2500" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[sp_updateInterventoFull].[@idxTipo]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[sp_updateInterventoFull].[@idxCausale]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[sp_updateInterventoFull].[@presaInCarico]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="201" />
|
|
<Property Name="Length" Value="1240" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="/*************************************
* STORED PROCEDURE sp_updateInterventoFull
* 	aggiorna TUTTI i dati dell'intervento
*
* modif.:	S.E.L. - 2009.02.20
**************************************/
CREATE PROCEDURE sp_updateInterventoFull
(
	@Original_numIntMtz INT,
	@idxStato INT,
	@inizioIntervento DATETIME,
	@fineIntervento DATETIME,
	@isPreventivabile BIT,
	@descrizioneIntervento NVARCHAR(2500),
	@matr NVARCHAR(50),
	@guasto DATETIME,
	@isFermo BIT,
	@idxImpianto INT,
	@idxMacchina INT,
	@idxAmbito INT,
	@idxPriorita INT,
	@descrizione NVARCHAR(2500),
	@idxTipo INT,
	@idxCausale int,
	@presaInCarico DATETIME
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[spt_AD_delete]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
|
|
BEGIN tran
|
|
|
|
|
|
DECLARE @trovati INT = 0
|
|
-- controllo se ha eventi associati ...
|
|
SELECT @trovati = @trovati + ISNULL(COUNT(*),0) FROM InterventiMtz WHERE idxMacchina = @Original_idxMacchina
|
|
-- controllo se ha eventi schedulati ...
|
|
SELECT @trovati = @trovati + ISNULL(COUNT(*),0) FROM MtzProgPending WHERE idxMacchina = @Original_idxMacchina
|
|
|
|
-- elimino solo se ZERO elementia ssociati..
|
|
|
|
IF (@trovati = 0)
|
|
BEGIN
|
|
|
|
DELETE
|
|
FROM Macchine2FamMacchine
|
|
WHERE idxMacchina = @Original_idxMacchina
|
|
|
|
DELETE
|
|
FROM AnagMacchine
|
|
WHERE idxMacchina = @Original_idxMacchina
|
|
|
|
END
|
|
|
|
|
|
COMMIT tran
|
|
|
|
RETURN]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[spt_AD_delete].[@Original_idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgPending]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgPending].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Macchine2FamMacchine]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Macchine2FamMacchine].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[idxMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[spt_AD_delete].[@Original_idxMacchina]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="238" />
|
|
<Property Name="Length" Value="958" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="/*************************************
* STORED PROCEDURE spt_AD_delete
* 	elimina la macchina (da famiglia macchina e anagMacchina) SE non ah record associati
*
* modif.:	S.E.L. - 2013.12.06
**************************************/
CREATE PROCEDURE spt_AD_delete
(
	@Original_idxMacchina int
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_AM_getByTag]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
|
|
BEGIN tran
|
|
SET NOCOUNT ON;
|
|
|
|
-- Insert statements for procedure here
|
|
SELECT am.*
|
|
FROM AnagMacchine am
|
|
INNER JOIN Tag2Macc t2m ON t2m.idxMacchina = am.idxMacchina
|
|
WHERE t2m.TagCode=@TagCode
|
|
|
|
COMMIT tran]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Tag2Macc]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Tag2Macc].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Tag2Macc].[TagCode]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_AM_getByTag].[@TagCode]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_AM_getByTag].[@TagCode]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="175" />
|
|
<Property Name="Length" Value="483" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="-- =============================================
-- Author:	 S.E.L.
-- Create date: 2015.11.24
-- Description: Recupero 
-- =============================================
CREATE PROCEDURE stp_AM_getByTag
(
	@TagCode NVARCHAR(50)
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_AnItems_getByTag]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
|
|
SET NOCOUNT ON;
|
|
|
|
SELECT ai.*
|
|
FROM AnagItems ai
|
|
INNER JOIN Tag2Item t2i ON ai.idxItem=t2i.idxItem
|
|
WHERE t2i.TagCode = @TagCode]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Tag2Item]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[idxItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Tag2Item].[idxItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Tag2Item].[TagCode]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_AnItems_getByTag].[@TagCode]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_AnItems_getByTag].[@TagCode]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="196" />
|
|
<Property Name="Length" Value="411" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="/*************************************
* STORED PROCEDURE stp_AnItems_getByTag
*
* tag - items da tag
*
* mod : 24/11/2015	
* aut : S.E. Locatelli
**************************************/
CREATE PROCEDURE stp_AnItems_getByTag
(
	@TagCode nvarchar(50)
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_AnLoc_deleteQuery]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
SET NOCOUNT OFF;
|
|
DELETE FROM [dbo].[AnagLocazioni] WHERE (([CodLocazione] = @Original_CodLocazione))]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagLocazioni]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagLocazioni].[CodLocazione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_AnLoc_deleteQuery].[@Original_CodLocazione]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_AnLoc_deleteQuery].[@Original_CodLocazione]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="Length" Value="196" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="CREATE PROCEDURE [dbo].stp_AnLoc_deleteQuery
(
	@Original_CodLocazione nvarchar(50)
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_AnLoc_insertQuery]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
SET NOCOUNT OFF;
|
|
INSERT INTO [dbo].[AnagLocazioni] ([CodLocazione], [Descrizione]) VALUES (@CodLocazione, @Descrizione)]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagLocazioni]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagLocazioni].[CodLocazione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagLocazioni].[Descrizione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_AnLoc_insertQuery].[@CodLocazione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_AnLoc_insertQuery].[@Descrizione]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_AnLoc_insertQuery].[@CodLocazione]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_AnLoc_insertQuery].[@Descrizione]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="196" />
|
|
<Property Name="Length" Value="433" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="/*************************************
* STORED PROCEDURE stp_AnLoc_insertQuery
*
* inserisce record 
*
* mod : 19/11/2015	
* aut : S.E. Locatelli
**************************************/
CREATE PROCEDURE [dbo].[stp_AnLoc_insertQuery]
(
	@CodLocazione nvarchar(50),
	@Descrizione nvarchar(50)
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_AnLoc_updateQuery]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
SET NOCOUNT OFF;
|
|
UPDATE [dbo].[AnagLocazioni] SET [CodLocazione] = @CodLocazione, [Descrizione] = @Descrizione WHERE (([CodLocazione] = @Original_CodLocazione))]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagLocazioni]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagLocazioni].[CodLocazione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_AnLoc_updateQuery].[@CodLocazione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagLocazioni].[Descrizione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_AnLoc_updateQuery].[@Descrizione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_AnLoc_updateQuery].[@Original_CodLocazione]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_AnLoc_updateQuery].[@CodLocazione]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_AnLoc_updateQuery].[@Descrizione]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_AnLoc_updateQuery].[@Original_CodLocazione]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="193" />
|
|
<Property Name="Length" Value="510" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="/*************************************
* STORED PROCEDURE stp_AnLoc_updateQuery
*
* update record 
*
* mod : 19/11/2015	
* aut : S.E. Locatelli
**************************************/
CREATE PROCEDURE [dbo].[stp_AnLoc_updateQuery]
(
	@CodLocazione nvarchar(50),
	@Descrizione nvarchar(50),
	@Original_CodLocazione nvarchar(50)
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_AnTag_avail4Item]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
SET NOCOUNT OFF;
|
|
BEGIN tran
|
|
|
|
SELECT at.*
|
|
FROM AnagTags at
|
|
WHERE TagCode NOT IN
|
|
(
|
|
SELECT TagCode
|
|
FROM Tag2Item t2i
|
|
WHERE t2i.idxItem = @idxItem
|
|
)
|
|
|
|
COMMIT tran]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTags]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTags].[TagCode]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Tag2Item]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Tag2Item].[TagCode]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Tag2Item].[idxItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_AnTag_avail4Item].[@idxItem]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_AnTag_avail4Item].[@idxItem]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="223" />
|
|
<Property Name="Length" Value="498" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="/*************************************
* STORED PROCEDURE stp_AnTag_avail4Item
*
* elenco tags x item (non assegnati di già...) 
*
* mod : 23/11/2015	
* aut : S.E. Locatelli
**************************************/
CREATE PROCEDURE stp_AnTag_avail4Item (
	 @idxItem	 INT
	)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_AnTag_deleteQuery]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
SET NOCOUNT OFF;
|
|
|
|
BEGIN tran
|
|
|
|
-- elimino connessione a item
|
|
DELETE
|
|
FROM Tag2Item
|
|
WHERE TagCode = @Original_TagCode
|
|
|
|
-- elimino connessione a macchine
|
|
DELETE
|
|
FROM Tag2Macc
|
|
WHERE TagCode = @Original_TagCode
|
|
|
|
-- elimino connessione sinonimi
|
|
DELETE
|
|
FROM SinonimiTag
|
|
WHERE TagCode = @Original_TagCode
|
|
OR TagCodeOrig = @Original_TagCode
|
|
|
|
-- elimino tag
|
|
DELETE
|
|
FROM AnagTags
|
|
WHERE TagCode = @Original_TagCode
|
|
|
|
COMMIT tran]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[Tag2Item]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Tag2Item].[TagCode]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_AnTag_deleteQuery].[@Original_TagCode]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Tag2Macc]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Tag2Macc].[TagCode]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[SinonimiTag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[SinonimiTag].[TagCode]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[SinonimiTag].[TagCodeOrig]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTags]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTags].[TagCode]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_AnTag_deleteQuery].[@Original_TagCode]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="194" />
|
|
<Property Name="Length" Value="829" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="/*************************************
* STORED PROCEDURE stp_AnTag_deleteQuery
*
* elimina record 
*
* mod : 19/11/2015	
* aut : S.E. Locatelli
**************************************/
CREATE PROCEDURE [dbo].[stp_AnTag_deleteQuery]
(
	@Original_TagCode nvarchar(50)
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_AnTag_getByKey]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
SET NOCOUNT OFF;
|
|
|
|
-- aggiorno VERO tag...
|
|
SELECT *
|
|
FROM AnagTags
|
|
WHERE TagCode = @TagCode]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTags]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTags].[TagCode]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_AnTag_getByKey].[@TagCode]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_AnTag_getByKey].[@TagCode]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="200" />
|
|
<Property Name="Length" Value="371" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="
/*************************************
* STORED PROCEDURE stp_AnTag_getByKey
*
* recupero record da key
*
* mod : 26/11/2015	
* aut : S.E. Locatelli
**************************************/
CREATE PROCEDURE stp_AnTag_getByKey (
	 @TagCode NVARCHAR(50)
	)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_AnTag_insertQuery]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
SET NOCOUNT OFF;
|
|
|
|
BEGIN tran
|
|
-- inserisco etichette
|
|
INSERT INTO AnagTags (TagCode,Class,TagDescr)
|
|
VALUES (@TagCode,@Class,@TagDescr)
|
|
|
|
--inserisco sinonimo "loop" sul termine
|
|
INSERT INTO SinonimiTag(TagCodeOrig, TagCode)
|
|
VALUES (@TagCode, @TagCode)
|
|
|
|
COMMIT tran]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTags]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTags].[TagCode]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTags].[Class]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTags].[TagDescr]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_AnTag_insertQuery].[@TagCode]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_AnTag_insertQuery].[@Class]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_AnTag_insertQuery].[@TagDescr]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[SinonimiTag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[SinonimiTag].[TagCodeOrig]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[SinonimiTag].[TagCode]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_AnTag_insertQuery].[@TagCode]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_AnTag_insertQuery].[@Class]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_AnTag_insertQuery].[@TagDescr]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="198" />
|
|
<Property Name="Length" Value="624" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="
/*************************************
* STORED PROCEDURE stp_AnTag_insertQuery
*
* inserisce record 
*
* mod : 19/11/2015	
* aut : S.E. Locatelli
**************************************/
CREATE PROCEDURE [dbo].[stp_AnTag_insertQuery] (
	@TagCode NVARCHAR(50)
	,@Class NVARCHAR(50)
	,@TagDescr NVARCHAR(50)
	)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_AnTag_updateQuery]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
SET NOCOUNT OFF;
|
|
BEGIN tran
|
|
-- per sicurezza se nulli i valori li rendo vuoti...
|
|
SELECT @TagCode = ISNULL(@TagCode, @Original_TagCode)
|
|
SELECT @Class = ISNULL(@Class, '')
|
|
SELECT @TagDescr = ISNULL(@TagDescr, '')
|
|
|
|
-- aggiorno "in cascata" la ricodifica dei tags SE modificato tag...
|
|
IF(@TagCode <> @Original_TagCode)
|
|
BEGIN
|
|
-- aggiorno DESTINAZIONI
|
|
UPDATE SinonimiTag
|
|
SET TagCode = @TagCode
|
|
WHERE TagCode = @Original_TagCode
|
|
|
|
-- aggiorno ORIGINI
|
|
UPDATE SinonimiTag
|
|
SET TagCodeOrig = @TagCode
|
|
WHERE TagCodeOrig = @Original_TagCode
|
|
END
|
|
|
|
-- aggiorno VERO tag...
|
|
UPDATE AnagTags
|
|
SET TagCode = @TagCode
|
|
,Class = @Class
|
|
,TagDescr = @TagDescr
|
|
WHERE TagCode = @Original_TagCode
|
|
|
|
COMMIT tran]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_AnTag_updateQuery].[@TagCode]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_AnTag_updateQuery].[@Original_TagCode]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_AnTag_updateQuery].[@Class]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_AnTag_updateQuery].[@TagDescr]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[SinonimiTag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[SinonimiTag].[TagCode]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[SinonimiTag].[TagCodeOrig]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTags]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTags].[TagCode]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTags].[Class]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTags].[TagDescr]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_AnTag_updateQuery].[@TagCode]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_AnTag_updateQuery].[@Class]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_AnTag_updateQuery].[@TagDescr]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_AnTag_updateQuery].[@Original_TagCode]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="195" />
|
|
<Property Name="Length" Value="1175" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="
/*************************************
* STORED PROCEDURE stp_AnTag_updateQuery
*
* update record 
*
* mod : 19/11/2015	
* aut : S.E. Locatelli
**************************************/
CREATE PROCEDURE [dbo].[stp_AnTag_updateQuery] (
	 @TagCode NVARCHAR(50)
	,@Class NVARCHAR(50)
	,@TagDescr NVARCHAR(50)
	,@Original_TagCode NVARCHAR(50)
	)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_ATR_delete]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
|
|
DELETE
|
|
FROM AnagTipoRisorsa
|
|
WHERE CodRisorsa = @Original_CodRisorsa
|
|
|
|
RETURN]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoRisorsa]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoRisorsa].[CodRisorsa]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_ATR_delete].[@Original_CodRisorsa]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_ATR_delete].[@Original_CodRisorsa]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="10" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="210" />
|
|
<Property Name="Length" Value="372" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="/*************************************
* STORED PROCEDURE stp_ATR_delete
*
* elimina record anagrafica tipo risorse
*
* mod : 17/03/2015	
* aut : S.E. Locatelli
**************************************/
CREATE PROCEDURE stp_ATR_delete
(
	@Original_CodRisorsa	NVARCHAR(10)
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_ATR_insert]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
|
|
INSERT INTO AnagTipoRisorsa (CodRisorsa, UM, DescrRisorsa, Valuta)
|
|
VALUES (@CodRisorsa, @UM, @DescrRisorsa, @Valuta)
|
|
|
|
|
|
RETURN]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoRisorsa]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoRisorsa].[CodRisorsa]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoRisorsa].[UM]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoRisorsa].[DescrRisorsa]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoRisorsa].[Valuta]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_ATR_insert].[@CodRisorsa]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_ATR_insert].[@UM]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_ATR_insert].[@DescrRisorsa]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_ATR_insert].[@Valuta]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_ATR_insert].[@CodRisorsa]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="10" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_ATR_insert].[@UM]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="10" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_ATR_insert].[@DescrRisorsa]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_ATR_insert].[@Valuta]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="5" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="207" />
|
|
<Property Name="Length" Value="487" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="/*************************************
* STORED PROCEDURE stp_ATR_insert
*
* crea record anagrafica tipo risorse
*
* mod : 17/03/2015	
* aut : S.E. Locatelli
**************************************/
CREATE PROCEDURE stp_ATR_insert
(
	@CodRisorsa		NVARCHAR(10),
	@UM				NVARCHAR(10),
	@DescrRisorsa	NVARCHAR(50),
	@Valuta			NVARCHAR(5)
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_ATR_update]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
|
|
UPDATE AnagTipoRisorsa
|
|
SET CodRisorsa = @CodRisorsa
|
|
, UM = @UM
|
|
, DescrRisorsa = @DescrRisorsa
|
|
, Valuta = @Valuta
|
|
WHERE CodRisorsa = @Original_CodRisorsa
|
|
|
|
RETURN]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoRisorsa]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoRisorsa].[CodRisorsa]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_ATR_update].[@CodRisorsa]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoRisorsa].[UM]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_ATR_update].[@UM]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoRisorsa].[DescrRisorsa]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_ATR_update].[@DescrRisorsa]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoRisorsa].[Valuta]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_ATR_update].[@Valuta]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_ATR_update].[@Original_CodRisorsa]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_ATR_update].[@Original_CodRisorsa]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="10" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_ATR_update].[@CodRisorsa]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="10" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_ATR_update].[@UM]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="10" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_ATR_update].[@DescrRisorsa]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_ATR_update].[@Valuta]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="5" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="211" />
|
|
<Property Name="Length" Value="595" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="/*************************************
* STORED PROCEDURE stp_ATR_update
*
* aggiorna record anagrafica tipo risorse
*
* mod : 17/03/2015	
* aut : S.E. Locatelli
**************************************/
CREATE PROCEDURE stp_ATR_update
(
	@Original_CodRisorsa	NVARCHAR(10),
	@CodRisorsa				NVARCHAR(10),
	@UM						NVARCHAR(10),
	@DescrRisorsa			NVARCHAR(50),
	@Valuta			NVARCHAR(5)
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_elencoIntByIntervDate]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
|
|
SELECT codImpianto, codMacchina, descrCausale, descrizione, descrizioneIntervento, durataMtz, durataOff, fineIntervento, guasto, idxImpianto, idxMacchina, idxStato,
|
|
inizioIntervento, minErogati, nomeImpianto, nomeMacchina, numIntMtz, richiesta, isFermo, scheduled
|
|
FROM v_elencoIntervFilt
|
|
WHERE (richiesta BETWEEN @inizio AND @fine)
|
|
|
|
RETURN]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[codImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[codMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[descrCausale]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[descrizione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[descrizioneIntervento]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[durataMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[durataOff]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[fineIntervento]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[guasto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[idxImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[idxStato]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[inizioIntervento]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[minErogati]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[nomeImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[nomeMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[numIntMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[richiesta]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[isFermo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[scheduled]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_elencoIntByIntervDate].[@inizio]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_elencoIntByIntervDate].[@fine]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_elencoIntByIntervDate].[@inizio]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_elencoIntByIntervDate].[@fine]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="238" />
|
|
<Property Name="Length" Value="730" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="
/*************************************
* STORED PROCEDURE stp_elencoIntByIntervDate
* 	Recupera elenco interventi a partire dalle date inizio/fine di ricerca
*
* modif.:	S.E.L. - 2010.01.25
**************************************/
create PROCEDURE stp_elencoIntByIntervDate
(
	@inizio DATETIME,
	@fine DATETIME
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_elencoIntByIntervDateUserFilt]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
|
|
SELECT v_elencoIntervFilt.codImpianto, v_elencoIntervFilt.codMacchina, v_elencoIntervFilt.descrCausale, v_elencoIntervFilt.descrizione,
|
|
v_elencoIntervFilt.descrizioneIntervento, v_elencoIntervFilt.durataMtz, v_elencoIntervFilt.durataOff, v_elencoIntervFilt.fineIntervento, v_elencoIntervFilt.guasto,
|
|
v_elencoIntervFilt.idxImpianto, v_elencoIntervFilt.idxMacchina, v_elencoIntervFilt.idxStato, v_elencoIntervFilt.inizioIntervento, v_elencoIntervFilt.minErogati,
|
|
v_elencoIntervFilt.nomeImpianto, v_elencoIntervFilt.nomeMacchina, v_elencoIntervFilt.numIntMtz, v_elencoIntervFilt.richiesta, v_elencoIntervFilt.isFermo,
|
|
v_elencoIntervFilt.scheduled
|
|
FROM v_elencoIntervFilt INNER JOIN
|
|
FiltroImpianti ON v_elencoIntervFilt.idxImpianto = FiltroImpianti.idxImpianto INNER JOIN
|
|
FiltroMacchine ON v_elencoIntervFilt.idxMacchina = FiltroMacchine.idxMacchina INNER JOIN
|
|
FiltroStati ON v_elencoIntervFilt.idxStato = FiltroStati.idxStato
|
|
WHERE (v_elencoIntervFilt.richiesta BETWEEN @inizio AND @fine) AND (FiltroStati.username = @username) AND (FiltroMacchine.username = @username) AND
|
|
(FiltroImpianti.username = @username)
|
|
|
|
|
|
RETURN]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroImpianti]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[idxImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroImpianti].[idxImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroMacchine]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroMacchine].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroStati]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[idxStato]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroStati].[idxStato]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[codImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[codMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[descrCausale]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[descrizione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[descrizioneIntervento]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[durataMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[durataOff]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[fineIntervento]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[guasto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[idxImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[inizioIntervento]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[minErogati]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[nomeImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[nomeMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[numIntMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[richiesta]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[isFermo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[scheduled]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_elencoIntByIntervDateUserFilt].[@inizio]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_elencoIntByIntervDateUserFilt].[@fine]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroStati].[username]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_elencoIntByIntervDateUserFilt].[@username]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroMacchine].[username]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroImpianti].[username]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_elencoIntByIntervDateUserFilt].[@inizio]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_elencoIntByIntervDateUserFilt].[@fine]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_elencoIntByIntervDateUserFilt].[@username]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[varchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="302" />
|
|
<Property Name="Length" Value="1799" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="
/*************************************
* STORED PROCEDURE stp_elencoIntByIntervDateUserFilt
* 	Recupera elenco interventi a partire dalle date inizio/fine di ricerca e dall'username ed i relativi filtri di ricerca salvati
*
* modif.:	S.E.L. - 2010.01.25
**************************************/
create PROCEDURE stp_elencoIntByIntervDateUserFilt
(
	@inizio DATETIME,
	@fine DATETIME,
	@username VARCHAR(50)
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_elencoIntByIntervDateUserFilt_fermaPrev]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
|
|
SELECT v_elencoIntervFilt.codImpianto, v_elencoIntervFilt.codMacchina, v_elencoIntervFilt.descrCausale, v_elencoIntervFilt.descrizione,
|
|
v_elencoIntervFilt.descrizioneIntervento, v_elencoIntervFilt.durataMtz, v_elencoIntervFilt.durataOff, v_elencoIntervFilt.fineIntervento,
|
|
v_elencoIntervFilt.guasto, v_elencoIntervFilt.idxImpianto, v_elencoIntervFilt.idxMacchina, v_elencoIntervFilt.idxStato,
|
|
v_elencoIntervFilt.inizioIntervento, v_elencoIntervFilt.minErogati, v_elencoIntervFilt.nomeImpianto, v_elencoIntervFilt.nomeMacchina,
|
|
v_elencoIntervFilt.numIntMtz, v_elencoIntervFilt.richiesta, v_elencoIntervFilt.isFermo, v_elencoIntervFilt.scheduled
|
|
FROM v_elencoIntervFilt INNER JOIN
|
|
FiltroImpianti ON v_elencoIntervFilt.idxImpianto = FiltroImpianti.idxImpianto INNER JOIN
|
|
FiltroMacchine ON v_elencoIntervFilt.idxMacchina = FiltroMacchine.idxMacchina INNER JOIN
|
|
FiltroStati ON v_elencoIntervFilt.idxStato = FiltroStati.idxStato
|
|
WHERE (v_elencoIntervFilt.richiesta BETWEEN @inizio AND @fine) AND (FiltroStati.username = @username)
|
|
AND (FiltroMacchine.username = @username) AND (FiltroImpianti.username = @username)
|
|
AND (v_elencoIntervFilt.isFermo = case @soloMaccFerma when 1 then 1 else v_elencoIntervFilt.isFermo end)
|
|
AND (v_elencoIntervFilt.scheduled = case @includiPreventiva when 0 then 0 else v_elencoIntervFilt.scheduled end)
|
|
|
|
RETURN]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroImpianti]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[idxImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroImpianti].[idxImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroMacchine]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroMacchine].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroStati]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[idxStato]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroStati].[idxStato]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[codImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[codMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[descrCausale]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[descrizione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[descrizioneIntervento]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[durataMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[durataOff]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[fineIntervento]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[guasto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[idxImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[inizioIntervento]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[minErogati]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[nomeImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[nomeMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[numIntMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[richiesta]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[isFermo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[scheduled]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_elencoIntByIntervDateUserFilt_fermaPrev].[@inizio]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_elencoIntByIntervDateUserFilt_fermaPrev].[@fine]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroStati].[username]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_elencoIntByIntervDateUserFilt_fermaPrev].[@username]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroMacchine].[username]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroImpianti].[username]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_elencoIntByIntervDateUserFilt_fermaPrev].[@soloMaccFerma]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_elencoIntByIntervDateUserFilt_fermaPrev].[@includiPreventiva]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_elencoIntByIntervDateUserFilt_fermaPrev].[@inizio]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_elencoIntByIntervDateUserFilt_fermaPrev].[@fine]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_elencoIntByIntervDateUserFilt_fermaPrev].[@username]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[varchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_elencoIntByIntervDateUserFilt_fermaPrev].[@soloMaccFerma]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[bit]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_elencoIntByIntervDateUserFilt_fermaPrev].[@includiPreventiva]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[bit]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="373" />
|
|
<Property Name="Length" Value="1984" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="
/*************************************
* STORED PROCEDURE stp_elencoIntByIntervDateUserFilt
* 	Recupera elenco interventi a partire dalle date inizio/fine di ricerca e dall'username ed i relativi filtri di ricerca salvati 
* e con rispetto filtro x int a macchian ferma o di mtz preventiva
*
* modif.:	S.E.L. - 2010.01.25
**************************************/
create PROCEDURE stp_elencoIntByIntervDateUserFilt_fermaPrev
(
	@inizio DATETIME,
	@fine DATETIME,
	@username VARCHAR(50),
	@soloMaccFerma BIT,
	@includiPreventiva BIT
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_elencoIntByIntervDateUserFiltExtended]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
|
|
SELECT
|
|
IntervFilt.codImpianto
|
|
,IntervFilt.codMacchina
|
|
,IntervFilt.descrCausale
|
|
,IntervFilt.descrizione
|
|
,IntervFilt.descrizioneIntervento
|
|
,IntervFilt.durataMtz
|
|
,IntervFilt.durataOff
|
|
,IntervFilt.fineIntervento
|
|
,IntervFilt.guasto
|
|
,IntervFilt.idxImpianto
|
|
,IntervFilt.idxMacchina
|
|
,IntervFilt.idxStato
|
|
,IntervFilt.inizioIntervento
|
|
,IntervFilt.minErogati
|
|
,IntervFilt.nomeImpianto
|
|
,IntervFilt.nomeMacchina
|
|
,IntervFilt.numIntMtz
|
|
,IntervFilt.richiesta
|
|
,IntervFilt.isFermo
|
|
,IntervFilt.scheduled
|
|
-- estraggo TOTALE importo della Risorsa MAT ( Materiali )
|
|
,( SELECT ISNULL(SUM(TotImport),0) FROM dbo.ImpiegoRisorse AS RisMAT
|
|
WHERE CodRisorsa = 'MAT' AND RisMAT.numIntMtz = IntervFilt.numIntMtz ) AS totImpMat
|
|
|
|
-- estraggo TOTALE Quantità della ORE operatori Esterni - presupposto che tutte causali con UM = ORE siano di opearori esterni
|
|
,( SELECT ISNULL(SUM(QtaRisorsa),0) FROM dbo.ImpiegoRisorse AS RisMAT
|
|
INNER JOIN dbo.AnagTipoRisorsa AS AnagRis
|
|
ON RisMAT.CodRisorsa = AnagRis.CodRisorsa
|
|
WHERE AnagRis.UM = 'MIN' AND RisMAT.numIntMtz = IntervFilt.numIntMtz ) / 60 AS totQtaHR
|
|
|
|
FROM v_elencoIntervFilt AS IntervFilt
|
|
INNER JOIN FiltroImpianti
|
|
ON IntervFilt.idxImpianto = FiltroImpianti.idxImpianto
|
|
INNER JOIN FiltroMacchine
|
|
ON IntervFilt.idxMacchina = FiltroMacchine.idxMacchina
|
|
INNER JOIN FiltroStati
|
|
ON IntervFilt.idxStato = FiltroStati.idxStato
|
|
|
|
WHERE (IntervFilt.richiesta BETWEEN @inizio AND @fine)
|
|
AND (FiltroStati.username = @username)
|
|
AND (FiltroMacchine.username = @username)
|
|
AND (FiltroImpianti.username = @username)
|
|
|
|
RETURN]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroImpianti]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[idxImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroImpianti].[idxImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroMacchine]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroMacchine].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroStati]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[idxStato]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroStati].[idxStato]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[codImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[codMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[descrCausale]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[descrizione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[descrizioneIntervento]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[durataMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[durataOff]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[fineIntervento]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[guasto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[idxImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[inizioIntervento]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[minErogati]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[nomeImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[nomeMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[numIntMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[richiesta]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[isFermo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[scheduled]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ImpiegoRisorse]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ImpiegoRisorse].[TotImport]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ImpiegoRisorse].[CodRisorsa]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ImpiegoRisorse].[numIntMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[numIntMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoRisorsa]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ImpiegoRisorse].[CodRisorsa]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoRisorsa].[CodRisorsa]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ImpiegoRisorse].[QtaRisorsa]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoRisorsa].[UM]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ImpiegoRisorse].[numIntMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[numIntMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_elencoIntByIntervDateUserFiltExtended].[@inizio]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_elencoIntByIntervDateUserFiltExtended].[@fine]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroStati].[username]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_elencoIntByIntervDateUserFiltExtended].[@username]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroMacchine].[username]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroImpianti].[username]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_elencoIntByIntervDateUserFiltExtended].[@inizio]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_elencoIntByIntervDateUserFiltExtended].[@fine]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_elencoIntByIntervDateUserFiltExtended].[@username]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[varchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="485" />
|
|
<Property Name="Length" Value="2398" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="


/*************************************
* STORED PROCEDURE stp_elencoIntByIntervDateUserFiltExtended
* 	Recupera elenco interventi a partire dalle date inizio/fine di ricerca e dall'username ed i relativi filtri di ricerca salvati
*
* Versione estesa x stampa con Totale Importo Materiali e Ore Operatori Esterni
* NOTE : Le Ore Operatori Esterni sono TUTTE quelle con UM = MIN ( minuti )
* 
* Steamware
* modif. 2015.10.29
**************************************/
CREATE PROCEDURE [dbo].[stp_elencoIntByIntervDateUserFiltExtended] 
(
 @inizio DATETIME
 ,@fine DATETIME
 ,@username VARCHAR(50)
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_elencoIntMTBF_MTTR_fermaPrev]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
|
|
|
|
-- inizio con il creare la vista che mi serve x selezionare gli interventi filtrati dall'utente (per poterli escludere-includere)
|
|
WITH ElencoInt AS (
|
|
SELECT v_elencoIntervFilt.*
|
|
FROM FiltroImpianti INNER JOIN FiltroMacchine INNER JOIN v_elencoIntervFilt INNER JOIN
|
|
FiltroStati ON v_elencoIntervFilt.idxStato = FiltroStati.idxStato ON FiltroMacchine.idxMacchina = v_elencoIntervFilt.idxMacchina
|
|
ON FiltroImpianti.idxImpianto = v_elencoIntervFilt.idxImpianto
|
|
WHERE (v_elencoIntervFilt.richiesta BETWEEN @inizio AND @fine) AND (FiltroStati.username = @username)
|
|
AND (FiltroMacchine.username = @username) AND (FiltroImpianti.username = @username)
|
|
AND (v_elencoIntervFilt.isFermo = CASE @soloMaccFerma WHEN 1 THEN 1 ELSE v_elencoIntervFilt.isFermo END)
|
|
AND (v_elencoIntervFilt.scheduled = CASE @includiPreventiva WHEN 0 THEN 0 ELSE v_elencoIntervFilt.scheduled END))
|
|
|
|
|
|
-- seleziono gli interventi DAVVERO erogati
|
|
SELECT COUNT(ElencoInt.numIntMtz) AS numInterventi, SUM(ElencoInt.durataMtz) AS totOreMtz,
|
|
SUM(ElencoInt.durataOff) AS totOreOfficina, ElencoInt.codImpianto, ElencoInt.codMacchina,
|
|
ElencoInt.nomeImpianto, ElencoInt.nomeMacchina
|
|
FROM ElencoInt
|
|
GROUP BY ElencoInt.codImpianto, ElencoInt.codMacchina, ElencoInt.nomeImpianto, ElencoInt.nomeMacchina
|
|
|
|
UNION
|
|
|
|
-- seleziono gli impianti che NON hanno ricevuto interventi ma comunque scelti dall'utente...
|
|
SELECT 0 AS numInterventi, 0 AS totOreMtz, 0 AS totOreOfficina, AnagImpianti.codImpianto, AnagMacchine.codMacchina, AnagImpianti.nomeImpianto,
|
|
AnagMacchine.nomeMacchina
|
|
FROM FiltroMacchine INNER JOIN
|
|
AnagMacchine ON FiltroMacchine.idxMacchina = AnagMacchine.idxMacchina INNER JOIN
|
|
AnagImpianti ON AnagMacchine.idxImpianto = AnagImpianti.idxImpianto LEFT OUTER JOIN
|
|
ElencoInt ON FiltroMacchine.idxMacchina = ElencoInt.idxMacchina
|
|
WHERE (ElencoInt.numIntMtz IS NULL)
|
|
GROUP BY AnagImpianti.codImpianto, AnagMacchine.codMacchina, AnagImpianti.nomeImpianto, AnagMacchine.nomeMacchina
|
|
|
|
|
|
RETURN]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroImpianti]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroMacchine]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroStati]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[idxStato]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroStati].[idxStato]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroMacchine].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroImpianti].[idxImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[idxImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[richiesta]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_elencoIntMTBF_MTTR_fermaPrev].[@inizio]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_elencoIntMTBF_MTTR_fermaPrev].[@fine]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroStati].[username]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_elencoIntMTBF_MTTR_fermaPrev].[@username]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroMacchine].[username]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroImpianti].[username]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[isFermo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_elencoIntMTBF_MTTR_fermaPrev].[@soloMaccFerma]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[scheduled]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_elencoIntMTBF_MTTR_fermaPrev].[@includiPreventiva]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[numIntMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[durataMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[durataOff]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[codImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[codMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[nomeImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[nomeMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroMacchine].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[idxImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[idxImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[FiltroMacchine].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[codImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[codMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[nomeImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[nomeMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[numIntMtz]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DynamicObjects">
|
|
<Entry>
|
|
<Element Type="SqlDynamicColumnSource" Name="[dbo].[stp_elencoIntMTBF_MTTR_fermaPrev].[CTE1].[ElencoInt]">
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_elencoIntMTBF_MTTR_fermaPrev].[CTE1].[ElencoInt].[numIntMtz]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[numIntMtz]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_elencoIntMTBF_MTTR_fermaPrev].[CTE1].[ElencoInt].[richiesta]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[richiesta]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_elencoIntMTBF_MTTR_fermaPrev].[CTE1].[ElencoInt].[codImpianto]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[codImpianto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_elencoIntMTBF_MTTR_fermaPrev].[CTE1].[ElencoInt].[nomeImpianto]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[nomeImpianto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_elencoIntMTBF_MTTR_fermaPrev].[CTE1].[ElencoInt].[codMacchina]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[codMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_elencoIntMTBF_MTTR_fermaPrev].[CTE1].[ElencoInt].[nomeMacchina]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[nomeMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_elencoIntMTBF_MTTR_fermaPrev].[CTE1].[ElencoInt].[descrizione]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[descrizione]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_elencoIntMTBF_MTTR_fermaPrev].[CTE1].[ElencoInt].[inizioIntervento]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[inizioIntervento]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_elencoIntMTBF_MTTR_fermaPrev].[CTE1].[ElencoInt].[fineIntervento]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[fineIntervento]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_elencoIntMTBF_MTTR_fermaPrev].[CTE1].[ElencoInt].[descrizioneIntervento]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[descrizioneIntervento]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_elencoIntMTBF_MTTR_fermaPrev].[CTE1].[ElencoInt].[descrCausale]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[descrCausale]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_elencoIntMTBF_MTTR_fermaPrev].[CTE1].[ElencoInt].[minErogati]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[minErogati]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_elencoIntMTBF_MTTR_fermaPrev].[CTE1].[ElencoInt].[durataMtz]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[durataMtz]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_elencoIntMTBF_MTTR_fermaPrev].[CTE1].[ElencoInt].[durataOff]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[durataOff]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_elencoIntMTBF_MTTR_fermaPrev].[CTE1].[ElencoInt].[guasto]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[guasto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_elencoIntMTBF_MTTR_fermaPrev].[CTE1].[ElencoInt].[idxStato]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[idxStato]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_elencoIntMTBF_MTTR_fermaPrev].[CTE1].[ElencoInt].[idxImpianto]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[idxImpianto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_elencoIntMTBF_MTTR_fermaPrev].[CTE1].[ElencoInt].[idxMacchina]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[idxMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_elencoIntMTBF_MTTR_fermaPrev].[CTE1].[ElencoInt].[isFermo]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[isFermo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_elencoIntMTBF_MTTR_fermaPrev].[CTE1].[ElencoInt].[scheduled]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[scheduled]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_elencoIntMTBF_MTTR_fermaPrev].[@inizio]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_elencoIntMTBF_MTTR_fermaPrev].[@fine]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_elencoIntMTBF_MTTR_fermaPrev].[@username]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="100" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[varchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_elencoIntMTBF_MTTR_fermaPrev].[@soloMaccFerma]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[bit]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_elencoIntMTBF_MTTR_fermaPrev].[@includiPreventiva]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[bit]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="345" />
|
|
<Property Name="Length" Value="2703" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="
/*************************************
* STORED PROCEDURE stp_elencoIntMTBF_MTTR_fermaPrev
* 	Restituisce elenco degli interventi x fare il calcolo MTBF/MTTR FILTRANDO per:
* - idxStati
* - idxImpianto
* - idxMacchina
* - solo ferma 
* - inclusione preventiva
*
* modif.:	S.E.L. - 2010.05.11
**************************************/
CREATE PROCEDURE stp_elencoIntMTBF_MTTR_fermaPrev
(
	@inizio DATETIME,
	@fine DATETIME,
	@username VARCHAR(100),
	@soloMaccFerma BIT,
	@includiPreventiva BIT
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_ImpRis_delete]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
|
|
DELETE
|
|
FROM ImpiegoRisorse
|
|
WHERE idxImpiego = @Original_idxImpiego
|
|
|
|
RETURN]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[ImpiegoRisorse]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ImpiegoRisorse].[idxImpiego]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_ImpRis_delete].[@Original_idxImpiego]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_ImpRis_delete].[@Original_idxImpiego]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="205" />
|
|
<Property Name="Length" Value="360" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="/*************************************
* STORED PROCEDURE stp_ImpRis_delete
*
* elimina record impiego risorse
*
* mod : 17/03/2015	
* aut : S.E. Locatelli
**************************************/
create PROCEDURE stp_ImpRis_delete
(
	@Original_idxImpiego INT
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_ImpRis_getByNumMtz]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
|
|
SELECT *
|
|
FROM ImpiegoRisorse
|
|
WHERE numIntMtz = @numIntMtz
|
|
|
|
RETURN]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[ImpiegoRisorse]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ImpiegoRisorse].[numIntMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_ImpRis_getByNumMtz].[@numIntMtz]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_ImpRis_getByNumMtz].[@numIntMtz]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="222" />
|
|
<Property Name="Length" Value="364" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="/*************************************
* STORED PROCEDURE stp_ImpRis_getByNumMtz
*
* elenco record impiego risorse x intervento
*
* mod : 18/03/2015	
* aut : S.E. Locatelli
**************************************/
create PROCEDURE stp_ImpRis_getByNumMtz
(
	@numIntMtz				INT
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_ImpRis_insert]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
|
|
INSERT INTO ImpiegoRisorse(CodRisorsa, numIntMtz, QtaRisorsa, CostoUnit, Note)
|
|
VALUES (@CodRisorsa, @numIntMtz, @QtaRisorsa, @CostoUnit, @Note)
|
|
|
|
|
|
RETURN]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[ImpiegoRisorse]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ImpiegoRisorse].[CodRisorsa]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ImpiegoRisorse].[numIntMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ImpiegoRisorse].[QtaRisorsa]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ImpiegoRisorse].[CostoUnit]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ImpiegoRisorse].[Note]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_ImpRis_insert].[@CodRisorsa]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_ImpRis_insert].[@numIntMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_ImpRis_insert].[@QtaRisorsa]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_ImpRis_insert].[@CostoUnit]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_ImpRis_insert].[@Note]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_ImpRis_insert].[@CodRisorsa]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="10" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_ImpRis_insert].[@numIntMtz]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_ImpRis_insert].[@QtaRisorsa]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="18" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_ImpRis_insert].[@CostoUnit]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="18" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_ImpRis_insert].[@Note]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="IsMax" Value="True" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="204" />
|
|
<Property Name="Length" Value="559" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="/*************************************
* STORED PROCEDURE stp_ImpRis_insert
*
* insert record impiego risorse
*
* mod : 17/03/2015	
* aut : S.E. Locatelli
**************************************/
CREATE PROCEDURE stp_ImpRis_insert
(
	@CodRisorsa				NVARCHAR(10)
 , @numIntMtz				INT
 , @QtaRisorsa				DECIMAL(18, 6)
 , @CostoUnit				DECIMAL(18, 6)
 , @Note					NVARCHAR(MAX)
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_ImpRis_update]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
|
|
UPDATE ImpiegoRisorse
|
|
SET CodRisorsa = @CodRisorsa
|
|
, numIntMtz = @numIntMtz
|
|
, QtaRisorsa = @QtaRisorsa
|
|
, CostoUnit = @CostoUnit
|
|
, Note = @Note
|
|
WHERE idxImpiego = @Original_idxImpiego
|
|
|
|
RETURN]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[ImpiegoRisorse]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ImpiegoRisorse].[CodRisorsa]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_ImpRis_update].[@CodRisorsa]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ImpiegoRisorse].[numIntMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_ImpRis_update].[@numIntMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ImpiegoRisorse].[QtaRisorsa]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_ImpRis_update].[@QtaRisorsa]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ImpiegoRisorse].[CostoUnit]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_ImpRis_update].[@CostoUnit]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ImpiegoRisorse].[Note]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_ImpRis_update].[@Note]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ImpiegoRisorse].[idxImpiego]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_ImpRis_update].[@Original_idxImpiego]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_ImpRis_update].[@Original_idxImpiego]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_ImpRis_update].[@CodRisorsa]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="10" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_ImpRis_update].[@numIntMtz]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_ImpRis_update].[@QtaRisorsa]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="18" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_ImpRis_update].[@CostoUnit]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="18" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_ImpRis_update].[@Note]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="IsMax" Value="True" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="204" />
|
|
<Property Name="Length" Value="645" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="/*************************************
* STORED PROCEDURE stp_ImpRis_update
*
* update record impiego risorse
*
* mod : 17/03/2015	
* aut : S.E. Locatelli
**************************************/
CREATE PROCEDURE stp_ImpRis_update
(
	@Original_idxImpiego	INT
 , @CodRisorsa				NVARCHAR(10)
 , @numIntMtz				INT
 , @QtaRisorsa				DECIMAL(18, 6)
 , @CostoUnit				DECIMAL(18, 6)
 , @Note					NVARCHAR(MAX)
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_insNewLemma]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
|
|
-- elimino se c'era già...
|
|
DELETE
|
|
FROM Vocabolario
|
|
WHERE lemma = @lemma
|
|
|
|
-- inserisco x tutte le lingue attive...
|
|
INSERT INTO Vocabolario
|
|
SELECT lingua, @lemma, @traduzione
|
|
FROM Lingue
|
|
|
|
SELECT *
|
|
FROM Vocabolario
|
|
WHERE lemma = @lemma
|
|
|
|
RETURN]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[Vocabolario]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Vocabolario].[Lemma]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_insNewLemma].[@lemma]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Lingue]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Lingue].[Lingua]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_insNewLemma].[@traduzione]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_insNewLemma].[@lemma]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_insNewLemma].[@traduzione]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="500" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="214" />
|
|
<Property Name="Length" Value="574" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="/*************************************
* STORED PROCEDURE stp_insNewLemma
*
* elimina record anagrafica classe prodotto
*
* mod : 14/05/2012	
* aut : S.E. Locatelli
**************************************/
create PROCEDURE stp_insNewLemma
(
	@lemma		NVARCHAR(50),
	@traduzione NVARCHAR(500)
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_listValues_getByTable]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
|
|
SELECT *
|
|
FROM ListValues
|
|
WHERE TableName = @TableName
|
|
ORDER BY FieldName, ordinal
|
|
|
|
RETURN]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[ListValues]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ListValues].[TableName]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_listValues_getByTable].[@TableName]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ListValues].[FieldName]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ListValues].[ordinal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_listValues_getByTable].[@TableName]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="207" />
|
|
<Property Name="Length" Value="400" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="
/***************************************
* STORED stp_listValues_getByTable
*
* ottiene elenco campi data Table
*
* Steamware, S.E.L.
* mod: 2014.08.04
*
****************************************/
CREATE PROCEDURE [dbo].[stp_listValues_getByTable]
(
	@TableName	NVARCHAR(50)
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_listValues_getDistTable]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
|
|
SELECT DISTINCT TableName
|
|
, '-' AS FieldName
|
|
, '-' AS value
|
|
, '-' AS label
|
|
, 0 AS ordinal
|
|
FROM ListValues
|
|
ORDER BY TableName
|
|
|
|
|
|
RETURN]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[ListValues]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ListValues].[TableName]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="202" />
|
|
<Property Name="Length" Value="418" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="
/***************************************
* STORED stp_listValues_getDistTable
*
* ottiene elenco TableName
*
* Steamware, S.E.L.
* mod: 2015.02.25
*
****************************************/
create PROCEDURE [dbo].[stp_listValues_getDistTable]

AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_listValues_getValidValues]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
BEGIN
|
|
SET NOCOUNT ON;
|
|
|
|
SELECT value, label
|
|
FROM ListValues
|
|
WHERE TableName = @TableName
|
|
AND FieldName = @FieldName
|
|
ORDER BY ordinal
|
|
END]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[ListValues]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ListValues].[value]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ListValues].[label]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ListValues].[TableName]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_listValues_getValidValues].[@TableName]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ListValues].[FieldName]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_listValues_getValidValues].[@FieldName]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ListValues].[ordinal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_listValues_getValidValues].[@TableName]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_listValues_getValidValues].[@FieldName]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="237" />
|
|
<Property Name="Length" Value="516" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="
-- =============================================
-- STORED stp_getValidValues
--
-- Author:		S.E.L.
-- Create date: 2011.05.26
-- Description:	gestione selezione dati parametrici
-- =============================================
create PROCEDURE [dbo].[stp_listValues_getValidValues] 
(
	@TableName NVARCHAR(50),
	@FieldName NVARCHAR(50)
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_listValues_getValidValuesFilt]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
BEGIN
|
|
SET NOCOUNT ON;
|
|
|
|
SELECT value, label
|
|
FROM ListValues
|
|
WHERE TableName = @TableName
|
|
AND FieldName = @FieldName
|
|
AND value LIKE @valueLike +'%'
|
|
ORDER BY ordinal
|
|
END]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[ListValues]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ListValues].[value]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ListValues].[label]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ListValues].[TableName]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_listValues_getValidValuesFilt].[@TableName]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ListValues].[FieldName]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_listValues_getValidValuesFilt].[@FieldName]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_listValues_getValidValuesFilt].[@valueLike]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ListValues].[ordinal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_listValues_getValidValuesFilt].[@TableName]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_listValues_getValidValuesFilt].[@FieldName]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_listValues_getValidValuesFilt].[@valueLike]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="10" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="278" />
|
|
<Property Name="Length" Value="622" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="
-- =============================================
-- STORED stp_getValidValuesFilt
--
-- Author:		S.E.L.
-- Create date: 2011.05.26
-- Description:	gestione selezione dati parametrici
--				con filtro su valore con LIKE
-- =============================================
create PROCEDURE [dbo].[stp_listValues_getValidValuesFilt] 
(
	@TableName NVARCHAR(50),
	@FieldName NVARCHAR(50),
	@valueLike NVARCHAR(10)
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_listValues_getValidValuesTrad]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
BEGIN
|
|
SET NOCOUNT ON;
|
|
|
|
SELECT lv.value, ISNULL(v.Traduzione, lv.TableName+lv.FieldName+lv.value) AS label
|
|
FROM ListValues lv LEFT OUTER JOIN Vocabolario v
|
|
ON lv.TableName+lv.FieldName+lv.value = v.Lemma
|
|
AND v.Lingua = @Lingua
|
|
WHERE lv.TableName = @TableName
|
|
AND lv.FieldName = @FieldName
|
|
ORDER BY lv.ordinal
|
|
END]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[ListValues]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Vocabolario]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ListValues].[TableName]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ListValues].[FieldName]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ListValues].[value]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Vocabolario].[Lemma]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Vocabolario].[Lingua]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_listValues_getValidValuesTrad].[@Lingua]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Vocabolario].[Traduzione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_listValues_getValidValuesTrad].[@TableName]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_listValues_getValidValuesTrad].[@FieldName]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ListValues].[ordinal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_listValues_getValidValuesTrad].[@TableName]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_listValues_getValidValuesTrad].[@FieldName]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_listValues_getValidValuesTrad].[@Lingua]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="3" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="246" />
|
|
<Property Name="Length" Value="762" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="
-- =============================================
-- STORED stp_getValidValues
--
-- Author:		S.E.L.
-- Create date:	2015.09.15
-- Description:	gestione selezione dati parametrici tradotti
-- =============================================
CREATE PROCEDURE [dbo].[stp_listValues_getValidValuesTrad] 
(
	@TableName NVARCHAR(50),
	@FieldName NVARCHAR(50),
	@Lingua	 NVARCHAR(3)
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_MovMag_delete]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
|
|
DELETE
|
|
FROM MovMagRic
|
|
WHERE idxItem = @Original_idxItem
|
|
AND numIntMtz = @Original_numIntMtz
|
|
AND dtMov = @Original_dtMov
|
|
|
|
|
|
RETURN]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[MovMagRic]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MovMagRic].[idxItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_MovMag_delete].[@Original_idxItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MovMagRic].[numIntMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_MovMag_delete].[@Original_numIntMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MovMagRic].[dtMov]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_MovMag_delete].[@Original_dtMov]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_MovMag_delete].[@Original_idxItem]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[0]]></Value>
|
|
</Property>
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_MovMag_delete].[@Original_numIntMtz]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_MovMag_delete].[@Original_dtMov]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="228" />
|
|
<Property Name="Length" Value="529" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="/*************************************
* STORED PROCEDURE stp_MovMag_update
*
* elimina record movimenti magazzino (SE non scaricato)
*
* mod : 27/11/2015	
* aut : S.E. Locatelli
**************************************/
CREATE PROCEDURE stp_MovMag_delete
(
 @Original_idxItem INT = 0
 , @Original_numIntMtz INT
 , @Original_dtMov	 DATETIME
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_MovMag_getByNumInt]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
|
|
-- cerco da intervento
|
|
SELECT *
|
|
FROM v_MovMagExpl vmm
|
|
WHERE numIntMtz = @numIntMtz
|
|
|
|
|
|
RETURN]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_MovMagExpl]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_MovMagExpl].[numIntMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_MovMag_getByNumInt].[@numIntMtz]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_MovMag_getByNumInt].[@numIntMtz]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="213" />
|
|
<Property Name="Length" Value="403" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="/*************************************
* STORED PROCEDURE stp_MovMag_getByNumInt
*
* update record movimenti magazzino
*
* mod : 27/11/2015	
* aut : S.E. Locatelli
**************************************/
CREATE PROCEDURE [dbo].[stp_MovMag_getByNumInt]
(
 @numIntMtz INT
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_MovMag_insert]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
|
|
BEGIN tran
|
|
-- calcolo macchina...
|
|
DECLARE @idxMacchina INT = 0
|
|
|
|
SELECT @idxMacchina = idxMacchina
|
|
FROM InterventiMtz
|
|
WHERE numIntMtz = @numIntMtz
|
|
|
|
INSERT INTO MovMagRic(idxItem,numIntMtz,dtMov,Qta,idxMacchina)
|
|
VALUES(@idxItem,@numIntMtz,GETDATE(),@Qta,@idxMacchina)
|
|
|
|
COMMIT tran
|
|
RETURN]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[numIntMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_MovMag_insert].[@numIntMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MovMagRic]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MovMagRic].[idxItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MovMagRic].[numIntMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MovMagRic].[dtMov]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MovMagRic].[Qta]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MovMagRic].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_MovMag_insert].[@idxItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_MovMag_insert].[@Qta]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_MovMag_insert].[@idxItem]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[0]]></Value>
|
|
</Property>
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_MovMag_insert].[@numIntMtz]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_MovMag_insert].[@Qta]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="208" />
|
|
<Property Name="Length" Value="664" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="/*************************************
* STORED PROCEDURE stp_MovMag_insert
*
* insert record movimenti magazzino
*
* mod : 27/11/2015	
* aut : S.E. Locatelli
**************************************/
CREATE PROCEDURE [dbo].[stp_MovMag_insert]
(
 @idxItem		INT = 0
 , @numIntMtz	INT
 , @Qta		INT
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_MovMag_update]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
|
|
UPDATE MovMagRic
|
|
SET Qta = ISNULL(@Qta,0)
|
|
WHERE idxItem = @Original_idxItem
|
|
AND numIntMtz = @Original_numIntMtz
|
|
AND dtMov = @Original_dtMov
|
|
|
|
|
|
RETURN]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[MovMagRic]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MovMagRic].[Qta]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_MovMag_update].[@Qta]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MovMagRic].[idxItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_MovMag_update].[@Original_idxItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MovMagRic].[numIntMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_MovMag_update].[@Original_numIntMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MovMagRic].[dtMov]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_MovMag_update].[@Original_dtMov]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_MovMag_update].[@Original_idxItem]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[0]]></Value>
|
|
</Property>
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_MovMag_update].[@Original_numIntMtz]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_MovMag_update].[@Original_dtMov]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_MovMag_update].[@Qta]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="208" />
|
|
<Property Name="Length" Value="567" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="/*************************************
* STORED PROCEDURE stp_MovMag_update
*
* update record movimenti magazzino
*
* mod : 27/11/2015	
* aut : S.E. Locatelli
**************************************/
CREATE PROCEDURE [dbo].[stp_MovMag_update]
(
 @Original_idxItem	 INT = 0
 , @Original_numIntMtz INT
 , @Original_dtMov	 DATETIME
 , @Qta			 INT
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_MtzProg_delete]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
|
|
DELETE
|
|
FROM MtzProgrammata
|
|
WHERE idxIntPro = @Original_idxIntPro
|
|
|
|
RETURN]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata].[idxIntPro]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_MtzProg_delete].[@Original_idxIntPro]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_MtzProg_delete].[@Original_idxIntPro]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="227" />
|
|
<Property Name="Length" Value="383" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="/*********************************************************************************
* STORED stp_MtzProg_delete
*
* delete riga MtzProg
*
**********************************************************************************/
create PROCEDURE dbo.stp_MtzProg_delete
(
	@Original_idxIntPro		INT
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_MtzProg_duplica]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
BEGIN
|
|
SET NOCOUNT ON;
|
|
|
|
BEGIN tran
|
|
|
|
-- in primis cancello vecchi interventi programmati SE @mantainOld = 0
|
|
IF (@mantainOld=0)
|
|
BEGIN
|
|
DELETE FROM MtzProgrammata WHERE idxMacchina = @idxMacchinaTo
|
|
END
|
|
|
|
-- poi inserisco nuovi interventi
|
|
INSERT INTO MtzProgrammata(idxMacchina, inizio, codFrequenza, cadenza, descrizione, idxPriorita, isFermo, idxTipo)
|
|
SELECT @idxMacchinaTo AS idxMacchina, inizio, codFrequenza, cadenza, descrizione, idxPriorita, isFermo, idxTipo
|
|
FROM MtzProgrammata
|
|
WHERE idxMacchina = @idxMacchinaFrom
|
|
|
|
COMMIT tran
|
|
END]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_MtzProg_duplica].[@mantainOld]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_MtzProg_duplica].[@idxMacchinaTo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata].[inizio]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata].[codFrequenza]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata].[cadenza]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata].[descrizione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata].[idxPriorita]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata].[isFermo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata].[idxTipo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_MtzProg_duplica].[@idxMacchinaFrom]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_MtzProg_duplica].[@idxMacchinaFrom]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[0]]></Value>
|
|
</Property>
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_MtzProg_duplica].[@idxMacchinaTo]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[0]]></Value>
|
|
</Property>
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_MtzProg_duplica].[@mantainOld]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[0]]></Value>
|
|
</Property>
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[bit]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="263" />
|
|
<Property Name="Length" Value="985" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="-- =============================================
-- Author:		S.E.Locatelli
-- Create date: 2012-08-24
-- Description:	duplicazione interventi Mtz programmata tra macchine, con possibilità CANCELLAZIONE vecchi
-- =============================================
create PROCEDURE [dbo].[stp_MtzProg_duplica] 
(
	@idxMacchinaFrom	INT = 0, 
	@idxMacchinaTo		INT = 0,
	@mantainOld			BIT = 0
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_MtzProg_getByKey]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
|
|
SELECT *
|
|
FROM MtzProgrammata
|
|
WHERE idxIntPro = @idxIntPro
|
|
|
|
RETURN]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata].[idxIntPro]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_MtzProg_getByKey].[@idxIntPro]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_MtzProg_getByKey].[@idxIntPro]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="234" />
|
|
<Property Name="Length" Value="376" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="/*********************************************************************************
* STORED stp_MtzProg_getByKey
*
* restituisce riga MtzProg
*
**********************************************************************************/
CREATE PROCEDURE dbo.stp_MtzProg_getByKey
(
	@idxIntPro		INT
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_MtzProg_insert]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
|
|
INSERT INTO MtzProgrammata
|
|
(idxMacchina, inizio, codFrequenza, cadenza, descrizione, idxPriorita, isFermo, idxTipo)
|
|
VALUES (@idxMacchina,@inizio,@codFrequenza,@cadenza,@descrizione,@idxPriorita,@isFermo,@idxTipo)
|
|
|
|
RETURN]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata].[inizio]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata].[codFrequenza]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata].[cadenza]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata].[descrizione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata].[idxPriorita]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata].[isFermo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata].[idxTipo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_MtzProg_insert].[@idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_MtzProg_insert].[@inizio]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_MtzProg_insert].[@codFrequenza]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_MtzProg_insert].[@cadenza]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_MtzProg_insert].[@descrizione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_MtzProg_insert].[@idxPriorita]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_MtzProg_insert].[@isFermo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_MtzProg_insert].[@idxTipo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_MtzProg_insert].[@idxMacchina]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_MtzProg_insert].[@inizio]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_MtzProg_insert].[@codFrequenza]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="2" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_MtzProg_insert].[@cadenza]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_MtzProg_insert].[@descrizione]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="2500" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_MtzProg_insert].[@idxPriorita]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_MtzProg_insert].[@isFermo]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[bit]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_MtzProg_insert].[@idxTipo]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="227" />
|
|
<Property Name="Length" Value="705" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="/*********************************************************************************
* STORED stp_MtzProg_insert
*
* insert riga MtzProg
*
**********************************************************************************/
create PROCEDURE dbo.stp_MtzProg_insert
(
	@idxMacchina	INT,
	@inizio			DATETIME,
	@codFrequenza	NCHAR(2),
	@cadenza		INT,
	@descrizione	NVARCHAR(2500),
	@idxPriorita	INT,
	@isFermo		BIT,
	@idxTipo		INT
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_MtzProg_update]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
|
|
UPDATE MtzProgrammata
|
|
SET inizio = @inizio,
|
|
codFrequenza= @codFrequenza,
|
|
cadenza = @cadenza,
|
|
descrizione = @descrizione,
|
|
idxPriorita = @idxPriorita,
|
|
isFermo = @isFermo,
|
|
idxTipo = @idxTipo
|
|
WHERE idxIntPro = @idxIntPro
|
|
|
|
RETURN]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata].[inizio]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_MtzProg_update].[@inizio]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata].[codFrequenza]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_MtzProg_update].[@codFrequenza]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata].[cadenza]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_MtzProg_update].[@cadenza]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata].[descrizione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_MtzProg_update].[@descrizione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata].[idxPriorita]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_MtzProg_update].[@idxPriorita]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata].[isFermo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_MtzProg_update].[@isFermo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata].[idxTipo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_MtzProg_update].[@idxTipo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata].[idxIntPro]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_MtzProg_update].[@idxIntPro]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_MtzProg_update].[@idxIntPro]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_MtzProg_update].[@inizio]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_MtzProg_update].[@codFrequenza]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="2" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_MtzProg_update].[@cadenza]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_MtzProg_update].[@descrizione]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="2500" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_MtzProg_update].[@idxPriorita]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_MtzProg_update].[@isFermo]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[bit]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_MtzProg_update].[@idxTipo]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="229" />
|
|
<Property Name="Length" Value="701" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="/*********************************************************************************
* STORED stp_MtzProg_update
*
* aggiorna riga MtzProg
*
**********************************************************************************/
CREATE PROCEDURE dbo.stp_MtzProg_update
(
	@idxIntPro		INT,
	@inizio			DATETIME,
	@codFrequenza	NCHAR(2),
	@cadenza		INT,
	@descrizione	NVARCHAR(2500),
	@idxPriorita	INT,
	@isFermo		BIT,
	@idxTipo		INT
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_oreEquivalenti]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
|
|
SELECT dbo.f_diffOreLavorative(@dataFrom, @dataTo, @idxMacchina) AS apertura
|
|
|
|
RETURN]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_oreEquivalenti].[@dataFrom]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_oreEquivalenti].[@dataTo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_oreEquivalenti].[@idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_diffOreLavorative]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_oreEquivalenti].[@dataFrom]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_oreEquivalenti].[@dataTo]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_oreEquivalenti].[@idxMacchina]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="229" />
|
|
<Property Name="Length" Value="428" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="
/*************************************
* STORED PROCEDURE stp_oreEquivalenti
* 	calcola le ore di apertura equivalenti x una data macchina e periodo
*
* modif.:	S.E.L. - 2011.06.29
**************************************/
create PROCEDURE stp_oreEquivalenti
(
	@dataFrom		DATETIME,
	@dataTo			DATETIME,
	@idxMacchina	INT
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_SinTag_UpdateQuery]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
SET NOCOUNT OFF;
|
|
|
|
|
|
|
|
BEGIN tran
|
|
|
|
-- step 1: ricodifica associazione verso ITEMS
|
|
UPDATE Tag2Item
|
|
SET TagCode = @TagCode
|
|
WHERE TagCode = @Original_TagCodeOrig
|
|
|
|
|
|
-- step 2: ricodifica associazione verso MACCHINE
|
|
UPDATE Tag2Macc
|
|
SET TagCode = @TagCode
|
|
WHERE TagCode = @Original_TagCodeOrig
|
|
-- step 3: creo record sinonimi (FARE CON MERGE?!?)
|
|
UPDATE SinonimiTag
|
|
SET TagCode = @TagCode
|
|
WHERE ((TagCodeOrig = @Original_TagCodeOrig)) OR ((TagCode = @Original_TagCodeOrig))
|
|
|
|
--INSERT INTO SinonimiTag (TagCodeOrig, TagCode)
|
|
--VALUES (@Original_TagCodeOrig, @TagCode)
|
|
|
|
-- step 4: elimino ITEMS
|
|
DELETE
|
|
FROM AnagTags
|
|
WHERE TagCode = @Original_TagCodeOrig
|
|
|
|
COMMIT Tran]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[Tag2Item]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Tag2Item].[TagCode]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_SinTag_UpdateQuery].[@TagCode]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_SinTag_UpdateQuery].[@Original_TagCodeOrig]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Tag2Macc]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Tag2Macc].[TagCode]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[SinonimiTag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[SinonimiTag].[TagCode]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[SinonimiTag].[TagCodeOrig]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTags]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTags].[TagCode]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_SinTag_UpdateQuery].[@Original_TagCodeOrig]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_SinTag_UpdateQuery].[@TagCode]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="413" />
|
|
<Property Name="Length" Value="1314" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="/*************************************
* STORED PROCEDURE stp_SinTag_UpdateQuery
*
* update recordmerge come sinonimo del TagCordOrig (che sparisce) verso TagCode
*
* - ricodifica associazione verso item
* - ricodifica associazione verso macchine
* - crea record in tab sinonimi
* - elimina record in tab item
*
* mod : 23/11/2015	
* aut : S.E. Locatelli
**************************************/
CREATE PROCEDURE [dbo].[stp_SinTag_UpdateQuery]
(
	@Original_TagCodeOrig nvarchar(50),
	@TagCode nvarchar(50)
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_StatoMag_delete]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
|
|
|
|
BEGIN tran
|
|
|
|
DELETE FROM MagRic
|
|
WHERE idxItem = @Original_idxItem
|
|
|
|
DELETE FROM AnagItems
|
|
WHERE idxItem = @Original_idxItem
|
|
|
|
COMMIT tran
|
|
|
|
RETURN]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[MagRic]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MagRic].[idxItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_StatoMag_delete].[@Original_idxItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[idxItem]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_StatoMag_delete].[@Original_idxItem]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[0]]></Value>
|
|
</Property>
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="222" />
|
|
<Property Name="Length" Value="483" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="/*************************************
* STORED PROCEDURE stp_StatoMag_delete
*
* elimina record magazzino (item + giacenza...)
*
* mod : 19/11/2015	
* aut : S.E. Locatelli
**************************************/
CREATE PROCEDURE stp_StatoMag_delete
(
 @Original_idxItem INT = 0
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_StatoMag_getByDescr]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
|
|
-- cerco da descrizione
|
|
SELECT *
|
|
FROM v_StatoMag
|
|
WHERE Descrizione = @Descrizione
|
|
|
|
RETURN]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_StatoMag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_StatoMag].[Descrizione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_StatoMag_getByDescr].[@Descrizione]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_StatoMag_getByDescr].[@Descrizione]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="250" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="213" />
|
|
<Property Name="Length" Value="412" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="/*************************************
* STORED PROCEDURE stp_StatoMag_getByDescr
*
* recupera record data descrizione
*
* mod : 19/11/2015	
* aut : S.E. Locatelli
**************************************/
CREATE PROCEDURE [dbo].[stp_StatoMag_getByDescr]
(
 @Descrizione	 NVARCHAR(250)
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_StatoMag_getByIdxMacchina]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
|
|
-- cerco da idxMacchina -> etichette -> items
|
|
SELECT vsm.*
|
|
FROM Tag2Item t2i
|
|
INNER JOIN Tag2Macc t2m ON t2i.TagCode = t2m.TagCode
|
|
INNER JOIN v_statoMag vsm ON vsm.idxItem = t2i.idxItem
|
|
WHERE t2m.idxMacchina = @idxMacchina
|
|
|
|
|
|
RETURN]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[Tag2Item]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Tag2Macc]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Tag2Item].[TagCode]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Tag2Macc].[TagCode]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_StatoMag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_StatoMag].[idxItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Tag2Item].[idxItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Tag2Macc].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_StatoMag_getByIdxMacchina].[@idxMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_StatoMag_getByIdxMacchina].[@idxMacchina]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="232" />
|
|
<Property Name="Length" Value="567" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="/*************************************
* STORED PROCEDURE stp_StatoMag_getByIdxMacchina
*
* recupera record items assegnati alla macchina
*
* mod : 27/11/2015	
* aut : S.E. Locatelli
**************************************/
CREATE PROCEDURE stp_StatoMag_getByIdxMacchina
(
 @idxMacchina	INT
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_StatoMag_insert]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
|
|
|
|
BEGIN tran
|
|
|
|
DECLARE @idxItem INT = 0
|
|
-- creo nuovo ITEM
|
|
INSERT INTO dbo.AnagItems (Descrizione, NomeCostruttore, CodCostruttore, CodInterno, QtaMin, QtaLotto, Valore)
|
|
VALUES (@Descrizione, @NomeCostruttore, @CodCostruttore, @CodInterno, @QtaMin, @QtaLotto, @Valore)
|
|
|
|
-- recupero IDX
|
|
SELECT @idxItem = SCOPE_IDENTITY()
|
|
|
|
-- creo record giacenza
|
|
INSERT INTO MagRic (idxItem,CodLocazione,Giacenza,Note,dtLastUpd)
|
|
VALUES (@idxItem, @CodLocazione, @Giacenza, @Note, GETDATE())
|
|
|
|
COMMIT tran
|
|
|
|
RETURN]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[Descrizione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[NomeCostruttore]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[CodCostruttore]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[CodInterno]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[QtaMin]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[QtaLotto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[Valore]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_StatoMag_insert].[@Descrizione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_StatoMag_insert].[@NomeCostruttore]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_StatoMag_insert].[@CodCostruttore]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_StatoMag_insert].[@CodInterno]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_StatoMag_insert].[@QtaMin]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_StatoMag_insert].[@QtaLotto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_StatoMag_insert].[@Valore]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MagRic]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MagRic].[idxItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MagRic].[CodLocazione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MagRic].[Giacenza]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MagRic].[Note]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MagRic].[dtLastUpd]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_StatoMag_insert].[@CodLocazione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_StatoMag_insert].[@Giacenza]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_StatoMag_insert].[@Note]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_StatoMag_insert].[@Descrizione]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="250" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_StatoMag_insert].[@NomeCostruttore]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="250" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_StatoMag_insert].[@CodCostruttore]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="250" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_StatoMag_insert].[@CodInterno]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_StatoMag_insert].[@QtaMin]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_StatoMag_insert].[@QtaLotto]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_StatoMag_insert].[@Valore]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="18" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_StatoMag_insert].[@Giacenza]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_StatoMag_insert].[@CodLocazione]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_StatoMag_insert].[@Note]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="IsMax" Value="True" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="238" />
|
|
<Property Name="Length" Value="1158" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="/*************************************
* STORED PROCEDURE stp_StatoMag_insert
*
* insert record magazzino (inserisce item + giacenza in mag...)
*
* mod : 19/11/2015	
* aut : S.E. Locatelli
**************************************/
CREATE PROCEDURE [dbo].[stp_StatoMag_insert]
(
 @Descrizione	 NVARCHAR(250)
 , @NomeCostruttore NVARCHAR(250)
 , @CodCostruttore	 NVARCHAR(250)
 , @CodInterno	 NVARCHAR(50)
 , @QtaMin		 INT
 , @QtaLotto		 INT
 , @Valore		 DECIMAL(18, 6)
 , @Giacenza		 INT
 , @CodLocazione	 NVARCHAR(50)
 , @Note			 NVARCHAR(MAX)
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_StatoMag_update]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
|
|
|
|
BEGIN tran
|
|
|
|
|
|
-- update ITEM
|
|
UPDATE AnagItems
|
|
SET Famiglia = ISNULL(@Famiglia,'')
|
|
,Descrizione = ISNULL(@Descrizione,'')
|
|
,NomeCostruttore = ISNULL(@NomeCostruttore,'')
|
|
,CodCostruttore = ISNULL(@CodCostruttore,'')
|
|
,CodInterno = ISNULL(@CodInterno,'')
|
|
,QtaMin = ISNULL(@QtaMin,'')
|
|
,QtaLotto = ISNULL(@QtaLotto,'')
|
|
,Valore = ISNULL(@Valore,'')
|
|
WHERE idxItem = @Original_idxItem
|
|
|
|
INSERT INTO dbo.AnagItems (Descrizione, NomeCostruttore, CodCostruttore, CodInterno, QtaMin, QtaLotto, Valore)
|
|
VALUES (@Descrizione, @NomeCostruttore, @CodCostruttore, @CodInterno, @QtaMin, @QtaLotto, @Valore)
|
|
|
|
-- update record giacenza
|
|
UPDATE dbo.MagRic
|
|
SET CodLocazione = ISNULL(@CodLocazione,'')
|
|
,Note = ISNULL(@Note,'')
|
|
,dtLastUpd = GETDATE()
|
|
WHERE idxItem = @Original_idxItem
|
|
|
|
COMMIT tran
|
|
|
|
RETURN]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[Famiglia]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_StatoMag_update].[@Famiglia]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[Descrizione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_StatoMag_update].[@Descrizione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[NomeCostruttore]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_StatoMag_update].[@NomeCostruttore]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[CodCostruttore]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_StatoMag_update].[@CodCostruttore]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[CodInterno]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_StatoMag_update].[@CodInterno]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[QtaMin]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_StatoMag_update].[@QtaMin]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[QtaLotto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_StatoMag_update].[@QtaLotto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[Valore]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_StatoMag_update].[@Valore]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[idxItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_StatoMag_update].[@Original_idxItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MagRic]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MagRic].[CodLocazione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_StatoMag_update].[@CodLocazione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MagRic].[Note]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_StatoMag_update].[@Note]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MagRic].[dtLastUpd]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MagRic].[idxItem]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_StatoMag_update].[@Original_idxItem]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[0]]></Value>
|
|
</Property>
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_StatoMag_update].[@Famiglia]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="250" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_StatoMag_update].[@Descrizione]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="250" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_StatoMag_update].[@NomeCostruttore]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="250" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_StatoMag_update].[@CodCostruttore]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="250" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_StatoMag_update].[@CodInterno]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_StatoMag_update].[@QtaMin]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_StatoMag_update].[@QtaLotto]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_StatoMag_update].[@Valore]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="18" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_StatoMag_update].[@CodLocazione]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_StatoMag_update].[@Note]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="IsMax" Value="True" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="221" />
|
|
<Property Name="Length" Value="1547" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="/*************************************
* STORED PROCEDURE stp_StatoMag_update
*
* update record magazzino (item + giacenza...)
*
* mod : 19/11/2015	
* aut : S.E. Locatelli
**************************************/
CREATE PROCEDURE [dbo].[stp_StatoMag_update]
(
 @Original_idxItem INT = 0
 , @Famiglia	 	 NVARCHAR(250)
 , @Descrizione	 NVARCHAR(250)
 , @NomeCostruttore NVARCHAR(250)
 , @CodCostruttore	 NVARCHAR(250)
 , @CodInterno	 NVARCHAR(50)
 , @QtaMin		 INT
 , @QtaLotto		 INT
 , @Valore		 DECIMAL(18, 6)
 , @CodLocazione	 NVARCHAR(50)
 , @Note			 NVARCHAR(MAX)
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_T2I_getByIdxItem]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
SET NOCOUNT ON;
|
|
SELECT idxItem, TagCode FROM dbo.Tag2Item
|
|
WHERE idxItem=@idxItem]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[Tag2Item]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Tag2Item].[idxItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Tag2Item].[TagCode]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_T2I_getByIdxItem].[@idxItem]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_T2I_getByIdxItem].[@idxItem]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="192" />
|
|
<Property Name="Length" Value="339" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="
/*************************************
* STORED PROCEDURE stp_T2I_getByIdxItem
*
* tag da items
*
* mod : 24/11/2015	
* aut : S.E. Locatelli
**************************************/
CREATE PROCEDURE stp_T2I_getByIdxItem
(
	@idxItem INT
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_T2I_getByTag]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
SET NOCOUNT ON;
|
|
SELECT idxItem, TagCode FROM dbo.Tag2Item
|
|
WHERE TagCode=@TagCode]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[Tag2Item]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Tag2Item].[idxItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Tag2Item].[TagCode]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_T2I_getByTag].[@TagCode]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_T2I_getByTag].[@TagCode]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="192" />
|
|
<Property Name="Length" Value="344" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="/*************************************
* STORED PROCEDURE stp_T2I_getByTag
*
* tag - items da tag
*
* mod : 24/11/2015	
* aut : S.E. Locatelli
**************************************/
CREATE PROCEDURE stp_T2I_getByTag
(
	@TagCode nvarchar(50)
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_T2M_deleteByTag]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
SET NOCOUNT ON;
|
|
DELETE
|
|
FROM Tag2Macc
|
|
WHERE TagCode = @Original_TagCode
|
|
AND idxMacchina = @Original_idxMacchina]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[Tag2Macc]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Tag2Macc].[TagCode]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_T2M_deleteByTag].[@Original_TagCode]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Tag2Macc].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_T2M_deleteByTag].[@Original_idxMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_T2M_deleteByTag].[@Original_TagCode]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_T2M_deleteByTag].[@Original_idxMacchina]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="205" />
|
|
<Property Name="Length" Value="440" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="/*************************************
* STORED PROCEDURE stp_T2M_deleteByTag
*
* elimina record macchine2tags
*
* mod : 24/11/2015	
* aut : S.E. Locatelli
**************************************/
CREATE PROCEDURE stp_T2M_deleteByTag
(
	 @Original_TagCode		NVARCHAR(50)
	,@Original_idxMacchina	INT
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_T2M_getByTag]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
SET NOCOUNT ON;
|
|
SELECT TagCode, idxMacchina FROM dbo.Tag2Macc
|
|
WHERE TagCode=@TagCode]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[Tag2Macc]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Tag2Macc].[TagCode]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Tag2Macc].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_T2M_getByTag].[@TagCode]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_T2M_getByTag].[@TagCode]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="198" />
|
|
<Property Name="Length" Value="354" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="/*************************************
* STORED PROCEDURE stp_T2I_getByIdxItem
*
* tag macchine da tags
*
* mod : 24/11/2015	
* aut : S.E. Locatelli
**************************************/
CREATE PROCEDURE stp_T2M_getByTag
(
	@TagCode nvarchar(50)
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_vie_getByPeriodoSearch]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
BEGIN
|
|
-- SET NOCOUNT ON added to prevent extra result sets from
|
|
-- interfering with SELECT statements.
|
|
SET NOCOUNT ON;
|
|
|
|
IF (
|
|
ISNULL (@search,'') = '' OR ISNULL (@search,'') = '*'
|
|
)
|
|
BEGIN
|
|
-- Insert statements for procedure here
|
|
SELECT DescrStato
|
|
,codImpianto
|
|
,codMacchina
|
|
,dataLav
|
|
,descrAmbitoGuasto
|
|
,descrCausale
|
|
,descrPriorita
|
|
,descrTipo
|
|
,descrizione
|
|
,descrizioneIntervento
|
|
,fineIntervento
|
|
,guasto
|
|
,idxAmbito
|
|
,idxCausale
|
|
,idxImpianto
|
|
,idxMacchina
|
|
,idxPriorita
|
|
,idxStato
|
|
,idxTipo
|
|
,inizioIntervento
|
|
,isFermo
|
|
,isPreventivabile
|
|
,matr
|
|
,nomeImpianto
|
|
,nomeMacchina
|
|
,numIntMtz
|
|
,presaInCarico
|
|
,richiesta
|
|
,turnoLav
|
|
FROM v_intervExp
|
|
WHERE (
|
|
richiesta BETWEEN @inizio
|
|
AND @fine
|
|
)
|
|
ORDER BY numIntMtz DESC
|
|
END
|
|
ELSE
|
|
BEGIN
|
|
SELECT DescrStato
|
|
,codImpianto
|
|
,codMacchina
|
|
,dataLav
|
|
,descrAmbitoGuasto
|
|
,descrCausale
|
|
,descrPriorita
|
|
,descrTipo
|
|
,descrizione
|
|
,descrizioneIntervento
|
|
,fineIntervento
|
|
,guasto
|
|
,idxAmbito
|
|
,idxCausale
|
|
,idxImpianto
|
|
,idxMacchina
|
|
,idxPriorita
|
|
,idxStato
|
|
,idxTipo
|
|
,inizioIntervento
|
|
,isFermo
|
|
,isPreventivabile
|
|
,matr
|
|
,nomeImpianto
|
|
,nomeMacchina
|
|
,numIntMtz
|
|
,presaInCarico
|
|
,richiesta
|
|
,turnoLav
|
|
FROM v_intervExp
|
|
WHERE (
|
|
richiesta BETWEEN @inizio
|
|
AND @fine
|
|
)
|
|
AND (
|
|
CONVERT(varchar(50),numIntMtz) LIKE '%' + @search + '%'
|
|
OR codImpianto LIKE '%' + @search + '%'
|
|
OR nomeImpianto LIKE '%' + @search + '%'
|
|
OR codMacchina LIKE '%' + @search + '%'
|
|
OR nomeMacchina LIKE '%' + @search + '%'
|
|
OR descrizione LIKE '%' + @search + '%'
|
|
OR descrAmbitoGuasto LIKE '%' + @search + '%'
|
|
OR descrCausale LIKE '%' + @search + '%'
|
|
OR descrizioneIntervento LIKE '%' + @search + '%'
|
|
OR descrPriorita LIKE '%' + @search + '%'
|
|
OR DescrStato LIKE '%' + @search + '%'
|
|
)
|
|
ORDER BY numIntMtz DESC
|
|
END
|
|
END]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_vie_getByPeriodoSearch].[@search]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_intervExp]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_intervExp].[DescrStato]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_intervExp].[codImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_intervExp].[codMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_intervExp].[dataLav]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_intervExp].[descrAmbitoGuasto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_intervExp].[descrCausale]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_intervExp].[descrPriorita]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_intervExp].[descrTipo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_intervExp].[descrizione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_intervExp].[descrizioneIntervento]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_intervExp].[fineIntervento]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_intervExp].[guasto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_intervExp].[idxAmbito]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_intervExp].[idxCausale]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_intervExp].[idxImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_intervExp].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_intervExp].[idxPriorita]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_intervExp].[idxStato]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_intervExp].[idxTipo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_intervExp].[inizioIntervento]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_intervExp].[isFermo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_intervExp].[isPreventivabile]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_intervExp].[matr]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_intervExp].[nomeImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_intervExp].[nomeMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_intervExp].[numIntMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_intervExp].[presaInCarico]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_intervExp].[richiesta]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_intervExp].[turnoLav]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_vie_getByPeriodoSearch].[@inizio]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_vie_getByPeriodoSearch].[@fine]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[varchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_vie_getByPeriodoSearch].[@inizio]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_vie_getByPeriodoSearch].[@fine]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_vie_getByPeriodoSearch].[@search]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA['']]></Value>
|
|
</Property>
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="196" />
|
|
<Property Name="Length" Value="2363" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="
-- =============================================
-- Author:		<Author,,Name>
-- Create date: <Create Date,,>
-- Description:	<Description,,>
-- =============================================
CREATE PROCEDURE [dbo].[stp_vie_getByPeriodoSearch] (
	@inizio DATETIME
	,@fine DATETIME
	,@search NVARCHAR(50) = ''
	)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_vscm_getByConditio]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
|
|
SELECT value, label, conditio
|
|
FROM v_selCausaliMacchine
|
|
WHERE (conditio = @conditio)
|
|
|
|
|
|
RETURN]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_selCausaliMacchine]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_selCausaliMacchine].[value]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_selCausaliMacchine].[label]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_selCausaliMacchine].[conditio]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_vscm_getByConditio].[@conditio]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_vscm_getByConditio].[@conditio]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[0]]></Value>
|
|
</Property>
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="200" />
|
|
<Property Name="Length" Value="387" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="-- =============================================
-- Author:		S.E.Locatelli
-- Create date: 2013.12.27
-- Description:	ricerca causali by conditio
-- =============================================
create PROCEDURE stp_vscm_getByConditio
(
	@conditio	INT = 0
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_vscm_getByConditioAndCurr]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
DECLARE @trovati INT = 0
|
|
|
|
SELECT @trovati = COUNT(*) FROM v_selCausaliMacchine WHERE value=@currVal AND conditio = @conditio
|
|
-- controllo se c'è valore ok così...
|
|
IF @trovati=1
|
|
BEGIN
|
|
SELECT value, label, conditio
|
|
FROM v_selCausaliMacchine
|
|
WHERE (conditio = @conditio)
|
|
END
|
|
ELSE
|
|
BEGIN
|
|
SELECT @currVal as value, '--- ### ---' as label, @conditio as conditio
|
|
|
|
UNION
|
|
|
|
SELECT value, label, conditio
|
|
FROM v_selCausaliMacchine
|
|
WHERE (conditio = @conditio)
|
|
END
|
|
|
|
|
|
|
|
RETURN]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_selCausaliMacchine]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_selCausaliMacchine].[value]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_vscm_getByConditioAndCurr].[@currVal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_selCausaliMacchine].[conditio]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_vscm_getByConditioAndCurr].[@conditio]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_selCausaliMacchine].[label]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_vscm_getByConditioAndCurr].[@conditio]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[0]]></Value>
|
|
</Property>
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_vscm_getByConditioAndCurr].[@currVal]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[0]]></Value>
|
|
</Property>
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="230" />
|
|
<Property Name="Length" Value="847" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="-- =============================================
-- Author:		S.E.Locatelli
-- Create date: 2013.12.27
-- Description:	ricerca causali by conditio + valore corrente (x storico)
-- =============================================
CREATE PROCEDURE stp_vscm_getByConditioAndCurr
(
	@conditio	INT = 0,
	@currVal	INT = 0
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_VSM_avail4Tag]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
SET NOCOUNT OFF;
|
|
BEGIN tran
|
|
|
|
SELECT am.*
|
|
FROM v_selMacchine am
|
|
WHERE value NOT IN
|
|
(
|
|
SELECT idxMacchina
|
|
FROM Tag2Macc t2m
|
|
WHERE t2m.TagCode = @TagCode
|
|
)
|
|
|
|
COMMIT tran]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_selMacchine]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_selMacchine].[value]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Tag2Macc]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Tag2Macc].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Tag2Macc].[TagCode]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_VSM_avail4Tag].[@TagCode]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_VSM_avail4Tag].[@TagCode]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="235" />
|
|
<Property Name="Length" Value="521" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="/*************************************
* STORED PROCEDURE stp_VSM_avail4Tag
*
* elenco macchine associabili x TAG (non assegnate di già...) 
*
* mod : 24/11/2015	
* aut : S.E. Locatelli
**************************************/
CREATE PROCEDURE stp_VSM_avail4Tag
(
	@TagCode nvarchar(50)
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[Tag2Item]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[Tag2Item].[idxItem]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[Tag2Item].[TagCode]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="110" />
|
|
<AttachedAnnotation Disambiguator="83" />
|
|
<AttachedAnnotation Disambiguator="84" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[Tag2Macc]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[Tag2Macc].[TagCode]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[Tag2Macc].[idxMacchina]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="111" />
|
|
<AttachedAnnotation Disambiguator="85" />
|
|
<AttachedAnnotation Disambiguator="86" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[tmp_importaMacchine]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[tmp_importaMacchine].[idGest]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="500" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[tmp_importaMacchine].[denominazione]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="500" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[tmp_importaMacchine].[costruttore]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="500" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[tmp_importaMacchine].[matricola]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[tmp_importaMacchine].[anno]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[tmp_importaMacchine].[reparto]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="500" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[tmp_importaMacchine].[Gruppo]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="500" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[tmp_importaMacchine].[idx]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Property Name="IsIdentity" Value="True" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="112" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[Tra_Ev2Stati]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[Tra_Ev2Stati].[idxStato]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[Tra_Ev2Stati].[idxEvento]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[Tra_Ev2Stati].[nextIdxStato]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="113" />
|
|
<AttachedAnnotation Disambiguator="87" />
|
|
<AttachedAnnotation Disambiguator="88" />
|
|
</Element>
|
|
<Element Type="SqlDmlTrigger" Name="[dbo].[trg_updateMPPending]">
|
|
<Property Name="IsUpdateTrigger" Value="True" />
|
|
<Property Name="IsDeleteTrigger" Value="True" />
|
|
<Property Name="SqlTriggerType" Value="1" />
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
|
|
BEGIN tran
|
|
-- elimino interventi pending interessati...
|
|
DELETE
|
|
FROM MtzProgPending
|
|
WHERE idxIntPro IN
|
|
(
|
|
-- prendendo gli interventi mtzProgrammata modificati...
|
|
SELECT DISTINCT idxIntPro FROM DELETED
|
|
)
|
|
|
|
COMMIT tran]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgPending]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgPending].[idxIntPro]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata].[idxIntPro]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parent">
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="Offset" Value="870" />
|
|
<Property Name="CreateOffset" Value="364" />
|
|
<Property Name="Length" Value="684" />
|
|
<Property Name="StartLine" Value="18" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="/*********************************************************************************
* TRIGGER trg_updateMPPending
*
* eliminazione, in caso di update di un intervento di MtzProgrammata, 
* dei record di interventi "pending" predisposti... così saranno rigenerati corretti
*
**********************************************************************************/
CREATE TRIGGER trg_updateMPPending
ON dbo.MtzProgrammata
FOR UPDATE, DELETE
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlDmlTrigger" Name="[dbo].[updateAssociazioneFamMacchine]">
|
|
<Property Name="IsInsertTrigger" Value="True" />
|
|
<Property Name="SqlTriggerType" Value="1" />
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
|
|
-- aggiungo le eventuali "macchine orfane" alla fam macchine di base (1 = TUTTE)
|
|
INSERT INTO Macchine2FamMacchine(idxMacchina, idxFamMacchine)
|
|
(
|
|
SELECT am.idxMacchina, 1 FROM anagMacchine am LEFT OUTER JOIN macchine2FamMacchine m2f
|
|
ON am.idxMacchina=m2f.idxMacchina
|
|
WHERE m2f.idxmacchina IS NULL
|
|
)]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[Macchine2FamMacchine]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Macchine2FamMacchine].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Macchine2FamMacchine].[idxFamMacchine]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Macchine2FamMacchine].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Macchine2FamMacchine].[idxMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parent">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="Offset" Value="849" />
|
|
<Property Name="CreateOffset" Value="2" />
|
|
<Property Name="Length" Value="393" />
|
|
<Property Name="StartLine" Value="19" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="
CREATE TRIGGER updateAssociazioneFamMacchine
ON dbo.AnagMacchine
FOR INSERT
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[UTENTE]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[UTENTE].[DOMINIO]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="30" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[varchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[UTENTE].[USER_NAME]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[UTENTE].[COGNOME]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="100" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[varchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[UTENTE].[NOME]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="100" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[varchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[UTENTE].[COD_SOCIETA]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="5" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[varchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[UTENTE].[MATRICOLA]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="5" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[varchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[UTENTE].[COD_CDC]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="10" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[varchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[UTENTE].[EMAIL]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="100" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[varchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[UTENTE].[SIGLA]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="5" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[UTENTE].[COD_LINGUA]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="3" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[varchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[UTENTE].[ATTIVO]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="1" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[char]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="114" />
|
|
<AttachedAnnotation Disambiguator="89" />
|
|
</Element>
|
|
<Element Type="SqlView" Name="[dbo].[v_datiMTBFMTTR]">
|
|
<Property Name="QueryScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
SELECT COUNT(numIntMtz) AS numInterventi, SUM(durataMtz) AS totOreMtz, SUM(durataOff) AS totOreOfficina, codImpianto, codMacchina, nomeImpianto,
|
|
nomeMacchina
|
|
FROM dbo.v_elencoIntervFilt
|
|
GROUP BY codImpianto, codMacchina, nomeImpianto, nomeMacchina]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_datiMTBFMTTR].[numInterventi]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_datiMTBFMTTR].[totOreMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_datiMTBFMTTR].[totOreOfficina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_datiMTBFMTTR].[codImpianto]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[codImpianto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_datiMTBFMTTR].[codMacchina]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[codMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_datiMTBFMTTR].[nomeImpianto]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[nomeImpianto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_datiMTBFMTTR].[nomeMacchina]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[nomeMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="QueryDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[numIntMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[durataMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[durataOff]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[codImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[codMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[nomeImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[nomeMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="Length" Value="321" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="CREATE VIEW dbo.v_datiMTBFMTTR
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlView" Name="[dbo].[v_elencoImpiantiMacchine]">
|
|
<Property Name="QueryScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
SELECT dbo.AnagImpianti.codImpianto, dbo.AnagImpianti.nomeImpianto, dbo.AnagImpianti.tipoImpianto, dbo.AnagMacchine.codMacchina, dbo.AnagMacchine.nomeMacchina,
|
|
dbo.AnagMacchine.modello, ISNULL(dbo.AnagMacchine.matricola, 'n.d.') AS matricola, dbo.AnagMacchine.anno, dbo.AnagMacchine.kgPeso,
|
|
dbo.AnagMacchine.kwConsumo
|
|
FROM dbo.AnagImpianti INNER JOIN
|
|
dbo.AnagMacchine ON dbo.AnagImpianti.idxImpianto = dbo.AnagMacchine.idxImpianto]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_elencoImpiantiMacchine].[codImpianto]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[codImpianto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_elencoImpiantiMacchine].[nomeImpianto]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[nomeImpianto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_elencoImpiantiMacchine].[tipoImpianto]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[tipoImpianto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_elencoImpiantiMacchine].[codMacchina]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[codMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_elencoImpiantiMacchine].[nomeMacchina]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[nomeMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_elencoImpiantiMacchine].[modello]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[modello]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_elencoImpiantiMacchine].[matricola]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_elencoImpiantiMacchine].[anno]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[anno]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_elencoImpiantiMacchine].[kgPeso]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[kgPeso]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_elencoImpiantiMacchine].[kwConsumo]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[kwConsumo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="QueryDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[idxImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[idxImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[codImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[nomeImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[tipoImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[codMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[nomeMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[modello]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[matricola]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[anno]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[kgPeso]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[kwConsumo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="Length" Value="556" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="CREATE VIEW v_elencoImpiantiMacchine
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlView" Name="[dbo].[v_elencoIntervFilt]">
|
|
<Property Name="QueryScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
SELECT TOP (100) PERCENT dbo.InterventiMtz.numIntMtz, dbo.InterventiMtz.richiesta, dbo.AnagImpianti.codImpianto, dbo.AnagImpianti.nomeImpianto,
|
|
dbo.AnagMacchine.codMacchina, dbo.AnagMacchine.nomeMacchina, dbo.InterventiMtz.descrizione, dbo.InterventiMtz.inizioIntervento,
|
|
dbo.InterventiMtz.fineIntervento, ISNULL(dbo.InterventiMtz.descrizioneIntervento, 'n.d. (report mtz)') AS descrizioneIntervento,
|
|
ISNULL(dbo.AnagCausali.descrCausale, 'n.d. (causale)') AS descrCausale, ROUND(CAST(ISNULL(dbo.v_interventiErogati.totMinErogati, 0) AS float) / 60, 2)
|
|
AS minErogati, dbo.f_diffOreLavorative(dbo.InterventiMtz.inizioIntervento, dbo.InterventiMtz.fineIntervento, dbo.InterventiMtz.idxMacchina) AS durataMtz,
|
|
CASE (isFermo) WHEN 1 THEN dbo.f_diffOreLavorative(dbo.InterventiMtz.guasto, dbo.InterventiMtz.fineIntervento, InterventiMtz.idxMacchina)
|
|
WHEN 0 THEN dbo.f_diffOreLavorative(dbo.InterventiMtz.inizioIntervento, dbo.InterventiMtz.fineIntervento, InterventiMtz.idxMacchina) END AS durataOff,
|
|
dbo.InterventiMtz.guasto, dbo.InterventiMtz.idxStato, dbo.InterventiMtz.idxImpianto, dbo.InterventiMtz.idxMacchina, dbo.InterventiMtz.isFermo,
|
|
dbo.InterventiMtz.scheduled
|
|
FROM dbo.InterventiMtz INNER JOIN
|
|
dbo.AnagAmbitoGuasto ON dbo.InterventiMtz.idxAmbito = dbo.AnagAmbitoGuasto.idxAmbito INNER JOIN
|
|
dbo.AnagImpianti ON dbo.InterventiMtz.idxImpianto = dbo.AnagImpianti.idxImpianto INNER JOIN
|
|
dbo.AnagMacchine ON dbo.InterventiMtz.idxMacchina = dbo.AnagMacchine.idxMacchina INNER JOIN
|
|
dbo.AnagTipoGuasto ON dbo.InterventiMtz.idxTipo = dbo.AnagTipoGuasto.idxTipo INNER JOIN
|
|
dbo.AnagPriorita ON dbo.InterventiMtz.idxPriorita = dbo.AnagPriorita.idxPriorita INNER JOIN
|
|
dbo.AnagStati ON dbo.InterventiMtz.idxStato = dbo.AnagStati.idxStato LEFT OUTER JOIN
|
|
dbo.v_interventiErogati ON dbo.InterventiMtz.numIntMtz = dbo.v_interventiErogati.numIntMtz LEFT OUTER JOIN
|
|
dbo.AnagCausali ON dbo.InterventiMtz.idxCausale = dbo.AnagCausali.idxCausale
|
|
ORDER BY dbo.InterventiMtz.numIntMtz DESC]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_elencoIntervFilt].[numIntMtz]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[numIntMtz]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_elencoIntervFilt].[richiesta]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[richiesta]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_elencoIntervFilt].[codImpianto]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[codImpianto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_elencoIntervFilt].[nomeImpianto]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[nomeImpianto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_elencoIntervFilt].[codMacchina]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[codMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_elencoIntervFilt].[nomeMacchina]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[nomeMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_elencoIntervFilt].[descrizione]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[descrizione]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_elencoIntervFilt].[inizioIntervento]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[inizioIntervento]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_elencoIntervFilt].[fineIntervento]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[fineIntervento]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_elencoIntervFilt].[descrizioneIntervento]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_elencoIntervFilt].[descrCausale]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_elencoIntervFilt].[minErogati]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_elencoIntervFilt].[durataMtz]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[f_diffOreLavorative]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_elencoIntervFilt].[durataOff]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_elencoIntervFilt].[guasto]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[guasto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_elencoIntervFilt].[idxStato]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxStato]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_elencoIntervFilt].[idxImpianto]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxImpianto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_elencoIntervFilt].[idxMacchina]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_elencoIntervFilt].[isFermo]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[isFermo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_elencoIntervFilt].[scheduled]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[scheduled]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="QueryDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagAmbitoGuasto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxAmbito]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagAmbitoGuasto].[idxAmbito]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[idxImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoGuasto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxTipo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoGuasto].[idxTipo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagPriorita]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxPriorita]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagPriorita].[idxPriorita]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagStati]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxStato]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagStati].[idxStato]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_interventiErogati]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[numIntMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_interventiErogati].[numIntMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagCausali]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxCausale]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagCausali].[idxCausale]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[numIntMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[richiesta]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[codImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[nomeImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[codMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[nomeMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[descrizione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[inizioIntervento]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[fineIntervento]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[descrizioneIntervento]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagCausali].[descrCausale]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[float]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_interventiErogati].[totMinErogati]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_diffOreLavorative]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[isFermo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_diffOreLavorative]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[guasto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxStato]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[isFermo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[scheduled]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="2" />
|
|
<Property Name="Length" Value="2452" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="
CREATE VIEW v_elencoIntervFilt
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlView" Name="[dbo].[v_interventiErogati]">
|
|
<Property Name="QueryScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
SELECT numIntMtz
|
|
,SUM(durataMinuti) AS totMinErogati
|
|
FROM dbo.InterventoOpMtz
|
|
GROUP BY numIntMtz]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_interventiErogati].[numIntMtz]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventoOpMtz].[numIntMtz]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_interventiErogati].[totMinErogati]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="QueryDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventoOpMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventoOpMtz].[numIntMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventoOpMtz].[durataMinuti]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="2" />
|
|
<Property Name="Length" Value="156" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="
CREATE VIEW [dbo].[v_interventiErogati]
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlView" Name="[dbo].[v_intervExp]">
|
|
<Property Name="QueryScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
SELECT TOP (100) PERCENT dbo.InterventiMtz.numIntMtz, dbo.InterventiMtz.richiesta, dbo.InterventiMtz.dataLav, dbo.InterventiMtz.turnoLav, dbo.InterventiMtz.matr,
|
|
dbo.InterventiMtz.guasto, dbo.InterventiMtz.idxAmbito, dbo.AnagAmbitoGuasto.descrAmbitoGuasto, dbo.InterventiMtz.idxPriorita, dbo.AnagPriorita.descrPriorita,
|
|
CASE dbo.InterventiMtz.isFermo WHEN 'True' THEN 'SI' ELSE 'NO' END AS isFermoSiNo, dbo.InterventiMtz.idxTipo, dbo.AnagTipoGuasto.descrTipo,
|
|
dbo.InterventiMtz.idxImpianto, dbo.AnagImpianti.codImpianto, dbo.AnagImpianti.nomeImpianto, dbo.InterventiMtz.idxMacchina, dbo.AnagMacchine.codMacchina,
|
|
dbo.AnagMacchine.nomeMacchina, dbo.InterventiMtz.descrizione, dbo.InterventiMtz.idxStato, dbo.AnagStati.DescrStato, ISNULL(dbo.InterventiMtz.presaInCarico,
|
|
dbo.InterventiMtz.richiesta) AS presaInCarico, ISNULL(dbo.InterventiMtz.inizioIntervento, ISNULL(dbo.InterventiMtz.presaInCarico, dbo.InterventiMtz.richiesta))
|
|
AS inizioIntervento, ISNULL(dbo.InterventiMtz.fineIntervento, GETDATE()) AS fineIntervento, dbo.InterventiMtz.descrizioneIntervento,
|
|
dbo.InterventiMtz.isPreventivabile, dbo.InterventiMtz.idxCausale, ISNULL(dbo.AnagCausali.descrCausale, 'N.D.') AS descrCausale, dbo.InterventiMtz.isFermo
|
|
FROM dbo.InterventiMtz INNER JOIN
|
|
dbo.AnagAmbitoGuasto ON dbo.InterventiMtz.idxAmbito = dbo.AnagAmbitoGuasto.idxAmbito INNER JOIN
|
|
dbo.AnagImpianti ON dbo.InterventiMtz.idxImpianto = dbo.AnagImpianti.idxImpianto INNER JOIN
|
|
dbo.AnagMacchine ON dbo.InterventiMtz.idxMacchina = dbo.AnagMacchine.idxMacchina INNER JOIN
|
|
dbo.AnagTipoGuasto ON dbo.InterventiMtz.idxTipo = dbo.AnagTipoGuasto.idxTipo INNER JOIN
|
|
dbo.AnagPriorita ON dbo.InterventiMtz.idxPriorita = dbo.AnagPriorita.idxPriorita INNER JOIN
|
|
dbo.AnagStati ON dbo.InterventiMtz.idxStato = dbo.AnagStati.idxStato LEFT OUTER JOIN
|
|
dbo.AnagCausali ON dbo.InterventiMtz.idxCausale = dbo.AnagCausali.idxCausale
|
|
ORDER BY dbo.InterventiMtz.numIntMtz DESC]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_intervExp].[numIntMtz]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[numIntMtz]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_intervExp].[richiesta]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[richiesta]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_intervExp].[dataLav]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[dataLav]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_intervExp].[turnoLav]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[turnoLav]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_intervExp].[matr]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[matr]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_intervExp].[guasto]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[guasto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_intervExp].[idxAmbito]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxAmbito]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_intervExp].[descrAmbitoGuasto]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagAmbitoGuasto].[descrAmbitoGuasto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_intervExp].[idxPriorita]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxPriorita]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_intervExp].[descrPriorita]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagPriorita].[descrPriorita]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_intervExp].[isFermoSiNo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_intervExp].[idxTipo]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxTipo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_intervExp].[descrTipo]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoGuasto].[descrTipo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_intervExp].[idxImpianto]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxImpianto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_intervExp].[codImpianto]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[codImpianto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_intervExp].[nomeImpianto]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[nomeImpianto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_intervExp].[idxMacchina]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_intervExp].[codMacchina]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[codMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_intervExp].[nomeMacchina]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[nomeMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_intervExp].[descrizione]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[descrizione]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_intervExp].[idxStato]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxStato]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_intervExp].[DescrStato]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagStati].[DescrStato]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_intervExp].[presaInCarico]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_intervExp].[inizioIntervento]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_intervExp].[fineIntervento]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_intervExp].[descrizioneIntervento]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[descrizioneIntervento]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_intervExp].[isPreventivabile]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[isPreventivabile]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_intervExp].[idxCausale]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxCausale]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_intervExp].[descrCausale]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_intervExp].[isFermo]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[isFermo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="QueryDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagAmbitoGuasto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxAmbito]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagAmbitoGuasto].[idxAmbito]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[idxImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoGuasto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxTipo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoGuasto].[idxTipo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagPriorita]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxPriorita]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagPriorita].[idxPriorita]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagStati]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxStato]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagStati].[idxStato]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagCausali]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxCausale]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagCausali].[idxCausale]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[numIntMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[richiesta]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[dataLav]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[turnoLav]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[matr]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[guasto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxAmbito]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagAmbitoGuasto].[descrAmbitoGuasto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxPriorita]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagPriorita].[descrPriorita]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[isFermo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxTipo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoGuasto].[descrTipo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[codImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[nomeImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[codMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[nomeMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[descrizione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxStato]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagStati].[DescrStato]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[presaInCarico]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[inizioIntervento]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[fineIntervento]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[descrizioneIntervento]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[isPreventivabile]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagCausali].[descrCausale]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="Length" Value="2289" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="CREATE VIEW dbo.v_intervExp
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlView" Name="[dbo].[v_macchine]">
|
|
<Property Name="QueryScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
SELECT dbo.AnagMacchine.idxMacchina, dbo.AnagMacchine.idxImpianto, dbo.AnagMacchine.codMacchina, dbo.AnagMacchine.nomeMacchina, dbo.AnagMacchine.modello,
|
|
dbo.AnagMacchine.matricola, dbo.AnagMacchine.anno, dbo.AnagMacchine.kgPeso, dbo.AnagMacchine.kwConsumo, dbo.AnagMacchine.funzDal,
|
|
dbo.AnagMacchine.funzAl, dbo.AnagImpianti.codImpianto + ' - ' + dbo.AnagImpianti.nomeImpianto AS descrImpianto
|
|
FROM dbo.AnagMacchine INNER JOIN
|
|
dbo.AnagImpianti ON dbo.AnagMacchine.idxImpianto = dbo.AnagImpianti.idxImpianto]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_macchine].[idxMacchina]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[idxMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_macchine].[idxImpianto]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[idxImpianto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_macchine].[codMacchina]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[codMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_macchine].[nomeMacchina]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[nomeMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_macchine].[modello]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[modello]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_macchine].[matricola]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[matricola]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_macchine].[anno]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[anno]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_macchine].[kgPeso]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[kgPeso]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_macchine].[kwConsumo]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[kwConsumo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_macchine].[funzDal]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[funzDal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_macchine].[funzAl]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[funzAl]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_macchine].[descrImpianto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="QueryDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[idxImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[idxImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[codMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[nomeMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[modello]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[matricola]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[anno]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[kgPeso]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[kwConsumo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[funzDal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[funzAl]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[codImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[nomeImpianto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="Length" Value="623" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="CREATE VIEW dbo.v_macchine
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlView" Name="[dbo].[v_MovMagExpl]">
|
|
<Property Name="QueryScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
SELECT dbo.MovMagRic.idxItem, dbo.MovMagRic.numIntMtz, dbo.MovMagRic.dtMov, dbo.MovMagRic.Qta, dbo.AnagItems.Famiglia, dbo.AnagItems.Descrizione, dbo.AnagItems.NomeCostruttore,
|
|
dbo.AnagItems.CodCostruttore, dbo.AnagItems.CodInterno, dbo.AnagItems.QtaMin, dbo.AnagItems.QtaLotto, dbo.AnagItems.Valore, dbo.MagRic.Note, dbo.MagRic.dtLastUpd, dbo.MagRic.CodLocazione,
|
|
dbo.AnagLocazioni.Descrizione AS DescrLocazione, dbo.MovMagRic.idxMacchina, dbo.MovMagRic.dtExport
|
|
FROM dbo.MovMagRic INNER JOIN
|
|
dbo.AnagItems ON dbo.MovMagRic.idxItem = dbo.AnagItems.idxItem INNER JOIN
|
|
dbo.MagRic ON dbo.AnagItems.idxItem = dbo.MagRic.idxItem LEFT OUTER JOIN
|
|
dbo.AnagLocazioni ON dbo.MagRic.CodLocazione = dbo.AnagLocazioni.CodLocazione]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_MovMagExpl].[idxItem]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[MovMagRic].[idxItem]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_MovMagExpl].[numIntMtz]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[MovMagRic].[numIntMtz]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_MovMagExpl].[dtMov]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[MovMagRic].[dtMov]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_MovMagExpl].[Qta]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[MovMagRic].[Qta]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_MovMagExpl].[Famiglia]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[Famiglia]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_MovMagExpl].[Descrizione]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[Descrizione]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_MovMagExpl].[NomeCostruttore]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[NomeCostruttore]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_MovMagExpl].[CodCostruttore]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[CodCostruttore]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_MovMagExpl].[CodInterno]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[CodInterno]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_MovMagExpl].[QtaMin]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[QtaMin]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_MovMagExpl].[QtaLotto]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[QtaLotto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_MovMagExpl].[Valore]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[Valore]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_MovMagExpl].[Note]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[MagRic].[Note]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_MovMagExpl].[dtLastUpd]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[MagRic].[dtLastUpd]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_MovMagExpl].[CodLocazione]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[MagRic].[CodLocazione]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_MovMagExpl].[DescrLocazione]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagLocazioni].[Descrizione]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_MovMagExpl].[idxMacchina]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[MovMagRic].[idxMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_MovMagExpl].[dtExport]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[MovMagRic].[dtExport]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="QueryDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[MovMagRic]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MovMagRic].[idxItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[idxItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MagRic]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[idxItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MagRic].[idxItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagLocazioni]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MagRic].[CodLocazione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagLocazioni].[CodLocazione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MovMagRic].[idxItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MovMagRic].[numIntMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MovMagRic].[dtMov]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MovMagRic].[Qta]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[Famiglia]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[Descrizione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[NomeCostruttore]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[CodCostruttore]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[CodInterno]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[QtaMin]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[QtaLotto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[Valore]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MagRic].[Note]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MagRic].[dtLastUpd]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagLocazioni].[Descrizione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MovMagRic].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MovMagRic].[dtExport]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="Length" Value="903" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="CREATE VIEW dbo.v_MovMagExpl
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlView" Name="[dbo].[v_movMagPend]">
|
|
<Property Name="QueryScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
SELECT idxItem, SUM(Qta) AS TotQtaMov
|
|
FROM dbo.MovMagRic
|
|
WHERE (dtExport IS NULL)
|
|
GROUP BY idxItem]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_movMagPend].[idxItem]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[MovMagRic].[idxItem]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_movMagPend].[TotQtaMov]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="QueryDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[MovMagRic]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MovMagRic].[idxItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MovMagRic].[Qta]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MovMagRic].[dtExport]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="Length" Value="160" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="CREATE VIEW dbo.v_movMagPend
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlView" Name="[dbo].[v_mtzProgExp]">
|
|
<Property Name="QueryScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
SELECT dbo.MtzProgrammata.idxIntPro, dbo.AnagImpianti.idxImpianto, dbo.MtzProgrammata.idxMacchina, dbo.AnagImpianti.codImpianto, dbo.AnagImpianti.nomeImpianto, dbo.AnagMacchine.codMacchina,
|
|
dbo.AnagMacchine.nomeMacchina, dbo.MtzProgrammata.inizio, dbo.MtzProgrammata.codFrequenza, dbo.AnagFrequenze.frequenza, dbo.MtzProgrammata.cadenza, dbo.MtzProgrammata.descrizione,
|
|
dbo.MtzProgrammata.idxPriorita, dbo.AnagPriorita.descrPriorita, dbo.MtzProgrammata.isFermo, dbo.MtzProgrammata.idxTipo, dbo.AnagTipoGuasto.descrTipo
|
|
FROM dbo.MtzProgrammata INNER JOIN
|
|
dbo.AnagMacchine ON dbo.MtzProgrammata.idxMacchina = dbo.AnagMacchine.idxMacchina INNER JOIN
|
|
dbo.AnagFrequenze ON dbo.MtzProgrammata.codFrequenza = dbo.AnagFrequenze.codFrequenza INNER JOIN
|
|
dbo.AnagPriorita ON dbo.MtzProgrammata.idxPriorita = dbo.AnagPriorita.idxPriorita INNER JOIN
|
|
dbo.AnagTipoGuasto ON dbo.MtzProgrammata.idxTipo = dbo.AnagTipoGuasto.idxTipo INNER JOIN
|
|
dbo.AnagImpianti ON dbo.AnagMacchine.idxImpianto = dbo.AnagImpianti.idxImpianto]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_mtzProgExp].[idxIntPro]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata].[idxIntPro]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_mtzProgExp].[idxImpianto]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[idxImpianto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_mtzProgExp].[idxMacchina]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata].[idxMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_mtzProgExp].[codImpianto]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[codImpianto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_mtzProgExp].[nomeImpianto]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[nomeImpianto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_mtzProgExp].[codMacchina]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[codMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_mtzProgExp].[nomeMacchina]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[nomeMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_mtzProgExp].[inizio]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata].[inizio]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_mtzProgExp].[codFrequenza]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata].[codFrequenza]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_mtzProgExp].[frequenza]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagFrequenze].[frequenza]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_mtzProgExp].[cadenza]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata].[cadenza]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_mtzProgExp].[descrizione]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata].[descrizione]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_mtzProgExp].[idxPriorita]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata].[idxPriorita]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_mtzProgExp].[descrPriorita]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagPriorita].[descrPriorita]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_mtzProgExp].[isFermo]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata].[isFermo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_mtzProgExp].[idxTipo]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata].[idxTipo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_mtzProgExp].[descrTipo]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoGuasto].[descrTipo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="QueryDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagFrequenze]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata].[codFrequenza]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagFrequenze].[codFrequenza]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagPriorita]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata].[idxPriorita]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagPriorita].[idxPriorita]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoGuasto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata].[idxTipo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoGuasto].[idxTipo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[idxImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[idxImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata].[idxIntPro]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[codImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[nomeImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[codMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[nomeMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata].[inizio]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata].[codFrequenza]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagFrequenze].[frequenza]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata].[cadenza]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata].[descrizione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata].[idxPriorita]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagPriorita].[descrPriorita]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata].[isFermo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgrammata].[idxTipo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoGuasto].[descrTipo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="Length" Value="1242" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="CREATE VIEW dbo.v_mtzProgExp
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlView" Name="[dbo].[v_mtzProgPendingExp]">
|
|
<Property Name="QueryScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
|
|
|
|
SELECT TOP (100) PERCENT dbo.MtzProgPending.idxPending, dbo.AnagImpianti.codImpianto, dbo.AnagImpianti.nomeImpianto, dbo.AnagMacchine.codMacchina,
|
|
dbo.AnagMacchine.nomeMacchina, dbo.MtzProgPending.data, dbo.MtzProgPending.descrizione, dbo.AnagPriorita.descrPriorita, dbo.MtzProgPending.isFermo,
|
|
dbo.AnagTipoGuasto.descrTipo, dbo.AnagTipoGuasto.idxTipo, dbo.AnagMacchine.idxMacchina, dbo.AnagMacchine.idxImpianto
|
|
FROM dbo.MtzProgPending INNER JOIN
|
|
dbo.AnagMacchine ON dbo.MtzProgPending.idxMacchina = dbo.AnagMacchine.idxMacchina INNER JOIN
|
|
dbo.AnagImpianti ON dbo.AnagMacchine.idxImpianto = dbo.AnagImpianti.idxImpianto INNER JOIN
|
|
dbo.AnagTipoGuasto ON dbo.MtzProgPending.idxTipo = dbo.AnagTipoGuasto.idxTipo INNER JOIN
|
|
dbo.AnagPriorita ON dbo.MtzProgPending.idxPriorita = dbo.AnagPriorita.idxPriorita
|
|
ORDER BY dbo.MtzProgPending.data]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_mtzProgPendingExp].[idxPending]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgPending].[idxPending]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_mtzProgPendingExp].[codImpianto]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[codImpianto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_mtzProgPendingExp].[nomeImpianto]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[nomeImpianto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_mtzProgPendingExp].[codMacchina]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[codMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_mtzProgPendingExp].[nomeMacchina]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[nomeMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_mtzProgPendingExp].[data]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgPending].[data]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_mtzProgPendingExp].[descrizione]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgPending].[descrizione]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_mtzProgPendingExp].[descrPriorita]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagPriorita].[descrPriorita]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_mtzProgPendingExp].[isFermo]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgPending].[isFermo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_mtzProgPendingExp].[descrTipo]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoGuasto].[descrTipo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_mtzProgPendingExp].[idxTipo]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoGuasto].[idxTipo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_mtzProgPendingExp].[idxMacchina]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[idxMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_mtzProgPendingExp].[idxImpianto]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[idxImpianto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="QueryDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgPending]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgPending].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[idxImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[idxImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoGuasto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgPending].[idxTipo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoGuasto].[idxTipo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagPriorita]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgPending].[idxPriorita]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagPriorita].[idxPriorita]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgPending].[idxPending]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[codImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[nomeImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[codMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[nomeMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgPending].[data]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgPending].[descrizione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagPriorita].[descrPriorita]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MtzProgPending].[isFermo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoGuasto].[descrTipo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoGuasto].[idxTipo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[idxImpianto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="Length" Value="1061" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="CREATE VIEW [dbo].[v_mtzProgPendingExp]
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlView" Name="[dbo].[v_reportSemestraleFix]">
|
|
<Property Name="QueryScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
SELECT numIntMtz AS 'Richiesta Webgim Nr.', codImpianto AS 'Codice Reparto', nomeImpianto AS 'Reparto', nomeMacchina AS 'Descrizione Macchina ', codMacchina AS 'Codice macchina', dbo.f_fixCR(descrizione)
|
|
AS 'Descrizione Guasto', dbo.f_fixCR(descrizioneIntervento) AS 'Descrizione Intervento MTZ', guasto AS 'Ora Guasto', richiesta AS 'Ora Richiesta Webgim', inizioIntervento AS 'Ora Inizio Intervento',
|
|
fineIntervento AS 'Ora Fine Intervento', durataMtz AS 'Ore intervento MTZ', durataOff AS 'Ore fermo Officina', minErogati AS 'Ore operatori MTZ'
|
|
FROM dbo.v_elencoIntervFilt
|
|
WHERE (guasto BETWEEN '20140101' AND '20140701')]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_reportSemestraleFix].[Richiesta Webgim Nr.]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[numIntMtz]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_reportSemestraleFix].[Codice Reparto]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[codImpianto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_reportSemestraleFix].[Reparto]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[nomeImpianto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_reportSemestraleFix].[Descrizione Macchina ]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[nomeMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_reportSemestraleFix].[Codice macchina]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[codMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_reportSemestraleFix].[Descrizione Guasto]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[f_fixCR]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_reportSemestraleFix].[Descrizione Intervento MTZ]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[f_fixCR]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_reportSemestraleFix].[Ora Guasto]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[guasto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_reportSemestraleFix].[Ora Richiesta Webgim]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[richiesta]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_reportSemestraleFix].[Ora Inizio Intervento]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[inizioIntervento]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_reportSemestraleFix].[Ora Fine Intervento]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[fineIntervento]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_reportSemestraleFix].[Ore intervento MTZ]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[durataMtz]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_reportSemestraleFix].[Ore fermo Officina]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[durataOff]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_reportSemestraleFix].[Ore operatori MTZ]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[minErogati]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="QueryDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[numIntMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[codImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[nomeImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[nomeMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[codMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[descrizione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_fixCR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[descrizioneIntervento]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_fixCR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[guasto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[richiesta]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[inizioIntervento]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[fineIntervento]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[durataMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[durataOff]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt].[minErogati]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="Length" Value="748" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="CREATE VIEW dbo.v_reportSemestraleFix
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlView" Name="[dbo].[v_risorseImpiegate]">
|
|
<Property Name="QueryScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
SELECT numIntMtz, SUM(TotImport) AS TotImport
|
|
FROM dbo.ImpiegoRisorse
|
|
GROUP BY numIntMtz]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_risorseImpiegate].[numIntMtz]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[ImpiegoRisorse].[numIntMtz]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_risorseImpiegate].[TotImport]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="QueryDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[ImpiegoRisorse]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ImpiegoRisorse].[numIntMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ImpiegoRisorse].[TotImport]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="Length" Value="148" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="CREATE VIEW dbo.v_risorseImpiegate
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlView" Name="[dbo].[v_selAmbiti]">
|
|
<Property Name="QueryScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
SELECT TOP (100) PERCENT idxAmbito AS value, descrAmbitoGuasto AS label
|
|
FROM dbo.AnagAmbitoGuasto
|
|
ORDER BY label]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_selAmbiti].[value]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagAmbitoGuasto].[idxAmbito]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_selAmbiti].[label]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagAmbitoGuasto].[descrAmbitoGuasto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="QueryDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagAmbitoGuasto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagAmbitoGuasto].[idxAmbito]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagAmbitoGuasto].[descrAmbitoGuasto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="Length" Value="159" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="CREATE VIEW dbo.v_selAmbiti
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlView" Name="[dbo].[v_selAnTipoRis]">
|
|
<Property Name="QueryScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
SELECT CodRisorsa AS value, DescrRisorsa + ' (' + UM + ')' AS label
|
|
FROM dbo.AnagTipoRisorsa]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_selAnTipoRis].[value]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoRisorsa].[CodRisorsa]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_selAnTipoRis].[label]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="QueryDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoRisorsa]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoRisorsa].[CodRisorsa]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoRisorsa].[DescrRisorsa]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoRisorsa].[UM]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="Length" Value="147" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="CREATE VIEW dbo.v_selAnTipoRis
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlView" Name="[dbo].[v_selCausaliMacchine]">
|
|
<Property Name="QueryScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
SELECT TOP (100) PERCENT dbo.AnagCausali.idxCausale AS value, dbo.AnagCausali.descrCausale AS label, dbo.Macchine2FamMacchine.idxMacchina AS conditio
|
|
FROM dbo.Macchine2FamMacchine INNER JOIN
|
|
dbo.AnagCausali ON dbo.Macchine2FamMacchine.idxFamMacchine = dbo.AnagCausali.idxFamMacchine
|
|
WHERE (dbo.AnagCausali.attiva = 1)
|
|
ORDER BY conditio, label]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_selCausaliMacchine].[value]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagCausali].[idxCausale]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_selCausaliMacchine].[label]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagCausali].[descrCausale]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_selCausaliMacchine].[conditio]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[Macchine2FamMacchine].[idxMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="QueryDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[Macchine2FamMacchine]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagCausali]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Macchine2FamMacchine].[idxFamMacchine]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagCausali].[idxFamMacchine]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagCausali].[idxCausale]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagCausali].[descrCausale]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Macchine2FamMacchine].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagCausali].[attiva]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="Length" Value="422" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="CREATE VIEW v_selCausaliMacchine
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlView" Name="[dbo].[v_selFam]">
|
|
<Property Name="QueryScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
SELECT idxFamMacchine AS value, nomeFamMacch AS label
|
|
FROM dbo.AnagFamMacchine]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_selFam].[value]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagFamMacchine].[idxFamMacchine]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_selFam].[label]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagFamMacchine].[nomeFamMacch]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="QueryDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagFamMacchine]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagFamMacchine].[idxFamMacchine]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagFamMacchine].[nomeFamMacch]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="Length" Value="117" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="create VIEW v_selFam
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlView" Name="[dbo].[v_selFamMacc]">
|
|
<Property Name="QueryScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
SELECT dbo.Macchine2FamMacchine.idxFamMacchine, dbo.AnagMacchine.idxMacchina, dbo.AnagFamMacchine.nomeFamMacch AS famiglia,
|
|
ISNULL(dbo.AnagMacchine.codMacchina, 'n.d.') + ' - ' + dbo.AnagMacchine.nomeMacchina + ', mod. ' + ISNULL(dbo.AnagMacchine.modello, 'n.d.')
|
|
+ ' (' + ISNULL(dbo.AnagMacchine.matricola, 'n.d.') + ')' AS macchina
|
|
FROM dbo.Macchine2FamMacchine INNER JOIN
|
|
dbo.AnagFamMacchine ON dbo.Macchine2FamMacchine.idxFamMacchine = dbo.AnagFamMacchine.idxFamMacchine INNER JOIN
|
|
dbo.AnagMacchine ON dbo.Macchine2FamMacchine.idxMacchina = dbo.AnagMacchine.idxMacchina]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_selFamMacc].[idxFamMacchine]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[Macchine2FamMacchine].[idxFamMacchine]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_selFamMacc].[idxMacchina]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[idxMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_selFamMacc].[famiglia]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagFamMacchine].[nomeFamMacch]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_selFamMacc].[macchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="QueryDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[Macchine2FamMacchine]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagFamMacchine]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Macchine2FamMacchine].[idxFamMacchine]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagFamMacchine].[idxFamMacchine]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Macchine2FamMacchine].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Macchine2FamMacchine].[idxFamMacchine]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagFamMacchine].[nomeFamMacch]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[codMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[nomeMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[modello]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[matricola]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="Length" Value="714" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="CREATE VIEW dbo.v_selFamMacc
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlView" Name="[dbo].[v_selFreq]">
|
|
<Property Name="QueryScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
SELECT codFrequenza AS value, frequenza AS label
|
|
FROM dbo.AnagFrequenze]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_selFreq].[value]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagFrequenze].[codFrequenza]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_selFreq].[label]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagFrequenze].[frequenza]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="QueryDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagFrequenze]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagFrequenze].[codFrequenza]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagFrequenze].[frequenza]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="Length" Value="115" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="CREATE VIEW dbo.v_selFreq
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlView" Name="[dbo].[v_selImpianti]">
|
|
<Property Name="QueryScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
SELECT TOP (100) PERCENT idxImpianto AS value, nomeImpianto + ' - ' + ISNULL(tipoImpianto, 'n.d.') + ' (' + ISNULL(codImpianto, 'n.d.') + ')' AS label
|
|
FROM dbo.AnagImpianti
|
|
ORDER BY label]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_selImpianti].[value]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[idxImpianto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_selImpianti].[label]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="QueryDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[idxImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[nomeImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[tipoImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[codImpianto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="Length" Value="236" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="CREATE VIEW dbo.v_selImpianti
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlView" Name="[dbo].[v_selListVal]">
|
|
<Property Name="QueryScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
SELECT TableName + '-' + FieldName + '-' + value AS value, label
|
|
FROM dbo.ListValues]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_selListVal].[value]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_selListVal].[label]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[ListValues].[label]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="QueryDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[ListValues]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ListValues].[TableName]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ListValues].[FieldName]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ListValues].[value]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ListValues].[label]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="2" />
|
|
<Property Name="Length" Value="143" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="
CREATE VIEW [dbo].[v_selListVal]
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlView" Name="[dbo].[v_selMacchine]">
|
|
<Property Name="QueryScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
SELECT TOP (100) PERCENT idxMacchina AS value, LTRIM(RTRIM(nomeMacchina)) + ' (' + ISNULL(codMacchina, 'n.d.') + ') ' + ', mod. ' + ISNULL(modello, 'n.d.')
|
|
+ ' (' + ISNULL(matricola, 'n.d.') + ')' AS label, idxImpianto AS conditio
|
|
FROM dbo.AnagMacchine
|
|
ORDER BY label]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_selMacchine].[value]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[idxMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_selMacchine].[label]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_selMacchine].[conditio]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[idxImpianto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="QueryDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[nomeMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[codMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[modello]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[matricola]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[idxImpianto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="Length" Value="340" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="CREATE VIEW dbo.v_selMacchine
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlView" Name="[dbo].[v_selOperMtz]">
|
|
<Property Name="QueryScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
SELECT TOP (100) PERCENT matrOp AS value, matrOp + ' - ' + Cognome + ' ' + Nome AS label
|
|
FROM dbo.AnagrOperMtz
|
|
ORDER BY label]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_selOperMtz].[value]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagrOperMtz].[matrOp]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_selOperMtz].[label]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="QueryDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagrOperMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagrOperMtz].[matrOp]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagrOperMtz].[Cognome]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagrOperMtz].[Nome]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="Length" Value="169" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="create VIEW v_selOperMtz
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlView" Name="[dbo].[v_selPeriodiTrad]">
|
|
<Property Name="QueryScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
SELECT TOP (100) PERCENT dbo.AnagPeriodi.codPeriodo AS value, dbo.v_vocabolario.Traduzione AS label, dbo.v_vocabolario.Lingua AS conditio
|
|
FROM dbo.AnagPeriodi INNER JOIN
|
|
dbo.v_vocabolario ON dbo.AnagPeriodi.lemmaPeriodo = dbo.v_vocabolario.Lemma
|
|
ORDER BY label]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_selPeriodiTrad].[value]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagPeriodi].[codPeriodo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_selPeriodiTrad].[label]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_vocabolario].[Traduzione]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_selPeriodiTrad].[conditio]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_vocabolario].[Lingua]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="QueryDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagPeriodi]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_vocabolario]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagPeriodi].[lemmaPeriodo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_vocabolario].[Lemma]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagPeriodi].[codPeriodo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_vocabolario].[Traduzione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_vocabolario].[Lingua]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="Length" Value="335" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="CREATE VIEW dbo.v_selPeriodiTrad
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlView" Name="[dbo].[v_selPrior]">
|
|
<Property Name="QueryScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
SELECT TOP (100) PERCENT idxPriorita AS value, CAST(idxPriorita AS varchar(4)) + ' - ' + descrPriorita AS label
|
|
FROM dbo.AnagPriorita
|
|
ORDER BY label]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_selPrior].[value]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagPriorita].[idxPriorita]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_selPrior].[label]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="QueryDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagPriorita]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagPriorita].[idxPriorita]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[varchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagPriorita].[descrPriorita]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="Length" Value="194" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="CREATE VIEW dbo.v_selPrior
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlView" Name="[dbo].[v_selSemafori]">
|
|
<Property Name="QueryScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
SELECT TOP (100) PERCENT codSemaforo AS value, descrSemaforo AS label
|
|
FROM dbo.AnagSemafori
|
|
ORDER BY label]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_selSemafori].[value]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagSemafori].[codSemaforo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_selSemafori].[label]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagSemafori].[descrSemaforo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="QueryDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagSemafori]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagSemafori].[codSemaforo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagSemafori].[descrSemaforo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="Length" Value="155" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="CREATE VIEW dbo.v_selSemafori
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlView" Name="[dbo].[v_selStato]">
|
|
<Property Name="QueryScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
SELECT idxStato AS value, DescrStato AS label
|
|
FROM dbo.AnagStati]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_selStato].[value]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagStati].[idxStato]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_selStato].[label]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagStati].[DescrStato]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="QueryDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagStati]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagStati].[idxStato]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagStati].[DescrStato]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="Length" Value="109" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="CREATE VIEW dbo.v_selStato
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlView" Name="[dbo].[v_selTipoGuasto]">
|
|
<Property Name="QueryScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
SELECT TOP (100) PERCENT idxTipo AS value, descrTipo AS label
|
|
FROM dbo.AnagTipoGuasto
|
|
ORDER BY label]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_selTipoGuasto].[value]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoGuasto].[idxTipo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_selTipoGuasto].[label]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoGuasto].[descrTipo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="QueryDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoGuasto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoGuasto].[idxTipo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoGuasto].[descrTipo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="Length" Value="151" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="CREATE VIEW dbo.v_selTipoGuasto
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlView" Name="[dbo].[v_selUtentiAll]">
|
|
<Property Name="QueryScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
SELECT USER_NAME AS value, COGNOME + ' ' + NOME + ', matr' + MATRICOLA + ' (cdc: ' + COD_CDC + ')' AS label, COD_CDC, ATTIVO
|
|
FROM dbo.UTENTE AS ut]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_selUtentiAll].[value]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[UTENTE].[USER_NAME]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_selUtentiAll].[label]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_selUtentiAll].[COD_CDC]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[UTENTE].[COD_CDC]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_selUtentiAll].[ATTIVO]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[UTENTE].[ATTIVO]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="QueryDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[UTENTE]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[UTENTE].[USER_NAME]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[UTENTE].[COGNOME]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[UTENTE].[NOME]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[UTENTE].[MATRICOLA]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[UTENTE].[COD_CDC]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[UTENTE].[ATTIVO]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="Length" Value="193" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="create VIEW v_selUtentiAll
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlView" Name="[dbo].[v_selUtentiShort]">
|
|
<Property Name="QueryScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
SELECT USER_NAME AS value, COGNOME + ' ' + NOME AS label, COD_CDC, ATTIVO
|
|
FROM dbo.UTENTE AS ut]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_selUtentiShort].[value]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[UTENTE].[USER_NAME]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_selUtentiShort].[label]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_selUtentiShort].[COD_CDC]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[UTENTE].[COD_CDC]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_selUtentiShort].[ATTIVO]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[UTENTE].[ATTIVO]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="QueryDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[UTENTE]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[UTENTE].[USER_NAME]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[UTENTE].[COGNOME]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[UTENTE].[NOME]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[UTENTE].[COD_CDC]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[UTENTE].[ATTIVO]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="Length" Value="142" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="create VIEW v_selUtentiShort
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlView" Name="[dbo].[v_selUtentiShortAD]">
|
|
<Property Name="QueryScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
SELECT DOMINIO + '\' + USER_NAME AS value, COGNOME + ' ' + NOME AS label, COD_CDC, ATTIVO
|
|
FROM dbo.UTENTE AS ut]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_selUtentiShortAD].[value]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_selUtentiShortAD].[label]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_selUtentiShortAD].[COD_CDC]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[UTENTE].[COD_CDC]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_selUtentiShortAD].[ATTIVO]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[UTENTE].[ATTIVO]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="QueryDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[UTENTE]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[UTENTE].[DOMINIO]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[UTENTE].[USER_NAME]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[UTENTE].[COGNOME]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[UTENTE].[NOME]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[UTENTE].[COD_CDC]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[UTENTE].[ATTIVO]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="Length" Value="160" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="create VIEW v_selUtentiShortAD
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlView" Name="[dbo].[v_StatoMag]">
|
|
<Property Name="QueryScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
SELECT dbo.AnagItems.idxItem, dbo.AnagItems.Famiglia, dbo.AnagItems.Descrizione, dbo.AnagItems.NomeCostruttore, dbo.AnagItems.CodCostruttore, dbo.AnagItems.CodInterno, dbo.AnagItems.QtaMin,
|
|
dbo.AnagItems.QtaLotto, dbo.AnagItems.Valore, ISNULL(dbo.MagRic.Giacenza, 0) + ISNULL(dbo.v_movMagPend.TotQtaMov, 0) AS Giacenza, dbo.AnagLocazioni.CodLocazione,
|
|
dbo.AnagLocazioni.Descrizione AS DescrLocazione, dbo.MagRic.Note, dbo.MagRic.dtLastUpd
|
|
FROM dbo.AnagItems INNER JOIN
|
|
dbo.MagRic ON dbo.AnagItems.idxItem = dbo.MagRic.idxItem LEFT OUTER JOIN
|
|
dbo.v_movMagPend ON dbo.MagRic.idxItem = dbo.v_movMagPend.idxItem LEFT OUTER JOIN
|
|
dbo.AnagLocazioni ON dbo.MagRic.CodLocazione = dbo.AnagLocazioni.CodLocazione]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_StatoMag].[idxItem]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[idxItem]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_StatoMag].[Famiglia]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[Famiglia]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_StatoMag].[Descrizione]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[Descrizione]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_StatoMag].[NomeCostruttore]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[NomeCostruttore]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_StatoMag].[CodCostruttore]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[CodCostruttore]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_StatoMag].[CodInterno]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[CodInterno]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_StatoMag].[QtaMin]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[QtaMin]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_StatoMag].[QtaLotto]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[QtaLotto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_StatoMag].[Valore]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[Valore]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_StatoMag].[Giacenza]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_StatoMag].[CodLocazione]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagLocazioni].[CodLocazione]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_StatoMag].[DescrLocazione]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagLocazioni].[Descrizione]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_StatoMag].[Note]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[MagRic].[Note]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_StatoMag].[dtLastUpd]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[MagRic].[dtLastUpd]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="QueryDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MagRic]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[idxItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MagRic].[idxItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_movMagPend]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MagRic].[idxItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_movMagPend].[idxItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagLocazioni]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MagRic].[CodLocazione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagLocazioni].[CodLocazione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[idxItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[Famiglia]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[Descrizione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[NomeCostruttore]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[CodCostruttore]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[CodInterno]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[QtaMin]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[QtaLotto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[Valore]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MagRic].[Giacenza]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_movMagPend].[TotQtaMov]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagLocazioni].[Descrizione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MagRic].[Note]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MagRic].[dtLastUpd]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="Length" Value="884" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="CREATE VIEW dbo.v_StatoMag
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlView" Name="[dbo].[v_vocabolario]">
|
|
<Property Name="QueryScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
SELECT Lingua, Lemma, Traduzione
|
|
FROM dbo.Vocabolario]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_vocabolario].[Lingua]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[Vocabolario].[Lingua]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_vocabolario].[Lemma]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[Vocabolario].[Lemma]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_vocabolario].[Traduzione]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[Vocabolario].[Traduzione]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="QueryDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[Vocabolario]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Vocabolario].[Lingua]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Vocabolario].[Lemma]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Vocabolario].[Traduzione]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="Length" Value="103" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="CREATE VIEW v_vocabolario
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[Vocabolario]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[Vocabolario].[Lingua]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="3" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[Vocabolario].[Lemma]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[Vocabolario].[Traduzione]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="500" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="115" />
|
|
<AttachedAnnotation Disambiguator="90" />
|
|
</Element>
|
|
<Element Type="SqlIndex" Name="[dbo].[Vocabolario].[I_lemma]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[Vocabolario].[Lemma]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="IndexedObject">
|
|
<Entry>
|
|
<References Name="[dbo].[Vocabolario]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlSchema" Name="[dwh]">
|
|
<Relationship Name="Authorizer">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlView" Name="[dwh].[VDWH_AnagStati]">
|
|
<Property Name="QueryScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
SELECT idxStato, DescrStato
|
|
FROM dbo.AnagStati]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_AnagStati].[idxStato]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagStati].[idxStato]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_AnagStati].[DescrStato]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagStati].[DescrStato]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="QueryDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagStati]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagStati].[idxStato]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagStati].[DescrStato]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References Name="[dwh]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="Length" Value="103" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="CREATE VIEW [dwh].VDWH_AnagStati
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlView" Name="[dwh].[VDWH_DettaglioInterv_OLD]">
|
|
<Property Name="QueryScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
|
|
/*
|
|
Obsoleta - I campi sono stati tutti inseriti nella VDWH_ElencoInterventi
|
|
*/
|
|
|
|
SELECT
|
|
dbo.InterventiMtz.numIntMtz
|
|
-- ,dbo.InterventiMtz.richiesta
|
|
,dbo.InterventiMtz.dataLav AS Data
|
|
,dbo.InterventiMtz.turnoLav AS Turno
|
|
,dbo.InterventiMtz.matr AS matr
|
|
-- ,dbo.InterventiMtz.guasto
|
|
-- ,dbo.InterventiMtz.idxAmbito
|
|
,dbo.AnagAmbitoGuasto.descrAmbitoGuasto
|
|
-- ,dbo.InterventiMtz.idxPriorita
|
|
,dbo.AnagPriorita.descrPriorita
|
|
-- ,CASE dbo.InterventiMtz.isFermo WHEN 'True' THEN 'SI' ELSE 'NO' END AS isFermoSiNo
|
|
-- ,dbo.InterventiMtz.idxTipo
|
|
,dbo.AnagTipoGuasto.descrTipo
|
|
-- ,dbo.InterventiMtz.idxImpianto
|
|
-- ,dbo.AnagImpianti.codImpianto
|
|
-- ,dbo.AnagImpianti.nomeImpianto
|
|
-- ,dbo.InterventiMtz.idxMacchina
|
|
-- ,dbo.AnagMacchine.codMacchina
|
|
-- ,dbo.AnagMacchine.nomeMacchina
|
|
-- ,dbo.InterventiMtz.descrizione
|
|
-- ,dbo.InterventiMtz.idxStato
|
|
,dbo.AnagStati.DescrStato
|
|
,ISNULL(dbo.InterventiMtz.presaInCarico, dbo.InterventiMtz.richiesta) AS presaInCarico
|
|
,ISNULL(dbo.InterventiMtz.inizioIntervento, ISNULL(dbo.InterventiMtz.presaInCarico, dbo.InterventiMtz.richiesta)) AS inizioIntervento
|
|
,ISNULL(dbo.InterventiMtz.fineIntervento, GETDATE()) AS fineIntervento
|
|
-- ,dbo.InterventiMtz.descrizioneIntervento
|
|
,dbo.InterventiMtz.isPreventivabile
|
|
-- ,dbo.InterventiMtz.idxCausale
|
|
,ISNULL(dbo.AnagCausali.descrCausale, 'N.D.') AS descrCausale
|
|
,dbo.InterventiMtz.isFermo
|
|
FROM dbo.InterventiMtz
|
|
INNER JOIN dbo.AnagAmbitoGuasto ON dbo.InterventiMtz.idxAmbito = dbo.AnagAmbitoGuasto.idxAmbito
|
|
INNER JOIN dbo.AnagImpianti ON dbo.InterventiMtz.idxImpianto = dbo.AnagImpianti.idxImpianto
|
|
INNER JOIN dbo.AnagMacchine ON dbo.InterventiMtz.idxMacchina = dbo.AnagMacchine.idxMacchina
|
|
INNER JOIN dbo.AnagTipoGuasto ON dbo.InterventiMtz.idxTipo = dbo.AnagTipoGuasto.idxTipo
|
|
INNER JOIN dbo.AnagPriorita ON dbo.InterventiMtz.idxPriorita = dbo.AnagPriorita.idxPriorita
|
|
INNER JOIN dbo.AnagStati ON dbo.InterventiMtz.idxStato = dbo.AnagStati.idxStato
|
|
LEFT JOIN dbo.AnagCausali ON dbo.InterventiMtz.idxCausale = dbo.AnagCausali.idxCausale
|
|
|
|
|
|
/*
|
|
SELECT numIntMtz
|
|
,dataLav AS Data
|
|
,turnoLav AS Turno
|
|
,matr
|
|
,descrAmbitoGuasto
|
|
,descrPriorita
|
|
,descrTipo
|
|
,DescrStato
|
|
,presaInCarico
|
|
,inizioIntervento
|
|
,fineIntervento
|
|
,isPreventivabile
|
|
,descrCausale
|
|
,isFermo
|
|
FROM dbo.v_intervExp
|
|
*/]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_DettaglioInterv_OLD].[numIntMtz]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[numIntMtz]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_DettaglioInterv_OLD].[Data]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[dataLav]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_DettaglioInterv_OLD].[Turno]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[turnoLav]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_DettaglioInterv_OLD].[matr]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[matr]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_DettaglioInterv_OLD].[descrAmbitoGuasto]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagAmbitoGuasto].[descrAmbitoGuasto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_DettaglioInterv_OLD].[descrPriorita]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagPriorita].[descrPriorita]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_DettaglioInterv_OLD].[descrTipo]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoGuasto].[descrTipo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_DettaglioInterv_OLD].[DescrStato]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagStati].[DescrStato]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_DettaglioInterv_OLD].[presaInCarico]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_DettaglioInterv_OLD].[inizioIntervento]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_DettaglioInterv_OLD].[fineIntervento]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_DettaglioInterv_OLD].[isPreventivabile]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[isPreventivabile]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_DettaglioInterv_OLD].[descrCausale]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_DettaglioInterv_OLD].[isFermo]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[isFermo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="QueryDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagAmbitoGuasto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxAmbito]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagAmbitoGuasto].[idxAmbito]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[idxImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoGuasto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxTipo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoGuasto].[idxTipo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagPriorita]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxPriorita]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagPriorita].[idxPriorita]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagStati]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxStato]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagStati].[idxStato]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagCausali]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxCausale]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagCausali].[idxCausale]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[numIntMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[dataLav]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[turnoLav]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[matr]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagAmbitoGuasto].[descrAmbitoGuasto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagPriorita].[descrPriorita]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoGuasto].[descrTipo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagStati].[DescrStato]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[presaInCarico]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[richiesta]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[inizioIntervento]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[fineIntervento]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[isPreventivabile]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagCausali].[descrCausale]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[isFermo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References Name="[dwh]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="6" />
|
|
<Property Name="Length" Value="2547" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="


CREATE VIEW [dwh].[VDWH_DettaglioInterv_OLD]
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlView" Name="[dwh].[VDWH_ElencoInterventi]">
|
|
<Property Name="QueryScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
/*
|
|
messo in cte i campi della dbo.v_elencoIntervFilt + aggiunti i campi mancanti da da VDWH_DettaglioInterv
|
|
*/
|
|
WITH cte AS
|
|
(
|
|
SELECT
|
|
dbo.InterventiMtz.numIntMtz
|
|
,dbo.InterventiMtz.richiesta
|
|
,dbo.AnagImpianti.codImpianto
|
|
,dbo.AnagImpianti.nomeImpianto
|
|
,dbo.AnagMacchine.codMacchina
|
|
,dbo.AnagMacchine.nomeMacchina
|
|
,dbo.InterventiMtz.descrizione
|
|
,dbo.InterventiMtz.inizioIntervento
|
|
,dbo.InterventiMtz.fineIntervento
|
|
,ISNULL(dbo.InterventiMtz.descrizioneIntervento, 'n.d. (report mtz)') AS descrizioneIntervento
|
|
,ISNULL(dbo.AnagCausali.descrCausale, 'n.d. (causale)') AS descrCausale
|
|
,ROUND(CAST(ISNULL(dbo.v_interventiErogati.totMinErogati, 0) AS FLOAT) / 60, 2) AS minErogati
|
|
,dbo.f_diffOreLavorative(dbo.InterventiMtz.inizioIntervento, dbo.InterventiMtz.fineIntervento, dbo.InterventiMtz.idxMacchina) AS durataMtz
|
|
,CASE (isFermo) WHEN 1 THEN dbo.f_diffOreLavorative(dbo.InterventiMtz.guasto, dbo.InterventiMtz.fineIntervento, InterventiMtz.idxMacchina)
|
|
WHEN 0 THEN dbo.f_diffOreLavorative(dbo.InterventiMtz.inizioIntervento, dbo.InterventiMtz.fineIntervento, InterventiMtz.idxMacchina)
|
|
END AS durataOff
|
|
,dbo.InterventiMtz.guasto
|
|
,dbo.InterventiMtz.idxStato
|
|
,dbo.InterventiMtz.idxImpianto
|
|
,dbo.InterventiMtz.idxMacchina
|
|
-- ,dbo.InterventiMtz.isFermo
|
|
,CASE dbo.InterventiMtz.isFermo WHEN 'True' THEN 'SI' ELSE 'NO' END AS isFermo
|
|
,dbo.InterventiMtz.scheduled
|
|
-- aggiunti da VDWH_DettaglioInterv
|
|
,dbo.InterventiMtz.turnoLav
|
|
,dbo.InterventiMtz.matr
|
|
,dbo.AnagAmbitoGuasto.descrAmbitoGuasto
|
|
,dbo.AnagPriorita.descrPriorita
|
|
,dbo.AnagTipoGuasto.descrTipo
|
|
,dbo.AnagStati.DescrStato
|
|
,ISNULL(dbo.InterventiMtz.presaInCarico, dbo.InterventiMtz.richiesta) AS presaInCarico
|
|
,dbo.InterventiMtz.isPreventivabile
|
|
,dbo.AnagFamMacchine.nomeFamMacch
|
|
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 JOIN dbo.v_interventiErogati ON dbo.InterventiMtz.numIntMtz = dbo.v_interventiErogati.numIntMtz
|
|
LEFT JOIN dbo.AnagCausali ON dbo.InterventiMtz.idxCausale = dbo.AnagCausali.idxCausale
|
|
INNER JOIN dbo.AnagFamMacchine ON dbo.AnagCausali.idxFamMacchine = dbo.AnagFamMacchine.idxFamMacchine
|
|
-- ORDER BY dbo.InterventiMtz.numIntMtz DESC
|
|
)
|
|
SELECT numIntMtz AS [Richiesta Webgim Nr.]
|
|
,codImpianto AS [Codice Reparto]
|
|
,nomeImpianto AS Reparto
|
|
,nomeMacchina AS [Descrizione Macchina ]
|
|
,codMacchina AS [Codice macchina]
|
|
,dbo.f_fixCR(descrizione) AS [Descrizione Guasto]
|
|
,dbo.f_fixCR(descrizioneIntervento) AS [Descrizione Intervento MTZ]
|
|
,guasto AS [Ora Guasto]
|
|
,richiesta AS [Ora Richiesta Webgim]
|
|
,inizioIntervento AS [Ora Inizio Intervento]
|
|
,fineIntervento AS [Ora Fine Intervento]
|
|
,durataMtz AS [Ore intervento MTZ]
|
|
,durataOff AS [Ore fermo Officina]
|
|
,minErogati AS [Ore operatori MTZ]
|
|
,turnoLav AS Turno
|
|
,matr AS Matricola
|
|
,descrAmbitoGuasto AS [Ambito Guasto]
|
|
,descrPriorita AS [Descrizione Priorita]
|
|
,DescrStato AS [Descrizione Stato]
|
|
,presaInCarico AS [Presa in Carico]
|
|
,isPreventivabile AS [Preventivabile]
|
|
,descrCausale AS [Descrizione Causale]
|
|
,isFermo AS [isFermo]
|
|
,descrTipo AS [Tipo Guasto]
|
|
,nomeFamMacch AS [Famiglia Causale]
|
|
FROM cte
|
|
|
|
/*
|
|
SELECT numIntMtz AS [Richiesta Webgim Nr.]
|
|
,codImpianto AS [Codice Reparto]
|
|
,nomeImpianto AS Reparto
|
|
,nomeMacchina AS [Descrizione Macchina ]
|
|
,codMacchina AS [Codice macchina]
|
|
,dbo.f_fixCR(descrizione) AS [Descrizione Guasto]
|
|
,dbo.f_fixCR(descrizioneIntervento) AS [Descrizione Intervento MTZ]
|
|
,guasto AS [Ora Guasto]
|
|
,richiesta AS [Ora Richiesta Webgim]
|
|
,inizioIntervento AS [Ora Inizio Intervento]
|
|
,fineIntervento AS [Ora Fine Intervento]
|
|
,durataMtz AS [Ore intervento MTZ]
|
|
,durataOff AS [Ore fermo Officina]
|
|
,minErogati AS [Ore operatori MTZ]
|
|
FROM dbo.v_elencoIntervFilt
|
|
*/]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ElencoInterventi].[Richiesta Webgim Nr.]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[numIntMtz]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ElencoInterventi].[Codice Reparto]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[codImpianto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ElencoInterventi].[Reparto]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[nomeImpianto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ElencoInterventi].[Descrizione Macchina ]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[nomeMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ElencoInterventi].[Codice macchina]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[codMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ElencoInterventi].[Descrizione Guasto]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[f_fixCR]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ElencoInterventi].[Descrizione Intervento MTZ]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[f_fixCR]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ElencoInterventi].[Ora Guasto]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[guasto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ElencoInterventi].[Ora Richiesta Webgim]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[richiesta]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ElencoInterventi].[Ora Inizio Intervento]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[inizioIntervento]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ElencoInterventi].[Ora Fine Intervento]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[fineIntervento]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ElencoInterventi].[Ore intervento MTZ]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[f_diffOreLavorative]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ElencoInterventi].[Ore fermo Officina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ElencoInterventi].[Ore operatori MTZ]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ElencoInterventi].[Turno]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[turnoLav]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ElencoInterventi].[Matricola]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[matr]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ElencoInterventi].[Ambito Guasto]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagAmbitoGuasto].[descrAmbitoGuasto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ElencoInterventi].[Descrizione Priorita]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagPriorita].[descrPriorita]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ElencoInterventi].[Descrizione Stato]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagStati].[DescrStato]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ElencoInterventi].[Presa in Carico]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ElencoInterventi].[Preventivabile]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[isPreventivabile]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ElencoInterventi].[Descrizione Causale]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ElencoInterventi].[isFermo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ElencoInterventi].[Tipo Guasto]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoGuasto].[descrTipo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ElencoInterventi].[Famiglia Causale]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagFamMacchine].[nomeFamMacch]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DynamicObjects">
|
|
<Entry>
|
|
<Element Type="SqlDynamicColumnSource" Name="[dwh].[VDWH_ElencoInterventi].[CTE1].[cte]">
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ElencoInterventi].[CTE1].[cte].[numIntMtz]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[numIntMtz]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ElencoInterventi].[CTE1].[cte].[richiesta]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[richiesta]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ElencoInterventi].[CTE1].[cte].[codImpianto]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[codImpianto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ElencoInterventi].[CTE1].[cte].[nomeImpianto]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[nomeImpianto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ElencoInterventi].[CTE1].[cte].[codMacchina]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[codMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ElencoInterventi].[CTE1].[cte].[nomeMacchina]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[nomeMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ElencoInterventi].[CTE1].[cte].[descrizione]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[descrizione]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ElencoInterventi].[CTE1].[cte].[inizioIntervento]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[inizioIntervento]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ElencoInterventi].[CTE1].[cte].[fineIntervento]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[fineIntervento]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ElencoInterventi].[CTE1].[cte].[descrizioneIntervento]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ElencoInterventi].[CTE1].[cte].[descrCausale]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ElencoInterventi].[CTE1].[cte].[minErogati]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ElencoInterventi].[CTE1].[cte].[durataMtz]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[f_diffOreLavorative]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ElencoInterventi].[CTE1].[cte].[durataOff]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ElencoInterventi].[CTE1].[cte].[guasto]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[guasto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ElencoInterventi].[CTE1].[cte].[idxStato]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxStato]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ElencoInterventi].[CTE1].[cte].[idxImpianto]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxImpianto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ElencoInterventi].[CTE1].[cte].[idxMacchina]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ElencoInterventi].[CTE1].[cte].[isFermo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ElencoInterventi].[CTE1].[cte].[scheduled]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[scheduled]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ElencoInterventi].[CTE1].[cte].[turnoLav]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[turnoLav]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ElencoInterventi].[CTE1].[cte].[matr]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[matr]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ElencoInterventi].[CTE1].[cte].[descrAmbitoGuasto]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagAmbitoGuasto].[descrAmbitoGuasto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ElencoInterventi].[CTE1].[cte].[descrPriorita]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagPriorita].[descrPriorita]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ElencoInterventi].[CTE1].[cte].[descrTipo]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoGuasto].[descrTipo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ElencoInterventi].[CTE1].[cte].[DescrStato]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagStati].[DescrStato]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ElencoInterventi].[CTE1].[cte].[presaInCarico]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ElencoInterventi].[CTE1].[cte].[isPreventivabile]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[isPreventivabile]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ElencoInterventi].[CTE1].[cte].[nomeFamMacch]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagFamMacchine].[nomeFamMacch]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="QueryDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagAmbitoGuasto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxAmbito]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagAmbitoGuasto].[idxAmbito]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[idxImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoGuasto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxTipo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoGuasto].[idxTipo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagPriorita]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxPriorita]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagPriorita].[idxPriorita]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagStati]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxStato]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagStati].[idxStato]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_interventiErogati]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[numIntMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_interventiErogati].[numIntMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagCausali]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxCausale]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagCausali].[idxCausale]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagFamMacchine]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagCausali].[idxFamMacchine]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagFamMacchine].[idxFamMacchine]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[numIntMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[richiesta]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[codImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[nomeImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[codMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[nomeMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[descrizione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[inizioIntervento]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[fineIntervento]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[descrizioneIntervento]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagCausali].[descrCausale]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[float]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_interventiErogati].[totMinErogati]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_diffOreLavorative]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[isFermo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_diffOreLavorative]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[guasto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxStato]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[isFermo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[scheduled]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[turnoLav]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[matr]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagAmbitoGuasto].[descrAmbitoGuasto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagPriorita].[descrPriorita]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoGuasto].[descrTipo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagStati].[DescrStato]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[presaInCarico]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[isPreventivabile]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagFamMacchine].[nomeFamMacch]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[numIntMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[codImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[nomeImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[nomeMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[codMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[descrizione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_fixCR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[guasto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[richiesta]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[inizioIntervento]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[fineIntervento]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_diffOreLavorative]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[turnoLav]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[matr]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagAmbitoGuasto].[descrAmbitoGuasto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagPriorita].[descrPriorita]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagStati].[DescrStato]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[isPreventivabile]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoGuasto].[descrTipo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagFamMacchine].[nomeFamMacch]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References Name="[dwh]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="6" />
|
|
<Property Name="Length" Value="5303" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="


CREATE VIEW [dwh].[VDWH_ElencoInterventi]
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlView" Name="[dwh].[VDWH_ImpiegoRisorse]">
|
|
<Property Name="QueryScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
SELECT
|
|
-- ImRi.idxImpiego
|
|
ImRi.numIntMtz
|
|
,ImRi.CodRisorsa
|
|
,AnRi.DescrRisorsa
|
|
,ImRi.QtaRisorsa
|
|
,ImRi.CostoUnit
|
|
,ImRi.TotImport
|
|
,AnRi.UM
|
|
,AnRi.Valuta
|
|
-- ,ImRi.Note
|
|
FROM dbo.ImpiegoRisorse AS ImRi
|
|
INNER JOIN dbo.AnagTipoRisorsa AS AnRi
|
|
ON ImRi.CodRisorsa = AnRi.CodRisorsa]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ImpiegoRisorse].[numIntMtz]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[ImpiegoRisorse].[numIntMtz]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ImpiegoRisorse].[CodRisorsa]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[ImpiegoRisorse].[CodRisorsa]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ImpiegoRisorse].[DescrRisorsa]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoRisorsa].[DescrRisorsa]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ImpiegoRisorse].[QtaRisorsa]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[ImpiegoRisorse].[QtaRisorsa]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ImpiegoRisorse].[CostoUnit]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[ImpiegoRisorse].[CostoUnit]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ImpiegoRisorse].[TotImport]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[ImpiegoRisorse].[TotImport]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ImpiegoRisorse].[UM]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoRisorsa].[UM]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_ImpiegoRisorse].[Valuta]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoRisorsa].[Valuta]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="QueryDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[ImpiegoRisorse]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoRisorsa]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ImpiegoRisorse].[CodRisorsa]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoRisorsa].[CodRisorsa]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ImpiegoRisorse].[numIntMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoRisorsa].[DescrRisorsa]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ImpiegoRisorse].[QtaRisorsa]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ImpiegoRisorse].[CostoUnit]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ImpiegoRisorse].[TotImport]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoRisorsa].[UM]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoRisorsa].[Valuta]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References Name="[dwh]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="2" />
|
|
<Property Name="Length" Value="447" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="
CREATE VIEW [dwh].[VDWH_ImpiegoRisorse]
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlView" Name="[dwh].[VDWH_IntervOperatori]">
|
|
<Property Name="QueryScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
SELECT
|
|
dbo.InterventoOpMtz.numIntMtz
|
|
,dbo.InterventoOpMtz.durataMinuti
|
|
,dbo.AnagrOperMtz.matrOp
|
|
,dbo.AnagrOperMtz.Cognome
|
|
,dbo.AnagrOperMtz.Nome
|
|
FROM dbo.AnagrOperMtz
|
|
INNER JOIN dbo.InterventoOpMtz ON dbo.AnagrOperMtz.matrOp = dbo.InterventoOpMtz.matrOp]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_IntervOperatori].[numIntMtz]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventoOpMtz].[numIntMtz]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_IntervOperatori].[durataMinuti]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventoOpMtz].[durataMinuti]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_IntervOperatori].[matrOp]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagrOperMtz].[matrOp]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_IntervOperatori].[Cognome]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagrOperMtz].[Cognome]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dwh].[VDWH_IntervOperatori].[Nome]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagrOperMtz].[Nome]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="QueryDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagrOperMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventoOpMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagrOperMtz].[matrOp]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventoOpMtz].[matrOp]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventoOpMtz].[numIntMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventoOpMtz].[durataMinuti]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagrOperMtz].[Cognome]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagrOperMtz].[Nome]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References Name="[dwh]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="2" />
|
|
<Property Name="Length" Value="335" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="
CREATE VIEW [dwh].[VDWH_IntervOperatori]
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlSchema" Name="[export]">
|
|
<Relationship Name="Authorizer">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlView" Name="[export].[v_allData]">
|
|
<Property Name="QueryScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
|
|
SELECT InterventiMtz.numIntMtz
|
|
, CAST(InterventiMtz.dataLav AS DATE) as dataLav
|
|
, InterventiMtz.turnoLav
|
|
, InterventiMtz.matr
|
|
, InterventiMtz.richiesta
|
|
, AnagImpianti.codImpianto
|
|
, AnagImpianti.nomeImpianto
|
|
, AnagMacchine.codMacchina
|
|
, AnagMacchine.nomeMacchina
|
|
, InterventiMtz.descrizione
|
|
, InterventiMtz.inizioIntervento
|
|
, InterventiMtz.fineIntervento
|
|
, ISNULL(InterventiMtz.descrizioneIntervento, 'n.d. (report mtz)') AS descrizioneIntervento
|
|
, ISNULL(AnagCausali.descrCausale, 'n.d. (causale)') AS descrCausale
|
|
, ROUND(CAST(ISNULL(v_interventiErogati.totMinErogati, 0) AS FLOAT) / 60, 2) AS minErogati
|
|
, CAST(ISNULL(vri.TotImport, 0) AS DECIMAL(9, 3)) AS ImportoTot
|
|
, dbo.f_diffOreLavorative(InterventiMtz.inizioIntervento, InterventiMtz.fineIntervento, InterventiMtz.idxMacchina) AS durataMtz
|
|
, CASE (isFermo)
|
|
WHEN 1
|
|
THEN dbo.f_diffOreLavorative(dbo.InterventiMtz.guasto, dbo.InterventiMtz.fineIntervento, InterventiMtz.idxMacchina)
|
|
WHEN 0
|
|
THEN dbo.f_diffOreLavorative(dbo.InterventiMtz.inizioIntervento, dbo.InterventiMtz.fineIntervento, InterventiMtz.idxMacchina)
|
|
END AS durataOff
|
|
, InterventiMtz.guasto
|
|
, InterventiMtz.idxStato
|
|
, InterventiMtz.idxImpianto
|
|
, InterventiMtz.idxMacchina
|
|
, InterventiMtz.isFermo
|
|
, InterventiMtz.scheduled
|
|
FROM InterventiMtz
|
|
INNER JOIN AnagAmbitoGuasto
|
|
ON InterventiMtz.idxAmbito = AnagAmbitoGuasto.idxAmbito
|
|
INNER JOIN AnagImpianti
|
|
ON InterventiMtz.idxImpianto = AnagImpianti.idxImpianto
|
|
INNER JOIN AnagMacchine
|
|
ON InterventiMtz.idxMacchina = AnagMacchine.idxMacchina
|
|
INNER JOIN AnagTipoGuasto
|
|
ON InterventiMtz.idxTipo = AnagTipoGuasto.idxTipo
|
|
INNER JOIN AnagPriorita
|
|
ON InterventiMtz.idxPriorita = AnagPriorita.idxPriorita
|
|
INNER JOIN AnagStati
|
|
ON InterventiMtz.idxStato = AnagStati.idxStato
|
|
LEFT JOIN v_interventiErogati
|
|
ON InterventiMtz.numIntMtz = v_interventiErogati.numIntMtz
|
|
LEFT JOIN v_risorseImpiegate AS vri
|
|
ON InterventiMtz.numIntMtz = vri.numIntMtz
|
|
LEFT JOIN AnagCausali
|
|
ON InterventiMtz.idxCausale = AnagCausali.idxCausale
|
|
--ORDER BY InterventiMtz.numIntMtz DESC]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[export].[v_allData].[numIntMtz]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[numIntMtz]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[export].[v_allData].[dataLav]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[export].[v_allData].[turnoLav]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[turnoLav]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[export].[v_allData].[matr]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[matr]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[export].[v_allData].[richiesta]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[richiesta]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[export].[v_allData].[codImpianto]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[codImpianto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[export].[v_allData].[nomeImpianto]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[nomeImpianto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[export].[v_allData].[codMacchina]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[codMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[export].[v_allData].[nomeMacchina]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[nomeMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[export].[v_allData].[descrizione]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[descrizione]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[export].[v_allData].[inizioIntervento]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[inizioIntervento]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[export].[v_allData].[fineIntervento]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[fineIntervento]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[export].[v_allData].[descrizioneIntervento]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[export].[v_allData].[descrCausale]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[export].[v_allData].[minErogati]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[export].[v_allData].[ImportoTot]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[export].[v_allData].[durataMtz]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[f_diffOreLavorative]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[export].[v_allData].[durataOff]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[export].[v_allData].[guasto]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[guasto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[export].[v_allData].[idxStato]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxStato]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[export].[v_allData].[idxImpianto]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxImpianto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[export].[v_allData].[idxMacchina]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxMacchina]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[export].[v_allData].[isFermo]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[isFermo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[export].[v_allData].[scheduled]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[scheduled]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="QueryDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagAmbitoGuasto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxAmbito]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagAmbitoGuasto].[idxAmbito]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[idxImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoGuasto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxTipo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTipoGuasto].[idxTipo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagPriorita]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxPriorita]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagPriorita].[idxPriorita]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagStati]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxStato]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagStati].[idxStato]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_interventiErogati]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[numIntMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_interventiErogati].[numIntMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_risorseImpiegate]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[numIntMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_risorseImpiegate].[numIntMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagCausali]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxCausale]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagCausali].[idxCausale]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[numIntMtz]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[date]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[dataLav]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[turnoLav]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[matr]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[richiesta]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[codImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagImpianti].[nomeImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[codMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagMacchine].[nomeMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[descrizione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[inizioIntervento]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[fineIntervento]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[descrizioneIntervento]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagCausali].[descrCausale]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[float]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_interventiErogati].[totMinErogati]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_risorseImpiegate].[TotImport]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxMacchina]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_diffOreLavorative]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[isFermo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_diffOreLavorative]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[guasto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[fineIntervento]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[inizioIntervento]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[guasto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxStato]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[idxImpianto]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[isFermo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[scheduled]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References Name="[export]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="Length" Value="2140" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="CREATE VIEW export.v_allData
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlSchema" Name="[import]">
|
|
<Relationship Name="Authorizer">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[import].[stp_importMagRic_step1]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
BEGIN
|
|
|
|
SET NOCOUNT ON;
|
|
|
|
-- SELECT * FROM [som_ita].[tmp_ImportRic_A]
|
|
DECLARE @Test BIT = 0; -- se 1 fa il rollback
|
|
DECLARE @SummaryOfChanges TABLE (Change VARCHAR(10));
|
|
|
|
BEGIN TRANSACTION;
|
|
-- CARICO I NUOVI ITEM
|
|
;WITH cteImportRicA
|
|
AS (
|
|
SELECT DISTINCT
|
|
LTRIM(RTRIM(UPPER(Gruppo))) AS Famiglia,
|
|
LTRIM(RTRIM(UPPER(REPLACE(CASE WHEN ISNULL([Descrizione], '') <> ''
|
|
THEN [Descrizione]
|
|
ELSE [CodCostruttore]
|
|
END, '"', '')))) AS Descrizione
|
|
,LTRIM(RTRIM(UPPER(NomeCostruttore))) AS NomeCostruttore
|
|
,LTRIM(RTRIM(UPPER(CodCostruttore))) AS CodCostruttore
|
|
,LTRIM(RTRIM(UPPER(CodSomaschini))) AS CodInterno
|
|
FROM [som_ita].[tmp_ImportRic_A]
|
|
)
|
|
MERGE INTO dbo.AnagItems AS Target
|
|
USING ( SELECT DISTINCT * FROM cteImportRicA ) AS Source
|
|
ON Target.Famiglia = Source.Famiglia AND Target.Descrizione = Source.Descrizione AND Target.NomeCostruttore = Source.NomeCostruttore AND Target.CodCostruttore = Source.CodCostruttore AND Target.CodInterno = Source.CodInterno
|
|
|
|
WHEN NOT MATCHED BY TARGET
|
|
THEN
|
|
INSERT ( Famiglia,Descrizione,NomeCostruttore,CodCostruttore,CodInterno)
|
|
VALUES ( Famiglia,Descrizione,NomeCostruttore,CodCostruttore,CodInterno)
|
|
--WHEN MATCHED -- AND Target.TranspCost <> Source.TranspCost AND @flgUpdate = 1
|
|
-- THEN
|
|
-- UPDATE SET Descrizione = Source.Descrizione
|
|
--WHEN NOT MATCHED BY SOURCE THEN
|
|
-- DELETE
|
|
OUTPUT $ACTION INTO @SummaryOfChanges;-- carico i cambiamenti in tabella
|
|
|
|
SELECT * FROM dbo.AnagItems
|
|
|
|
IF @test = 1 ROLLBACK
|
|
ELSE COMMIT;
|
|
|
|
-- Carico le modifiche fatte in variabile Testo
|
|
SELECT Change + ' : ' + CONVERT(VARCHAR(10), COUNT(*))
|
|
FROM @SummaryOfChanges
|
|
GROUP BY Change;
|
|
|
|
/* reset dbo.AnagItems
|
|
DELETE dbo.AnagItems
|
|
DBCC CHECKIDENT ('dbo.AnagItems', reseed, 0) -- reset idx tabella dopo delete
|
|
*/
|
|
|
|
END]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[bit]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[som_ita].[tmp_ImportRic_A]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[som_ita].[tmp_ImportRic_A].[Gruppo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[som_ita].[tmp_ImportRic_A].[Descrizione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[som_ita].[tmp_ImportRic_A].[CodCostruttore]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[som_ita].[tmp_ImportRic_A].[NomeCostruttore]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[som_ita].[tmp_ImportRic_A].[CodSomaschini]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[Famiglia]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[Descrizione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[NomeCostruttore]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[CodCostruttore]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[CodInterno]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[Famiglia]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[Descrizione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[NomeCostruttore]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[CodCostruttore]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[CodInterno]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[import].[stp_importMagRic_step1].[@SummaryOfChanges].[Change]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[varchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DynamicObjects">
|
|
<Entry>
|
|
<Element Type="SqlDynamicColumnSource" Name="[import].[stp_importMagRic_step1].[@SummaryOfChanges]">
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[import].[stp_importMagRic_step1].[@SummaryOfChanges].[Change]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="10" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[varchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlDynamicColumnSource" Name="[import].[stp_importMagRic_step1].[CTE1].[cteImportRicA]">
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[import].[stp_importMagRic_step1].[CTE1].[cteImportRicA].[Famiglia]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[import].[stp_importMagRic_step1].[CTE1].[cteImportRicA].[Descrizione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[import].[stp_importMagRic_step1].[CTE1].[cteImportRicA].[NomeCostruttore]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[import].[stp_importMagRic_step1].[CTE1].[cteImportRicA].[CodCostruttore]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[import].[stp_importMagRic_step1].[CTE1].[cteImportRicA].[CodInterno]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References Name="[import]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="192" />
|
|
<Property Name="Length" Value="2466" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="
-- =============================================
-- Author:	 GAR
-- Create date: 2015.11.20
-- Description: Import iniziale dati: Items
-- =============================================
CREATE PROCEDURE [import].[stp_importMagRic_step1]
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[import].[stp_importMagRic_step2]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
BEGIN
|
|
|
|
SET NOCOUNT ON;
|
|
|
|
--SELECT * FROM [som_ita].[tmp_ImportRic_A] WHERE Descrizione = ''
|
|
--SELECT * FROM MagRic
|
|
--SELECT * FROM AnagLocazioni
|
|
|
|
DECLARE @Test BIT = 0; -- se 1 fa il rollback
|
|
DECLARE @DataImp AS SMALLDATETIME = GETDATE();
|
|
DECLARE @SummaryOfChanges TABLE (Change VARCHAR(10));
|
|
|
|
BEGIN TRANSACTION;;
|
|
|
|
WITH cteImportRicA
|
|
AS (
|
|
SELECT LTRIM(RTRIM(UPPER(Gruppo))) AS Famiglia
|
|
,LTRIM(RTRIM(UPPER(REPLACE(CASE WHEN ISNULL([Descrizione], '') <> ''
|
|
THEN [Descrizione]
|
|
ELSE [CodCostruttore]
|
|
END, '"', '')))) AS Descrizione -- tolgo eventuali "
|
|
,LTRIM(RTRIM(UPPER(NomeCostruttore))) AS NomeCostruttore
|
|
,LTRIM(RTRIM(UPPER(CodCostruttore))) AS CodCostruttore
|
|
,LTRIM(RTRIM(UPPER(CodSomaschini))) AS CodInterno
|
|
,Giacenza
|
|
FROM [som_ita].[tmp_ImportRic_A]
|
|
)
|
|
,cteBis AS (
|
|
SELECT ai.*
|
|
,'MAG00' AS CodLocazione
|
|
,tmp.Giacenza
|
|
FROM cteImportRicA AS tmp
|
|
INNER JOIN dbo.AnagItems AS ai
|
|
ON tmp.Famiglia = ai.Famiglia AND tmp.Descrizione = ai.Descrizione AND tmp.NomeCostruttore = ai.NomeCostruttore AND tmp.CodCostruttore = ai.CodCostruttore AND tmp.CodInterno = ai.CodInterno
|
|
)
|
|
-- SELECT idxItem, 'MAG00' AS CodLocazione , Giacenza FROM cteBis WHERE idxItem = 1310
|
|
MERGE INTO dbo.MagRic AS Target
|
|
USING (
|
|
SELECT idxItem,CodLocazione,SUM(Giacenza) AS Giacenza FROM cteBis
|
|
GROUP BY idxItem ,CodLocazione
|
|
) AS Source
|
|
ON Target.idxItem = Source.idxItem AND Target.CodLocazione = Source.CodLocazione
|
|
WHEN NOT MATCHED BY TARGET THEN
|
|
INSERT (idxItem,CodLocazione,Giacenza,dtLastUpd)
|
|
VALUES (idxItem,CodLocazione,Giacenza,@DataImp)
|
|
WHEN MATCHED THEN
|
|
UPDATE
|
|
SET Giacenza = Source.Giacenza ,dtLastUpd = @DataImp
|
|
--WHEN NOT MATCHED BY SOURCE THEN DELETE
|
|
OUTPUT $ACTION INTO @SummaryOfChanges;-- carico i cambiamenti in tabella
|
|
|
|
SELECT * FROM dbo.MagRic
|
|
|
|
IF @Test = 1
|
|
ROLLBACK
|
|
ELSE COMMIT;
|
|
|
|
-- Carico le modifiche fatte in variabile Testo
|
|
SELECT Change + ' : ' + CONVERT(VARCHAR(10), COUNT(*))
|
|
FROM @SummaryOfChanges
|
|
GROUP BY Change;
|
|
|
|
END]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[bit]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[smalldatetime]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[som_ita].[tmp_ImportRic_A]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[som_ita].[tmp_ImportRic_A].[Gruppo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[som_ita].[tmp_ImportRic_A].[Descrizione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[som_ita].[tmp_ImportRic_A].[CodCostruttore]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[som_ita].[tmp_ImportRic_A].[NomeCostruttore]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[som_ita].[tmp_ImportRic_A].[CodSomaschini]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[som_ita].[tmp_ImportRic_A].[Giacenza]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[Famiglia]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[Descrizione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[NomeCostruttore]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[CodCostruttore]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[CodInterno]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[som_ita].[tmp_ImportRic_A].[Giacenza]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[som_ita].[tmp_ImportRic_A].[Giacenza]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MagRic]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MagRic].[idxItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[idxItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MagRic].[CodLocazione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MagRic].[idxItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MagRic].[CodLocazione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MagRic].[Giacenza]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[MagRic].[dtLastUpd]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[import].[stp_importMagRic_step2].[@SummaryOfChanges].[Change]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[varchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DynamicObjects">
|
|
<Entry>
|
|
<Element Type="SqlDynamicColumnSource" Name="[import].[stp_importMagRic_step2].[@SummaryOfChanges]">
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[import].[stp_importMagRic_step2].[@SummaryOfChanges].[Change]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="10" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[varchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlDynamicColumnSource" Name="[import].[stp_importMagRic_step2].[CTE1].[cteImportRicA]">
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[import].[stp_importMagRic_step2].[CTE1].[cteImportRicA].[Famiglia]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[import].[stp_importMagRic_step2].[CTE1].[cteImportRicA].[Descrizione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[import].[stp_importMagRic_step2].[CTE1].[cteImportRicA].[NomeCostruttore]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[import].[stp_importMagRic_step2].[CTE1].[cteImportRicA].[CodCostruttore]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[import].[stp_importMagRic_step2].[CTE1].[cteImportRicA].[CodInterno]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[import].[stp_importMagRic_step2].[CTE1].[cteImportRicA].[Giacenza]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[som_ita].[tmp_ImportRic_A].[Giacenza]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlDynamicColumnSource" Name="[import].[stp_importMagRic_step2].[CTE1].[cteBis]">
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[import].[stp_importMagRic_step2].[CTE1].[cteBis].[idxItem]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[idxItem]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[import].[stp_importMagRic_step2].[CTE1].[cteBis].[Famiglia]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[Famiglia]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[import].[stp_importMagRic_step2].[CTE1].[cteBis].[Descrizione]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[Descrizione]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[import].[stp_importMagRic_step2].[CTE1].[cteBis].[NomeCostruttore]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[NomeCostruttore]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[import].[stp_importMagRic_step2].[CTE1].[cteBis].[CodCostruttore]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[CodCostruttore]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[import].[stp_importMagRic_step2].[CTE1].[cteBis].[CodInterno]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[CodInterno]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[import].[stp_importMagRic_step2].[CTE1].[cteBis].[QtaMin]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[QtaMin]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[import].[stp_importMagRic_step2].[CTE1].[cteBis].[QtaLotto]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[QtaLotto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[import].[stp_importMagRic_step2].[CTE1].[cteBis].[Valore]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[Valore]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[import].[stp_importMagRic_step2].[CTE1].[cteBis].[CodLocazione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[import].[stp_importMagRic_step2].[CTE1].[cteBis].[Giacenza]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[som_ita].[tmp_ImportRic_A].[Giacenza]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References Name="[import]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="197" />
|
|
<Property Name="Length" Value="2854" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="

-- =============================================
-- Author:	 GAR
-- Create date: 2015.11.20
-- Description: Import iniziale dati: Giacenze
-- =============================================
CREATE PROCEDURE [import].[stp_importMagRic_step2]
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[import].[stp_importMagRic_step3]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
BEGIN
|
|
|
|
SET NOCOUNT ON;
|
|
|
|
/*
|
|
* NOTA: fare in modo che lo esegua in modo "becero" creando TUTTI i tags DISTINCT DESTINAZIONE che esistono (fatto salvo trim e TOP-UPPER x non creare sinonimi solo di errata scrittura), POI da sw farò "il merge" dei tags x riunificarli da WebGIM
|
|
*
|
|
* per farlo c'è la tabella di "sinonimi" per cui ad un certo Tag --> corrisponde il tag "merge" finale
|
|
* QUESTO SIGNIFICA che dopo primo import (becero) nei successivi deve guardare la tabella SinonimiTag, ho creato alcuni esempi
|
|
*
|
|
* vedi step procedura abbozzati sotto
|
|
*
|
|
*/
|
|
|
|
--SELECT * FROM [som_ita].[tmp_ImportRic_A] WHERE Descrizione = ''
|
|
--SELECT * FROM dbo.SinonimiTag -- delete FROM dbo.SinonimiTag
|
|
--SELECT * FROM dbo.AnagTags -- delete FROM dbo.AnagTags
|
|
--SELECT * FROM dbo.Tag2Item -- DELETE FROM dbo.Tag2Item
|
|
|
|
DECLARE @Test BIT = 0; -- se 1 fa il rollback
|
|
DECLARE @DataImp AS SMALLDATETIME = GETDATE();
|
|
DECLARE @SummaryOfChanges TABLE (Change VARCHAR(50));
|
|
|
|
BEGIN TRANSACTION;;
|
|
|
|
-- ==========================================================
|
|
-- NUOVI SINONIMI - se ho sinonimi mancanti li carico in modalità 1=1 TagCodeOrig=TagCode
|
|
-- ==========================================================
|
|
WITH cteImportRicA
|
|
AS (
|
|
SELECT DISTINCT LTRIM(RTRIM(UPPER(Destinazione))) + '#' +
|
|
LTRIM(RTRIM(UPPER(Gruppo))) AS TagCodeOrig -- TagCodeOrig
|
|
FROM [som_ita].[tmp_ImportRic_A]
|
|
WHERE Destinazione <> '' OR GRUPPO <> ''
|
|
)
|
|
INSERT dbo.SinonimiTag
|
|
SELECT cte.TagCodeOrig, cte.TagCodeOrig
|
|
FROM cteImportRicA AS cte
|
|
LEFT JOIN dbo.SinonimiTag AS st ON cte.TagCodeOrig = st.TagCodeOrig
|
|
WHERE cte.TagCodeOrig <> '' AND
|
|
st.TagCode IS NULL -- solo nuovi
|
|
|
|
SELECT 'NEW SinonimiTag: ' + CAST ( @@ROWCOUNT AS VARCHAR(10) )
|
|
-- ==========================================================
|
|
-- INSERT TAGS NUOVI
|
|
-- ==========================================================
|
|
INSERT dbo.AnagTags
|
|
SELECT DISTINCT st.TagCode,'','' FROM dbo.SinonimiTag AS st
|
|
LEFT JOIN dbo.AnagTags AS at ON st.TagCode = at.TagCode
|
|
WHERE st.TagCode <> '' AND
|
|
at.TagCode IS NULL -- solo nuovi
|
|
|
|
SELECT 'NEW AnagTags: ' + CAST ( @@ROWCOUNT AS VARCHAR(10) )
|
|
|
|
-- ==========================================================
|
|
-- INSERIMENTO NEW Item-TagCode
|
|
-- ==========================================================
|
|
;WITH cteImportRicA -- normalizzo campi in ingresso
|
|
AS (
|
|
SELECT LTRIM(RTRIM(UPPER(Gruppo))) AS Famiglia
|
|
,LTRIM(RTRIM(UPPER(REPLACE(CASE WHEN ISNULL([Descrizione], '') <> ''
|
|
THEN [Descrizione]
|
|
ELSE [CodCostruttore]
|
|
END, '"', '')))) AS Descrizione -- tolgo eventuali "
|
|
,LTRIM(RTRIM(UPPER(NomeCostruttore))) AS NomeCostruttore
|
|
,LTRIM(RTRIM(UPPER(CodCostruttore))) AS CodCostruttore
|
|
,LTRIM(RTRIM(UPPER(CodSomaschini))) AS CodInterno
|
|
,LTRIM(RTRIM(UPPER(Destinazione))) + '#'
|
|
+ LTRIM(RTRIM(UPPER(Gruppo))) AS TagCodeOrig -- TagCodeOrig
|
|
FROM [som_ita].[tmp_ImportRic_A]
|
|
)
|
|
,cteNew AS -- ricavo idxItem e TagCode effettivo
|
|
(
|
|
SELECT DISTINCT ai.idxItem, st.TagCode
|
|
FROM cteImportRicA AS tmp
|
|
INNER JOIN dbo.AnagItems AS ai
|
|
ON tmp.Famiglia = ai.Famiglia AND tmp.Descrizione = ai.Descrizione AND tmp.NomeCostruttore = ai.NomeCostruttore AND tmp.CodCostruttore = ai.CodCostruttore AND tmp.CodInterno = ai.CodInterno
|
|
INNER JOIN dbo.SinonimiTag AS st ON tmp.TagCodeOrig = st.TagCodeOrig
|
|
)
|
|
--SELECT idxItem, TagCode FROM cteNew
|
|
-- inserisco new Item-TagCode
|
|
MERGE INTO dbo.Tag2Item AS Target
|
|
USING ( SELECT * FROM cteNew ) AS Source
|
|
ON Target.idxItem = Source.idxItem AND Target.TagCode = Source.TagCode
|
|
WHEN NOT MATCHED BY TARGET THEN
|
|
INSERT (idxItem,TagCode) VALUES (idxItem,TagCode)
|
|
-- WHEN MATCHED THEN UPDATE SET Giacenza = Source.Giacenza ,dtLastUpd = GETDATE()
|
|
-- WHEN NOT MATCHED BY SOURCE THEN DELETE
|
|
OUTPUT $ACTION INTO @SummaryOfChanges;-- carico i cambiamenti in tabella
|
|
|
|
IF @Test = 1
|
|
ROLLBACK
|
|
ELSE COMMIT;
|
|
|
|
-- Carico le modifiche fatte in variabile Testo
|
|
SELECT Change + ' Tag2Item: ' + CONVERT(VARCHAR(10), COUNT(*))
|
|
FROM @SummaryOfChanges
|
|
GROUP BY Change;
|
|
|
|
END]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[bit]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[smalldatetime]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[som_ita].[tmp_ImportRic_A]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[som_ita].[tmp_ImportRic_A].[Destinazione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[som_ita].[tmp_ImportRic_A].[Gruppo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[SinonimiTag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[SinonimiTag].[TagCodeOrig]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[SinonimiTag].[TagCode]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[varchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTags]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[SinonimiTag].[TagCode]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTags].[TagCode]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[varchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[som_ita].[tmp_ImportRic_A].[Descrizione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[som_ita].[tmp_ImportRic_A].[CodCostruttore]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[som_ita].[tmp_ImportRic_A].[NomeCostruttore]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[som_ita].[tmp_ImportRic_A].[CodSomaschini]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[Famiglia]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[Descrizione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[NomeCostruttore]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[CodCostruttore]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[CodInterno]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[SinonimiTag].[TagCodeOrig]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[idxItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[SinonimiTag].[TagCode]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Tag2Item]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Tag2Item].[idxItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[idxItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Tag2Item].[TagCode]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[SinonimiTag].[TagCode]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Tag2Item].[idxItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Tag2Item].[TagCode]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[idxItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[SinonimiTag].[TagCode]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[import].[stp_importMagRic_step3].[@SummaryOfChanges].[Change]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[varchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DynamicObjects">
|
|
<Entry>
|
|
<Element Type="SqlDynamicColumnSource" Name="[import].[stp_importMagRic_step3].[@SummaryOfChanges]">
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[import].[stp_importMagRic_step3].[@SummaryOfChanges].[Change]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[varchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlDynamicColumnSource" Name="[import].[stp_importMagRic_step3].[CTE1].[cteImportRicA]">
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[import].[stp_importMagRic_step3].[CTE1].[cteImportRicA].[TagCodeOrig]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlDynamicColumnSource" Name="[import].[stp_importMagRic_step3].[CTE2].[cteImportRicA]">
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[import].[stp_importMagRic_step3].[CTE2].[cteImportRicA].[Famiglia]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[import].[stp_importMagRic_step3].[CTE2].[cteImportRicA].[Descrizione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[import].[stp_importMagRic_step3].[CTE2].[cteImportRicA].[NomeCostruttore]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[import].[stp_importMagRic_step3].[CTE2].[cteImportRicA].[CodCostruttore]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[import].[stp_importMagRic_step3].[CTE2].[cteImportRicA].[CodInterno]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[import].[stp_importMagRic_step3].[CTE2].[cteImportRicA].[TagCodeOrig]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlDynamicColumnSource" Name="[import].[stp_importMagRic_step3].[CTE2].[cteNew]">
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[import].[stp_importMagRic_step3].[CTE2].[cteNew].[idxItem]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[idxItem]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[import].[stp_importMagRic_step3].[CTE2].[cteNew].[TagCode]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[SinonimiTag].[TagCode]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References Name="[import]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="191" />
|
|
<Property Name="Length" Value="5002" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="
-- =============================================
-- Author:	 GAR
-- Create date: 2015.11.20
-- Description: Import iniziale dati: Tags
-- =============================================
CREATE PROCEDURE [import].[stp_importMagRic_step3]
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlSchema" Name="[som_ita]">
|
|
<Relationship Name="Authorizer">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[som_ita].[DF_tmp_ImportRic_A_CodCostruttore]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[som_ita].[tmp_ImportRic_A]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[som_ita].[tmp_ImportRic_A].[CodCostruttore]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="116" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[som_ita].[DF_tmp_ImportRic_A_CodCostruttore1]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[som_ita].[tmp_ImportRic_A]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[som_ita].[tmp_ImportRic_A].[Destinazione]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="117" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[som_ita].[DF_tmp_ImportRic_A_CodSomaschini]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[som_ita].[tmp_ImportRic_A]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[som_ita].[tmp_ImportRic_A].[CodSomaschini]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="118" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[som_ita].[DF_tmp_ImportRic_A_Descrizione]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[som_ita].[tmp_ImportRic_A]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[som_ita].[tmp_ImportRic_A].[Descrizione]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="119" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[som_ita].[DF_tmp_ImportRic_A_Giacenza]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[som_ita].[tmp_ImportRic_A]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[som_ita].[tmp_ImportRic_A].[Giacenza]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="120" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[som_ita].[DF_tmp_ImportRic_A_Gruppo]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[som_ita].[tmp_ImportRic_A]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[som_ita].[tmp_ImportRic_A].[Gruppo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="121" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[som_ita].[DF_tmp_ImportRic_A_NomeCostruttore]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[som_ita].[tmp_ImportRic_A]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[som_ita].[tmp_ImportRic_A].[NomeCostruttore]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="122" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[som_ita].[DF_tmp_ImportRic_B_CodCostruttore]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[som_ita].[tmp_ImportRic_B]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[som_ita].[tmp_ImportRic_B].[FamTec]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="123" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[som_ita].[DF_tmp_ImportRic_B_CodSomaschini]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[som_ita].[tmp_ImportRic_B]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[som_ita].[tmp_ImportRic_B].[CodSomaschini]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="124" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[som_ita].[DF_tmp_ImportRic_B_Descrizione]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[som_ita].[tmp_ImportRic_B]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[som_ita].[tmp_ImportRic_B].[Descrizione]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="125" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[som_ita].[DF_tmp_ImportRic_B_Descrizione1]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[som_ita].[tmp_ImportRic_B]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[som_ita].[tmp_ImportRic_B].[Ubicazione]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="126" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[som_ita].[DF_tmp_ImportRic_B_Descrizione1_1]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[som_ita].[tmp_ImportRic_B]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[som_ita].[tmp_ImportRic_B].[Nota_1]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="127" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[som_ita].[DF_tmp_ImportRic_B_Destinazione]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[som_ita].[tmp_ImportRic_B]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[som_ita].[tmp_ImportRic_B].[TipoMacc]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="128" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[som_ita].[DF_tmp_ImportRic_B_Giacenza]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[som_ita].[tmp_ImportRic_B]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[som_ita].[tmp_ImportRic_B].[Giacenza]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="129" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[som_ita].[DF_tmp_ImportRic_B_NomeCostruttore]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[som_ita].[tmp_ImportRic_B]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[som_ita].[tmp_ImportRic_B].[GrpFun]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="130" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[som_ita].[DF_tmp_ImportRic_B_Nota_11]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[som_ita].[tmp_ImportRic_B]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[som_ita].[tmp_ImportRic_B].[Nota_2]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="131" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[som_ita].[tmp_ImportRic_A]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[som_ita].[tmp_ImportRic_A].[Descrizione]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="250" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="119" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[som_ita].[tmp_ImportRic_A].[NomeCostruttore]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="250" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="122" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[som_ita].[tmp_ImportRic_A].[CodCostruttore]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="250" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="116" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[som_ita].[tmp_ImportRic_A].[Destinazione]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="250" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="117" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[som_ita].[tmp_ImportRic_A].[CodSomaschini]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="118" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[som_ita].[tmp_ImportRic_A].[Giacenza]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="120" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[som_ita].[tmp_ImportRic_A].[Gruppo]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="250" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="121" />
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References Name="[som_ita]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[som_ita].[tmp_ImportRic_B]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[som_ita].[tmp_ImportRic_B].[GrpFun]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="250" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="130" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[som_ita].[tmp_ImportRic_B].[FamTec]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="250" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="123" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[som_ita].[tmp_ImportRic_B].[TipoMacc]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="250" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="128" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[som_ita].[tmp_ImportRic_B].[Descrizione]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="250" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="125" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[som_ita].[tmp_ImportRic_B].[CodSomaschini]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="124" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[som_ita].[tmp_ImportRic_B].[QtaMin]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[som_ita].[tmp_ImportRic_B].[QtaLotto]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[som_ita].[tmp_ImportRic_B].[Giacenza]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="129" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[som_ita].[tmp_ImportRic_B].[Ubicazione]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="250" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="126" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[som_ita].[tmp_ImportRic_B].[Nota_1]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="250" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="127" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[som_ita].[tmp_ImportRic_B].[Nota_2]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="250" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="131" />
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References Name="[som_ita]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[AnagItems].[Valore].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[N'valore unitario item']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagItems].[Valore]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[AnagTags].[Class].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[N'classe delle etichette (es FM = fam macchine)']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTags].[Class]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[AnagTags].[TagDescr].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[N'Descrizioen dell''etichetta']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[AnagTags].[TagDescr]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[InterventiMtz].[scheduled].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA['indica se l''intervento sia stato generato da manutenzione programmata/preventiva']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[InterventiMtz].[scheduled]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[MagRic].[dtLastUpd].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[N'data-ora ultimo aggiornamento']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[MagRic].[dtLastUpd]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[MovMagRic].[dtExport].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[N'data export verso ERP']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[MovMagRic].[dtExport]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlSchema].[dwh].[Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Schema x data wharehouse']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dwh]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_datiMTBFMTTR].[MS_DiagramPane1]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
|
|
Begin DesignProperties =
|
|
Begin PaneConfigurations =
|
|
Begin PaneConfiguration = 0
|
|
NumPanes = 4
|
|
Configuration = "(H (1[41] 4[20] 2[20] 3) )"
|
|
End
|
|
Begin PaneConfiguration = 1
|
|
NumPanes = 3
|
|
Configuration = "(H (1 [50] 4 [25] 3))"
|
|
End
|
|
Begin PaneConfiguration = 2
|
|
NumPanes = 3
|
|
Configuration = "(H (1 [50] 2 [25] 3))"
|
|
End
|
|
Begin PaneConfiguration = 3
|
|
NumPanes = 3
|
|
Configuration = "(H (4 [30] 2 [40] 3))"
|
|
End
|
|
Begin PaneConfiguration = 4
|
|
NumPanes = 2
|
|
Configuration = "(H (1 [56] 3))"
|
|
End
|
|
Begin PaneConfiguration = 5
|
|
NumPanes = 2
|
|
Configuration = "(H (2 [66] 3))"
|
|
End
|
|
Begin PaneConfiguration = 6
|
|
NumPanes = 2
|
|
Configuration = "(H (4 [50] 3))"
|
|
End
|
|
Begin PaneConfiguration = 7
|
|
NumPanes = 1
|
|
Configuration = "(V (3))"
|
|
End
|
|
Begin PaneConfiguration = 8
|
|
NumPanes = 3
|
|
Configuration = "(H (1[56] 4[18] 2) )"
|
|
End
|
|
Begin PaneConfiguration = 9
|
|
NumPanes = 2
|
|
Configuration = "(H (1 [75] 4))"
|
|
End
|
|
Begin PaneConfiguration = 10
|
|
NumPanes = 2
|
|
Configuration = "(H (1[66] 2) )"
|
|
End
|
|
Begin PaneConfiguration = 11
|
|
NumPanes = 2
|
|
Configuration = "(H (4 [60] 2))"
|
|
End
|
|
Begin PaneConfiguration = 12
|
|
NumPanes = 1
|
|
Configuration = "(H (1) )"
|
|
End
|
|
Begin PaneConfiguration = 13
|
|
NumPanes = 1
|
|
Configuration = "(V (4))"
|
|
End
|
|
Begin PaneConfiguration = 14
|
|
NumPanes = 1
|
|
Configuration = "(V (2))"
|
|
End
|
|
ActivePaneConfig = 0
|
|
End
|
|
Begin DiagramPane =
|
|
Begin Origin =
|
|
Top = 0
|
|
Left = 0
|
|
End
|
|
Begin Tables =
|
|
Begin Table = "v_elencoIntervFilt"
|
|
Begin Extent =
|
|
Top = 6
|
|
Left = 38
|
|
Bottom = 391
|
|
Right = 223
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
End
|
|
End
|
|
Begin SQLPane =
|
|
End
|
|
Begin DataPane =
|
|
Begin ParameterDefaults = ""
|
|
End
|
|
Begin ColumnWidths = 9
|
|
Width = 284
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 2235
|
|
Width = 3210
|
|
Width = 1500
|
|
End
|
|
End
|
|
Begin CriteriaPane =
|
|
Begin ColumnWidths = 12
|
|
Column = 1440
|
|
Alias = 900
|
|
Table = 1170
|
|
Output = 720
|
|
Append = 1400
|
|
NewValue = 1170
|
|
SortType = 1350
|
|
SortOrder = 1410
|
|
GroupBy = 1350
|
|
Filter = 1350
|
|
Or = 1350
|
|
Or = 1350
|
|
Or = 1350
|
|
End
|
|
End
|
|
End
|
|
']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_datiMTBFMTTR]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_datiMTBFMTTR].[MS_DiagramPaneCount]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[1]]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_datiMTBFMTTR]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_elencoImpiantiMacchine].[MS_DiagramPane1]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
|
|
Begin DesignProperties =
|
|
Begin PaneConfigurations =
|
|
Begin PaneConfiguration = 0
|
|
NumPanes = 4
|
|
Configuration = "(H (1[40] 4[20] 2[20] 3) )"
|
|
End
|
|
Begin PaneConfiguration = 1
|
|
NumPanes = 3
|
|
Configuration = "(H (1 [50] 4 [25] 3))"
|
|
End
|
|
Begin PaneConfiguration = 2
|
|
NumPanes = 3
|
|
Configuration = "(H (1 [50] 2 [25] 3))"
|
|
End
|
|
Begin PaneConfiguration = 3
|
|
NumPanes = 3
|
|
Configuration = "(H (4 [30] 2 [40] 3))"
|
|
End
|
|
Begin PaneConfiguration = 4
|
|
NumPanes = 2
|
|
Configuration = "(H (1 [56] 3))"
|
|
End
|
|
Begin PaneConfiguration = 5
|
|
NumPanes = 2
|
|
Configuration = "(H (2 [66] 3))"
|
|
End
|
|
Begin PaneConfiguration = 6
|
|
NumPanes = 2
|
|
Configuration = "(H (4 [50] 3))"
|
|
End
|
|
Begin PaneConfiguration = 7
|
|
NumPanes = 1
|
|
Configuration = "(V (3))"
|
|
End
|
|
Begin PaneConfiguration = 8
|
|
NumPanes = 3
|
|
Configuration = "(H (1[56] 4[18] 2) )"
|
|
End
|
|
Begin PaneConfiguration = 9
|
|
NumPanes = 2
|
|
Configuration = "(H (1 [75] 4))"
|
|
End
|
|
Begin PaneConfiguration = 10
|
|
NumPanes = 2
|
|
Configuration = "(H (1[66] 2) )"
|
|
End
|
|
Begin PaneConfiguration = 11
|
|
NumPanes = 2
|
|
Configuration = "(H (4 [60] 2))"
|
|
End
|
|
Begin PaneConfiguration = 12
|
|
NumPanes = 1
|
|
Configuration = "(H (1) )"
|
|
End
|
|
Begin PaneConfiguration = 13
|
|
NumPanes = 1
|
|
Configuration = "(V (4))"
|
|
End
|
|
Begin PaneConfiguration = 14
|
|
NumPanes = 1
|
|
Configuration = "(V (2))"
|
|
End
|
|
ActivePaneConfig = 0
|
|
End
|
|
Begin DiagramPane =
|
|
Begin Origin =
|
|
Top = 0
|
|
Left = 0
|
|
End
|
|
Begin Tables =
|
|
Begin Table = "AnagImpianti"
|
|
Begin Extent =
|
|
Top = 6
|
|
Left = 38
|
|
Bottom = 171
|
|
Right = 189
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
Begin Table = "AnagMacchine"
|
|
Begin Extent =
|
|
Top = 6
|
|
Left = 227
|
|
Bottom = 207
|
|
Right = 378
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
End
|
|
End
|
|
Begin SQLPane =
|
|
End
|
|
Begin DataPane =
|
|
Begin ParameterDefaults = ""
|
|
End
|
|
Begin ColumnWidths = 11
|
|
Width = 284
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
End
|
|
End
|
|
Begin CriteriaPane =
|
|
Begin ColumnWidths = 11
|
|
Column = 1440
|
|
Alias = 900
|
|
Table = 1170
|
|
Output = 720
|
|
Append = 1400
|
|
NewValue = 1170
|
|
SortType = 1350
|
|
SortOrder = 1410
|
|
GroupBy = 1350
|
|
Filter = 1350
|
|
Or = 1350
|
|
Or = 1350
|
|
Or = 1350
|
|
End
|
|
End
|
|
End
|
|
']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoImpiantiMacchine]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_elencoImpiantiMacchine].[MS_DiagramPaneCount]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[1]]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoImpiantiMacchine]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_elencoIntervFilt].[MS_DiagramPane1]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA['[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
|
|
Begin DesignProperties =
|
|
Begin PaneConfigurations =
|
|
Begin PaneConfiguration = 0
|
|
NumPanes = 4
|
|
Configuration = "(H (1[40] 4[20] 2[20] 3) )"
|
|
End
|
|
Begin PaneConfiguration = 1
|
|
NumPanes = 3
|
|
Configuration = "(H (1 [50] 4 [25] 3))"
|
|
End
|
|
Begin PaneConfiguration = 2
|
|
NumPanes = 3
|
|
Configuration = "(H (1 [50] 2 [25] 3))"
|
|
End
|
|
Begin PaneConfiguration = 3
|
|
NumPanes = 3
|
|
Configuration = "(H (4 [30] 2 [40] 3))"
|
|
End
|
|
Begin PaneConfiguration = 4
|
|
NumPanes = 2
|
|
Configuration = "(H (1 [56] 3))"
|
|
End
|
|
Begin PaneConfiguration = 5
|
|
NumPanes = 2
|
|
Configuration = "(H (2 [66] 3))"
|
|
End
|
|
Begin PaneConfiguration = 6
|
|
NumPanes = 2
|
|
Configuration = "(H (4 [50] 3))"
|
|
End
|
|
Begin PaneConfiguration = 7
|
|
NumPanes = 1
|
|
Configuration = "(V (3))"
|
|
End
|
|
Begin PaneConfiguration = 8
|
|
NumPanes = 3
|
|
Configuration = "(H (1[56] 4[18] 2) )"
|
|
End
|
|
Begin PaneConfiguration = 9
|
|
NumPanes = 2
|
|
Configuration = "(H (1 [75] 4))"
|
|
End
|
|
Begin PaneConfiguration = 10
|
|
NumPanes = 2
|
|
Configuration = "(H (1[66] 2) )"
|
|
End
|
|
Begin PaneConfiguration = 11
|
|
NumPanes = 2
|
|
Configuration = "(H (4 [60] 2))"
|
|
End
|
|
Begin PaneConfiguration = 12
|
|
NumPanes = 1
|
|
Configuration = "(H (1) )"
|
|
End
|
|
Begin PaneConfiguration = 13
|
|
NumPanes = 1
|
|
Configuration = "(V (4))"
|
|
End
|
|
Begin PaneConfiguration = 14
|
|
NumPanes = 1
|
|
Configuration = "(V (2))"
|
|
End
|
|
ActivePaneConfig = 0
|
|
End
|
|
Begin DiagramPane =
|
|
Begin Origin =
|
|
Top = 0
|
|
Left = 0
|
|
End
|
|
Begin Tables =
|
|
Begin Table = "AnagAmbitoGuasto"
|
|
Begin Extent =
|
|
Top = 11
|
|
Left = 82
|
|
Bottom = 89
|
|
Right = 255
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
Begin Table = "AnagImpianti"
|
|
Begin Extent =
|
|
Top = 123
|
|
Left = 219
|
|
Bottom = 231
|
|
Right = 370
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
Begin Table = "AnagMacchine"
|
|
Begin Extent =
|
|
Top = 190
|
|
Left = 826
|
|
Bottom = 298
|
|
Right = 977
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
Begin Table = "AnagTipoGuasto"
|
|
Begin Extent =
|
|
Top = 90
|
|
Left = 1143
|
|
Bottom = 168
|
|
Right = 1294
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
Begin Table = "AnagPriorita"
|
|
Begin Extent =
|
|
Top = 23
|
|
Left = 958
|
|
Bottom = 116
|
|
Right = 1109
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
Begin Table = "AnagStati"
|
|
Begin Extent =
|
|
Top = 263
|
|
Left = 90
|
|
Bottom = 356
|
|
Right = 241
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
Begin Table = "v_interventiErogati"
|
|
Begin Extent =
|
|
Top = 3
|
|
Left = 739
|
|
Bottom = 81
|
|
Right = 890
|
|
']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_elencoIntervFilt].[MS_DiagramPane2]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[' End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
Begin Table = "AnagCausali"
|
|
Begin Extent =
|
|
Top = 291
|
|
Left = 1011
|
|
Bottom = 369
|
|
Right = 1162
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
Begin Table = "InterventiMtz"
|
|
Begin Extent =
|
|
Top = 8
|
|
Left = 486
|
|
Bottom = 354
|
|
Right = 671
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
End
|
|
End
|
|
Begin SQLPane =
|
|
End
|
|
Begin DataPane =
|
|
Begin ParameterDefaults = ""
|
|
End
|
|
Begin ColumnWidths = 30
|
|
Width = 284
|
|
Width = 915
|
|
Width = 1815
|
|
Width = 690
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1665
|
|
Width = 1665
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1050
|
|
Width = 1020
|
|
Width = 1125
|
|
Width = 1815
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
End
|
|
End
|
|
Begin CriteriaPane =
|
|
Begin ColumnWidths = 11
|
|
Column = 1440
|
|
Alias = 900
|
|
Table = 1170
|
|
Output = 720
|
|
Append = 1400
|
|
NewValue = 1170
|
|
SortType = 1350
|
|
SortOrder = 1410
|
|
GroupBy = 1350
|
|
Filter = 1350
|
|
Or = 1350
|
|
Or = 1350
|
|
Or = 1350
|
|
End
|
|
End
|
|
End
|
|
']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_elencoIntervFilt].[MS_DiagramPaneCount]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[2]]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_elencoIntervFilt]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_interventiErogati].[MS_DiagramPane1]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
|
|
Begin DesignProperties =
|
|
Begin PaneConfigurations =
|
|
Begin PaneConfiguration = 0
|
|
NumPanes = 4
|
|
Configuration = "(H (1[40] 4[20] 2[20] 3) )"
|
|
End
|
|
Begin PaneConfiguration = 1
|
|
NumPanes = 3
|
|
Configuration = "(H (1 [50] 4 [25] 3))"
|
|
End
|
|
Begin PaneConfiguration = 2
|
|
NumPanes = 3
|
|
Configuration = "(H (1 [50] 2 [25] 3))"
|
|
End
|
|
Begin PaneConfiguration = 3
|
|
NumPanes = 3
|
|
Configuration = "(H (4 [30] 2 [40] 3))"
|
|
End
|
|
Begin PaneConfiguration = 4
|
|
NumPanes = 2
|
|
Configuration = "(H (1 [56] 3))"
|
|
End
|
|
Begin PaneConfiguration = 5
|
|
NumPanes = 2
|
|
Configuration = "(H (2 [66] 3))"
|
|
End
|
|
Begin PaneConfiguration = 6
|
|
NumPanes = 2
|
|
Configuration = "(H (4 [50] 3))"
|
|
End
|
|
Begin PaneConfiguration = 7
|
|
NumPanes = 1
|
|
Configuration = "(V (3))"
|
|
End
|
|
Begin PaneConfiguration = 8
|
|
NumPanes = 3
|
|
Configuration = "(H (1[56] 4[18] 2) )"
|
|
End
|
|
Begin PaneConfiguration = 9
|
|
NumPanes = 2
|
|
Configuration = "(H (1 [75] 4))"
|
|
End
|
|
Begin PaneConfiguration = 10
|
|
NumPanes = 2
|
|
Configuration = "(H (1[66] 2) )"
|
|
End
|
|
Begin PaneConfiguration = 11
|
|
NumPanes = 2
|
|
Configuration = "(H (4 [60] 2))"
|
|
End
|
|
Begin PaneConfiguration = 12
|
|
NumPanes = 1
|
|
Configuration = "(H (1) )"
|
|
End
|
|
Begin PaneConfiguration = 13
|
|
NumPanes = 1
|
|
Configuration = "(V (4))"
|
|
End
|
|
Begin PaneConfiguration = 14
|
|
NumPanes = 1
|
|
Configuration = "(V (2))"
|
|
End
|
|
ActivePaneConfig = 0
|
|
End
|
|
Begin DiagramPane =
|
|
Begin Origin =
|
|
Top = 0
|
|
Left = 0
|
|
End
|
|
Begin Tables =
|
|
Begin Table = "InterventoOpMtz"
|
|
Begin Extent =
|
|
Top = 6
|
|
Left = 38
|
|
Bottom = 99
|
|
Right = 189
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
End
|
|
End
|
|
Begin SQLPane =
|
|
End
|
|
Begin DataPane =
|
|
Begin ParameterDefaults = ""
|
|
End
|
|
Begin ColumnWidths = 9
|
|
Width = 284
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
End
|
|
End
|
|
Begin CriteriaPane =
|
|
Begin ColumnWidths = 12
|
|
Column = 1440
|
|
Alias = 900
|
|
Table = 1170
|
|
Output = 720
|
|
Append = 1400
|
|
NewValue = 1170
|
|
SortType = 1350
|
|
SortOrder = 1410
|
|
GroupBy = 1350
|
|
Filter = 1350
|
|
Or = 1350
|
|
Or = 1350
|
|
Or = 1350
|
|
End
|
|
End
|
|
End
|
|
']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_interventiErogati]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_interventiErogati].[MS_DiagramPaneCount]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[1]]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_interventiErogati]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_intervExp].[MS_DiagramPane1]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
|
|
Begin DesignProperties =
|
|
Begin PaneConfigurations =
|
|
Begin PaneConfiguration = 0
|
|
NumPanes = 4
|
|
Configuration = "(H (1[40] 4[20] 2[20] 3) )"
|
|
End
|
|
Begin PaneConfiguration = 1
|
|
NumPanes = 3
|
|
Configuration = "(H (1 [50] 4 [25] 3))"
|
|
End
|
|
Begin PaneConfiguration = 2
|
|
NumPanes = 3
|
|
Configuration = "(H (1 [50] 2 [25] 3))"
|
|
End
|
|
Begin PaneConfiguration = 3
|
|
NumPanes = 3
|
|
Configuration = "(H (4 [30] 2 [40] 3))"
|
|
End
|
|
Begin PaneConfiguration = 4
|
|
NumPanes = 2
|
|
Configuration = "(H (1 [56] 3))"
|
|
End
|
|
Begin PaneConfiguration = 5
|
|
NumPanes = 2
|
|
Configuration = "(H (2 [66] 3))"
|
|
End
|
|
Begin PaneConfiguration = 6
|
|
NumPanes = 2
|
|
Configuration = "(H (4 [50] 3))"
|
|
End
|
|
Begin PaneConfiguration = 7
|
|
NumPanes = 1
|
|
Configuration = "(V (3))"
|
|
End
|
|
Begin PaneConfiguration = 8
|
|
NumPanes = 3
|
|
Configuration = "(H (1[56] 4[18] 2) )"
|
|
End
|
|
Begin PaneConfiguration = 9
|
|
NumPanes = 2
|
|
Configuration = "(H (1 [75] 4))"
|
|
End
|
|
Begin PaneConfiguration = 10
|
|
NumPanes = 2
|
|
Configuration = "(H (1[66] 2) )"
|
|
End
|
|
Begin PaneConfiguration = 11
|
|
NumPanes = 2
|
|
Configuration = "(H (4 [60] 2))"
|
|
End
|
|
Begin PaneConfiguration = 12
|
|
NumPanes = 1
|
|
Configuration = "(H (1) )"
|
|
End
|
|
Begin PaneConfiguration = 13
|
|
NumPanes = 1
|
|
Configuration = "(V (4))"
|
|
End
|
|
Begin PaneConfiguration = 14
|
|
NumPanes = 1
|
|
Configuration = "(V (2))"
|
|
End
|
|
ActivePaneConfig = 0
|
|
End
|
|
Begin DiagramPane =
|
|
Begin Origin =
|
|
Top = 0
|
|
Left = 0
|
|
End
|
|
Begin Tables =
|
|
Begin Table = "InterventiMtz"
|
|
Begin Extent =
|
|
Top = 5
|
|
Left = 576
|
|
Bottom = 360
|
|
Right = 761
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
Begin Table = "AnagAmbitoGuasto"
|
|
Begin Extent =
|
|
Top = 4
|
|
Left = 213
|
|
Bottom = 82
|
|
Right = 386
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
Begin Table = "AnagImpianti"
|
|
Begin Extent =
|
|
Top = 113
|
|
Left = 834
|
|
Bottom = 221
|
|
Right = 985
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
Begin Table = "AnagMacchine"
|
|
Begin Extent =
|
|
Top = 181
|
|
Left = 227
|
|
Bottom = 289
|
|
Right = 378
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
Begin Table = "AnagTipoGuasto"
|
|
Begin Extent =
|
|
Top = 91
|
|
Left = 228
|
|
Bottom = 169
|
|
Right = 379
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
Begin Table = "AnagPriorita"
|
|
Begin Extent =
|
|
Top = 19
|
|
Left = 834
|
|
Bottom = 97
|
|
Right = 985
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
Begin Table = "AnagStati"
|
|
Begin Extent =
|
|
Top = 237
|
|
Left = 834
|
|
Bottom = 315
|
|
Right = 985
|
|
']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_intervExp]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_intervExp].[MS_DiagramPane2]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[N' End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
Begin Table = "AnagCausali"
|
|
Begin Extent =
|
|
Top = 295
|
|
Left = 235
|
|
Bottom = 373
|
|
Right = 386
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
End
|
|
End
|
|
Begin SQLPane =
|
|
End
|
|
Begin DataPane =
|
|
Begin ParameterDefaults = ""
|
|
End
|
|
Begin ColumnWidths = 30
|
|
Width = 284
|
|
Width = 1500
|
|
Width = 1665
|
|
Width = 1185
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1830
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
End
|
|
End
|
|
Begin CriteriaPane =
|
|
Begin ColumnWidths = 11
|
|
Column = 1440
|
|
Alias = 900
|
|
Table = 1170
|
|
Output = 720
|
|
Append = 1400
|
|
NewValue = 1170
|
|
SortType = 1350
|
|
SortOrder = 1410
|
|
GroupBy = 1350
|
|
Filter = 1350
|
|
Or = 1350
|
|
Or = 1350
|
|
Or = 1350
|
|
End
|
|
End
|
|
End
|
|
']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_intervExp]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_intervExp].[MS_DiagramPaneCount]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[2]]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_intervExp]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_MovMagExpl].[MS_DiagramPane1]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[N'[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 = "MovMagRic"
|
|
Begin Extent =
|
|
Top = 133
|
|
Left = 124
|
|
Bottom = 299
|
|
Right = 294
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
Begin Table = "AnagItems"
|
|
Begin Extent =
|
|
Top = 134
|
|
Left = 397
|
|
Bottom = 354
|
|
Right = 579
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
Begin Table = "MagRic"
|
|
Begin Extent =
|
|
Top = 133
|
|
Left = 660
|
|
Bottom = 290
|
|
Right = 830
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
Begin Table = "AnagLocazioni"
|
|
Begin Extent =
|
|
Top = 150
|
|
Left = 908
|
|
Bottom = 246
|
|
Right = 1078
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
End
|
|
End
|
|
Begin SQLPane =
|
|
End
|
|
Begin DataPane =
|
|
Begin ParameterDefaults = ""
|
|
End
|
|
Begin ColumnWidths = 17
|
|
Width = 284
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
End
|
|
End
|
|
Begin CriteriaPane =
|
|
Begin ColumnWidths = 11
|
|
Column = 1440
|
|
Alias = 900
|
|
Table = 1170
|
|
Output = 720
|
|
Append = 1400
|
|
']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_MovMagExpl]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_MovMagExpl].[MS_DiagramPane2]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[N' NewValue = 1170
|
|
SortType = 1350
|
|
SortOrder = 1410
|
|
GroupBy = 1350
|
|
Filter = 1350
|
|
Or = 1350
|
|
Or = 1350
|
|
Or = 1350
|
|
End
|
|
End
|
|
End
|
|
']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_MovMagExpl]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_MovMagExpl].[MS_DiagramPaneCount]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[2]]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_MovMagExpl]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_movMagPend].[MS_DiagramPane1]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[N'[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 = "MovMagRic"
|
|
Begin Extent =
|
|
Top = 6
|
|
Left = 38
|
|
Bottom = 220
|
|
Right = 208
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
End
|
|
End
|
|
Begin SQLPane =
|
|
End
|
|
Begin DataPane =
|
|
Begin ParameterDefaults = ""
|
|
End
|
|
Begin ColumnWidths = 9
|
|
Width = 284
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
End
|
|
End
|
|
Begin CriteriaPane =
|
|
Begin ColumnWidths = 12
|
|
Column = 1440
|
|
Alias = 900
|
|
Table = 1170
|
|
Output = 720
|
|
Append = 1400
|
|
NewValue = 1170
|
|
SortType = 1350
|
|
SortOrder = 1410
|
|
GroupBy = 1350
|
|
Filter = 1350
|
|
Or = 1350
|
|
Or = 1350
|
|
Or = 1350
|
|
End
|
|
End
|
|
End
|
|
']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_movMagPend]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_movMagPend].[MS_DiagramPaneCount]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[1]]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_movMagPend]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_mtzProgExp].[MS_DiagramPane1]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
|
|
Begin DesignProperties =
|
|
Begin PaneConfigurations =
|
|
Begin PaneConfiguration = 0
|
|
NumPanes = 4
|
|
Configuration = "(H (1[40] 4[20] 2[20] 3) )"
|
|
End
|
|
Begin PaneConfiguration = 1
|
|
NumPanes = 3
|
|
Configuration = "(H (1 [50] 4 [25] 3))"
|
|
End
|
|
Begin PaneConfiguration = 2
|
|
NumPanes = 3
|
|
Configuration = "(H (1 [50] 2 [25] 3))"
|
|
End
|
|
Begin PaneConfiguration = 3
|
|
NumPanes = 3
|
|
Configuration = "(H (4 [30] 2 [40] 3))"
|
|
End
|
|
Begin PaneConfiguration = 4
|
|
NumPanes = 2
|
|
Configuration = "(H (1 [56] 3))"
|
|
End
|
|
Begin PaneConfiguration = 5
|
|
NumPanes = 2
|
|
Configuration = "(H (2 [66] 3))"
|
|
End
|
|
Begin PaneConfiguration = 6
|
|
NumPanes = 2
|
|
Configuration = "(H (4 [50] 3))"
|
|
End
|
|
Begin PaneConfiguration = 7
|
|
NumPanes = 1
|
|
Configuration = "(V (3))"
|
|
End
|
|
Begin PaneConfiguration = 8
|
|
NumPanes = 3
|
|
Configuration = "(H (1[56] 4[18] 2) )"
|
|
End
|
|
Begin PaneConfiguration = 9
|
|
NumPanes = 2
|
|
Configuration = "(H (1 [75] 4))"
|
|
End
|
|
Begin PaneConfiguration = 10
|
|
NumPanes = 2
|
|
Configuration = "(H (1[66] 2) )"
|
|
End
|
|
Begin PaneConfiguration = 11
|
|
NumPanes = 2
|
|
Configuration = "(H (4 [60] 2))"
|
|
End
|
|
Begin PaneConfiguration = 12
|
|
NumPanes = 1
|
|
Configuration = "(H (1) )"
|
|
End
|
|
Begin PaneConfiguration = 13
|
|
NumPanes = 1
|
|
Configuration = "(V (4))"
|
|
End
|
|
Begin PaneConfiguration = 14
|
|
NumPanes = 1
|
|
Configuration = "(V (2))"
|
|
End
|
|
ActivePaneConfig = 0
|
|
End
|
|
Begin DiagramPane =
|
|
Begin Origin =
|
|
Top = 0
|
|
Left = 0
|
|
End
|
|
Begin Tables =
|
|
Begin Table = "MtzProgrammata"
|
|
Begin Extent =
|
|
Top = 6
|
|
Left = 38
|
|
Bottom = 275
|
|
Right = 189
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
Begin Table = "AnagMacchine"
|
|
Begin Extent =
|
|
Top = 213
|
|
Left = 288
|
|
Bottom = 321
|
|
Right = 439
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
Begin Table = "AnagFrequenze"
|
|
Begin Extent =
|
|
Top = 6
|
|
Left = 416
|
|
Bottom = 84
|
|
Right = 567
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
Begin Table = "AnagPriorita"
|
|
Begin Extent =
|
|
Top = 6
|
|
Left = 605
|
|
Bottom = 99
|
|
Right = 756
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
Begin Table = "AnagTipoGuasto"
|
|
Begin Extent =
|
|
Top = 6
|
|
Left = 794
|
|
Bottom = 84
|
|
Right = 945
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
Begin Table = "AnagImpianti"
|
|
Begin Extent =
|
|
Top = 137
|
|
Left = 581
|
|
Bottom = 267
|
|
Right = 751
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
End
|
|
End
|
|
Begin SQLPane =
|
|
End
|
|
Begin DataPane =
|
|
Begin ParameterDefaults = ""
|
|
End
|
|
Begin ColumnWidths = 17
|
|
Width = 284
|
|
Width = 1500']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_mtzProgExp]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_mtzProgExp].[MS_DiagramPane2]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[N'
|
|
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
|
|
']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_mtzProgExp]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_mtzProgExp].[MS_DiagramPaneCount]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[2]]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_mtzProgExp]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_mtzProgPendingExp].[MS_DiagramPane1]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA['[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
|
|
Begin DesignProperties =
|
|
Begin PaneConfigurations =
|
|
Begin PaneConfiguration = 0
|
|
NumPanes = 4
|
|
Configuration = "(H (1[40] 4[20] 2[20] 3) )"
|
|
End
|
|
Begin PaneConfiguration = 1
|
|
NumPanes = 3
|
|
Configuration = "(H (1 [50] 4 [25] 3))"
|
|
End
|
|
Begin PaneConfiguration = 2
|
|
NumPanes = 3
|
|
Configuration = "(H (1 [50] 2 [25] 3))"
|
|
End
|
|
Begin PaneConfiguration = 3
|
|
NumPanes = 3
|
|
Configuration = "(H (4 [30] 2 [40] 3))"
|
|
End
|
|
Begin PaneConfiguration = 4
|
|
NumPanes = 2
|
|
Configuration = "(H (1 [56] 3))"
|
|
End
|
|
Begin PaneConfiguration = 5
|
|
NumPanes = 2
|
|
Configuration = "(H (2 [66] 3))"
|
|
End
|
|
Begin PaneConfiguration = 6
|
|
NumPanes = 2
|
|
Configuration = "(H (4 [50] 3))"
|
|
End
|
|
Begin PaneConfiguration = 7
|
|
NumPanes = 1
|
|
Configuration = "(V (3))"
|
|
End
|
|
Begin PaneConfiguration = 8
|
|
NumPanes = 3
|
|
Configuration = "(H (1[56] 4[18] 2) )"
|
|
End
|
|
Begin PaneConfiguration = 9
|
|
NumPanes = 2
|
|
Configuration = "(H (1 [75] 4))"
|
|
End
|
|
Begin PaneConfiguration = 10
|
|
NumPanes = 2
|
|
Configuration = "(H (1[66] 2) )"
|
|
End
|
|
Begin PaneConfiguration = 11
|
|
NumPanes = 2
|
|
Configuration = "(H (4 [60] 2))"
|
|
End
|
|
Begin PaneConfiguration = 12
|
|
NumPanes = 1
|
|
Configuration = "(H (1) )"
|
|
End
|
|
Begin PaneConfiguration = 13
|
|
NumPanes = 1
|
|
Configuration = "(V (4))"
|
|
End
|
|
Begin PaneConfiguration = 14
|
|
NumPanes = 1
|
|
Configuration = "(V (2))"
|
|
End
|
|
ActivePaneConfig = 0
|
|
End
|
|
Begin DiagramPane =
|
|
Begin Origin =
|
|
Top = 0
|
|
Left = 0
|
|
End
|
|
Begin Tables =
|
|
Begin Table = "MtzProgPending"
|
|
Begin Extent =
|
|
Top = 57
|
|
Left = 597
|
|
Bottom = 228
|
|
Right = 748
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
Begin Table = "AnagMacchine"
|
|
Begin Extent =
|
|
Top = 33
|
|
Left = 341
|
|
Bottom = 253
|
|
Right = 492
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
Begin Table = "AnagImpianti"
|
|
Begin Extent =
|
|
Top = 83
|
|
Left = 127
|
|
Bottom = 226
|
|
Right = 278
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
Begin Table = "AnagTipoGuasto"
|
|
Begin Extent =
|
|
Top = 182
|
|
Left = 869
|
|
Bottom = 260
|
|
Right = 1020
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
Begin Table = "AnagPriorita"
|
|
Begin Extent =
|
|
Top = 16
|
|
Left = 874
|
|
Bottom = 109
|
|
Right = 1025
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
End
|
|
End
|
|
Begin SQLPane =
|
|
End
|
|
Begin DataPane =
|
|
Begin ParameterDefaults = ""
|
|
End
|
|
Begin ColumnWidths = 10
|
|
Width = 284
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
End
|
|
End
|
|
Begin CriteriaPane =
|
|
Begin ColumnWidths = 1']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_mtzProgPendingExp]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_mtzProgPendingExp].[MS_DiagramPane2]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA['1
|
|
Column = 1440
|
|
Alias = 900
|
|
Table = 1170
|
|
Output = 720
|
|
Append = 1400
|
|
NewValue = 1170
|
|
SortType = 1350
|
|
SortOrder = 1410
|
|
GroupBy = 1350
|
|
Filter = 1350
|
|
Or = 1350
|
|
Or = 1350
|
|
Or = 1350
|
|
End
|
|
End
|
|
End
|
|
']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_mtzProgPendingExp]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_mtzProgPendingExp].[MS_DiagramPaneCount]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[2]]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_mtzProgPendingExp]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_reportSemestraleFix].[MS_DiagramPane1]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[N'[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 = "v_elencoIntervFilt"
|
|
Begin Extent =
|
|
Top = 6
|
|
Left = 38
|
|
Bottom = 136
|
|
Right = 240
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
End
|
|
End
|
|
Begin SQLPane =
|
|
End
|
|
Begin DataPane =
|
|
Begin ParameterDefaults = ""
|
|
End
|
|
Begin ColumnWidths = 9
|
|
Width = 284
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
End
|
|
End
|
|
Begin CriteriaPane =
|
|
Begin ColumnWidths = 11
|
|
Column = 1440
|
|
Alias = 900
|
|
Table = 1170
|
|
Output = 720
|
|
Append = 1400
|
|
NewValue = 1170
|
|
SortType = 1350
|
|
SortOrder = 1410
|
|
GroupBy = 1350
|
|
Filter = 1350
|
|
Or = 1350
|
|
Or = 1350
|
|
Or = 1350
|
|
End
|
|
End
|
|
End
|
|
']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_reportSemestraleFix]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_reportSemestraleFix].[MS_DiagramPaneCount]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[1]]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_reportSemestraleFix]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_risorseImpiegate].[MS_DiagramPane1]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[N'[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 = "ImpiegoRisorse"
|
|
Begin Extent =
|
|
Top = 6
|
|
Left = 38
|
|
Bottom = 192
|
|
Right = 208
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
End
|
|
End
|
|
Begin SQLPane =
|
|
End
|
|
Begin DataPane =
|
|
Begin ParameterDefaults = ""
|
|
End
|
|
Begin ColumnWidths = 9
|
|
Width = 284
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
End
|
|
End
|
|
Begin CriteriaPane =
|
|
Begin ColumnWidths = 12
|
|
Column = 1440
|
|
Alias = 900
|
|
Table = 1170
|
|
Output = 720
|
|
Append = 1400
|
|
NewValue = 1170
|
|
SortType = 1350
|
|
SortOrder = 1410
|
|
GroupBy = 1350
|
|
Filter = 1350
|
|
Or = 1350
|
|
Or = 1350
|
|
Or = 1350
|
|
End
|
|
End
|
|
End
|
|
']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_risorseImpiegate]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_risorseImpiegate].[MS_DiagramPaneCount]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[1]]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_risorseImpiegate]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_selAnTipoRis].[MS_DiagramPane1]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[N'[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 = "AnagTipoRisorsa"
|
|
Begin Extent =
|
|
Top = 6
|
|
Left = 38
|
|
Bottom = 136
|
|
Right = 208
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
End
|
|
End
|
|
Begin SQLPane =
|
|
End
|
|
Begin DataPane =
|
|
Begin ParameterDefaults = ""
|
|
End
|
|
Begin ColumnWidths = 9
|
|
Width = 284
|
|
Width = 1500
|
|
Width = 2355
|
|
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
|
|
']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_selAnTipoRis]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_selAnTipoRis].[MS_DiagramPaneCount]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[1]]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_selAnTipoRis]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_selCausaliMacchine].[MS_DiagramPane1]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA['[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
|
|
Begin DesignProperties =
|
|
Begin PaneConfigurations =
|
|
Begin PaneConfiguration = 0
|
|
NumPanes = 4
|
|
Configuration = "(H (1[40] 4[20] 2[20] 3) )"
|
|
End
|
|
Begin PaneConfiguration = 1
|
|
NumPanes = 3
|
|
Configuration = "(H (1 [50] 4 [25] 3))"
|
|
End
|
|
Begin PaneConfiguration = 2
|
|
NumPanes = 3
|
|
Configuration = "(H (1 [50] 2 [25] 3))"
|
|
End
|
|
Begin PaneConfiguration = 3
|
|
NumPanes = 3
|
|
Configuration = "(H (4 [30] 2 [40] 3))"
|
|
End
|
|
Begin PaneConfiguration = 4
|
|
NumPanes = 2
|
|
Configuration = "(H (1 [56] 3))"
|
|
End
|
|
Begin PaneConfiguration = 5
|
|
NumPanes = 2
|
|
Configuration = "(H (2 [66] 3))"
|
|
End
|
|
Begin PaneConfiguration = 6
|
|
NumPanes = 2
|
|
Configuration = "(H (4 [50] 3))"
|
|
End
|
|
Begin PaneConfiguration = 7
|
|
NumPanes = 1
|
|
Configuration = "(V (3))"
|
|
End
|
|
Begin PaneConfiguration = 8
|
|
NumPanes = 3
|
|
Configuration = "(H (1[56] 4[18] 2) )"
|
|
End
|
|
Begin PaneConfiguration = 9
|
|
NumPanes = 2
|
|
Configuration = "(H (1 [75] 4))"
|
|
End
|
|
Begin PaneConfiguration = 10
|
|
NumPanes = 2
|
|
Configuration = "(H (1[66] 2) )"
|
|
End
|
|
Begin PaneConfiguration = 11
|
|
NumPanes = 2
|
|
Configuration = "(H (4 [60] 2))"
|
|
End
|
|
Begin PaneConfiguration = 12
|
|
NumPanes = 1
|
|
Configuration = "(H (1) )"
|
|
End
|
|
Begin PaneConfiguration = 13
|
|
NumPanes = 1
|
|
Configuration = "(V (4))"
|
|
End
|
|
Begin PaneConfiguration = 14
|
|
NumPanes = 1
|
|
Configuration = "(V (2))"
|
|
End
|
|
ActivePaneConfig = 0
|
|
End
|
|
Begin DiagramPane =
|
|
Begin Origin =
|
|
Top = 0
|
|
Left = 0
|
|
End
|
|
Begin Tables =
|
|
Begin Table = "Macchine2FamMacchine"
|
|
Begin Extent =
|
|
Top = 15
|
|
Left = 448
|
|
Bottom = 93
|
|
Right = 606
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
Begin Table = "AnagCausali"
|
|
Begin Extent =
|
|
Top = 54
|
|
Left = 38
|
|
Bottom = 162
|
|
Right = 196
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
End
|
|
End
|
|
Begin SQLPane =
|
|
End
|
|
Begin DataPane =
|
|
Begin ParameterDefaults = ""
|
|
End
|
|
Begin ColumnWidths = 9
|
|
Width = 284
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
End
|
|
End
|
|
Begin CriteriaPane =
|
|
Begin ColumnWidths = 11
|
|
Column = 1440
|
|
Alias = 900
|
|
Table = 1170
|
|
Output = 720
|
|
Append = 1400
|
|
NewValue = 1170
|
|
SortType = 1350
|
|
SortOrder = 1410
|
|
GroupBy = 1350
|
|
Filter = 1350
|
|
Or = 1350
|
|
Or = 1350
|
|
Or = 1350
|
|
End
|
|
End
|
|
End
|
|
']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_selCausaliMacchine]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_selCausaliMacchine].[MS_DiagramPaneCount]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[1]]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_selCausaliMacchine]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_selFam].[MS_DiagramPane1]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA['[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
|
|
Begin DesignProperties =
|
|
Begin PaneConfigurations =
|
|
Begin PaneConfiguration = 0
|
|
NumPanes = 4
|
|
Configuration = "(H (1[40] 4[20] 2[20] 3) )"
|
|
End
|
|
Begin PaneConfiguration = 1
|
|
NumPanes = 3
|
|
Configuration = "(H (1 [50] 4 [25] 3))"
|
|
End
|
|
Begin PaneConfiguration = 2
|
|
NumPanes = 3
|
|
Configuration = "(H (1 [50] 2 [25] 3))"
|
|
End
|
|
Begin PaneConfiguration = 3
|
|
NumPanes = 3
|
|
Configuration = "(H (4 [30] 2 [40] 3))"
|
|
End
|
|
Begin PaneConfiguration = 4
|
|
NumPanes = 2
|
|
Configuration = "(H (1 [56] 3))"
|
|
End
|
|
Begin PaneConfiguration = 5
|
|
NumPanes = 2
|
|
Configuration = "(H (2 [66] 3))"
|
|
End
|
|
Begin PaneConfiguration = 6
|
|
NumPanes = 2
|
|
Configuration = "(H (4 [50] 3))"
|
|
End
|
|
Begin PaneConfiguration = 7
|
|
NumPanes = 1
|
|
Configuration = "(V (3))"
|
|
End
|
|
Begin PaneConfiguration = 8
|
|
NumPanes = 3
|
|
Configuration = "(H (1[56] 4[18] 2) )"
|
|
End
|
|
Begin PaneConfiguration = 9
|
|
NumPanes = 2
|
|
Configuration = "(H (1 [75] 4))"
|
|
End
|
|
Begin PaneConfiguration = 10
|
|
NumPanes = 2
|
|
Configuration = "(H (1[66] 2) )"
|
|
End
|
|
Begin PaneConfiguration = 11
|
|
NumPanes = 2
|
|
Configuration = "(H (4 [60] 2))"
|
|
End
|
|
Begin PaneConfiguration = 12
|
|
NumPanes = 1
|
|
Configuration = "(H (1) )"
|
|
End
|
|
Begin PaneConfiguration = 13
|
|
NumPanes = 1
|
|
Configuration = "(V (4))"
|
|
End
|
|
Begin PaneConfiguration = 14
|
|
NumPanes = 1
|
|
Configuration = "(V (2))"
|
|
End
|
|
ActivePaneConfig = 0
|
|
End
|
|
Begin DiagramPane =
|
|
Begin Origin =
|
|
Top = 0
|
|
Left = 0
|
|
End
|
|
Begin Tables =
|
|
Begin Table = "AnagFamMacchine"
|
|
Begin Extent =
|
|
Top = 6
|
|
Left = 38
|
|
Bottom = 84
|
|
Right = 196
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
End
|
|
End
|
|
Begin SQLPane =
|
|
End
|
|
Begin DataPane =
|
|
Begin ParameterDefaults = ""
|
|
End
|
|
End
|
|
Begin CriteriaPane =
|
|
Begin ColumnWidths = 11
|
|
Column = 1440
|
|
Alias = 900
|
|
Table = 1170
|
|
Output = 720
|
|
Append = 1400
|
|
NewValue = 1170
|
|
SortType = 1350
|
|
SortOrder = 1410
|
|
GroupBy = 1350
|
|
Filter = 1350
|
|
Or = 1350
|
|
Or = 1350
|
|
Or = 1350
|
|
End
|
|
End
|
|
End
|
|
']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_selFam]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_selFam].[MS_DiagramPaneCount]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[1]]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_selFam]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_selFreq].[MS_DiagramPane1]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
|
|
Begin DesignProperties =
|
|
Begin PaneConfigurations =
|
|
Begin PaneConfiguration = 0
|
|
NumPanes = 4
|
|
Configuration = "(H (1[40] 4[20] 2[20] 3) )"
|
|
End
|
|
Begin PaneConfiguration = 1
|
|
NumPanes = 3
|
|
Configuration = "(H (1 [50] 4 [25] 3))"
|
|
End
|
|
Begin PaneConfiguration = 2
|
|
NumPanes = 3
|
|
Configuration = "(H (1 [50] 2 [25] 3))"
|
|
End
|
|
Begin PaneConfiguration = 3
|
|
NumPanes = 3
|
|
Configuration = "(H (4 [30] 2 [40] 3))"
|
|
End
|
|
Begin PaneConfiguration = 4
|
|
NumPanes = 2
|
|
Configuration = "(H (1 [56] 3))"
|
|
End
|
|
Begin PaneConfiguration = 5
|
|
NumPanes = 2
|
|
Configuration = "(H (2 [66] 3))"
|
|
End
|
|
Begin PaneConfiguration = 6
|
|
NumPanes = 2
|
|
Configuration = "(H (4 [50] 3))"
|
|
End
|
|
Begin PaneConfiguration = 7
|
|
NumPanes = 1
|
|
Configuration = "(V (3))"
|
|
End
|
|
Begin PaneConfiguration = 8
|
|
NumPanes = 3
|
|
Configuration = "(H (1[56] 4[18] 2) )"
|
|
End
|
|
Begin PaneConfiguration = 9
|
|
NumPanes = 2
|
|
Configuration = "(H (1 [75] 4))"
|
|
End
|
|
Begin PaneConfiguration = 10
|
|
NumPanes = 2
|
|
Configuration = "(H (1[66] 2) )"
|
|
End
|
|
Begin PaneConfiguration = 11
|
|
NumPanes = 2
|
|
Configuration = "(H (4 [60] 2))"
|
|
End
|
|
Begin PaneConfiguration = 12
|
|
NumPanes = 1
|
|
Configuration = "(H (1) )"
|
|
End
|
|
Begin PaneConfiguration = 13
|
|
NumPanes = 1
|
|
Configuration = "(V (4))"
|
|
End
|
|
Begin PaneConfiguration = 14
|
|
NumPanes = 1
|
|
Configuration = "(V (2))"
|
|
End
|
|
ActivePaneConfig = 0
|
|
End
|
|
Begin DiagramPane =
|
|
Begin Origin =
|
|
Top = 0
|
|
Left = 0
|
|
End
|
|
Begin Tables =
|
|
Begin Table = "AnagFrequenze"
|
|
Begin Extent =
|
|
Top = 6
|
|
Left = 38
|
|
Bottom = 84
|
|
Right = 189
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
End
|
|
End
|
|
Begin SQLPane =
|
|
End
|
|
Begin DataPane =
|
|
Begin ParameterDefaults = ""
|
|
End
|
|
Begin ColumnWidths = 9
|
|
Width = 284
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
End
|
|
End
|
|
Begin CriteriaPane =
|
|
Begin ColumnWidths = 11
|
|
Column = 1440
|
|
Alias = 900
|
|
Table = 1170
|
|
Output = 720
|
|
Append = 1400
|
|
NewValue = 1170
|
|
SortType = 1350
|
|
SortOrder = 1410
|
|
GroupBy = 1350
|
|
Filter = 1350
|
|
Or = 1350
|
|
Or = 1350
|
|
Or = 1350
|
|
End
|
|
End
|
|
End
|
|
']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_selFreq]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_selFreq].[MS_DiagramPaneCount]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[1]]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_selFreq]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_selImpianti].[MS_DiagramPane1]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
|
|
Begin DesignProperties =
|
|
Begin PaneConfigurations =
|
|
Begin PaneConfiguration = 0
|
|
NumPanes = 4
|
|
Configuration = "(H (1[40] 4[20] 2[20] 3) )"
|
|
End
|
|
Begin PaneConfiguration = 1
|
|
NumPanes = 3
|
|
Configuration = "(H (1 [50] 4 [25] 3))"
|
|
End
|
|
Begin PaneConfiguration = 2
|
|
NumPanes = 3
|
|
Configuration = "(H (1 [50] 2 [25] 3))"
|
|
End
|
|
Begin PaneConfiguration = 3
|
|
NumPanes = 3
|
|
Configuration = "(H (4 [30] 2 [40] 3))"
|
|
End
|
|
Begin PaneConfiguration = 4
|
|
NumPanes = 2
|
|
Configuration = "(H (1 [56] 3))"
|
|
End
|
|
Begin PaneConfiguration = 5
|
|
NumPanes = 2
|
|
Configuration = "(H (2 [66] 3))"
|
|
End
|
|
Begin PaneConfiguration = 6
|
|
NumPanes = 2
|
|
Configuration = "(H (4 [50] 3))"
|
|
End
|
|
Begin PaneConfiguration = 7
|
|
NumPanes = 1
|
|
Configuration = "(V (3))"
|
|
End
|
|
Begin PaneConfiguration = 8
|
|
NumPanes = 3
|
|
Configuration = "(H (1[56] 4[18] 2) )"
|
|
End
|
|
Begin PaneConfiguration = 9
|
|
NumPanes = 2
|
|
Configuration = "(H (1 [75] 4))"
|
|
End
|
|
Begin PaneConfiguration = 10
|
|
NumPanes = 2
|
|
Configuration = "(H (1[66] 2) )"
|
|
End
|
|
Begin PaneConfiguration = 11
|
|
NumPanes = 2
|
|
Configuration = "(H (4 [60] 2))"
|
|
End
|
|
Begin PaneConfiguration = 12
|
|
NumPanes = 1
|
|
Configuration = "(H (1) )"
|
|
End
|
|
Begin PaneConfiguration = 13
|
|
NumPanes = 1
|
|
Configuration = "(V (4))"
|
|
End
|
|
Begin PaneConfiguration = 14
|
|
NumPanes = 1
|
|
Configuration = "(V (2))"
|
|
End
|
|
ActivePaneConfig = 0
|
|
End
|
|
Begin DiagramPane =
|
|
Begin Origin =
|
|
Top = 0
|
|
Left = 0
|
|
End
|
|
Begin Tables =
|
|
Begin Table = "AnagImpianti"
|
|
Begin Extent =
|
|
Top = 6
|
|
Left = 38
|
|
Bottom = 114
|
|
Right = 189
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
End
|
|
End
|
|
Begin SQLPane =
|
|
End
|
|
Begin DataPane =
|
|
Begin ParameterDefaults = ""
|
|
End
|
|
Begin ColumnWidths = 9
|
|
Width = 284
|
|
Width = 1500
|
|
Width = 4185
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
End
|
|
End
|
|
Begin CriteriaPane =
|
|
Begin ColumnWidths = 11
|
|
Column = 1440
|
|
Alias = 900
|
|
Table = 1170
|
|
Output = 720
|
|
Append = 1400
|
|
NewValue = 1170
|
|
SortType = 1350
|
|
SortOrder = 1410
|
|
GroupBy = 1350
|
|
Filter = 1350
|
|
Or = 1350
|
|
Or = 1350
|
|
Or = 1350
|
|
End
|
|
End
|
|
End
|
|
']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_selImpianti]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_selImpianti].[MS_DiagramPaneCount]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[1]]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_selImpianti]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_selListVal].[MS_DiagramPane1]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[N'[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 = "ListValues"
|
|
Begin Extent =
|
|
Top = 6
|
|
Left = 38
|
|
Bottom = 136
|
|
Right = 208
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
End
|
|
End
|
|
Begin SQLPane =
|
|
End
|
|
Begin DataPane =
|
|
Begin ParameterDefaults = ""
|
|
End
|
|
Begin ColumnWidths = 9
|
|
Width = 284
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
End
|
|
End
|
|
Begin CriteriaPane =
|
|
Begin ColumnWidths = 11
|
|
Column = 1440
|
|
Alias = 900
|
|
Table = 1170
|
|
Output = 720
|
|
Append = 1400
|
|
NewValue = 1170
|
|
SortType = 1350
|
|
SortOrder = 1410
|
|
GroupBy = 1350
|
|
Filter = 1350
|
|
Or = 1350
|
|
Or = 1350
|
|
Or = 1350
|
|
End
|
|
End
|
|
End
|
|
']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_selListVal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_selListVal].[MS_DiagramPaneCount]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[1]]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_selListVal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_selMacchine].[MS_DiagramPane1]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
|
|
Begin DesignProperties =
|
|
Begin PaneConfigurations =
|
|
Begin PaneConfiguration = 0
|
|
NumPanes = 4
|
|
Configuration = "(H (1[40] 4[20] 2[20] 3) )"
|
|
End
|
|
Begin PaneConfiguration = 1
|
|
NumPanes = 3
|
|
Configuration = "(H (1 [50] 4 [25] 3))"
|
|
End
|
|
Begin PaneConfiguration = 2
|
|
NumPanes = 3
|
|
Configuration = "(H (1 [50] 2 [25] 3))"
|
|
End
|
|
Begin PaneConfiguration = 3
|
|
NumPanes = 3
|
|
Configuration = "(H (4 [30] 2 [40] 3))"
|
|
End
|
|
Begin PaneConfiguration = 4
|
|
NumPanes = 2
|
|
Configuration = "(H (1 [56] 3))"
|
|
End
|
|
Begin PaneConfiguration = 5
|
|
NumPanes = 2
|
|
Configuration = "(H (2 [66] 3))"
|
|
End
|
|
Begin PaneConfiguration = 6
|
|
NumPanes = 2
|
|
Configuration = "(H (4 [50] 3))"
|
|
End
|
|
Begin PaneConfiguration = 7
|
|
NumPanes = 1
|
|
Configuration = "(V (3))"
|
|
End
|
|
Begin PaneConfiguration = 8
|
|
NumPanes = 3
|
|
Configuration = "(H (1[56] 4[18] 2) )"
|
|
End
|
|
Begin PaneConfiguration = 9
|
|
NumPanes = 2
|
|
Configuration = "(H (1 [75] 4))"
|
|
End
|
|
Begin PaneConfiguration = 10
|
|
NumPanes = 2
|
|
Configuration = "(H (1[66] 2) )"
|
|
End
|
|
Begin PaneConfiguration = 11
|
|
NumPanes = 2
|
|
Configuration = "(H (4 [60] 2))"
|
|
End
|
|
Begin PaneConfiguration = 12
|
|
NumPanes = 1
|
|
Configuration = "(H (1) )"
|
|
End
|
|
Begin PaneConfiguration = 13
|
|
NumPanes = 1
|
|
Configuration = "(V (4))"
|
|
End
|
|
Begin PaneConfiguration = 14
|
|
NumPanes = 1
|
|
Configuration = "(V (2))"
|
|
End
|
|
ActivePaneConfig = 0
|
|
End
|
|
Begin DiagramPane =
|
|
Begin Origin =
|
|
Top = -384
|
|
Left = 0
|
|
End
|
|
Begin Tables =
|
|
Begin Table = "AnagMacchine"
|
|
Begin Extent =
|
|
Top = 6
|
|
Left = 38
|
|
Bottom = 114
|
|
Right = 189
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
End
|
|
End
|
|
Begin SQLPane =
|
|
End
|
|
Begin DataPane =
|
|
Begin ParameterDefaults = ""
|
|
End
|
|
Begin ColumnWidths = 9
|
|
Width = 284
|
|
Width = 1500
|
|
Width = 6795
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
End
|
|
End
|
|
Begin CriteriaPane =
|
|
Begin ColumnWidths = 11
|
|
Column = 1440
|
|
Alias = 900
|
|
Table = 1170
|
|
Output = 720
|
|
Append = 1400
|
|
NewValue = 1170
|
|
SortType = 1350
|
|
SortOrder = 1410
|
|
GroupBy = 1350
|
|
Filter = 1350
|
|
Or = 1350
|
|
Or = 1350
|
|
Or = 1350
|
|
End
|
|
End
|
|
End
|
|
']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_selMacchine]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_selMacchine].[MS_DiagramPaneCount]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[1]]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_selMacchine]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_selOperMtz].[MS_DiagramPane1]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA['[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
|
|
Begin DesignProperties =
|
|
Begin PaneConfigurations =
|
|
Begin PaneConfiguration = 0
|
|
NumPanes = 4
|
|
Configuration = "(H (1[40] 4[20] 2[20] 3) )"
|
|
End
|
|
Begin PaneConfiguration = 1
|
|
NumPanes = 3
|
|
Configuration = "(H (1 [50] 4 [25] 3))"
|
|
End
|
|
Begin PaneConfiguration = 2
|
|
NumPanes = 3
|
|
Configuration = "(H (1 [50] 2 [25] 3))"
|
|
End
|
|
Begin PaneConfiguration = 3
|
|
NumPanes = 3
|
|
Configuration = "(H (4 [30] 2 [40] 3))"
|
|
End
|
|
Begin PaneConfiguration = 4
|
|
NumPanes = 2
|
|
Configuration = "(H (1 [56] 3))"
|
|
End
|
|
Begin PaneConfiguration = 5
|
|
NumPanes = 2
|
|
Configuration = "(H (2 [66] 3))"
|
|
End
|
|
Begin PaneConfiguration = 6
|
|
NumPanes = 2
|
|
Configuration = "(H (4 [50] 3))"
|
|
End
|
|
Begin PaneConfiguration = 7
|
|
NumPanes = 1
|
|
Configuration = "(V (3))"
|
|
End
|
|
Begin PaneConfiguration = 8
|
|
NumPanes = 3
|
|
Configuration = "(H (1[56] 4[18] 2) )"
|
|
End
|
|
Begin PaneConfiguration = 9
|
|
NumPanes = 2
|
|
Configuration = "(H (1 [75] 4))"
|
|
End
|
|
Begin PaneConfiguration = 10
|
|
NumPanes = 2
|
|
Configuration = "(H (1[66] 2) )"
|
|
End
|
|
Begin PaneConfiguration = 11
|
|
NumPanes = 2
|
|
Configuration = "(H (4 [60] 2))"
|
|
End
|
|
Begin PaneConfiguration = 12
|
|
NumPanes = 1
|
|
Configuration = "(H (1) )"
|
|
End
|
|
Begin PaneConfiguration = 13
|
|
NumPanes = 1
|
|
Configuration = "(V (4))"
|
|
End
|
|
Begin PaneConfiguration = 14
|
|
NumPanes = 1
|
|
Configuration = "(V (2))"
|
|
End
|
|
ActivePaneConfig = 0
|
|
End
|
|
Begin DiagramPane =
|
|
Begin Origin =
|
|
Top = 0
|
|
Left = 0
|
|
End
|
|
Begin Tables =
|
|
Begin Table = "AnagrOperMtz"
|
|
Begin Extent =
|
|
Top = 6
|
|
Left = 38
|
|
Bottom = 99
|
|
Right = 190
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
End
|
|
End
|
|
Begin SQLPane =
|
|
End
|
|
Begin DataPane =
|
|
Begin ParameterDefaults = ""
|
|
End
|
|
Begin ColumnWidths = 9
|
|
Width = 284
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
End
|
|
End
|
|
Begin CriteriaPane =
|
|
Begin ColumnWidths = 11
|
|
Column = 1440
|
|
Alias = 900
|
|
Table = 1170
|
|
Output = 720
|
|
Append = 1400
|
|
NewValue = 1170
|
|
SortType = 1350
|
|
SortOrder = 1410
|
|
GroupBy = 1350
|
|
Filter = 1350
|
|
Or = 1350
|
|
Or = 1350
|
|
Or = 1350
|
|
End
|
|
End
|
|
End
|
|
']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_selOperMtz]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_selOperMtz].[MS_DiagramPaneCount]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[1]]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_selOperMtz]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_selPeriodiTrad].[MS_DiagramPane1]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
|
|
Begin DesignProperties =
|
|
Begin PaneConfigurations =
|
|
Begin PaneConfiguration = 0
|
|
NumPanes = 4
|
|
Configuration = "(H (1[40] 4[20] 2[20] 3) )"
|
|
End
|
|
Begin PaneConfiguration = 1
|
|
NumPanes = 3
|
|
Configuration = "(H (1 [50] 4 [25] 3))"
|
|
End
|
|
Begin PaneConfiguration = 2
|
|
NumPanes = 3
|
|
Configuration = "(H (1 [50] 2 [25] 3))"
|
|
End
|
|
Begin PaneConfiguration = 3
|
|
NumPanes = 3
|
|
Configuration = "(H (4 [30] 2 [40] 3))"
|
|
End
|
|
Begin PaneConfiguration = 4
|
|
NumPanes = 2
|
|
Configuration = "(H (1 [56] 3))"
|
|
End
|
|
Begin PaneConfiguration = 5
|
|
NumPanes = 2
|
|
Configuration = "(H (2 [66] 3))"
|
|
End
|
|
Begin PaneConfiguration = 6
|
|
NumPanes = 2
|
|
Configuration = "(H (4 [50] 3))"
|
|
End
|
|
Begin PaneConfiguration = 7
|
|
NumPanes = 1
|
|
Configuration = "(V (3))"
|
|
End
|
|
Begin PaneConfiguration = 8
|
|
NumPanes = 3
|
|
Configuration = "(H (1[56] 4[18] 2) )"
|
|
End
|
|
Begin PaneConfiguration = 9
|
|
NumPanes = 2
|
|
Configuration = "(H (1 [75] 4))"
|
|
End
|
|
Begin PaneConfiguration = 10
|
|
NumPanes = 2
|
|
Configuration = "(H (1[66] 2) )"
|
|
End
|
|
Begin PaneConfiguration = 11
|
|
NumPanes = 2
|
|
Configuration = "(H (4 [60] 2))"
|
|
End
|
|
Begin PaneConfiguration = 12
|
|
NumPanes = 1
|
|
Configuration = "(H (1) )"
|
|
End
|
|
Begin PaneConfiguration = 13
|
|
NumPanes = 1
|
|
Configuration = "(V (4))"
|
|
End
|
|
Begin PaneConfiguration = 14
|
|
NumPanes = 1
|
|
Configuration = "(V (2))"
|
|
End
|
|
ActivePaneConfig = 0
|
|
End
|
|
Begin DiagramPane =
|
|
Begin Origin =
|
|
Top = 0
|
|
Left = 0
|
|
End
|
|
Begin Tables =
|
|
Begin Table = "AnagPeriodi"
|
|
Begin Extent =
|
|
Top = 6
|
|
Left = 38
|
|
Bottom = 84
|
|
Right = 189
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
Begin Table = "v_vocabolario"
|
|
Begin Extent =
|
|
Top = 6
|
|
Left = 227
|
|
Bottom = 99
|
|
Right = 378
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
End
|
|
End
|
|
Begin SQLPane =
|
|
End
|
|
Begin DataPane =
|
|
Begin ParameterDefaults = ""
|
|
End
|
|
Begin ColumnWidths = 9
|
|
Width = 284
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
End
|
|
End
|
|
Begin CriteriaPane =
|
|
Begin ColumnWidths = 11
|
|
Column = 1440
|
|
Alias = 900
|
|
Table = 1170
|
|
Output = 720
|
|
Append = 1400
|
|
NewValue = 1170
|
|
SortType = 1350
|
|
SortOrder = 1410
|
|
GroupBy = 1350
|
|
Filter = 1350
|
|
Or = 1350
|
|
Or = 1350
|
|
Or = 1350
|
|
End
|
|
End
|
|
End
|
|
']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_selPeriodiTrad]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_selPeriodiTrad].[MS_DiagramPaneCount]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[1]]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_selPeriodiTrad]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_selSemafori].[MS_DiagramPane1]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
|
|
Begin DesignProperties =
|
|
Begin PaneConfigurations =
|
|
Begin PaneConfiguration = 0
|
|
NumPanes = 4
|
|
Configuration = "(H (1[40] 4[20] 2[20] 3) )"
|
|
End
|
|
Begin PaneConfiguration = 1
|
|
NumPanes = 3
|
|
Configuration = "(H (1 [50] 4 [25] 3))"
|
|
End
|
|
Begin PaneConfiguration = 2
|
|
NumPanes = 3
|
|
Configuration = "(H (1 [50] 2 [25] 3))"
|
|
End
|
|
Begin PaneConfiguration = 3
|
|
NumPanes = 3
|
|
Configuration = "(H (4 [30] 2 [40] 3))"
|
|
End
|
|
Begin PaneConfiguration = 4
|
|
NumPanes = 2
|
|
Configuration = "(H (1 [56] 3))"
|
|
End
|
|
Begin PaneConfiguration = 5
|
|
NumPanes = 2
|
|
Configuration = "(H (2 [66] 3))"
|
|
End
|
|
Begin PaneConfiguration = 6
|
|
NumPanes = 2
|
|
Configuration = "(H (4 [50] 3))"
|
|
End
|
|
Begin PaneConfiguration = 7
|
|
NumPanes = 1
|
|
Configuration = "(V (3))"
|
|
End
|
|
Begin PaneConfiguration = 8
|
|
NumPanes = 3
|
|
Configuration = "(H (1[56] 4[18] 2) )"
|
|
End
|
|
Begin PaneConfiguration = 9
|
|
NumPanes = 2
|
|
Configuration = "(H (1 [75] 4))"
|
|
End
|
|
Begin PaneConfiguration = 10
|
|
NumPanes = 2
|
|
Configuration = "(H (1[66] 2) )"
|
|
End
|
|
Begin PaneConfiguration = 11
|
|
NumPanes = 2
|
|
Configuration = "(H (4 [60] 2))"
|
|
End
|
|
Begin PaneConfiguration = 12
|
|
NumPanes = 1
|
|
Configuration = "(H (1) )"
|
|
End
|
|
Begin PaneConfiguration = 13
|
|
NumPanes = 1
|
|
Configuration = "(V (4))"
|
|
End
|
|
Begin PaneConfiguration = 14
|
|
NumPanes = 1
|
|
Configuration = "(V (2))"
|
|
End
|
|
ActivePaneConfig = 0
|
|
End
|
|
Begin DiagramPane =
|
|
Begin Origin =
|
|
Top = 0
|
|
Left = 0
|
|
End
|
|
Begin Tables =
|
|
Begin Table = "AnagSemafori"
|
|
Begin Extent =
|
|
Top = 6
|
|
Left = 38
|
|
Bottom = 84
|
|
Right = 190
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
End
|
|
End
|
|
Begin SQLPane =
|
|
End
|
|
Begin DataPane =
|
|
Begin ParameterDefaults = ""
|
|
End
|
|
Begin ColumnWidths = 9
|
|
Width = 284
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
End
|
|
End
|
|
Begin CriteriaPane =
|
|
Begin ColumnWidths = 11
|
|
Column = 1440
|
|
Alias = 900
|
|
Table = 1170
|
|
Output = 720
|
|
Append = 1400
|
|
NewValue = 1170
|
|
SortType = 1350
|
|
SortOrder = 1410
|
|
GroupBy = 1350
|
|
Filter = 1350
|
|
Or = 1350
|
|
Or = 1350
|
|
Or = 1350
|
|
End
|
|
End
|
|
End
|
|
']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_selSemafori]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_selSemafori].[MS_DiagramPaneCount]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[1]]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_selSemafori]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_selStato].[MS_DiagramPane1]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
|
|
Begin DesignProperties =
|
|
Begin PaneConfigurations =
|
|
Begin PaneConfiguration = 0
|
|
NumPanes = 4
|
|
Configuration = "(H (1[40] 4[20] 2[20] 3) )"
|
|
End
|
|
Begin PaneConfiguration = 1
|
|
NumPanes = 3
|
|
Configuration = "(H (1 [50] 4 [25] 3))"
|
|
End
|
|
Begin PaneConfiguration = 2
|
|
NumPanes = 3
|
|
Configuration = "(H (1 [50] 2 [25] 3))"
|
|
End
|
|
Begin PaneConfiguration = 3
|
|
NumPanes = 3
|
|
Configuration = "(H (4 [30] 2 [40] 3))"
|
|
End
|
|
Begin PaneConfiguration = 4
|
|
NumPanes = 2
|
|
Configuration = "(H (1 [56] 3))"
|
|
End
|
|
Begin PaneConfiguration = 5
|
|
NumPanes = 2
|
|
Configuration = "(H (2 [66] 3))"
|
|
End
|
|
Begin PaneConfiguration = 6
|
|
NumPanes = 2
|
|
Configuration = "(H (4 [50] 3))"
|
|
End
|
|
Begin PaneConfiguration = 7
|
|
NumPanes = 1
|
|
Configuration = "(V (3))"
|
|
End
|
|
Begin PaneConfiguration = 8
|
|
NumPanes = 3
|
|
Configuration = "(H (1[56] 4[18] 2) )"
|
|
End
|
|
Begin PaneConfiguration = 9
|
|
NumPanes = 2
|
|
Configuration = "(H (1 [75] 4))"
|
|
End
|
|
Begin PaneConfiguration = 10
|
|
NumPanes = 2
|
|
Configuration = "(H (1[66] 2) )"
|
|
End
|
|
Begin PaneConfiguration = 11
|
|
NumPanes = 2
|
|
Configuration = "(H (4 [60] 2))"
|
|
End
|
|
Begin PaneConfiguration = 12
|
|
NumPanes = 1
|
|
Configuration = "(H (1) )"
|
|
End
|
|
Begin PaneConfiguration = 13
|
|
NumPanes = 1
|
|
Configuration = "(V (4))"
|
|
End
|
|
Begin PaneConfiguration = 14
|
|
NumPanes = 1
|
|
Configuration = "(V (2))"
|
|
End
|
|
ActivePaneConfig = 0
|
|
End
|
|
Begin DiagramPane =
|
|
Begin Origin =
|
|
Top = 0
|
|
Left = 0
|
|
End
|
|
Begin Tables =
|
|
Begin Table = "AnagStati"
|
|
Begin Extent =
|
|
Top = 6
|
|
Left = 38
|
|
Bottom = 99
|
|
Right = 189
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
End
|
|
End
|
|
Begin SQLPane =
|
|
End
|
|
Begin DataPane =
|
|
Begin ParameterDefaults = ""
|
|
End
|
|
Begin ColumnWidths = 9
|
|
Width = 284
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
End
|
|
End
|
|
Begin CriteriaPane =
|
|
Begin ColumnWidths = 11
|
|
Column = 1440
|
|
Alias = 900
|
|
Table = 1170
|
|
Output = 720
|
|
Append = 1400
|
|
NewValue = 1170
|
|
SortType = 1350
|
|
SortOrder = 1410
|
|
GroupBy = 1350
|
|
Filter = 1350
|
|
Or = 1350
|
|
Or = 1350
|
|
Or = 1350
|
|
End
|
|
End
|
|
End
|
|
']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_selStato]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_selStato].[MS_DiagramPaneCount]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[1]]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_selStato]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_selTipoGuasto].[MS_DiagramPane1]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
|
|
Begin DesignProperties =
|
|
Begin PaneConfigurations =
|
|
Begin PaneConfiguration = 0
|
|
NumPanes = 4
|
|
Configuration = "(H (1[40] 4[20] 2[20] 3) )"
|
|
End
|
|
Begin PaneConfiguration = 1
|
|
NumPanes = 3
|
|
Configuration = "(H (1 [50] 4 [25] 3))"
|
|
End
|
|
Begin PaneConfiguration = 2
|
|
NumPanes = 3
|
|
Configuration = "(H (1 [50] 2 [25] 3))"
|
|
End
|
|
Begin PaneConfiguration = 3
|
|
NumPanes = 3
|
|
Configuration = "(H (4 [30] 2 [40] 3))"
|
|
End
|
|
Begin PaneConfiguration = 4
|
|
NumPanes = 2
|
|
Configuration = "(H (1 [56] 3))"
|
|
End
|
|
Begin PaneConfiguration = 5
|
|
NumPanes = 2
|
|
Configuration = "(H (2 [66] 3))"
|
|
End
|
|
Begin PaneConfiguration = 6
|
|
NumPanes = 2
|
|
Configuration = "(H (4 [50] 3))"
|
|
End
|
|
Begin PaneConfiguration = 7
|
|
NumPanes = 1
|
|
Configuration = "(V (3))"
|
|
End
|
|
Begin PaneConfiguration = 8
|
|
NumPanes = 3
|
|
Configuration = "(H (1[56] 4[18] 2) )"
|
|
End
|
|
Begin PaneConfiguration = 9
|
|
NumPanes = 2
|
|
Configuration = "(H (1 [75] 4))"
|
|
End
|
|
Begin PaneConfiguration = 10
|
|
NumPanes = 2
|
|
Configuration = "(H (1[66] 2) )"
|
|
End
|
|
Begin PaneConfiguration = 11
|
|
NumPanes = 2
|
|
Configuration = "(H (4 [60] 2))"
|
|
End
|
|
Begin PaneConfiguration = 12
|
|
NumPanes = 1
|
|
Configuration = "(H (1) )"
|
|
End
|
|
Begin PaneConfiguration = 13
|
|
NumPanes = 1
|
|
Configuration = "(V (4))"
|
|
End
|
|
Begin PaneConfiguration = 14
|
|
NumPanes = 1
|
|
Configuration = "(V (2))"
|
|
End
|
|
ActivePaneConfig = 0
|
|
End
|
|
Begin DiagramPane =
|
|
Begin Origin =
|
|
Top = 0
|
|
Left = 0
|
|
End
|
|
Begin Tables =
|
|
Begin Table = "AnagTipoGuasto"
|
|
Begin Extent =
|
|
Top = 6
|
|
Left = 38
|
|
Bottom = 84
|
|
Right = 189
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
End
|
|
End
|
|
Begin SQLPane =
|
|
End
|
|
Begin DataPane =
|
|
Begin ParameterDefaults = ""
|
|
End
|
|
Begin ColumnWidths = 9
|
|
Width = 284
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
End
|
|
End
|
|
Begin CriteriaPane =
|
|
Begin ColumnWidths = 11
|
|
Column = 1440
|
|
Alias = 900
|
|
Table = 1170
|
|
Output = 720
|
|
Append = 1400
|
|
NewValue = 1170
|
|
SortType = 1350
|
|
SortOrder = 1410
|
|
GroupBy = 1350
|
|
Filter = 1350
|
|
Or = 1350
|
|
Or = 1350
|
|
Or = 1350
|
|
End
|
|
End
|
|
End
|
|
']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_selTipoGuasto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_selTipoGuasto].[MS_DiagramPaneCount]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[1]]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_selTipoGuasto]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_selUtentiAll].[MS_DiagramPane1]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA['[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 = "ut"
|
|
Begin Extent =
|
|
Top = 6
|
|
Left = 38
|
|
Bottom = 114
|
|
Right = 190
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
End
|
|
End
|
|
Begin SQLPane =
|
|
End
|
|
Begin DataPane =
|
|
Begin ParameterDefaults = ""
|
|
End
|
|
End
|
|
Begin CriteriaPane =
|
|
Begin ColumnWidths = 11
|
|
Column = 1440
|
|
Alias = 900
|
|
Table = 1170
|
|
Output = 720
|
|
Append = 1400
|
|
NewValue = 1170
|
|
SortType = 1350
|
|
SortOrder = 1410
|
|
GroupBy = 1350
|
|
Filter = 1350
|
|
Or = 1350
|
|
Or = 1350
|
|
Or = 1350
|
|
End
|
|
End
|
|
End
|
|
']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_selUtentiAll]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_selUtentiAll].[MS_DiagramPaneCount]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[1]]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_selUtentiAll]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_selUtentiShort].[MS_DiagramPane1]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA['[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 = "ut"
|
|
Begin Extent =
|
|
Top = 6
|
|
Left = 38
|
|
Bottom = 114
|
|
Right = 190
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
End
|
|
End
|
|
Begin SQLPane =
|
|
End
|
|
Begin DataPane =
|
|
Begin ParameterDefaults = ""
|
|
End
|
|
End
|
|
Begin CriteriaPane =
|
|
Begin ColumnWidths = 11
|
|
Column = 1440
|
|
Alias = 900
|
|
Table = 1170
|
|
Output = 720
|
|
Append = 1400
|
|
NewValue = 1170
|
|
SortType = 1350
|
|
SortOrder = 1410
|
|
GroupBy = 1350
|
|
Filter = 1350
|
|
Or = 1350
|
|
Or = 1350
|
|
Or = 1350
|
|
End
|
|
End
|
|
End
|
|
']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_selUtentiShort]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_selUtentiShort].[MS_DiagramPaneCount]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[1]]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_selUtentiShort]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_selUtentiShortAD].[MS_DiagramPane1]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA['[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 = "ut"
|
|
Begin Extent =
|
|
Top = 6
|
|
Left = 38
|
|
Bottom = 114
|
|
Right = 190
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
End
|
|
End
|
|
Begin SQLPane =
|
|
End
|
|
Begin DataPane =
|
|
Begin ParameterDefaults = ""
|
|
End
|
|
End
|
|
Begin CriteriaPane =
|
|
Begin ColumnWidths = 11
|
|
Column = 1440
|
|
Alias = 900
|
|
Table = 1170
|
|
Output = 720
|
|
Append = 1400
|
|
NewValue = 1170
|
|
SortType = 1350
|
|
SortOrder = 1410
|
|
GroupBy = 1350
|
|
Filter = 1350
|
|
Or = 1350
|
|
Or = 1350
|
|
Or = 1350
|
|
End
|
|
End
|
|
End
|
|
']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_selUtentiShortAD]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_selUtentiShortAD].[MS_DiagramPaneCount]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[1]]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_selUtentiShortAD]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_StatoMag].[MS_DiagramPane1]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[N'[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 = "AnagItems"
|
|
Begin Extent =
|
|
Top = 35
|
|
Left = 95
|
|
Bottom = 260
|
|
Right = 277
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
Begin Table = "MagRic"
|
|
Begin Extent =
|
|
Top = 82
|
|
Left = 384
|
|
Bottom = 245
|
|
Right = 554
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
Begin Table = "v_movMagPend"
|
|
Begin Extent =
|
|
Top = 43
|
|
Left = 769
|
|
Bottom = 142
|
|
Right = 939
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
Begin Table = "AnagLocazioni"
|
|
Begin Extent =
|
|
Top = 230
|
|
Left = 662
|
|
Bottom = 326
|
|
Right = 832
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
End
|
|
End
|
|
Begin SQLPane =
|
|
End
|
|
Begin DataPane =
|
|
Begin ParameterDefaults = ""
|
|
End
|
|
Begin ColumnWidths = 14
|
|
Width = 284
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
End
|
|
End
|
|
Begin CriteriaPane =
|
|
Begin ColumnWidths = 11
|
|
Column = 1440
|
|
Alias = 900
|
|
Table = 1170
|
|
Output = 720
|
|
Append = 1400
|
|
NewValue = 1170
|
|
SortType = 1350
|
|
SortOrder ']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_StatoMag]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_StatoMag].[MS_DiagramPane2]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[N'= 1410
|
|
GroupBy = 1350
|
|
Filter = 1350
|
|
Or = 1350
|
|
Or = 1350
|
|
Or = 1350
|
|
End
|
|
End
|
|
End
|
|
']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_StatoMag]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_StatoMag].[MS_DiagramPaneCount]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[2]]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_StatoMag]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_vocabolario].[MS_DiagramPane1]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA['[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
|
|
Begin DesignProperties =
|
|
Begin PaneConfigurations =
|
|
Begin PaneConfiguration = 0
|
|
NumPanes = 4
|
|
Configuration = "(H (1[40] 4[20] 2[20] 3) )"
|
|
End
|
|
Begin PaneConfiguration = 1
|
|
NumPanes = 3
|
|
Configuration = "(H (1 [50] 4 [25] 3))"
|
|
End
|
|
Begin PaneConfiguration = 2
|
|
NumPanes = 3
|
|
Configuration = "(H (1 [50] 2 [25] 3))"
|
|
End
|
|
Begin PaneConfiguration = 3
|
|
NumPanes = 3
|
|
Configuration = "(H (4 [30] 2 [40] 3))"
|
|
End
|
|
Begin PaneConfiguration = 4
|
|
NumPanes = 2
|
|
Configuration = "(H (1 [56] 3))"
|
|
End
|
|
Begin PaneConfiguration = 5
|
|
NumPanes = 2
|
|
Configuration = "(H (2 [66] 3))"
|
|
End
|
|
Begin PaneConfiguration = 6
|
|
NumPanes = 2
|
|
Configuration = "(H (4 [50] 3))"
|
|
End
|
|
Begin PaneConfiguration = 7
|
|
NumPanes = 1
|
|
Configuration = "(V (3))"
|
|
End
|
|
Begin PaneConfiguration = 8
|
|
NumPanes = 3
|
|
Configuration = "(H (1[56] 4[18] 2) )"
|
|
End
|
|
Begin PaneConfiguration = 9
|
|
NumPanes = 2
|
|
Configuration = "(H (1 [75] 4))"
|
|
End
|
|
Begin PaneConfiguration = 10
|
|
NumPanes = 2
|
|
Configuration = "(H (1[66] 2) )"
|
|
End
|
|
Begin PaneConfiguration = 11
|
|
NumPanes = 2
|
|
Configuration = "(H (4 [60] 2))"
|
|
End
|
|
Begin PaneConfiguration = 12
|
|
NumPanes = 1
|
|
Configuration = "(H (1) )"
|
|
End
|
|
Begin PaneConfiguration = 13
|
|
NumPanes = 1
|
|
Configuration = "(V (4))"
|
|
End
|
|
Begin PaneConfiguration = 14
|
|
NumPanes = 1
|
|
Configuration = "(V (2))"
|
|
End
|
|
ActivePaneConfig = 0
|
|
End
|
|
Begin DiagramPane =
|
|
Begin Origin =
|
|
Top = 0
|
|
Left = 0
|
|
End
|
|
Begin Tables =
|
|
Begin Table = "Vocabolario"
|
|
Begin Extent =
|
|
Top = 6
|
|
Left = 38
|
|
Bottom = 119
|
|
Right = 208
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
End
|
|
End
|
|
Begin SQLPane =
|
|
End
|
|
Begin DataPane =
|
|
Begin ParameterDefaults = ""
|
|
End
|
|
Begin ColumnWidths = 9
|
|
Width = 284
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
End
|
|
End
|
|
Begin CriteriaPane =
|
|
Begin ColumnWidths = 11
|
|
Column = 1440
|
|
Alias = 900
|
|
Table = 1170
|
|
Output = 720
|
|
Append = 1400
|
|
NewValue = 1170
|
|
SortType = 1350
|
|
SortOrder = 1410
|
|
GroupBy = 1350
|
|
Filter = 1350
|
|
Or = 1350
|
|
Or = 1350
|
|
Or = 1350
|
|
End
|
|
End
|
|
End
|
|
']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_vocabolario]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_vocabolario].[MS_DiagramPaneCount]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[1]]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_vocabolario]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dwh].[VDWH_AnagStati].[MS_DiagramPane1]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
|
|
Begin DesignProperties =
|
|
Begin PaneConfigurations =
|
|
Begin PaneConfiguration = 0
|
|
NumPanes = 4
|
|
Configuration = "(H (1[40] 4[20] 2[20] 3) )"
|
|
End
|
|
Begin PaneConfiguration = 1
|
|
NumPanes = 3
|
|
Configuration = "(H (1 [50] 4 [25] 3))"
|
|
End
|
|
Begin PaneConfiguration = 2
|
|
NumPanes = 3
|
|
Configuration = "(H (1 [50] 2 [25] 3))"
|
|
End
|
|
Begin PaneConfiguration = 3
|
|
NumPanes = 3
|
|
Configuration = "(H (4 [30] 2 [40] 3))"
|
|
End
|
|
Begin PaneConfiguration = 4
|
|
NumPanes = 2
|
|
Configuration = "(H (1 [56] 3))"
|
|
End
|
|
Begin PaneConfiguration = 5
|
|
NumPanes = 2
|
|
Configuration = "(H (2 [66] 3))"
|
|
End
|
|
Begin PaneConfiguration = 6
|
|
NumPanes = 2
|
|
Configuration = "(H (4 [50] 3))"
|
|
End
|
|
Begin PaneConfiguration = 7
|
|
NumPanes = 1
|
|
Configuration = "(V (3))"
|
|
End
|
|
Begin PaneConfiguration = 8
|
|
NumPanes = 3
|
|
Configuration = "(H (1[56] 4[18] 2) )"
|
|
End
|
|
Begin PaneConfiguration = 9
|
|
NumPanes = 2
|
|
Configuration = "(H (1 [75] 4))"
|
|
End
|
|
Begin PaneConfiguration = 10
|
|
NumPanes = 2
|
|
Configuration = "(H (1[66] 2) )"
|
|
End
|
|
Begin PaneConfiguration = 11
|
|
NumPanes = 2
|
|
Configuration = "(H (4 [60] 2))"
|
|
End
|
|
Begin PaneConfiguration = 12
|
|
NumPanes = 1
|
|
Configuration = "(H (1) )"
|
|
End
|
|
Begin PaneConfiguration = 13
|
|
NumPanes = 1
|
|
Configuration = "(V (4))"
|
|
End
|
|
Begin PaneConfiguration = 14
|
|
NumPanes = 1
|
|
Configuration = "(V (2))"
|
|
End
|
|
ActivePaneConfig = 0
|
|
End
|
|
Begin DiagramPane =
|
|
Begin Origin =
|
|
Top = 0
|
|
Left = 0
|
|
End
|
|
Begin Tables =
|
|
Begin Table = "AnagStati"
|
|
Begin Extent =
|
|
Top = 6
|
|
Left = 38
|
|
Bottom = 119
|
|
Right = 208
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
End
|
|
End
|
|
Begin SQLPane =
|
|
End
|
|
Begin DataPane =
|
|
Begin ParameterDefaults = ""
|
|
End
|
|
Begin ColumnWidths = 9
|
|
Width = 284
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
End
|
|
End
|
|
Begin CriteriaPane =
|
|
Begin ColumnWidths = 11
|
|
Column = 1440
|
|
Alias = 900
|
|
Table = 1170
|
|
Output = 720
|
|
Append = 1400
|
|
NewValue = 1170
|
|
SortType = 1350
|
|
SortOrder = 1410
|
|
GroupBy = 1350
|
|
Filter = 1350
|
|
Or = 1350
|
|
Or = 1350
|
|
Or = 1350
|
|
End
|
|
End
|
|
End
|
|
']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dwh].[VDWH_AnagStati]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dwh].[VDWH_AnagStati].[MS_DiagramPaneCount]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[1]]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dwh].[VDWH_AnagStati]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dwh].[VDWH_DettaglioInterv_OLD].[MS_DiagramPane1]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[N'[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 = "v_intervExp"
|
|
Begin Extent =
|
|
Top = 6
|
|
Left = 38
|
|
Bottom = 350
|
|
Right = 240
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 14
|
|
End
|
|
End
|
|
End
|
|
Begin SQLPane =
|
|
End
|
|
Begin DataPane =
|
|
Begin ParameterDefaults = ""
|
|
End
|
|
Begin ColumnWidths = 31
|
|
Width = 284
|
|
Width = 1500
|
|
Width = 1305
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
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
|
|
']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dwh].[VDWH_DettaglioInterv_OLD]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dwh].[VDWH_DettaglioInterv_OLD].[MS_DiagramPaneCount]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[1]]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dwh].[VDWH_DettaglioInterv_OLD]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dwh].[VDWH_ElencoInterventi].[MS_DiagramPane1]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[N'[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 = "v_elencoIntervFilt"
|
|
Begin Extent =
|
|
Top = 6
|
|
Left = 38
|
|
Bottom = 136
|
|
Right = 240
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
End
|
|
End
|
|
Begin SQLPane =
|
|
End
|
|
Begin DataPane =
|
|
Begin ParameterDefaults = ""
|
|
End
|
|
End
|
|
Begin CriteriaPane =
|
|
Begin ColumnWidths = 11
|
|
Column = 1440
|
|
Alias = 900
|
|
Table = 1170
|
|
Output = 720
|
|
Append = 1400
|
|
NewValue = 1170
|
|
SortType = 1350
|
|
SortOrder = 1410
|
|
GroupBy = 1350
|
|
Filter = 1350
|
|
Or = 1350
|
|
Or = 1350
|
|
Or = 1350
|
|
End
|
|
End
|
|
End
|
|
']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dwh].[VDWH_ElencoInterventi]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dwh].[VDWH_ElencoInterventi].[MS_DiagramPaneCount]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[1]]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dwh].[VDWH_ElencoInterventi]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dwh].[VDWH_IntervOperatori].[MS_DiagramPane1]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
|
|
Begin DesignProperties =
|
|
Begin PaneConfigurations =
|
|
Begin PaneConfiguration = 0
|
|
NumPanes = 4
|
|
Configuration = "(H (1[40] 4[20] 2[20] 3) )"
|
|
End
|
|
Begin PaneConfiguration = 1
|
|
NumPanes = 3
|
|
Configuration = "(H (1 [50] 4 [25] 3))"
|
|
End
|
|
Begin PaneConfiguration = 2
|
|
NumPanes = 3
|
|
Configuration = "(H (1 [50] 2 [25] 3))"
|
|
End
|
|
Begin PaneConfiguration = 3
|
|
NumPanes = 3
|
|
Configuration = "(H (4 [30] 2 [40] 3))"
|
|
End
|
|
Begin PaneConfiguration = 4
|
|
NumPanes = 2
|
|
Configuration = "(H (1 [56] 3))"
|
|
End
|
|
Begin PaneConfiguration = 5
|
|
NumPanes = 2
|
|
Configuration = "(H (2 [66] 3))"
|
|
End
|
|
Begin PaneConfiguration = 6
|
|
NumPanes = 2
|
|
Configuration = "(H (4 [50] 3))"
|
|
End
|
|
Begin PaneConfiguration = 7
|
|
NumPanes = 1
|
|
Configuration = "(V (3))"
|
|
End
|
|
Begin PaneConfiguration = 8
|
|
NumPanes = 3
|
|
Configuration = "(H (1[56] 4[18] 2) )"
|
|
End
|
|
Begin PaneConfiguration = 9
|
|
NumPanes = 2
|
|
Configuration = "(H (1 [75] 4))"
|
|
End
|
|
Begin PaneConfiguration = 10
|
|
NumPanes = 2
|
|
Configuration = "(H (1[66] 2) )"
|
|
End
|
|
Begin PaneConfiguration = 11
|
|
NumPanes = 2
|
|
Configuration = "(H (4 [60] 2))"
|
|
End
|
|
Begin PaneConfiguration = 12
|
|
NumPanes = 1
|
|
Configuration = "(H (1) )"
|
|
End
|
|
Begin PaneConfiguration = 13
|
|
NumPanes = 1
|
|
Configuration = "(V (4))"
|
|
End
|
|
Begin PaneConfiguration = 14
|
|
NumPanes = 1
|
|
Configuration = "(V (2))"
|
|
End
|
|
ActivePaneConfig = 0
|
|
End
|
|
Begin DiagramPane =
|
|
Begin Origin =
|
|
Top = 0
|
|
Left = 0
|
|
End
|
|
Begin Tables =
|
|
Begin Table = "AnagrOperMtz"
|
|
Begin Extent =
|
|
Top = 6
|
|
Left = 38
|
|
Bottom = 119
|
|
Right = 208
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
Begin Table = "InterventoOpMtz"
|
|
Begin Extent =
|
|
Top = 6
|
|
Left = 246
|
|
Bottom = 141
|
|
Right = 416
|
|
End
|
|
DisplayFlags = 280
|
|
TopColumn = 0
|
|
End
|
|
End
|
|
End
|
|
Begin SQLPane =
|
|
End
|
|
Begin DataPane =
|
|
Begin ParameterDefaults = ""
|
|
End
|
|
Begin ColumnWidths = 9
|
|
Width = 284
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
Width = 1500
|
|
End
|
|
End
|
|
Begin CriteriaPane =
|
|
Begin ColumnWidths = 11
|
|
Column = 1440
|
|
Alias = 900
|
|
Table = 1170
|
|
Output = 720
|
|
Append = 1400
|
|
NewValue = 1170
|
|
SortType = 1350
|
|
SortOrder = 1410
|
|
GroupBy = 1350
|
|
Filter = 1350
|
|
Or = 1350
|
|
Or = 1350
|
|
Or = 1350
|
|
End
|
|
End
|
|
End
|
|
']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dwh].[VDWH_IntervOperatori]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dwh].[VDWH_IntervOperatori].[MS_DiagramPaneCount]">
|
|
<Property Name="Value">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[1]]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dwh].[VDWH_IntervOperatori]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlSchema" Name="[voc]">
|
|
<Relationship Name="Authorizer">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[voc].[stp_getByLingua]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
SET NOCOUNT ON;
|
|
SELECT Lingua, Lemma, Traduzione
|
|
FROM Vocabolario
|
|
WHERE (Lingua = @Lingua)]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[Vocabolario]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Vocabolario].[Lingua]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Vocabolario].[Lemma]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Vocabolario].[Traduzione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[voc].[stp_getByLingua].[@Lingua]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[voc].[stp_getByLingua].[@Lingua]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="3" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References Name="[voc]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="Length" Value="189" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="create PROCEDURE voc.stp_getByLingua
(
	@Lingua nvarchar(3)
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[voc].[stp_getByLinguaLemmaLike]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
|
|
SET NOCOUNT ON;
|
|
SELECT Lingua, Lemma
|
|
,CASE WHEN @Lingua = 'LB' THEN CONVERT(NVARCHAR(500),Lemma)
|
|
ELSE Traduzione END
|
|
AS Traduzione -- la traduzione corrisponde ai campi/lemmi x i report
|
|
FROM Vocabolario
|
|
WHERE (Lemma LIKE @search + '%')
|
|
AND ( Lingua = CASE WHEN @Lingua = 'LB' -- se richiede le Label dei campi estraggo i lemmi in inglese
|
|
THEN 'EN'
|
|
ELSE @Lingua
|
|
END )
|
|
|
|
/* OLD
|
|
SELECT Lingua, Lemma, Traduzione
|
|
FROM Vocabolario
|
|
WHERE (Lemma LIKE @search + '%')
|
|
AND (Lingua = @Lingua)
|
|
*/]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[Vocabolario]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Vocabolario].[Lingua]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Vocabolario].[Lemma]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[voc].[stp_getByLinguaLemmaLike].[@Lingua]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Vocabolario].[Traduzione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[voc].[stp_getByLinguaLemmaLike].[@search]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[voc].[stp_getByLinguaLemmaLike].[@Lingua]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="3" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[voc].[stp_getByLinguaLemmaLike].[@search]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References Name="[voc]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="213" />
|
|
<Property Name="Length" Value="984" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="/*************************************
* STORED PROCEDURE stp_getByLemmaLike
*
* elenco record da ricerca LIKE su lemma
*
* mod : 2014.04.28
* aut : S.E. Locatelli
**************************************/
create PROCEDURE voc.stp_getByLinguaLemmaLike
(
	@Lingua NVARCHAR(3),
	@search NVARCHAR(50)
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[voc].[stp_insNewLemma]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
|
|
-- elimino se c'era già e se richiesto...
|
|
IF @OverWrite = 'Y'
|
|
BEGIN
|
|
DELETE FROM Vocabolario
|
|
WHERE lemma = @lemma
|
|
END
|
|
|
|
-- inserisco x tutte le lingue attive...
|
|
INSERT INTO Vocabolario
|
|
SELECT lingua, @lemma, @traduzione
|
|
FROM Lingue
|
|
|
|
SELECT *
|
|
FROM Vocabolario
|
|
WHERE lemma = @lemma
|
|
|
|
RETURN]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[voc].[stp_insNewLemma].[@OverWrite]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Vocabolario]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Vocabolario].[Lemma]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[voc].[stp_insNewLemma].[@lemma]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Lingue]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Lingue].[Lingua]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[voc].[stp_insNewLemma].[@traduzione]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[voc].[stp_insNewLemma].[@lemma]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[voc].[stp_insNewLemma].[@traduzione]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="500" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[voc].[stp_insNewLemma].[@OverWrite]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA['Y']]></Value>
|
|
</Property>
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="1" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[char]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References Name="[voc]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="202" />
|
|
<Property Name="Length" Value="715" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="/*************************************
* STORED PROCEDURE stp_insNewLemma
*
* inseriemtno lemma vocabolario
*
* mod : 14/05/2012	
* aut : S.E. Locatelli
**************************************/
create PROCEDURE voc.stp_insNewLemma
(
 @lemma		NVARCHAR(50),
 @traduzione NVARCHAR(500),
 @OverWrite CHAR(1) = 'Y' -- Y/N Per forzarne inserimento anche se già presente
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[voc].[stp_updateQuery]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
SET NOCOUNT OFF;
|
|
UPDATE [dbo].[Vocabolario] SET [Traduzione] = @Traduzione WHERE ([Lingua] = @Original_Lingua) AND ([Lemma] = @Original_Lemma)]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[Vocabolario]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Vocabolario].[Traduzione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[voc].[stp_updateQuery].[@Traduzione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Vocabolario].[Lingua]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[voc].[stp_updateQuery].[@Original_Lingua]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Vocabolario].[Lemma]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[voc].[stp_updateQuery].[@Original_Lemma]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[voc].[stp_updateQuery].[@Traduzione]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="500" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[voc].[stp_updateQuery].[@Original_Lingua]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="3" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[voc].[stp_updateQuery].[@Original_Lemma]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References Name="[voc]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="Length" Value="284" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="create PROCEDURE voc.stp_updateQuery
(
	@Traduzione nvarchar(500),
	@Original_Lingua nvarchar(3),
	@Original_Lemma nvarchar(50)
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[voc].[stp_upsertLemma]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
|
|
-- effettuo merge x upsert!
|
|
|
|
MERGE Vocabolario AS target
|
|
USING (SELECT @Lingua, @Lemma, @Traduzione) AS source (Lingua, Lemma, Traduzione)
|
|
ON (target.Lingua = source.Lingua AND target.Lemma = source.Lemma)
|
|
WHEN MATCHED THEN
|
|
UPDATE SET Traduzione = source.traduzione
|
|
WHEN NOT MATCHED THEN
|
|
INSERT (Lingua, Lemma, Traduzione)
|
|
VALUES (source.Lingua, source.Lemma, source.Traduzione);
|
|
|
|
RETURN]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[voc].[stp_upsertLemma].[@Lingua]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[voc].[stp_upsertLemma].[@Lemma]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[voc].[stp_upsertLemma].[@Traduzione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Vocabolario]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Vocabolario].[Lingua]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Vocabolario].[Lemma]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Vocabolario].[Traduzione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Vocabolario].[Lingua]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Vocabolario].[Lemma]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[voc].[stp_upsertLemma].[@Lingua]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="3" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[voc].[stp_upsertLemma].[@Lemma]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="50" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[voc].[stp_upsertLemma].[@Traduzione]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="500" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References Name="[voc]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="192" />
|
|
<Property Name="Length" Value="756" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="/*************************************
* STORED PROCEDURE stp_upsertLemma
*
* upsert record lemma
*
* mod : 14/05/2012	
* aut : S.E. Locatelli
**************************************/
create PROCEDURE voc.stp_upsertLemma
(
	@Lingua		NVARCHAR(3),
 @Lemma		NVARCHAR(50),
 @Traduzione NVARCHAR(500)
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[voc].[stp_voUpdateLemmiReport]">
|
|
<Property Name="BodyScript">
|
|
<Value QuotedIdentifiers="True" AnsiNulls="True"><![CDATA[
|
|
BEGIN
|
|
-- SET NOCOUNT ON added to prevent extra result sets from
|
|
-- interfering with SELECT statements.
|
|
SET NOCOUNT ON;
|
|
|
|
-- mostro situazione iniziale
|
|
SELECT *
|
|
FROM Vocabolario v1
|
|
inner join vocabolario v ON replace(v1.Lemma, 'C2P_prt1_','') = v.Lemma AND v1.Lingua = v.Lingua
|
|
WHERE v1.lemma LIKE 'C2P_prt1_%'
|
|
|
|
-- update!
|
|
UPDATE v1
|
|
SET traduzione = v.traduzione
|
|
FROM Vocabolario v1
|
|
INNER JOIN vocabolario v ON replace(v1.Lemma, 'C2P_prt1_','') = v.Lemma AND v1.Lingua = v.Lingua
|
|
WHERE v1.lemma LIKE 'C2P_prt1_%'
|
|
|
|
|
|
-- mostro situazione finale
|
|
SELECT *
|
|
FROM Vocabolario v1
|
|
inner join vocabolario v ON replace(v1.Lemma, 'C2P_prt1_','') = v.Lemma AND v1.Lingua = v.Lingua
|
|
WHERE v1.lemma LIKE 'C2P_prt1_%'
|
|
|
|
END]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[Vocabolario]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Vocabolario]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Vocabolario].[Lemma]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Vocabolario].[Lemma]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Vocabolario].[Lingua]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Vocabolario].[Lingua]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Vocabolario].[Lemma]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Vocabolario].[Traduzione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Vocabolario].[Traduzione]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References Name="[voc]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="245" />
|
|
<Property Name="Length" Value="1106" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="-- =============================================
-- Author:		Samuele Locatelli
-- Create date: 2014.05.09
-- Description:	riallinea le traduzioni dei report ai termini corrispondenti a video
-- =============================================
create PROCEDURE voc.stp_voUpdateLemmiReport
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
</Model>
|
|
</DataSchemaModel> |