39465 lines
1.3 MiB
Plaintext
39465 lines
1.3 MiB
Plaintext
<?xml version="1.0" encoding="utf-8"?>
|
|
<DataSchemaModel FileFormatVersion="1.2" SchemaVersion="2.4" DspName="Microsoft.Data.Tools.Schema.Sql.Sql100DatabaseSchemaProvider" CollationLcid="1033" CollationCaseSensitive="False" xmlns="http://schemas.microsoft.com/sqlserver/dac/Serialization/2012/02">
|
|
<Header>
|
|
<CustomData Category="AnsiNulls">
|
|
<Metadata Name="AnsiNulls" Value="True" />
|
|
</CustomData>
|
|
<CustomData Category="QuotedIdentifier">
|
|
<Metadata Name="QuotedIdentifier" Value="True" />
|
|
</CustomData>
|
|
<CustomData Category="CompatibilityMode">
|
|
<Metadata Name="CompatibilityMode" Value="100" />
|
|
</CustomData>
|
|
<CustomData Category="Reference" Type="Assembly">
|
|
<Metadata Name="LogicalName" Value="C2P_Project.dll" />
|
|
<Metadata Name="FileName" Value="C:\USERS\SAMUELE\DOCUMENTS\VISUAL STUDIO 2012\PROJECTS\C2P\C2P_PROJECT\OBJ\DEBUG\C2P_PROJECT.DLL" />
|
|
<Metadata Name="AssemblyName" Value="C2P_Project" />
|
|
<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\Visual Studio 2012\Projects\C2P\C2P_Project\obj\Debug\C2P_Project.pdb" />
|
|
</CustomData>
|
|
<CustomData Category="SqlCmdVariables" Type="SqlCmdVariable" />
|
|
</Header>
|
|
<Model>
|
|
<Element Type="SqlDatabaseOptions">
|
|
<Property Name="Collation" Value="SQL_Latin1_General_CP1_CI_AS" />
|
|
<Property Name="IsAnsiNullDefaultOn" Value="True" />
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Property Name="IsAnsiWarningsOn" Value="True" />
|
|
<Property Name="IsArithAbortOn" Value="True" />
|
|
<Property Name="IsConcatNullYieldsNullOn" Value="True" />
|
|
<Property Name="IsTornPageProtectionOn" Value="False" />
|
|
<Property Name="IsFullTextEnabled" Value="True" />
|
|
<Property Name="PageVerifyMode" Value="3" />
|
|
<Relationship Name="DefaultFilegroup">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[PRIMARY]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[AgentsDet]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[AgentsDet].[CodAg]">
|
|
<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].[AgentsDet].[Lastname]">
|
|
<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].[AgentsDet].[Firstname]">
|
|
<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].[AgentsDet].[QuotaProvvAg]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="3" />
|
|
</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].[ClientDet]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[ClientDet].[CodClient]">
|
|
<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].[ClientDet].[ClientName]">
|
|
<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>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[ClientDet].[CodAg]">
|
|
<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].[ClientDet].[ZipCode]">
|
|
<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].[ClientDet].[City]">
|
|
<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].[ClientDet].[State]">
|
|
<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].[ClientDet].[Nation]">
|
|
<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].[ClientDet].[TranspZone]">
|
|
<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="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].[Config]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[Config].[Parameter]">
|
|
<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].[Config].[Value]">
|
|
<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="8" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[Cost2Plant]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[Cost2Plant].[CodPlant]">
|
|
<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].[Cost2Plant].[ProcessNum]">
|
|
<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].[Cost2Plant].[FC]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="4" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[Cost2Plant].[VC]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="4" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="9" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[Cost2Plant].[OH]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="4" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="10" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[Cost2Plant].[SC]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="4" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="11" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[Cost2Plant].[QuotaPlantStd]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="4" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="12" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[Cost2Plant].[QuotaManStd]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="4" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="13" />
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="14" />
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="15" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_AgentsDet_QuotaPerc]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AgentsDet]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[AgentsDet].[QuotaProvvAg]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="3" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_ClientDet_Class01]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet].[TranspZone]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="5" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_Cost2Plant_OH]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant].[OH]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="10" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_Cost2Plant_OH1]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant].[SC]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="11" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_Cost2Plant_QuotaManStd]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant].[QuotaManStd]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="13" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_Cost2Plant_QuotaPlantStd]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant].[QuotaPlantStd]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="12" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_Cost2Plant_VC]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant].[VC]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="9" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_DiesDet_Price]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[Price]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="16" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_DiesDet_Price1]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[TestCost]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="17" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_DiesGroupDet_EOLLife]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((1))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet].[EOLLife]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="18" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_DiesGroupDet_ExpLife]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((1))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet].[ExpLife]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="19" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_Incoterms_HasTC]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[Incoterms]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[Incoterms].[HasTC]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="20" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_ItemDet_Class01]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[Class01]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="21" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_ItemDet_Class02]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[Class02]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="22" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_ItemDet_Class03]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[Class03]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="23" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_ItemDet_Class04]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[Class04]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="24" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_ItemDet_Class05]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[Class05]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="25" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_Package2_Durata]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2].[Durata]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="26" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_Package2_NumImb]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2].[NumImb]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="27" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_Package2_Tare]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2].[Tare]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="28" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_Package2_TotQty]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2].[TotQta]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="29" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_Package2_Weight]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2].[Weight]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="30" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_Package2Item_Durata]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2Item]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2Item].[Durata]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="31" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_Package2Item_NumImb]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2Item]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2Item].[NumImb]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="32" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_Package2Item_Tare]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2Item]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2Item].[Tare]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="33" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_Package2Item_TotQty]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2Item]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2Item].[TotQta]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="34" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_Package2Item_Weight]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2Item]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2Item].[Weight]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="35" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_Package2ItemClient_Durata]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2ItemClient]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2ItemClient].[Durata]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="36" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_Package2ItemClient_NumImb]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2ItemClient]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2ItemClient].[NumImb]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="37" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_Package2ItemClient_Tare]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2ItemClient]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2ItemClient].[Tare]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="38" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_Package2ItemClient_TotQty]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2ItemClient]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2ItemClient].[TotQta]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="39" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_Package2ItemClient_Weight]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2ItemClient]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2ItemClient].[Weight]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="40" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_PlantsDet_OH]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((1))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[PlantsDet]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[PlantsDet].[Charge]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="41" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_ProductionLog_NrPos]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[NrPos]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="42" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_ProductionLog_okDi]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((1))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[okDi]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="43" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_ProductionLog_okPr]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((1))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[okPr]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="44" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_ProductionLog_okQM]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((1))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[okQM]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="45" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_ProductionLog_okSc]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((1))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[okSc]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="46" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_QuoteExtra_Class01]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[Class01]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="47" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_QuoteExtra_Class02]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[Class02]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="48" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_QuoteExtra_Class03]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[Class03]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="49" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_QuoteExtra_Class04]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[Class04]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="50" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_QuoteExtra_Class05]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[Class05]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="51" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_QuoteExtra_Quota]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((1))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[Quota]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="52" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_QuoteExtra_QuoteRev]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[QuoteRev]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="53" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_QuoteExtra_QuoteType]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[('Q')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[QuoteType]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="54" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_QuoteExtra_ResType]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[ProcessNum]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="55" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_QuoteExtra_TotCost]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[TotCost]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="56" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_QuoteExtra_TotQty]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((1))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[TotQty]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="57" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_QuoteFull_Q_PriceOff]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[PriceOff]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="58" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_QuoteList_BathQty]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[BatchQty]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="59" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_QuoteList_CodItem]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodItem]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="60" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_QuoteList_CodItemGroup]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodItemGroup]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="61" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_QuoteList_Note]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[Note]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="62" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_QuoteList_OrdNum]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[OrdNum]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="63" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_QuoteList_OrdPrice1]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[PriceOff]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="64" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_QuoteList_OrdRow]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[OrdRow]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="65" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_QuoteList_PriceOff1]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[OrdPrice]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="66" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_QuoteList_QuoteRev]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteRev]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="67" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_QuoteList_QuoteType]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[('Q')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteType]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="68" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_QuoteList_UnitWeight]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[UnitWeight]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="69" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_QuoteOC_valid]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((1))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[valid]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="70" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_QuoteParam_Parameter]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam].[Parameter]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="71" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_QuoteParam_ProcessNum]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam].[ProcessNum]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="72" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_QuoteParam_QuoteRev]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam].[QuoteRev]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="73" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_QuoteParam_QuoteType]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[('Q')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam].[QuoteType]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="74" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_QuoteRM_CodPackag]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[CodPackag]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="75" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_QuoteRM_ConvRatio]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((1))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[FCR]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="76" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_QuoteRM_QuoteRev]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[QuoteRev]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="77" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_QuoteRM_QuoteType]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[('Q')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[QuoteType]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="78" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_QuoteRM_RawMatCost]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[RawMatCost]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="79" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_QuoteRM_RawMatExtraCost]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[RawMatExtraCost]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="80" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_QuoteRM_valid]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((1))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[valid]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="81" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_QuoteWorkExt_EWC4UG1]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkExt]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkExt].[UM]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="82" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_QuoteWorkExt_FC4UG]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkExt]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkExt].[EWC4UG]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="83" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_QuoteWorkExt_QuoteRev]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkExt]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkExt].[QuoteRev]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="84" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_QuoteWorkExt_QuoteType]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[('Q')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkExt]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkExt].[QuoteType]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="85" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_QuoteWorkExt_valid]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((1))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkExt]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkExt].[valid]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="86" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_QuoteWorkInt_Class011]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[Class02]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="87" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_QuoteWorkInt_Class021]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[Class03]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="88" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_QuoteWorkInt_Class031]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[Class04]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="89" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_QuoteWorkInt_Class032]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[Class05]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="90" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_QuoteWorkInt_CSR]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[MSR]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="91" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_QuoteWorkInt_CSR1]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[DSR]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="92" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_QuoteWorkInt_NetProd]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[NetProd]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="93" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_QuoteWorkInt_Prod_LUK]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[Class01]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="94" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_QuoteWorkInt_QuoteRev]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[QuoteRev]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="95" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_QuoteWorkInt_QuoteType]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[('Q')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[QuoteType]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="96" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_QuoteWorkInt_RCFG]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[VC4UG]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="97" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_QuoteWorkInt_RUFG]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[FC4UG]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="98" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_QuoteWorkInt_TSR]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[WSR]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="99" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_QuoteWorkInt_valid]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((1))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[valid]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="100" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_QuoteWorkInt_VC4UG1]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[OH4UG]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="101" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_QuoteWorkInt_VC4UG1_1]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[SC4UG]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="102" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_QuoteWorkInt_WorkType]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[ProcessNum]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="103" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_RawMatDet_CSR]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[CSR]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="104" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_RawMatDet_ExtraMatCost]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[ExtraMatCost]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="105" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_RawMatDet_ExtraServCost]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[ExtraServCost]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="106" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_RawMatDet_ProcCost]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[ProcCost]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="107" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_RawMatDet_ProcYield]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[ProcYield]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="108" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_RawMatDet_SSR]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[SSR]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="109" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_RawMatDet_SSVA]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[SSVA]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="110" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_RawMatDet_SSVR]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[SSVR]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="111" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_RevHistory_Description]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[RevHistory]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[RevHistory].[Description]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="112" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_RevHistory_RevNum]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[RevHistory]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[RevHistory].[RevNum]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="113" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_RevHistory_RevType]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[(N'P')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[RevHistory]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[RevHistory].[RevType]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="114" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_TabImbArt_Durata]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[TabImbArt]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[TabImbArt].[Durata]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="115" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_TabImbArt_NumImb]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[TabImbArt]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[TabImbArt].[NumImb]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="116" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_TabImbArt_TotOut]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[TabImbArt]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[TabImbArt].[TotOut]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="117" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_TabImbGrp_Durata]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[TabImbGrp]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[TabImbGrp].[Durata]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="118" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_TabImbGrp_NumImb]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[TabImbGrp]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[TabImbGrp].[NumImb]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="119" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_TabImbGrp_TotOut]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[TabImbGrp]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[TabImbGrp].[TotOut]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="120" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_Table_1_ClassCli01]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[TranspCostDet]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[TranspCostDet].[TranspZone]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="121" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[dbo].[DF_Utilities_unitCost]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[Utilities]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[dbo].[Utilities].[UnitCost]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="122" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[DiesDet]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[DiesDet].[CodDies]">
|
|
<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].[DiesDet].[HoleNum]">
|
|
<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].[DiesDet].[CodItem]">
|
|
<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].[DiesDet].[CodDiesGroup]">
|
|
<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].[DiesDet].[Price]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="3" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="16" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[DiesDet].[TestCost]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="3" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="17" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[DiesDet].[ExpLife]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="2" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[DiesDet].[ActLife]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="2" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[DiesDet].[Active]">
|
|
<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="123" />
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="124" />
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="125" />
|
|
</Element>
|
|
<Element Type="SqlIndex" Name="[dbo].[DiesDet].[i_DiesDet_Active_CodDiesGroup_Filtered]">
|
|
<Property Name="FilterPredicate">
|
|
<Value><![CDATA[([Active]=(0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[Active]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[Active]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[CodDiesGroup]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="IncludedColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[CodItem]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="IndexedObject">
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlIndex" Name="[dbo].[DiesDet].[i_DiesDet_CodItem_CodDiesGroup_Active]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[CodItem]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[CodDiesGroup]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[Active]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="IncludedColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[Price]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[ExpLife]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[ActLife]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="IndexedObject">
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[DiesGroupDet]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[DiesGroupDet].[CodDiesGroup]">
|
|
<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].[DiesGroupDet].[Price]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="3" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[DiesGroupDet].[QtyTot]">
|
|
<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].[DiesGroupDet].[QtyEOL]">
|
|
<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].[DiesGroupDet].[ExpLife]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="2" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="19" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[DiesGroupDet].[EOLLife]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="2" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="18" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[DiesGroupDet].[DateMod]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[date]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[DiesGroupDet].[UserMod]">
|
|
<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="126" />
|
|
</Element>
|
|
<Element Type="SqlScalarFunction" Name="[dbo].[f_dtFromRaw]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_dtFromRaw].[@origDt]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="FunctionBody">
|
|
<Entry>
|
|
<Element Type="SqlScriptFunctionImplementation">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
BEGIN
|
|
DECLARE @output datetime
|
|
DECLARE @strDt NVARCHAR(50)
|
|
|
|
SELECT @strDt = LEFT(@origDt, 4) + '-' + SUBSTRING(@origDt, 5,2 ) + '-' + SUBSTRING(@origDt, 7,2 ) + ' ' + SUBSTRING(@origDt, 9,2 ) + ':' + SUBSTRING(@origDt, 11,2 ) + ':' + SUBSTRING(@origDt, 13,2 ) + '.' + SUBSTRING(@origDt, 15,2 ) +'0'
|
|
|
|
SELECT @output = CONVERT(DATETIME, @strDt, 121)
|
|
|
|
RETURN @output
|
|
|
|
END]]></Value>
|
|
</Property>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="213" />
|
|
<Property Name="Length" Value="723" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="-- =============================================
-- Author:		S.E.Locatelli
-- Create date: 2013.11.28
-- Description:	Conversione datetime da yyyyMMddHHmmssnn
-- =============================================
CREATE FUNCTION f_dtFromRaw 
(
	-- Add the parameters for the function here
	@origDt nvarchar(50)
)
RETURNS datetime
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[f_dtFromRaw].[@origDt]">
|
|
<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>
|
|
<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_getCodPackag_OLD]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2ItemClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2ItemClient].[CodClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_getCodPackag_OLD].[@CodClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2ItemClient].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_getCodPackag_OLD].[@CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2ItemClient].[CodPackag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2ItemClient].[TotQta]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2Item]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2Item].[CodPackag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2Item].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2Item].[TotQta]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="FunctionBody">
|
|
<Entry>
|
|
<Element Type="SqlScriptFunctionImplementation">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
BEGIN
|
|
DECLARE @output NVARCHAR(50)
|
|
DECLARE @trovati INT = 0
|
|
-- setup iniziale: imposto a zero...
|
|
SET @output = '0'
|
|
|
|
SELECT @trovati = COUNT(*) FROM Package2ItemClient WHERE CodClient = @CodClient AND CodItem = @CodItem
|
|
IF(@trovati > 0)
|
|
-- primo tentativo: cerco il package dato SIA cliente che ITEM
|
|
BEGIN
|
|
SELECT TOP 1 @output = CodPackag
|
|
FROM Package2ItemClient WHERE CodClient = @CodClient AND CodItem = @CodItem
|
|
ORDER BY TotQta DESC
|
|
END
|
|
ELSE
|
|
-- secondo tentativo: se non lo trovo cerco per SOLO ITEM
|
|
BEGIN
|
|
SELECT TOP 1 @output = CodPackag
|
|
FROM Package2Item WHERE CodItem = @CodItem
|
|
ORDER BY TotQta DESC
|
|
END
|
|
|
|
RETURN @output
|
|
|
|
END]]></Value>
|
|
</Property>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="327" />
|
|
<Property Name="Length" Value="1154" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="

-- =============================================
-- Author:		S.E.Locatelli
-- Create date: 2014.01.15
-- Description:	Recupera CodPackage dato CodItem e CodClient secondo albero decisionale
-- SOSTITUITA da fun Table-value f_getDataCodPackag in QL_Update
-- =============================================
CREATE FUNCTION [dbo].[f_getCodPackag_OLD] 
(
	@CodItem	NVARCHAR(50),
	@CodClient	NVARCHAR(50)
)
RETURNS NVARCHAR(50)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[f_getCodPackag_OLD].[@CodItem]">
|
|
<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].[f_getCodPackag_OLD].[@CodClient]">
|
|
<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>
|
|
<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>
|
|
<Element Type="SqlMultiStatementTableValuedFunction" Name="[dbo].[f_getDataCodPackag]">
|
|
<Property Name="ReturnTableVariable" Value="@Table" />
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2ItemClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2ItemClient].[CodClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_getDataCodPackag].[@CodClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2ItemClient].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_getDataCodPackag].[@CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2ItemClient].[CodPackag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2ItemClient].[TotQta]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2ItemClient].[Weight]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2ItemClient].[Tare]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2ItemClient].[NumImb]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2ItemClient].[Durata]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2Item]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2Item].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2Item]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2Item].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2Item].[CodPackag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2Item].[TotQta]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2Item].[Weight]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2Item].[Tare]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2Item].[NumImb]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2Item].[Durata]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2].[CodPackag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2].[TotQta]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2].[Weight]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2].[Tare]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2].[NumImb]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2].[Durata]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[f_getDataCodPackag].[CodItem]">
|
|
<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].[f_getDataCodPackag].[CodClient]">
|
|
<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].[f_getDataCodPackag].[CodPackag]">
|
|
<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].[f_getDataCodPackag].[TotQta]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="3" />
|
|
<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].[f_getDataCodPackag].[Weight]">
|
|
<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].[f_getDataCodPackag].[Tare]">
|
|
<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].[f_getDataCodPackag].[NumImb]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[f_getDataCodPackag].[Durata]">
|
|
<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].[f_getDataCodPackag].[LivPackag]">
|
|
<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].[f_getDataCodPackag].[LivPackagDet]">
|
|
<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="FunctionBody">
|
|
<Entry>
|
|
<Element Type="SqlScriptFunctionImplementation">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
BEGIN
|
|
|
|
DECLARE @output NVARCHAR(50)
|
|
DECLARE @trovati INT = 0
|
|
-- setup iniziale: imposto a zero...
|
|
SET @output = '0'
|
|
|
|
|
|
SELECT @trovati = COUNT(*) FROM Package2ItemClient WHERE CodClient = @CodClient AND CodItem = @CodItem
|
|
IF(@trovati > 0)
|
|
-- primo tentativo: cerco il package dato SIA cliente che ITEM
|
|
BEGIN
|
|
INSERT @Table
|
|
SELECT TOP 1 CodItem, CodClient , CodPackag, TotQta, Weight, Tare, NumImb, Durata
|
|
,'Item-Client-Package', @CodItem + '-' + @CodClient + '-' + CodPackag
|
|
FROM Package2ItemClient WHERE CodClient = @CodClient AND CodItem = @CodItem
|
|
ORDER BY TotQta DESC
|
|
END
|
|
ELSE IF EXISTS ( SELECT * FROM Package2Item WHERE CodItem = @CodItem )
|
|
-- secondo tentativo: se non lo trovo cerco per SOLO ITEM
|
|
BEGIN
|
|
INSERT @Table
|
|
SELECT TOP 1 CodItem, 'ND' AS CodClient , CodPackag, TotQta, Weight, Tare, NumImb, Durata
|
|
,'Item-Package', @CodItem + '-' + CodPackag
|
|
FROM Package2Item WHERE CodItem = @CodItem
|
|
ORDER BY TotQta DESC
|
|
END
|
|
ELSE
|
|
-- secondo tentativo: se non lo trovo cerco per SOLO ITEM
|
|
BEGIN
|
|
INSERT @Table
|
|
SELECT TOP 1 'ND', 'ND' AS CodClient , CodPackag, TotQta, Weight, Tare, NumImb, Durata
|
|
,'Package', CodPackag
|
|
FROM dbo.Package2 WHERE CodPackag = 0
|
|
END
|
|
|
|
RETURN
|
|
END]]></Value>
|
|
</Property>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="211" />
|
|
<Property Name="Length" Value="2133" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="


-- =============================================
-- Author:		Steamware
-- Create date: 2014-01-30
-- Description:	Ritorna l'imballo e i dati associati
-- =============================================
CREATE FUNCTION [dbo].[f_getDataCodPackag]
(
	@CodItem	NVARCHAR(50),
	@CodClient	NVARCHAR(50)
)
RETURNS 
@Table TABLE 
(
	[CodItem] [nvarchar](50) NOT NULL,
	[CodClient] [nvarchar](50) NOT NULL,
	[CodPackag] [nvarchar](50) NOT NULL,
	[TotQta] [decimal](18, 3) NOT NULL,
	[Weight] [decimal](18, 6) NOT NULL,
	[Tare] [decimal](18, 6) NOT NULL,
	[NumImb] [decimal](9, 6) NOT NULL,
	[Durata] [decimal](18, 6) NOT NULL,
	[LivPackag] [nvarchar](50) NOT NULL,
	[LivPackagDet] [nvarchar](50) NOT NULL
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[f_getDataCodPackag].[@CodItem]">
|
|
<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].[f_getDataCodPackag].[@CodClient]">
|
|
<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>
|
|
</Element>
|
|
<Element Type="SqlScalarFunction" Name="[dbo].[f_getNewCodQuote]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_padLeft]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="FunctionBody">
|
|
<Entry>
|
|
<Element Type="SqlScriptFunctionImplementation">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
BEGIN
|
|
|
|
DECLARE @output INT
|
|
DECLARE @oggi DATETIME = GETDATE()
|
|
|
|
|
|
SELECT @output = ISNULL(MAX(CodQuote) + 1,CAST(RIGHT(YEAR(@oggi),2) AS NVARCHAR) + dbo.f_padLeft(MONTH(@oggi), 2,'0') + dbo.f_padLeft(DAY(@oggi), 2,'0')+'0001')
|
|
FROM QuoteList
|
|
WHERE codquote LIKE CAST(RIGHT(YEAR(@oggi),2) AS NVARCHAR) + dbo.f_padLeft(MONTH(@oggi), 2,'0') + dbo.f_padLeft(DAY(@oggi), 2,'0') + '%'
|
|
|
|
RETURN @output
|
|
|
|
END]]></Value>
|
|
</Property>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="225" />
|
|
<Property Name="Length" Value="699" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="-- =============================================
-- Author:		S.E.Locatelli
-- Create date: 2014.02.21
-- Description:	Retituisce un codice offerta valido da yyMMdd + incr
-- =============================================
CREATE FUNCTION f_getNewCodQuote
(
)
RETURNS INT
AS" />
|
|
</Annotation>
|
|
</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="[int]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlScalarFunction" Name="[dbo].[f_getSubstring]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_getSubstring].[@str_in]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_getSubstring].[@separator]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_getSubstring].[@PosizValue]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="FunctionBody">
|
|
<Entry>
|
|
<Element Type="SqlScriptFunctionImplementation">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
BEGIN
|
|
|
|
DECLARE @Occurrences INT,
|
|
@Counter INT,
|
|
@tmpStr NVARCHAR(4000),
|
|
@str_out NVARCHAR(4000)
|
|
|
|
IF RIGHT(@str_in, DATALENGTH(@separator)/2 ) <> @separator
|
|
SET @str_out = @str_in + @separator ;
|
|
ELSE
|
|
SET @str_out = @str_in ;
|
|
|
|
-- calcolo il numero di elementi della nella stringa
|
|
SET @Occurrences = ( (DATALENGTH( REPLACE(@str_out, @separator, @separator+'#')) - DATALENGTH(@str_out)) ) / 2
|
|
|
|
-- se l'elemento richiesto esiste proseguo altrimenti ritorno NULL
|
|
IF @Occurrences >= @PosizValue AND @PosizValue <> 0
|
|
BEGIN
|
|
|
|
SET @tmpStr = @str_out ;
|
|
SET @Counter = 1 ;
|
|
|
|
WHILE @Counter <= @PosizValue
|
|
BEGIN
|
|
SET @Counter = @Counter + 1 ;
|
|
SET @str_out = SUBSTRING( @tmpStr, 1, CHARINDEX(@separator,@tmpStr) - 1) ;
|
|
-- metto via il resto della stringa
|
|
SET @tmpStr = SUBSTRING( @tmpStr, CHARINDEX(@separator,@tmpStr) + DATALENGTH(@separator)/2, 4000) ;
|
|
|
|
IF DATALENGTH(@tmpStr) = 0
|
|
BREAK
|
|
END
|
|
|
|
-- pulisco da caratteri NON voluti
|
|
--SET @str_out = REPLACE(@str_out, char(13), '') ; -- carriage return
|
|
--SET @str_out = REPLACE(@str_out, char(10), '') ; -- line feed
|
|
--SET @str_out = REPLACE(@str_out, char(9), '') ; -- tab
|
|
--SET @str_out = LTRIM ( RTRIM (@str_out) ) ; -- blank
|
|
END
|
|
ELSE
|
|
SET @str_out = NULL ;
|
|
|
|
RETURN @str_out
|
|
|
|
END]]></Value>
|
|
</Property>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="432" />
|
|
<Property Name="Length" Value="2091" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="



-- ================================================================
-- Author : Steamware
-- Create date: 2017-01-17
--
-- Description:	Data una stringa con una serie di valori separati da un separatore ( es. ; )
-- ritorna l'elemento nella posizione richiesta
--
-- esempio : SELECT dbo.f_GetSubstring('asda-fff-bbb','-' , 2)
-- ================================================================
CREATE FUNCTION [dbo].[f_getSubstring]
( 
 @str_in NVARCHAR(4000), @separator NVARCHAR(4)= '-', @PosizValue INT = 1
)
RETURNS NVARCHAR(4000)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[f_getSubstring].[@str_in]">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="4000" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[f_getSubstring].[@separator]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA['-']]></Value>
|
|
</Property>
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="4" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[f_getSubstring].[@PosizValue]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[1]]></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>
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="4000" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</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><![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="272" />
|
|
<Property Name="Length" Value="733" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="
/***************************************
* FUNCTION f_padLeft
*
* fornisce una stringa della lunghezza desiderata aggiungendo a sx il carattere richiesto alla @string originale
*
* Steamware, S.E.L.
* mod: 2010.03.19
*
****************************************/
CREATE FUNCTION [dbo].[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="SqlScalarFunction" Name="[dbo].[f_padRight]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[f_padRight].[@string]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_padRight].[@desired_length]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_padRight].[@pad_character]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="FunctionBody">
|
|
<Entry>
|
|
<Element Type="SqlScriptFunctionImplementation">
|
|
<Property Name="BodyScript">
|
|
<Value><![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 @string + REPLACE(SPACE(@desired_length - LEN(@string)), ' ', @pad_character)
|
|
ELSE @string
|
|
END
|
|
|
|
END]]></Value>
|
|
</Property>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="271" />
|
|
<Property Name="Length" Value="733" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="/***************************************
* FUNCTION f_padRight
*
* fornisce una stringa della lunghezza desiderata aggiungendo a sx il carattere richiesto alla @string originale
*
* Steamware, S.E.L.
* mod: 2010.03.19
*
****************************************/
CREATE FUNCTION [dbo].[f_padRight] (@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_padRight].[@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_padRight].[@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_padRight].[@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="SqlScalarFunction" Name="[dbo].[f_trim]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[f_trim].[@string]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="FunctionBody">
|
|
<Entry>
|
|
<Element Type="SqlScriptFunctionImplementation">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
BEGIN
|
|
|
|
-- Prefix the required number of spaces to bulk up the string and then replace the spaces with the desired character
|
|
RETURN LTRIM(RTRIM(@string))
|
|
|
|
|
|
END]]></Value>
|
|
</Property>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="189" />
|
|
<Property Name="Length" Value="447" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="/***************************************
* FUNCTION f_trim
*
* trim completo: LTRIM(RTRIM(...))
*
* Steamware, S.E.L.
* mod: 2013.05.10
*
****************************************/
create FUNCTION [dbo].[f_trim] (@string NVARCHAR(MAX))
RETURNS NVARCHAR(MAX) AS" />
|
|
</Annotation>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[f_trim].[@string]">
|
|
<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>
|
|
<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>
|
|
<Element Type="SqlForeignKeyConstraint" Name="[dbo].[FK_ClientDet_AgentsDet]">
|
|
<Property Name="OnUpdateAction" Value="1" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet].[CodAg]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[AgentsDet].[CodAg]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AgentsDet]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="7" />
|
|
</Element>
|
|
<Element Type="SqlForeignKeyConstraint" Name="[dbo].[FK_Cost2Plant_PlantsDet]">
|
|
<Property Name="OnUpdateAction" Value="1" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant].[CodPlant]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[PlantsDet].[CodPlant]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignTable">
|
|
<Entry>
|
|
<References Name="[dbo].[PlantsDet]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="15" />
|
|
</Element>
|
|
<Element Type="SqlForeignKeyConstraint" Name="[dbo].[FK_DiesDet_DiesGroupDet]">
|
|
<Property Name="OnUpdateAction" Value="1" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[CodDiesGroup]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet].[CodDiesGroup]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignTable">
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="124" />
|
|
</Element>
|
|
<Element Type="SqlForeignKeyConstraint" Name="[dbo].[FK_DiesDet_ItemDet]">
|
|
<Property Name="OnUpdateAction" Value="1" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[CodItem]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[CodItem]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignTable">
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="125" />
|
|
</Element>
|
|
<Element Type="SqlForeignKeyConstraint" Name="[dbo].[FK_Package2_PackagDet]">
|
|
<Property Name="OnUpdateAction" Value="1" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2].[CodPackag]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[PackagDet].[CodPackag]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignTable">
|
|
<Entry>
|
|
<References Name="[dbo].[PackagDet]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="127" />
|
|
</Element>
|
|
<Element Type="SqlForeignKeyConstraint" Name="[dbo].[FK_Package2Item_ItemDet]">
|
|
<Property Name="OnUpdateAction" Value="1" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2Item].[CodItem]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2Item]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[CodItem]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignTable">
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="128" />
|
|
</Element>
|
|
<Element Type="SqlForeignKeyConstraint" Name="[dbo].[FK_Package2Item_PackagDet]">
|
|
<Property Name="OnUpdateAction" Value="1" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2Item].[CodPackag]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2Item]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[PackagDet].[CodPackag]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignTable">
|
|
<Entry>
|
|
<References Name="[dbo].[PackagDet]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="129" />
|
|
</Element>
|
|
<Element Type="SqlForeignKeyConstraint" Name="[dbo].[FK_Package2ItemClient_ClientDet]">
|
|
<Property Name="OnUpdateAction" Value="1" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2ItemClient].[CodClient]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2ItemClient]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet].[CodClient]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignTable">
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="130" />
|
|
</Element>
|
|
<Element Type="SqlForeignKeyConstraint" Name="[dbo].[FK_Package2ItemClient_ItemDet]">
|
|
<Property Name="OnUpdateAction" Value="1" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2ItemClient].[CodItem]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2ItemClient]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[CodItem]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignTable">
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="131" />
|
|
</Element>
|
|
<Element Type="SqlForeignKeyConstraint" Name="[dbo].[FK_Package2ItemClient_PackagDet]">
|
|
<Property Name="OnUpdateAction" Value="1" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2ItemClient].[CodPackag]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2ItemClient]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[PackagDet].[CodPackag]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignTable">
|
|
<Entry>
|
|
<References Name="[dbo].[PackagDet]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="132" />
|
|
</Element>
|
|
<Element Type="SqlForeignKeyConstraint" Name="[dbo].[FK_ProductionLog_ClientDet]">
|
|
<Property Name="OnUpdateAction" Value="1" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[CodClient]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet].[CodClient]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignTable">
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="133" />
|
|
</Element>
|
|
<Element Type="SqlForeignKeyConstraint" Name="[dbo].[FK_ProductionLog_PackagDet]">
|
|
<Property Name="OnUpdateAction" Value="1" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[CodPackag]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[PackagDet].[CodPackag]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignTable">
|
|
<Entry>
|
|
<References Name="[dbo].[PackagDet]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="134" />
|
|
</Element>
|
|
<Element Type="SqlForeignKeyConstraint" Name="[dbo].[FK_ProductionLog_PlantsDet]">
|
|
<Property Name="OnUpdateAction" Value="1" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[CodPlant]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[PlantsDet].[CodPlant]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignTable">
|
|
<Entry>
|
|
<References Name="[dbo].[PlantsDet]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="135" />
|
|
</Element>
|
|
<Element Type="SqlForeignKeyConstraint" Name="[dbo].[FK_ProductionLog_RawMatDet]">
|
|
<Property Name="OnUpdateAction" Value="1" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[RawMat]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[RawMat]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignTable">
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="136" />
|
|
</Element>
|
|
<Element Type="SqlForeignKeyConstraint" Name="[dbo].[FK_QuoteExtra_QuoteList]">
|
|
<Property Name="OnUpdateAction" Value="1" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[QuoteRev]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteRev]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="137" />
|
|
</Element>
|
|
<Element Type="SqlForeignKeyConstraint" Name="[dbo].[FK_QuoteParam_QuoteList]">
|
|
<Property Name="OnUpdateAction" Value="1" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam].[QuoteRev]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteRev]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="138" />
|
|
</Element>
|
|
<Element Type="SqlForeignKeyConstraint" Name="[dbo].[FK_QuoteRM_QuoteList]">
|
|
<Property Name="OnUpdateAction" Value="1" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[QuoteRev]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteRev]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="139" />
|
|
</Element>
|
|
<Element Type="SqlForeignKeyConstraint" Name="[dbo].[FK_QuoteWorkExt_QuoteList]">
|
|
<Property Name="OnUpdateAction" Value="1" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkExt].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkExt].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkExt].[QuoteRev]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkExt]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteRev]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="140" />
|
|
</Element>
|
|
<Element Type="SqlForeignKeyConstraint" Name="[dbo].[FK_QuoteWorkInt_QuoteList]">
|
|
<Property Name="OnUpdateAction" Value="1" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[QuoteRev]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteRev]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForeignTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="141" />
|
|
</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="142" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[Incoterms]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[Incoterms].[CodInco]">
|
|
<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>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[Incoterms].[Descript]">
|
|
<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>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[Incoterms].[HasTC]">
|
|
<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="20" />
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="143" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[ItemDet]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[ItemDet].[CodItem]">
|
|
<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].[ItemDet].[ItemDescr]">
|
|
<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>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[ItemDet].[CodPlant]">
|
|
<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].[ItemDet].[UnitWeight]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="3" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[ItemDet].[CodItemGroup]">
|
|
<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].[ItemDet].[Class01]">
|
|
<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="21" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[ItemDet].[Class02]">
|
|
<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="22" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[ItemDet].[Class03]">
|
|
<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="23" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[ItemDet].[Class04]">
|
|
<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="24" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[ItemDet].[Class05]">
|
|
<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="25" />
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="144" />
|
|
</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="145" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[PackagDet]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[PackagDet].[CodPackag]">
|
|
<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].[PackagDet].[PackagDesc]">
|
|
<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>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[PackagDet].[RMCost]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="3" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[PackagDet].[RMWeight]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="4" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="146" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[Package2]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[Package2].[CodPackag]">
|
|
<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].[Package2].[TotQta]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="3" />
|
|
<Property Name="Precision" Value="18" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="29" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[Package2].[Weight]">
|
|
<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="30" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[Package2].[Tare]">
|
|
<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="28" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[Package2].[NumImb]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="27" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[Package2].[Durata]">
|
|
<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="26" />
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="147" />
|
|
<AttachedAnnotation Disambiguator="127" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[Package2Item]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[Package2Item].[CodItem]">
|
|
<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].[Package2Item].[CodPackag]">
|
|
<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].[Package2Item].[TotQta]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="3" />
|
|
<Property Name="Precision" Value="18" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="34" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[Package2Item].[Weight]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="4" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="35" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[Package2Item].[Tare]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="4" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="33" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[Package2Item].[NumImb]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="32" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[Package2Item].[Durata]">
|
|
<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="31" />
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="148" />
|
|
<AttachedAnnotation Disambiguator="128" />
|
|
<AttachedAnnotation Disambiguator="129" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[Package2ItemClient]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[Package2ItemClient].[CodItem]">
|
|
<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].[Package2ItemClient].[CodClient]">
|
|
<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].[Package2ItemClient].[CodPackag]">
|
|
<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].[Package2ItemClient].[TotQta]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="3" />
|
|
<Property Name="Precision" Value="18" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="39" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[Package2ItemClient].[Weight]">
|
|
<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="40" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[Package2ItemClient].[Tare]">
|
|
<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="38" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[Package2ItemClient].[NumImb]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="37" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[Package2ItemClient].[Durata]">
|
|
<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="36" />
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="149" />
|
|
<AttachedAnnotation Disambiguator="130" />
|
|
<AttachedAnnotation Disambiguator="131" />
|
|
<AttachedAnnotation Disambiguator="132" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_AgentsDet]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[AgentsDet].[CodAg]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[AgentsDet]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="4" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_AnagArticoli]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[CodItem]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="144" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_ClientDet]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet].[CodClient]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="6" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_Config]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[Config].[Parameter]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[Config]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="8" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_Cost2Plant]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant].[CodPlant]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant].[ProcessNum]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="14" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_DiesDet]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[CodDies]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="123" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_DiesGroupDet]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet].[CodDiesGroup]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="126" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_Incoterms]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[Incoterms].[CodInco]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[Incoterms]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="143" />
|
|
</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="145" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_PackagDet]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[PackagDet].[CodPackag]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[PackagDet]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="146" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_Package2]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2].[CodPackag]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="147" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_Package2Item]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2Item].[CodItem]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2Item].[CodPackag]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2Item]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="148" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_Package2ItemClient]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2ItemClient].[CodItem]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2ItemClient].[CodClient]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2ItemClient].[CodPackag]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2ItemClient]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="149" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_PlantsDet]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[PlantsDet].[CodPlant]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[PlantsDet]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="150" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_ProductionLog_1]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[EventStart]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[EventEnd]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[CodPlant]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[ProcessNum]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[NrPos]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[CodDies]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="151" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_QuoteExtra]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[QuoteType]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[CodQuote]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[QuoteRev]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[NumEx]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="152" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_QuoteFull_Q_1]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[QuoteType]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[CodQuote]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[QuoteRev]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="153" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_QuoteList_1]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteType]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodQuote]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteRev]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="154" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_QuoteParam]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam].[NumP]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam].[QuoteType]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam].[CodQuote]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam].[QuoteRev]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="155" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_QuoteRM]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[QuoteType]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[CodQuote]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[QuoteRev]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[NumRM]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="156" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_QuoteWorkExt]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkExt].[QuoteRev]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkExt].[QuoteType]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkExt].[CodQuote]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkExt].[NumWE]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkExt]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="157" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_QuoteWorkInt]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[QuoteType]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[CodQuote]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[QuoteRev]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[NumWI]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="158" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_RawMatDet]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[RawMat]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="159" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_RevHistory]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[RevHistory].[RevType]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[RevHistory].[RevNum]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[RevHistory]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="160" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_TabImbArt]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[TabImbArt].[KeyA]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[TabImbArt]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="161" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_TabImbGrp]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[TabImbGrp].[CodPackag]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[TabImbGrp]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="162" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_TabProdSc]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[TabProdSc].[KeyAMIL]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[TabProdSc].[CodDiesGroup]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[TabProdSc]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="163" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_test]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[test].[Row]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[test]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="164" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_TranspCostDet_1]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[TranspCostDet].[TranspZone]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[TranspCostDet]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="165" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[dbo].[PK_Utilities]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[Utilities].[CodUtil]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[Utilities].[CodPlant]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[dbo].[Utilities]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="166" />
|
|
</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="167" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[PlantsDet]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[PlantsDet].[CodPlant]">
|
|
<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].[PlantsDet].[Descript]">
|
|
<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>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[PlantsDet].[Charge]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="41" />
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="150" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[ProductionLog]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[ProductionLog].[EventStart]">
|
|
<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].[ProductionLog].[EventEnd]">
|
|
<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].[ProductionLog].[CodPlant]">
|
|
<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].[ProductionLog].[ProcessNum]">
|
|
<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].[ProductionLog].[NrPos]">
|
|
<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="42" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[ProductionLog].[CodDies]">
|
|
<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].[ProductionLog].[CodClient]">
|
|
<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].[ProductionLog].[OrderNum]">
|
|
<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].[ProductionLog].[BatchNum]">
|
|
<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].[ProductionLog].[ProcessType]">
|
|
<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].[ProductionLog].[EventType]">
|
|
<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].[ProductionLog].[RawMat]">
|
|
<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].[ProductionLog].[CodPackag]">
|
|
<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].[ProductionLog].[QtyIN]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="4" />
|
|
<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].[ProductionLog].[QtyOUT]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="4" />
|
|
<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].[ProductionLog].[QtyEXT]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="4" />
|
|
<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].[ProductionLog].[NumIN]">
|
|
<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].[ProductionLog].[NumOUT]">
|
|
<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].[ProductionLog].[QuotaPlant]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="4" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[ProductionLog].[QuotaMan]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="4" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[ProductionLog].[Tags]">
|
|
<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>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[ProductionLog].[Duration]">
|
|
<Property Name="ExpressionScript">
|
|
<Value><![CDATA[(datediff(second,[EventStart],[EventEnd])/(3600.00))]]></Value>
|
|
</Property>
|
|
<Property Name="IsPersisted" Value="True" />
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[EventStart]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[EventEnd]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[ProductionLog].[okPr]">
|
|
<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="44" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[ProductionLog].[okQM]">
|
|
<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="45" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[ProductionLog].[okSc]">
|
|
<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].[ProductionLog].[okDi]">
|
|
<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="43" />
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="151" />
|
|
<AttachedAnnotation Disambiguator="133" />
|
|
<AttachedAnnotation Disambiguator="134" />
|
|
<AttachedAnnotation Disambiguator="135" />
|
|
<AttachedAnnotation Disambiguator="136" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[QuoteFull_Q]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q].[Vers]">
|
|
<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="[varchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q].[QuoteType]">
|
|
<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="[char]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q].[CodQuote]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[bigint]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q].[QuoteRev]">
|
|
<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].[QuoteFull_Q].[CodClient]">
|
|
<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].[QuoteFull_Q].[ClientName]">
|
|
<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>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q].[CodItem]">
|
|
<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].[QuoteFull_Q].[CodItemGroup]">
|
|
<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].[QuoteFull_Q].[RawMat]">
|
|
<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].[QuoteFull_Q].[UnitWeight]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="3" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q].[BatchQty]">
|
|
<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].[QuoteFull_Q].[CodInco]">
|
|
<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>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q].[KeyAM]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="101" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q].[Note]">
|
|
<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].[QuoteFull_Q].[PriceOff]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="58" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q].[CodClientAssoc]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="100" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q].[ClientNameAssoc]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="100" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q].[ItemDescr]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="100" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q].[CodifProfilo]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="100" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q].[ClasseMerc]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="100" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q].[TipoDies]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="100" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q].[CodDiesGroup]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="100" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q].[DiamDies]">
|
|
<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].[QuoteFull_Q].[HoleNumDies]">
|
|
<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].[QuoteFull_Q].[DiesPrice]">
|
|
<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].[QuoteFull_Q].[DiesExpLife]">
|
|
<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].[QuoteFull_Q].[DiesEOLife]">
|
|
<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].[QuoteFull_Q].[NumDiesInList]">
|
|
<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].[QuoteFull_Q].[NumDiesExaust]">
|
|
<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].[QuoteFull_Q].[CodPlant]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="100" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q].[KeyAMIL]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="100" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q].[KgTeo]">
|
|
<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].[QuoteFull_Q].[NumSMED]">
|
|
<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].[QuoteFull_Q].[QuotaMan]">
|
|
<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].[QuoteFull_Q].[PRMWeight]">
|
|
<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].[QuoteFull_Q].[PWeight]">
|
|
<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].[QuoteFull_Q].[PTare]">
|
|
<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].[QuoteFull_Q].[LivPackage]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="100" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q].[LivPackageDett]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="100" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q].[RawMatCost]">
|
|
<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].[QuoteFull_Q].[RawMatExtraCost]">
|
|
<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].[QuoteFull_Q].[RawMatFullCost]">
|
|
<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].[QuoteFull_Q].[CodPackag]">
|
|
<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].[QuoteFull_Q].[PkgDesc]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="100" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q].[FSR]">
|
|
<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].[QuoteFull_Q].[ProvvCost]">
|
|
<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].[QuoteFull_Q].[EECost]">
|
|
<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].[QuoteFull_Q].[GasCost]">
|
|
<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].[QuoteFull_Q].[DiesCost]">
|
|
<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].[QuoteFull_Q].[PackCost]">
|
|
<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].[QuoteFull_Q].[TranspCost]">
|
|
<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].[QuoteFull_Q].[SellCost01]">
|
|
<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].[QuoteFull_Q].[RefCost01]">
|
|
<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].[QuoteFull_Q].[SellCost04]">
|
|
<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].[QuoteFull_Q].[RefCost04]">
|
|
<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].[QuoteFull_Q].[WSR01]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="8" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q].[MSR01]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="8" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q].[NetProd01]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="3" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q].[FC4UG01]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q].[VC4UG01]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q].[OH4UG01]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q].[SC4UG01]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q].[DSR]">
|
|
<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].[QuoteFull_Q].[NetProd04]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="3" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q].[FC4UG04]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q].[VC4UG04]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q].[FVC]">
|
|
<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].[QuoteFull_Q].[Charge]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="153" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[QuoteFull_Q_old]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[Vers]">
|
|
<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="[varchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[QuoteType]">
|
|
<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="[char]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[CodQuote]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[bigint]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[QuoteRev]">
|
|
<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].[QuoteFull_Q_old].[CodClient]">
|
|
<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].[QuoteFull_Q_old].[ClientName]">
|
|
<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>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[CodItem]">
|
|
<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].[QuoteFull_Q_old].[CodItemGroup]">
|
|
<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].[QuoteFull_Q_old].[RawMat]">
|
|
<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].[QuoteFull_Q_old].[UnitWeight]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="3" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[BatchQty]">
|
|
<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].[QuoteFull_Q_old].[CodInco]">
|
|
<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>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[KeyAM]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="101" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[Note]">
|
|
<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].[QuoteFull_Q_old].[FullCost]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[MinPrice]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[PriceOff]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[CodClientAssoc]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="100" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[ClientNameAssoc]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="100" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[ItemDescr]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="100" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[CodifProfilo]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="100" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[ClasseMerc]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="100" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[TipoDies]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="100" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[CodDiesGroup]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="100" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[DiamDies]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="100" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[HoleNumDies]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="100" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[DiesPrice]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="100" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[DiesExpLife]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="100" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[DiesEOLife]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="100" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[NumDiesInList]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="100" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[NumDiesExaust]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="100" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[CodPlant]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="100" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[KeyAMIL]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="100" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[KgTeo]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="100" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[NumSMED]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="100" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[QuotaMan]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="100" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[PRMWeight]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="100" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[PWeight]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="100" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[PTare]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="100" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[LivPackage]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="100" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[LivPackageDett]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="100" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[RawMatCost]">
|
|
<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].[QuoteFull_Q_old].[RawMatExtraCost]">
|
|
<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].[QuoteFull_Q_old].[RawMatFullCost]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="19" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[CodPackag]">
|
|
<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].[QuoteFull_Q_old].[PkgDesc]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="100" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[FSR]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="19" />
|
|
<Property Name="Precision" Value="27" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[ProvvCost]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="7" />
|
|
<Property Name="Precision" Value="38" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[EECost]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="7" />
|
|
<Property Name="Precision" Value="38" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[GasCost]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="7" />
|
|
<Property Name="Precision" Value="38" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[DiesCost]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="7" />
|
|
<Property Name="Precision" Value="38" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[PackCost]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="7" />
|
|
<Property Name="Precision" Value="38" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[TranspCost]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="7" />
|
|
<Property Name="Precision" Value="38" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[SellCost01]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="7" />
|
|
<Property Name="Precision" Value="38" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[RefCost01]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="7" />
|
|
<Property Name="Precision" Value="38" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[SellCost04]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="7" />
|
|
<Property Name="Precision" Value="38" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[RefCost04]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="7" />
|
|
<Property Name="Precision" Value="38" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[WSR01]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="8" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[MSR01]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="8" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[NetProd01]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="3" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[FC4UG01]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[VC4UG01]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[OH4UG01]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[SC4UG01]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[DSR]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="27" />
|
|
<Property Name="Precision" Value="38" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[NetProd04]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="3" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[FC4UG04]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[VC4UG04]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[FVC]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="7" />
|
|
<Property Name="Precision" Value="38" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteFull_Q_old].[Charge]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[QuoteList]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteList].[QuoteType]">
|
|
<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="[char]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="68" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteList].[CodQuote]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[bigint]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteList].[QuoteRev]">
|
|
<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="67" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteList].[CodClient]">
|
|
<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].[QuoteList].[CodItem]">
|
|
<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="60" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteList].[CodItemGroup]">
|
|
<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="61" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteList].[RawMat]">
|
|
<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].[QuoteList].[UnitWeight]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="3" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="69" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteList].[BatchQty]">
|
|
<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="59" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteList].[CodInco]">
|
|
<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>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[QuoteList].[KeyAM]">
|
|
<Property Name="ExpressionScript">
|
|
<Value><![CDATA[(([CodItem]+'-')+[RawMat])]]></Value>
|
|
</Property>
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[RawMat]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteList].[Note]">
|
|
<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>
|
|
<AttachedAnnotation Disambiguator="62" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteList].[PriceOff]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="64" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteList].[OrdDate]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[date]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteList].[OrdNum]">
|
|
<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="63" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteList].[OrdRow]">
|
|
<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="65" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteList].[OrdPrice]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="66" />
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="154" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[QuoteOC]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteOC].[QuoteType]">
|
|
<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="[char]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="54" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteOC].[CodQuote]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[bigint]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteOC].[QuoteRev]">
|
|
<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="53" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteOC].[NumEx]">
|
|
<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].[QuoteOC].[ProcessNum]">
|
|
<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="55" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteOC].[CodPlant]">
|
|
<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].[QuoteOC].[Class01]">
|
|
<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="47" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteOC].[Class02]">
|
|
<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="48" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteOC].[Class03]">
|
|
<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="49" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteOC].[Class04]">
|
|
<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="50" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteOC].[Class05]">
|
|
<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="51" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteOC].[TotQty]">
|
|
<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="57" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteOC].[TotCost]">
|
|
<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="56" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteOC].[Quota]">
|
|
<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="52" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[QuoteOC].[C4UG]">
|
|
<Property Name="ExpressionScript">
|
|
<Value><![CDATA[(([TotCost]*[Quota])/[TotQty])]]></Value>
|
|
</Property>
|
|
<Property Name="IsPersisted" Value="True" />
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[TotCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[Quota]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[TotQty]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteOC].[valid]">
|
|
<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="70" />
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="152" />
|
|
<AttachedAnnotation Disambiguator="137" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[QuoteParam]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteParam].[QuoteType]">
|
|
<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="[char]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="74" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteParam].[CodQuote]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[bigint]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteParam].[QuoteRev]">
|
|
<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="73" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteParam].[NumP]">
|
|
<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].[QuoteParam].[ProcessNum]">
|
|
<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="72" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteParam].[Descr]">
|
|
<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].[QuoteParam].[Parameter]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="100" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="71" />
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="155" />
|
|
<AttachedAnnotation Disambiguator="138" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[QuoteRM]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteRM].[QuoteType]">
|
|
<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="[char]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="78" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteRM].[CodQuote]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[bigint]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteRM].[QuoteRev]">
|
|
<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="77" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteRM].[NumRM]">
|
|
<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].[QuoteRM].[RawMat]">
|
|
<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].[QuoteRM].[RawMatCost]">
|
|
<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="79" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteRM].[RawMatExtraCost]">
|
|
<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="80" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteRM].[CodPackag]">
|
|
<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="75" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteRM].[FCR]">
|
|
<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="76" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[QuoteRM].[FYR]">
|
|
<Property Name="ExpressionScript">
|
|
<Value><![CDATA[((1)/[FCR])]]></Value>
|
|
</Property>
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[FCR]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[QuoteRM].[FSR]">
|
|
<Property Name="ExpressionScript">
|
|
<Value><![CDATA[((1)-(1)/[FCR])]]></Value>
|
|
</Property>
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[FCR]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteRM].[valid]">
|
|
<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="81" />
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="156" />
|
|
<AttachedAnnotation Disambiguator="139" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[QuoteWorkExt]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteWorkExt].[QuoteType]">
|
|
<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="[char]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="85" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteWorkExt].[CodQuote]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[bigint]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteWorkExt].[QuoteRev]">
|
|
<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="84" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteWorkExt].[NumWE]">
|
|
<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].[QuoteWorkExt].[EWC4UG]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="83" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteWorkExt].[UM]">
|
|
<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="82" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteWorkExt].[valid]">
|
|
<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="86" />
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="157" />
|
|
<AttachedAnnotation Disambiguator="140" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[QuoteWorkInt]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteWorkInt].[QuoteType]">
|
|
<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="[char]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="96" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteWorkInt].[CodQuote]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[bigint]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteWorkInt].[QuoteRev]">
|
|
<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="95" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteWorkInt].[NumWI]">
|
|
<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].[QuoteWorkInt].[ProcessNum]">
|
|
<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="103" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteWorkInt].[CodPlant]">
|
|
<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].[QuoteWorkInt].[Class01]">
|
|
<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="94" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteWorkInt].[Class02]">
|
|
<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="87" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteWorkInt].[Class03]">
|
|
<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="88" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteWorkInt].[Class04]">
|
|
<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="89" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteWorkInt].[Class05]">
|
|
<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="90" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteWorkInt].[NetProd]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="3" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="93" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteWorkInt].[WSR]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="8" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="99" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteWorkInt].[MSR]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="8" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="91" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteWorkInt].[DSR]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="8" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="92" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteWorkInt].[FC4UG]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="98" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteWorkInt].[VC4UG]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="97" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteWorkInt].[OH4UG]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="101" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteWorkInt].[SC4UG]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="102" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[QuoteWorkInt].[WYR]">
|
|
<Property Name="ExpressionScript">
|
|
<Value><![CDATA[((1)-[WSR])]]></Value>
|
|
</Property>
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[WSR]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[QuoteWorkInt].[MYR]">
|
|
<Property Name="ExpressionScript">
|
|
<Value><![CDATA[((1)-[MSR])]]></Value>
|
|
</Property>
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[MSR]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[QuoteWorkInt].[DYR]">
|
|
<Property Name="ExpressionScript">
|
|
<Value><![CDATA[((1)-[DSR])]]></Value>
|
|
</Property>
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[DSR]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[QuoteWorkInt].[WCR]">
|
|
<Property Name="ExpressionScript">
|
|
<Value><![CDATA[((1)/((1)-[WSR]))]]></Value>
|
|
</Property>
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[WSR]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[QuoteWorkInt].[MCR]">
|
|
<Property Name="ExpressionScript">
|
|
<Value><![CDATA[((1)/((1)-[MSR]))]]></Value>
|
|
</Property>
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[MSR]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[QuoteWorkInt].[DCR]">
|
|
<Property Name="ExpressionScript">
|
|
<Value><![CDATA[((1)/((1)-[DSR]))]]></Value>
|
|
</Property>
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[DSR]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[QuoteWorkInt].[valid]">
|
|
<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="100" />
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="158" />
|
|
<AttachedAnnotation Disambiguator="141" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[RawMatDet]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[RawMatDet].[RawMat]">
|
|
<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].[RawMatDet].[ProcCost]">
|
|
<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="107" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[RawMatDet].[ProcYield]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="108" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[RawMatDet].[CSR]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="104" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[RawMatDet].[SSR]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="109" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[RawMatDet].[SSVA]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="110" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[RawMatDet].[SSVR]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="111" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[RawMatDet].[ExtraMatCost]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="105" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[RawMatDet].[ExtraServCost]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="106" />
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="159" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[RevHistory]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[RevHistory].[RevType]">
|
|
<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="114" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[RevHistory].[RevNum]">
|
|
<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="113" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[RevHistory].[DateRev]">
|
|
<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].[RevHistory].[Description]">
|
|
<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="112" />
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="160" />
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_esplodiVocab]">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
BEGIN
|
|
-- SET NOCOUNT ON added to prevent extra result sets from
|
|
-- interfering with SELECT statements.
|
|
SET NOCOUNT ON;
|
|
|
|
-- svuoto vocabolario
|
|
DELETE FROM ZZZ_VocabExpl
|
|
|
|
-- carico termini ITA
|
|
INSERT INTO ZZZ_VocabExpl(Lemma,IT)
|
|
SELECT Lemma, Traduzione AS IT
|
|
FROM Vocabolario
|
|
WHERE Lingua = 'IT'
|
|
|
|
-- update termini ENG
|
|
UPDATE ZZZ_VocabExpl
|
|
SET EN=ISNULL(v.Traduzione,ve.EN)
|
|
FROM ZZZ_VocabExpl ve INNER JOIN Vocabolario v ON ve.Lemma=v.Lemma
|
|
WHERE v.Lingua='EN'
|
|
|
|
-- update termini BRA
|
|
UPDATE ZZZ_VocabExpl
|
|
SET BR=ISNULL(v.Traduzione,ve.BR)
|
|
FROM ZZZ_VocabExpl ve INNER JOIN Vocabolario v ON ve.Lemma=v.Lemma
|
|
WHERE v.Lingua='BR'
|
|
|
|
-- update termini CHN
|
|
UPDATE ZZZ_VocabExpl
|
|
SET CN=ISNULL(v.Traduzione,ve.CN)
|
|
FROM ZZZ_VocabExpl ve INNER JOIN Vocabolario v ON ve.Lemma=v.Lemma
|
|
WHERE v.Lingua='CN'
|
|
|
|
-- update termini CHN
|
|
UPDATE ZZZ_VocabExpl
|
|
SET MX=ISNULL(v.Traduzione,ve.MX)
|
|
FROM ZZZ_VocabExpl ve INNER JOIN Vocabolario v ON ve.Lemma=v.Lemma
|
|
WHERE v.Lingua='MX'
|
|
|
|
-- update termini CHN
|
|
UPDATE ZZZ_VocabExpl
|
|
SET PL=ISNULL(v.Traduzione,ve.PL)
|
|
FROM ZZZ_VocabExpl ve INNER JOIN Vocabolario v ON ve.Lemma=v.Lemma
|
|
WHERE v.Lingua='PL'
|
|
|
|
|
|
END]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry />
|
|
<Entry />
|
|
<Entry />
|
|
<Entry>
|
|
<References Name="[dbo].[Vocabolario]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Vocabolario].[Lemma]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Vocabolario].[Traduzione]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Vocabolario].[Lingua]" />
|
|
</Entry>
|
|
<Entry />
|
|
<Entry>
|
|
<References Name="[dbo].[Vocabolario].[Lemma]" />
|
|
</Entry>
|
|
<Entry />
|
|
<Entry>
|
|
<References Name="[dbo].[Vocabolario].[Traduzione]" />
|
|
</Entry>
|
|
<Entry />
|
|
<Entry>
|
|
<References Name="[dbo].[Vocabolario].[Lingua]" />
|
|
</Entry>
|
|
<Entry />
|
|
<Entry />
|
|
<Entry />
|
|
<Entry />
|
|
<Entry />
|
|
<Entry />
|
|
<Entry />
|
|
<Entry />
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="173" />
|
|
<Property Name="Length" Value="1430" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="-- =============================================
-- Author:		S.E.Locatelli
-- Create date: 2011-10-24
-- Description:	
-- =============================================
create PROCEDURE stp_esplodiVocab 
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_packageCost]">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
BEGIN
|
|
SET NOCOUNT ON;
|
|
|
|
DECLARE @trovati INT = 0,
|
|
@RMCost DECIMAL(9,3)
|
|
|
|
-- calcolo RMCost e RMWeight da tab PackageDet
|
|
SELECT @RMCost = RMCost, @RMWeight = RMWeight, @PDesc= PackagDesc
|
|
FROM PackagDet
|
|
WHERE CodPackag = @CodPackag
|
|
|
|
-- Calcolo peso e tara da selezione gerarchica
|
|
SELECT @trovati = COUNT(*)
|
|
FROM Package2ItemClient WHERE CodItem = @CodItem AND CodClient = @CodClient AND CodPackag = @CodPackag
|
|
|
|
IF(@trovati > 0)
|
|
-- primo tentativo: cerco il package dato SIA Cliente che Item che Package
|
|
BEGIN
|
|
SELECT TOP 1 @Weight = [Weight], @Tare = Tare
|
|
FROM Package2ItemClient WHERE CodItem = @CodItem AND CodClient = @CodClient AND CodPackag = @CodPackag
|
|
ORDER BY TotQta DESC
|
|
END
|
|
ELSE
|
|
-- secondo tentativo: se non lo trovo cerco per SOLO ITEM e package
|
|
BEGIN
|
|
SELECT @trovati = COUNT(*) FROM Package2Item WHERE CodItem = @CodItem AND CodPackag = @CodPackag
|
|
IF(@trovati > 0)
|
|
BEGIN
|
|
SELECT TOP 1 @Weight = [Weight], @Tare = Tare
|
|
FROM Package2Item WHERE CodItem = @CodItem AND CodPackag = @CodPackag
|
|
ORDER BY TotQta DESC
|
|
END
|
|
ELSE
|
|
BEGIN
|
|
SELECT @Weight = [Weight], @Tare = Tare
|
|
FROM Package2 WHERE CodPackag = @CodPackag
|
|
END
|
|
END
|
|
|
|
|
|
-- faccio ultimi calcoli!
|
|
SELECT @PackCost = @RMCost / @Weight, @TareStRat = (@RMWeight - @Tare) / @Weight
|
|
|
|
END]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[PackagDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[PackagDet].[RMCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_packageCost].[@RMWeight]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[PackagDet].[RMWeight]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_packageCost].[@PDesc]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[PackagDet].[PackagDesc]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[PackagDet].[CodPackag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_packageCost].[@CodPackag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2ItemClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2ItemClient].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_packageCost].[@CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2ItemClient].[CodClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_packageCost].[@CodClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2ItemClient].[CodPackag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_packageCost].[@Weight]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2ItemClient].[Weight]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_packageCost].[@Tare]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2ItemClient].[Tare]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2ItemClient].[TotQta]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2Item]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2Item].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2Item].[CodPackag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2Item].[Weight]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2Item].[Tare]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2Item].[TotQta]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2].[Weight]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2].[Tare]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2].[CodPackag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_packageCost].[@PackCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_packageCost].[@TareStRat]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_packageCost].[@CodItem]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![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>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_packageCost].[@CodClient]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![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>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_packageCost].[@CodPackag]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![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>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_packageCost].[@PDesc]">
|
|
<Property Name="IsOutput" Value="True" />
|
|
<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_packageCost].[@RMWeight]">
|
|
<Property Name="IsOutput" Value="True" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="4" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_packageCost].[@Weight]">
|
|
<Property Name="IsOutput" Value="True" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="4" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_packageCost].[@Tare]">
|
|
<Property Name="IsOutput" Value="True" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="4" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_packageCost].[@PackCost]">
|
|
<Property Name="IsOutput" Value="True" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_packageCost].[@TareStRat]">
|
|
<Property Name="IsOutput" Value="True" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="4" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</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="1947" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="

-- =============================================
-- Author:		S.E. Locatelli
-- Create date: 2014.01.15
-- Description:	stp_packageCost
-- SOSTITUITA da query + funzione
-- =============================================
CREATE PROCEDURE [dbo].[stp_packageCost] 
(
	@CodItem	NVARCHAR(50) = '', 
	@CodClient	NVARCHAR(50) = '',
	@CodPackag	NVARCHAR(50) = '',
	@PDesc		NVARCHAR(50) OUTPUT,
	@RMWeight	DECIMAL(9,4) OUTPUT,
	@Weight		DECIMAL(9,4) OUTPUT,
	@Tare		DECIMAL(9,4) OUTPUT,
	@PackCost	DECIMAL(9,6) OUTPUT,
	@TareStRat	DECIMAL(9,4) OUTPUT
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_QL_fullData]">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
SET NOCOUNT ON
|
|
|
|
EXEC stp_QL_fullDataUpdate @QuoteType
|
|
, @CodQuote
|
|
, @QuoteRev
|
|
, @DoUpdate
|
|
|
|
---- calcolo con aggiunta campi sommati...
|
|
--SELECT *
|
|
-- , FVC + RawMatFullCost AS P_FVC
|
|
-- , FC4UG01 + OH4UG01 AS CPS
|
|
-- , FC4UG01 + OH4UG01 + FVC + RawMatFullCost AS P_CPS
|
|
-- , FC4UG04 + FVC + RawMatFullCost AS P_FC4UG04
|
|
-- , FVC + FC4UG01 + OH4UG01 + FC4UG04 AS FullCost
|
|
-- , FVC + FC4UG01 + OH4UG01 + FC4UG04 + RawMatFullCost AS P_FullCost
|
|
-- , Charge * (FVC + FC4UG01 + OH4UG01 + FC4UG04) AS MinPrice
|
|
-- , Charge * (FVC + FC4UG01 + OH4UG01 + FC4UG04 + RawMatFullCost) AS P_MinPrice
|
|
-- , PriceOff + RawMatFullCost AS P_PriceOff
|
|
-- , (FVC + FC4UG01 + OH4UG01 + FC4UG04) - PriceOff AS NetMar
|
|
-- , (PriceOff - FVC) / (FC4UG01 + OH4UG01 + FC4UG04) AS FCShield
|
|
-- , (PRMWeight - Ptare) * (PriceOff + RawMatFullCost) / Pweight AS PckSur
|
|
--FROM QuoteFull_Q
|
|
--WHERE QuoteType = @QuoteType
|
|
-- AND CodQuote = @CodQuote
|
|
-- AND QuoteRev = @QuoteRev
|
|
|
|
-- calcolo con aggiunta campi sommati...
|
|
SELECT *
|
|
FROM v_QuoteFull_Q
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
|
|
RETURN]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullData].[@QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullData].[@CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullData].[@QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullData].[@DoUpdate]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_QuoteFull_Q]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_QuoteFull_Q].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_QuoteFull_Q].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_QuoteFull_Q].[QuoteRev]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_QL_fullData].[@QuoteType]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA['Q']]></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>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_QL_fullData].[@CodQuote]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[0]]></Value>
|
|
</Property>
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[bigint]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_QL_fullData].[@QuoteRev]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![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_QL_fullData].[@DoUpdate]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA['N']]></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 ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="288" />
|
|
<Property Name="Length" Value="1603" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="-- =============================================
-- STORED PROCEDURE stp_QL_fullData
--
-- Author:		Steamware
-- Create date: 2014.01.27
-- Description:	Recupera tutti i dati dalle tab QuoteList x avere schema x report/gestioen web
-- =============================================
CREATE PROCEDURE [dbo].[stp_QL_fullData] (
	@QuoteType CHAR(1) = 'Q'
	, @CodQuote BIGINT = 0
	, @QuoteRev INT = 0
	, @DoUpdate CHAR(1) = 'N' -- se si debba fare ricalcolo Y/N
	)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_QL_fullDataAll]">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
SELECT *
|
|
FROM v_QuoteFull_Q
|
|
ORDER BY CodQuote DESC
|
|
|
|
RETURN]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_QuoteFull_Q]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_QuoteFull_Q].[CodQuote]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="262" />
|
|
<Property Name="Length" Value="371" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="-- =============================================
-- STORED PROCEDURE stp_QL_fullDataAll
--
-- Author:		Steamware
-- Create date: 2014.02.07
-- Description:	Recupera tutti i dati di tutte le offerte salvate
-- =============================================
CREATE PROCEDURE dbo.stp_QL_fullDataAll

AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_QL_fullDataSearch]">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
SET NOCOUNT ON
|
|
|
|
-- calcolo con aggiunta campi sommati...
|
|
SELECT *
|
|
FROM v_QuoteFull_Q
|
|
WHERE CodClient = CASE WHEN ISNULL(@CodClient,'') = '' THEN CodClient ELSE @CodClient END
|
|
AND CodItem = CASE WHEN ISNULL(@CodItem,'') = '' THEN CodItem ELSE @CodItem END
|
|
AND RawMat = CASE WHEN ISNULL(@RawMat,'') = '' THEN RawMat ELSE @RawMat END
|
|
|
|
RETURN]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_QuoteFull_Q]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_QuoteFull_Q].[CodClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataSearch].[@CodClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_QuoteFull_Q].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataSearch].[@CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_QuoteFull_Q].[RawMat]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataSearch].[@RawMat]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_QL_fullDataSearch].[@CodClient]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![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>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_QL_fullDataSearch].[@CodItem]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![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>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_QL_fullDataSearch].[@RawMat]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![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="311" />
|
|
<Property Name="Length" Value="811" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="-- =============================================
-- STORED PROCEDURE stp_QL_fullDataSearch
--
-- Author:		Steamware
-- Create date: 2014.02.11
-- Description:	Recupera tutti i dati dalle tab QuoteList x avere schema con ricerca x cliente, item, materiale
-- =============================================
create PROCEDURE [dbo].[stp_QL_fullDataSearch] (
	@CodClient NVARCHAR(50) = ''
	, @CodItem NVARCHAR(50) = ''
	, @RawMat NVARCHAR(50) = ''
	)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_QL_fullDataUpdate]">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
SET NOCOUNT ON
|
|
|
|
/* va rifatta struttura:
|
|
*
|
|
* tab temporanea
|
|
* calcolo parametri
|
|
* salvataggio in QuoteList dei 3 valori di sunto
|
|
* calcolo dei valori aggregati e restituzione riga risultati finali
|
|
*
|
|
* ATTENZIONE NON CONTROLLA IL CAMPO VALID DEVE ESSERE SEMPRE 1 PER ESSERE VALIDO
|
|
*
|
|
*/
|
|
|
|
|
|
|
|
|
|
--DECLARE @FullCost DECIMAL(9,6)
|
|
-- , @MinPrice DECIMAL(9,6)
|
|
IF (@DoUpdate = 'Y')
|
|
BEGIN
|
|
EXEC stp_QL_update @QuoteType
|
|
, @CodQuote
|
|
, @QuoteRev
|
|
END
|
|
|
|
|
|
-- inserire in tabelle: QuoteFull_Q (quotazioni/preventivi)
|
|
-- inserire in tabelle: QuoteFull_R (resoconto di commessa)
|
|
-- inserire in tabelle: QuoteFull_S (simulazioni)
|
|
|
|
-- elimino eventuale temp table...
|
|
IF OBJECT_ID('tempdb..#TempFullData') IS NOT NULL
|
|
DROP TABLE #TempFullData;
|
|
|
|
|
|
-- Costruisco la "superselect" di tutti i valori necessari...
|
|
|
|
-- =================================================
|
|
-- PIVOT TABELLA QuoteParameter
|
|
-- =================================================
|
|
;WITH ctePivotQuoteP
|
|
AS (
|
|
SELECT *
|
|
FROM (
|
|
SELECT QuoteType
|
|
, CodQuote
|
|
, QuoteRev
|
|
, Descr
|
|
, Parameter
|
|
FROM dbo.QuoteParam
|
|
WHERE CodQuote = @CodQuote
|
|
AND QuoteType = @QuoteType
|
|
AND QuoteRev = @QuoteRev
|
|
) AS SourceTable
|
|
|
|
PIVOT(MIN(Parameter) FOR Descr IN (
|
|
ItemDescr
|
|
, CodifProfilo
|
|
, ClasseMerc
|
|
, CodClientAssoc
|
|
, ClientNameAssoc
|
|
, CodDiesGroup
|
|
, TipoDies
|
|
, DiamDies
|
|
, HoleNumDies
|
|
, NumDiesInList
|
|
, NumDiesExaust
|
|
, CodPlant
|
|
, KeyAM
|
|
, KeyAMIL
|
|
, NumSMED
|
|
, KgTeo
|
|
, KgProdotti
|
|
, QuotaMan
|
|
, DiesPrice
|
|
, DiesExpLife
|
|
, DiesEOLife
|
|
, PkgDesc
|
|
, PRMWeight
|
|
, PWeight
|
|
, PTare
|
|
, TareStRatio
|
|
, LivPackage
|
|
, LivPackageDett
|
|
)
|
|
) AS PivotData
|
|
),
|
|
-- =================================================
|
|
-- PIVOT TABELLA QuoteOC
|
|
-- =================================================
|
|
ctePivotQuoteOC AS (
|
|
SELECT *
|
|
FROM (
|
|
SELECT QuoteType
|
|
, CodQuote
|
|
, QuoteRev
|
|
, Class01 + ProcessNum AS ClassProc
|
|
, C4UG
|
|
FROM dbo.QuoteOC
|
|
WHERE CodQuote = @CodQuote
|
|
AND QuoteType = @QuoteType
|
|
AND QuoteRev = @QuoteRev
|
|
) AS SourceTable
|
|
PIVOT(SUM(C4UG) FOR ClassProc IN
|
|
( EE01
|
|
, GAS01
|
|
, MATRICE01
|
|
, VENDITA01
|
|
, ROTTAME01
|
|
, VENDITA04
|
|
, ROTTAME04
|
|
, IMBALLO04
|
|
, TRASPORTI04
|
|
, PROVVIGIONI04
|
|
)
|
|
) AS PivotData
|
|
)
|
|
-- =================================================
|
|
-- MAIN Select Tabella con INTO temp table
|
|
-- =================================================
|
|
SELECT 'V14.1' AS Vers
|
|
, QL.QuoteType
|
|
, QL.CodQuote
|
|
, QL.QuoteRev
|
|
, QL.CodClient
|
|
, CD.ClientName
|
|
, QL.CodItem
|
|
, QL.CodItemGroup
|
|
, QL.RawMat
|
|
, QL.UnitWeight
|
|
, QL.BatchQty
|
|
, QL.CodInco
|
|
, QL.KeyAM
|
|
, QL.Note
|
|
, QL.PriceOff
|
|
, pQP.CodClientAssoc
|
|
, pQP.ClientNameAssoc
|
|
, pQP.ItemDescr
|
|
, pQP.CodifProfilo
|
|
, pQP.ClasseMerc
|
|
, pQP.TipoDies
|
|
, pQP.CodDiesGroup
|
|
, pQP.DiamDies
|
|
, pQP.HoleNumDies
|
|
, pQP.DiesPrice
|
|
, pQP.DiesExpLife
|
|
, pQP.DiesEOLife
|
|
, pQP.NumDiesInList
|
|
, pQP.NumDiesExaust
|
|
, pQP.CodPlant
|
|
, pQP.KeyAMIL
|
|
, pQP.KgTeo
|
|
, pQP.NumSMED
|
|
, pQP.QuotaMan
|
|
, pQP.PRMWeight
|
|
, pQP.PWeight
|
|
, pQP.PTare
|
|
, pQP.LivPackage
|
|
, pQP.LivPackageDett
|
|
, QRM.RawMatCost
|
|
, QRM.RawMatExtraCost
|
|
, QRM.RawMatCost + QRM.RawMatExtraCost AS RawMatFullCost -- fare campo calcolato ?!?
|
|
, QRM.CodPackag
|
|
, pQP.PkgDesc
|
|
, QRM.FSR
|
|
, ISNULL(pQOC.PROVVIGIONI04, 0) AS ProvvCost
|
|
, ISNULL(pQOC.EE01, 0) AS EECost
|
|
, ISNULL(pQOC.GAS01, 0) AS GasCost
|
|
, ISNULL(pQOC.MATRICE01, 0) AS DiesCost
|
|
, ISNULL(pQOC.IMBALLO04, 0) AS PackCost
|
|
, ISNULL(pQOC.TRASPORTI04, 0) AS TranspCost
|
|
, ISNULL(pQOC.VENDITA01, 0) AS SellCost01
|
|
, ISNULL(pQOC.ROTTAME01, 0) AS RefCost01
|
|
, ISNULL(pQOC.VENDITA04, 0) AS SellCost04
|
|
, ISNULL(pQOC.ROTTAME04, 0) AS RefCost04
|
|
, QWI01.WSR AS WSR01
|
|
, QWI01.MSR AS MSR01
|
|
, QWI01.NetProd AS NetProd01
|
|
, QWI01.FC4UG AS FC4UG01
|
|
, QWI01.VC4UG AS VC4UG01
|
|
, QWI01.OH4UG AS OH4UG01
|
|
, QWI01.SC4UG AS SC4UG01
|
|
, 1 - (QWI01.DYR * QWI02.DYR * QWI03.DYR * QWI04.DYR) AS DSR
|
|
, QWI04.NetProd AS NetProd04
|
|
, QWI04.FC4UG AS FC4UG04
|
|
, QWI04.VC4UG AS VC4UG04
|
|
, ISNULL(pQOC.VENDITA01, 0) + ISNULL(pQOC.ROTTAME01, 0) + ISNULL(pQOC.VENDITA04, 0) + ISNULL(pQOC.ROTTAME04, 0) + ISNULL(pQOC.EE01, 0) + ISNULL(pQOC.GAS01, 0) + ISNULL(pQOC.MATRICE01, 0) + ISNULL(pQOC.IMBALLO04, 0) + ISNULL(pQOC.PROVVIGIONI04, 0) + ISNULL(pQOC.TRASPORTI04, 0) + QWI01.VC4UG + QWI04.VC4UG + QWI01.SC4UG AS FVC
|
|
, PD.Charge
|
|
|
|
INTO #TempFullData -- carico in temp table
|
|
FROM dbo.QuoteList AS QL
|
|
|
|
INNER JOIN dbo.ClientDet CD
|
|
ON QL.CodClient = CD.CodClient
|
|
|
|
INNER JOIN ctePivotQuoteP AS pQP
|
|
ON QL.QuoteType = pQP.QuoteType
|
|
AND QL.CodQuote = pQP.CodQuote
|
|
AND QL.QuoteRev = pQP.QuoteRev
|
|
|
|
INNER JOIN dbo.QuoteRM AS QRM
|
|
ON QL.QuoteType = QRM.QuoteType
|
|
AND QL.CodQuote = QRM.CodQuote
|
|
AND QL.QuoteRev = QRM.QuoteRev
|
|
AND QL.rawmat = QRM.RawMat
|
|
|
|
INNER JOIN ctePivotQuoteOC AS pQOC
|
|
ON QL.QuoteType = pQOC.QuoteType
|
|
AND QL.CodQuote = pQOC.CodQuote
|
|
AND QL.QuoteRev = pQOC.QuoteRev
|
|
|
|
INNER JOIN dbo.QuoteWorkInt AS QWI01
|
|
ON QL.QuoteType = QWI01.QuoteType
|
|
AND QL.CodQuote = QWI01.CodQuote
|
|
AND QL.QuoteRev = QWI01.QuoteRev
|
|
AND QWI01.ProcessNum = '01'
|
|
INNER JOIN dbo.QuoteWorkInt AS QWI02
|
|
ON QL.QuoteType = QWI02.QuoteType
|
|
AND QL.CodQuote = QWI02.CodQuote
|
|
AND QL.QuoteRev = QWI02.QuoteRev
|
|
AND QWI02.ProcessNum = '02'
|
|
INNER JOIN dbo.QuoteWorkInt AS QWI03
|
|
ON QL.QuoteType = QWI03.QuoteType
|
|
AND QL.CodQuote = QWI03.CodQuote
|
|
AND QL.QuoteRev = QWI03.QuoteRev
|
|
AND QWI03.ProcessNum = '03'
|
|
INNER JOIN dbo.QuoteWorkInt AS QWI04
|
|
ON QL.QuoteType = QWI04.QuoteType
|
|
AND QL.CodQuote = QWI04.CodQuote
|
|
AND QL.QuoteRev = QWI04.QuoteRev
|
|
AND QWI04.ProcessNum = '04'
|
|
INNER JOIN dbo.PlantsDet AS PD
|
|
ON PD.CodPlant = pQP.CodPlant
|
|
|
|
---- salvo i dati dell'ordine: FullCost, MinPrice, PriceOff (se zero lo pongo uguale a MinPrice)
|
|
--UPDATE QuoteList
|
|
--SET FullCost = @FullCost
|
|
-- , MinPrice = @MinPrice
|
|
-- , PriceOff = CASE WHEN ISNULL(PriceOff,0) = 0 THEN @MinPrice ELSE PriceOff END
|
|
--WHERE QuoteType = @QuoteType
|
|
-- AND CodQuote = @CodQuote
|
|
-- AND QuoteRev = @QuoteRev
|
|
|
|
IF @QuoteType = 'Q'
|
|
BEGIN
|
|
IF OBJECT_ID('QuoteFull_Q') IS NULL -- DROP TABLE QuoteFull_Q
|
|
SELECT * INTO dbo.QuoteFull_Q FROM #TempFullData
|
|
ELSE
|
|
BEGIN
|
|
--DELETE dbo.QuoteFull_Q WHERE QuoteType = @QuoteType AND CodQuote = @CodQuote AND QuoteRev = @QuoteRev
|
|
DELETE dbo.QuoteFull_Q WHERE QuoteType = @QuoteType AND CodQuote = @CodQuote AND QuoteRev = @QuoteRev
|
|
INSERT dbo.QuoteFull_Q
|
|
SELECT * FROM #TempFullData
|
|
END
|
|
END
|
|
|
|
ELSE IF @QuoteType = 'R'
|
|
BEGIN
|
|
IF OBJECT_ID('QuoteFull_R') IS NULL -- DROP TABLE QuoteFull_R
|
|
SELECT * INTO dbo.QuoteFull_R FROM #TempFullData
|
|
ELSE
|
|
BEGIN
|
|
INSERT dbo.QuoteFull_R
|
|
SELECT * FROM #TempFullData
|
|
END
|
|
END
|
|
|
|
ELSE IF @QuoteType = 'S'
|
|
BEGIN
|
|
IF OBJECT_ID('QuoteFull_S') IS NULL -- DROP TABLE QuoteFull_S
|
|
SELECT * INTO dbo.QuoteFull_S FROM #TempFullData
|
|
ELSE
|
|
BEGIN
|
|
INSERT dbo.QuoteFull_S
|
|
SELECT * FROM #TempFullData
|
|
END
|
|
END
|
|
|
|
-- elimino temp table...
|
|
IF OBJECT_ID('tempdb..#TempFullData') IS NOT NULL
|
|
DROP TABLE #TempFullData
|
|
|
|
RETURN]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[@DoUpdate]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[@QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[@CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[@QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam].[Descr]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam].[Parameter]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam].[Parameter]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam].[Descr]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[Class01]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[C4UG]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[C4UG]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet].[CodClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[RawMat]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[RawMat]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV3].[PivotData].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV3].[PivotData].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV3].[PivotData].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[PlantsDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[PlantsDet].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet].[ClientName]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodItemGroup]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[RawMat]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[UnitWeight]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[BatchQty]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodInco]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[KeyAM]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[Note]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[PriceOff]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[CodClientAssoc]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[ClientNameAssoc]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[ItemDescr]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[CodifProfilo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[ClasseMerc]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[TipoDies]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[CodDiesGroup]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[DiamDies]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[HoleNumDies]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[DiesPrice]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[DiesExpLife]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[DiesEOLife]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[NumDiesInList]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[NumDiesExaust]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[KeyAMIL]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[KgTeo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[NumSMED]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[QuotaMan]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[PRMWeight]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[PWeight]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[PTare]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[LivPackage]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[LivPackageDett]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[RawMatCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[RawMatExtraCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[CodPackag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[PkgDesc]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[FSR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV3].[PivotData].[PROVVIGIONI04]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV3].[PivotData].[EE01]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV3].[PivotData].[GAS01]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV3].[PivotData].[MATRICE01]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV3].[PivotData].[IMBALLO04]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV3].[PivotData].[TRASPORTI04]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV3].[PivotData].[VENDITA01]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV3].[PivotData].[ROTTAME01]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV3].[PivotData].[VENDITA04]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV3].[PivotData].[ROTTAME04]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[WSR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[MSR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[NetProd]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[FC4UG]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[VC4UG]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[OH4UG]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[SC4UG]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[DYR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[DYR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[DYR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[DYR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[NetProd]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[FC4UG]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[VC4UG]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[VC4UG]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[VC4UG]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[SC4UG]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[PlantsDet].[Charge]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry />
|
|
<Entry />
|
|
</Relationship>
|
|
<Relationship Name="DynamicObjects">
|
|
<Entry>
|
|
<Element Type="SqlDynamicColumnSource" Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData]">
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[QuoteType]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam].[QuoteType]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[CodQuote]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam].[CodQuote]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[QuoteRev]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam].[QuoteRev]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[ItemDescr]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[CodifProfilo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[ClasseMerc]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[CodClientAssoc]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[ClientNameAssoc]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[CodDiesGroup]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[TipoDies]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[DiamDies]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[HoleNumDies]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[NumDiesInList]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[NumDiesExaust]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[KeyAM]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[KeyAMIL]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[NumSMED]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[KgTeo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[KgProdotti]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[QuotaMan]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[DiesPrice]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[DiesExpLife]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[DiesEOLife]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[PkgDesc]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[PRMWeight]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[PWeight]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[PTare]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[TareStRatio]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[LivPackage]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[LivPackageDett]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlDynamicColumnSource" Name="[dbo].[stp_QL_fullDataUpdate].[CTE1].[ctePivotQuoteP]">
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[CTE1].[ctePivotQuoteP].[QuoteType]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[QuoteType]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[CTE1].[ctePivotQuoteP].[CodQuote]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[CodQuote]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[CTE1].[ctePivotQuoteP].[QuoteRev]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[QuoteRev]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[CTE1].[ctePivotQuoteP].[ItemDescr]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[ItemDescr]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[CTE1].[ctePivotQuoteP].[CodifProfilo]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[CodifProfilo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[CTE1].[ctePivotQuoteP].[ClasseMerc]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[ClasseMerc]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[CTE1].[ctePivotQuoteP].[CodClientAssoc]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[CodClientAssoc]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[CTE1].[ctePivotQuoteP].[ClientNameAssoc]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[ClientNameAssoc]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[CTE1].[ctePivotQuoteP].[CodDiesGroup]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[CodDiesGroup]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[CTE1].[ctePivotQuoteP].[TipoDies]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[TipoDies]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[CTE1].[ctePivotQuoteP].[DiamDies]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[DiamDies]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[CTE1].[ctePivotQuoteP].[HoleNumDies]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[HoleNumDies]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[CTE1].[ctePivotQuoteP].[NumDiesInList]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[NumDiesInList]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[CTE1].[ctePivotQuoteP].[NumDiesExaust]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[NumDiesExaust]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[CTE1].[ctePivotQuoteP].[CodPlant]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[CodPlant]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[CTE1].[ctePivotQuoteP].[KeyAM]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[KeyAM]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[CTE1].[ctePivotQuoteP].[KeyAMIL]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[KeyAMIL]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[CTE1].[ctePivotQuoteP].[NumSMED]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[NumSMED]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[CTE1].[ctePivotQuoteP].[KgTeo]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[KgTeo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[CTE1].[ctePivotQuoteP].[KgProdotti]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[KgProdotti]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[CTE1].[ctePivotQuoteP].[QuotaMan]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[QuotaMan]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[CTE1].[ctePivotQuoteP].[DiesPrice]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[DiesPrice]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[CTE1].[ctePivotQuoteP].[DiesExpLife]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[DiesExpLife]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[CTE1].[ctePivotQuoteP].[DiesEOLife]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[DiesEOLife]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[CTE1].[ctePivotQuoteP].[PkgDesc]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[PkgDesc]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[CTE1].[ctePivotQuoteP].[PRMWeight]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[PRMWeight]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[CTE1].[ctePivotQuoteP].[PWeight]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[PWeight]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[CTE1].[ctePivotQuoteP].[PTare]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[PTare]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[CTE1].[ctePivotQuoteP].[TareStRatio]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[TareStRatio]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[CTE1].[ctePivotQuoteP].[LivPackage]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[LivPackage]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[CTE1].[ctePivotQuoteP].[LivPackageDett]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[LivPackageDett]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlDynamicColumnSource" Name="[dbo].[stp_QL_fullDataUpdate].[PV3].[PivotData]">
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[PV3].[PivotData].[QuoteType]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[QuoteType]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[PV3].[PivotData].[CodQuote]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[CodQuote]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[PV3].[PivotData].[QuoteRev]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[QuoteRev]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[PV3].[PivotData].[EE01]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[PV3].[PivotData].[GAS01]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[PV3].[PivotData].[MATRICE01]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[PV3].[PivotData].[VENDITA01]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[PV3].[PivotData].[ROTTAME01]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[PV3].[PivotData].[VENDITA04]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[PV3].[PivotData].[ROTTAME04]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[PV3].[PivotData].[IMBALLO04]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[PV3].[PivotData].[TRASPORTI04]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[PV3].[PivotData].[PROVVIGIONI04]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlDynamicColumnSource" Name="[dbo].[stp_QL_fullDataUpdate].[CTE1].[ctePivotQuoteOC]">
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[CTE1].[ctePivotQuoteOC].[QuoteType]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV3].[PivotData].[QuoteType]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[CTE1].[ctePivotQuoteOC].[CodQuote]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV3].[PivotData].[CodQuote]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[CTE1].[ctePivotQuoteOC].[QuoteRev]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV3].[PivotData].[QuoteRev]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[CTE1].[ctePivotQuoteOC].[EE01]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV3].[PivotData].[EE01]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[CTE1].[ctePivotQuoteOC].[GAS01]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV3].[PivotData].[GAS01]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[CTE1].[ctePivotQuoteOC].[MATRICE01]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV3].[PivotData].[MATRICE01]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[CTE1].[ctePivotQuoteOC].[VENDITA01]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV3].[PivotData].[VENDITA01]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[CTE1].[ctePivotQuoteOC].[ROTTAME01]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV3].[PivotData].[ROTTAME01]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[CTE1].[ctePivotQuoteOC].[VENDITA04]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV3].[PivotData].[VENDITA04]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[CTE1].[ctePivotQuoteOC].[ROTTAME04]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV3].[PivotData].[ROTTAME04]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[CTE1].[ctePivotQuoteOC].[IMBALLO04]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV3].[PivotData].[IMBALLO04]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[CTE1].[ctePivotQuoteOC].[TRASPORTI04]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV3].[PivotData].[TRASPORTI04]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[CTE1].[ctePivotQuoteOC].[PROVVIGIONI04]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV3].[PivotData].[PROVVIGIONI04]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlDynamicColumnSource" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData]">
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[Vers]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[QuoteType]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteType]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[CodQuote]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodQuote]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[QuoteRev]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteRev]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[CodClient]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodClient]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[ClientName]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet].[ClientName]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[CodItem]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodItem]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[CodItemGroup]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodItemGroup]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[RawMat]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[RawMat]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[UnitWeight]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[UnitWeight]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[BatchQty]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[BatchQty]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[CodInco]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodInco]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[KeyAM]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[KeyAM]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[Note]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[Note]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[PriceOff]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[PriceOff]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[CodClientAssoc]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[CodClientAssoc]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[ClientNameAssoc]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[ClientNameAssoc]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[ItemDescr]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[ItemDescr]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[CodifProfilo]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[CodifProfilo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[ClasseMerc]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[ClasseMerc]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[TipoDies]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[TipoDies]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[CodDiesGroup]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[CodDiesGroup]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[DiamDies]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[DiamDies]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[HoleNumDies]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[HoleNumDies]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[DiesPrice]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[DiesPrice]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[DiesExpLife]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[DiesExpLife]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[DiesEOLife]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[DiesEOLife]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[NumDiesInList]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[NumDiesInList]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[NumDiesExaust]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[NumDiesExaust]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[CodPlant]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[CodPlant]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[KeyAMIL]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[KeyAMIL]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[KgTeo]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[KgTeo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[NumSMED]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[NumSMED]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[QuotaMan]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[QuotaMan]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[PRMWeight]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[PRMWeight]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[PWeight]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[PWeight]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[PTare]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[PTare]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[LivPackage]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[LivPackage]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[LivPackageDett]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[LivPackageDett]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[RawMatCost]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[RawMatCost]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[RawMatExtraCost]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[RawMatExtraCost]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[RawMatFullCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[CodPackag]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[CodPackag]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[PkgDesc]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate].[PV2].[PivotData].[PkgDesc]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[FSR]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[FSR]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[ProvvCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[EECost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[GasCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[DiesCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[PackCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[TranspCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[SellCost01]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[RefCost01]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[SellCost04]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[RefCost04]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[WSR01]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[WSR]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[MSR01]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[MSR]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[NetProd01]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[NetProd]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[FC4UG01]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[FC4UG]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[VC4UG01]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[VC4UG]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[OH4UG01]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[OH4UG]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[SC4UG01]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[SC4UG]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[DSR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[NetProd04]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[NetProd]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[FC4UG04]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[FC4UG]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[VC4UG04]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[VC4UG]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[FVC]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_fullDataUpdate].[#TempFullData].[Charge]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[PlantsDet].[Charge]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_QL_fullDataUpdate].[@QuoteType]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA['Q']]></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>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_QL_fullDataUpdate].[@CodQuote]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[0]]></Value>
|
|
</Property>
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[bigint]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_QL_fullDataUpdate].[@QuoteRev]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![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_QL_fullDataUpdate].[@DoUpdate]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA['N']]></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 ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="296" />
|
|
<Property Name="Length" Value="8407" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="
-- =============================================
-- STORED PROCEDURE stp_QL_fullDataUpdate
--
-- Author:		Steamware
-- Create date: 2014.01.27
-- Description:	Recupera tutti i dati dalle tab QuoteList x avere schema x report/gestioen web
-- =============================================
CREATE PROCEDURE [dbo].[stp_QL_fullDataUpdate] (
	@QuoteType CHAR(1) = 'Q'
	, @CodQuote BIGINT = 0
	, @QuoteRev INT = 0
	, @DoUpdate CHAR(1) = 'N' -- se si debba fare ricalcolo Y/N
	)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_QL_getByKey]">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
|
|
SELECT *
|
|
FROM QuoteList
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
|
|
RETURN]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_getByKey].[@QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_getByKey].[@CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_getByKey].[@QuoteRev]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_QL_getByKey].[@QuoteType]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA['Q']]></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>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_QL_getByKey].[@CodQuote]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[0]]></Value>
|
|
</Property>
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[bigint]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_QL_getByKey].[@QuoteRev]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![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="185" />
|
|
<Property Name="Length" Value="426" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="-- =============================================
-- Author:		Steamware
-- Create date: 2014.02.23
-- Description:	recupera riga QL
-- =============================================
CREATE PROCEDURE dbo.stp_QL_getByKey 
(
	@QuoteType CHAR(1) = 'Q'
	,@CodQuote BIGINT = 0
	,@QuoteRev INT = 0
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_QL_insNew]">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
|
|
-- variabili
|
|
DECLARE @CodQuote BIGINT = 0,
|
|
@QuoteRev INT = 0
|
|
|
|
BEGIN TRAN
|
|
|
|
-- calcolo nuovo record odierno
|
|
SELECT @CodQuote = dbo.f_getNewCodQuote()
|
|
|
|
-- inserisco riga in QuoteList
|
|
INSERT INTO QuoteList(QuoteType, CodQuote, QuoteRev, CodClient, CodItem, UnitWeight, CodItemGroup, RawMat, CodInco, Note)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, @CodClient, CodItem, UnitWeight, CodItemGroup, @RawMat, @CodInco, @Note
|
|
FROM ItemDet
|
|
WHERE CodItem = @CodItem
|
|
|
|
-- ora inserisco in QuoteRM
|
|
INSERT INTO QuoteRM(QuoteType, CodQuote, QuoteRev, NumRM, RawMat, RawMatCost, RawMatExtraCost)
|
|
VALUES (@QuoteType, @CodQuote, @QuoteRev, 1, @RawMat, @RawMatCost, @RawMatExtraCost)
|
|
|
|
COMMIT TRAN
|
|
|
|
-- ricalcolo!
|
|
EXEC stp_QL_fullDataUpdate @QuoteType
|
|
,@CodQuote
|
|
,@QuoteRev
|
|
,'Y'
|
|
|
|
-- seleziono intera riga!
|
|
|
|
SELECT *
|
|
FROM QuoteList
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
|
|
RETURN]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[bigint]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_getNewCodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[UnitWeight]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodItemGroup]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[RawMat]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodInco]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[Note]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_insNew].[@QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_insNew].[@CodClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[UnitWeight]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[CodItemGroup]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_insNew].[@RawMat]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_insNew].[@CodInco]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_insNew].[@Note]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_insNew].[@CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[NumRM]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[RawMat]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[RawMatCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[RawMatExtraCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_insNew].[@RawMatCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_insNew].[@RawMatExtraCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_QL_insNew].[@QuoteType]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA['Q']]></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>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_QL_insNew].[@CodClient]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![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>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_QL_insNew].[@CodItem]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![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>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_QL_insNew].[@RawMat]">
|
|
<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_QL_insNew].[@RawMatCost]">
|
|
<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_QL_insNew].[@RawMatExtraCost]">
|
|
<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_QL_insNew].[@BatchQty]">
|
|
<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_QL_insNew].[@CodInco]">
|
|
<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>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_QL_insNew].[@Note]">
|
|
<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="204" />
|
|
<Property Name="Length" Value="1559" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="-- =============================================
-- Author:		Steamware
-- Create date: 2014.02.21
-- Description:	inserisce un nuovo record QuoteList
-- =============================================
CREATE PROCEDURE [dbo].[stp_QL_insNew]
(
	@QuoteType			CHAR(1) = 'Q',
--	@CodQuote			BIGINT	= 0,
--	@QuoteRev			INT		= 0,
	@CodClient			NVARCHAR(50) = '',
	@CodItem			NVARCHAR(50) = '',
	@RawMat				NVARCHAR(50),
	@RawMatCost			DECIMAL(18, 6),
	@RawMatExtraCost	DECIMAL(18, 6),
	@BatchQty			INT,
	@CodInco			NVARCHAR(5),
	@Note				NVARCHAR(2500)
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_QL_update]">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
BEGIN
|
|
|
|
SET NOCOUNT ON;
|
|
|
|
-- dichiaro valori da recuperare
|
|
DECLARE @strTemp NVARCHAR(50) = '' --stringa temporanea x variabili "locali"
|
|
|
|
DECLARE @valid BIT
|
|
DECLARE @CodDiesGroup NVARCHAR(50)
|
|
DECLARE @CodPlant NVARCHAR(50)
|
|
DECLARE @CodPlantFix NVARCHAR(50) = ''
|
|
DECLARE @HoleNum INT
|
|
-- ITEM
|
|
DECLARE @CodItem NVARCHAR(50) = '' --cod item
|
|
DECLARE @ItemDescr NVARCHAR(50) = '' -- descrizione item
|
|
DECLARE @CodifProfilo NVARCHAR(50) = '' -- Cod. Profilo
|
|
DECLARE @ClasseMerc NVARCHAR(50) = ''
|
|
DECLARE @CodClientAssoc NVARCHAR(50) = ''
|
|
|
|
DECLARE @KeyAM NVARCHAR(50) = ''
|
|
DECLARE @KeyAMI NVARCHAR(50) = ''
|
|
DECLARE @KeyAMIL NVARCHAR(50) = ''
|
|
DECLARE @NumSMED INT = 0 -- numero cambi
|
|
DECLARE @KgTeo DECIMAL(18, 6) = 0 -- kg totali
|
|
DECLARE @RawMat NVARCHAR(50)
|
|
DECLARE @ProdTeo DECIMAL(18,6)
|
|
DECLARE @ScTec DECIMAL(18,6)
|
|
DECLARE @BatchQty INT
|
|
DECLARE @MAC_SC DECIMAL(18,6) -- Messa a cento scarto cesoia
|
|
DECLARE @MAC_ST DECIMAL(18,6) -- Messa a cento scarto tecnico
|
|
DECLARE @MAC_IN DECIMAL(18,6) -- Messa a cento difettosità all'incestatura
|
|
DECLARE @MAC_IM DECIMAL(18,6) -- Messa a cento difettosità all'imballo
|
|
DECLARE @SSR DECIMAL(9,6) -- percentuale vendita rottame
|
|
DECLARE @DiesPrice DECIMAL(9,3) -- prezzo matrice
|
|
DECLARE @DiesEOLife DECIMAL(9,2) -- durata matrice
|
|
DECLARE @DiesExpLife DECIMAL(9,2) -- durata matrice
|
|
DECLARE @DiesPriceLife DECIMAL(18,6) -- Price/Life matrice
|
|
DECLARE @OCF01 DECIMAL(18,6) = 0 -- altri costi di fase 01
|
|
DECLARE @VCF01 DECIMAL(18,6) = 0 -- costi variabili di fase 01
|
|
DECLARE @VCF04 DECIMAL(18,6) = 0 -- costi variabili di fase 04
|
|
DECLARE @SellCostF01 DECIMAL(18,6) = 0 -- costo vendita fase 01
|
|
DECLARE @SellCostF04 DECIMAL(18,6) = 0 -- costo vendita fase 04
|
|
DECLARE @RefCostF01 DECIMAL(18,6) = 0 -- costo rifusione fase 01
|
|
DECLARE @RefCostF04 DECIMAL(18,6) = 0 -- costo rifusione fase 04
|
|
-- IMBALLO
|
|
DECLARE @CodPackag NVARCHAR(50) = '0' -- codice dell'imballo
|
|
DECLARE @CodClient NVARCHAR(50) = '' -- codice cliente
|
|
DECLARE @NumImb DECIMAL(9,6) = 0 -- num imballatori
|
|
DECLARE @PkgDesc NVARCHAR(50) = '' -- descrizione imballo
|
|
DECLARE @PRMWeight DECIMAL(9,4) = 0 -- peso dell'imballo
|
|
DECLARE @PWeight DECIMAL(9,4) = 0 -- peso del pacco
|
|
DECLARE @PTare DECIMAL(9,4) = 0 -- media delal tara di imballo dichiarata
|
|
DECLARE @PCost DECIMAL(9,6) = 0 -- costo unitario dell'imballo (al kg)
|
|
DECLARE @PTareStRatio DECIMAL(9,4) = 0 -- coefficiente di recupero tara/prodotto
|
|
DECLARE @PTotQta DECIMAL(18,3) = 0 -- Qta Kg Tot Imballati
|
|
DECLARE @PDurata DECIMAL(18,6) = 0 -- Tempo d'imballaggio
|
|
DECLARE @PLiv NVARCHAR(50) = '' -- Livello Search dati Imballo
|
|
DECLARE @PLivDett NVARCHAR(50) = '' -- Key Livello Search Dati Imballo
|
|
-- TRASPORTI
|
|
DECLARE @TranspZone NVARCHAR(50) = '' -- codice ZONA
|
|
DECLARE @TranspCost DECIMAL(9,6) -- costo di trasporto
|
|
DECLARE @HasTC INT
|
|
|
|
-- PROVVIGIONI
|
|
DECLARE @Provvig DECIMAL(9,6) -- provvigione agente
|
|
|
|
-- default: validità è true!
|
|
SET @valid = 1
|
|
|
|
-- =================================================
|
|
-- CREAZIONE TEMP TABLE
|
|
-- =================================================
|
|
|
|
-- elimino e ricreo #QuoteParam temp table...
|
|
IF OBJECT_ID('tempdb..#QuoteParam') IS NOT NULL
|
|
DROP TABLE #QuoteParam
|
|
|
|
CREATE TABLE #Quoteparam
|
|
(
|
|
Quotetype CHAR( 1 ) NOT NULL,
|
|
Codquote BIGINT NOT NULL,
|
|
Quoterev INT NOT NULL,
|
|
Nump INT IDENTITY( 1,1 ) NOT NULL,
|
|
Processnum NVARCHAR( 50 ) NOT NULL,
|
|
Descr NVARCHAR( 50 ) NOT NULL,
|
|
Parameter NVARCHAR( 100 ) NOT NULL,
|
|
--PRIMARY KEY
|
|
-- ( NumP ASC, QuoteType ASC, CodQuote ASC, QuoteRev ASC ) WITH (PAD_INDEX = ON, FILLFACTOR = 90 )
|
|
);
|
|
|
|
-- elimino e ricreo #QuoteParam temp table...
|
|
IF OBJECT_ID('tempdb..#QuoteWorkInt') IS NOT NULL
|
|
DROP TABLE #QuoteWorkInt
|
|
|
|
CREATE TABLE #QuoteWorkInt
|
|
(
|
|
QuoteType CHAR(1) NOT NULL,
|
|
CodQuote BIGINT NOT NULL,
|
|
QuoteRev INT NOT NULL,
|
|
NumWI INT IDENTITY(1,1) NOT NULL,
|
|
ProcessNum NVARCHAR(50) NOT NULL,
|
|
CodPlant NVARCHAR(50) NOT NULL,
|
|
Class01 NVARCHAR(50) NOT NULL DEFAULT (''),
|
|
Class02 NVARCHAR(50) NOT NULL DEFAULT (''),
|
|
Class03 NVARCHAR(50) NOT NULL DEFAULT (''),
|
|
Class04 NVARCHAR(50) NOT NULL DEFAULT (''),
|
|
Class05 NVARCHAR(50) NOT NULL DEFAULT (''),
|
|
NetProd DECIMAL(9, 3) NOT NULL DEFAULT ((0)),
|
|
WSR DECIMAL(9, 8) NOT NULL DEFAULT ((0)),
|
|
MSR DECIMAL(9, 8) NOT NULL DEFAULT ((0)),
|
|
DSR DECIMAL(9, 8) NOT NULL DEFAULT ((0)),
|
|
FC4UG DECIMAL(9, 6) NOT NULL DEFAULT ((0)),
|
|
VC4UG DECIMAL(9, 6) NOT NULL DEFAULT ((0)),
|
|
OH4UG DECIMAL(9, 6) NOT NULL DEFAULT ((0)),
|
|
SC4UG DECIMAL(9, 6) NOT NULL DEFAULT ((0)),
|
|
-- campi calcolati
|
|
WYR AS ((1)-WSR),
|
|
MYR AS ((1)-MSR),
|
|
DYR AS ((1)-DSR),
|
|
WCR AS ((1)/((1)-WSR)),
|
|
MCR AS ((1)/((1)-MSR)),
|
|
DCR AS ((1)/((1)-DSR)),
|
|
valid BIT NOT NULL DEFAULT((1)),
|
|
)
|
|
|
|
-- elimino e ricreo #QuoteParam temp table...
|
|
IF OBJECT_ID('tempdb..#QuoteOC') IS NOT NULL
|
|
DROP TABLE #QuoteOC
|
|
|
|
CREATE TABLE #QuoteOC
|
|
(
|
|
QuoteType CHAR(1) NOT NULL,
|
|
CodQuote BIGINT NOT NULL,
|
|
QuoteRev INT NOT NULL,
|
|
NumEx INT IDENTITY(1,1) NOT NULL,
|
|
ProcessNum NVARCHAR(50) NOT NULL,
|
|
CodPlant NVARCHAR(50) NOT NULL,
|
|
Class01 NVARCHAR(50) NOT NULL DEFAULT (''),
|
|
Class02 NVARCHAR(50) NOT NULL DEFAULT (''),
|
|
Class03 NVARCHAR(50) NOT NULL DEFAULT (''),
|
|
Class04 NVARCHAR(50) NOT NULL DEFAULT (''),
|
|
Class05 NVARCHAR(50) NOT NULL DEFAULT (''),
|
|
TotQty DECIMAL(18, 6) NOT NULL DEFAULT ((1)),
|
|
TotCost DECIMAL(18, 6) NOT NULL DEFAULT ((0)),
|
|
Quota DECIMAL(18, 6) NOT NULL DEFAULT ((1)),
|
|
C4UG AS ((TotCost*Quota)/TotQty),
|
|
valid BIT NOT NULL DEFAULT ((1))
|
|
)
|
|
|
|
-- ===================================
|
|
-- INIZIO TRANSAZIONE
|
|
-- ===================================
|
|
SET XACT_ABORT ON;
|
|
BEGIN TRAN
|
|
|
|
---------------------------------------
|
|
-- svuotamento iniziale
|
|
---------------------------------------
|
|
|
|
-- elimino quote PARAMETRI!
|
|
DELETE FROM dbo.QuoteParam
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
|
|
-- elimino lavorazioni ESTERNE!
|
|
DELETE FROM dbo.QuoteWorkExt
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
|
|
-- elimino lavorazioni INTERNE
|
|
DELETE FROM dbo.QuoteWorkInt
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
|
|
-- elimino OtherCosts
|
|
DELETE FROM dbo.QuoteOC
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
|
|
-- se ci sono eccezioni nella tab dell'anagrafico articoli imposto il codPlant desiderato
|
|
SET @CodPlantFix = ISNULL ( ( SELECT id.CodPlant FROM dbo.ItemDet id
|
|
INNER JOIN dbo.QuoteList ql ON id.CodItem = ql.CodItem
|
|
WHERE ql.QuoteType = @QuoteType
|
|
AND ql.CodQuote = @CodQuote
|
|
AND ql.QuoteRev = @QuoteRev ), '' )
|
|
|
|
-- recupero da dati dell'offerta il valore del cliente
|
|
SELECT @CodClient = CodClient
|
|
FROM dbo.QuoteList
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
|
|
-- recupero dati!!
|
|
SELECT TOP 1 @CodItem = ql.CodItem
|
|
, @CodDiesGroup = tps.CodDiesGroup
|
|
, @CodPlant = CASE WHEN @CodPlantFix <> '' THEN @CodPlantFix ELSE tps.CodPlant END
|
|
, @HoleNum = tps.HoleNum
|
|
, @KeyAM = ql.KeyAM
|
|
, @KeyAMI = ql.KeyAM + '-' + ISNULL(@CodPlant,'0000')
|
|
, @KeyAMIL = ql.KeyAM + '-' + ISNULL(@CodPlant,'0000') + '-' + CAST(ISNULL(tps.HoleNum,0) AS NVARCHAR(10))
|
|
, @ProdTeo = tps.ProdTeo
|
|
, @ScTec = tps.ScTec
|
|
, @KgTeo = tps.KgTeo
|
|
, @NumSMED = tps.NumSMED
|
|
, @RawMat = ql.RawMat
|
|
, @BatchQty = ql.BatchQty
|
|
, @ItemDescr = i.ItemDescr
|
|
, @CodifProfilo = i.Class01
|
|
, @ClasseMerc = i.Class02
|
|
, @CodClientAssoc = i.Class03
|
|
|
|
FROM dbo.QuoteList ql
|
|
INNER JOIN dbo.TabProdSc tps ON ql.KeyAM = tps.KeyAM
|
|
INNER JOIN dbo.ItemDet i ON ql.CodItem = i.CodItem
|
|
WHERE ql.QuoteType = @QuoteType
|
|
AND ql.CodQuote = @CodQuote
|
|
AND ql.QuoteRev = @QuoteRev
|
|
ORDER BY tps.KgTeo DESC
|
|
|
|
-- =================================================================================
|
|
-- recupero dall'offerta il valore del PACKAGE/IMBALLO scelto e i dati relativi
|
|
-- Secondo la logica Client-Item-Package ( vedi funzione )
|
|
-- =================================================================================
|
|
-- SET @CodPackag = ( SELECT dbo.f_getCodPackag( @CodItem , @CodClient ) )
|
|
-- attenzione è una function tabellare
|
|
SELECT @CodPackag = CodPackag, @PTotQta = TotQta, @PWeight = Weight, @PTare = Tare,
|
|
@NumImb = NumImb, @PDurata = Durata, @PLiv = LivPackag , @PLivDett = LivPackagDet
|
|
FROM f_getDataCodPackag ( @CodItem, @CodClient)
|
|
|
|
-- e aggiorno il CodPackage in QuoteRM
|
|
UPDATE dbo.QuoteRM
|
|
SET CodPackag = @CodPackag
|
|
FROM dbo.QuoteRM
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
VALUES ( @QuoteType, @CodQuote, @QuoteRev, '01', 'ItemDescr', @ItemDescr )
|
|
, ( @QuoteType, @CodQuote, @QuoteRev, '01', 'CodifProfilo', @CodifProfilo )
|
|
, ( @QuoteType, @CodQuote, @QuoteRev, '01', 'ClasseMerc', @ClasseMerc )
|
|
, ( @QuoteType, @CodQuote, @QuoteRev, '01', 'CodClientAssoc', @CodClientAssoc )
|
|
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'ClientNameAssoc', ClientDet.ClientName
|
|
FROM dbo.ClientDet
|
|
WHERE ClientDet.CodClient = @CodClientAssoc
|
|
|
|
-- INFORMAZIONI su MATRICE
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
VALUES (@QuoteType, @CodQuote, @QuoteRev, '01', 'CodDiesGroup', @CodDiesGroup )
|
|
|
|
SET @strTemp = dbo.f_getSubstring(@CodDiesGroup, '-', 1)
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
VALUES (@QuoteType, @CodQuote, @QuoteRev, '01', 'TipoDies', @strTemp)
|
|
|
|
SET @strTemp = dbo.f_getSubstring(@CodDiesGroup, '-', 2)
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
VALUES (@QuoteType, @CodQuote, @QuoteRev, '01', 'DiamDies', @strTemp)
|
|
|
|
SET @strTemp = dbo.f_getSubstring(@CodDiesGroup, '-', 3)
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
VALUES (@QuoteType, @CodQuote, @QuoteRev, '01', 'HoleNumDies', @strTemp)
|
|
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'NumDiesInList', COUNT(CodDies)
|
|
FROM dbo.DiesDet
|
|
WHERE CodDiesGroup = @CodDiesGroup AND CodItem = @CodItem
|
|
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'NumDiesExaust', COUNT(CodDies)
|
|
FROM dbo.DiesDet
|
|
WHERE CodDiesGroup = @CodDiesGroup AND Active = 0
|
|
|
|
-- inserisco parametri calcolati x lavorazione estruzione
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
VALUES ( @QuoteType, @CodQuote, @QuoteRev, '01', 'CodPlant' , @CodPlant )
|
|
,( @QuoteType, @CodQuote, @QuoteRev, '01', 'KeyAM' , @KeyAM )
|
|
,( @QuoteType, @CodQuote, @QuoteRev, '01', 'KeyAMIL' , @KeyAMIL )
|
|
,( @QuoteType, @CodQuote, @QuoteRev, '01', 'NumSMED' , CONVERT(NVARCHAR(100) , @NumSMED ) )
|
|
,( @QuoteType, @CodQuote, @QuoteRev, '01', 'KgTeo' , CONVERT(NVARCHAR(100) , @KgTeo ) )
|
|
|
|
-- inserisco lavorazione estrusione!
|
|
INSERT INTO #QuoteWorkInt (QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, Class03, NetProd, WSR)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '01', @CodPlant, @KeyAM, @KeyAMIL, @RawMat, @ProdTeo, @ScTec
|
|
|
|
INSERT INTO #QuoteParam (QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'KgProdotti', SUM(KgTeo)
|
|
FROM dbo.QuoteList ql
|
|
INNER JOIN dbo.TabProdSc tps ON ql.KeyAM = tps.KeyAM
|
|
WHERE ql.QuoteType = @QuoteType
|
|
AND ql.CodQuote = @CodQuote
|
|
AND ql.QuoteRev = @QuoteRev
|
|
|
|
-- inserisco dati mancanti di MSR/CSR (scarto cesoia x estrusione) - DSR è NULLO x estrusione!
|
|
UPDATE #QuoteWorkInt
|
|
SET MSR = rmd.CSR
|
|
FROM #QuoteWorkInt qwi
|
|
INNER JOIN dbo.RawMatDet rmd ON qwi.Class03 = rmd.RawMat
|
|
|
|
-- calcolo i costi legati alla fase estrusione!
|
|
UPDATE #QuoteWorkInt
|
|
SET FC4UG = (cp.FC * cp.QuotaPlantStd / cp.QuotaManStd) / qwi.NetProd
|
|
, VC4UG = (cp.VC * cp.QuotaPlantStd / cp.QuotaManStd) / qwi.NetProd
|
|
, OH4UG = (cp.OH * cp.QuotaPlantStd / cp.QuotaManStd) / qwi.NetProd
|
|
, SC4UG = cp.SC / ql.BatchQty
|
|
FROM #QuoteWorkInt qwi
|
|
INNER JOIN dbo.Cost2Plant cp ON qwi.CodPlant = cp.CodPlant AND qwi.ProcessNum = cp.ProcessNum
|
|
INNER JOIN dbo.QuoteList ql ON qwi.QuoteType = ql.QuoteType AND qwi.CodQuote = ql.CodQuote AND qwi.QuoteRev = ql.QuoteRev
|
|
WHERE qwi.ProcessNum = '01'
|
|
|
|
-- inserisco lavorazione incestatura!
|
|
INSERT INTO #QuoteWorkInt (QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, Class03)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '02', @CodPlant, @KeyAM, @KeyAMI, @RawMat
|
|
|
|
-- inserisco dati mancanti di DSR x incestatura come 1 - OUT/IN
|
|
UPDATE #QuoteWorkInt
|
|
SET DSR = 1 - CAST(td.TotOUT AS DECIMAL(18,6))/CAST(td.TotIN AS DECIMAL(18,6))
|
|
FROM #QuoteWorkInt qwi
|
|
INNER JOIN dbo.TabDifett td ON qwi.Class02 = td.KeyAMI AND qwi.ProcessNum = td.ProcessNum
|
|
WHERE qwi.ProcessNum = '02' -- solo incestatura
|
|
|
|
-- inserisco lavorazione FORNO!
|
|
INSERT INTO #QuoteWorkInt(QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, Class03)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '03', @CodPlant, @KeyAM, @KeyAMI, @RawMat
|
|
|
|
-- inserisco lavorazione imballo!
|
|
INSERT INTO #QuoteWorkInt(QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, Class03, Class04, Class05)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '04', @CodPlant, @KeyAM, @KeyAMIL, @RawMat, @CodItem, @KeyAMI
|
|
|
|
UPDATE qwi
|
|
SET NetProd = CASE @PDurata WHEN 0 THEN 0 ELSE @PTotQta / @PDurata END
|
|
FROM #QuoteWorkInt AS qwi
|
|
-- INNER JOIN dbo.TabImbArt ti ON qwi.Class04 = ti.KeyA
|
|
WHERE qwi.ProcessNum = '04' -- solo imballo
|
|
|
|
-- parametro num imballatori
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '04', 'QuotaMan', @NumImb
|
|
|
|
-- parametro Livello search package/imballo
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '04', 'LivPackage', @PLiv
|
|
|
|
-- parametro Livello search package/imballo
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '04', 'LivPackageDett', @PLivDett
|
|
|
|
-- calcolo i costi legati alla fase di imballo!
|
|
UPDATE #QuoteWorkInt
|
|
SET FC4UG = ( ( cp.FC * cp.QuotaPlantStd ) * ( @NumImb / cp.QuotaManStd ) ) / qwi.NetProd
|
|
, VC4UG = ( ( cp.VC * cp.QuotaPlantStd ) * ( @NumImb / cp.QuotaManStd ) ) / qwi.NetProd
|
|
, OH4UG = ( ( cp.OH * cp.QuotaPlantStd ) * ( @NumImb / cp.QuotaManStd ) ) / qwi.NetProd
|
|
, SC4UG = cp.SC / ql.BatchQty
|
|
FROM #QuoteWorkInt qwi
|
|
INNER JOIN dbo.Cost2Plant cp ON qwi.CodPlant = cp.CodPlant AND qwi.ProcessNum = cp.ProcessNum
|
|
INNER JOIN dbo.QuoteList ql ON qwi.QuoteType = ql.QuoteType AND qwi.CodQuote = ql.CodQuote AND qwi.QuoteRev = ql.QuoteRev
|
|
WHERE qwi.ProcessNum = '04' -- solo imballo
|
|
|
|
-- inserisco dati mancanti di DSR x imballo come 1 - OUT/IN
|
|
UPDATE #QuoteWorkInt
|
|
SET DSR = 1 - CAST(td.TotOUT AS DECIMAL(18,6))/CAST(td.TotIN AS DECIMAL(18,6))
|
|
FROM #QuoteWorkInt qwi
|
|
INNER JOIN dbo.TabDifett td ON qwi.Class05 = td.KeyAMI AND qwi.ProcessNum = td.ProcessNum
|
|
WHERE qwi.ProcessNum = '04' -- solo imballo
|
|
|
|
-- recupero le MAC fase 01
|
|
SELECT @MAC_SC = MCR
|
|
,@MAC_ST = WCR
|
|
FROM #QuoteWorkInt
|
|
WHERE ProcessNum = '01'
|
|
|
|
-- recupero le MAC fase 02
|
|
SELECT @MAC_IN = DCR
|
|
FROM #QuoteWorkInt
|
|
WHERE ProcessNum = '02'
|
|
|
|
-- recupero le MAC fase 04
|
|
SELECT @MAC_IM = DCR
|
|
FROM #QuoteWorkInt
|
|
WHERE ProcessNum = '04'
|
|
|
|
-- calcolo percentuale vendita rottame
|
|
SELECT @SSR = SSR
|
|
FROM dbo.RawMatDet
|
|
WHERE RawMat = @RawMat
|
|
|
|
|
|
-- NOTA : la transazione posso probabilmente iniziarla qui visto che è il
|
|
-- primo Update/insert/delete su tabelle non temporanee delete a parte
|
|
|
|
-- update rese RawMat!
|
|
UPDATE dbo.QuoteRM
|
|
SET FCR = @MAC_SC * @MAC_ST * @MAC_IN * @MAC_IM
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
AND RawMat = @RawMat
|
|
|
|
-- inserisco i costi delle utilities in QuoteOC
|
|
|
|
-- inserisco altri costi x lavorazione estrusione! GAS ed EE
|
|
INSERT INTO #QuoteOC(QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, TotQty, TotCost, Quota)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '01', @CodPlant, CodUtil, @RawMat, @BatchQty, UnitCost * @BatchQty, 1
|
|
FROM dbo.Utilities
|
|
WHERE CodPlant = @CodPlant
|
|
|
|
|
|
/*************************************************************
|
|
* MATRICE
|
|
*
|
|
* calcolo prezzo e durata matrice con procedura a 5 step...
|
|
* A) media ponderata prezzo ed ExpLife da DiesDet selezionando x CodItem + CodDiesGroup
|
|
* B) EOLLife x media ponderata su DiesDet dove Active = 0 e vita cmq superiore 5000 KG ( escludendo rotture accidentali )
|
|
* C) SE prezzo = 0 --> prendo prezzo da DiesGroupDet selezionando x CodDiesGroup
|
|
* D) Se EOL = 0 --> prendo ExpLife della singola matrice, se è 0 --> prendo EOLLife da DiesGroupDet selezionando x CodDiesGroup
|
|
* E) Calcolo Price / Life
|
|
*
|
|
*************************************************************/
|
|
|
|
-- (A) da DiesDet
|
|
SELECT @DiesPrice = SUM(ISNULL(Price, 0) * ISNULL(ActLife, 1)) / SUM(ISNULL(ActLife, 1)),
|
|
@DiesExpLife = SUM(ISNULL(ExpLife, 0) * ISNULL(ActLife, 1)) / SUM(ISNULL(ActLife, 1))
|
|
FROM dbo.DiesDet
|
|
WHERE CodItem = @CodItem
|
|
AND CodDiesGroup = @CodDiesGroup
|
|
GROUP BY CodItem, CodDiesGroup
|
|
|
|
-- (B) da DiesDet
|
|
SELECT @DiesEOLife = AVG( ISNULL(ActLife, 0))
|
|
FROM dbo.DiesDet
|
|
WHERE CodItem = @CodItem
|
|
AND CodDiesGroup = @CodDiesGroup
|
|
AND Active = 0 -- solo matrici rottamate
|
|
AND ActLife > 5000 -- solo se hanno Life > 5000 Kg ( non rotture accidentali )
|
|
GROUP BY CodItem, CodDiesGroup
|
|
|
|
SET @DiesPrice = ISNULL(@DiesPrice,0)
|
|
SET @DiesExpLife = ISNULL(@DiesExpLife,0)
|
|
SET @DiesEOLife = ISNULL(@DiesEOLife,0)
|
|
|
|
-- (C) verifico se prezzo è OK...
|
|
IF (@DiesPrice = 0)
|
|
BEGIN
|
|
-- calcolo da DiesGroupDet
|
|
SELECT @DiesPrice = ISNULL(Price, 0)
|
|
FROM dbo.DiesGroupDet
|
|
WHERE CodDiesGroup = @CodDiesGroup
|
|
END
|
|
|
|
-- (D) verifico se vita è OK...
|
|
IF (@DiesEOLife = 0)
|
|
BEGIN
|
|
-- uso exp life articolo...
|
|
SET @DiesEOLife = @DiesExpLife
|
|
END
|
|
-- controllo che non sia nulla/vuota la durata...
|
|
IF (@DiesEOLife = 0)
|
|
BEGIN
|
|
SELECT @DiesEOLife = CASE WHEN EOLLife > 0 THEN EOLLife ELSE ExpLife END
|
|
FROM DiesGroupDet
|
|
WHERE CodDiesGroup = @CodDiesGroup
|
|
END
|
|
|
|
-- controllo che non sia nulla/vuota la durata...
|
|
IF ( @DiesEOLife > 0)
|
|
BEGIN
|
|
-- (E) Calcolo price/life!
|
|
SET @DiesPriceLife = @DiesPrice / @DiesEOLife
|
|
END
|
|
ELSE
|
|
BEGIN
|
|
SET @DiesPriceLife = 0 -- metto a zero il DiesPriceLife
|
|
SET @valid = 0 -- indico che valore non è valido ( ND excel )
|
|
END
|
|
|
|
-- inserisco costi per Matrice: costo e durata da matrice, se non ci sono da gruppo, (anche solo uno dei due, ovviamente più facile trovare durata x matrice...)
|
|
INSERT INTO #QuoteOC(QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, TotQty, TotCost, Quota, valid)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '01', @CodPlant, 'MATRICE', @RawMat, @BatchQty, @DiesPriceLife * @BatchQty, 1, @valid
|
|
|
|
-- inserisco parametri calcolati x matrice
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
VALUES ( @QuoteType, @CodQuote, @QuoteRev, '01', 'DiesPrice', CONVERT(NVARCHAR(100), @DiesPrice) )
|
|
,( @QuoteType, @CodQuote, @QuoteRev, '01', 'DiesExpLife', CONVERT(NVARCHAR(100), @DiesExpLife) )
|
|
,( @QuoteType, @CodQuote, @QuoteRev, '01', 'DiesEOLife', CONVERT(NVARCHAR(100), @DiesEOLife) )
|
|
|
|
/*************************************************************
|
|
* VENDITA ROTTAME
|
|
*
|
|
* calcolo COSTO DI VENDITA PER LE 2 FASI ESTRUSIONE 01 ED IMBALLO 04
|
|
* - calcolo costi variabili fase 01 / 04
|
|
* - calcolo costo di vendita x fase 01 / 04
|
|
*************************************************************/
|
|
|
|
SELECT @OCF01 = SUM(ISNULL(C4UG,0))
|
|
FROM #QuoteOC
|
|
|
|
SELECT @VCF01 = @OCF01 + VC4UG
|
|
FROM #QuoteWorkInt
|
|
WHERE ProcessNum = '01'
|
|
|
|
SELECT @VCF04 = @OCF01 + SUM(VC4UG)
|
|
FROM #QuoteWorkInt
|
|
|
|
SELECT @SellCostF01 = ((@MAC_ST * @MAC_SC * @MAC_IN) - 1) * (q.RawMatCost + q.RawMatExtraCost - CASE WHEN SSVA > 0 THEN SSVA ELSE q.RawMatCost * SSVR END + @VCF01) -- ((prodotto delle MAC = inverso del prodotto delle rese) - 1) * (costo Al - prezzo rivendita + costi var fase 01)
|
|
, @RefCostF01 = -- ( (A - B) / 100 - C )
|
|
(
|
|
-- (A) = (costo pieno di acquisto + costi fase 1) * MAC * 100 (IN CENTESIMI)
|
|
((q.RawMatCost + q.RawMatExtraCost + @VCF01) * (@MAC_ST * @MAC_SC * @MAC_IN * 100))
|
|
-- (B) = ((MAC * 100) - 100) * Resa di fonderia * (costo pieno acquisto - costo di trasformazione))
|
|
- ((@MAC_ST * @MAC_SC * @MAC_IN * 100) - 100) * rmd.ProcYield * (q.RawMatCost + q.RawMatExtraCost + @VCF01 - rmd.ProcCost)
|
|
) / 100 -- divido per 100 finale
|
|
-- (C) = sottraggo costo pieno alluminio
|
|
- (q.RawMatCost + q.RawMatExtraCost + @VCF01)
|
|
FROM dbo.RawMatDet rmd
|
|
INNER JOIN dbo.QuoteRM q ON q.RawMat = rmd.RawMat
|
|
WHERE q.QuoteType = @QuoteType
|
|
AND q.CodQuote = @CodQuote
|
|
AND q.QuoteRev = @QuoteRev
|
|
AND q.RawMat = @RawMat
|
|
|
|
SELECT @SellCostF04 = ((@MAC_IM) - 1) * (q.RawMatCost + q.RawMatExtraCost - CASE WHEN SSVA > 0 THEN SSVA ELSE q.RawMatCost * SSVR END + @VCF01 + @VCF04) -- ((prodotto delle MAC = inverso del prodotto delle rese) - 1) * (costo Al - prezzo rivendita + costi var fase 04)
|
|
, @RefCostF04 = -- ( (A - B) / 100 - C )
|
|
(
|
|
-- (A) = (costo pieno di acquisto + costi variabili fase 1 e 4) * MAC * 100 (IN CENTESIMI)
|
|
((q.RawMatCost + q.RawMatExtraCost + @VCF01 + @VCF04) * (@MAC_IM * 100))
|
|
-- (B) = ((MAC * 100) - 100) * Resa di fonderia * (costo pieno acquisto - costo di trasformazione))
|
|
- ((@MAC_IM * 100) - 100) * rmd.ProcYield * (q.RawMatCost + q.RawMatExtraCost + @VCF01 + @VCF04 - rmd.ProcCost)
|
|
) / 100 -- divido per 100 finale
|
|
-- (C) = sottraggo costo pieno alluminio
|
|
- (q.RawMatCost + q.RawMatExtraCost + @VCF01 + @VCF04)
|
|
|
|
-- NOTA: usiamo (q.RawMatCost + q.RawMatExtraCost + @VCF01) e non (q.RawMatCost + q.RawMatExtraCost + @VCF01 + @RefCostF01) perché la differenza è minimale, si tratta di 10/20 PPM...
|
|
|
|
FROM dbo.RawMatDet rmd
|
|
INNER JOIN dbo.QuoteRM q ON q.RawMat = rmd.RawMat
|
|
WHERE q.QuoteType = @QuoteType
|
|
AND q.CodQuote = @CodQuote
|
|
AND q.QuoteRev = @QuoteRev
|
|
AND q.RawMat = @RawMat
|
|
|
|
-- inserisco costi per VENDITA
|
|
INSERT INTO #QuoteOC(QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, TotQty, TotCost, Quota)
|
|
VALUES ( @QuoteType, @CodQuote, @QuoteRev, '01', @CodPlant, 'VENDITA', @RawMat, @BatchQty, @SellCostF01 * @BatchQty, @SSR )
|
|
-- inserisco costi per ROTTAME
|
|
,( @QuoteType, @CodQuote, @QuoteRev, '01', @CodPlant, 'ROTTAME', @RawMat, @BatchQty, @RefCostF01 * @BatchQty, 1 - @SSR )
|
|
-- inserisco costi per VENDITA
|
|
,( @QuoteType, @CodQuote, @QuoteRev, '04', @CodPlant, 'VENDITA', @RawMat, @BatchQty, @SellCostF04 * @BatchQty, @SSR )
|
|
-- inserisco costi per ROTTAME
|
|
,( @QuoteType, @CodQuote, @QuoteRev, '04', @CodPlant, 'ROTTAME', @RawMat, @BatchQty, @RefCostF04 * @BatchQty, 1 - @SSR )
|
|
|
|
-- calcolo Package Cost e RMWeight da tab PackageDet
|
|
-- EXEC stp_packageCost @CodItem, @CodClient, @CodPackag, @PDesc=@PkgDesc OUTPUT, @RMWeight=@PRMWeight OUTPUT, @Weight=@PWeight OUTPUT, @Tare=@PTare OUTPUT, @PackCost=@PCost OUTPUT, @TareStRat=@PTareStRatio OUTPUT
|
|
-- stored sostituita perchè la maggior parte dei calcoli li ho già fatti
|
|
SELECT @PCost = RMCost / @PWeight
|
|
, @PRMWeight = RMWeight
|
|
, @PkgDesc = PackagDesc
|
|
, @PTareStRatio = ( RMWeight - @PTare) / @PWeight
|
|
FROM dbo.PackagDet
|
|
WHERE CodPackag = @CodPackag
|
|
|
|
-- inserisco costi per IMBALLO
|
|
INSERT INTO #QuoteOC(QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, TotQty, TotCost, Quota)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '04', @CodPlant, 'IMBALLO', @RawMat, @BatchQty, @PCost * @BatchQty, 1
|
|
|
|
-- inserisco parametri calcolati x imballaggio
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
VALUES ( @QuoteType, @CodQuote, @QuoteRev, '04', 'PkgDesc', @PkgDesc )
|
|
,( @QuoteType, @CodQuote, @QuoteRev, '04', 'PRMWeight', CONVERT(NVARCHAR(100), @PRMWeight ) )
|
|
,( @QuoteType, @CodQuote, @QuoteRev, '04', 'PWeight', CONVERT(NVARCHAR(100), @PWeight ) )
|
|
,( @QuoteType, @CodQuote, @QuoteRev, '04', 'PTare', CONVERT(NVARCHAR(100), @PTare) )
|
|
,( @QuoteType, @CodQuote, @QuoteRev, '04', 'TareStRatio', CONVERT(NVARCHAR(100), @PTareStRatio ) )
|
|
|
|
|
|
---------------------------------------------
|
|
-- inserisco costi per TRASPORTI
|
|
---------------------------------------------
|
|
-- recupero zona da cliente...
|
|
SELECT @TranspZone = TranspZone
|
|
FROM dbo.ClientDet
|
|
WHERE CodClient = @CodClient
|
|
|
|
-- recupero tipo di trasporto
|
|
SELECT @HasTC = ISNULL(i.HasTC, 0)
|
|
FROM dbo.QuoteList q INNER JOIN Incoterms i ON q.CodInco = i.CodInco
|
|
WHERE q.QuoteType = @QuoteType
|
|
AND q.CodQuote = @CodQuote
|
|
AND q.QuoteRev = @QuoteRev
|
|
|
|
-- recupero costi trasporto
|
|
SELECT @TranspCost = TranspCost
|
|
FROM dbo.TranspCostDet
|
|
WHERE TranspZone = @TranspZone
|
|
|
|
INSERT INTO #QuoteOC(QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, TotQty, TotCost, Quota)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '04', @CodPlant, 'TRASPORTI', @RawMat, @BatchQty, @HasTC * @TranspCost * @BatchQty, 1
|
|
|
|
|
|
---------------------------------------------
|
|
-- inserisco costi per PROVVIGIONI
|
|
---------------------------------------------
|
|
SELECT @Provvig = ISNULL(a.QuotaProvvAg, 0)
|
|
FROM dbo.AgentsDet a
|
|
INNER JOIN ClientDet c ON a.CodAg = c.CodAg
|
|
INNER JOIN QuoteList q ON q.CodClient = c.CodClient
|
|
WHERE q.QuoteType = @QuoteType
|
|
AND q.CodQuote = @CodQuote
|
|
AND q.QuoteRev = @QuoteRev
|
|
|
|
-- inserisco costi per PROVVIGIONI
|
|
INSERT INTO #QuoteOC(QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, TotQty, TotCost, Quota)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '04', @CodPlant, 'PROVVIGIONI', @RawMat, @BatchQty, @Provvig * @BatchQty, 1
|
|
|
|
/* ==================================================
|
|
CARICO TABELLE EFFETTIVE
|
|
==================================================*/
|
|
|
|
-- carico quote parametri!
|
|
INSERT dbo.QuoteParam
|
|
SELECT * FROM #QuoteParam
|
|
|
|
-- carico lavorazioni INTERNE!
|
|
INSERT dbo.QuoteWorkInt -- ci sono valori calcolati quindi devo selezionare i campi
|
|
SELECT QuoteType, CodQuote, QuoteRev, NumWI, ProcessNum, CodPlant, Class01, Class02, Class03, Class04, Class05
|
|
, NetProd, WSR, MSR, DSR, FC4UG, VC4UG, OH4UG, SC4UG, valid
|
|
FROM #QuoteWorkInt
|
|
|
|
-- carico OTHERCOSTS
|
|
INSERT dbo.QuoteOC -- ci sono valori calcolati quindi devo selezionare i campi
|
|
SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Class02, Class03, Class04
|
|
, Class05, TotQty, TotCost, Quota, valid
|
|
FROM #QuoteOC
|
|
|
|
COMMIT TRAN;
|
|
|
|
--SELECT * FROM #QuoteParam
|
|
--SELECT * FROM #QuoteWorkInt
|
|
--SELECT * FROM #QuoteOC
|
|
|
|
-- elimino temp table...
|
|
IF OBJECT_ID('tempdb..#QuoteParam') IS NOT NULL
|
|
DROP TABLE #QuoteParam
|
|
IF OBJECT_ID('tempdb..#QuoteWorkInt') IS NOT NULL
|
|
DROP TABLE #QuoteWorkInt
|
|
IF OBJECT_ID('tempdb..#QuoteOC') IS NOT NULL
|
|
DROP TABLE #QuoteOC
|
|
|
|
END]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[bit]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#QuoteWorkInt].[WSR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#QuoteWorkInt].[MSR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#QuoteWorkInt].[DSR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#QuoteOC].[TotCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#QuoteOC].[Quota]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#QuoteOC].[TotQty]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#Quoteparam]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#QuoteWorkInt]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#QuoteOC]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[@QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[@CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[@QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkExt]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkExt].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkExt].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkExt].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabProdSc]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[KeyAM]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabProdSc].[KeyAM]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabProdSc].[CodDiesGroup]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabProdSc].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabProdSc].[HoleNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[KeyAM]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabProdSc].[ProdTeo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabProdSc].[ScTec]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabProdSc].[KgTeo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabProdSc].[NumSMED]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[RawMat]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[BatchQty]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[ItemDescr]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[Class01]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[Class02]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[Class03]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_getDataCodPackag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_getDataCodPackag].[CodPackag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_getDataCodPackag].[TotQta]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_getDataCodPackag].[Weight]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_getDataCodPackag].[Tare]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_getDataCodPackag].[NumImb]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_getDataCodPackag].[Durata]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_getDataCodPackag].[LivPackag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_getDataCodPackag].[LivPackagDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[CodPackag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#Quoteparam].[Quotetype]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#Quoteparam].[Codquote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#Quoteparam].[Quoterev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#Quoteparam].[Processnum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#Quoteparam].[Descr]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#Quoteparam].[Parameter]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet].[ClientName]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet].[CodClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_getSubstring]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[CodDies]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[CodDiesGroup]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[Active]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#QuoteWorkInt].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#QuoteWorkInt].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#QuoteWorkInt].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#QuoteWorkInt].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#QuoteWorkInt].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#QuoteWorkInt].[Class01]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#QuoteWorkInt].[Class02]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#QuoteWorkInt].[Class03]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#QuoteWorkInt].[NetProd]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#QuoteWorkInt].[WSR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabProdSc].[KgTeo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#QuoteWorkInt].[Class03]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[RawMat]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#QuoteWorkInt].[MSR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[CSR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#QuoteWorkInt].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#QuoteWorkInt].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#QuoteWorkInt].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#QuoteWorkInt].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#QuoteWorkInt].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#QuoteWorkInt].[FC4UG]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant].[FC]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant].[QuotaPlantStd]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant].[QuotaManStd]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#QuoteWorkInt].[NetProd]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#QuoteWorkInt].[VC4UG]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant].[VC]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#QuoteWorkInt].[OH4UG]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant].[OH]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#QuoteWorkInt].[SC4UG]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant].[SC]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[BatchQty]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#QuoteWorkInt].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabDifett]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#QuoteWorkInt].[Class02]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabDifett].[KeyAMI]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#QuoteWorkInt].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabDifett].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#QuoteWorkInt].[DSR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabDifett].[TotOUT]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabDifett].[TotIn]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#QuoteWorkInt].[Class04]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#QuoteWorkInt].[Class05]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#QuoteWorkInt].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#QuoteWorkInt].[Class05]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#QuoteWorkInt].[MCR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#QuoteWorkInt].[WCR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#QuoteWorkInt].[DCR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[SSR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[RawMat]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[FCR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[RawMat]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#QuoteOC].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#QuoteOC].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#QuoteOC].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#QuoteOC].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#QuoteOC].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#QuoteOC].[Class01]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#QuoteOC].[Class02]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#QuoteOC].[TotQty]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#QuoteOC].[TotCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#QuoteOC].[Quota]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Utilities]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Utilities].[CodUtil]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Utilities].[UnitCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Utilities].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[Price]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[ActLife]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[ExpLife]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet].[Price]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet].[CodDiesGroup]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet].[EOLLife]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet].[ExpLife]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#QuoteOC].[valid]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#QuoteOC].[C4UG]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[RawMat]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[RawMat]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[RawMatCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[RawMatExtraCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[SSVA]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[SSVR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[ProcYield]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[ProcCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[PackagDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[PackagDet].[RMCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[PackagDet].[RMWeight]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[PackagDet].[PackagDesc]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[PackagDet].[CodPackag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet].[TranspZone]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet].[CodClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Incoterms]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodInco]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Incoterms].[CodInco]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Incoterms].[HasTC]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TranspCostDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TranspCostDet].[TranspCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TranspCostDet].[TranspZone]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AgentsDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AgentsDet].[CodAg]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet].[CodAg]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet].[CodClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AgentsDet].[QuotaProvvAg]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#QuoteWorkInt].[NumWI]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#QuoteWorkInt].[valid]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#QuoteOC].[NumEx]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#QuoteOC].[Class03]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#QuoteOC].[Class04]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update].[#QuoteOC].[Class05]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DynamicObjects">
|
|
<Entry>
|
|
<Element Type="SqlDynamicColumnSource" Name="[dbo].[stp_QL_update].[#Quoteparam]">
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[stp_QL_update].[#Quoteparam].[Quotetype]">
|
|
<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="[char]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[stp_QL_update].[#Quoteparam].[Codquote]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[bigint]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[stp_QL_update].[#Quoteparam].[Quoterev]">
|
|
<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].[stp_QL_update].[#Quoteparam].[Nump]">
|
|
<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].[stp_QL_update].[#Quoteparam].[Processnum]">
|
|
<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].[stp_QL_update].[#Quoteparam].[Descr]">
|
|
<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].[stp_QL_update].[#Quoteparam].[Parameter]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="100" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlDynamicColumnSource" Name="[dbo].[stp_QL_update].[#QuoteWorkInt]">
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[stp_QL_update].[#QuoteWorkInt].[QuoteType]">
|
|
<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="[char]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[stp_QL_update].[#QuoteWorkInt].[CodQuote]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[bigint]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[stp_QL_update].[#QuoteWorkInt].[QuoteRev]">
|
|
<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].[stp_QL_update].[#QuoteWorkInt].[NumWI]">
|
|
<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].[stp_QL_update].[#QuoteWorkInt].[ProcessNum]">
|
|
<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].[stp_QL_update].[#QuoteWorkInt].[CodPlant]">
|
|
<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].[stp_QL_update].[#QuoteWorkInt].[Class01]">
|
|
<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].[stp_QL_update].[#QuoteWorkInt].[Class02]">
|
|
<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].[stp_QL_update].[#QuoteWorkInt].[Class03]">
|
|
<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].[stp_QL_update].[#QuoteWorkInt].[Class04]">
|
|
<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].[stp_QL_update].[#QuoteWorkInt].[Class05]">
|
|
<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].[stp_QL_update].[#QuoteWorkInt].[NetProd]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="3" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[stp_QL_update].[#QuoteWorkInt].[WSR]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="8" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[stp_QL_update].[#QuoteWorkInt].[MSR]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="8" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[stp_QL_update].[#QuoteWorkInt].[DSR]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="8" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[stp_QL_update].[#QuoteWorkInt].[FC4UG]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[stp_QL_update].[#QuoteWorkInt].[VC4UG]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[stp_QL_update].[#QuoteWorkInt].[OH4UG]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[stp_QL_update].[#QuoteWorkInt].[SC4UG]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_update].[#QuoteWorkInt].[WYR]">
|
|
<Property Name="ExpressionScript">
|
|
<Value><![CDATA[((1)-WSR)]]></Value>
|
|
</Property>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_update].[#QuoteWorkInt].[MYR]">
|
|
<Property Name="ExpressionScript">
|
|
<Value><![CDATA[((1)-MSR)]]></Value>
|
|
</Property>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_update].[#QuoteWorkInt].[DYR]">
|
|
<Property Name="ExpressionScript">
|
|
<Value><![CDATA[((1)-DSR)]]></Value>
|
|
</Property>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_update].[#QuoteWorkInt].[WCR]">
|
|
<Property Name="ExpressionScript">
|
|
<Value><![CDATA[((1)/((1)-WSR))]]></Value>
|
|
</Property>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_update].[#QuoteWorkInt].[MCR]">
|
|
<Property Name="ExpressionScript">
|
|
<Value><![CDATA[((1)/((1)-MSR))]]></Value>
|
|
</Property>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_update].[#QuoteWorkInt].[DCR]">
|
|
<Property Name="ExpressionScript">
|
|
<Value><![CDATA[((1)/((1)-DSR))]]></Value>
|
|
</Property>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[stp_QL_update].[#QuoteWorkInt].[valid]">
|
|
<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>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlDynamicColumnSource" Name="[dbo].[stp_QL_update].[#QuoteOC]">
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[stp_QL_update].[#QuoteOC].[QuoteType]">
|
|
<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="[char]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[stp_QL_update].[#QuoteOC].[CodQuote]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[bigint]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[stp_QL_update].[#QuoteOC].[QuoteRev]">
|
|
<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].[stp_QL_update].[#QuoteOC].[NumEx]">
|
|
<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].[stp_QL_update].[#QuoteOC].[ProcessNum]">
|
|
<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].[stp_QL_update].[#QuoteOC].[CodPlant]">
|
|
<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].[stp_QL_update].[#QuoteOC].[Class01]">
|
|
<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].[stp_QL_update].[#QuoteOC].[Class02]">
|
|
<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].[stp_QL_update].[#QuoteOC].[Class03]">
|
|
<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].[stp_QL_update].[#QuoteOC].[Class04]">
|
|
<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].[stp_QL_update].[#QuoteOC].[Class05]">
|
|
<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].[stp_QL_update].[#QuoteOC].[TotQty]">
|
|
<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].[stp_QL_update].[#QuoteOC].[TotCost]">
|
|
<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].[stp_QL_update].[#QuoteOC].[Quota]">
|
|
<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="SqlComputedColumn" Name="[dbo].[stp_QL_update].[#QuoteOC].[C4UG]">
|
|
<Property Name="ExpressionScript">
|
|
<Value><![CDATA[((TotCost*Quota)/TotQty)]]></Value>
|
|
</Property>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[stp_QL_update].[#QuoteOC].[valid]">
|
|
<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>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_QL_update].[@QuoteType]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA['Q']]></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>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_QL_update].[@CodQuote]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[0]]></Value>
|
|
</Property>
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[bigint]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_QL_update].[@QuoteRev]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![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="245" />
|
|
<Property Name="Length" Value="30609" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="



-- =============================================
-- Author:		Steamware
-- Create date: 2014.01.22
-- Description:	aggiorna le tabelle QuoteList con i dati selezionati dalla TabProdSc
-- =============================================
CREATE PROCEDURE [dbo].[stp_QL_update]
(
	@QuoteType	CHAR(1) = 'Q',
	@CodQuote	BIGINT	= 0,
	@QuoteRev	INT		= 0
) 
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_QL_update_07_02]">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
BEGIN
|
|
|
|
SET NOCOUNT ON;
|
|
|
|
-- dichiaro valori da recuperare
|
|
DECLARE @strTemp NVARCHAR(50) = '' --stringa temporanea x variabili "locali"
|
|
|
|
DECLARE @valid BIT
|
|
DECLARE @CodDiesGroup NVARCHAR(50)
|
|
DECLARE @CodPlant NVARCHAR(50)
|
|
DECLARE @CodPlantFix NVARCHAR(50) = ''
|
|
DECLARE @HoleNum INT
|
|
-- ITEM
|
|
DECLARE @CodItem NVARCHAR(50) = '' --cod item
|
|
DECLARE @ItemDescr NVARCHAR(50) = '' -- descrizione item
|
|
DECLARE @CodifProfilo NVARCHAR(50) = '' -- Cod. Profilo
|
|
DECLARE @ClasseMerc NVARCHAR(50) = ''
|
|
DECLARE @CodClientAssoc NVARCHAR(50) = ''
|
|
|
|
DECLARE @KeyAM NVARCHAR(50) = ''
|
|
DECLARE @KeyAMI NVARCHAR(50) = ''
|
|
DECLARE @KeyAMIL NVARCHAR(50) = ''
|
|
DECLARE @NumSMED INT = 0 -- numero cambi
|
|
DECLARE @KgTeo DECIMAL(18, 6) = 0 -- kg totali
|
|
DECLARE @RawMat NVARCHAR(50)
|
|
DECLARE @ProdTeo DECIMAL(18,6)
|
|
DECLARE @ScTec DECIMAL(18,6)
|
|
DECLARE @BatchQty INT
|
|
DECLARE @MAC_SC DECIMAL(18,6) -- Messa a cento scarto cesoia
|
|
DECLARE @MAC_ST DECIMAL(18,6) -- Messa a cento scarto tecnico
|
|
DECLARE @MAC_IN DECIMAL(18,6) -- Messa a cento difettosità all'incestatura
|
|
DECLARE @MAC_IM DECIMAL(18,6) -- Messa a cento difettosità all'imballo
|
|
DECLARE @SSR DECIMAL(9,6) -- percentuale vendita rottame
|
|
DECLARE @DiesPrice DECIMAL(9,3) -- prezzo matrice
|
|
DECLARE @DiesEOLife DECIMAL(9,2) -- durata matrice
|
|
DECLARE @DiesExpLife DECIMAL(9,2) -- durata matrice
|
|
DECLARE @DiesPriceLife DECIMAL(18,6) -- Price/Life matrice
|
|
DECLARE @OCF01 DECIMAL(18,6) = 0 -- altri costi di fase 01
|
|
DECLARE @VCF01 DECIMAL(18,6) = 0 -- costi variabili di fase 01
|
|
DECLARE @VCF04 DECIMAL(18,6) = 0 -- costi variabili di fase 04
|
|
DECLARE @SellCostF01 DECIMAL(18,6) = 0 -- costo vendita fase 01
|
|
DECLARE @SellCostF04 DECIMAL(18,6) = 0 -- costo vendita fase 04
|
|
DECLARE @RefCostF01 DECIMAL(18,6) = 0 -- costo rifusione fase 01
|
|
DECLARE @RefCostF04 DECIMAL(18,6) = 0 -- costo rifusione fase 04
|
|
-- IMBALLO
|
|
DECLARE @CodPackag NVARCHAR(50) = '0' -- codice dell'imballo
|
|
DECLARE @CodClient NVARCHAR(50) = '' -- codice cliente
|
|
DECLARE @NumImb DECIMAL(9,6) = 0 -- num imballatori
|
|
DECLARE @PkgDesc NVARCHAR(50) = '' -- descrizione imballo
|
|
DECLARE @PRMWeight DECIMAL(9,4) = 0 -- peso dell'imballo
|
|
DECLARE @PWeight DECIMAL(9,4) = 0 -- peso del pacco
|
|
DECLARE @PTare DECIMAL(9,4) = 0 -- media delal tara di imballo dichiarata
|
|
DECLARE @PCost DECIMAL(9,6) = 0 -- costo unitario dell'imballo (al kg)
|
|
DECLARE @PTareStRatio DECIMAL(9,4) = 0 -- coefficiente di recupero tara/prodotto
|
|
DECLARE @PTotQta DECIMAL(18,3) = 0 -- Qta Kg Tot Imballati
|
|
DECLARE @PDurata DECIMAL(18,6) = 0 -- Tempo d'imballaggio
|
|
DECLARE @PLiv NVARCHAR(50) = '' -- Livello Search dati Imballo
|
|
DECLARE @PLivDett NVARCHAR(50) = '' -- Key Livello Search Dati Imballo
|
|
-- TRASPORTI
|
|
DECLARE @TranspZone NVARCHAR(50) = '' -- codice ZONA
|
|
DECLARE @TranspCost DECIMAL(9,6) -- costo di trasporto
|
|
DECLARE @HasTC INT
|
|
|
|
-- PROVVIGIONI
|
|
DECLARE @Provvig DECIMAL(9,6) -- provvigione agente
|
|
|
|
-- default: validità è true!
|
|
SET @valid = 1
|
|
|
|
-- =================================================
|
|
-- CREAZIONE TEMP TABLE
|
|
-- =================================================
|
|
|
|
-- elimino e ricreo #QuoteParam temp table...
|
|
IF OBJECT_ID('tempdb..#QuoteParam') IS NOT NULL
|
|
DROP TABLE #QuoteParam
|
|
|
|
CREATE TABLE #QuoteParam
|
|
(
|
|
[QuoteType] [char](1) NOT NULL,
|
|
[CodQuote] [bigint] NOT NULL,
|
|
[QuoteRev] [int] NOT NULL,
|
|
[NumP] [int] IDENTITY(1,1) NOT NULL,
|
|
[ProcessNum] [nvarchar](50) NOT NULL,
|
|
[Descr] [nvarchar](50) NOT NULL,
|
|
[Parameter] [nvarchar](100) NOT NULL,
|
|
--PRIMARY KEY
|
|
-- ( [NumP] ASC, [QuoteType] ASC, [CodQuote] ASC, [QuoteRev] ASC ) WITH (PAD_INDEX = ON, FILLFACTOR = 90 )
|
|
)
|
|
|
|
-- elimino e ricreo #QuoteParam temp table...
|
|
IF OBJECT_ID('tempdb..#QuoteWorkInt') IS NOT NULL
|
|
DROP TABLE #QuoteWorkInt
|
|
|
|
CREATE TABLE #QuoteWorkInt
|
|
(
|
|
[QuoteType] [char](1) NOT NULL,
|
|
[CodQuote] [bigint] NOT NULL,
|
|
[QuoteRev] [int] NOT NULL,
|
|
[NumWI] [int] IDENTITY(1,1) NOT NULL,
|
|
[ProcessNum] [nvarchar](50) NOT NULL,
|
|
[CodPlant] [nvarchar](50) NOT NULL,
|
|
[Class01] [nvarchar](50) NOT NULL DEFAULT (''),
|
|
[Class02] [nvarchar](50) NOT NULL DEFAULT (''),
|
|
[Class03] [nvarchar](50) NOT NULL DEFAULT (''),
|
|
[Class04] [nvarchar](50) NOT NULL DEFAULT (''),
|
|
[Class05] [nvarchar](50) NOT NULL DEFAULT (''),
|
|
[NetProd] [decimal](9, 3) NOT NULL DEFAULT ((0)),
|
|
[WSR] [decimal](9, 8) NOT NULL DEFAULT ((0)),
|
|
[MSR] [decimal](9, 8) NOT NULL DEFAULT ((0)),
|
|
[DSR] [decimal](9, 8) NOT NULL DEFAULT ((0)),
|
|
[FC4UG] [decimal](9, 6) NOT NULL DEFAULT ((0)),
|
|
[VC4UG] [decimal](9, 6) NOT NULL DEFAULT ((0)),
|
|
[OH4UG] [decimal](9, 6) NOT NULL DEFAULT ((0)),
|
|
[SC4UG] [decimal](9, 6) NOT NULL DEFAULT ((0)),
|
|
[WYR] AS ((1)-[WSR]),
|
|
[MYR] AS ((1)-[MSR]),
|
|
[DYR] AS ((1)-[DSR]),
|
|
[WCR] AS ((1)/((1)-[WSR])),
|
|
[MCR] AS ((1)/((1)-[MSR])),
|
|
[DCR] AS ((1)/((1)-[DSR])),
|
|
[valid] [bit] NOT NULL DEFAULT((1)),
|
|
)
|
|
|
|
-- elimino e ricreo #QuoteParam temp table...
|
|
IF OBJECT_ID('tempdb..#QuoteOC') IS NOT NULL
|
|
DROP TABLE #QuoteOC
|
|
|
|
CREATE TABLE #QuoteOC
|
|
(
|
|
[QuoteType] [char](1) NOT NULL,
|
|
[CodQuote] [bigint] NOT NULL,
|
|
[QuoteRev] [int] NOT NULL,
|
|
[NumEx] [int] IDENTITY(1,1) NOT NULL,
|
|
[ProcessNum] [nvarchar](50) NOT NULL,
|
|
[CodPlant] [nvarchar](50) NOT NULL,
|
|
[Class01] [nvarchar](50) NOT NULL DEFAULT (''),
|
|
[Class02] [nvarchar](50) NOT NULL DEFAULT (''),
|
|
[Class03] [nvarchar](50) NOT NULL DEFAULT (''),
|
|
[Class04] [nvarchar](50) NOT NULL DEFAULT (''),
|
|
[Class05] [nvarchar](50) NOT NULL DEFAULT (''),
|
|
[TotQty] [decimal](18, 6) NOT NULL DEFAULT ((1)),
|
|
[TotCost] [decimal](18, 6) NOT NULL DEFAULT ((0)),
|
|
[Quota] [decimal](18, 6) NOT NULL DEFAULT ((1)),
|
|
[C4UG] AS (([TotCost]*[Quota])/[TotQty]),
|
|
[valid] [bit] NOT NULL DEFAULT ((1))
|
|
)
|
|
|
|
-- ===================================
|
|
-- INIZIO TRANSAZIONE
|
|
-- ===================================
|
|
SET XACT_ABORT ON;
|
|
BEGIN TRAN
|
|
|
|
---------------------------------------
|
|
-- svuotamento iniziale
|
|
---------------------------------------
|
|
|
|
-- elimino quote PARAMETRI!
|
|
DELETE FROM dbo.QuoteParam
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
|
|
-- elimino lavorazioni ESTERNE!
|
|
DELETE FROM dbo.QuoteWorkExt
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
|
|
-- elimino lavorazioni INTERNE
|
|
DELETE FROM dbo.QuoteWorkInt
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
|
|
-- elimino OtherCosts
|
|
DELETE FROM dbo.QuoteOC
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
|
|
-- se ci sono eccezioni nella tab dell'anagrafico articoli imposto il codPlant desiderato
|
|
SET @CodPlantFix = ISNULL ( ( SELECT id.CodPlant FROM dbo.ItemDet id
|
|
INNER JOIN dbo.QuoteList ql ON id.CodItem = ql.CodItem
|
|
WHERE ql.QuoteType = @QuoteType
|
|
AND ql.CodQuote = @CodQuote
|
|
AND ql.QuoteRev = @QuoteRev ), '' )
|
|
|
|
-- recupero da dati dell'offerta il valore del cliente
|
|
SELECT @CodClient = CodClient
|
|
FROM dbo.QuoteList
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
|
|
-- recupero dati!!
|
|
SELECT TOP 1 @CodItem = ql.CodItem
|
|
, @CodDiesGroup = tps.CodDiesGroup
|
|
, @CodPlant = CASE WHEN @CodPlantFix <> '' THEN @CodPlantFix ELSE tps.CodPlant END
|
|
, @HoleNum = tps.HoleNum
|
|
, @KeyAM = ql.KeyAM
|
|
, @KeyAMI = ql.KeyAM + '-' + ISNULL(@CodPlant,'0000')
|
|
, @KeyAMIL = ql.KeyAM + '-' + ISNULL(@CodPlant,'0000') + '-' + CAST(ISNULL(tps.HoleNum,0) AS NVARCHAR(10))
|
|
, @ProdTeo = tps.ProdTeo
|
|
, @ScTec = tps.ScTec
|
|
, @KgTeo = tps.KgTeo
|
|
, @NumSMED = tps.NumSMED
|
|
, @RawMat = ql.RawMat
|
|
, @BatchQty = ql.BatchQty
|
|
, @ItemDescr = i.ItemDescr
|
|
, @CodifProfilo = i.Class01
|
|
, @ClasseMerc = i.Class02
|
|
, @CodClientAssoc = i.Class03
|
|
|
|
FROM dbo.QuoteList ql
|
|
INNER JOIN dbo.TabProdSc tps ON ql.KeyAM = tps.KeyAM
|
|
INNER JOIN dbo.ItemDet i ON ql.CodItem = i.CodItem
|
|
WHERE ql.QuoteType = @QuoteType
|
|
AND ql.CodQuote = @CodQuote
|
|
AND ql.QuoteRev = @QuoteRev
|
|
ORDER BY tps.KgTeo DESC
|
|
|
|
-- =================================================================================
|
|
-- recupero dall'offerta il valore del PACKAGE/IMBALLO scelto e i dati relativi
|
|
-- Secondo la logica Client-Item-Package ( vedi funzione )
|
|
-- =================================================================================
|
|
-- SET @CodPackag = ( SELECT dbo.f_getCodPackag( @CodItem , @CodClient ) )
|
|
-- attenzione è una function tabellare
|
|
SELECT @CodPackag = CodPackag, @PTotQta = TotQta, @PWeight = [Weight], @PTare = Tare,
|
|
@NumImb = NumImb, @PDurata = Durata, @PLiv = LivPackag , @PLivDett = LivPackagDet
|
|
FROM f_getDataCodPackag ( @CodItem, @CodClient)
|
|
|
|
-- e aggiorno il CodPackage in QuoteRM
|
|
UPDATE dbo.QuoteRM
|
|
SET CodPackag = @CodPackag
|
|
FROM dbo.QuoteRM
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
VALUES (@QuoteType, @CodQuote, @QuoteRev, '01', 'ItemDescr', @ItemDescr)
|
|
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'CodifProfilo', @CodifProfilo
|
|
--FROM dbo.ItemDet
|
|
--WHERE CodItem = @CodItem
|
|
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'ClasseMerc', @ClasseMerc
|
|
--FROM dbo.ItemDet
|
|
--WHERE CodItem = @CodItem
|
|
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'CodClientAssoc', @CodClientAssoc
|
|
--FROM dbo.ItemDet
|
|
--WHERE CodItem = @CodItem
|
|
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'ClientNameAssoc', ClientDet.ClientName
|
|
FROM dbo.ClientDet WHERE ClientDet.CodClient = @CodClientAssoc
|
|
--FROM dbo.ItemDet
|
|
--INNER JOIN dbo.ClientDet ON ItemDet.Class03 = ClientDet.CodClient
|
|
--WHERE CodItem = @CodItem
|
|
|
|
-- INFORMAZIONI su MATRICE
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
VALUES (@QuoteType, @CodQuote, @QuoteRev, '01', 'CodDiesGroup', @CodDiesGroup )
|
|
|
|
SET @strTemp = dbo.f_getSubstring(@CodDiesGroup, '-', 1)
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
VALUES (@QuoteType, @CodQuote, @QuoteRev, '01', 'TipoDies', @strTemp)
|
|
|
|
SET @strTemp = dbo.f_getSubstring(@CodDiesGroup, '-', 2)
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
VALUES (@QuoteType, @CodQuote, @QuoteRev, '01', 'DiamDies', @strTemp)
|
|
|
|
SET @strTemp = dbo.f_getSubstring(@CodDiesGroup, '-', 3)
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
VALUES (@QuoteType, @CodQuote, @QuoteRev, '01', 'HoleNumDies', @strTemp)
|
|
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'NumDiesInList', COUNT(CodDies)
|
|
FROM dbo.DiesDet
|
|
WHERE CodDiesGroup = @CodDiesGroup AND CodItem = @CodItem
|
|
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'NumDiesExaust', COUNT(CodDies)
|
|
FROM dbo.DiesDet
|
|
WHERE CodDiesGroup = @CodDiesGroup AND Active = 0
|
|
|
|
-- inserisco parametri calcolati x lavorazione estruzione
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
VALUES ( @QuoteType, @CodQuote, @QuoteRev, '01', 'CodPlant' , @CodPlant )
|
|
,( @QuoteType, @CodQuote, @QuoteRev, '01', 'KeyAM' , @KeyAM )
|
|
,( @QuoteType, @CodQuote, @QuoteRev, '01', 'KeyAMIL' , @KeyAMIL )
|
|
,( @QuoteType, @CodQuote, @QuoteRev, '01', 'NumSMED' , CONVERT(NVARCHAR(50) , @NumSMED ) )
|
|
,( @QuoteType, @CodQuote, @QuoteRev, '01', 'KgTeo' , CONVERT(NVARCHAR(50) , @KgTeo ) )
|
|
|
|
--INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
--SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'KeyAM', @KeyAM
|
|
--INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
--SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'KeyAMIL', @KeyAMIL
|
|
--INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
--SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'NumSMED', @NumSMED
|
|
--INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
--SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'KgTeo', @KgTeo
|
|
|
|
-- inserisco lavorazione estrusione!
|
|
INSERT INTO #QuoteWorkInt (QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, Class03, NetProd, WSR)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '01', @CodPlant, @KeyAM, @KeyAMIL, @RawMat, @ProdTeo, @ScTec
|
|
|
|
INSERT INTO #QuoteParam (QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'KgProdotti', SUM(KgTeo)
|
|
FROM dbo.QuoteList ql
|
|
INNER JOIN dbo.TabProdSc tps ON ql.KeyAM = tps.KeyAM
|
|
WHERE ql.QuoteType = @QuoteType
|
|
AND ql.CodQuote = @CodQuote
|
|
AND ql.QuoteRev = @QuoteRev
|
|
|
|
-- inserisco dati mancanti di MSR/CSR (scarto cesoia x estrusione) - DSR è NULLO x estrusione!
|
|
UPDATE #QuoteWorkInt
|
|
SET MSR = rmd.CSR
|
|
FROM #QuoteWorkInt qwi
|
|
INNER JOIN dbo.RawMatDet rmd ON qwi.Class03 = rmd.RawMat
|
|
|
|
-- calcolo i costi legati alla fase estrusione!
|
|
UPDATE #QuoteWorkInt
|
|
SET FC4UG = (cp.FC * cp.QuotaPlantStd / cp.QuotaManStd) / qwi.NetProd
|
|
, VC4UG = (cp.VC * cp.QuotaPlantStd / cp.QuotaManStd) / qwi.NetProd
|
|
, OH4UG = (cp.OH * cp.QuotaPlantStd / cp.QuotaManStd) / qwi.NetProd
|
|
, SC4UG = cp.SC / ql.BatchQty
|
|
FROM #QuoteWorkInt qwi
|
|
INNER JOIN dbo.Cost2Plant cp ON qwi.CodPlant = cp.CodPlant AND qwi.ProcessNum = cp.ProcessNum
|
|
INNER JOIN dbo.QuoteList ql ON qwi.QuoteType = ql.QuoteType AND qwi.CodQuote = ql.CodQuote AND qwi.QuoteRev = ql.QuoteRev
|
|
WHERE qwi.ProcessNum = '01'
|
|
|
|
-- inserisco lavorazione incestatura!
|
|
INSERT INTO #QuoteWorkInt (QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, Class03)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '02', @CodPlant, @KeyAM, @KeyAMI, @RawMat
|
|
|
|
-- inserisco dati mancanti di DSR x incestatura come 1 - OUT/IN
|
|
UPDATE #QuoteWorkInt
|
|
SET DSR = 1 - CAST(td.TotOUT AS DECIMAL(18,6))/CAST(td.TotIN AS DECIMAL(18,6))
|
|
FROM #QuoteWorkInt qwi
|
|
INNER JOIN dbo.TabDifett td ON qwi.Class02 = td.KeyAMI AND qwi.ProcessNum = td.ProcessNum
|
|
WHERE qwi.ProcessNum = '02' -- solo incestatura
|
|
|
|
-- inserisco lavorazione FORNO!
|
|
INSERT INTO #QuoteWorkInt(QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, Class03)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '03', @CodPlant, @KeyAM, @KeyAMI, @RawMat
|
|
|
|
-- inserisco lavorazione imballo!
|
|
INSERT INTO #QuoteWorkInt(QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, Class03, Class04, Class05)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '04', @CodPlant, @KeyAM, @KeyAMIL, @RawMat, @CodItem, @KeyAMI
|
|
|
|
-- calcolo produttività netta nella fase imballo
|
|
-- UPDATE qwi
|
|
-- SET NetProd = CASE ti.Durata WHEN 0 THEN 0 ELSE ti.TotOut / ti.Durata END
|
|
-- FROM #QuoteWorkInt qwi
|
|
-- INNER JOIN dbo.TabImbArt ti ON qwi.Class04 = ti.KeyA
|
|
-- WHERE qwi.ProcessNum = '04' -- solo imballo
|
|
|
|
UPDATE qwi
|
|
SET NetProd = CASE @PDurata WHEN 0 THEN 0 ELSE @PTotQta / @PDurata END
|
|
FROM #QuoteWorkInt AS qwi
|
|
-- INNER JOIN dbo.TabImbArt ti ON qwi.Class04 = ti.KeyA
|
|
WHERE qwi.ProcessNum = '04' -- solo imballo
|
|
|
|
-- ADESSO LO FACCIO GIA' NELLA FUNZIONE DI RECUPERO DATI PACKAGE f_getDataCodPackag
|
|
---- Se Produttività netta ancora = 0 la leggo nella tabella Gruppo Imballo ( Packaging )
|
|
--IF ( SELECT NetProd FROM #QuoteWorkInt WHERE ProcessNum = '04' ) = 0
|
|
-- BEGIN
|
|
-- UPDATE qwi
|
|
-- SET NetProd = CASE ti.Durata WHEN 0 THEN 0 ELSE ti.TotOut / ti.Durata END
|
|
-- FROM #QuoteWorkInt qwi
|
|
-- INNER JOIN dbo.TabImbGrp ti ON ti.CodPackag = @CodPackag -- packag generico dell' offerta
|
|
-- WHERE qwi.ProcessNum = '04' -- solo imballo
|
|
-- END
|
|
|
|
-- salvo numero imballatori
|
|
--SELECT @NumImb = ISNULL(NumImb,0)
|
|
--FROM dbo.TabImbArt
|
|
--WHERE KeyA = @CodItem
|
|
|
|
-- parametro num imballatori
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '04', 'QuotaMan', @NumImb
|
|
|
|
-- parametro Livello search package/imballo
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '04', 'LivPackage', @PLiv
|
|
|
|
-- parametro Livello search package/imballo
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '04', 'LivPackageDett', @PLivDett
|
|
|
|
-- calcolo i costi legati alla fase di imballo!
|
|
UPDATE #QuoteWorkInt
|
|
SET FC4UG = ( ( cp.FC * cp.QuotaPlantStd ) * ( @NumImb / cp.QuotaManStd ) ) / qwi.NetProd
|
|
, VC4UG = ( ( cp.VC * cp.QuotaPlantStd ) * ( @NumImb / cp.QuotaManStd ) ) / qwi.NetProd
|
|
, OH4UG = ( ( cp.OH * cp.QuotaPlantStd ) * ( @NumImb / cp.QuotaManStd ) ) / qwi.NetProd
|
|
, SC4UG = cp.SC / ql.BatchQty
|
|
FROM #QuoteWorkInt qwi
|
|
INNER JOIN dbo.Cost2Plant cp ON qwi.CodPlant = cp.CodPlant AND qwi.ProcessNum = cp.ProcessNum
|
|
INNER JOIN dbo.QuoteList ql ON qwi.QuoteType = ql.QuoteType AND qwi.CodQuote = ql.CodQuote AND qwi.QuoteRev = ql.QuoteRev
|
|
WHERE qwi.ProcessNum = '04' -- solo imballo
|
|
|
|
-- inserisco dati mancanti di DSR x imballo come 1 - OUT/IN
|
|
UPDATE qwi
|
|
SET DSR = 1 - CAST(td.TotOUT AS DECIMAL(18,6))/CAST(td.TotIN AS DECIMAL(18,6))
|
|
FROM #QuoteWorkInt qwi
|
|
INNER JOIN dbo.TabDifett td ON qwi.Class05 = td.KeyAMI AND qwi.ProcessNum = td.ProcessNum
|
|
WHERE qwi.ProcessNum = '04' -- solo imballo
|
|
|
|
-- recupero le MAC fase 01
|
|
SELECT @MAC_SC = MCR
|
|
,@MAC_ST = WCR
|
|
FROM #QuoteWorkInt
|
|
WHERE ProcessNum = '01'
|
|
|
|
-- recupero le MAC fase 02
|
|
SELECT @MAC_IN = DCR
|
|
FROM #QuoteWorkInt
|
|
WHERE ProcessNum = '02'
|
|
|
|
-- recupero le MAC fase 04
|
|
SELECT @MAC_IM = DCR
|
|
FROM #QuoteWorkInt
|
|
WHERE ProcessNum = '04'
|
|
|
|
-- calcolo percentuale vendita rottame
|
|
SELECT @SSR = SSR
|
|
FROM dbo.RawMatDet
|
|
WHERE RawMat = @RawMat
|
|
|
|
|
|
-- NOTA : la transazione posso probabilmente iniziarla qui visto che è il
|
|
-- primo Update/insert/delete su tabelle non temporanee
|
|
|
|
-- update rese RawMat!
|
|
UPDATE dbo.QuoteRM
|
|
SET FCR = @MAC_SC * @MAC_ST * @MAC_IN * @MAC_IM
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
AND RawMat = @RawMat
|
|
|
|
-- inserisco i costi delle utilities in QuoteOC
|
|
|
|
-- inserisco altri costi x lavorazione estrusione! GAS ed EE
|
|
INSERT INTO #QuoteOC(QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, TotQty, TotCost, Quota)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '01', @CodPlant, CodUtil, @RawMat, @BatchQty, UnitCost * @BatchQty, 1
|
|
FROM dbo.Utilities
|
|
WHERE CodPlant = @CodPlant
|
|
|
|
|
|
/*************************************************************
|
|
* MATRICE
|
|
*
|
|
* calcolo prezzo e durata matrice con procedura a 5 step...
|
|
* A) media ponderata prezzo ed ExpLife da DiesDet selezionando x CodItem + CodDiesGroup
|
|
* B) EOLLife x media ponderata su DiesDet dove Active = 0 e vita cmq superiore 5000 KG ( escludendo rotture accidentali )
|
|
* C) SE prezzo = 0 --> prendo prezzo da DiesGroupDet selezionando x CodDiesGroup
|
|
* D) Se EOL = 0 --> prendo ExpLife della singola matrice, se è 0 --> prendo EOLLife da DiesGroupDet selezionando x CodDiesGroup
|
|
* E) Calcolo Price / Life
|
|
*
|
|
*************************************************************/
|
|
|
|
-- (A) da DiesDet
|
|
SELECT @DiesPrice = SUM(ISNULL(Price, 0) * ISNULL(ActLife, 1)) / SUM(ISNULL(ActLife, 1)),
|
|
@DiesExpLife = SUM(ISNULL(ExpLife, 0) * ISNULL(ActLife, 1)) / SUM(ISNULL(ActLife, 1))
|
|
FROM dbo.DiesDet
|
|
WHERE CodItem = @CodItem
|
|
AND CodDiesGroup = @CodDiesGroup
|
|
GROUP BY CodItem, CodDiesGroup
|
|
|
|
-- (B) da DiesDet
|
|
SELECT @DiesEOLife = AVG(ISNULL(ActLife, 0))
|
|
FROM dbo.DiesDet
|
|
WHERE CodItem = @CodItem
|
|
AND CodDiesGroup = @CodDiesGroup
|
|
AND Active = 0 -- solo matrici rottamate
|
|
AND ActLife > 5000 -- solo se hanno Life > 5000 Kg ( non rotture accidentali )
|
|
GROUP BY CodItem, CodDiesGroup
|
|
|
|
SET @DiesPrice = ISNULL(@DiesPrice,0)
|
|
SET @DiesExpLife = ISNULL(@DiesExpLife,0)
|
|
SET @DiesEOLife = ISNULL(@DiesEOLife,0)
|
|
|
|
-- (C) verifico se prezzo è OK...
|
|
IF (@DiesPrice = 0)
|
|
BEGIN
|
|
-- calcolo da DiesGroupDet
|
|
SELECT @DiesPrice = ISNULL(Price, 0)
|
|
FROM dbo.DiesGroupDet
|
|
WHERE CodDiesGroup = @CodDiesGroup
|
|
END
|
|
|
|
-- (D) verifico se vita è OK...
|
|
IF (@DiesEOLife = 0)
|
|
BEGIN
|
|
-- uso exp life articolo...
|
|
SET @DiesEOLife = @DiesExpLife
|
|
END
|
|
-- controllo che non sia nulla/vuota la durata...
|
|
IF (@DiesEOLife = 0)
|
|
BEGIN
|
|
SELECT @DiesEOLife = CASE WHEN EOLLife > 0 THEN EOLLife ELSE ExpLife END
|
|
FROM DiesGroupDet
|
|
WHERE CodDiesGroup = @CodDiesGroup
|
|
END
|
|
|
|
-- controllo che non sia nulla/vuota la durata...
|
|
IF ( @DiesEOLife = 0)
|
|
BEGIN
|
|
SET @DiesEOLife = 1 -- metto 1 kg che è sbagliato e mi fa esplodere prezzo matrice ma non blocca calcoli
|
|
END
|
|
|
|
-- (E) Calcolo price/life!
|
|
SET @DiesPriceLife = @DiesPrice / @DiesEOLife
|
|
|
|
-- (D) verifico se vita è OK...
|
|
IF (@DiesPriceLife = 0)
|
|
BEGIN
|
|
SET @DiesPriceLife = 1
|
|
SET @valid = 0
|
|
END
|
|
|
|
-- inserisco costi per Matrice: costo e durata da matrice, se non ci sono da gruppo, (anche solo uno dei due, ovviamente più facile trovare durata x matrice...)
|
|
INSERT INTO #QuoteOC(QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, TotQty, TotCost, Quota, valid)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '01', @CodPlant, 'MATRICE', @RawMat, @BatchQty, @DiesPriceLife * @BatchQty, 1, @valid
|
|
|
|
|
|
-- inserisco parametri calcolati x matrice
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'DiesPrice', @DiesPrice
|
|
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'DiesExpLife', @DiesExpLife
|
|
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'DiesEOLife', @DiesEOLife
|
|
|
|
/*************************************************************
|
|
* VENDITA ROTTAME
|
|
*
|
|
* calcolo COSTO DI VENDITA PER LE 2 FASI ESTRUSIONE 01 ED IMBALLO 04
|
|
* - calcolo costi variabili fase 01 / 04
|
|
* - calcolo costo di vendita x fase 01 / 04
|
|
*************************************************************/
|
|
|
|
SELECT @OCF01 = SUM(ISNULL(C4UG,0))
|
|
FROM #QuoteOC
|
|
|
|
SELECT @VCF01 = @OCF01 + VC4UG
|
|
FROM #QuoteWorkInt
|
|
WHERE ProcessNum = '01'
|
|
|
|
SELECT @VCF04 = @OCF01 + SUM(VC4UG)
|
|
FROM #QuoteWorkInt
|
|
|
|
SELECT @SellCostF01 = ((@MAC_ST * @MAC_SC * @MAC_IN) - 1) * (q.RawMatCost + q.RawMatExtraCost - CASE WHEN SSVA > 0 THEN SSVA ELSE q.RawMatCost * SSVR END + @VCF01) -- ((prodotto delle MAC = inverso del prodotto delle rese) - 1) * (costo Al - prezzo rivendita + costi var fase 01)
|
|
, @RefCostF01 = -- ( (A - B) / 100 - C )
|
|
(
|
|
-- (A) = (costo pieno di acquisto + costi fase 1) * MAC * 100 (IN CENTESIMI)
|
|
((q.RawMatCost + q.RawMatExtraCost + @VCF01) * (@MAC_ST * @MAC_SC * @MAC_IN * 100))
|
|
-- (B) = ((MAC * 100) - 100) * Resa di fonderia * (costo pieno acquisto - costo di trasformazione))
|
|
- ((@MAC_ST * @MAC_SC * @MAC_IN * 100) - 100) * rmd.ProcYield * (q.RawMatCost + q.RawMatExtraCost + @VCF01 - rmd.ProcCost)
|
|
) / 100 -- divido per 100 finale
|
|
-- (C) = sottraggo costo pieno alluminio
|
|
- (q.RawMatCost + q.RawMatExtraCost + @VCF01)
|
|
FROM dbo.RawMatDet rmd
|
|
INNER JOIN dbo.QuoteRM q ON q.RawMat = rmd.RawMat
|
|
WHERE q.QuoteType = @QuoteType
|
|
AND q.CodQuote = @CodQuote
|
|
AND q.QuoteRev = @QuoteRev
|
|
AND q.RawMat = @RawMat
|
|
|
|
SELECT @SellCostF04 = ((@MAC_IM) - 1) * (q.RawMatCost + q.RawMatExtraCost - CASE WHEN SSVA > 0 THEN SSVA ELSE q.RawMatCost * SSVR END + @VCF01 + @VCF04) -- ((prodotto delle MAC = inverso del prodotto delle rese) - 1) * (costo Al - prezzo rivendita + costi var fase 04)
|
|
, @RefCostF04 = -- ( (A - B) / 100 - C )
|
|
(
|
|
-- (A) = (costo pieno di acquisto + costi variabili fase 1 e 4) * MAC * 100 (IN CENTESIMI)
|
|
((q.RawMatCost + q.RawMatExtraCost + @VCF01 + @VCF04) * (@MAC_IM * 100))
|
|
-- (B) = ((MAC * 100) - 100) * Resa di fonderia * (costo pieno acquisto - costo di trasformazione))
|
|
- ((@MAC_IM * 100) - 100) * rmd.ProcYield * (q.RawMatCost + q.RawMatExtraCost + @VCF01 + @VCF04 - rmd.ProcCost)
|
|
) / 100 -- divido per 100 finale
|
|
-- (C) = sottraggo costo pieno alluminio
|
|
- (q.RawMatCost + q.RawMatExtraCost + @VCF01 + @VCF04)
|
|
|
|
-- NOTA: usiamo (q.RawMatCost + q.RawMatExtraCost + @VCF01) e non (q.RawMatCost + q.RawMatExtraCost + @VCF01 + @RefCostF01) perché la differenza è minimale, si tratta di 10/20 PPM...
|
|
|
|
FROM dbo.RawMatDet rmd
|
|
INNER JOIN dbo.QuoteRM q ON q.RawMat = rmd.RawMat
|
|
WHERE q.QuoteType = @QuoteType
|
|
AND q.CodQuote = @CodQuote
|
|
AND q.QuoteRev = @QuoteRev
|
|
AND q.RawMat = @RawMat
|
|
|
|
-- inserisco costi per VENDITA
|
|
INSERT INTO #QuoteOC(QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, TotQty, TotCost, Quota)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '01', @CodPlant, 'VENDITA', @RawMat, @BatchQty, @SellCostF01 * @BatchQty, @SSR
|
|
|
|
-- inserisco costi per ROTTAME
|
|
INSERT INTO #QuoteOC(QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, TotQty, TotCost, Quota)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '01', @CodPlant, 'ROTTAME', @RawMat, @BatchQty, @RefCostF01 * @BatchQty, 1 - @SSR
|
|
|
|
-- inserisco costi per VENDITA
|
|
INSERT INTO #QuoteOC(QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, TotQty, TotCost, Quota)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '04', @CodPlant, 'VENDITA', @RawMat, @BatchQty, @SellCostF04 * @BatchQty, @SSR
|
|
|
|
-- inserisco costi per ROTTAME
|
|
INSERT INTO #QuoteOC(QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, TotQty, TotCost, Quota)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '04', @CodPlant, 'ROTTAME', @RawMat, @BatchQty, @RefCostF04 * @BatchQty, 1 - @SSR
|
|
|
|
-- calcolo Package Cost e RMWeight da tab PackageDet
|
|
-- EXEC stp_packageCost @CodItem, @CodClient, @CodPackag, @PDesc=@PkgDesc OUTPUT, @RMWeight=@PRMWeight OUTPUT, @Weight=@PWeight OUTPUT, @Tare=@PTare OUTPUT, @PackCost=@PCost OUTPUT, @TareStRat=@PTareStRatio OUTPUT
|
|
-- stored sostituita perchè la maggior parte dei calcoli li ho già fatti
|
|
SELECT @PCost = RMCost / @PWeight
|
|
, @PRMWeight = RMWeight
|
|
, @PkgDesc = PackagDesc
|
|
, @PTareStRatio = ( RMWeight - @PTare) / @PWeight
|
|
FROM dbo.PackagDet
|
|
WHERE CodPackag = @CodPackag
|
|
|
|
-- inserisco costi per IMBALLO
|
|
INSERT INTO #QuoteOC(QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, TotQty, TotCost, Quota)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '04', @CodPlant, 'IMBALLO', @RawMat, @BatchQty, @PCost * @BatchQty, 1
|
|
|
|
|
|
-- inserisco parametri calcolati x imballaggio
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '04', 'PkgDesc', @PkgDesc
|
|
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '04', 'PRMWeight', @PRMWeight
|
|
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '04', 'PWeight', @PWeight
|
|
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '04', 'PTare', @PTare
|
|
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '04', 'TareStRatio', @PTareStRatio
|
|
|
|
|
|
---------------------------------------------
|
|
-- inserisco costi per TRASPORTI
|
|
---------------------------------------------
|
|
-- recupero zona da cliente...
|
|
SELECT @TranspZone = TranspZone
|
|
FROM dbo.ClientDet
|
|
WHERE CodClient = @CodClient
|
|
|
|
-- recupero tipo di trasporto
|
|
SELECT @HasTC = ISNULL(i.HasTC, 0)
|
|
FROM dbo.QuoteList q INNER JOIN Incoterms i ON q.CodInco = i.CodInco
|
|
WHERE q.QuoteType = @QuoteType
|
|
AND q.CodQuote = @CodQuote
|
|
AND q.QuoteRev = @QuoteRev
|
|
|
|
-- recupero costi trasporto
|
|
SELECT @TranspCost = TranspCost
|
|
FROM dbo.TranspCostDet
|
|
WHERE TranspZone = @TranspZone
|
|
|
|
INSERT INTO #QuoteOC(QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, TotQty, TotCost, Quota)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '04', @CodPlant, 'TRASPORTI', @RawMat, @BatchQty, @HasTC * @TranspCost * @BatchQty, 1
|
|
|
|
|
|
---------------------------------------------
|
|
-- inserisco costi per PROVVIGIONI
|
|
---------------------------------------------
|
|
SELECT @Provvig = ISNULL(a.QuotaProvvAg, 0)
|
|
FROM dbo.AgentsDet a
|
|
INNER JOIN ClientDet c ON a.CodAg = c.CodAg
|
|
INNER JOIN QuoteList q ON q.CodClient = c.CodClient
|
|
WHERE q.QuoteType = @QuoteType
|
|
AND q.CodQuote = @CodQuote
|
|
AND q.QuoteRev = @QuoteRev
|
|
|
|
-- inserisco costi per PROVVIGIONI
|
|
INSERT INTO #QuoteOC(QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, TotQty, TotCost, Quota)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '04', @CodPlant, 'PROVVIGIONI', @RawMat, @BatchQty, @Provvig * @BatchQty, 1
|
|
|
|
/* ==================================================
|
|
CARICO TABELLE EFFETTIVE
|
|
==================================================*/
|
|
|
|
-- carico quote parametri!
|
|
INSERT dbo.QuoteParam
|
|
SELECT * FROM #QuoteParam
|
|
|
|
-- carico lavorazioni INTERNE!
|
|
INSERT dbo.QuoteWorkInt -- ci sono valori calcolati quindi devo selezionare i campi
|
|
SELECT QuoteType, CodQuote, QuoteRev, NumWI, ProcessNum, CodPlant, Class01, Class02, Class03, Class04, Class05
|
|
, NetProd, WSR, MSR, DSR, FC4UG, VC4UG, OH4UG, SC4UG, valid
|
|
FROM #QuoteWorkInt
|
|
|
|
-- carico OTHERCOSTS
|
|
INSERT dbo.QuoteOC -- ci sono valori calcolati quindi devo selezionare i campi
|
|
SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Class02, Class03, Class04
|
|
, Class05, TotQty, TotCost, Quota, valid
|
|
FROM #QuoteOC
|
|
|
|
|
|
COMMIT TRAN
|
|
|
|
--SELECT * FROM #QuoteParam
|
|
--SELECT * FROM #QuoteWorkInt
|
|
--SELECT * FROM #QuoteOC
|
|
|
|
-- elimino temp table...
|
|
IF OBJECT_ID('tempdb..#QuoteParam') IS NOT NULL
|
|
DROP TABLE #QuoteParam
|
|
IF OBJECT_ID('tempdb..#QuoteWorkInt') IS NOT NULL
|
|
DROP TABLE #QuoteWorkInt
|
|
IF OBJECT_ID('tempdb..#QuoteOC') IS NOT NULL
|
|
DROP TABLE #QuoteOC
|
|
|
|
END]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[bit]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteWorkInt].[WSR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteWorkInt].[MSR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteWorkInt].[DSR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteOC].[TotCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteOC].[Quota]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteOC].[TotQty]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteParam]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteWorkInt]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteOC]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[@QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[@CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[@QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkExt]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkExt].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkExt].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkExt].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabProdSc]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[KeyAM]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabProdSc].[KeyAM]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabProdSc].[CodDiesGroup]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabProdSc].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabProdSc].[HoleNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[KeyAM]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabProdSc].[ProdTeo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabProdSc].[ScTec]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabProdSc].[KgTeo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabProdSc].[NumSMED]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[RawMat]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[BatchQty]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[ItemDescr]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[Class01]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[Class02]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[Class03]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_getDataCodPackag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_getDataCodPackag].[CodPackag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_getDataCodPackag].[TotQta]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_getDataCodPackag].[Weight]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_getDataCodPackag].[Tare]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_getDataCodPackag].[NumImb]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_getDataCodPackag].[Durata]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_getDataCodPackag].[LivPackag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_getDataCodPackag].[LivPackagDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[CodPackag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteParam].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteParam].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteParam].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteParam].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteParam].[Descr]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteParam].[Parameter]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet].[ClientName]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet].[CodClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_getSubstring]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[CodDies]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[CodDiesGroup]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[Active]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteWorkInt].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteWorkInt].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteWorkInt].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteWorkInt].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteWorkInt].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteWorkInt].[Class01]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteWorkInt].[Class02]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteWorkInt].[Class03]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteWorkInt].[NetProd]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteWorkInt].[WSR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabProdSc].[KgTeo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteWorkInt].[Class03]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[RawMat]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteWorkInt].[MSR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[CSR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteWorkInt].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteWorkInt].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteWorkInt].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteWorkInt].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteWorkInt].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteWorkInt].[FC4UG]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant].[FC]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant].[QuotaPlantStd]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant].[QuotaManStd]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteWorkInt].[NetProd]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteWorkInt].[VC4UG]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant].[VC]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteWorkInt].[OH4UG]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant].[OH]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteWorkInt].[SC4UG]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant].[SC]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[BatchQty]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteWorkInt].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabDifett]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteWorkInt].[Class02]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabDifett].[KeyAMI]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteWorkInt].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabDifett].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteWorkInt].[DSR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabDifett].[TotOUT]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabDifett].[TotIn]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteWorkInt].[Class04]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteWorkInt].[Class05]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteWorkInt].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteWorkInt].[Class05]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteWorkInt].[MCR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteWorkInt].[WCR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteWorkInt].[DCR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[SSR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[RawMat]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[FCR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[RawMat]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteOC].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteOC].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteOC].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteOC].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteOC].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteOC].[Class01]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteOC].[Class02]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteOC].[TotQty]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteOC].[TotCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteOC].[Quota]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Utilities]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Utilities].[CodUtil]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Utilities].[UnitCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Utilities].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[Price]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[ActLife]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[ExpLife]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet].[Price]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet].[CodDiesGroup]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet].[EOLLife]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet].[ExpLife]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteOC].[valid]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteOC].[C4UG]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[RawMat]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[RawMat]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[RawMatCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[RawMatExtraCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[SSVA]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[SSVR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[ProcYield]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[ProcCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[PackagDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[PackagDet].[RMCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[PackagDet].[RMWeight]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[PackagDet].[PackagDesc]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[PackagDet].[CodPackag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet].[TranspZone]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet].[CodClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Incoterms]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodInco]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Incoterms].[CodInco]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Incoterms].[HasTC]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TranspCostDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TranspCostDet].[TranspCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TranspCostDet].[TranspZone]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AgentsDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AgentsDet].[CodAg]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet].[CodAg]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet].[CodClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AgentsDet].[QuotaProvvAg]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteWorkInt].[NumWI]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteWorkInt].[valid]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteOC].[NumEx]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteOC].[Class03]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteOC].[Class04]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_07_02].[#QuoteOC].[Class05]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DynamicObjects">
|
|
<Entry>
|
|
<Element Type="SqlDynamicColumnSource" Name="[dbo].[stp_QL_update_07_02].[#QuoteParam]">
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[stp_QL_update_07_02].[#QuoteParam].[QuoteType]">
|
|
<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="[char]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[stp_QL_update_07_02].[#QuoteParam].[CodQuote]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[bigint]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[stp_QL_update_07_02].[#QuoteParam].[QuoteRev]">
|
|
<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].[stp_QL_update_07_02].[#QuoteParam].[NumP]">
|
|
<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].[stp_QL_update_07_02].[#QuoteParam].[ProcessNum]">
|
|
<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].[stp_QL_update_07_02].[#QuoteParam].[Descr]">
|
|
<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].[stp_QL_update_07_02].[#QuoteParam].[Parameter]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="100" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlDynamicColumnSource" Name="[dbo].[stp_QL_update_07_02].[#QuoteWorkInt]">
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[stp_QL_update_07_02].[#QuoteWorkInt].[QuoteType]">
|
|
<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="[char]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[stp_QL_update_07_02].[#QuoteWorkInt].[CodQuote]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[bigint]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[stp_QL_update_07_02].[#QuoteWorkInt].[QuoteRev]">
|
|
<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].[stp_QL_update_07_02].[#QuoteWorkInt].[NumWI]">
|
|
<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].[stp_QL_update_07_02].[#QuoteWorkInt].[ProcessNum]">
|
|
<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].[stp_QL_update_07_02].[#QuoteWorkInt].[CodPlant]">
|
|
<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].[stp_QL_update_07_02].[#QuoteWorkInt].[Class01]">
|
|
<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].[stp_QL_update_07_02].[#QuoteWorkInt].[Class02]">
|
|
<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].[stp_QL_update_07_02].[#QuoteWorkInt].[Class03]">
|
|
<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].[stp_QL_update_07_02].[#QuoteWorkInt].[Class04]">
|
|
<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].[stp_QL_update_07_02].[#QuoteWorkInt].[Class05]">
|
|
<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].[stp_QL_update_07_02].[#QuoteWorkInt].[NetProd]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="3" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[stp_QL_update_07_02].[#QuoteWorkInt].[WSR]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="8" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[stp_QL_update_07_02].[#QuoteWorkInt].[MSR]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="8" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[stp_QL_update_07_02].[#QuoteWorkInt].[DSR]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="8" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[stp_QL_update_07_02].[#QuoteWorkInt].[FC4UG]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[stp_QL_update_07_02].[#QuoteWorkInt].[VC4UG]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[stp_QL_update_07_02].[#QuoteWorkInt].[OH4UG]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[stp_QL_update_07_02].[#QuoteWorkInt].[SC4UG]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_update_07_02].[#QuoteWorkInt].[WYR]">
|
|
<Property Name="ExpressionScript">
|
|
<Value><![CDATA[((1)-[WSR])]]></Value>
|
|
</Property>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_update_07_02].[#QuoteWorkInt].[MYR]">
|
|
<Property Name="ExpressionScript">
|
|
<Value><![CDATA[((1)-[MSR])]]></Value>
|
|
</Property>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_update_07_02].[#QuoteWorkInt].[DYR]">
|
|
<Property Name="ExpressionScript">
|
|
<Value><![CDATA[((1)-[DSR])]]></Value>
|
|
</Property>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_update_07_02].[#QuoteWorkInt].[WCR]">
|
|
<Property Name="ExpressionScript">
|
|
<Value><![CDATA[((1)/((1)-[WSR]))]]></Value>
|
|
</Property>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_update_07_02].[#QuoteWorkInt].[MCR]">
|
|
<Property Name="ExpressionScript">
|
|
<Value><![CDATA[((1)/((1)-[MSR]))]]></Value>
|
|
</Property>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_update_07_02].[#QuoteWorkInt].[DCR]">
|
|
<Property Name="ExpressionScript">
|
|
<Value><![CDATA[((1)/((1)-[DSR]))]]></Value>
|
|
</Property>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[stp_QL_update_07_02].[#QuoteWorkInt].[valid]">
|
|
<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>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlDynamicColumnSource" Name="[dbo].[stp_QL_update_07_02].[#QuoteOC]">
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[stp_QL_update_07_02].[#QuoteOC].[QuoteType]">
|
|
<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="[char]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[stp_QL_update_07_02].[#QuoteOC].[CodQuote]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[bigint]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[stp_QL_update_07_02].[#QuoteOC].[QuoteRev]">
|
|
<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].[stp_QL_update_07_02].[#QuoteOC].[NumEx]">
|
|
<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].[stp_QL_update_07_02].[#QuoteOC].[ProcessNum]">
|
|
<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].[stp_QL_update_07_02].[#QuoteOC].[CodPlant]">
|
|
<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].[stp_QL_update_07_02].[#QuoteOC].[Class01]">
|
|
<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].[stp_QL_update_07_02].[#QuoteOC].[Class02]">
|
|
<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].[stp_QL_update_07_02].[#QuoteOC].[Class03]">
|
|
<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].[stp_QL_update_07_02].[#QuoteOC].[Class04]">
|
|
<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].[stp_QL_update_07_02].[#QuoteOC].[Class05]">
|
|
<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].[stp_QL_update_07_02].[#QuoteOC].[TotQty]">
|
|
<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].[stp_QL_update_07_02].[#QuoteOC].[TotCost]">
|
|
<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].[stp_QL_update_07_02].[#QuoteOC].[Quota]">
|
|
<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="SqlComputedColumn" Name="[dbo].[stp_QL_update_07_02].[#QuoteOC].[C4UG]">
|
|
<Property Name="ExpressionScript">
|
|
<Value><![CDATA[(([TotCost]*[Quota])/[TotQty])]]></Value>
|
|
</Property>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[stp_QL_update_07_02].[#QuoteOC].[valid]">
|
|
<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>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_QL_update_07_02].[@QuoteType]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA['Q']]></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>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_QL_update_07_02].[@CodQuote]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[0]]></Value>
|
|
</Property>
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[bigint]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_QL_update_07_02].[@QuoteRev]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![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="245" />
|
|
<Property Name="Length" Value="33286" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="



-- =============================================
-- Author:		Steamware
-- Create date: 2014.01.22
-- Description:	aggiorna le tabelle QuoteList con i dati selezionati dalla TabProdSc
-- =============================================
CREATE PROCEDURE [dbo].[stp_QL_update_07_02]
(
	@QuoteType	CHAR(1) = 'Q',
	@CodQuote	BIGINT	= 0,
	@QuoteRev	INT		= 0
) 
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_QL_update_30_01]">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
BEGIN
|
|
|
|
SET NOCOUNT ON;
|
|
|
|
-- dichiaro valori da recuperare
|
|
DECLARE @strTemp NVARCHAR(50) = '' --stringa temporanea x variabili "locali"
|
|
|
|
DECLARE @valid BIT
|
|
DECLARE @CodDiesGroup NVARCHAR(50)
|
|
DECLARE @CodPlant NVARCHAR(50)
|
|
DECLARE @CodPlantFix NVARCHAR(50) = ''
|
|
DECLARE @HoleNum INT
|
|
DECLARE @CodItem NVARCHAR(50) = '' --cod item
|
|
DECLARE @ItemDescr NVARCHAR(50) = '' -- descrizione item
|
|
DECLARE @KeyAM NVARCHAR(50) = ''
|
|
DECLARE @KeyAMI NVARCHAR(50) = ''
|
|
DECLARE @KeyAMIL NVARCHAR(50) = ''
|
|
DECLARE @NumSMED INT = 0 -- numero cambi
|
|
DECLARE @KgTeo DECIMAL(18, 6) = 0 -- kg totali
|
|
DECLARE @RawMat NVARCHAR(50)
|
|
DECLARE @ProdTeo DECIMAL(18,6)
|
|
DECLARE @ScTec DECIMAL(18,6)
|
|
DECLARE @BatchQty INT
|
|
DECLARE @MAC_SC DECIMAL(18,6) -- Messa a cento scarto cesoia
|
|
DECLARE @MAC_ST DECIMAL(18,6) -- Messa a cento scarto tecnico
|
|
DECLARE @MAC_IN DECIMAL(18,6) -- Messa a cento difettosità all'incestatura
|
|
DECLARE @MAC_IM DECIMAL(18,6) -- Messa a cento difettosità all'imballo
|
|
DECLARE @SSR DECIMAL(9,6) -- percentuale vendita rottame
|
|
DECLARE @DiesPrice DECIMAL(9,3) -- prezzo matrice
|
|
DECLARE @DiesEOLife DECIMAL(9,2) -- durata matrice
|
|
DECLARE @DiesExpLife DECIMAL(9,2) -- durata matrice
|
|
DECLARE @DiesPriceLife DECIMAL(18,6) -- Price/Life matrice
|
|
DECLARE @OCF01 DECIMAL(18,6) = 0 -- altri costi di fase 01
|
|
DECLARE @VCF01 DECIMAL(18,6) = 0 -- costi variabili di fase 01
|
|
DECLARE @VCF04 DECIMAL(18,6) = 0 -- costi variabili di fase 04
|
|
DECLARE @SellCostF01 DECIMAL(18,6) = 0 -- costo vendita fase 01
|
|
DECLARE @SellCostF04 DECIMAL(18,6) = 0 -- costo vendita fase 04
|
|
DECLARE @RefCostF01 DECIMAL(18,6) = 0 -- costo rifusione fase 01
|
|
DECLARE @RefCostF04 DECIMAL(18,6) = 0 -- costo rifusione fase 04
|
|
-- IMBALLO
|
|
DECLARE @CodPackag NVARCHAR(50) = '0' -- codice dell'imballo
|
|
DECLARE @CodClient NVARCHAR(50) = '' -- codice cliente
|
|
DECLARE @NumImb DECIMAL(9,6) = 0 -- num imballatori
|
|
DECLARE @PkgDesc NVARCHAR(50) = '' -- descrizione imballo
|
|
DECLARE @PRMWeight DECIMAL(9,4) = 0 -- peso dell'imballo
|
|
DECLARE @PWeight DECIMAL(9,4) = 0 -- peso del pacco
|
|
DECLARE @PTare DECIMAL(9,4) = 0 -- media delal tara di imballo dichiarata
|
|
DECLARE @PCost DECIMAL(9,6) = 0 -- costo unitario dell'imballo (al kg)
|
|
DECLARE @PTareStRatio DECIMAL(9,4) = 0 -- coefficiente di recupero tara/prodotto
|
|
|
|
-- TRASPORTI
|
|
DECLARE @TranspZone NVARCHAR(50) = '', -- codice ZONA
|
|
@TranspCost DECIMAL(9,6), -- costo di trasporto
|
|
@HasTC INT
|
|
|
|
-- PROVVIGIONI
|
|
DECLARE @Provvig DECIMAL(9,6) -- provvigione agente
|
|
|
|
-- default: validità è true!
|
|
SET @valid = 1
|
|
|
|
-- =================================================
|
|
-- CREAZIONE TEMP TABLE
|
|
-- =================================================
|
|
|
|
-- elimino e ricreo #QuoteParam temp table...
|
|
IF OBJECT_ID('tempdb..#QuoteParam') IS NOT NULL
|
|
DROP TABLE #QuoteParam
|
|
|
|
CREATE TABLE #QuoteParam
|
|
(
|
|
[QuoteType] [char](1) NOT NULL,
|
|
[CodQuote] [bigint] NOT NULL,
|
|
[QuoteRev] [int] NOT NULL,
|
|
[NumP] [int] IDENTITY(1,1) NOT NULL,
|
|
[ProcessNum] [nvarchar](50) NOT NULL,
|
|
[Descr] [nvarchar](50) NOT NULL,
|
|
[Parameter] [nvarchar](100) NOT NULL,
|
|
--PRIMARY KEY
|
|
-- ( [NumP] ASC, [QuoteType] ASC, [CodQuote] ASC, [QuoteRev] ASC ) WITH (PAD_INDEX = ON, FILLFACTOR = 90 )
|
|
)
|
|
|
|
-- elimino e ricreo #QuoteParam temp table...
|
|
IF OBJECT_ID('tempdb..#QuoteWorkInt') IS NOT NULL
|
|
DROP TABLE #QuoteWorkInt
|
|
|
|
CREATE TABLE #QuoteWorkInt
|
|
(
|
|
[QuoteType] [char](1) NOT NULL,
|
|
[CodQuote] [bigint] NOT NULL,
|
|
[QuoteRev] [int] NOT NULL,
|
|
[NumWI] [int] IDENTITY(1,1) NOT NULL,
|
|
[ProcessNum] [nvarchar](50) NOT NULL,
|
|
[CodPlant] [nvarchar](50) NOT NULL,
|
|
[Class01] [nvarchar](50) NOT NULL DEFAULT (''),
|
|
[Class02] [nvarchar](50) NOT NULL DEFAULT (''),
|
|
[Class03] [nvarchar](50) NOT NULL DEFAULT (''),
|
|
[Class04] [nvarchar](50) NOT NULL DEFAULT (''),
|
|
[Class05] [nvarchar](50) NOT NULL DEFAULT (''),
|
|
[NetProd] [decimal](9, 3) NOT NULL DEFAULT ((0)),
|
|
[WSR] [decimal](9, 8) NOT NULL DEFAULT ((0)),
|
|
[MSR] [decimal](9, 8) NOT NULL DEFAULT ((0)),
|
|
[DSR] [decimal](9, 8) NOT NULL DEFAULT ((0)),
|
|
[FC4UG] [decimal](9, 6) NOT NULL DEFAULT ((0)),
|
|
[VC4UG] [decimal](9, 6) NOT NULL DEFAULT ((0)),
|
|
[OH4UG] [decimal](9, 6) NOT NULL DEFAULT ((0)),
|
|
[SC4UG] [decimal](9, 6) NOT NULL DEFAULT ((0)),
|
|
[WYR] AS ((1)-[WSR]),
|
|
[MYR] AS ((1)-[MSR]),
|
|
[DYR] AS ((1)-[DSR]),
|
|
[WCR] AS ((1)/((1)-[WSR])),
|
|
[MCR] AS ((1)/((1)-[MSR])),
|
|
[DCR] AS ((1)/((1)-[DSR])),
|
|
[valid] [bit] NOT NULL DEFAULT((1)),
|
|
)
|
|
|
|
-- elimino e ricreo #QuoteParam temp table...
|
|
IF OBJECT_ID('tempdb..#QuoteOC') IS NOT NULL
|
|
DROP TABLE #QuoteOC
|
|
|
|
CREATE TABLE #QuoteOC
|
|
(
|
|
[QuoteType] [char](1) NOT NULL,
|
|
[CodQuote] [bigint] NOT NULL,
|
|
[QuoteRev] [int] NOT NULL,
|
|
[NumEx] [int] IDENTITY(1,1) NOT NULL,
|
|
[ProcessNum] [nvarchar](50) NOT NULL,
|
|
[CodPlant] [nvarchar](50) NOT NULL,
|
|
[Class01] [nvarchar](50) NOT NULL DEFAULT (''),
|
|
[Class02] [nvarchar](50) NOT NULL DEFAULT (''),
|
|
[Class03] [nvarchar](50) NOT NULL DEFAULT (''),
|
|
[Class04] [nvarchar](50) NOT NULL DEFAULT (''),
|
|
[Class05] [nvarchar](50) NOT NULL DEFAULT (''),
|
|
[TotQty] [decimal](18, 6) NOT NULL DEFAULT ((1)),
|
|
[TotCost] [decimal](18, 6) NOT NULL DEFAULT ((0)),
|
|
[Quota] [decimal](18, 6) NOT NULL DEFAULT ((1)),
|
|
[C4UG] AS (([TotCost]*[Quota])/[TotQty]),
|
|
[valid] [bit] NOT NULL DEFAULT ((1))
|
|
)
|
|
|
|
-- ===================================
|
|
-- INIZIO TRANSAZIONE
|
|
-- ===================================
|
|
SET XACT_ABORT ON;
|
|
BEGIN TRAN
|
|
|
|
---------------------------------------
|
|
-- svuotamento iniziale
|
|
---------------------------------------
|
|
|
|
-- elimino lavorazioni esterne!
|
|
DELETE
|
|
FROM dbo.QuoteWorkExt
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
|
|
-- se ci sono eccezioni nella tab dell'anagrafico articoli imposto il codPlant desiderato
|
|
SET @CodPlantFix = ISNULL ( ( SELECT id.CodPlant FROM dbo.ItemDet id INNER JOIN dbo.QuoteList ql ON id.CodItem = ql.CodItem
|
|
WHERE ql.QuoteType = @QuoteType
|
|
AND ql.CodQuote = @CodQuote
|
|
AND ql.QuoteRev = @QuoteRev ), '' )
|
|
|
|
-- recupero da dati dell'offerta il valore del cliente
|
|
SELECT @CodClient = CodClient
|
|
FROM dbo.QuoteList
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
|
|
-- recupero dati!!
|
|
SELECT TOP 1 @CodItem = ql.CodItem
|
|
, @CodDiesGroup = tps.CodDiesGroup
|
|
, @CodPlant = CASE WHEN @CodPlantFix <> '' THEN @CodPlantFix ELSE tps.CodPlant END
|
|
, @HoleNum = tps.HoleNum
|
|
, @KeyAM = ql.KeyAM
|
|
, @KeyAMI = ql.KeyAM + '-' + ISNULL(@CodPlant,'0000')
|
|
, @KeyAMIL = ql.KeyAM + '-' + ISNULL(@CodPlant,'0000') + '-' + CAST(ISNULL(tps.HoleNum,0) AS NVARCHAR(10))
|
|
, @ProdTeo = tps.ProdTeo
|
|
, @ScTec = tps.ScTec
|
|
, @KgTeo = tps.KgTeo
|
|
, @NumSMED = tps.NumSMED
|
|
, @RawMat = ql.RawMat
|
|
, @BatchQty = ql.BatchQty
|
|
, @ItemDescr= i.ItemDescr
|
|
FROM dbo.QuoteList ql
|
|
INNER JOIN dbo.TabProdSc tps ON ql.KeyAM = tps.KeyAM
|
|
INNER JOIN dbo.ItemDet i ON ql.CodItem = i.CodItem
|
|
WHERE ql.QuoteType = @QuoteType
|
|
AND ql.CodQuote = @CodQuote
|
|
AND ql.QuoteRev = @QuoteRev
|
|
ORDER BY tps.KgTeo DESC
|
|
|
|
-- recupero da dati dell'offerta il valore del package scelto
|
|
SET @CodPackag = ( SELECT dbo.f_getCodPackag( @CodItem , @CodClient ) )
|
|
|
|
-- e aggiorno QuoteRM
|
|
UPDATE dbo.QuoteRM
|
|
SET CodPackag = @CodPackag
|
|
FROM dbo.QuoteRM
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
VALUES (@QuoteType, @CodQuote, @QuoteRev, '01', 'ItemDescr', @ItemDescr)
|
|
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'CodifProfilo', Class01
|
|
FROM dbo.ItemDet
|
|
WHERE CodItem = @CodItem
|
|
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'ClasseMerc', Class02
|
|
FROM dbo.ItemDet
|
|
WHERE CodItem = @CodItem
|
|
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'CodClientAssoc', Class03
|
|
FROM dbo.ItemDet
|
|
WHERE CodItem = @CodItem
|
|
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'ClientNameAssoc', ClientDet.ClientName
|
|
FROM dbo.ItemDet INNER JOIN ClientDet ON ItemDet.Class03=ClientDet.CodClient
|
|
WHERE CodItem = @CodItem
|
|
|
|
-- INFORMAZIONI su MATRICE
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
VALUES (@QuoteType, @CodQuote, @QuoteRev, '01', 'CodDiesGroup', @CodDiesGroup)
|
|
|
|
SET @strTemp = dbo.f_getSubstring(@CodDiesGroup, '-', 1) --@strTemp = SUBSTRING(@CodDiesGroup, 0, CHARINDEX('-', @CodDiesGroup)) -- !!!fare con finc Gian
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
VALUES (@QuoteType, @CodQuote, @QuoteRev, '01', 'TipoDies', @strTemp)
|
|
|
|
SET @strTemp = dbo.f_getSubstring(@CodDiesGroup, '-', 2) --@strTemp = SUBSTRING(REPLACE(@CodDiesGroup, @strTemp,''), 2, CHARINDEX('-', @CodDiesGroup)) -- !!!fare con finc Gian
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
VALUES (@QuoteType, @CodQuote, @QuoteRev, '01', 'DiamDies', @strTemp)
|
|
|
|
SET @strTemp = dbo.f_getSubstring(@CodDiesGroup, '-', 3) --@strTemp = SUBSTRING(REPLACE(@CodDiesGroup, @strTemp,''), 5, CHARINDEX('-', @CodDiesGroup)) -- !!!fare con finc Gian
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
VALUES (@QuoteType, @CodQuote, @QuoteRev, '01', 'HoleNumDies', @strTemp)
|
|
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'NumDiesInList', COUNT(CodDies)
|
|
FROM dbo.DiesDet
|
|
WHERE CodDiesGroup = @CodDiesGroup AND CodItem = @CodItem
|
|
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'NumDiesExaust', COUNT(CodDies)
|
|
FROM dbo.DiesDet
|
|
WHERE CodDiesGroup = @CodDiesGroup AND Active = 0
|
|
|
|
-- inserisco parametri calcolati x lavorazione estruzione
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'CodPlant', @CodPlant
|
|
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'KeyAM', @KeyAM
|
|
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'KeyAMIL', @KeyAMIL
|
|
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'NumSMED', @NumSMED
|
|
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'KgTeo', @KgTeo
|
|
|
|
-- tolto: è duplicato di HoleNumDies
|
|
--INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
--SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'HoleNum', @HoleNum
|
|
|
|
-- inserisco lavorazione estrusione!
|
|
INSERT INTO #QuoteWorkInt (QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, Class03, NetProd, WSR)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '01', @CodPlant, @KeyAM, @KeyAMIL, @RawMat, @ProdTeo, @ScTec
|
|
|
|
INSERT INTO #QuoteParam (QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'KgProdotti', SUM(KgTeo)
|
|
FROM dbo.QuoteList ql
|
|
INNER JOIN dbo.TabProdSc tps ON ql.KeyAM = tps.KeyAM
|
|
WHERE ql.QuoteType = @QuoteType
|
|
AND ql.CodQuote = @CodQuote
|
|
AND ql.QuoteRev = @QuoteRev
|
|
|
|
--SELECT @cont = @cont + 1
|
|
--INSERT INTO QuoteParam(QuoteType, CodQuote, QuoteRev, NumP, ProcessNum, Descr, Parameter)
|
|
--SELECT @QuoteType, @CodQuote, @QuoteRev, @cont, '01', 'NumLotti', COUNT(*)
|
|
--FROM QuoteList ql INNER JOIN TabProdSc tps ON ql.KeyAM = tps.KeyAM
|
|
--WHERE ql.QuoteType = @QuoteType
|
|
-- AND ql.CodQuote = @CodQuote
|
|
-- AND ql.QuoteRev = @QuoteRev
|
|
|
|
-- inserisco dati mancanti di MSR/CSR (scarto cesoia x estrusione) - DSR è NULLO x estrusione!
|
|
UPDATE qwi
|
|
SET MSR = rmd.CSR
|
|
FROM #QuoteWorkInt qwi
|
|
INNER JOIN dbo.RawMatDet rmd ON qwi.Class03 = rmd.RawMat
|
|
|
|
-- calcolo i costi legati alla fase estrusione!
|
|
UPDATE qwi
|
|
SET FC4UG = (cp.FC * cp.QuotaPlantStd / cp.QuotaManStd) / qwi.NetProd
|
|
, VC4UG = (cp.VC * cp.QuotaPlantStd / cp.QuotaManStd) / qwi.NetProd
|
|
, OH4UG = (cp.OH * cp.QuotaPlantStd / cp.QuotaManStd) / qwi.NetProd
|
|
, SC4UG = cp.SC / ql.BatchQty
|
|
FROM #QuoteWorkInt qwi
|
|
INNER JOIN dbo.Cost2Plant cp ON qwi.CodPlant = cp.CodPlant AND qwi.ProcessNum = cp.ProcessNum
|
|
INNER JOIN dbo.QuoteList ql ON qwi.QuoteType = ql.QuoteType AND qwi.CodQuote = ql.CodQuote AND qwi.QuoteRev = ql.QuoteRev
|
|
WHERE qwi.ProcessNum = '01'
|
|
|
|
-- inserisco lavorazione incestatura!
|
|
INSERT INTO #QuoteWorkInt (QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, Class03)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '02', @CodPlant, @KeyAM, @KeyAMI, @RawMat
|
|
|
|
-- inserisco dati mancanti di DSR x incestatura come 1 - OUT/IN
|
|
UPDATE qwi
|
|
SET DSR = 1 - CAST(td.TotOUT AS DECIMAL(18,6))/CAST(td.TotIN AS DECIMAL(18,6))
|
|
FROM #QuoteWorkInt qwi
|
|
INNER JOIN dbo.TabDifett td ON qwi.Class02 = td.KeyAMI AND qwi.ProcessNum = td.ProcessNum
|
|
WHERE qwi.ProcessNum = '02' -- solo incestatura
|
|
|
|
-- inserisco lavorazione FORNO!
|
|
INSERT INTO #QuoteWorkInt(QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, Class03)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '03', @CodPlant, @KeyAM, @KeyAMI, @RawMat
|
|
|
|
-- inserisco lavorazione imballo!
|
|
INSERT INTO #QuoteWorkInt(QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, Class03, Class04, Class05)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '04', @CodPlant, @KeyAM, @KeyAMIL, @RawMat, @CodItem, @KeyAMI
|
|
|
|
-- calcolo produttività netta nella fase imballo
|
|
UPDATE qwi
|
|
SET NetProd = CASE ti.Durata WHEN 0 THEN 0 ELSE ti.TotOut / ti.Durata END
|
|
FROM #QuoteWorkInt qwi
|
|
INNER JOIN dbo.TabImbArt ti ON qwi.Class04 = ti.KeyA
|
|
WHERE qwi.ProcessNum = '04' -- solo imballo
|
|
|
|
-- Se Produttività netta ancora = 0 la leggo nella tabella Gruppo Imballo ( Packaging )
|
|
IF ( SELECT NetProd FROM #QuoteWorkInt WHERE ProcessNum = '04' ) = 0
|
|
BEGIN
|
|
UPDATE qwi
|
|
SET NetProd = CASE ti.Durata WHEN 0 THEN 0 ELSE ti.TotOut / ti.Durata END
|
|
FROM #QuoteWorkInt qwi
|
|
INNER JOIN dbo.TabImbGrp ti ON ti.CodPackag = @CodPackag -- packag generico dell' offerta
|
|
WHERE qwi.ProcessNum = '04' -- solo imballo
|
|
END
|
|
|
|
-- salvo numero imballatori
|
|
SELECT @NumImb = ISNULL(NumImb,0)
|
|
FROM dbo.TabImbArt
|
|
WHERE KeyA = @CodItem
|
|
|
|
-- parametro num imballatori
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '04', 'QuotaMan', @NumImb
|
|
|
|
-- calcolo i costi legati alla fase di imballo!
|
|
-- QUI VA FATTO CALCOLO PUNTUALE SU quotaPlant tramite Articolo-Cliente / Articolo / Packaging
|
|
UPDATE qwi
|
|
SET FC4UG = (cp.FC * cp.QuotaPlantStd / cp.QuotaManStd) / qwi.NetProd
|
|
, VC4UG = (cp.VC * cp.QuotaPlantStd / cp.QuotaManStd) / qwi.NetProd
|
|
, OH4UG = (cp.OH * cp.QuotaPlantStd / cp.QuotaManStd) / qwi.NetProd
|
|
, SC4UG = cp.SC / ql.BatchQty
|
|
FROM #QuoteWorkInt qwi
|
|
INNER JOIN dbo.Cost2Plant cp ON qwi.CodPlant = cp.CodPlant AND qwi.ProcessNum = cp.ProcessNum
|
|
INNER JOIN dbo.QuoteList ql ON qwi.QuoteType = ql.QuoteType AND qwi.CodQuote = ql.CodQuote AND qwi.QuoteRev = ql.QuoteRev
|
|
WHERE qwi.ProcessNum = '04' -- solo imballo
|
|
|
|
-- inserisco dati mancanti di DSR x incestatura come 1 - OUT/IN
|
|
UPDATE qwi
|
|
SET DSR = 1 - CAST(td.TotOUT AS DECIMAL(18,6))/CAST(td.TotIN AS DECIMAL(18,6))
|
|
FROM #QuoteWorkInt qwi
|
|
INNER JOIN dbo.TabDifett td ON qwi.Class05 = td.KeyAMI AND qwi.ProcessNum = td.ProcessNum
|
|
WHERE qwi.ProcessNum = '04' -- solo imballo
|
|
|
|
-- recupero le MAC fase 01
|
|
SELECT
|
|
@MAC_SC = MCR
|
|
,@MAC_ST = WCR
|
|
FROM #QuoteWorkInt WITH (NOLOCK)
|
|
WHERE ProcessNum = '01'
|
|
|
|
-- recupero le MAC fase 02
|
|
SELECT
|
|
@MAC_IN = DCR
|
|
FROM #QuoteWorkInt WITH (NOLOCK)
|
|
WHERE ProcessNum = '02'
|
|
|
|
-- recupero le MAC fase 04
|
|
SELECT
|
|
@MAC_IM = DCR
|
|
FROM #QuoteWorkInt WITH (NOLOCK)
|
|
WHERE ProcessNum = '04'
|
|
|
|
-- calcolo percentuale vendita rottame
|
|
SELECT @SSR = SSR
|
|
FROM dbo.RawMatDet
|
|
WHERE RawMat = @RawMat
|
|
|
|
|
|
-- NOTA : la transazione posso probabilmente iniziarla qui visto che è il
|
|
-- primo Update/insert/delete su tabelle non temporanee
|
|
|
|
-- update rese RawMat!
|
|
UPDATE dbo.QuoteRM
|
|
SET FCR = @MAC_SC * @MAC_ST * @MAC_IN * @MAC_IM
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
AND RawMat = @RawMat
|
|
|
|
-- inserisco i costi delle utilities in QuoteOC
|
|
|
|
-- inserisco altri costi x lavorazione estrusione! GAS ed EE
|
|
INSERT INTO #QuoteOC(QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, TotQty, TotCost, Quota)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '01', @CodPlant, CodUtil, @RawMat, @BatchQty, UnitCost * @BatchQty, 1
|
|
FROM dbo.Utilities
|
|
WHERE CodPlant = @CodPlant
|
|
|
|
|
|
/*************************************************************
|
|
* MATRICE
|
|
*
|
|
* calcolo prezzo e durata matrice con procedura a 5 step...
|
|
* A) media ponderata prezzo ed ExpLife da DiesDet selezionando x CodItem + CodDiesGroup
|
|
* B) EOLLife x media ponderata su DiesDet dove Active = 0
|
|
* C) SE prezzo = 0 --> prendo prezzo da DiesGroupDet selezionando x CodDiesGroup
|
|
* D) Se EOL = 0 --> prendo ExpLife della singola matrice, se è 0 --> prendo EOLLife da DiesGroupDet selezionando x CodDiesGroup
|
|
* E) Calcolo Price / Life
|
|
*
|
|
*************************************************************/
|
|
|
|
-- (A) da DiesDet
|
|
SELECT @DiesPrice = SUM(ISNULL(Price, 0) * ISNULL(ActLife, 1)) / SUM(ISNULL(ActLife, 1)),
|
|
@DiesExpLife = SUM(ISNULL(ExpLife, 0) * ISNULL(ActLife, 1)) / SUM(ISNULL(ActLife, 1))
|
|
FROM dbo.DiesDet
|
|
WHERE CodItem = @CodItem
|
|
AND CodDiesGroup = @CodDiesGroup
|
|
GROUP BY CodItem, CodDiesGroup
|
|
|
|
-- (B) da DiesDet
|
|
SELECT @DiesEOLife = AVG(ISNULL(ActLife, 0))
|
|
FROM dbo.DiesDet
|
|
WHERE CodItem = @CodItem
|
|
AND CodDiesGroup = @CodDiesGroup
|
|
AND Active = 0
|
|
GROUP BY CodItem, CodDiesGroup
|
|
|
|
SET @DiesPrice = ISNULL(@DiesPrice,0)
|
|
SET @DiesExpLife = ISNULL(@DiesExpLife,0)
|
|
SET @DiesEOLife = ISNULL(@DiesEOLife,0)
|
|
|
|
-- (C) verifico se prezzo è OK...
|
|
IF (@DiesPrice = 0)
|
|
BEGIN
|
|
-- calcolo da DiesGroupDet
|
|
SELECT @DiesPrice = ISNULL(Price, 0)
|
|
FROM DiesGroupDet
|
|
WHERE CodDiesGroup = @CodDiesGroup
|
|
END
|
|
|
|
-- (D) verifico se vita è OK...
|
|
IF (@DiesEOLife = 0)
|
|
BEGIN
|
|
-- uso exp life articolo...
|
|
SET @DiesEOLife = @DiesExpLife
|
|
END
|
|
-- controllo che non sia nulla/vuota la durata...
|
|
IF (@DiesEOLife = 0)
|
|
BEGIN
|
|
SELECT @DiesEOLife = CASE WHEN EOLLife > 0 THEN EOLLife ELSE ExpLife END
|
|
FROM DiesGroupDet
|
|
WHERE CodDiesGroup = @CodDiesGroup
|
|
END
|
|
|
|
-- controllo che non sia nulla/vuota la durata...
|
|
IF (@DiesEOLife = 0)
|
|
BEGIN
|
|
SET @DiesEOLife = 1 -- metto 1 kg che è sbagliato e mi fa esplodere prezzo matrice ma non blocca calcoli
|
|
END
|
|
|
|
-- (E) Calcolo price/life!
|
|
SET @DiesPriceLife = @DiesPrice / @DiesEOLife
|
|
|
|
-- (D) verifico se vita è OK...
|
|
IF (@DiesPriceLife = 0)
|
|
BEGIN
|
|
SET @DiesPriceLife = 1
|
|
SET @valid = 0
|
|
END
|
|
|
|
-- inserisco costi per Matrice: costo e durata da matrice, se non ci sono da gruppo, (anche solo uno dei due, ovviamente più facile trovare durata x matrice...)
|
|
INSERT INTO #QuoteOC(QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, TotQty, TotCost, Quota, valid)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '01', @CodPlant, 'MATRICE', @RawMat, @BatchQty, @DiesPriceLife * @BatchQty, 1, @valid
|
|
|
|
|
|
-- inserisco parametri calcolati x matrice
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'DiesPrice', @DiesPrice
|
|
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'DiesExpLife', @DiesExpLife
|
|
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'DiesEOLife', @DiesEOLife
|
|
|
|
/*************************************************************
|
|
* VENDITA ROTTAME
|
|
*
|
|
* calcolo COSTO DI VENDITA PER LE 2 FASI ESTRUSIONE 01 ED IMBALLO 04
|
|
* - calcolo costi variabili fase 01 / 04
|
|
* - calcolo costo di vendita x fase 01 / 04
|
|
*************************************************************/
|
|
|
|
SELECT @OCF01 = SUM(ISNULL(C4UG,0))
|
|
FROM #QuoteOC WITH (NOLOCK)
|
|
|
|
SELECT @VCF01 = @OCF01 + VC4UG
|
|
FROM #QuoteWorkInt
|
|
WHERE ProcessNum = '01'
|
|
|
|
SELECT @VCF04 = @OCF01 + SUM(VC4UG)
|
|
FROM #QuoteWorkInt
|
|
|
|
SELECT @SellCostF01 = ((@MAC_ST * @MAC_SC * @MAC_IN) - 1) * (q.RawMatCost + q.RawMatExtraCost - CASE WHEN SSVA > 0 THEN SSVA ELSE q.RawMatCost * SSVR END + @VCF01) -- ((prodotto delle MAC = inverso del prodotto delle rese) - 1) * (costo Al - prezzo rivendita + costi var fase 01)
|
|
, @RefCostF01 = -- ( (A - B) / 100 - C )
|
|
(
|
|
-- (A) = (costo pieno di acquisto + costi fase 1) * MAC * 100 (IN CENTESIMI)
|
|
((q.RawMatCost + q.RawMatExtraCost + @VCF01) * (@MAC_ST * @MAC_SC * @MAC_IN * 100))
|
|
-- (B) = ((MAC * 100) - 100) * Resa di fonderia * (costo pieno acquisto - costo di trasformazione))
|
|
- ((@MAC_ST * @MAC_SC * @MAC_IN * 100) - 100) * rmd.ProcYield * (q.RawMatCost + q.RawMatExtraCost + @VCF01 - rmd.ProcCost)
|
|
) / 100 -- divido per 100 finale
|
|
-- (C) = sottraggo costo pieno alluminio
|
|
- (q.RawMatCost + q.RawMatExtraCost + @VCF01)
|
|
FROM dbo.RawMatDet rmd
|
|
INNER JOIN dbo.QuoteRM q ON q.RawMat = rmd.RawMat
|
|
WHERE q.QuoteType = @QuoteType
|
|
AND q.CodQuote = @CodQuote
|
|
AND q.QuoteRev = @QuoteRev
|
|
AND q.RawMat = @RawMat
|
|
|
|
SELECT @SellCostF04 = ((@MAC_IM) - 1) * (q.RawMatCost + q.RawMatExtraCost - CASE WHEN SSVA > 0 THEN SSVA ELSE q.RawMatCost * SSVR END + @VCF01 + @VCF04) -- ((prodotto delle MAC = inverso del prodotto delle rese) - 1) * (costo Al - prezzo rivendita + costi var fase 04)
|
|
, @RefCostF04 = -- ( (A - B) / 100 - C )
|
|
(
|
|
-- (A) = (costo pieno di acquisto + costi variabili fase 1 e 4) * MAC * 100 (IN CENTESIMI)
|
|
((q.RawMatCost + q.RawMatExtraCost + @VCF01 + @VCF04) * (@MAC_IM * 100))
|
|
-- (B) = ((MAC * 100) - 100) * Resa di fonderia * (costo pieno acquisto - costo di trasformazione))
|
|
- ((@MAC_IM * 100) - 100) * rmd.ProcYield * (q.RawMatCost + q.RawMatExtraCost + @VCF01 + @VCF04 - rmd.ProcCost)
|
|
) / 100 -- divido per 100 finale
|
|
-- (C) = sottraggo costo pieno alluminio
|
|
- (q.RawMatCost + q.RawMatExtraCost + @VCF01 + @VCF04)
|
|
|
|
-- NOTA: usiamo (q.RawMatCost + q.RawMatExtraCost + @VCF01) e non (q.RawMatCost + q.RawMatExtraCost + @VCF01 + @RefCostF01) perché la differenza è minimale, si tratta di 10/20 PPM...
|
|
|
|
FROM RawMatDet rmd INNER JOIN QuoteRM q ON q.RawMat = rmd.RawMat
|
|
WHERE q.QuoteType = @QuoteType
|
|
AND q.CodQuote = @CodQuote
|
|
AND q.QuoteRev = @QuoteRev
|
|
AND q.RawMat = @RawMat
|
|
|
|
-- inserisco costi per VENDITA
|
|
INSERT INTO #QuoteOC(QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, TotQty, TotCost, Quota)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '01', @CodPlant, 'VENDITA', @RawMat, @BatchQty, @SellCostF01 * @BatchQty, @SSR
|
|
|
|
-- inserisco costi per ROTTAME
|
|
INSERT INTO #QuoteOC(QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, TotQty, TotCost, Quota)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '01', @CodPlant, 'ROTTAME', @RawMat, @BatchQty, @RefCostF01 * @BatchQty, 1 - @SSR
|
|
|
|
-- inserisco costi per VENDITA
|
|
INSERT INTO #QuoteOC(QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, TotQty, TotCost, Quota)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '04', @CodPlant, 'VENDITA', @RawMat, @BatchQty, @SellCostF04 * @BatchQty, @SSR
|
|
|
|
-- inserisco costi per ROTTAME
|
|
INSERT INTO #QuoteOC(QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, TotQty, TotCost, Quota)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '04', @CodPlant, 'ROTTAME', @RawMat, @BatchQty, @RefCostF04 * @BatchQty, 1 - @SSR
|
|
|
|
EXEC stp_packageCost @CodItem, @CodClient, @CodPackag, @PDesc=@PkgDesc OUTPUT, @RMWeight=@PRMWeight OUTPUT, @Weight=@PWeight OUTPUT, @Tare=@PTare OUTPUT, @PackCost=@PCost OUTPUT, @TareStRat=@PTareStRatio OUTPUT
|
|
|
|
-- inserisco costi per IMBALLO
|
|
INSERT INTO #QuoteOC(QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, TotQty, TotCost, Quota)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '04', @CodPlant, 'IMBALLO', @RawMat, @BatchQty, @PCost * @BatchQty, 1
|
|
|
|
|
|
-- inserisco parametri calcolati x imballaggio
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '04', 'PkgDesc', @PkgDesc
|
|
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '04', 'PRMWeight', @PRMWeight
|
|
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '04', 'PWeight', @PWeight
|
|
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '04', 'PTare', @PTare
|
|
|
|
INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '04', 'TareStRatio', @PTareStRatio
|
|
|
|
|
|
---------------------------------------------
|
|
-- inserisco costi per TRASPORTI
|
|
---------------------------------------------
|
|
-- recupero zona da cliente...
|
|
SELECT @TranspZone = TranspZone
|
|
FROM dbo.ClientDet
|
|
WHERE CodClient = @CodClient
|
|
|
|
-- recupero tipo di trasporto
|
|
SELECT @HasTC = ISNULL(i.HasTC, 0)
|
|
FROM dbo.QuoteList q INNER JOIN Incoterms i ON q.CodInco = i.CodInco
|
|
WHERE q.QuoteType = @QuoteType
|
|
AND q.CodQuote = @CodQuote
|
|
AND q.QuoteRev = @QuoteRev
|
|
|
|
-- recupero costi trasporto
|
|
SELECT @TranspCost = TranspCost
|
|
FROM dbo.TranspCostDet
|
|
WHERE TranspZone = @TranspZone
|
|
|
|
INSERT INTO #QuoteOC(QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, TotQty, TotCost, Quota)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '04', @CodPlant, 'TRASPORTI', @RawMat, @BatchQty, @HasTC * @TranspCost * @BatchQty, 1
|
|
|
|
|
|
---------------------------------------------
|
|
-- inserisco costi per PROVVIGIONI
|
|
---------------------------------------------
|
|
SELECT @Provvig = ISNULL(a.QuotaProvvAg, 0)
|
|
FROM dbo.AgentsDet a
|
|
INNER JOIN ClientDet c ON a.CodAg = c.CodAg
|
|
INNER JOIN QuoteList q ON q.CodClient = c.CodClient
|
|
WHERE q.QuoteType = @QuoteType
|
|
AND q.CodQuote = @CodQuote
|
|
AND q.QuoteRev = @QuoteRev
|
|
|
|
-- inserisco costi per PROVVIGIONI
|
|
INSERT INTO #QuoteOC(QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, TotQty, TotCost, Quota)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, '04', @CodPlant, 'PROVVIGIONI', @RawMat, @BatchQty, @Provvig * @BatchQty, 1
|
|
|
|
/* ==================================================
|
|
CANCELLO E CARICO TABELLE EFFETTIVE
|
|
==================================================*/
|
|
|
|
-- elimino e carico parametri!
|
|
DELETE FROM dbo.QuoteParam
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
|
|
INSERT dbo.QuoteParam
|
|
SELECT * FROM #QuoteParam WITH (NOLOCK)
|
|
|
|
-- elimino e carico lavorazioni interne!
|
|
DELETE FROM dbo.QuoteWorkInt
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
|
|
INSERT dbo.QuoteWorkInt -- ci sono valori calcolati quindi devo selezionare i campi
|
|
SELECT QuoteType, CodQuote, QuoteRev, NumWI, ProcessNum, CodPlant, Class01, Class02, Class03, Class04, Class05
|
|
, NetProd, WSR, MSR, DSR, FC4UG, VC4UG, OH4UG, SC4UG, valid
|
|
FROM #QuoteWorkInt WITH (NOLOCK)
|
|
|
|
-- elimino e carico OtherCosts
|
|
DELETE FROM dbo.QuoteOC
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
|
|
INSERT dbo.QuoteOC -- ci sono valori calcolati quindi devo selezionare i campi
|
|
SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Class02, Class03, Class04
|
|
, Class05, TotQty, TotCost, Quota, valid
|
|
FROM #QuoteOC WITH (NOLOCK)
|
|
|
|
|
|
COMMIT TRAN
|
|
|
|
--SELECT * FROM #QuoteParam
|
|
--SELECT * FROM #QuoteWorkInt
|
|
--SELECT * FROM #QuoteOC
|
|
|
|
-- elimino temp table...
|
|
IF OBJECT_ID('tempdb..#QuoteParam') IS NOT NULL
|
|
DROP TABLE #QuoteParam
|
|
IF OBJECT_ID('tempdb..#QuoteWorkInt') IS NOT NULL
|
|
DROP TABLE #QuoteWorkInt
|
|
IF OBJECT_ID('tempdb..#QuoteOC') IS NOT NULL
|
|
DROP TABLE #QuoteOC
|
|
|
|
END]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[bit]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt].[WSR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt].[MSR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt].[DSR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteOC].[TotCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteOC].[Quota]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteOC].[TotQty]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteParam]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteOC]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkExt]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkExt].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[@QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkExt].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[@CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkExt].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[@QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabProdSc]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[KeyAM]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabProdSc].[KeyAM]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabProdSc].[CodDiesGroup]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabProdSc].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabProdSc].[HoleNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[KeyAM]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabProdSc].[ProdTeo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabProdSc].[ScTec]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabProdSc].[KgTeo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabProdSc].[NumSMED]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[RawMat]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[BatchQty]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[ItemDescr]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry />
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[CodPackag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteParam].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteParam].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteParam].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteParam].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteParam].[Descr]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteParam].[Parameter]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[Class01]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[Class02]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[Class03]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[Class03]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet].[CodClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet].[ClientName]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_getSubstring]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[CodDies]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[CodDiesGroup]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[Active]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt].[Class01]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt].[Class02]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt].[Class03]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt].[NetProd]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt].[WSR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabProdSc].[KgTeo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt].[Class03]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[RawMat]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt].[MSR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[CSR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt].[FC4UG]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant].[FC]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant].[QuotaPlantStd]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant].[QuotaManStd]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt].[NetProd]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt].[VC4UG]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant].[VC]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt].[OH4UG]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant].[OH]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt].[SC4UG]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant].[SC]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[BatchQty]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabDifett]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt].[Class02]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabDifett].[KeyAMI]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabDifett].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt].[DSR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabDifett].[TotOUT]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabDifett].[TotIn]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt].[Class04]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt].[Class05]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabImbArt]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt].[Class04]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabImbArt].[KeyA]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabImbArt].[Durata]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabImbArt].[TotOut]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt].[NetProd]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabImbGrp]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabImbGrp].[CodPackag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabImbGrp].[Durata]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabImbGrp].[TotOut]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabImbArt].[NumImb]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabImbArt].[KeyA]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt].[Class05]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt].[MCR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt].[WCR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt].[DCR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[SSR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[RawMat]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[FCR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[RawMat]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteOC].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteOC].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteOC].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteOC].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteOC].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteOC].[Class01]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteOC].[Class02]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteOC].[TotQty]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteOC].[TotCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteOC].[Quota]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Utilities]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Utilities].[CodUtil]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Utilities].[UnitCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Utilities].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[Price]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[ActLife]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[ExpLife]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet].[Price]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet].[CodDiesGroup]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet].[EOLLife]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet].[ExpLife]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteOC].[valid]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteOC].[C4UG]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[RawMat]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[RawMat]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[RawMatCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[RawMatExtraCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[SSVA]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[SSVR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[ProcYield]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[ProcCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_packageCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_packageCost].[@PDesc]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_packageCost].[@RMWeight]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_packageCost].[@Weight]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_packageCost].[@Tare]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_packageCost].[@PackCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_packageCost].[@TareStRat]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet].[TranspZone]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet].[CodClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Incoterms]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodInco]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Incoterms].[CodInco]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Incoterms].[HasTC]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TranspCostDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TranspCostDet].[TranspCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TranspCostDet].[TranspZone]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AgentsDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AgentsDet].[CodAg]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet].[CodAg]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet].[CodClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AgentsDet].[QuotaProvvAg]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt].[NumWI]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt].[valid]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteOC].[NumEx]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteOC].[Class03]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteOC].[Class04]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_30_01].[#QuoteOC].[Class05]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DynamicObjects">
|
|
<Entry>
|
|
<Element Type="SqlDynamicColumnSource" Name="[dbo].[stp_QL_update_30_01].[#QuoteParam]">
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[stp_QL_update_30_01].[#QuoteParam].[QuoteType]">
|
|
<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="[char]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[stp_QL_update_30_01].[#QuoteParam].[CodQuote]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[bigint]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[stp_QL_update_30_01].[#QuoteParam].[QuoteRev]">
|
|
<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].[stp_QL_update_30_01].[#QuoteParam].[NumP]">
|
|
<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].[stp_QL_update_30_01].[#QuoteParam].[ProcessNum]">
|
|
<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].[stp_QL_update_30_01].[#QuoteParam].[Descr]">
|
|
<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].[stp_QL_update_30_01].[#QuoteParam].[Parameter]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="100" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlDynamicColumnSource" Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt]">
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt].[QuoteType]">
|
|
<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="[char]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt].[CodQuote]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[bigint]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt].[QuoteRev]">
|
|
<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].[stp_QL_update_30_01].[#QuoteWorkInt].[NumWI]">
|
|
<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].[stp_QL_update_30_01].[#QuoteWorkInt].[ProcessNum]">
|
|
<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].[stp_QL_update_30_01].[#QuoteWorkInt].[CodPlant]">
|
|
<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].[stp_QL_update_30_01].[#QuoteWorkInt].[Class01]">
|
|
<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].[stp_QL_update_30_01].[#QuoteWorkInt].[Class02]">
|
|
<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].[stp_QL_update_30_01].[#QuoteWorkInt].[Class03]">
|
|
<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].[stp_QL_update_30_01].[#QuoteWorkInt].[Class04]">
|
|
<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].[stp_QL_update_30_01].[#QuoteWorkInt].[Class05]">
|
|
<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].[stp_QL_update_30_01].[#QuoteWorkInt].[NetProd]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="3" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt].[WSR]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="8" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt].[MSR]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="8" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt].[DSR]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="8" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt].[FC4UG]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt].[VC4UG]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt].[OH4UG]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt].[SC4UG]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt].[WYR]">
|
|
<Property Name="ExpressionScript">
|
|
<Value><![CDATA[((1)-[WSR])]]></Value>
|
|
</Property>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt].[MYR]">
|
|
<Property Name="ExpressionScript">
|
|
<Value><![CDATA[((1)-[MSR])]]></Value>
|
|
</Property>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt].[DYR]">
|
|
<Property Name="ExpressionScript">
|
|
<Value><![CDATA[((1)-[DSR])]]></Value>
|
|
</Property>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt].[WCR]">
|
|
<Property Name="ExpressionScript">
|
|
<Value><![CDATA[((1)/((1)-[WSR]))]]></Value>
|
|
</Property>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt].[MCR]">
|
|
<Property Name="ExpressionScript">
|
|
<Value><![CDATA[((1)/((1)-[MSR]))]]></Value>
|
|
</Property>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt].[DCR]">
|
|
<Property Name="ExpressionScript">
|
|
<Value><![CDATA[((1)/((1)-[DSR]))]]></Value>
|
|
</Property>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[stp_QL_update_30_01].[#QuoteWorkInt].[valid]">
|
|
<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>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlDynamicColumnSource" Name="[dbo].[stp_QL_update_30_01].[#QuoteOC]">
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[stp_QL_update_30_01].[#QuoteOC].[QuoteType]">
|
|
<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="[char]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[stp_QL_update_30_01].[#QuoteOC].[CodQuote]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[bigint]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[stp_QL_update_30_01].[#QuoteOC].[QuoteRev]">
|
|
<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].[stp_QL_update_30_01].[#QuoteOC].[NumEx]">
|
|
<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].[stp_QL_update_30_01].[#QuoteOC].[ProcessNum]">
|
|
<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].[stp_QL_update_30_01].[#QuoteOC].[CodPlant]">
|
|
<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].[stp_QL_update_30_01].[#QuoteOC].[Class01]">
|
|
<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].[stp_QL_update_30_01].[#QuoteOC].[Class02]">
|
|
<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].[stp_QL_update_30_01].[#QuoteOC].[Class03]">
|
|
<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].[stp_QL_update_30_01].[#QuoteOC].[Class04]">
|
|
<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].[stp_QL_update_30_01].[#QuoteOC].[Class05]">
|
|
<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].[stp_QL_update_30_01].[#QuoteOC].[TotQty]">
|
|
<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].[stp_QL_update_30_01].[#QuoteOC].[TotCost]">
|
|
<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].[stp_QL_update_30_01].[#QuoteOC].[Quota]">
|
|
<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="SqlComputedColumn" Name="[dbo].[stp_QL_update_30_01].[#QuoteOC].[C4UG]">
|
|
<Property Name="ExpressionScript">
|
|
<Value><![CDATA[(([TotCost]*[Quota])/[TotQty])]]></Value>
|
|
</Property>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[stp_QL_update_30_01].[#QuoteOC].[valid]">
|
|
<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>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_QL_update_30_01].[@QuoteType]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA['Q']]></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>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_QL_update_30_01].[@CodQuote]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[0]]></Value>
|
|
</Property>
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[bigint]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_QL_update_30_01].[@QuoteRev]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![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="239" />
|
|
<Property Name="Length" Value="30967" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="
-- =============================================
-- Author:		Steamware
-- Create date: 2014.01.22
-- Description:	aggiorna le tabelle QuoteList con i dati selezionati dalla TabProdSc
-- =============================================
CREATE PROCEDURE [dbo].[stp_QL_update_30_01]
(
	@QuoteType	CHAR(1) = 'Q',
	@CodQuote	BIGINT	= 0,
	@QuoteRev	INT		= 0
) 
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_QL_update_SAM]">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
BEGIN
|
|
|
|
SET NOCOUNT ON;
|
|
SET XACT_ABORT ON;
|
|
|
|
BEGIN TRAN
|
|
|
|
-- dichiaro valori da recuperare
|
|
DECLARE @cont INT = 0 -- contatore x numeri consecutivi...
|
|
DECLARE @strTemp NVARCHAR(50) = '' --stringa temporanea x variabili "locali"
|
|
|
|
DECLARE @valid BIT
|
|
DECLARE @CodDiesGroup NVARCHAR(50)
|
|
DECLARE @CodPlant NVARCHAR(50)
|
|
DECLARE @CodPlantFix NVARCHAR(50) = ''
|
|
DECLARE @HoleNum INT
|
|
DECLARE @CodItem NVARCHAR(50) = '' --cod item
|
|
DECLARE @ItemDescr NVARCHAR(50) = '' -- descrizione item
|
|
DECLARE @KeyAM NVARCHAR(50) = ''
|
|
DECLARE @KeyAMI NVARCHAR(50) = ''
|
|
DECLARE @KeyAMIL NVARCHAR(50) = ''
|
|
DECLARE @NumSMED INT = 0 -- numero cambi
|
|
DECLARE @KgTeo DECIMAL(18, 6) = 0 -- kg totali
|
|
DECLARE @RawMat NVARCHAR(50)
|
|
DECLARE @ProdTeo DECIMAL(18,6)
|
|
DECLARE @ScTec DECIMAL(18,6)
|
|
DECLARE @BatchQty INT
|
|
DECLARE @MAC_SC DECIMAL(18,6) -- Messa a cento scarto cesoia
|
|
DECLARE @MAC_ST DECIMAL(18,6) -- Messa a cento scarto tecnico
|
|
DECLARE @MAC_IN DECIMAL(18,6) -- Messa a cento difettosità all'incestatura
|
|
DECLARE @MAC_IM DECIMAL(18,6) -- Messa a cento difettosità all'imballo
|
|
DECLARE @SSR DECIMAL(9,6) -- percentuale vendita rottame
|
|
DECLARE @DiesPrice DECIMAL(9,3) -- prezzo matrice
|
|
DECLARE @DiesEOLife DECIMAL(9,2) -- durata matrice
|
|
DECLARE @DiesExpLife DECIMAL(9,2) -- durata matrice
|
|
DECLARE @DiesPriceLife DECIMAL(18,6) -- Price/Life matrice
|
|
DECLARE @OCF01 DECIMAL(18,6) = 0 -- altri costi di fase 01
|
|
DECLARE @VCF01 DECIMAL(18,6) = 0 -- costi variabili di fase 01
|
|
DECLARE @VCF04 DECIMAL(18,6) = 0 -- costi variabili di fase 04
|
|
DECLARE @SellCostF01 DECIMAL(18,6) = 0 -- costo vendita fase 01
|
|
DECLARE @SellCostF04 DECIMAL(18,6) = 0 -- costo vendita fase 04
|
|
DECLARE @RefCostF01 DECIMAL(18,6) = 0 -- costo rifusione fase 01
|
|
DECLARE @RefCostF04 DECIMAL(18,6) = 0 -- costo rifusione fase 04
|
|
-- IMBALLO
|
|
DECLARE @CodPackag NVARCHAR(50) = '0' -- codice dell'imballo
|
|
DECLARE @CodClient NVARCHAR(50) = '' -- codice cliente
|
|
DECLARE @NumImb DECIMAL(9,6) = 0 -- num imballatori
|
|
DECLARE @PkgDesc NVARCHAR(50) = '' -- descrizione imballo
|
|
DECLARE @PRMWeight DECIMAL(9,4) = 0 -- peso dell'imballo
|
|
DECLARE @PWeight DECIMAL(9,4) = 0 -- peso del pacco
|
|
DECLARE @PTare DECIMAL(9,4) = 0 -- media delal tara di imballo dichiarata
|
|
DECLARE @PCost DECIMAL(9,6) = 0 -- costo unitario dell'imballo (al kg)
|
|
DECLARE @PTareStRatio DECIMAL(9,4) = 0 -- coefficiente di recupero tara/prodotto
|
|
|
|
-- TRASPORTI
|
|
DECLARE @TranspZone NVARCHAR(50) = '', -- codice ZONA
|
|
@TranspCost DECIMAL(9,6), -- costo di trasporto
|
|
@HasTC INT
|
|
|
|
-- PROVVIGIONI
|
|
DECLARE @Provvig DECIMAL(9,6) -- provvigione agente
|
|
|
|
|
|
-- default: validità è true!
|
|
SET @valid = 1
|
|
|
|
|
|
---------------------------------------
|
|
-- svuotamento iniziale
|
|
---------------------------------------
|
|
-- elimino parametri!
|
|
DELETE
|
|
FROM dbo.QuoteParam
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
|
|
-- elimino lavorazioni interne!
|
|
DELETE
|
|
FROM dbo.QuoteWorkInt
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
|
|
-- elimino preventivamente OtherCosts già inseriti!
|
|
DELETE
|
|
FROM dbo.QuoteOC
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
|
|
-- elimino lavorazioni esterne!
|
|
DELETE
|
|
FROM dbo.QuoteWorkExt
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
|
|
-- se ci sono eccezioni nella tab dell'anagrafico articoli imposto il codPlant desiderato
|
|
SET @CodPlantFix = ISNULL ( ( SELECT id.CodPlant FROM dbo.ItemDet id INNER JOIN dbo.QuoteList ql ON id.CodItem = ql.CodItem
|
|
WHERE ql.QuoteType = @QuoteType
|
|
AND ql.CodQuote = @CodQuote
|
|
AND ql.QuoteRev = @QuoteRev ), '' )
|
|
|
|
-- recupero da dati dell'offerta il valore del cliente
|
|
SELECT @CodClient = CodClient
|
|
FROM dbo.QuoteList
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
|
|
|
|
-- recupero da dati dell'offerta il valore del package scelto
|
|
SELECT @CodPackag = CodPackag
|
|
FROM dbo.QuoteRM
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
|
|
-- recupero dati!!
|
|
SELECT TOP 1 @CodItem = ql.CodItem
|
|
, @CodDiesGroup = tps.CodDiesGroup
|
|
, @CodPlant = CASE WHEN @CodPlantFix <> '' THEN @CodPlantFix ELSE tps.CodPlant END
|
|
, @HoleNum = tps.HoleNum
|
|
, @KeyAM = ql.KeyAM
|
|
, @KeyAMI = ql.KeyAM + '-' + ISNULL(@CodPlant,'0000')
|
|
, @KeyAMIL = ql.KeyAM + '-' + ISNULL(@CodPlant,'0000') + '-' + CAST(ISNULL(tps.HoleNum,0) AS NVARCHAR(10))
|
|
, @ProdTeo = tps.ProdTeo
|
|
, @ScTec = tps.ScTec
|
|
, @KgTeo = tps.KgTeo
|
|
, @NumSMED = tps.NumSMED
|
|
, @RawMat = ql.RawMat
|
|
, @BatchQty = ql.BatchQty
|
|
, @ItemDescr= i.ItemDescr
|
|
FROM dbo.QuoteList ql
|
|
INNER JOIN dbo.TabProdSc tps ON ql.KeyAM = tps.KeyAM
|
|
INNER JOIN dbo.ItemDet i ON ql.CodItem = i.CodItem
|
|
WHERE ql.QuoteType = @QuoteType
|
|
AND ql.CodQuote = @CodQuote
|
|
AND ql.QuoteRev = @QuoteRev
|
|
ORDER BY tps.KgTeo DESC
|
|
|
|
|
|
-- inserisco note sull'articolo
|
|
SELECT @cont = ISNULL(MAX(NumP),0) + 1
|
|
FROM dbo.QuoteParam
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
|
|
INSERT INTO dbo.QuoteParam(QuoteType, CodQuote, QuoteRev, NumP, ProcessNum, Descr, Parameter)
|
|
VALUES (@QuoteType, @CodQuote, @QuoteRev, @cont, '01', 'ItemDescr', @ItemDescr)
|
|
|
|
SELECT @cont = @cont + 1
|
|
INSERT INTO dbo.QuoteParam(QuoteType, CodQuote, QuoteRev, NumP, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, @cont, '01', 'CodifProfilo', Class01
|
|
FROM dbo.ItemDet
|
|
WHERE CodItem = @CodItem
|
|
|
|
SELECT @cont = @cont + 1
|
|
INSERT INTO dbo.QuoteParam(QuoteType, CodQuote, QuoteRev, NumP, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, @cont, '01', 'ClasseMerc', Class02
|
|
FROM dbo.ItemDet
|
|
WHERE CodItem = @CodItem
|
|
|
|
SELECT @cont = @cont + 1
|
|
INSERT INTO dbo.QuoteParam(QuoteType, CodQuote, QuoteRev, NumP, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, @cont, '01', 'ClienteAssoc', Class03
|
|
FROM dbo.ItemDet
|
|
WHERE CodItem = @CodItem
|
|
|
|
-- INFORMAZIONI su MATRICE
|
|
SELECT @cont = @cont + 1
|
|
INSERT INTO QuoteParam(QuoteType, CodQuote, QuoteRev, NumP, ProcessNum, Descr, Parameter)
|
|
VALUES (@QuoteType, @CodQuote, @QuoteRev, @cont, '01', 'CodDiesGroup', @CodDiesGroup)
|
|
|
|
SELECT @cont = @cont + 1
|
|
SET @strTemp = dbo.f_getSubstring(@CodDiesGroup, '-', 1) --@strTemp = SUBSTRING(@CodDiesGroup, 0, CHARINDEX('-', @CodDiesGroup)) -- !!!fare con finc Gian
|
|
INSERT INTO QuoteParam(QuoteType, CodQuote, QuoteRev, NumP, ProcessNum, Descr, Parameter)
|
|
VALUES (@QuoteType, @CodQuote, @QuoteRev, @cont, '01', 'TipoDies', @strTemp)
|
|
|
|
SELECT @cont = @cont + 1
|
|
SET @strTemp = dbo.f_getSubstring(@CodDiesGroup, '-', 2) --@strTemp = SUBSTRING(REPLACE(@CodDiesGroup, @strTemp,''), 2, CHARINDEX('-', @CodDiesGroup)) -- !!!fare con finc Gian
|
|
INSERT INTO QuoteParam(QuoteType, CodQuote, QuoteRev, NumP, ProcessNum, Descr, Parameter)
|
|
VALUES (@QuoteType, @CodQuote, @QuoteRev, @cont, '01', 'DiamDies', @strTemp)
|
|
|
|
SELECT @cont = @cont + 1
|
|
SET @strTemp = dbo.f_getSubstring(@CodDiesGroup, '-', 3) --@strTemp = SUBSTRING(REPLACE(@CodDiesGroup, @strTemp,''), 5, CHARINDEX('-', @CodDiesGroup)) -- !!!fare con finc Gian
|
|
INSERT INTO QuoteParam(QuoteType, CodQuote, QuoteRev, NumP, ProcessNum, Descr, Parameter)
|
|
VALUES (@QuoteType, @CodQuote, @QuoteRev, @cont, '01', 'HoleNumDies', @strTemp)
|
|
|
|
SELECT @cont = @cont + 1
|
|
INSERT INTO QuoteParam(QuoteType, CodQuote, QuoteRev, NumP, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, @cont, '01', 'NumDiesInList', COUNT(CodDies)
|
|
FROM dbo.DiesDet
|
|
WHERE CodDiesGroup = @CodDiesGroup AND CodItem = @CodItem
|
|
|
|
SELECT @cont = @cont + 1
|
|
INSERT INTO QuoteParam(QuoteType, CodQuote, QuoteRev, NumP, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, @cont, '01', 'NumDiesExaust', COUNT(CodDies)
|
|
FROM dbo.DiesDet
|
|
WHERE CodDiesGroup = @CodDiesGroup AND Active = 0
|
|
|
|
|
|
-- inserisco lavorazione estrusione!
|
|
INSERT INTO dbo.QuoteWorkInt(QuoteType, CodQuote, QuoteRev, NumWI, ProcessNum, CodPlant, Class01, Class02, Class03, NetProd, WSR)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, ISNULL(MAX(NumWI),0) + 1, '01', @CodPlant, @KeyAM, @KeyAMIL, @RawMat, @ProdTeo, @ScTec
|
|
FROM QuoteWorkInt
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
|
|
|
|
-- inserisco parametri calcolati x lavorazione estruzione
|
|
INSERT INTO dbo.QuoteParam(QuoteType, CodQuote, QuoteRev, NumP, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, ISNULL(MAX(NumP),0) + 1, '01', 'CodPlant', @CodPlant
|
|
FROM dbo.QuoteParam
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
|
|
INSERT INTO QuoteParam(QuoteType, CodQuote, QuoteRev, NumP, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, ISNULL(MAX(NumP),0) + 1, '01', 'KeyAM', @KeyAM
|
|
FROM QuoteParam
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
|
|
INSERT INTO QuoteParam(QuoteType, CodQuote, QuoteRev, NumP, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, ISNULL(MAX(NumP),0) + 1, '01', 'KeyAMIL', @KeyAMIL
|
|
FROM QuoteParam
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
|
|
INSERT INTO QuoteParam(QuoteType, CodQuote, QuoteRev, NumP, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, ISNULL(MAX(NumP),0) + 1, '01', 'NumCambi', @NumSMED
|
|
FROM QuoteParam
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
|
|
INSERT INTO QuoteParam(QuoteType, CodQuote, QuoteRev, NumP, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, ISNULL(MAX(NumP),0) + 1, '01', 'KgTeo', @KgTeo
|
|
FROM QuoteParam
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
|
|
INSERT INTO QuoteParam(QuoteType, CodQuote, QuoteRev, NumP, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, ISNULL(MAX(NumP),0) + 1, '01', 'HoleNum', @HoleNum
|
|
FROM QuoteParam
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
|
|
SELECT @cont = ISNULL(MAX(NumP),0) + 1
|
|
FROM QuoteParam
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
|
|
INSERT INTO QuoteParam(QuoteType, CodQuote, QuoteRev, NumP, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, @cont, '01', 'KgProdotti', SUM(KgTeo)
|
|
FROM QuoteList ql
|
|
INNER JOIN TabProdSc tps ON ql.KeyAM = tps.KeyAM
|
|
WHERE ql.QuoteType = @QuoteType
|
|
AND ql.CodQuote = @CodQuote
|
|
AND ql.QuoteRev = @QuoteRev
|
|
|
|
--SELECT @cont = @cont + 1
|
|
--INSERT INTO QuoteParam(QuoteType, CodQuote, QuoteRev, NumP, ProcessNum, Descr, Parameter)
|
|
--SELECT @QuoteType, @CodQuote, @QuoteRev, @cont, '01', 'NumLotti', COUNT(*)
|
|
--FROM QuoteList ql INNER JOIN TabProdSc tps ON ql.KeyAM = tps.KeyAM
|
|
--WHERE ql.QuoteType = @QuoteType
|
|
-- AND ql.CodQuote = @CodQuote
|
|
-- AND ql.QuoteRev = @QuoteRev
|
|
|
|
-- inserisco dati mancanti di MSR/CSR (scarto cesoia x estrusione) - DSR è NULLO x estrusione!
|
|
UPDATE qwi
|
|
SET MSR = rmd.CSR
|
|
FROM dbo.QuoteWorkInt qwi
|
|
INNER JOIN RawMatDet rmd ON qwi.Class03 = rmd.RawMat
|
|
WHERE qwi.QuoteType = @QuoteType
|
|
AND qwi.CodQuote = @CodQuote
|
|
AND qwi.QuoteRev = @QuoteRev
|
|
|
|
-- calcolo i costi legati alla fase estrusione!
|
|
UPDATE qwi
|
|
SET FC4UG = (cp.FC * cp.QuotaPlantStd / cp.QuotaManStd) / qwi.NetProd
|
|
, VC4UG = (cp.VC * cp.QuotaPlantStd / cp.QuotaManStd) / qwi.NetProd
|
|
, OH4UG = (cp.OH * cp.QuotaPlantStd / cp.QuotaManStd) / qwi.NetProd
|
|
, SC4UG = cp.SC / ql.BatchQty
|
|
FROM dbo.QuoteWorkInt qwi
|
|
INNER JOIN Cost2Plant cp ON qwi.CodPlant = cp.CodPlant AND qwi.ProcessNum = cp.ProcessNum
|
|
INNER JOIN QuoteList ql ON qwi.QuoteType = ql.QuoteType AND qwi.CodQuote = ql.CodQuote AND qwi.QuoteRev = ql.QuoteRev
|
|
WHERE qwi.QuoteType = @QuoteType
|
|
AND qwi.CodQuote = @CodQuote
|
|
AND qwi.QuoteRev = @QuoteRev
|
|
|
|
-- inserisco lavorazione incestatura!
|
|
INSERT INTO QuoteWorkInt(QuoteType, CodQuote, QuoteRev, NumWI, ProcessNum, CodPlant, Class01, Class02, Class03)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, ISNULL(MAX(NumWI),0) + 1, '02', @CodPlant, @KeyAM, @KeyAMI, @RawMat
|
|
FROM dbo.QuoteWorkInt
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
|
|
|
|
-- inserisco dati mancanti di DSR x incestatura come 1 - OUT/IN
|
|
UPDATE qwi
|
|
SET DSR = 1 - CAST(td.TotOUT AS DECIMAL(18,6))/CAST(td.TotIN AS DECIMAL(18,6))
|
|
FROM dbo.QuoteWorkInt qwi
|
|
INNER JOIN dbo.TabDifett td ON qwi.Class02 = td.KeyAMI AND qwi.ProcessNum = td.ProcessNum
|
|
WHERE qwi.ProcessNum = '02' -- solo incestatura
|
|
|
|
-- inserisco lavorazione FORNO!
|
|
INSERT INTO dbo.QuoteWorkInt(QuoteType, CodQuote, QuoteRev, NumWI, ProcessNum, CodPlant, Class01, Class02, Class03)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, ISNULL(MAX(NumWI),0) + 1, '03', @CodPlant, @KeyAM, @KeyAMI, @RawMat
|
|
FROM dbo.QuoteWorkInt
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
|
|
-- inserisco lavorazione imballo!
|
|
INSERT INTO dbo.QuoteWorkInt(QuoteType, CodQuote, QuoteRev, NumWI, ProcessNum, CodPlant, Class01, Class02, Class03, Class04, Class05)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, ISNULL(MAX(NumWI),0) + 1, '04', @CodPlant, @KeyAM, @KeyAMIL, @RawMat, @CodItem, @KeyAMI
|
|
FROM dbo.QuoteWorkInt
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
|
|
-- calcolo produttività netta nella fase imballo
|
|
UPDATE qwi
|
|
SET NetProd = ti.TotOut/ ti.Durata
|
|
FROM dbo.QuoteWorkInt qwi
|
|
INNER JOIN TabImbArt ti ON qwi.Class04 = ti.KeyA
|
|
|
|
-- salvo numero imballatori
|
|
SELECT @NumImb = ISNULL(NumImb,0)
|
|
FROM TabImbArt
|
|
WHERE KeyA = @CodItem
|
|
|
|
-- parametro num imballatori
|
|
INSERT INTO QuoteParam(QuoteType, CodQuote, QuoteRev, NumP, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, ISNULL(MAX(NumP),0) + 1, '04', 'NumImballatori', @NumImb
|
|
FROM QuoteParam
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
|
|
-- calcolo i costi legati alla fase di imballo!
|
|
UPDATE qwi
|
|
SET FC4UG = (cp.FC * cp.QuotaPlantStd / cp.QuotaManStd) / qwi.NetProd
|
|
, VC4UG = (cp.VC * cp.QuotaPlantStd / cp.QuotaManStd) / qwi.NetProd
|
|
, OH4UG = (cp.OH * cp.QuotaPlantStd / cp.QuotaManStd) / qwi.NetProd
|
|
, SC4UG = cp.SC / ql.BatchQty
|
|
FROM dbo.QuoteWorkInt qwi
|
|
INNER JOIN Cost2Plant cp ON qwi.CodPlant = cp.CodPlant AND qwi.ProcessNum = cp.ProcessNum
|
|
INNER JOIN QuoteList ql ON qwi.QuoteType = ql.QuoteType AND qwi.CodQuote = ql.CodQuote AND qwi.QuoteRev = ql.QuoteRev
|
|
WHERE qwi.ProcessNum = '04' -- solo imballo
|
|
|
|
|
|
-- inserisco dati mancanti di DSR x incestatura come 1 - OUT/IN
|
|
UPDATE qwi
|
|
SET DSR = 1 - CAST(td.TotOUT AS DECIMAL(18,6))/CAST(td.TotIN AS DECIMAL(18,6))
|
|
FROM dbo.QuoteWorkInt qwi
|
|
INNER JOIN TabDifett td ON qwi.Class05 = td.KeyAMI AND qwi.ProcessNum = td.ProcessNum
|
|
WHERE qwi.ProcessNum = '04' -- solo imballo
|
|
|
|
|
|
-- recupero le MAC fase 01
|
|
SELECT
|
|
@MAC_SC = MCR
|
|
,@MAC_ST = WCR
|
|
FROM dbo.QuoteWorkInt
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
AND ProcessNum = '01'
|
|
|
|
-- recupero le MAC fase 02
|
|
SELECT
|
|
@MAC_IN = DCR
|
|
FROM dbo.QuoteWorkInt
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
AND ProcessNum = '02'
|
|
|
|
-- recupero le MAC fase 04
|
|
SELECT
|
|
@MAC_IM = DCR
|
|
FROM dbo.QuoteWorkInt
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
AND ProcessNum = '04'
|
|
|
|
-- calcolo percentuale vendita rottame
|
|
SELECT @SSR = SSR
|
|
FROM dbo.RawMatDet
|
|
WHERE RawMat = @RawMat
|
|
|
|
-- update rese RawMat!
|
|
UPDATE dbo.QuoteRM
|
|
SET FCR = @MAC_SC * @MAC_ST * @MAC_IN * @MAC_IM
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
AND RawMat = @RawMat
|
|
|
|
|
|
|
|
|
|
-- inserisco i costi delle utilities in QuoteOC
|
|
|
|
-- inserisco altri costi x lavorazione estrusione! GAS ed EE
|
|
INSERT INTO dbo.QuoteOC(QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Class02, TotQty, TotCost, Quota)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, ROW_NUMBER() OVER(ORDER BY CodUtil ASC) AS Row, '01', @CodPlant, CodUtil, @RawMat, @BatchQty, UnitCost * @BatchQty, 1
|
|
FROM dbo.Utilities
|
|
WHERE CodPlant = @CodPlant
|
|
|
|
|
|
/*************************************************************
|
|
* MATRICE
|
|
*
|
|
* calcolo prezzo e durata matrice con procedura a 5 step...
|
|
* A) media ponderata prezzo ed ExpLife da DiesDet selezionando x CodItem + CodDiesGroup
|
|
* B) EOLLife x media ponderata su DiesDet dove Active = 0
|
|
* C) SE prezzo = 0 --> prendo prezzo da DiesGroupDet selezionando x CodDiesGroup
|
|
* D) Se EOL = 0 --> prendo ExpLife della singola matrice, se è 0 --> prendo EOLLife da DiesGroupDet selezionando x CodDiesGroup
|
|
* E) Calcolo Price / Life
|
|
*
|
|
*************************************************************/
|
|
|
|
-- (A) da DiesDet
|
|
SELECT @DiesPrice = SUM(ISNULL(Price, 0) * ISNULL(ActLife, 1)) / SUM(ISNULL(ActLife, 1)),
|
|
@DiesExpLife = SUM(ISNULL(ExpLife, 0) * ISNULL(ActLife, 1)) / SUM(ISNULL(ActLife, 1))
|
|
FROM dbo.DiesDet
|
|
WHERE CodItem = @CodItem
|
|
AND CodDiesGroup = @CodDiesGroup
|
|
GROUP BY CodItem, CodDiesGroup
|
|
|
|
-- (B) da DiesDet
|
|
SELECT @DiesEOLife = AVG(ISNULL(ActLife, 0))
|
|
FROM dbo.DiesDet
|
|
WHERE CodItem = @CodItem
|
|
AND CodDiesGroup = @CodDiesGroup
|
|
AND Active = 0
|
|
GROUP BY CodItem, CodDiesGroup
|
|
|
|
SET @DiesPrice = ISNULL(@DiesPrice,0)
|
|
SET @DiesExpLife = ISNULL(@DiesExpLife,0)
|
|
SET @DiesEOLife = ISNULL(@DiesEOLife,0)
|
|
|
|
-- (C) verifico se prezzo è OK...
|
|
IF (@DiesPrice = 0)
|
|
BEGIN
|
|
-- calcolo da DiesGroupDet
|
|
SELECT @DiesPrice = ISNULL(Price, 0)
|
|
FROM DiesGroupDet
|
|
WHERE CodDiesGroup = @CodDiesGroup
|
|
END
|
|
|
|
-- (D) verifico se vita è OK...
|
|
IF (@DiesEOLife = 0)
|
|
BEGIN
|
|
-- uso exp life articolo...
|
|
SET @DiesEOLife = @DiesExpLife
|
|
END
|
|
-- controllo che non sia nulla/vuota la durata...
|
|
IF (@DiesEOLife = 0)
|
|
BEGIN
|
|
SELECT @DiesEOLife = CASE WHEN EOLLife > 0 THEN EOLLife ELSE ExpLife END
|
|
FROM DiesGroupDet
|
|
WHERE CodDiesGroup = @CodDiesGroup
|
|
END
|
|
|
|
-- controllo che non sia nulla/vuota la durata...
|
|
IF (@DiesEOLife = 0)
|
|
BEGIN
|
|
SELECT @DiesEOLife = 1 -- metto 1 kg che è sbagliato e mi fa esplodere prezzo matrice ma non blocca calcoli
|
|
END
|
|
|
|
-- (E) Calcolo price/life!
|
|
SET @DiesPriceLife = @DiesPrice / @DiesEOLife
|
|
|
|
-- (D) verifico se vita è OK...
|
|
IF (@DiesPriceLife = 0)
|
|
BEGIN
|
|
SET @DiesPriceLife = 1
|
|
SET @valid = 0
|
|
END
|
|
|
|
-- inserisco costi per Matrice: costo e durata da matrice, se non ci sono da gruppo, (anche solo uno dei due, ovviamente più facile trovare durata x matrice...)
|
|
INSERT INTO QuoteOC(QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Class02, TotQty, TotCost, Quota, valid)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, ISNULL(MAX(NumEx),0) + 1, '01', @CodPlant, 'MATRICE', @RawMat, @BatchQty, @DiesPriceLife * @BatchQty, 1, @valid
|
|
FROM QuoteOC
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
|
|
|
|
-- inserisco parametri calcolati x matrice
|
|
INSERT INTO QuoteParam(QuoteType, CodQuote, QuoteRev, NumP, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, ISNULL(MAX(NumP),0) + 1, '01', 'DiesPrice', @DiesPrice
|
|
FROM QuoteParam
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
|
|
INSERT INTO QuoteParam(QuoteType, CodQuote, QuoteRev, NumP, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, ISNULL(MAX(NumP),0) + 1, '01', 'DiesExpLife', @DiesExpLife
|
|
FROM QuoteParam
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
|
|
INSERT INTO QuoteParam(QuoteType, CodQuote, QuoteRev, NumP, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, ISNULL(MAX(NumP),0) + 1, '01', 'DiesEOLife', @DiesEOLife
|
|
FROM QuoteParam
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
|
|
/*************************************************************
|
|
* VENDITA ROTTAME
|
|
*
|
|
* calcolo COSTO DI VENDITA PER LE 2 FASI ESTRUSIONE 01 ED IMBALLO 04
|
|
* - calcolo costi variabili fase 01 / 04
|
|
* - calcolo costo di vendita x fase 01 / 04
|
|
*************************************************************/
|
|
|
|
SELECT @OCF01 = SUM(ISNULL(C4UG,0))
|
|
FROM QuoteOC
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
|
|
SELECT @VCF01 = @OCF01 + VC4UG
|
|
FROM QuoteWorkInt
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
AND ProcessNum = '01'
|
|
|
|
SELECT @VCF04 = @OCF01 + SUM(VC4UG)
|
|
FROM dbo.QuoteWorkInt
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
|
|
SELECT @SellCostF01 = ((@MAC_ST * @MAC_SC * @MAC_IN) - 1) * (q.RawMatCost - CASE WHEN SSVA > 0 THEN SSVA ELSE q.RawMatCost * SSVR END + @VCF01) -- ((prodotto delle MAC = inverso del prodotto delle rese) - 1) * (costo Al - prezzo rivendita + costi var fase 01)
|
|
, @RefCostF01 = -- ( (A - B) / 100 - C )
|
|
(
|
|
-- (A) = (costo pieno di acquisto + costi fase 1) * MAC * 100 (IN CENTESIMI)
|
|
((q.RawMatCost + q.RawMatExtraCost + @VCF01) * (@MAC_ST * @MAC_SC * @MAC_IN * 100))
|
|
-- (B) = ((MAC * 100) - 100) * Resa di fonderia * (costo pieno acquisto - costo di trasformazione))
|
|
- ((@MAC_ST * @MAC_SC * @MAC_IN * 100) - 100) * rmd.ProcYield * (q.RawMatCost + q.RawMatExtraCost + @VCF01 - rmd.ProcCost)
|
|
) / 100 -- divido per 100 finale
|
|
-- (C) = sottraggo costo pieno alluminio
|
|
- (q.RawMatCost + q.RawMatExtraCost + @VCF01)
|
|
FROM dbo.RawMatDet rmd
|
|
INNER JOIN dbo.QuoteRM q ON q.RawMat = rmd.RawMat
|
|
WHERE q.QuoteType = @QuoteType
|
|
AND q.CodQuote = @CodQuote
|
|
AND q.QuoteRev = @QuoteRev
|
|
AND q.RawMat = @RawMat
|
|
|
|
SELECT @SellCostF04 = ((@MAC_IM) - 1) * (q.RawMatCost - CASE WHEN SSVA > 0 THEN SSVA ELSE q.RawMatCost * SSVR END + @VCF01 + @VCF04) -- ((prodotto delle MAC = inverso del prodotto delle rese) - 1) * (costo Al - prezzo rivendita + costi var fase 04)
|
|
, @RefCostF04 = -- ( (A - B) / 100 - C )
|
|
(
|
|
-- (A) = (costo pieno di acquisto + costi fase 1) * MAC * 100 (IN CENTESIMI)
|
|
((q.RawMatCost + q.RawMatExtraCost + @VCF01 + @VCF04) * (@MAC_IM * 100))
|
|
-- (B) = ((MAC * 100) - 100) * Resa di fonderia * (costo pieno acquisto - costo di trasformazione))
|
|
- ((@MAC_IM * 100) - 100) * rmd.ProcYield * (q.RawMatCost + q.RawMatExtraCost + @VCF01 + @VCF04 - rmd.ProcCost)
|
|
) / 100 -- divido per 100 finale
|
|
-- (C) = sottraggo costo pieno alluminio
|
|
- (q.RawMatCost + q.RawMatExtraCost + @VCF01 + @VCF04)
|
|
|
|
-- NOTA: usiamo (q.RawMatCost + q.RawMatExtraCost + @VCF01) e non (q.RawMatCost + q.RawMatExtraCost + @VCF01 + @RefCostF01) perché la differenza è minimale, si tratta di 10/20 PPM...
|
|
|
|
FROM RawMatDet rmd INNER JOIN QuoteRM q ON q.RawMat = rmd.RawMat
|
|
WHERE q.QuoteType = @QuoteType
|
|
AND q.CodQuote = @CodQuote
|
|
AND q.QuoteRev = @QuoteRev
|
|
AND q.RawMat = @RawMat
|
|
|
|
-- inserisco costi per VENDITA
|
|
INSERT INTO QuoteOC(QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Class02, TotQty, TotCost, Quota)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, ISNULL(MAX(NumEx),0) + 1, '01', @CodPlant, 'VENDITA', @RawMat, @BatchQty, @SellCostF01 * @BatchQty, @SSR
|
|
FROM QuoteOC
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
|
|
-- inserisco costi per ROTTAME
|
|
INSERT INTO QuoteOC(QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Class02, TotQty, TotCost, Quota)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, ISNULL(MAX(NumEx),0) + 1, '01', @CodPlant, 'ROTTAME', @RawMat, @BatchQty, @RefCostF01 * @BatchQty, 1 - @SSR
|
|
FROM QuoteOC
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
|
|
-- inserisco costi per VENDITA
|
|
INSERT INTO QuoteOC(QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Class02, TotQty, TotCost, Quota)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, ISNULL(MAX(NumEx),0) + 1, '04', @CodPlant, 'VENDITA', @RawMat, @BatchQty, @SellCostF04 * @BatchQty, @SSR
|
|
FROM QuoteOC
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
|
|
-- inserisco costi per ROTTAME
|
|
INSERT INTO QuoteOC(QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Class02, TotQty, TotCost, Quota)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, ISNULL(MAX(NumEx),0) + 1, '04', @CodPlant, 'ROTTAME', @RawMat, @BatchQty, @RefCostF04 * @BatchQty, 1 - @SSR
|
|
FROM dbo.QuoteOC
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
|
|
|
|
EXEC stp_packageCost @CodItem, @CodClient, @CodPackag, @PDesc=@PkgDesc OUTPUT, @RMWeight=@PRMWeight OUTPUT, @Weight=@PWeight OUTPUT, @Tare=@PTare OUTPUT, @PackCost=@PCost OUTPUT, @TareStRat=@PTareStRatio OUTPUT
|
|
|
|
-- inserisco costi per IMBALLO
|
|
INSERT INTO QuoteOC(QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Class02, TotQty, TotCost, Quota)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, ISNULL(MAX(NumEx),0) + 1, '04', @CodPlant, 'IMBALLO', @RawMat, @BatchQty, @PCost * @BatchQty, 1
|
|
FROM dbo.QuoteOC
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
|
|
-- inserisco parametri calcolati x imballaggio
|
|
INSERT INTO QuoteParam(QuoteType, CodQuote, QuoteRev, NumP, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, ISNULL(MAX(NumP),0) + 1, '04', 'PkgDesc', @PkgDesc
|
|
FROM QuoteParam
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
|
|
INSERT INTO QuoteParam(QuoteType, CodQuote, QuoteRev, NumP, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, ISNULL(MAX(NumP),0) + 1, '04', 'RMWeight', @PRMWeight
|
|
FROM QuoteParam
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
|
|
INSERT INTO QuoteParam(QuoteType, CodQuote, QuoteRev, NumP, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, ISNULL(MAX(NumP),0) + 1, '04', 'PWeight', @PWeight
|
|
FROM QuoteParam
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
|
|
INSERT INTO QuoteParam(QuoteType, CodQuote, QuoteRev, NumP, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, ISNULL(MAX(NumP),0) + 1, '04', 'PTare', @PTare
|
|
FROM QuoteParam
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
|
|
INSERT INTO QuoteParam(QuoteType, CodQuote, QuoteRev, NumP, ProcessNum, Descr, Parameter)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, ISNULL(MAX(NumP),0) + 1, '04', 'TareStRatio', @PTareStRatio
|
|
FROM QuoteParam
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
|
|
|
|
---------------------------------------------
|
|
-- inserisco costi per TRASPORTI
|
|
---------------------------------------------
|
|
-- recupero zona da cliente...
|
|
SELECT @TranspZone = TranspZone
|
|
FROM dbo.ClientDet
|
|
WHERE CodClient = @CodClient
|
|
|
|
-- recupero tipo di trasporto
|
|
SELECT @HasTC = ISNULL(i.HasTC, 0)
|
|
FROM QuoteList q INNER JOIN Incoterms i ON q.CodInco = i.CodInco
|
|
WHERE q.QuoteType = @QuoteType
|
|
AND q.CodQuote = @CodQuote
|
|
AND q.QuoteRev = @QuoteRev
|
|
|
|
-- recupero costi trasporto
|
|
SELECT @TranspCost = TranspCost
|
|
FROM dbo.TranspCostDet
|
|
WHERE TranspZone = @TranspZone
|
|
|
|
INSERT INTO QuoteOC(QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Class02, TotQty, TotCost, Quota)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, ISNULL(MAX(NumEx),0) + 1, '04', @CodPlant, 'TRASPORTI', @RawMat, @BatchQty, @HasTC * @TranspCost * @BatchQty, 1
|
|
FROM dbo.QuoteOC
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
|
|
|
|
---------------------------------------------
|
|
-- inserisco costi per PROVVIGIONI
|
|
---------------------------------------------
|
|
SELECT @Provvig = ISNULL(a.QuotaProvvAg, 0)
|
|
FROM dbo.AgentsDet a
|
|
INNER JOIN ClientDet c ON a.CodAg = c.CodAg
|
|
INNER JOIN QuoteList q ON q.CodClient = c.CodClient
|
|
WHERE q.QuoteType = @QuoteType
|
|
AND q.CodQuote = @CodQuote
|
|
AND q.QuoteRev = @QuoteRev
|
|
|
|
-- inserisco costi per PROVVIGIONI
|
|
INSERT INTO QuoteOC(QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Class02, TotQty, TotCost, Quota)
|
|
SELECT @QuoteType, @CodQuote, @QuoteRev, ISNULL(MAX(NumEx),0) + 1, '04', @CodPlant, 'PROVVIGIONI', @RawMat, @BatchQty, @Provvig * @BatchQty, 1
|
|
FROM dbo.QuoteOC
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
|
|
|
|
|
|
COMMIT TRAN
|
|
|
|
END]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[bit]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_SAM].[@QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_SAM].[@CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update_SAM].[@QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkExt]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkExt].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkExt].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkExt].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[CodPackag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabProdSc]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[KeyAM]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabProdSc].[KeyAM]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabProdSc].[CodDiesGroup]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabProdSc].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabProdSc].[HoleNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[KeyAM]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabProdSc].[ProdTeo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabProdSc].[ScTec]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabProdSc].[KgTeo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabProdSc].[NumSMED]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[RawMat]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[BatchQty]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[ItemDescr]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam].[NumP]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam].[Descr]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam].[Parameter]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[Class01]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[Class02]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[Class03]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_getSubstring]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[CodDies]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[CodDiesGroup]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[Active]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[NumWI]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[Class01]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[Class02]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[Class03]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[NetProd]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[WSR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabProdSc].[KgTeo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[Class03]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[RawMat]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[MSR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[CSR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[FC4UG]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant].[FC]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant].[QuotaPlantStd]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant].[QuotaManStd]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[NetProd]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[VC4UG]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant].[VC]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[OH4UG]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant].[OH]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[SC4UG]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant].[SC]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[BatchQty]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabDifett]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[Class02]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabDifett].[KeyAMI]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabDifett].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[DSR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabDifett].[TotOUT]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabDifett].[TotIn]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[Class04]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[Class05]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabImbArt]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[Class04]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabImbArt].[KeyA]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabImbArt].[TotOut]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabImbArt].[Durata]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabImbArt].[NumImb]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabImbArt].[KeyA]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[Class05]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[MCR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[WCR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[DCR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[SSR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[RawMat]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[FCR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[RawMat]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[NumEx]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[Class01]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[Class02]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[TotQty]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[TotCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[Quota]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Utilities]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Utilities].[CodUtil]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Utilities].[UnitCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Utilities].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[Price]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[ActLife]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[ExpLife]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet].[Price]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet].[CodDiesGroup]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet].[EOLLife]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet].[ExpLife]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[valid]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[C4UG]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[RawMat]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[RawMat]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[RawMatCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[SSVA]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[SSVR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[RawMatExtraCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[ProcYield]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[ProcCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_packageCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_packageCost].[@PDesc]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_packageCost].[@RMWeight]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_packageCost].[@Weight]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_packageCost].[@Tare]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_packageCost].[@PackCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_packageCost].[@TareStRat]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet].[TranspZone]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet].[CodClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Incoterms]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodInco]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Incoterms].[CodInco]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Incoterms].[HasTC]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TranspCostDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TranspCostDet].[TranspCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TranspCostDet].[TranspZone]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AgentsDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AgentsDet].[CodAg]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet].[CodAg]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet].[CodClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AgentsDet].[QuotaProvvAg]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteRev]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_QL_update_SAM].[@QuoteType]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA['Q']]></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>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_QL_update_SAM].[@CodQuote]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[0]]></Value>
|
|
</Property>
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[bigint]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_QL_update_SAM].[@QuoteRev]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![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="253" />
|
|
<Property Name="Length" Value="30420" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="






-- =============================================
-- Author:		S.E. Locatelli
-- Create date: 2013.12.13
-- Description:	aggiorna tabella QuoteList con i dati selezionati dalla TabProdSc
-- =============================================
CREATE PROCEDURE [dbo].[stp_QL_update_SAM]
(
	@QuoteType	CHAR(1) = 'Q',
	@CodQuote	BIGINT	= 0,
	@QuoteRev	INT		= 0
) 
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_QRM_getByKey]">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
|
|
SELECT *
|
|
FROM QuoteRM
|
|
WHERE QuoteType = @QuoteType
|
|
AND CodQuote = @CodQuote
|
|
AND QuoteRev = @QuoteRev
|
|
AND NumRM = @NumRM
|
|
|
|
RETURN]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QRM_getByKey].[@QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QRM_getByKey].[@CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QRM_getByKey].[@QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[NumRM]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QRM_getByKey].[@NumRM]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_QRM_getByKey].[@QuoteType]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA['Q']]></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>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_QRM_getByKey].[@CodQuote]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[0]]></Value>
|
|
</Property>
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[bigint]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_QRM_getByKey].[@QuoteRev]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![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_QRM_getByKey].[@NumRM]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![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="186" />
|
|
<Property Name="Length" Value="465" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="-- =============================================
-- Author:		Steamware
-- Create date: 2014.02.23
-- Description:	recupera riga QRM
-- =============================================
create PROCEDURE dbo.stp_QRM_getByKey 
(
	@QuoteType CHAR(1) = 'Q'
	,@CodQuote BIGINT = 0
	,@QuoteRev INT = 0
	,@NumRM INT = 0
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_QuoteFull_delete]">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
|
|
BEGIN tran
|
|
-- elimino da QuoteFull
|
|
DELETE
|
|
FROM QuoteFull_Q
|
|
WHERE QuoteType = @Original_QuoteType
|
|
AND CodQuote = @Original_CodQuote
|
|
AND QuoteRev = @Original_QuoteRev
|
|
|
|
-- elimino da tab child
|
|
DELETE
|
|
FROM QuoteWorkExt
|
|
WHERE QuoteType = @Original_QuoteType
|
|
AND CodQuote = @Original_CodQuote
|
|
AND QuoteRev = @Original_QuoteRev
|
|
|
|
DELETE
|
|
FROM QuoteWorkInt
|
|
WHERE QuoteType = @Original_QuoteType
|
|
AND CodQuote = @Original_CodQuote
|
|
AND QuoteRev = @Original_QuoteRev
|
|
|
|
DELETE
|
|
FROM QuoteOC
|
|
WHERE QuoteType = @Original_QuoteType
|
|
AND CodQuote = @Original_CodQuote
|
|
AND QuoteRev = @Original_QuoteRev
|
|
|
|
DELETE
|
|
FROM QuoteParam
|
|
WHERE QuoteType = @Original_QuoteType
|
|
AND CodQuote = @Original_CodQuote
|
|
AND QuoteRev = @Original_QuoteRev
|
|
|
|
-- elimino le 2 master: RM e list...
|
|
DELETE
|
|
FROM QuoteRM
|
|
WHERE QuoteType = @Original_QuoteType
|
|
AND CodQuote = @Original_CodQuote
|
|
AND QuoteRev = @Original_QuoteRev
|
|
|
|
DELETE
|
|
FROM QuoteList
|
|
WHERE QuoteType = @Original_QuoteType
|
|
AND CodQuote = @Original_CodQuote
|
|
AND QuoteRev = @Original_QuoteRev
|
|
|
|
COMMIT tran
|
|
|
|
RETURN]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QuoteFull_delete].[@Original_QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QuoteFull_delete].[@Original_CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QuoteFull_delete].[@Original_QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkExt]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkExt].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkExt].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkExt].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteRev]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_QuoteFull_delete].[@Original_QuoteType]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA['Q']]></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>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_QuoteFull_delete].[@Original_CodQuote]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[0]]></Value>
|
|
</Property>
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[bigint]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_QuoteFull_delete].[@Original_QuoteRev]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![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="207" />
|
|
<Property Name="Length" Value="1496" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="-- =============================================
-- Author:		Steamware
-- Create date: 2014.02.23
-- Description:	upelimina tutti i record di un offerta
-- =============================================
CREATE PROCEDURE [dbo].[stp_QuoteFull_delete]
(
	@Original_QuoteType CHAR(1) = 'Q'
	,@Original_CodQuote BIGINT = 0
	,@Original_QuoteRev INT = 0
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_QuoteFull_Q_update]">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
BEGIN
|
|
|
|
-- aggiorno valori!
|
|
UPDATE QuoteList
|
|
SET PriceOff = @PriceOff
|
|
WHERE QuoteType = @Original_QuoteType
|
|
AND CodQuote = @Original_CodQuote
|
|
AND QuoteRev = @Original_QuoteRev
|
|
|
|
-- update dei valori calcolati!
|
|
EXEC stp_QL_fullDataUpdate @Original_QuoteType
|
|
,@Original_CodQuote
|
|
,@Original_QuoteRev
|
|
END]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[PriceOff]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QuoteFull_Q_update].[@PriceOff]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QuoteFull_Q_update].[@Original_QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QuoteFull_Q_update].[@Original_CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QuoteFull_Q_update].[@Original_QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_fullDataUpdate]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_QuoteFull_Q_update].[@Original_QuoteType]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA['Q']]></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>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_QuoteFull_Q_update].[@Original_CodQuote]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[0]]></Value>
|
|
</Property>
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[bigint]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_QuoteFull_Q_update].[@Original_QuoteRev]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![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_QuoteFull_Q_update].[@PriceOff]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[0]]></Value>
|
|
</Property>
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</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="709" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="-- =============================================
-- Author:		Steamware
-- Create date: 2014.02.07
-- Description:	update valori tab QuoteList
-- =============================================
CREATE PROCEDURE [dbo].[stp_QuoteFull_Q_update] (
	@Original_QuoteType CHAR(1) = 'Q'
	,@Original_CodQuote BIGINT = 0
	,@Original_QuoteRev INT = 0
	,@PriceOff DECIMAL(9, 6) = 0
	)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_TD_upsert]">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
BEGIN
|
|
|
|
BEGIN TRAN
|
|
|
|
SET NOCOUNT ON;
|
|
|
|
-- svuoto tabella...
|
|
TRUNCATE TABLE TabDifett
|
|
|
|
-- riempio di nuovo valori!
|
|
INSERT INTO TabDifett
|
|
SELECT
|
|
dd.CodItem + '-' + pl.RawMat + '-' + pl.CodPlant as KeyAMI
|
|
, pl.ProcessNum
|
|
, dd.CodItem, pl.RawMat, pl.CodPlant
|
|
, SUM(NumOUT) as TotOUT
|
|
, SUM(NumIN) as TotIn
|
|
FROM ProductionLog pl INNER JOIN DiesDet dd ON pl.CodDies=dd.CodDies
|
|
WHERE pl.ProcessNum IN ('02', '04')
|
|
AND pl.okDi = 1
|
|
-- and pl.EventType=1
|
|
AND pl.EventStart BETWEEN @dateFrom AND @dateTo
|
|
GROUP BY dd.CodItem, pl.RawMat, pl.CodPlant, pl.ProcessNum
|
|
ORDER BY dd.CodItem, pl.RawMat, pl.ProcessNum--, SUM(NumOUT) DESC
|
|
|
|
-- salvo nuova revisione dati di produzione...
|
|
INSERT INTO RevHistory
|
|
SELECT 'P', ISNULL(MAX(RevNum),0) + 1, GETDATE(), 'Aggiornamento dati di produzione x fasi 02/03 ' + CONVERT(NVARCHAR(20), @dateFrom, 120) + ' --> ' +CONVERT(NVARCHAR(20), @dateTo, 120)
|
|
FROM RevHistory
|
|
WHERE RevType = 'P'
|
|
|
|
COMMIT TRAN
|
|
|
|
END]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[TabDifett]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[CodDies]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[CodDies]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[RawMat]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[NumOUT]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[NumIN]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[okDi]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[EventStart]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_TD_upsert].[@dateFrom]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_TD_upsert].[@dateTo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RevHistory]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RevHistory].[RevNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RevHistory].[RevType]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_TD_upsert].[@dateFrom]">
|
|
<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_TD_upsert].[@dateTo]">
|
|
<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="210" />
|
|
<Property Name="Length" Value="1387" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="-- =============================================
-- Author:		S.E. Locatelli
-- Create date: 2013.12.17
-- Description:	Crea TabDifett (tabella difettosità)
-- =============================================
CREATE PROCEDURE [dbo].[stp_TD_upsert]
(
	@dateFrom	DATETIME, -- data da cui iniziare a caricare
	@dateTo		DATETIME -- data fino a cui caricare
) 
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_TI_upsert]">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
BEGIN
|
|
|
|
BEGIN TRAN
|
|
|
|
SET NOCOUNT ON;
|
|
|
|
-- svuoto tabella...
|
|
TRUNCATE TABLE TabImbArt
|
|
TRUNCATE TABLE TabImbGrp
|
|
|
|
-- riempio di nuovo valori x articolo!
|
|
INSERT INTO TabImbArt
|
|
SELECT
|
|
dd.CodItem as KeyA
|
|
, ROUND(SUM(QtyOUT* QuotaMan) / CASE WHEN SUM(QtyOUT) = 0 THEN 1 ELSE SUM(QtyOUT) END,0) as NumImb
|
|
, SUM(QtyOUT) AS TotOut
|
|
, SUM(Duration) AS Durata
|
|
FROM ProductionLog pl INNER JOIN DiesDet dd ON pl.CodDies=dd.CodDies
|
|
WHERE pl.ProcessNum = '04'
|
|
AND pl.okPr = 1 AND pl.okQM = 1
|
|
AND pl.EventStart BETWEEN @dateFrom AND @dateTo
|
|
GROUP BY dd.CodItem
|
|
ORDER BY dd.CodItem
|
|
|
|
|
|
-- riempio di nuovo valori x gruppo imballo!
|
|
INSERT INTO TabImbGrp
|
|
SELECT
|
|
pl.CodPackag
|
|
, ROUND(SUM(QtyOUT* QuotaMan) / CASE WHEN SUM(QtyOUT) = 0 THEN 1 ELSE SUM(QtyOUT) END,0) as NumImb
|
|
, SUM(QtyOUT) AS TotOut
|
|
, SUM(Duration) AS Durata
|
|
FROM ProductionLog pl INNER JOIN DiesDet dd ON pl.CodDies=dd.CodDies
|
|
WHERE pl.ProcessNum = '04'
|
|
AND pl.okPr = 1 AND pl.okQM = 1
|
|
AND pl.EventStart BETWEEN @dateFrom AND @dateTo
|
|
GROUP BY pl.CodPackag
|
|
ORDER BY pl.CodPackag
|
|
|
|
-- salvo nuova revisione dati di produzione...
|
|
INSERT INTO RevHistory
|
|
SELECT 'P', ISNULL(MAX(RevNum),0) + 1, GETDATE(), 'Aggiornamento dati di produzione x fase 04 ' + CONVERT(NVARCHAR(20), @dateFrom, 120) + ' --> ' +CONVERT(NVARCHAR(20), @dateTo, 120)
|
|
FROM RevHistory
|
|
WHERE RevType = 'P'
|
|
|
|
COMMIT TRAN
|
|
|
|
END]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[TabImbArt]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabImbGrp]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[CodDies]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[CodDies]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[QtyOUT]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[QuotaMan]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[Duration]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[okPr]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[okQM]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[EventStart]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_TI_upsert].[@dateFrom]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_TI_upsert].[@dateTo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[CodPackag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RevHistory]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RevHistory].[RevNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RevHistory].[RevType]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_TI_upsert].[@dateFrom]">
|
|
<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_TI_upsert].[@dateTo]">
|
|
<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="297" />
|
|
<Property Name="Length" Value="1937" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="
-- =============================================
-- Author:		S.E. Locatelli
-- Create date: 2013.12.20
-- Description:	Crea TabImb (tabella imballi)
-- NON SERVE PIU' le due tabelle sono state inglobate in Package2/Item/Client
-- =============================================
CREATE PROCEDURE [dbo].[stp_TI_upsert]
(
	@dateFrom	DATETIME, -- data da cui iniziare a caricare
	@dateTo		DATETIME -- data fino a cui caricare
) 
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_TPS_upsert]">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
BEGIN
|
|
|
|
BEGIN TRAN
|
|
|
|
SET NOCOUNT ON;
|
|
|
|
-- svuoto tabella...
|
|
TRUNCATE TABLE TabProdSc
|
|
|
|
-- riempio di nuovo valori!
|
|
INSERT INTO TabProdSc
|
|
SELECT
|
|
dd.CodItem + '-' + pl.RawMat + '-' + pl.CodPlant + '-' + CAST(dd.HoleNum AS NVARCHAR(19)) as KeyAMIL
|
|
, dd.CodDiesGroup
|
|
, dd.CodItem + '-' + pl.RawMat as KeyAM
|
|
, dd.CodItem, pl.RawMat, pl.CodPlant, dd.HoleNum
|
|
, 0 as NumSMED -- numero cambi, da sistemare...
|
|
, SUM(QtyOUT) as KgTeorici
|
|
, SUM(QtyIN) as KgLordi
|
|
, SUM(Duration) AS Durata
|
|
FROM ProductionLog pl INNER JOIN DiesDet dd ON pl.CodDies=dd.CodDies
|
|
WHERE pl.ProcessNum='01' and pl.EventType=1
|
|
AND pl.okPr = 1 AND pl.okSc = 1
|
|
AND pl.EventStart BETWEEN @dateFrom AND @dateTo
|
|
GROUP BY dd.CodItem, pl.RawMat, dd.CodDiesGroup, pl.CodPlant, dd.HoleNum
|
|
ORDER BY dd.CodItem, pl.RawMat, dd.CodDiesGroup, SUM(QtyOUT) DESC
|
|
|
|
-- calcolo cambi SMED
|
|
|
|
-- con cte
|
|
; WITH cteCambiPre
|
|
AS
|
|
(
|
|
SELECT
|
|
ROW_NUMBER() OVER(ORDER BY CodPlant, EventStart ASC) AS Row,
|
|
CodPlant, RawMat, EventStart, ProcessNum, CodDies, CodClient, OrderNum, BatchNum
|
|
FROM ProductionLog pl
|
|
WHERE pl.ProcessNum='01' and pl.EventType=1
|
|
AND pl.okPr = 1 AND pl.okSc = 1
|
|
AND pl.EventStart BETWEEN @dateFrom AND @dateTo
|
|
)
|
|
, cteCambi
|
|
AS
|
|
(
|
|
SELECT dd.CodItem + '-' + a.RawMat + '-' + a.CodPlant + '-' + CAST(dd.HoleNum AS NVARCHAR(19)) as KeyAMIL
|
|
, dd.CodDiesGroup
|
|
, a.*
|
|
--, b.Row
|
|
--, ISNULL(b.Row, 0) AS Cambio -- se 0 c'è cambio
|
|
--, CASE ISNULL(b.Row, 0) WHEN 0 THEN 1 ELSE 0 END AS Cambio2
|
|
, CASE ISNULL(b.Row, 0) WHEN 0 THEN 1 ELSE 0 END AS Cambio2
|
|
FROM cteCambiPre AS a
|
|
LEFT JOIN cteCambiPre AS b
|
|
ON a.Row-1 = b.Row
|
|
AND a.CodPlant = b.CodPlant AND a.CodDies = b.CodDies
|
|
INNER JOIN DiesDet dd ON a.CodDies=dd.CodDies
|
|
WHERE b.Row IS NULL -- se voglio vedere solo i cambi
|
|
--ORDER BY a.CodPlant, a.EventStart
|
|
)
|
|
UPDATE tps
|
|
SET NumSMED = cc.NumSMED
|
|
FROM TabProdSc tps
|
|
INNER JOIN (
|
|
SELECT KeyAMIL, CodDiesGroup, SUM(Cambio2) as NumSMED
|
|
FROM cteCambi
|
|
GROUP BY KeyAMIL, CodDiesGroup
|
|
--ORDER BY KeyAMIL, CodDiesGroup
|
|
) AS cc
|
|
ON tps.KeyAMIL= cc.KeyAMIL AND tps.CodDiesGroup = cc.CodDiesGroup
|
|
|
|
|
|
|
|
-- -- altro metodo, forse + veloce...
|
|
-- DROP TABLE test
|
|
|
|
-- CREATE TABLE [dbo].[test](
|
|
-- [Row] [bigint] IDENTITY(1,1) NOT NULL,
|
|
-- [CodPlant] [nvarchar](50) NOT NULL,
|
|
-- [EventStart] [datetime] NOT NULL,
|
|
-- [ProcessNum] [nvarchar](50) NOT NULL,
|
|
-- [CodDies] [nvarchar](50) NOT NULL,
|
|
-- [CodClient] [nvarchar](50) NOT NULL,
|
|
-- [OrderNum] [nvarchar](50) NOT NULL,
|
|
-- [BatchNum] [nvarchar](50) NOT NULL,
|
|
-- CONSTRAINT [PK_test] PRIMARY KEY CLUSTERED
|
|
-- (
|
|
-- [Row] ASC
|
|
-- )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
-- ) ON [PRIMARY]
|
|
|
|
|
|
-- INSERT INTO TEST
|
|
-- SELECT CodPlant, EventStart, ProcessNum, CodDies, CodClient, OrderNum, BatchNum
|
|
-- FROM ProductionLog pl
|
|
-- WHERE pl.ProcessNum='01' and pl.EventType=1
|
|
-- ORDER BY CodPlant, EventStart
|
|
|
|
---- SELECT * FROM Test
|
|
|
|
-- SELECT a.*
|
|
-- , b.Row
|
|
-- , ISNULL(b.Row, 0) AS Cambio -- se 0 c'è cambio
|
|
-- , CASE ISNULL(b.Row, 0) WHEN 0 THEN 1 ELSE 0 END AS Cambio2
|
|
-- FROM test AS a
|
|
-- LEFT JOIN test AS b
|
|
-- ON a.Row - 1 = b.Row -- aggancio record precedente
|
|
-- AND a.CodPlant = b.CodPlant AND a.CodDies = b.CodDies
|
|
-- WHERE b.Row IS NULL -- solo i cambi
|
|
-- ORDER BY a.CodPlant, a.EventStart
|
|
|
|
|
|
|
|
-- salvo nuova revisione dati di produzione...
|
|
INSERT INTO RevHistory
|
|
SELECT 'P', ISNULL(MAX(RevNum),0) + 1, GETDATE(), 'Aggiornamento dati di produzione fase 01 ' + CONVERT(NVARCHAR(20), @dateFrom, 120) + ' --> ' +CONVERT(NVARCHAR(20), @dateTo, 120)
|
|
FROM RevHistory
|
|
WHERE RevType = 'P'
|
|
|
|
COMMIT TRAN
|
|
|
|
END]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[TabProdSc]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[CodDies]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[CodDies]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[RawMat]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[HoleNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[CodDiesGroup]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[QtyOUT]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[QtyIN]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[Duration]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[EventType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[okPr]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[okSc]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[EventStart]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_TPS_upsert].[@dateFrom]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_TPS_upsert].[@dateTo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[EventStart]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[RawMat]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[CodDies]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[CodClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[OrderNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[BatchNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[EventType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[okPr]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[okSc]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[EventStart]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[CodDies]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[CodDies]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[RawMat]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[HoleNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[CodDiesGroup]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[CodDiesGroup]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabProdSc].[KeyAMIL]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabProdSc].[CodDiesGroup]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[CodDiesGroup]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabProdSc].[NumSMED]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RevHistory]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RevHistory].[RevNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RevHistory].[RevType]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DynamicObjects">
|
|
<Entry>
|
|
<Element Type="SqlDynamicColumnSource" Name="[dbo].[stp_TPS_upsert].[CTE1].[cteCambiPre]">
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_TPS_upsert].[CTE1].[cteCambiPre].[Row]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_TPS_upsert].[CTE1].[cteCambiPre].[CodPlant]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[CodPlant]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_TPS_upsert].[CTE1].[cteCambiPre].[RawMat]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[RawMat]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_TPS_upsert].[CTE1].[cteCambiPre].[EventStart]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[EventStart]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_TPS_upsert].[CTE1].[cteCambiPre].[ProcessNum]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[ProcessNum]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_TPS_upsert].[CTE1].[cteCambiPre].[CodDies]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[CodDies]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_TPS_upsert].[CTE1].[cteCambiPre].[CodClient]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[CodClient]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_TPS_upsert].[CTE1].[cteCambiPre].[OrderNum]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[OrderNum]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_TPS_upsert].[CTE1].[cteCambiPre].[BatchNum]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[BatchNum]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlDynamicColumnSource" Name="[dbo].[stp_TPS_upsert].[CTE1].[cteCambi]">
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_TPS_upsert].[CTE1].[cteCambi].[KeyAMIL]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_TPS_upsert].[CTE1].[cteCambi].[CodDiesGroup]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[CodDiesGroup]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_TPS_upsert].[CTE1].[cteCambi].[Row]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_TPS_upsert].[CTE1].[cteCambi].[CodPlant]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[CodPlant]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_TPS_upsert].[CTE1].[cteCambi].[RawMat]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[RawMat]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_TPS_upsert].[CTE1].[cteCambi].[EventStart]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[EventStart]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_TPS_upsert].[CTE1].[cteCambi].[ProcessNum]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[ProcessNum]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_TPS_upsert].[CTE1].[cteCambi].[CodDies]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[CodDies]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_TPS_upsert].[CTE1].[cteCambi].[CodClient]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[CodClient]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_TPS_upsert].[CTE1].[cteCambi].[OrderNum]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[OrderNum]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_TPS_upsert].[CTE1].[cteCambi].[BatchNum]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[BatchNum]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[stp_TPS_upsert].[CTE1].[cteCambi].[Cambio2]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_TPS_upsert].[@dateFrom]">
|
|
<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_TPS_upsert].[@dateTo]">
|
|
<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="218" />
|
|
<Property Name="Length" Value="4647" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="-- =============================================
-- Author:		S.E. Locatelli
-- Create date: 2013.12.13
-- Description:	Crea TabProdSc (tabella produttività/scarti)
-- =============================================
CREATE PROCEDURE [dbo].[stp_TPS_upsert]
(
	@dateFrom	DATETIME, -- data da cui iniziare a caricare
	@dateTo		DATETIME -- data fino a cui caricare
) 
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_VSCli_SearchLike]">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
SET NOCOUNT ON;
|
|
|
|
SELECT value
|
|
,label
|
|
FROM v_selClient
|
|
WHERE (value LIKE '%' + @value + '%')
|
|
OR (label LIKE '%' + @value + '%')]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_selClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_selClient].[value]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_selClient].[label]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_VSCli_SearchLike].[@value]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_VSCli_SearchLike].[@value]">
|
|
<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="189" />
|
|
<Property Name="Length" Value="402" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="-- =============================================
-- Author:		S.E. Locatelli
-- Create date: 2014.02.11
-- Description:	Ricerca clienti
-- =============================================
CREATE PROCEDURE [dbo].stp_VSCli_SearchLike
(
	@value NVARCHAR(50)
)

AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_VSItem_SearchLike]">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
SET NOCOUNT ON;
|
|
|
|
SELECT value
|
|
,label
|
|
FROM v_selItems
|
|
WHERE (value LIKE '%' + @value + '%')
|
|
OR (label LIKE '%' + @value + '%')]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_selItems]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_selItems].[value]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_selItems].[label]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_VSItem_SearchLike].[@value]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_VSItem_SearchLike].[@value]">
|
|
<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="187" />
|
|
<Property Name="Length" Value="400" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="-- =============================================
-- Author:		S.E. Locatelli
-- Create date: 2014.02.18
-- Description:	Ricerca items
-- =============================================
create PROCEDURE [dbo].stp_VSItem_SearchLike
(
	@value NVARCHAR(50)
)

AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_VSRM_SearchLike]">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
SET NOCOUNT ON;
|
|
|
|
SELECT value
|
|
,label
|
|
FROM v_selRawMat
|
|
WHERE (value LIKE '%' + @value + '%')
|
|
OR (label LIKE '%' + @value + '%')]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[v_selRawMat]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_selRawMat].[value]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[v_selRawMat].[label]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_VSRM_SearchLike].[@value]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[dbo].[stp_VSRM_SearchLike].[@value]">
|
|
<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="406" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="-- =============================================
-- Author:		S.E. Locatelli
-- Create date: 2014.02.18
-- Description:	Ricerca materiale Al
-- =============================================
create PROCEDURE [dbo].stp_VSRM_SearchLike
(
	@value NVARCHAR(50)
)

AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[dbo].[stp_zzz_scratch]">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
BEGIN
|
|
|
|
-- dichiaro e imposto periodo di calcolo dei valori
|
|
-- andrà impostato in una tabella e mi determinerà la versione dei dati
|
|
DECLARE @dateFrom AS DateTime;
|
|
DECLARE @dateTo AS DateTime;
|
|
|
|
SET @dateFrom = '20100101'
|
|
SET @dateTo = '20130929'
|
|
|
|
-- ==========================================
|
|
-- IMPORTAZIONE DATI CSV
|
|
-- ==========================================
|
|
exec tmp.importProductionLogRaw
|
|
exec tmp.importClientsRaw
|
|
exec tmp.importTranspCostRaw
|
|
exec tmp.importItemsRaw
|
|
exec tmp.importPackagRaw
|
|
exec tmp.importDiesRaw
|
|
-- questo sotto va fatto solo se ci sono dati da integrare in DiesRaw
|
|
exec tmp.importDiesGroupRaw
|
|
|
|
select top 10 * FROM tmp.ProductionLogRaw
|
|
select * FROM tmp.ClientsRaw
|
|
select * FROM tmp.ItemsRaw
|
|
select * FROM tmp.PackagRaw
|
|
select * FROM tmp.DiesRaw
|
|
select * FROM tmp.DiesGroupRaw
|
|
|
|
-- Se ci sono record con Item doppi li cancello????
|
|
SELECT CodItem,COUNT(*) as qty
|
|
FROM ( SELECT DISTINCT * FROM tmp.ItemsRaw ) AS a
|
|
GROUP BY CodItem
|
|
having COUNT(*)>1
|
|
|
|
delete from tmp.ItemsRaw
|
|
where CodItem IN
|
|
(
|
|
SELECT CodItem
|
|
FROM ( SELECT DISTINCT * FROM tmp.ItemsRaw ) AS a
|
|
GROUP BY CodItem
|
|
having COUNT(*)>1
|
|
)
|
|
|
|
|
|
-- ==========================================
|
|
-- CARICO DATI IN RAW ( da Char a Tipi corretti )
|
|
-- ==========================================
|
|
exec tmp.convertClientsRaw
|
|
exec tmp.convertTranspCostRaw
|
|
exec tmp.convertItemsRaw
|
|
exec tmp.convertProductionLogRaw
|
|
exec tmp.convertPackagRaw
|
|
exec tmp.convertDiesRaw
|
|
|
|
-- necessario se integriamo i dati x i gruppi di matrici con un file
|
|
exec tmp.convertDiesGroupRaw
|
|
|
|
select top 10 * FROM ext.ProductionLogRaw
|
|
select * FROM ext.ClientsRaw
|
|
select * FROM ext.ItemsRaw
|
|
select * FROM ext.PackagRaw
|
|
select * FROM ext.DiesRaw
|
|
SELECT * FROM ext.DiesGroupRaw
|
|
|
|
-- elimino a mano dato con oltre 68 anni di evento...
|
|
select *
|
|
--delete
|
|
from ext.ProductionLogRaw
|
|
where DATEDIFF(YEAR,EventStart,EventEnd)> 10
|
|
|
|
exec ext.stp_mergeAgentsDet
|
|
exec ext.stp_mergeClientDet 'ProductionLogRaw'
|
|
exec ext.stp_mergeClientDet 'ClientsRaw'
|
|
exec ext.stp_mergeTranspCostDet 'TranspCostRaw'
|
|
exec ext.stp_mergePlantsDet
|
|
exec ext.stp_mergeCost2Plant
|
|
exec ext.stp_mergeItemDet 'ItemsRaw'
|
|
exec ext.stp_mergePackagDet 'ProductionLogRaw' -- 'PackagRaw'
|
|
exec ext.stp_mergePackage2ItemClient 'ProductionLog', @dateFrom, @dateTo
|
|
exec ext.stp_mergePackage2Item 'ProductionLog', @dateFrom, @dateTo
|
|
exec ext.stp_mergePackage2 'ProductionLog', @dateFrom, @dateTo
|
|
|
|
exec ext.stp_mergeDiesDet
|
|
-- se ricarico diesgroup... ricarico solo i campi che nel file sono <> ''
|
|
exec ext.stp_mergeDiesGroupDet
|
|
|
|
exec ext.stp_mergeRawMat
|
|
exec ext.stp_updateProductionLog
|
|
|
|
---- aggiorno quota agenti a 0.037
|
|
----update AgentsDet set quotaperc=0.0374
|
|
|
|
|
|
SELECT DISTINCT dr.CodItem FROM ext.DiesRaw dr LEFT OUTER JOIN ItemDet id ON dr.CodItem = id.CodItem
|
|
where id.CodItemGroup is null
|
|
|
|
select * from ClientDet
|
|
select * from ItemDet
|
|
select * from Package2ItemClient
|
|
select * from Package2Item
|
|
select * from Package2
|
|
select * from PackagDet
|
|
select * from DiesGroupDet where EOLLife > 0
|
|
select * from DiesDet
|
|
select * from DiesGroupDet
|
|
select * from AgentsDet
|
|
select * from PlantsDet
|
|
select * from Cost2Plant
|
|
select * from utilities
|
|
select top 100 * from ProductionLog
|
|
|
|
--update tmp.ProductionLogRaw
|
|
--set
|
|
-- okPr = 1
|
|
-- , okDi = 1
|
|
-- , okQM = 1
|
|
-- , okSc = 1
|
|
|
|
select distinct ProcessNum from ProductionLog
|
|
|
|
select top 10 * from ext.ProductionLogRaw
|
|
|
|
|
|
---- fix errore packaging
|
|
--update tmp.ProductionLogRaw
|
|
--SET CodPackag='4'
|
|
--where CodPackag LIKE '%4%' and CodPackag <> '4'
|
|
--select * from tmp.ProductionLogRaw where CodPackag LIKE '%4%' and CodPackag <> '4'
|
|
|
|
SELECT p.CodDies, CodItem, CodClient, CodPackag, p.* FROM ext.ProductionLogRaw AS p
|
|
LEFT JOIN dbo.DiesDet AS d ON p.CodDies = d.CodDies
|
|
WHERE CodItem IS NULL
|
|
|
|
|
|
|
|
-- parte CALCOLI!!!
|
|
|
|
select * from QuoteList
|
|
|
|
select * from ClientDet where CodClient='05000001048'
|
|
|
|
select * from itemdet
|
|
where CodItem like '1PT00102%'
|
|
|
|
select * from RawMatDet
|
|
|
|
|
|
--Q 1312130001 0 05000001048 1PT00102 A 7020 7673,400 1000 CPT NULL NULL NULL NULL
|
|
|
|
SELECT --TOP 10
|
|
dd.CodItem, pl.RawMat, dd.CodItem + '-' + pl.RawMat as KeyAM, dd.CodDiesGroup, pl.CodPlant, dd.HoleNum
|
|
,dd.CodItem + '-' + pl.RawMat + '-' + pl.CodPlant + '-' + CAST(dd.HoleNum AS NVARCHAR(19)) as KeyAMIL
|
|
,0 as NumSMED -- numero cambi, da sistemare...
|
|
, SUM(QtyOUT) as KgTeorici, SUM(Duration) AS Durata
|
|
,ISNULL(SUM(QtyOUT),0)/ISNULL(SUM(Duration), 1) as ProduttTeo
|
|
FROM ProductionLog pl INNER JOIN DiesDet dd ON pl.CodDies=dd.CodDies
|
|
WHERE pl.ProcessNum='01' and pl.EventType=1
|
|
GROUP BY dd.CodItem, pl.RawMat, dd.CodDiesGroup, pl.CodPlant, dd.HoleNum
|
|
ORDER BY dd.CodItem, pl.RawMat, dd.CodDiesGroup, SUM(QtyOUT) DESC
|
|
|
|
-- ==========================================
|
|
-- re-insert dei dati di produzione x statistiche
|
|
-- ==========================================
|
|
exec stp_TPS_upsert @dateFrom, @dateTo
|
|
exec stp_TD_upsert @dateFrom , @dateTo
|
|
-- exec stp_TI_upsert @dateFrom , @dateTo -- adesso sono già calcolati e inseriti in Package2 / Package2Item
|
|
|
|
-- ==========================================
|
|
-- salvo nuova revisione dati di produzione...
|
|
-- Va messa in ogni procedura di update con 'procedura' e versione anno-mese-giorno
|
|
-- ==========================================
|
|
INSERT INTO RevHistory
|
|
SELECT 'P', ISNULL(MAX(RevNum),0) + 1, GETDATE(), 'Aggiornamento dati di produzione x fase 04 ' + CONVERT(NVARCHAR(20), @dateFrom, 120) + ' --> ' +CONVERT(NVARCHAR(20), @dateTo, 120)
|
|
FROM RevHistory
|
|
WHERE RevType = 'P'
|
|
|
|
|
|
select * from RevHistory
|
|
|
|
-- simulazione tempo di calcolo: circa 50/sec
|
|
---- aggiornamento dei dati dell'offerta in oggetto
|
|
--DECLARE @tick DATETIME,
|
|
-- @idx INT = 100
|
|
--SET @tick = GETDATE()
|
|
--WHILE @idx > 0
|
|
--BEGIN
|
|
-- EXEC stp_QL_update 'Q', 1312130001, 0
|
|
-- SELECT @idx = @idx - 1
|
|
--END
|
|
--SELECT GETDATE() - @tick as tempo
|
|
|
|
DECLARE @QuoteType CHAR(1) = 'Q',
|
|
@CodQuote BIGINT = 1312130001,
|
|
@QuoteRev INT = 0
|
|
|
|
EXEC stp_QL_update @QuoteType, @CodQuote, @QuoteRev
|
|
SELECT * FROM QuoteList WHERE QuoteType=@QuoteType AND CodQuote = @CodQuote AND QuoteRev = @QuoteRev
|
|
SELECT * FROM QuoteRM WHERE QuoteType=@QuoteType AND CodQuote = @CodQuote AND QuoteRev = @QuoteRev
|
|
SELECT * FROM QuoteWorkInt WHERE QuoteType=@QuoteType AND CodQuote = @CodQuote AND QuoteRev = @QuoteRev
|
|
SELECT * FROM QuoteWorkExt WHERE QuoteType=@QuoteType AND CodQuote = @CodQuote AND QuoteRev = @QuoteRev
|
|
SELECT * FROM QuoteOC WHERE QuoteType=@QuoteType AND CodQuote = @CodQuote AND QuoteRev = @QuoteRev
|
|
SELECT * FROM QuoteParam WHERE QuoteType=@QuoteType AND CodQuote = @CodQuote AND QuoteRev = @QuoteRev
|
|
|
|
select top 10 * from ItemDet
|
|
|
|
SELECT * FROM RawMatDet
|
|
|
|
SELECT top 10 * FROM TabProdSc
|
|
SELECT top 10 * FROM TabDifett
|
|
-- SELECT * FROM TabImbArt
|
|
-- SELECT * FROM TabImbGrp
|
|
SELECT * FROM PackagDet
|
|
SELECT * FROM Package2
|
|
|
|
---- test gestione selezione CodPackag corretto
|
|
--SELECT TOP 5 * FROM Package2ItemClient
|
|
--SELECT TOP 5 * FROM Package2Item
|
|
--SELECT TOP 5 * FROM Package2
|
|
|
|
SELECT dbo.f_getCodPackag('1EL00005', '05000001048')
|
|
--SELECT dbo.f_getCodPackag('1AN00001', '05000000137')
|
|
|
|
|
|
|
|
END]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[char]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[bigint]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[importProductionLogRaw]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[importClientsRaw]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[importTranspCostRaw]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[importItemsRaw]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[importPackagRaw]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[importDiesRaw]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[importDiesGroupRaw]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ClientsRaw]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ItemsRaw]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[PackagRaw]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[DiesRaw]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[DiesGroupRaw]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ItemsRaw].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ItemsRaw].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[convertClientsRaw]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[convertTranspCostRaw]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[convertItemsRaw]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[convertProductionLogRaw]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[convertPackagRaw]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[convertDiesRaw]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[convertDiesGroupRaw]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ClientsRaw]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[PackagRaw]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[DiesRaw]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[DiesGroupRaw]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[EventStart]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[EventEnd]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[stp_mergeAgentsDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[stp_mergeClientDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[stp_mergeTranspCostDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[stp_mergePlantsDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[stp_mergeCost2Plant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[stp_mergeItemDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[stp_mergePackagDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[stp_mergePackage2ItemClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[stp_mergePackage2Item]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[stp_mergePackage2]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[stp_mergeDiesDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[stp_mergeDiesGroupDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[stp_mergeRawMat]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[stp_updateProductionLog]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[DiesRaw].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[CodItemGroup]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2ItemClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2Item]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[PackagDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet].[EOLLife]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AgentsDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[PlantsDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Utilities]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[CodDies]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[CodDies]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[CodClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[CodPackag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet].[CodClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[CodDies]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[CodDies]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[RawMat]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[CodDiesGroup]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[HoleNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[QtyOUT]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[Duration]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[EventType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_TPS_upsert]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_TD_upsert]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RevHistory]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RevHistory].[RevNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RevHistory].[RevType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[stp_QL_update]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkExt]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkExt].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkExt].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkExt].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabProdSc]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabDifett]" />
|
|
</Entry>
|
|
<Entry />
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="236" />
|
|
<Property Name="Length" Value="7895" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="




-- =============================================
-- Author:		S.E. Locatelli
-- Create date: 2013.11.20
-- Description:	Procedure x calcoli e test import dati e prove varie
-- =============================================
CREATE PROCEDURE [dbo].[stp_zzz_scratch] 
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[TabDifett]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[TabDifett].[KeyAMI]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Length" Value="152" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[TabDifett].[ProcessNum]">
|
|
<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].[TabDifett].[CodItem]">
|
|
<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].[TabDifett].[RawMat]">
|
|
<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].[TabDifett].[CodPlant]">
|
|
<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].[TabDifett].[TotOUT]">
|
|
<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].[TabDifett].[TotIn]">
|
|
<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>
|
|
</Element>
|
|
<Element Type="SqlIndex" Name="[dbo].[TabDifett].[i_TabDifett_KeyAMI_ProcessNum]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[TabDifett].[KeyAMI]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[TabDifett].[ProcessNum]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="IncludedColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[TabDifett].[TotOUT]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabDifett].[TotIn]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="IndexedObject">
|
|
<Entry>
|
|
<References Name="[dbo].[TabDifett]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlIndex" Name="[dbo].[TabDifett].[i_TabDifett_ProcessNum_KeyAMI]">
|
|
<Property Name="IsClustered" Value="True" />
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[TabDifett].[ProcessNum]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[TabDifett].[KeyAMI]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="IndexedObject">
|
|
<Entry>
|
|
<References Name="[dbo].[TabDifett]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[TabImbArt]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[TabImbArt].[KeyA]">
|
|
<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].[TabImbArt].[NumImb]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="116" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[TabImbArt].[TotOut]">
|
|
<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="117" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[TabImbArt].[Durata]">
|
|
<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="115" />
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="161" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[TabImbGrp]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[TabImbGrp].[CodPackag]">
|
|
<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].[TabImbGrp].[NumImb]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="119" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[TabImbGrp].[TotOut]">
|
|
<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="120" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[TabImbGrp].[Durata]">
|
|
<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="118" />
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="162" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[TabProdSc]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[TabProdSc].[KeyAMIL]">
|
|
<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>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[TabProdSc].[CodDiesGroup]">
|
|
<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].[TabProdSc].[KeyAM]">
|
|
<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>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[TabProdSc].[CodItem]">
|
|
<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].[TabProdSc].[RawMat]">
|
|
<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].[TabProdSc].[CodPlant]">
|
|
<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].[TabProdSc].[HoleNum]">
|
|
<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].[TabProdSc].[NumSMED]">
|
|
<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].[TabProdSc].[KgTeo]">
|
|
<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].[TabProdSc].[KgLor]">
|
|
<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].[TabProdSc].[Duration]">
|
|
<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="SqlComputedColumn" Name="[dbo].[TabProdSc].[ProdTeo]">
|
|
<Property Name="ExpressionScript">
|
|
<Value><![CDATA[(isnull([KgTeo],(0))/case isnull([Duration],(1)) when (0) then (1) else isnull([Duration],(1)) end)]]></Value>
|
|
</Property>
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[TabProdSc].[KgTeo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabProdSc].[Duration]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[TabProdSc].[ScTec]">
|
|
<Property Name="ExpressionScript">
|
|
<Value><![CDATA[((1)-[KgTeo]/case [KgLor] when (0) then (1) else [KgLor] end)]]></Value>
|
|
</Property>
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[TabProdSc].[KgTeo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TabProdSc].[KgLor]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="163" />
|
|
</Element>
|
|
<Element Type="SqlIndex" Name="[dbo].[TabProdSc].[i_TabProdSc_KeyAM]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[dbo].[TabProdSc].[KeyAM]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="IncludedColumns">
|
|
<Entry>
|
|
<References Name="[dbo].[TabProdSc].[KgTeo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="IndexedObject">
|
|
<Entry>
|
|
<References Name="[dbo].[TabProdSc]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[test]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[test].[Row]">
|
|
<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="[bigint]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[test].[CodPlant]">
|
|
<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].[test].[EventStart]">
|
|
<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].[test].[ProcessNum]">
|
|
<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].[test].[CodDies]">
|
|
<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].[test].[CodClient]">
|
|
<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].[test].[OrderNum]">
|
|
<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].[test].[BatchNum]">
|
|
<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="164" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[TranspCostDet]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[TranspCostDet].[TranspZone]">
|
|
<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="121" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[TranspCostDet].[TranspCost]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="165" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[dbo].[Utilities]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[dbo].[Utilities].[CodUtil]">
|
|
<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].[Utilities].[CodPlant]">
|
|
<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].[Utilities].[UnitCost]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="122" />
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="166" />
|
|
</Element>
|
|
<Element Type="SqlView" Name="[dbo].[v_QuoteFull_Q]">
|
|
<Property Name="QueryScript">
|
|
<Value><![CDATA[
|
|
SELECT Vers, QuoteType, CodQuote, QuoteRev, CodClient, ClientName, CodItem, CodItemGroup, RawMat, UnitWeight, BatchQty, CodInco, KeyAM, Note, PriceOff, CodClientAssoc, ClientNameAssoc, ItemDescr,
|
|
CodifProfilo, ClasseMerc, TipoDies, CodDiesGroup, DiamDies, HoleNumDies, DiesPrice, DiesExpLife, DiesEOLife, NumDiesInList, NumDiesExaust, CodPlant, KeyAMIL, KgTeo, NumSMED, QuotaMan,
|
|
PRMWeight, PWeight, PTare, LivPackage, LivPackageDett, RawMatCost, RawMatExtraCost, RawMatFullCost, CodPackag, PkgDesc, FSR, ProvvCost, EECost, GasCost, DiesCost, PackCost, TranspCost,
|
|
SellCost01, RefCost01, SellCost04, RefCost04, WSR01, MSR01, NetProd01, FC4UG01, VC4UG01, OH4UG01, SC4UG01, DSR, NetProd04, FC4UG04, VC4UG04, FVC, Charge, FVC + RawMatFullCost AS P_FVC,
|
|
FC4UG01 + OH4UG01 AS CPS, FC4UG01 + OH4UG01 + FVC + RawMatFullCost AS P_CPS, FC4UG04 + FVC + RawMatFullCost AS P_FC4UG04, FVC + FC4UG01 + OH4UG01 + FC4UG04 AS FullCost,
|
|
FVC + FC4UG01 + OH4UG01 + FC4UG04 + RawMatFullCost AS P_FullCost, Charge * (FVC + FC4UG01 + OH4UG01 + FC4UG04) AS MinPrice, Charge * (FVC + FC4UG01 + OH4UG01 + FC4UG04 + RawMatFullCost)
|
|
AS P_MinPrice, PriceOff + RawMatFullCost AS P_PriceOff, FVC + FC4UG01 + OH4UG01 + FC4UG04 - PriceOff AS NetMar, (PriceOff - FVC) / (FC4UG01 + OH4UG01 + FC4UG04) AS FCShield, (PRMWeight - PTare)
|
|
* (PriceOff + RawMatFullCost) / PWeight AS PckSur
|
|
FROM dbo.QuoteFull_Q]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[Vers]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[Vers]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[QuoteType]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[QuoteType]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[CodQuote]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[CodQuote]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[QuoteRev]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[QuoteRev]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[CodClient]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[CodClient]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[ClientName]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[ClientName]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[CodItem]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[CodItem]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[CodItemGroup]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[CodItemGroup]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[RawMat]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[RawMat]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[UnitWeight]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[UnitWeight]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[BatchQty]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[BatchQty]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[CodInco]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[CodInco]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[KeyAM]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[KeyAM]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[Note]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[Note]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[PriceOff]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[PriceOff]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[CodClientAssoc]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[CodClientAssoc]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[ClientNameAssoc]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[ClientNameAssoc]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[ItemDescr]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[ItemDescr]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[CodifProfilo]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[CodifProfilo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[ClasseMerc]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[ClasseMerc]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[TipoDies]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[TipoDies]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[CodDiesGroup]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[CodDiesGroup]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[DiamDies]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[DiamDies]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[HoleNumDies]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[HoleNumDies]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[DiesPrice]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[DiesPrice]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[DiesExpLife]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[DiesExpLife]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[DiesEOLife]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[DiesEOLife]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[NumDiesInList]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[NumDiesInList]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[NumDiesExaust]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[NumDiesExaust]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[CodPlant]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[CodPlant]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[KeyAMIL]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[KeyAMIL]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[KgTeo]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[KgTeo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[NumSMED]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[NumSMED]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[QuotaMan]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[QuotaMan]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[PRMWeight]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[PRMWeight]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[PWeight]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[PWeight]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[PTare]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[PTare]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[LivPackage]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[LivPackage]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[LivPackageDett]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[LivPackageDett]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[RawMatCost]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[RawMatCost]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[RawMatExtraCost]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[RawMatExtraCost]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[RawMatFullCost]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[RawMatFullCost]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[CodPackag]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[CodPackag]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[PkgDesc]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[PkgDesc]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[FSR]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[FSR]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[ProvvCost]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[ProvvCost]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[EECost]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[EECost]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[GasCost]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[GasCost]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[DiesCost]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[DiesCost]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[PackCost]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[PackCost]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[TranspCost]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[TranspCost]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[SellCost01]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[SellCost01]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[RefCost01]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[RefCost01]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[SellCost04]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[SellCost04]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[RefCost04]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[RefCost04]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[WSR01]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[WSR01]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[MSR01]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[MSR01]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[NetProd01]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[NetProd01]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[FC4UG01]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[FC4UG01]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[VC4UG01]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[VC4UG01]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[OH4UG01]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[OH4UG01]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[SC4UG01]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[SC4UG01]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[DSR]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[DSR]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[NetProd04]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[NetProd04]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[FC4UG04]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[FC4UG04]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[VC4UG04]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[VC4UG04]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[FVC]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[FVC]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[Charge]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[Charge]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[P_FVC]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[CPS]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[P_CPS]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[P_FC4UG04]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[FullCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[P_FullCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[MinPrice]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[P_MinPrice]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[P_PriceOff]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[NetMar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[FCShield]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_QuoteFull_Q].[PckSur]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="QueryDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[Vers]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[QuoteType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[CodQuote]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[QuoteRev]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[CodClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[ClientName]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[CodItemGroup]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[RawMat]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[UnitWeight]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[BatchQty]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[CodInco]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[KeyAM]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[Note]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[PriceOff]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[CodClientAssoc]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[ClientNameAssoc]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[ItemDescr]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[CodifProfilo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[ClasseMerc]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[TipoDies]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[CodDiesGroup]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[DiamDies]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[HoleNumDies]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[DiesPrice]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[DiesExpLife]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[DiesEOLife]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[NumDiesInList]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[NumDiesExaust]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[KeyAMIL]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[KgTeo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[NumSMED]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[QuotaMan]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[PRMWeight]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[PWeight]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[PTare]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[LivPackage]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[LivPackageDett]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[RawMatCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[RawMatExtraCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[RawMatFullCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[CodPackag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[PkgDesc]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[FSR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[ProvvCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[EECost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[GasCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[DiesCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[PackCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[TranspCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[SellCost01]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[RefCost01]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[SellCost04]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[RefCost04]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[WSR01]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[MSR01]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[NetProd01]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[FC4UG01]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[VC4UG01]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[OH4UG01]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[SC4UG01]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[DSR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[NetProd04]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[FC4UG04]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[VC4UG04]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[FVC]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[Charge]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="Length" Value="1612" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="CREATE VIEW dbo.v_QuoteFull_Q
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlView" Name="[dbo].[v_selClient]">
|
|
<Property Name="QueryScript">
|
|
<Value><![CDATA[
|
|
SELECT CodClient AS value, ClientName + ' [' + CodClient + ']' AS label
|
|
FROM dbo.ClientDet
|
|
WHERE (CodClient <> '')]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_selClient].[value]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet].[CodClient]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_selClient].[label]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="QueryDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet].[CodClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet].[ClientName]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="Length" Value="174" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="CREATE VIEW dbo.v_selClient
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlView" Name="[dbo].[v_selCons]">
|
|
<Property Name="QueryScript">
|
|
<Value><![CDATA[
|
|
SELECT CodInco AS value, CodInco + ' - ' + Descript AS label
|
|
FROM dbo.Incoterms]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_selCons].[value]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[Incoterms].[CodInco]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_selCons].[label]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="QueryDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[Incoterms]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Incoterms].[CodInco]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Incoterms].[Descript]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="Length" Value="129" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="CREATE VIEW dbo.v_selCons
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlView" Name="[dbo].[v_selItems]">
|
|
<Property Name="QueryScript">
|
|
<Value><![CDATA[
|
|
SELECT CodItem AS value, ItemDescr + ' [' + CodItem + ']' AS label
|
|
FROM dbo.ItemDet
|
|
WHERE (CodItem <> '')]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_selItems].[value]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[CodItem]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_selItems].[label]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="QueryDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[ItemDescr]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="Length" Value="164" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="CREATE VIEW dbo.v_selItems
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlView" Name="[dbo].[v_selRawMat]">
|
|
<Property Name="QueryScript">
|
|
<Value><![CDATA[
|
|
SELECT RawMat AS value, RawMat AS label
|
|
FROM dbo.RawMatDet
|
|
WHERE (RawMat <> '')]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_selRawMat].[value]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[RawMat]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[dbo].[v_selRawMat].[label]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[RawMat]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="QueryDependencies">
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[RawMat]" />
|
|
</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="141" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="
CREATE VIEW dbo.v_selRawMat
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="167" />
|
|
<AttachedAnnotation Disambiguator="142" />
|
|
</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="[ext]">
|
|
<Relationship Name="Authorizer">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[ext].[ClientsRaw]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[ClientsRaw].[CodClient]">
|
|
<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="[ext].[ClientsRaw].[ClientName]">
|
|
<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>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[ClientsRaw].[CodAg]">
|
|
<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="[ext].[ClientsRaw].[ZipCode]">
|
|
<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="[ext].[ClientsRaw].[City]">
|
|
<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="[ext].[ClientsRaw].[State]">
|
|
<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="[ext].[ClientsRaw].[Nation]">
|
|
<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="[ext].[ClientsRaw].[TranspZone]">
|
|
<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="168" />
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References Name="[ext]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="169" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[ext].[DF_ClientsRaw_ClassZona]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[ext].[ClientsRaw]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[ext].[ClientsRaw].[TranspZone]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="168" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[ext].[DF_ItemsRaw_Class01_1]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw].[Class01]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="170" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[ext].[DF_ItemsRaw_Class02_1]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw].[Class02]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="171" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[ext].[DF_ItemsRaw_Class03_1]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw].[Class03]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="172" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[ext].[DF_ItemsRaw_Class04_1]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw].[Class04]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="173" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[ext].[DF_ItemsRaw_Class05_1]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw].[Class05]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="174" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[ext].[DF_ItemsRaw_CodPlant]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw].[CodPlant]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="175" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[ext].[DF_ProductionLogRaw_BatchNum]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[BatchNum]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="176" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[ext].[DF_ProductionLogRaw_CodClient]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[CodClient]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="177" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[ext].[DF_ProductionLogRaw_CodDies]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[CodDies]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="178" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[ext].[DF_ProductionLogRaw_CodPackag]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[CodPackag]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="179" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[ext].[DF_ProductionLogRaw_EventType]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[EventType]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="180" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[ext].[DF_ProductionLogRaw_KO_ImportDateExt]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[(getdate())]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw_KO]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw_KO].[ImportDateExt]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="181" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[ext].[DF_ProductionLogRaw_KO_okDi]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((1))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw_KO]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw_KO].[okDi]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="182" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[ext].[DF_ProductionLogRaw_KO_okPr]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((1))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw_KO]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw_KO].[okPr]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="183" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[ext].[DF_ProductionLogRaw_KO_okQM]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((1))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw_KO]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw_KO].[okQM]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="184" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[ext].[DF_ProductionLogRaw_KO_okSc]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((1))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw_KO]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw_KO].[okSc]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="185" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[ext].[DF_ProductionLogRaw_NrPos_1]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[NrPos]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="186" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[ext].[DF_ProductionLogRaw_NumIN]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[NumIN]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="187" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[ext].[DF_ProductionLogRaw_NumOUT]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[NumOUT]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="188" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[ext].[DF_ProductionLogRaw_okDi_1]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((1))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[okDi]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="189" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[ext].[DF_ProductionLogRaw_okPr_1]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((1))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[okPr]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="190" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[ext].[DF_ProductionLogRaw_okQM_1]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((1))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[okQM]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="191" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[ext].[DF_ProductionLogRaw_okSc_1]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((1))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[okSc]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="192" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[ext].[DF_ProductionLogRaw_OrderNum]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[OrderNum]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="193" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[ext].[DF_ProductionLogRaw_ProcessType]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[ProcessType]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="194" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[ext].[DF_ProductionLogRaw_QtyEXT]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[QtyEXT]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="195" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[ext].[DF_ProductionLogRaw_QtyIN]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[QtyIN]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="196" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[ext].[DF_ProductionLogRaw_QtyOUT]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[QtyOUT]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="197" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[ext].[DF_ProductionLogRaw_QuotaMan]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[QuotaMan]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="198" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[ext].[DF_ProductionLogRaw_QuotaPlant]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((0))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[QuotaPlant]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="199" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[ext].[DF_ProductionLogRaw_RawMat]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[RawMat]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="200" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[ext].[DF_ProductionLogRaw_Tags]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[Tags]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="201" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[ext].[DF_TraspZoneExt]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[ext].[TranspCostRaw]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[ext].[TranspCostRaw].[TranspZone]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="202" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[ext].[DiesGroupRaw]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[DiesGroupRaw].[CodDiesGroup]">
|
|
<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="[ext].[DiesGroupRaw].[Price]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="3" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[DiesGroupRaw].[QtyTot]">
|
|
<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="[ext].[DiesGroupRaw].[QtyEOL]">
|
|
<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="[ext].[DiesGroupRaw].[ExpLife]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="3" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[DiesGroupRaw].[EOLLife]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="3" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References Name="[ext]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="203" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[ext].[DiesRaw]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[DiesRaw].[CodDies]">
|
|
<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="[ext].[DiesRaw].[HoleNum]">
|
|
<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="[ext].[DiesRaw].[CodItem]">
|
|
<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="[ext].[DiesRaw].[CodDiesGroup]">
|
|
<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="[ext].[DiesRaw].[Price]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="3" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[DiesRaw].[ExpLife]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="2" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[DiesRaw].[ActLife]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="2" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[DiesRaw].[Active]">
|
|
<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 Name="[ext]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="204" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[ext].[ItemsRaw]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[ItemsRaw].[CodItem]">
|
|
<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="[ext].[ItemsRaw].[ItemDescr]">
|
|
<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>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[ItemsRaw].[UnitWeight]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="3" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[ItemsRaw].[CodPlant]">
|
|
<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="175" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[ItemsRaw].[CodItemGroup]">
|
|
<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="[ext].[ItemsRaw].[Class01]">
|
|
<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="170" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[ItemsRaw].[Class02]">
|
|
<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="171" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[ItemsRaw].[Class03]">
|
|
<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="172" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[ItemsRaw].[Class04]">
|
|
<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="173" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[ItemsRaw].[Class05]">
|
|
<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="174" />
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References Name="[ext]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="205" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[ext].[PackagRaw]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[PackagRaw].[CodPackag]">
|
|
<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="[ext].[PackagRaw].[PackagDesc]">
|
|
<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>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[PackagRaw].[RMCost]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="3" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[PackagRaw].[RMWeight]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="4" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[PackagRaw].[Tare]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="4" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[PackagRaw].[FullWeight]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="4" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References Name="[ext]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="206" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[ext].[PK_ArticoliRaw]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw].[CodItem]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="205" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[ext].[PK_ClientiRaw]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[ext].[ClientsRaw].[CodClient]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[ext].[ClientsRaw]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="169" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[ext].[PK_DiesDet]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[ext].[DiesRaw].[CodDies]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[ext].[DiesRaw]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="204" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[ext].[PK_DiesGroupRaw]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[ext].[DiesGroupRaw].[CodDiesGroup]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[ext].[DiesGroupRaw]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="203" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[ext].[PK_PackagDet]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[ext].[PackagRaw].[CodPackag]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[ext].[PackagRaw]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="206" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[ext].[PK_ProductionLogRaw]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[EventStart]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[EventEnd]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[CodPlant]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[ProcessNum]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[NrPos]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[CodDies]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="207" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[ext].[PK_ProductionLogRaw_KO]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw_KO].[EventStart]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw_KO].[EventEnd]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw_KO].[CodPlant]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw_KO].[ProcessNum]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw_KO].[NrPos]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw_KO].[CodDies]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw_KO]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="208" />
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[ext].[PK_TranspCostDet_1]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[ext].[TranspCostRaw].[TranspZone]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[ext].[TranspCostRaw]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="209" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[ext].[ProductionLogRaw]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[ProductionLogRaw].[EventStart]">
|
|
<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="[ext].[ProductionLogRaw].[EventEnd]">
|
|
<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="[ext].[ProductionLogRaw].[CodPlant]">
|
|
<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="[ext].[ProductionLogRaw].[ProcessNum]">
|
|
<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="[ext].[ProductionLogRaw].[NrPos]">
|
|
<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="186" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[ProductionLogRaw].[CodDies]">
|
|
<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="178" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[ProductionLogRaw].[CodClient]">
|
|
<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="177" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[ProductionLogRaw].[OrderNum]">
|
|
<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="193" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[ProductionLogRaw].[BatchNum]">
|
|
<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="176" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[ProductionLogRaw].[ProcessType]">
|
|
<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="194" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[ProductionLogRaw].[EventType]">
|
|
<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="180" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[ProductionLogRaw].[RawMat]">
|
|
<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="200" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[ProductionLogRaw].[CodPackag]">
|
|
<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="179" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[ProductionLogRaw].[QtyIN]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="4" />
|
|
<Property Name="Precision" Value="18" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="196" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[ProductionLogRaw].[QtyOUT]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="4" />
|
|
<Property Name="Precision" Value="18" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="197" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[ProductionLogRaw].[QtyEXT]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="4" />
|
|
<Property Name="Precision" Value="18" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="195" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[ProductionLogRaw].[NumIN]">
|
|
<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="187" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[ProductionLogRaw].[NumOUT]">
|
|
<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="188" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[ProductionLogRaw].[QuotaPlant]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="4" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="199" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[ProductionLogRaw].[QuotaMan]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="4" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="198" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[ProductionLogRaw].[Tags]">
|
|
<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="201" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[ProductionLogRaw].[okPr]">
|
|
<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="190" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[ProductionLogRaw].[okQM]">
|
|
<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="191" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[ProductionLogRaw].[okSc]">
|
|
<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="192" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[ProductionLogRaw].[okDi]">
|
|
<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="189" />
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References Name="[ext]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="207" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[ext].[ProductionLogRaw_KO]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[ProductionLogRaw_KO].[EventStart]">
|
|
<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="[ext].[ProductionLogRaw_KO].[EventEnd]">
|
|
<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="[ext].[ProductionLogRaw_KO].[CodPlant]">
|
|
<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="[ext].[ProductionLogRaw_KO].[ProcessNum]">
|
|
<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="[ext].[ProductionLogRaw_KO].[NrPos]">
|
|
<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="[ext].[ProductionLogRaw_KO].[CodDies]">
|
|
<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="[ext].[ProductionLogRaw_KO].[CodClient]">
|
|
<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="[ext].[ProductionLogRaw_KO].[OrderNum]">
|
|
<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="[ext].[ProductionLogRaw_KO].[BatchNum]">
|
|
<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="[ext].[ProductionLogRaw_KO].[ProcessType]">
|
|
<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="[ext].[ProductionLogRaw_KO].[EventType]">
|
|
<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="[ext].[ProductionLogRaw_KO].[RawMat]">
|
|
<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="[ext].[ProductionLogRaw_KO].[CodPackag]">
|
|
<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="[ext].[ProductionLogRaw_KO].[QtyIN]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="4" />
|
|
<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="[ext].[ProductionLogRaw_KO].[QtyOUT]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="4" />
|
|
<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="[ext].[ProductionLogRaw_KO].[QtyEXT]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="4" />
|
|
<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="[ext].[ProductionLogRaw_KO].[NumIN]">
|
|
<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="[ext].[ProductionLogRaw_KO].[NumOUT]">
|
|
<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="[ext].[ProductionLogRaw_KO].[QuotaPlant]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="4" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[ProductionLogRaw_KO].[QuotaMan]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="4" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[ProductionLogRaw_KO].[Tags]">
|
|
<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>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[ProductionLogRaw_KO].[okPr]">
|
|
<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="183" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[ProductionLogRaw_KO].[okQM]">
|
|
<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="184" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[ProductionLogRaw_KO].[okSc]">
|
|
<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="185" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[ProductionLogRaw_KO].[okDi]">
|
|
<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="182" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[ProductionLogRaw_KO].[ImportDateExt]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="181" />
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References Name="[ext]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="208" />
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[ext].[stp_filterProductionLogRow]">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
BEGIN
|
|
|
|
-- DECLARE @flgDelete AS TINYINT = 1; -- 0
|
|
|
|
DECLARE @Sql AS NVARCHAR(MAX) = '';
|
|
DECLARE @TotRighe AS INT = 0;
|
|
DECLARE @Riga AS INT = 1;
|
|
DECLARE @WhereCond AS NVARCHAR(4000);
|
|
|
|
IF OBJECT_ID('tempdb..#tmpTable') IS NOT NULL
|
|
DROP TABLE #tmpTable
|
|
|
|
-- creo sql di base x select o delete
|
|
IF @flgDelete = 0 -- voglio fare solo select
|
|
SET @Sql = 'SELECT * FROM ext.ProductionLogRaw WHERE 1=0' -- per test
|
|
ELSE
|
|
SET @Sql = 'DELETE FROM ext.ProductionLogRaw
|
|
WITH (TABLOCK)
|
|
OUTPUT deleted.* INTO ext.ProductionLogRaw_KO -- salvo i record cancellati in tabella KO
|
|
( EventStart, EventEnd, CodPlant, ProcessNum, NrPos, CodDies, CodClient, OrderNum, BatchNum, ProcessType, EventType, RawMat, CodPackag, QtyIN, QtyOUT, QtyEXT, NumIN, NumOUT, QuotaPlant, QuotaMan, Tags )
|
|
WHERE 1=0'
|
|
|
|
-- carico in tabella i filtri ( record da cancellare )
|
|
SELECT ROW_NUMBER() OVER ( ORDER BY TableName, FieldName) AS Riga, *
|
|
INTO #tmpTable
|
|
FROM tmp.ExcludeCondFilter
|
|
WHERE TableName = 'ProductionLogRaw'
|
|
|
|
SET @TotRighe = @@ROWCOUNT;
|
|
|
|
-- accodo le condizioni di where allo statement iniziale ( collegate con OR )
|
|
IF @TotRighe > 0
|
|
BEGIN
|
|
WHILE @Riga <= @TotRighe
|
|
BEGIN
|
|
SELECT @WhereCond = WhereCond FROM #tmpTable WHERE Riga = @Riga
|
|
|
|
SET @Sql = @Sql + ' OR ' + @WhereCond;
|
|
SET @Riga = @Riga + 1;
|
|
END
|
|
END
|
|
|
|
-- Ritorno la select eseguita
|
|
SELECT @Sql
|
|
-- =======================================================
|
|
-- Eseguo la select/delete e ritorno i record elaborati
|
|
-- =======================================================
|
|
EXEC sp_executesql @Sql
|
|
SELECT @@ROWCOUNT
|
|
|
|
-- SELECT * FROM ext.ProductionLogRaw_KO
|
|
|
|
IF OBJECT_ID('tempdb..#tmpTable') IS NOT NULL
|
|
DROP TABLE #tmpTable
|
|
END]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[nvarchar]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[stp_filterProductionLogRow].[#tmpTable]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[stp_filterProductionLogRow].[@flgDelete]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ExcludeCondFilter]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ExcludeCondFilter].[TableName]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ExcludeCondFilter].[FieldName]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[stp_filterProductionLogRow].[#tmpTable].[WhereCond]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[stp_filterProductionLogRow].[#tmpTable].[Riga]" />
|
|
</Entry>
|
|
<Entry />
|
|
</Relationship>
|
|
<Relationship Name="DynamicObjects">
|
|
<Entry>
|
|
<Element Type="SqlDynamicColumnSource" Name="[ext].[stp_filterProductionLogRow].[#tmpTable]">
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[ext].[stp_filterProductionLogRow].[#tmpTable].[Riga]" />
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[ext].[stp_filterProductionLogRow].[#tmpTable].[TableName]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[tmp].[ExcludeCondFilter].[TableName]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[ext].[stp_filterProductionLogRow].[#tmpTable].[FieldName]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[tmp].[ExcludeCondFilter].[FieldName]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlComputedColumn" Name="[ext].[stp_filterProductionLogRow].[#tmpTable].[WhereCond]">
|
|
<Relationship Name="ExpressionDependencies">
|
|
<Entry>
|
|
<References Name="[tmp].[ExcludeCondFilter].[WhereCond]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[ext].[stp_filterProductionLogRow].[@flgDelete]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[0]]></Value>
|
|
</Property>
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[tinyint]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References Name="[ext]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="555" />
|
|
<Property Name="Length" Value="2658" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="

-- =============================================
-- Author:		
-- Create date: 2013.11.29
-- Description:	Procedura per pulizia dati della tabella ext.ProductionLogRaw
--
-- Use: 
-- EXECUTE ext.stp_filterProductionLogRow 0 -- selezione record
-- EXECUTE ext.stp_filterProductionLogRow 1 -- cancellazione record
--
-- SELECT * FROM tmp.ExcludeCondFilter -- Tabella con i filtri
-- SELECT * FROM ext.ProductionLogRaw_KO -- Tabella dove eseguo delete
--
-- =============================================
CREATE PROCEDURE [ext].[stp_filterProductionLogRow]
( 
 @flgDelete AS TINYINT = 0 -- 0 = solo select 1 = fa delete 
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[ext].[stp_mergeAgentsDet]">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
BEGIN
|
|
SET NOCOUNT ON;
|
|
|
|
-- Create a temporary table variable to hold the output actions.
|
|
DECLARE @SummaryOfChanges TABLE(Change VARCHAR(20));
|
|
|
|
-- import con MERGE... verifico tipo di caricamento richiesto!
|
|
IF @source = 'ClientsRaw' -- carico da anagrafica
|
|
BEGIN
|
|
MERGE INTO AgentsDet AS Target
|
|
USING (SELECT DISTINCT CodAg FROM ext.ClientsRaw)
|
|
AS Source
|
|
ON Target.CodAg = Source.CodAg
|
|
--WHEN MATCHED THEN
|
|
-- UPDATE SET AgentsName = Source.AgentsName, CodAg = Source.CodAg, ZipCode = Source.ZipCode, City = Source.City, [State] = Source.[State], Nation = Source.Nation
|
|
WHEN NOT MATCHED BY TARGET THEN
|
|
INSERT (CodAg, Firstname, Lastname, QuotaProvvAg) VALUES (CodAg, '#### - '+ CodAg, '#### - ' + CodAg, 0)
|
|
OUTPUT $action INTO @SummaryOfChanges;
|
|
|
|
END
|
|
|
|
-- Query the results of the table variable.
|
|
SELECT Change, COUNT(*) AS CountPerChange
|
|
FROM @SummaryOfChanges
|
|
GROUP BY Change;
|
|
END]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[ext].[stp_mergeAgentsDet].[@source]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ClientsRaw]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ClientsRaw].[CodAg]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AgentsDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AgentsDet].[CodAg]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ClientsRaw].[CodAg]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AgentsDet].[CodAg]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AgentsDet].[Firstname]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AgentsDet].[Lastname]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[AgentsDet].[QuotaProvvAg]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ClientsRaw].[CodAg]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[stp_mergeAgentsDet].[@SummaryOfChanges].[Change]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DynamicObjects">
|
|
<Entry>
|
|
<Element Type="SqlDynamicColumnSource" Name="[ext].[stp_mergeAgentsDet].[@SummaryOfChanges]">
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[stp_mergeAgentsDet].[@SummaryOfChanges].[Change]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<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>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[ext].[stp_mergeAgentsDet].[@source]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA['ClientsRaw']]></Value>
|
|
</Property>
|
|
<Relationship Name="Type">
|
|
<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>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References Name="[ext]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="233" />
|
|
<Property Name="Length" Value="1346" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="
-- =============================================
-- Author:		S.E. Locatelli
-- Create date: 2013.12.03
-- Description:	Procedura per import dati in AgentsDet da dati ClientsRaw
-- =============================================
CREATE PROCEDURE [ext].[stp_mergeAgentsDet]
(
	@source NVARCHAR(20) = 'ClientsRaw' -- nome della tabella sorgente tra ProductionLogRaw e AgentssRaw
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[ext].[stp_mergeClientDet]">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
BEGIN
|
|
SET NOCOUNT ON;
|
|
|
|
-- Create a temporary table variable to hold the output actions.
|
|
DECLARE @SummaryOfChanges TABLE(Change VARCHAR(20));
|
|
|
|
-- import con MERGE... verifico tipo di caricamento richiesto!
|
|
IF @source = 'ProductionLogRaw' -- carico da tracciato produzione
|
|
BEGIN
|
|
MERGE INTO ClientDet AS Target
|
|
USING (SELECT DISTINCT CodClient FROM ext.ProductionLogRaw)
|
|
AS Source
|
|
ON Target.CodClient = Source.CodClient
|
|
--WHEN MATCHED THEN
|
|
-- UPDATE SET ClientName = Source.ClientName
|
|
WHEN NOT MATCHED BY TARGET THEN
|
|
INSERT (CodClient, ClientName, CodAg, ZipCode, City, [State], Nation, TranspZone) VALUES (CodClient, '#### - ' + CodClient, '', '', '', '', '', '')
|
|
OUTPUT $action INTO @SummaryOfChanges;
|
|
|
|
END
|
|
ELSE IF @source = 'ClientsRaw' -- carico da anagrafica
|
|
BEGIN
|
|
MERGE INTO ClientDet AS Target
|
|
USING (SELECT DISTINCT CodClient, ClientName, CodAg, ZipCode, City, [State], Nation, TranspZone FROM ext.ClientsRaw)
|
|
AS Source
|
|
ON Target.CodClient = Source.CodClient
|
|
WHEN MATCHED THEN
|
|
UPDATE SET ClientName = Source.ClientName, CodAg = Source.CodAg, ZipCode = Source.ZipCode, City = Source.City, [State] = Source.[State], Nation = Source.Nation, TranspZone = Source.TranspZone
|
|
WHEN NOT MATCHED BY TARGET THEN
|
|
INSERT (CodClient, ClientName, CodAg, ZipCode, City, [State], Nation, TranspZone) VALUES (CodClient, ClientName, CodAg, ZipCode, City, [State], Nation, TranspZone)
|
|
OUTPUT $action INTO @SummaryOfChanges;
|
|
|
|
END
|
|
|
|
-- Query the results of the table variable.
|
|
SELECT Change, COUNT(*) AS CountPerChange
|
|
FROM @SummaryOfChanges
|
|
GROUP BY Change;
|
|
END]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[ext].[stp_mergeClientDet].[@source]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[CodClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet].[CodClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[CodClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet].[CodClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet].[ClientName]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet].[CodAg]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet].[ZipCode]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet].[City]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet].[State]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet].[Nation]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet].[TranspZone]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[CodClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ClientsRaw]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ClientsRaw].[CodClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ClientsRaw].[ClientName]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ClientsRaw].[CodAg]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ClientsRaw].[ZipCode]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ClientsRaw].[City]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ClientsRaw].[State]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ClientsRaw].[Nation]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ClientsRaw].[TranspZone]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ClientsRaw].[CodClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ClientsRaw].[ClientName]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ClientsRaw].[CodAg]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ClientsRaw].[ZipCode]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ClientsRaw].[City]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ClientsRaw].[State]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ClientsRaw].[Nation]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ClientsRaw].[TranspZone]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ClientsRaw].[CodClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ClientsRaw].[ClientName]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ClientsRaw].[CodAg]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ClientsRaw].[ZipCode]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ClientsRaw].[City]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ClientsRaw].[State]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ClientsRaw].[Nation]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ClientsRaw].[TranspZone]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[stp_mergeClientDet].[@SummaryOfChanges].[Change]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DynamicObjects">
|
|
<Entry>
|
|
<Element Type="SqlDynamicColumnSource" Name="[ext].[stp_mergeClientDet].[@SummaryOfChanges]">
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[stp_mergeClientDet].[@SummaryOfChanges].[Change]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<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>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[ext].[stp_mergeClientDet].[@source]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA['ProductionLogRaw']]></Value>
|
|
</Property>
|
|
<Relationship Name="Type">
|
|
<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>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References Name="[ext]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="254" />
|
|
<Property Name="Length" Value="2090" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="


-- =============================================
-- Author:		S.E. Locatelli
-- Create date: 2013.11.27
-- Description:	Procedura per import dati in ClientDet da dati ProductionLogRaw/ClientsRaw
-- =============================================
CREATE PROCEDURE [ext].[stp_mergeClientDet]
(
	@source NVARCHAR(20) = 'ProductionLogRaw' -- nome della tabella sorgente tra ProductionLogRaw e ClientsRaw
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[ext].[stp_mergeCost2Plant]">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
BEGIN
|
|
SET NOCOUNT ON;
|
|
|
|
-- Create a temporary table variable to hold the output actions.
|
|
DECLARE @SummaryOfChanges TABLE(Change VARCHAR(20));
|
|
|
|
-- import con MERGE... verifico tipo di caricamento richiesto!
|
|
IF @source = 'ProductionLogRaw' -- carico da tracciato produzione
|
|
BEGIN
|
|
MERGE INTO Cost2Plant AS Target
|
|
USING (SELECT DISTINCT CodPlant, ProcessNum FROM ext.ProductionLogRaw)
|
|
AS Source
|
|
ON Target.CodPlant = Source.CodPlant
|
|
--WHEN MATCHED THEN
|
|
-- UPDATE SET PackagName = Source.PackagName
|
|
WHEN NOT MATCHED BY TARGET THEN
|
|
INSERT (CodPlant, ProcessNum) VALUES (CodPlant, ProcessNum)
|
|
OUTPUT $action INTO @SummaryOfChanges;
|
|
|
|
END
|
|
--ELSE IF @source = 'PackagRaw' -- carico da anagrafica
|
|
-- BEGIN
|
|
-- MERGE INTO PackagDet AS Target
|
|
-- USING (SELECT CodPackag, PackagDesc, RMCost, RMWeight, Tare, FullWeight FROM ext.PackagRaw)
|
|
-- AS Source
|
|
-- ON Target.CodPackag = Source.CodPackag
|
|
-- WHEN MATCHED THEN
|
|
-- UPDATE SET PackagDesc = Source.PackagDesc, RMCost = Source.RMCost, RMWeight = Source.RMWeight, Tare = Source.Tare, FullWeight = Source.FullWeight
|
|
-- WHEN NOT MATCHED BY TARGET THEN
|
|
-- INSERT (CodPackag, PackagDesc, RMCost, RMWeight, Tare, FullWeight) VALUES (CodPackag, PackagDesc, RMCost, RMWeight, Tare, FullWeight)
|
|
-- OUTPUT $action INTO @SummaryOfChanges;
|
|
|
|
-- END
|
|
|
|
-- Query the results of the table variable.
|
|
SELECT Change, COUNT(*) AS CountPerChange
|
|
FROM @SummaryOfChanges
|
|
GROUP BY Change;
|
|
END]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[ext].[stp_mergeCost2Plant].[@source]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[stp_mergeCost2Plant].[@SummaryOfChanges].[Change]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DynamicObjects">
|
|
<Entry>
|
|
<Element Type="SqlDynamicColumnSource" Name="[ext].[stp_mergeCost2Plant].[@SummaryOfChanges]">
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[stp_mergeCost2Plant].[@SummaryOfChanges].[Change]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<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>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[ext].[stp_mergeCost2Plant].[@source]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA['ProductionLogRaw']]></Value>
|
|
</Property>
|
|
<Relationship Name="Type">
|
|
<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>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References Name="[ext]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="240" />
|
|
<Property Name="Length" Value="1906" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="
-- =============================================
-- Author:		S.E. Locatelli
-- Create date: 2013.12.03
-- Description:	Procedura per import dati in Cost2Plant da dati ProductionLogRaw
-- =============================================
CREATE PROCEDURE [ext].[stp_mergeCost2Plant]
(
	@source NVARCHAR(20) = 'ProductionLogRaw' -- nome della tabella sorgente tra ProductionLogRaw
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[ext].[stp_mergeDiesDet]">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
BEGIN
|
|
SET NOCOUNT ON;
|
|
|
|
-- Create a temporary table variable to hold the output actions.
|
|
DECLARE @SummaryOfChanges TABLE(Change VARCHAR(20));
|
|
|
|
SET XACT_ABORT ON
|
|
|
|
BEGIN tran
|
|
|
|
-- =======================================
|
|
-- ora aggiungiamo eventuali item mancanti
|
|
-- =======================================
|
|
MERGE INTO ItemDet AS Target
|
|
USING (SELECT DISTINCT CodItem FROM ext.DiesRaw)
|
|
AS Source
|
|
ON Target.CodItem = Source.CodItem
|
|
--WHEN MATCHED THEN
|
|
-- UPDATE SET ClientName = Source.ClientName
|
|
WHEN NOT MATCHED BY TARGET THEN
|
|
INSERT (CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup) VALUES (CodItem, '#### - ' + CodItem, '', 0, '')
|
|
OUTPUT $action INTO @SummaryOfChanges;
|
|
|
|
-- =======================================
|
|
-- ora carico i dati delle singole matrici
|
|
-- =======================================
|
|
MERGE INTO DiesDet AS Target
|
|
USING (SELECT CodDies, HoleNum, CodItem, CodDiesGroup, Price, ExpLife, ActLife, Active FROM ext.DiesRaw)
|
|
AS Source
|
|
ON Target.CodDies = Source.CodDies
|
|
WHEN MATCHED THEN
|
|
UPDATE SET HoleNum = Source.HoleNum, CodItem = Source.CodItem, CodDiesGroup = Source.CodDiesGroup, Price = Source.Price, ExpLife = Source.ExpLife, ActLife = Source.ActLife, Active = Source.Active
|
|
WHEN NOT MATCHED BY TARGET THEN
|
|
INSERT (CodDies, HoleNum, CodItem, CodDiesGroup, Price, ExpLife, ActLife, Active) VALUES (CodDies, HoleNum, CodItem, CodDiesGroup, Price, ExpLife, ActLife, Active)
|
|
OUTPUT $action INTO @SummaryOfChanges;
|
|
|
|
-- =================================================
|
|
-- Carico i dati dei GRUPPI DI MATRICI ( DiesGroupDet )
|
|
-- nel caso debbano essere integrati vanno caricati nella tabella ext.DiesGroupRaw
|
|
-- =================================================
|
|
MERGE INTO dbo.DiesGroupDet AS Target
|
|
USING (
|
|
SELECT CodDiesGroup
|
|
, ISNULL ( AVG( Price ),0) AS Price -- prezzo medio ( valori nulli non considerati )
|
|
, COUNT (*) AS QtyTot -- N. Matrici nel gruppo
|
|
, COUNT ( CASE Active WHEN 0 THEN 1 END ) AS QtyEOL -- Qta Matrici rottamate
|
|
, ISNULL( AVG( ExpLife ), 0 ) AS ExpLife -- Vita stimata matrice ( iniziale )
|
|
, ISNULL( AVG ( CASE WHEN Active = 0 AND ActLife > 5000 THEN ActLife END ),0 ) AS EOLLife -- solo Matrici rottamate e vita > 5000KG
|
|
FROM dbo.DiesDet
|
|
GROUP BY CodDiesGroup
|
|
) AS Source
|
|
ON Target.CodDiesGroup = Source.CodDiesGroup
|
|
WHEN MATCHED THEN
|
|
UPDATE SET CodDiesGroup = Source.CodDiesGroup, Price = Source.Price, QtyTot = Source.QtyTot
|
|
, QtyEOL = Source.QtyEOL, ExpLife = Source.ExpLife, EOLLife = Source.EOLLife
|
|
, DateMod = GETDATE(), UserMod = 'IMPORT_DiesRaw'
|
|
|
|
WHEN NOT MATCHED BY TARGET THEN
|
|
INSERT ( CodDiesGroup, Price, QtyTot, QtyEOL, ExpLife, EOLLife, DateMod ,UserMod )
|
|
VALUES ( CodDiesGroup, Source.Price, Source.QtyTot, Source.QtyEOL, Source.ExpLife, Source.EOLLife, GETDATE(), 'IMPORT_DiesRaw' ) -- mi da errori in calcoli successivi altrimenti con zero a ExpLife e EOLLife
|
|
OUTPUT $action INTO @SummaryOfChanges;
|
|
|
|
|
|
---- a questo punto calcolo il VERO update dalle inforamzioni di dbo.DiesDet --> dbo.DiesGroupDet
|
|
--MERGE INTO dbo.DiesGroupDet AS Target
|
|
--USING (
|
|
-- SELECT coddiesgroup,
|
|
-- Avg(Isnull(price, 0)) AS Price,
|
|
-- Count(*) AS QtyTot,
|
|
-- Count(*) - Sum(Active) AS QtyEOL,
|
|
-- Avg(Isnull(ExpLife, 0.1)) AS ExpLife, -- mi da errori in calcoli successivi altrimenti con zero a ExpLife e EOLLife
|
|
-- Sum(Isnull(ActLife * (1 - Active), 0)) / (Count(*) - Sum(Active)) AS EOLLife
|
|
-- FROM dbo.DiesDet
|
|
-- WHERE ActLife > 5000
|
|
-- GROUP BY CodDiesGroup
|
|
-- HAVING Count(*) > Sum(Active) -- ci siano rottamate
|
|
-- )
|
|
-- AS Source
|
|
--ON Target.CodDiesGroup = Source.CodDiesGroup
|
|
--WHEN MATCHED THEN
|
|
-- UPDATE SET Price = Source.Price, QtyTot = Source.QtyTot, QtyEOL = Source.QtyEOL, ExpLife = Source.ExpLife, EOLLife = Source.EOLLife
|
|
--OUTPUT $action INTO @SummaryOfChanges;
|
|
|
|
COMMIT tran
|
|
|
|
-- Query the results of the table variable.
|
|
SELECT Change, COUNT(*) AS CountPerChange
|
|
FROM @SummaryOfChanges
|
|
GROUP BY Change;
|
|
END]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[ext].[DiesRaw]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[DiesRaw].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[DiesRaw].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[ItemDescr]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[UnitWeight]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[CodItemGroup]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[DiesRaw].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[DiesRaw].[CodDies]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[DiesRaw].[HoleNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[DiesRaw].[CodDiesGroup]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[DiesRaw].[Price]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[DiesRaw].[ExpLife]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[DiesRaw].[ActLife]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[DiesRaw].[Active]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[CodDies]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[DiesRaw].[CodDies]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[HoleNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[DiesRaw].[HoleNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[DiesRaw].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[CodDiesGroup]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[DiesRaw].[CodDiesGroup]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[Price]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[DiesRaw].[Price]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[ExpLife]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[DiesRaw].[ExpLife]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[ActLife]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[DiesRaw].[ActLife]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[Active]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[DiesRaw].[Active]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[CodDies]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[DiesRaw].[CodDies]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[DiesRaw].[HoleNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[DiesRaw].[CodDiesGroup]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[DiesRaw].[Price]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[DiesRaw].[ExpLife]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[DiesRaw].[ActLife]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[DiesRaw].[Active]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[CodDiesGroup]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[Price]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[Active]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[ExpLife]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[ActLife]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet].[CodDiesGroup]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[CodDiesGroup]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet].[CodDiesGroup]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet].[Price]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet].[QtyTot]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet].[QtyEOL]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet].[ExpLife]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet].[EOLLife]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet].[DateMod]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet].[UserMod]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[CodDiesGroup]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[stp_mergeDiesDet].[@SummaryOfChanges].[Change]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DynamicObjects">
|
|
<Entry>
|
|
<Element Type="SqlDynamicColumnSource" Name="[ext].[stp_mergeDiesDet].[@SummaryOfChanges]">
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[stp_mergeDiesDet].[@SummaryOfChanges].[Change]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<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>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References Name="[ext]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="249" />
|
|
<Property Name="Length" Value="4776" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="


-- =============================================
-- Author:		S.E. Locatelli
-- Create date: 2013.12.02
-- Description:	Procedura per import dati in DiesDet da dati ProductionLogRaw/DiesRaw
-- =============================================
CREATE PROCEDURE [ext].[stp_mergeDiesDet]

AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[ext].[stp_mergeDiesGroupDet]">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
BEGIN
|
|
SET NOCOUNT ON;
|
|
|
|
-- Create a temporary table variable to hold the output actions.
|
|
DECLARE @SummaryOfChanges TABLE(Change VARCHAR(20));
|
|
|
|
SET XACT_ABORT ON
|
|
|
|
BEGIN TRAN
|
|
|
|
-- vado ad aggiornare i dati dei gruppi di matrici SOLO x i campi <> 0 ( li ritengo come non passati )
|
|
MERGE INTO dbo.DiesGroupDet AS Target
|
|
USING ( SELECT * FROM ext.DiesGroupRaw )
|
|
AS Source
|
|
ON Target.CodDiesGroup = Source.CodDiesGroup
|
|
WHEN MATCHED THEN
|
|
UPDATE SET Price = CASE Source.Price WHEN 0 THEN Target.Price ELSE Source.Price END
|
|
, QtyTot = CASE Source.QtyTot WHEN 0 THEN Target.QtyTot ELSE Source.QtyTot END
|
|
, QtyEOL = CASE Source.QtyEOL WHEN 0 THEN Target.QtyEOL ELSE Source.QtyEOL END
|
|
, ExpLife = CASE Source.ExpLife WHEN 0 THEN Target.ExpLife ELSE Source.ExpLife END
|
|
, EOLLife = CASE Source.EOLLife WHEN 0 THEN Target.EOLLife ELSE Source.EOLLife END
|
|
, DateMod = GETDATE()
|
|
, UserMod = 'UPDATE_DiesGroupRaw'
|
|
WHEN NOT MATCHED BY TARGET THEN
|
|
INSERT ( CodDiesGroup, Price, QtyTot, QtyEOL, ExpLife, EOLLife, DateMod, UserMod )
|
|
VALUES ( Source.CodDiesGroup, Source.Price, Source.QtyTot, Source.QtyEOL, Source.ExpLife, Source.EOLLife, GETDATE(), 'INSERT_DiesGroupRaw' )
|
|
-- VALUES ( CodDiesGroup, 0, 1, 0, 0.1, 0.1 ) -- mi da errori in calcoli successivi altrimenti con 0 a ExpLife e EOLLife
|
|
OUTPUT $action INTO @SummaryOfChanges;
|
|
|
|
COMMIT TRAN
|
|
|
|
-- Query the results of the table variable.
|
|
SELECT Change, COUNT(*) AS CountPerChange
|
|
FROM @SummaryOfChanges
|
|
GROUP BY Change;
|
|
END]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[ext].[DiesGroupRaw]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet].[CodDiesGroup]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[DiesGroupRaw].[CodDiesGroup]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet].[Price]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[DiesGroupRaw].[Price]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet].[Price]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet].[QtyTot]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[DiesGroupRaw].[QtyTot]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet].[QtyTot]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet].[QtyEOL]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[DiesGroupRaw].[QtyEOL]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet].[QtyEOL]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet].[ExpLife]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[DiesGroupRaw].[ExpLife]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet].[ExpLife]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet].[EOLLife]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[DiesGroupRaw].[EOLLife]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet].[EOLLife]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet].[DateMod]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet].[UserMod]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet].[CodDiesGroup]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[DiesGroupRaw].[CodDiesGroup]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[DiesGroupRaw].[Price]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[DiesGroupRaw].[QtyTot]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[DiesGroupRaw].[QtyEOL]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[DiesGroupRaw].[ExpLife]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[DiesGroupRaw].[EOLLife]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[stp_mergeDiesGroupDet].[@SummaryOfChanges].[Change]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DynamicObjects">
|
|
<Entry>
|
|
<Element Type="SqlDynamicColumnSource" Name="[ext].[stp_mergeDiesGroupDet].[@SummaryOfChanges]">
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[stp_mergeDiesGroupDet].[@SummaryOfChanges].[Change]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<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>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References Name="[ext]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="369" />
|
|
<Property Name="Length" Value="2111" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="

-- =============================================
-- Author:		S.E. Locatelli
-- Create date: 2014.01.08
-- Description:	Procedura per import dati in DiesDet da dati DiesGroupRaw
-- Il caricamento principale avviene tramite DiesRaw, questa
-- serve solo per completare i dati mancanti
-- =============================================
CREATE PROCEDURE [ext].[stp_mergeDiesGroupDet]

AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[ext].[stp_mergeItemDet]">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
BEGIN
|
|
SET NOCOUNT ON;
|
|
|
|
|
|
-- Create a temporary table variable to hold the output actions.
|
|
DECLARE @SummaryOfChanges TABLE(Change VARCHAR(20));
|
|
|
|
-- import con MERGE... verifico tipo di caricamento richiesto!
|
|
IF @source = 'ProductionLogRaw' -- carico da tracciato produzione
|
|
BEGIN
|
|
--MERGE INTO ItemDet AS Target
|
|
--USING (SELECT DISTINCT CodItem FROM ext.ProductionLogRaw)
|
|
-- AS Source
|
|
--ON Target.CodItem = Source.CodItem
|
|
----WHEN MATCHED THEN
|
|
---- UPDATE SET ClientName = Source.ClientName
|
|
--WHEN NOT MATCHED BY TARGET THEN
|
|
-- INSERT (CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup) VALUES (CodItem, '#### - ' + CodItem, '', 0, '')
|
|
--OUTPUT $action INTO @SummaryOfChanges;
|
|
select 1
|
|
END
|
|
ELSE IF @source = 'ItemsRaw' -- carico da anagrafica
|
|
BEGIN
|
|
MERGE INTO ItemDet AS Target
|
|
USING (SELECT CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup, Class01, Class02, Class03, Class04, Class05 FROM ext.ItemsRaw)
|
|
AS Source
|
|
ON Target.CodItem = Source.CodItem
|
|
WHEN MATCHED THEN
|
|
UPDATE SET ItemDescr = Source.ItemDescr, CodPlant = Source.CodPlant, UnitWeight = Source.UnitWeight, CodItemGroup = Source.CodItemGroup, Class01 = Source.Class01, Class02 = Source.Class02, Class03 = Source.Class03, Class04 = Source.Class04, Class05 = Source.Class05
|
|
WHEN NOT MATCHED BY TARGET THEN
|
|
INSERT (CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup, Class01, Class02, Class03, Class04, Class05) VALUES (CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup, Class01, Class02, Class03, Class04, Class05)
|
|
OUTPUT $action INTO @SummaryOfChanges;
|
|
|
|
END
|
|
|
|
-- Query the results of the table variable.
|
|
SELECT Change, COUNT(*) AS CountPerChange
|
|
FROM @SummaryOfChanges
|
|
GROUP BY Change;
|
|
END]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[ext].[stp_mergeItemDet].[@source]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw].[ItemDescr]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw].[UnitWeight]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw].[CodItemGroup]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw].[Class01]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw].[Class02]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw].[Class03]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw].[Class04]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw].[Class05]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[ItemDescr]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw].[ItemDescr]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[UnitWeight]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw].[UnitWeight]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[CodItemGroup]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw].[CodItemGroup]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[Class01]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw].[Class01]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[Class02]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw].[Class02]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[Class03]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw].[Class03]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[Class04]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw].[Class04]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[Class05]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw].[Class05]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw].[ItemDescr]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw].[UnitWeight]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw].[CodItemGroup]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw].[Class01]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw].[Class02]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw].[Class03]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw].[Class04]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw].[Class05]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[stp_mergeItemDet].[@SummaryOfChanges].[Change]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DynamicObjects">
|
|
<Entry>
|
|
<Element Type="SqlDynamicColumnSource" Name="[ext].[stp_mergeItemDet].[@SummaryOfChanges]">
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[stp_mergeItemDet].[@SummaryOfChanges].[Change]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<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>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[ext].[stp_mergeItemDet].[@source]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA['ProductionLogRaw']]></Value>
|
|
</Property>
|
|
<Relationship Name="Type">
|
|
<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>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References Name="[ext]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="246" />
|
|
<Property Name="Length" Value="2199" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="
-- =============================================
-- Author:		S.E. Locatelli
-- Create date: 2013.11.27
-- Description:	Procedura per import dati in ItemDet da dati ProductionLogRaw/ItemsRaw
-- =============================================
CREATE PROCEDURE [ext].[stp_mergeItemDet]
(
	@source NVARCHAR(20) = 'ProductionLogRaw' -- nome della tabella sorgente tra ProductionLogRaw e ItemsRaw
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[ext].[stp_mergePackagDet]">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
BEGIN
|
|
SET NOCOUNT ON;
|
|
|
|
-- Create a temporary table variable to hold the output actions.
|
|
DECLARE @SummaryOfChanges TABLE(Change VARCHAR(20));
|
|
|
|
-- import con MERGE... verifico tipo di caricamento richiesto!
|
|
IF @source = 'ProductionLogRaw' -- carico da tracciato produzione
|
|
BEGIN
|
|
MERGE INTO PackagDet AS Target
|
|
USING (SELECT DISTINCT CodPackag FROM ext.ProductionLogRaw)
|
|
AS Source
|
|
ON Target.CodPackag = Source.CodPackag
|
|
--WHEN MATCHED THEN
|
|
-- UPDATE SET PackagName = Source.PackagName
|
|
WHEN NOT MATCHED BY TARGET THEN
|
|
INSERT (CodPackag, PackagDesc, RMCost, RMWeight) VALUES (CodPackag, '#### - ' + CodPackag, 0, 0)
|
|
OUTPUT $action INTO @SummaryOfChanges;
|
|
|
|
END
|
|
ELSE IF @source = 'PackagRaw' -- carico da anagrafica
|
|
BEGIN
|
|
MERGE INTO PackagDet AS Target
|
|
USING (SELECT CodPackag, PackagDesc, RMCost, RMWeight FROM ext.PackagRaw)
|
|
AS Source
|
|
ON Target.CodPackag = Source.CodPackag
|
|
WHEN MATCHED THEN
|
|
UPDATE SET PackagDesc = Source.PackagDesc, RMCost = Source.RMCost, RMWeight = Source.RMWeight
|
|
WHEN NOT MATCHED BY TARGET THEN
|
|
INSERT (CodPackag, PackagDesc, RMCost, RMWeight) VALUES (CodPackag, PackagDesc, RMCost, RMWeight)
|
|
OUTPUT $action INTO @SummaryOfChanges;
|
|
|
|
END
|
|
|
|
-- Query the results of the table variable.
|
|
SELECT Change, COUNT(*) AS CountPerChange
|
|
FROM @SummaryOfChanges
|
|
GROUP BY Change;
|
|
END]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[ext].[stp_mergePackagDet].[@source]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[CodPackag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[PackagDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[PackagDet].[CodPackag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[CodPackag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[PackagDet].[CodPackag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[PackagDet].[PackagDesc]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[PackagDet].[RMCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[PackagDet].[RMWeight]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[CodPackag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[PackagRaw]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[PackagRaw].[CodPackag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[PackagRaw].[PackagDesc]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[PackagRaw].[RMCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[PackagRaw].[RMWeight]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[PackagRaw].[CodPackag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[PackagRaw].[PackagDesc]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[PackagRaw].[RMCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[PackagRaw].[RMWeight]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[PackagRaw].[CodPackag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[PackagRaw].[PackagDesc]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[PackagRaw].[RMCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[PackagRaw].[RMWeight]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[stp_mergePackagDet].[@SummaryOfChanges].[Change]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DynamicObjects">
|
|
<Entry>
|
|
<Element Type="SqlDynamicColumnSource" Name="[ext].[stp_mergePackagDet].[@SummaryOfChanges]">
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[stp_mergePackagDet].[@SummaryOfChanges].[Change]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<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>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[ext].[stp_mergePackagDet].[@source]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA['ProductionLogRaw']]></Value>
|
|
</Property>
|
|
<Relationship Name="Type">
|
|
<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>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References Name="[ext]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="251" />
|
|
<Property Name="Length" Value="1824" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="

-- =============================================
-- Author:		S.E. Locatelli
-- Create date: 2013.11.29
-- Description:	Procedura per import dati in PackagDet da dati ProductionLogRaw/PackagRaw
-- =============================================
CREATE PROCEDURE [ext].[stp_mergePackagDet]
(
	@source NVARCHAR(20) = 'ProductionLogRaw' -- nome della tabella sorgente tra ProductionLogRaw e PackagRaw
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[ext].[stp_mergePackage2]">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
BEGIN
|
|
SET NOCOUNT ON;
|
|
|
|
|
|
-- Create a temporary table variable to hold the output actions.
|
|
DECLARE @SummaryOfChanges TABLE(Change VARCHAR(20));
|
|
|
|
-- import con MERGE... verifico tipo di caricamento richiesto!
|
|
IF @source = 'ProductionLog' -- carico da tracciato produzione
|
|
BEGIN
|
|
MERGE INTO Package2 AS Target
|
|
USING (
|
|
--SELECT plr.CodPackag, SUM(QtyOUT) AS TotQta, COUNT(*) AS NumEv
|
|
-- , SUM(QtyOUT) / COUNT(*) AS PesoMedio
|
|
-- , SUM(QtyEXT) / COUNT(*) AS TaraMedia
|
|
--FROM ext.ProductionLogRaw plr
|
|
-- INNER JOIN DiesDet dd ON plr.CodDies = dd.CodDies
|
|
-- WHERE ISNULL(plr.CodPackag, '') <> ''
|
|
--GROUP BY plr.CodPackag
|
|
SELECT
|
|
pl.CodPackag
|
|
, SUM(QtyOUT) AS TotQta
|
|
-- , COUNT(*) AS NumEv
|
|
, SUM(QtyOUT) / COUNT(*) AS PesoMedio
|
|
, SUM(QtyEXT) / COUNT(*) AS TaraMedia
|
|
|
|
-- dati produttività imballo
|
|
, ROUND(SUM(QtyOUT * QuotaMan) / CASE WHEN SUM(QtyOUT) = 0 THEN 1 ELSE SUM(QtyOUT) END,0) as NumImb
|
|
-- , SUM(QtyOUT) AS TotOut -- unificata a TotQta
|
|
, SUM(Duration) AS Durata
|
|
FROM ProductionLog pl
|
|
INNER JOIN DiesDet dd ON pl.CodDies=dd.CodDies
|
|
WHERE pl.ProcessNum = '04'
|
|
AND pl.okPr = 1 AND pl.okQM = 1
|
|
AND ISNULL(pl.CodPackag, '') <> '' -- cmq filtro righe con package VUOTO
|
|
AND pl.EventStart BETWEEN @dateFrom AND @dateTo
|
|
GROUP BY pl.CodPackag
|
|
)
|
|
AS Source
|
|
ON Target.CodPackag = Source.CodPackag
|
|
WHEN MATCHED THEN
|
|
UPDATE SET TotQta = Source.TotQta
|
|
, [Weight] = Source.PesoMedio
|
|
, Tare = Source.TaraMedia
|
|
, NumImb = Source.NumImb
|
|
, Durata = Source.Durata
|
|
WHEN NOT MATCHED BY TARGET THEN
|
|
INSERT (CodPackag, TotQta, [Weight], Tare, NumImb, Durata)
|
|
VALUES (CodPackag, TotQta, PesoMedio, TaraMedia, NumImb, Durata)
|
|
WHEN NOT MATCHED BY SOURCE THEN
|
|
DELETE
|
|
OUTPUT $action INTO @SummaryOfChanges;
|
|
|
|
END
|
|
--ELSE IF @source = 'ItemsRaw' -- carico da anagrafica
|
|
-- BEGIN
|
|
-- MERGE INTO Item2Package AS Target
|
|
-- USING (SELECT CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup FROM ItemsRaw)
|
|
-- AS Source
|
|
-- ON Target.CodItem = Source.CodItem
|
|
-- WHEN MATCHED THEN
|
|
-- UPDATE SET ItemDescr = Source.ItemDescr, CodPlant = Source.CodPlant, UnitWeight = Source.UnitWeight, CodItemGroup = Source.CodItemGroup
|
|
-- WHEN NOT MATCHED BY TARGET THEN
|
|
-- INSERT (CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup) VALUES (CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup)
|
|
-- OUTPUT $action INTO @SummaryOfChanges;
|
|
|
|
-- END
|
|
|
|
-- Query the results of the table variable.
|
|
SELECT Change, COUNT(*) AS CountPerChange
|
|
FROM @SummaryOfChanges
|
|
GROUP BY Change;
|
|
END]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[ext].[stp_mergePackage2].[@source]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[CodDies]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[CodDies]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[CodPackag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[QtyOUT]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[QtyEXT]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[QuotaMan]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[Duration]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[okPr]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[okQM]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[EventStart]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[stp_mergePackage2].[@dateFrom]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[stp_mergePackage2].[@dateTo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2].[CodPackag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[CodPackag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2].[TotQta]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2].[Weight]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2].[Tare]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2].[NumImb]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2].[Durata]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2].[CodPackag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[CodPackag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[stp_mergePackage2].[@SummaryOfChanges].[Change]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DynamicObjects">
|
|
<Entry>
|
|
<Element Type="SqlDynamicColumnSource" Name="[ext].[stp_mergePackage2].[@SummaryOfChanges]">
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[stp_mergePackage2].[@SummaryOfChanges].[Change]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<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>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[ext].[stp_mergePackage2].[@source]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA['ProductionLog']]></Value>
|
|
</Property>
|
|
<Relationship Name="Type">
|
|
<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="SqlSubroutineParameter" Name="[ext].[stp_mergePackage2].[@dateFrom]">
|
|
<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="[ext].[stp_mergePackage2].[@dateTo]">
|
|
<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 Name="[ext]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="248" />
|
|
<Property Name="Length" Value="3687" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="



-- =============================================
-- Author:		S.E. Locatelli
-- Create date: 2014.01.15
-- Description:	Procedura per import dati in Package2Item da dati ProductionLogRaw
-- =============================================
CREATE PROCEDURE [ext].[stp_mergePackage2]
(
	@source NVARCHAR(20) = 'ProductionLog', -- nome della tabella sorgente tra ProductionLogRaw e ItemsRaw
	@dateFrom	DATETIME, -- data da cui iniziare a caricare
	@dateTo		DATETIME -- data fino a cui caricare
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[ext].[stp_mergePackage2_OLD]">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
BEGIN
|
|
SET NOCOUNT ON;
|
|
|
|
|
|
---- Create a temporary table variable to hold the output actions.
|
|
--DECLARE @SummaryOfChanges TABLE(Change VARCHAR(20));
|
|
|
|
-- -- import con MERGE... verifico tipo di caricamento richiesto!
|
|
--IF @source = 'ProductionLogRaw' -- carico da tracciato produzione
|
|
-- BEGIN
|
|
-- MERGE INTO Package2 AS Target
|
|
-- USING (
|
|
-- SELECT plr.CodPackag, SUM(QtyOUT) AS TotQta, COUNT(*) AS NumEv
|
|
-- , SUM(QtyOUT) / COUNT(*) AS PesoMedio
|
|
-- , SUM(QtyEXT) / COUNT(*) AS TaraMedia
|
|
-- FROM ext.ProductionLogRaw plr
|
|
-- INNER JOIN DiesDet dd ON plr.CodDies = dd.CodDies
|
|
-- WHERE ISNULL(plr.CodPackag, '') <> ''
|
|
-- GROUP BY plr.CodPackag
|
|
-- )
|
|
-- AS Source
|
|
-- ON Target.CodPackag = Source.CodPackag
|
|
-- WHEN MATCHED THEN
|
|
-- UPDATE SET TotQty = Source.TotQta
|
|
-- , [Weight] = Source.PesoMedio
|
|
-- , Tare = Source.TaraMedia
|
|
-- WHEN NOT MATCHED BY TARGET THEN
|
|
-- INSERT (CodPackag, TotQty, [Weight], Tare) VALUES (CodPackag, TotQta, PesoMedio, TaraMedia)
|
|
-- OUTPUT $action INTO @SummaryOfChanges;
|
|
|
|
-- END
|
|
----ELSE IF @source = 'ItemsRaw' -- carico da anagrafica
|
|
---- BEGIN
|
|
---- MERGE INTO Item2Package AS Target
|
|
---- USING (SELECT CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup FROM ItemsRaw)
|
|
---- AS Source
|
|
---- ON Target.CodItem = Source.CodItem
|
|
---- WHEN MATCHED THEN
|
|
---- UPDATE SET ItemDescr = Source.ItemDescr, CodPlant = Source.CodPlant, UnitWeight = Source.UnitWeight, CodItemGroup = Source.CodItemGroup
|
|
---- WHEN NOT MATCHED BY TARGET THEN
|
|
---- INSERT (CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup) VALUES (CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup)
|
|
---- OUTPUT $action INTO @SummaryOfChanges;
|
|
|
|
---- END
|
|
|
|
---- Query the results of the table variable.
|
|
--SELECT Change, COUNT(*) AS CountPerChange
|
|
--FROM @SummaryOfChanges
|
|
--GROUP BY Change;
|
|
END]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[ext].[stp_mergePackage2_OLD].[@source]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA['ProductionLogRaw']]></Value>
|
|
</Property>
|
|
<Relationship Name="Type">
|
|
<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>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References Name="[ext]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="242" />
|
|
<Property Name="Length" Value="2358" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="
-- =============================================
-- Author:		S.E. Locatelli
-- Create date: 2014.01.15
-- Description:	Procedura per import dati in Package2Item da dati ProductionLogRaw
-- =============================================
CREATE PROCEDURE [ext].[stp_mergePackage2_OLD]
(
	@source NVARCHAR(20) = 'ProductionLogRaw' -- nome della tabella sorgente tra ProductionLogRaw e ItemsRaw
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[ext].[stp_mergePackage2Item]">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
BEGIN
|
|
SET NOCOUNT ON;
|
|
|
|
|
|
-- Create a temporary table variable to hold the output actions.
|
|
DECLARE @SummaryOfChanges TABLE(Change VARCHAR(20));
|
|
|
|
-- import con MERGE... verifico tipo di caricamento richiesto!
|
|
IF @source = 'ProductionLog' -- carico da tracciato produzione
|
|
BEGIN
|
|
MERGE INTO Package2Item AS Target
|
|
USING (
|
|
--SELECT dd.CodItem, plr.CodPackag, SUM(QtyOUT) AS TotQta, COUNT(*) AS NumEv
|
|
-- , SUM(QtyOUT) / COUNT(*) AS PesoMedio
|
|
-- , SUM(QtyEXT) / COUNT(*) AS TaraMedia
|
|
--FROM ext.ProductionLogRaw plr
|
|
-- INNER JOIN DiesDet dd ON plr.CodDies = dd.CodDies
|
|
-- WHERE ISNULL(plr.CodPackag, '') <> ''
|
|
--GROUP BY dd.CodItem, plr.CodPackag
|
|
SELECT
|
|
dd.CodItem
|
|
, pl.CodPackag
|
|
, SUM(QtyOUT) AS TotQta
|
|
-- , COUNT(*) AS NumEv
|
|
, SUM(QtyOUT) / COUNT(*) AS PesoMedio
|
|
, SUM(QtyEXT) / COUNT(*) AS TaraMedia
|
|
-- dati produttività imballo
|
|
, ROUND(SUM(QtyOUT* QuotaMan) / CASE WHEN SUM(QtyOUT) = 0 THEN 1 ELSE SUM(QtyOUT) END,0) as NumImb
|
|
, SUM(Duration) AS Durata
|
|
FROM ProductionLog pl
|
|
INNER JOIN DiesDet dd ON pl.CodDies=dd.CodDies
|
|
WHERE pl.ProcessNum = '04'
|
|
AND pl.okPr = 1 AND pl.okQM = 1
|
|
AND ISNULL(pl.CodPackag, '') <> ''
|
|
AND pl.EventStart BETWEEN @dateFrom AND @dateTo
|
|
GROUP BY dd.CodItem, pl.CodPackag
|
|
)
|
|
AS Source
|
|
ON Target.CodItem = Source.CodItem AND Target.CodPackag = Source.CodPackag
|
|
WHEN MATCHED THEN
|
|
UPDATE SET TotQta = Source.TotQta
|
|
, [Weight] = Source.PesoMedio
|
|
, Tare = Source.TaraMedia
|
|
, NumImb = Source.NumImb
|
|
, Durata = Source.Durata
|
|
WHEN NOT MATCHED BY TARGET THEN
|
|
INSERT (CodItem, CodPackag, TotQta, [Weight], Tare, NumImb, Durata)
|
|
VALUES (CodItem, CodPackag, TotQta, PesoMedio, TaraMedia, NumImb, Durata)
|
|
WHEN NOT MATCHED BY SOURCE THEN
|
|
DELETE
|
|
OUTPUT $action INTO @SummaryOfChanges;
|
|
|
|
END
|
|
--ELSE IF @source = 'ItemsRaw' -- carico da anagrafica
|
|
-- BEGIN
|
|
-- MERGE INTO Item2Package AS Target
|
|
-- USING (SELECT CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup FROM ItemsRaw)
|
|
-- AS Source
|
|
-- ON Target.CodItem = Source.CodItem
|
|
-- WHEN MATCHED THEN
|
|
-- UPDATE SET ItemDescr = Source.ItemDescr, CodPlant = Source.CodPlant, UnitWeight = Source.UnitWeight, CodItemGroup = Source.CodItemGroup
|
|
-- WHEN NOT MATCHED BY TARGET THEN
|
|
-- INSERT (CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup) VALUES (CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup)
|
|
-- OUTPUT $action INTO @SummaryOfChanges;
|
|
|
|
-- END
|
|
|
|
-- Query the results of the table variable.
|
|
SELECT Change, COUNT(*) AS CountPerChange
|
|
FROM @SummaryOfChanges
|
|
GROUP BY Change;
|
|
END]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[ext].[stp_mergePackage2Item].[@source]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[CodDies]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[CodDies]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[CodPackag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[QtyOUT]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[QtyEXT]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[QuotaMan]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[Duration]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[okPr]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[okQM]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[EventStart]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[stp_mergePackage2Item].[@dateFrom]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[stp_mergePackage2Item].[@dateTo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2Item]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2Item].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2Item].[CodPackag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[CodPackag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2Item].[TotQta]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2Item].[Weight]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2Item].[Tare]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2Item].[NumImb]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2Item].[Durata]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2Item].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2Item].[CodPackag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[CodPackag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[stp_mergePackage2Item].[@SummaryOfChanges].[Change]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DynamicObjects">
|
|
<Entry>
|
|
<Element Type="SqlDynamicColumnSource" Name="[ext].[stp_mergePackage2Item].[@SummaryOfChanges]">
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[stp_mergePackage2Item].[@SummaryOfChanges].[Change]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<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>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[ext].[stp_mergePackage2Item].[@source]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA['ProductionLog']]></Value>
|
|
</Property>
|
|
<Relationship Name="Type">
|
|
<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="SqlSubroutineParameter" Name="[ext].[stp_mergePackage2Item].[@dateFrom]">
|
|
<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="[ext].[stp_mergePackage2Item].[@dateTo]">
|
|
<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 Name="[ext]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="246" />
|
|
<Property Name="Length" Value="3689" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="


-- =============================================
-- Author:		S.E. Locatelli
-- Create date: 2014.01.15
-- Description:	Procedura per import dati in Package2Item da dati ProductionLogRaw
-- =============================================
CREATE PROCEDURE [ext].[stp_mergePackage2Item]
(
	@source NVARCHAR(20) = 'ProductionLog', -- nome della tabella sorgente tra ProductionLogRaw e ItemsRaw
	@dateFrom	DATETIME, -- data da cui iniziare a caricare
	@dateTo		DATETIME -- data fino a cui caricare
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[ext].[stp_mergePackage2Item_OLD]">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
BEGIN
|
|
SET NOCOUNT ON;
|
|
|
|
|
|
---- Create a temporary table variable to hold the output actions.
|
|
--DECLARE @SummaryOfChanges TABLE(Change VARCHAR(20));
|
|
|
|
-- -- import con MERGE... verifico tipo di caricamento richiesto!
|
|
--IF @source = 'ProductionLogRaw' -- carico da tracciato produzione
|
|
-- BEGIN
|
|
-- MERGE INTO Package2Item AS Target
|
|
-- USING (
|
|
-- SELECT dd.CodItem, plr.CodPackag, SUM(QtyOUT) AS TotQta, COUNT(*) AS NumEv
|
|
-- , SUM(QtyOUT) / COUNT(*) AS PesoMedio
|
|
-- , SUM(QtyEXT) / COUNT(*) AS TaraMedia
|
|
-- FROM ext.ProductionLogRaw plr
|
|
-- INNER JOIN DiesDet dd ON plr.CodDies = dd.CodDies
|
|
-- WHERE ISNULL(plr.CodPackag, '') <> ''
|
|
-- GROUP BY dd.CodItem, plr.CodPackag
|
|
-- )
|
|
-- AS Source
|
|
-- ON Target.CodItem = Source.CodItem AND Target.CodPackag = Source.CodPackag
|
|
-- WHEN MATCHED THEN
|
|
-- UPDATE SET TotQty = Source.TotQta
|
|
-- , [Weight] = Source.PesoMedio
|
|
-- , Tare = Source.TaraMedia
|
|
-- WHEN NOT MATCHED BY TARGET THEN
|
|
-- INSERT (CodItem, CodPackag, TotQty, [Weight], Tare) VALUES (CodItem, CodPackag, TotQta, PesoMedio, TaraMedia)
|
|
-- OUTPUT $action INTO @SummaryOfChanges;
|
|
|
|
-- END
|
|
----ELSE IF @source = 'ItemsRaw' -- carico da anagrafica
|
|
---- BEGIN
|
|
---- MERGE INTO Item2Package AS Target
|
|
---- USING (SELECT CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup FROM ItemsRaw)
|
|
---- AS Source
|
|
---- ON Target.CodItem = Source.CodItem
|
|
---- WHEN MATCHED THEN
|
|
---- UPDATE SET ItemDescr = Source.ItemDescr, CodPlant = Source.CodPlant, UnitWeight = Source.UnitWeight, CodItemGroup = Source.CodItemGroup
|
|
---- WHEN NOT MATCHED BY TARGET THEN
|
|
---- INSERT (CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup) VALUES (CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup)
|
|
---- OUTPUT $action INTO @SummaryOfChanges;
|
|
|
|
---- END
|
|
|
|
---- Query the results of the table variable.
|
|
--SELECT Change, COUNT(*) AS CountPerChange
|
|
--FROM @SummaryOfChanges
|
|
--GROUP BY Change;
|
|
END]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[ext].[stp_mergePackage2Item_OLD].[@source]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA['ProductionLogRaw']]></Value>
|
|
</Property>
|
|
<Relationship Name="Type">
|
|
<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>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References Name="[ext]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="242" />
|
|
<Property Name="Length" Value="2444" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="
-- =============================================
-- Author:		S.E. Locatelli
-- Create date: 2014.01.15
-- Description:	Procedura per import dati in Package2Item da dati ProductionLogRaw
-- =============================================
CREATE PROCEDURE [ext].[stp_mergePackage2Item_OLD]
(
	@source NVARCHAR(20) = 'ProductionLogRaw' -- nome della tabella sorgente tra ProductionLogRaw e ItemsRaw
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[ext].[stp_mergePackage2ItemClient]">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
BEGIN
|
|
SET NOCOUNT ON;
|
|
|
|
|
|
-- Create a temporary table variable to hold the output actions.
|
|
DECLARE @SummaryOfChanges TABLE(Change VARCHAR(20));
|
|
|
|
-- import con MERGE... verifico tipo di caricamento richiesto!
|
|
IF @source = 'ProductionLog' -- carico da tracciato produzione
|
|
BEGIN
|
|
MERGE INTO Package2ItemClient AS Target
|
|
USING (
|
|
--SELECT dd.CodItem, plr.CodClient, plr.CodPackag, SUM(QtyOUT) AS TotQta, COUNT(*) AS NumEv
|
|
-- , SUM(QtyOUT) / COUNT(*) AS PesoMedio
|
|
-- , SUM(QtyEXT) / COUNT(*) AS TaraMedia
|
|
--FROM ext.ProductionLogRaw plr
|
|
-- INNER JOIN DiesDet dd ON plr.CodDies = dd.CodDies
|
|
-- WHERE ISNULL(plr.CodPackag, '') <> ''
|
|
--GROUP BY dd.CodItem, plr.CodClient, plr.CodPackag
|
|
SELECT
|
|
dd.CodItem
|
|
, pl.CodClient
|
|
, pl.CodPackag
|
|
, SUM(QtyOUT) AS TotQta
|
|
-- , COUNT(*) AS NumEv
|
|
, SUM(QtyOUT) / COUNT(*) AS PesoMedio
|
|
, SUM(QtyEXT) / COUNT(*) AS TaraMedia
|
|
-- dati produttività imballo
|
|
, ROUND(SUM(QtyOUT* QuotaMan) / CASE WHEN SUM(QtyOUT) = 0 THEN 1 ELSE SUM(QtyOUT) END,0) as NumImb
|
|
, SUM(Duration) AS Durata
|
|
FROM dbo.ProductionLog pl
|
|
INNER JOIN dbo.DiesDet dd ON pl.CodDies=dd.CodDies
|
|
|
|
WHERE pl.ProcessNum = '04'
|
|
AND pl.okPr = 1 AND pl.okQM = 1
|
|
AND ISNULL(pl.CodPackag, '') <> ''
|
|
AND pl.EventStart BETWEEN @dateFrom AND @dateTo
|
|
GROUP BY dd.CodItem, pl.CodClient, pl.CodPackag
|
|
|
|
)
|
|
AS Source
|
|
ON Target.CodItem = Source.CodItem AND Target.CodClient = Source.CodClient AND Target.CodPackag = Source.CodPackag
|
|
WHEN MATCHED THEN
|
|
UPDATE SET TotQta = Source.TotQta
|
|
, [Weight] = Source.PesoMedio
|
|
, Tare = Source.TaraMedia
|
|
, NumImb = Source.NumImb
|
|
, Durata = Source.Durata
|
|
WHEN NOT MATCHED BY TARGET THEN
|
|
INSERT (CodItem, CodClient, CodPackag, TotQta, [Weight], Tare, NumImb, Durata)
|
|
VALUES (CodItem, CodClient, CodPackag, TotQta, PesoMedio, TaraMedia, NumImb, Durata)
|
|
WHEN NOT MATCHED BY SOURCE THEN
|
|
DELETE
|
|
OUTPUT $action INTO @SummaryOfChanges;
|
|
|
|
END
|
|
--ELSE IF @source = 'ItemsRaw' -- carico da anagrafica
|
|
-- BEGIN
|
|
-- MERGE INTO Item2PackageClient AS Target
|
|
-- USING (SELECT CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup FROM ItemsRaw)
|
|
-- AS Source
|
|
-- ON Target.CodItem = Source.CodItem
|
|
-- WHEN MATCHED THEN
|
|
-- UPDATE SET ItemDescr = Source.ItemDescr, CodPlant = Source.CodPlant, UnitWeight = Source.UnitWeight, CodItemGroup = Source.CodItemGroup
|
|
-- WHEN NOT MATCHED BY TARGET THEN
|
|
-- INSERT (CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup) VALUES (CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup)
|
|
-- OUTPUT $action INTO @SummaryOfChanges;
|
|
|
|
-- END
|
|
|
|
-- Query the results of the table variable.
|
|
SELECT Change, COUNT(*) AS CountPerChange
|
|
FROM @SummaryOfChanges
|
|
GROUP BY Change;
|
|
END]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[ext].[stp_mergePackage2ItemClient].[@source]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[CodDies]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[CodDies]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[CodClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[CodPackag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[QtyOUT]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[QtyEXT]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[QuotaMan]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[Duration]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[okPr]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[okQM]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[EventStart]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[stp_mergePackage2ItemClient].[@dateFrom]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[stp_mergePackage2ItemClient].[@dateTo]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2ItemClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2ItemClient].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2ItemClient].[CodClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[CodClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2ItemClient].[CodPackag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[CodPackag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2ItemClient].[TotQta]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2ItemClient].[Weight]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2ItemClient].[Tare]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2ItemClient].[NumImb]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2ItemClient].[Durata]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2ItemClient].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2ItemClient].[CodClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[Package2ItemClient].[CodPackag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[CodClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[CodPackag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[stp_mergePackage2ItemClient].[@SummaryOfChanges].[Change]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DynamicObjects">
|
|
<Entry>
|
|
<Element Type="SqlDynamicColumnSource" Name="[ext].[stp_mergePackage2ItemClient].[@SummaryOfChanges]">
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[stp_mergePackage2ItemClient].[@SummaryOfChanges].[Change]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<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>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[ext].[stp_mergePackage2ItemClient].[@source]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA['ProductionLog']]></Value>
|
|
</Property>
|
|
<Relationship Name="Type">
|
|
<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="SqlSubroutineParameter" Name="[ext].[stp_mergePackage2ItemClient].[@dateFrom]">
|
|
<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="[ext].[stp_mergePackage2ItemClient].[@dateTo]">
|
|
<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 Name="[ext]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="252" />
|
|
<Property Name="Length" Value="3881" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="


-- =============================================
-- Author:		S.E. Locatelli
-- Create date: 2013.11.27
-- Description:	Procedura per import dati in Package2ItemClient da dati ProductionLogRaw
-- =============================================
CREATE PROCEDURE [ext].[stp_mergePackage2ItemClient]
(
	@source NVARCHAR(20) = 'ProductionLog', -- nome della tabella sorgente tra ProductionLogRaw e ItemsRaw
	@dateFrom	DATETIME, -- data da cui iniziare a caricare
	@dateTo		DATETIME -- data fino a cui caricare
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[ext].[stp_mergePackage2ItemClient_OLD]">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
BEGIN
|
|
SET NOCOUNT ON;
|
|
|
|
|
|
---- Create a temporary table variable to hold the output actions.
|
|
--DECLARE @SummaryOfChanges TABLE(Change VARCHAR(20));
|
|
|
|
-- -- import con MERGE... verifico tipo di caricamento richiesto!
|
|
--IF @source = 'ProductionLogRaw' -- carico da tracciato produzione
|
|
-- BEGIN
|
|
-- MERGE INTO Package2ItemClient AS Target
|
|
-- USING (
|
|
-- SELECT dd.CodItem, plr.CodClient, plr.CodPackag, SUM(QtyOUT) AS TotQta, COUNT(*) AS NumEv
|
|
-- , SUM(QtyOUT) / COUNT(*) AS PesoMedio
|
|
-- , SUM(QtyEXT) / COUNT(*) AS TaraMedia
|
|
-- FROM ext.ProductionLogRaw plr
|
|
-- INNER JOIN DiesDet dd ON plr.CodDies = dd.CodDies
|
|
-- WHERE ISNULL(plr.CodPackag, '') <> ''
|
|
-- GROUP BY dd.CodItem, plr.CodClient, plr.CodPackag
|
|
-- )
|
|
-- AS Source
|
|
-- ON Target.CodItem = Source.CodItem AND Target.CodClient = Source.CodClient AND Target.CodPackag = Source.CodPackag
|
|
-- WHEN MATCHED THEN
|
|
-- UPDATE SET TotQty = Source.TotQta
|
|
-- , [Weight] = Source.PesoMedio
|
|
-- , Tare = Source.TaraMedia
|
|
-- WHEN NOT MATCHED BY TARGET THEN
|
|
-- INSERT (CodItem, CodClient, CodPackag, TotQty, [Weight], Tare) VALUES (CodItem, CodClient, CodPackag, TotQta, PesoMedio, TaraMedia)
|
|
-- OUTPUT $action INTO @SummaryOfChanges;
|
|
|
|
-- END
|
|
----ELSE IF @source = 'ItemsRaw' -- carico da anagrafica
|
|
---- BEGIN
|
|
---- MERGE INTO Item2PackageClient AS Target
|
|
---- USING (SELECT CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup FROM ItemsRaw)
|
|
---- AS Source
|
|
---- ON Target.CodItem = Source.CodItem
|
|
---- WHEN MATCHED THEN
|
|
---- UPDATE SET ItemDescr = Source.ItemDescr, CodPlant = Source.CodPlant, UnitWeight = Source.UnitWeight, CodItemGroup = Source.CodItemGroup
|
|
---- WHEN NOT MATCHED BY TARGET THEN
|
|
---- INSERT (CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup) VALUES (CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup)
|
|
---- OUTPUT $action INTO @SummaryOfChanges;
|
|
|
|
---- END
|
|
|
|
---- Query the results of the table variable.
|
|
--SELECT Change, COUNT(*) AS CountPerChange
|
|
--FROM @SummaryOfChanges
|
|
--GROUP BY Change;
|
|
END]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[ext].[stp_mergePackage2ItemClient_OLD].[@source]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA['ProductionLogRaw']]></Value>
|
|
</Property>
|
|
<Relationship Name="Type">
|
|
<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>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References Name="[ext]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="248" />
|
|
<Property Name="Length" Value="2561" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="
-- =============================================
-- Author:		S.E. Locatelli
-- Create date: 2013.11.27
-- Description:	Procedura per import dati in Package2ItemClient da dati ProductionLogRaw
-- =============================================
CREATE PROCEDURE [ext].[stp_mergePackage2ItemClient_OLD]
(
	@source NVARCHAR(20) = 'ProductionLogRaw' -- nome della tabella sorgente tra ProductionLogRaw e ItemsRaw
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[ext].[stp_mergePlantsDet]">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
BEGIN
|
|
SET NOCOUNT ON;
|
|
|
|
-- Create a temporary table variable to hold the output actions.
|
|
DECLARE @SummaryOfChanges TABLE(Change VARCHAR(20));
|
|
|
|
-- import con MERGE... verifico tipo di caricamento richiesto!
|
|
IF @source = 'ProductionLogRaw' -- carico da tracciato produzione
|
|
BEGIN
|
|
MERGE INTO PlantsDet AS Target
|
|
USING (SELECT DISTINCT CodPlant FROM ext.ProductionLogRaw)
|
|
AS Source
|
|
ON Target.CodPlant = Source.CodPlant
|
|
--WHEN MATCHED THEN
|
|
-- UPDATE SET PackagName = Source.PackagName
|
|
WHEN NOT MATCHED BY TARGET THEN
|
|
INSERT (CodPlant, Descript) VALUES (CodPlant, '#### - ' + CodPlant)
|
|
OUTPUT $action INTO @SummaryOfChanges;
|
|
|
|
END
|
|
--ELSE IF @source = 'PackagRaw' -- carico da anagrafica
|
|
-- BEGIN
|
|
-- MERGE INTO PackagDet AS Target
|
|
-- USING (SELECT CodPackag, PackagDesc, RMCost, RMWeight, Tare, FullWeight FROM ext.PackagRaw)
|
|
-- AS Source
|
|
-- ON Target.CodPackag = Source.CodPackag
|
|
-- WHEN MATCHED THEN
|
|
-- UPDATE SET PackagDesc = Source.PackagDesc, RMCost = Source.RMCost, RMWeight = Source.RMWeight, Tare = Source.Tare, FullWeight = Source.FullWeight
|
|
-- WHEN NOT MATCHED BY TARGET THEN
|
|
-- INSERT (CodPackag, PackagDesc, RMCost, RMWeight, Tare, FullWeight) VALUES (CodPackag, PackagDesc, RMCost, RMWeight, Tare, FullWeight)
|
|
-- OUTPUT $action INTO @SummaryOfChanges;
|
|
|
|
-- END
|
|
|
|
-- Query the results of the table variable.
|
|
SELECT Change, COUNT(*) AS CountPerChange
|
|
FROM @SummaryOfChanges
|
|
GROUP BY Change;
|
|
END]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[ext].[stp_mergePlantsDet].[@source]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[PlantsDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[PlantsDet].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[PlantsDet].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[PlantsDet].[Descript]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[stp_mergePlantsDet].[@SummaryOfChanges].[Change]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DynamicObjects">
|
|
<Entry>
|
|
<Element Type="SqlDynamicColumnSource" Name="[ext].[stp_mergePlantsDet].[@SummaryOfChanges]">
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[stp_mergePlantsDet].[@SummaryOfChanges].[Change]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<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>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[ext].[stp_mergePlantsDet].[@source]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA['ProductionLogRaw']]></Value>
|
|
</Property>
|
|
<Relationship Name="Type">
|
|
<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>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References Name="[ext]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="239" />
|
|
<Property Name="Length" Value="1911" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="
-- =============================================
-- Author:		S.E. Locatelli
-- Create date: 2013.12.03
-- Description:	Procedura per import dati in PlantsDet da dati ProductionLogRaw
-- =============================================
create PROCEDURE [ext].[stp_mergePlantsDet]
(
	@source NVARCHAR(20) = 'ProductionLogRaw' -- nome della tabella sorgente tra ProductionLogRaw e PackagRaw
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[ext].[stp_mergeRawMat]">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
BEGIN
|
|
SET NOCOUNT ON;
|
|
|
|
-- Create a temporary table variable to hold the output actions.
|
|
DECLARE @SummaryOfChanges TABLE(Change VARCHAR(20));
|
|
|
|
-- import con MERGE... verifico tipo di caricamento richiesto!
|
|
IF @source = 'ProductionLogRaw' -- carico da tracciato produzione
|
|
BEGIN
|
|
MERGE INTO RawMatDet AS Target
|
|
USING (SELECT DISTINCT RawMat FROM ext.ProductionLogRaw)
|
|
AS Source
|
|
ON Target.RawMat = Source.RawMat
|
|
--WHEN MATCHED THEN
|
|
-- UPDATE SET PackagName = Source.PackagName
|
|
WHEN NOT MATCHED BY TARGET THEN
|
|
INSERT (RawMat, ProcCost, ProcYield, CSR) VALUES (RawMat, 0, 0, 0)
|
|
OUTPUT $action INTO @SummaryOfChanges;
|
|
|
|
END
|
|
--ELSE IF @source = 'PackagRaw' -- carico da anagrafica
|
|
-- BEGIN
|
|
-- MERGE INTO PackagDet AS Target
|
|
-- USING (SELECT CodPackag, PackagDesc, RMCost, RMWeight, Tare, FullWeight FROM ext.PackagRaw)
|
|
-- AS Source
|
|
-- ON Target.CodPackag = Source.CodPackag
|
|
-- WHEN MATCHED THEN
|
|
-- UPDATE SET PackagDesc = Source.PackagDesc, RMCost = Source.RMCost, RMWeight = Source.RMWeight, Tare = Source.Tare, FullWeight = Source.FullWeight
|
|
-- WHEN NOT MATCHED BY TARGET THEN
|
|
-- INSERT (CodPackag, PackagDesc, RMCost, RMWeight, Tare, FullWeight) VALUES (CodPackag, PackagDesc, RMCost, RMWeight, Tare, FullWeight)
|
|
-- OUTPUT $action INTO @SummaryOfChanges;
|
|
|
|
-- END
|
|
|
|
-- Query the results of the table variable.
|
|
SELECT Change, COUNT(*) AS CountPerChange
|
|
FROM @SummaryOfChanges
|
|
GROUP BY Change;
|
|
END]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[ext].[stp_mergeRawMat].[@source]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[RawMat]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[RawMat]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[RawMat]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[RawMat]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[ProcCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[ProcYield]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[CSR]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[RawMat]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[stp_mergeRawMat].[@SummaryOfChanges].[Change]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DynamicObjects">
|
|
<Entry>
|
|
<Element Type="SqlDynamicColumnSource" Name="[ext].[stp_mergeRawMat].[@SummaryOfChanges]">
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[stp_mergeRawMat].[@SummaryOfChanges].[Change]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<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>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[ext].[stp_mergeRawMat].[@source]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA['ProductionLogRaw']]></Value>
|
|
</Property>
|
|
<Relationship Name="Type">
|
|
<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>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References Name="[ext]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="249" />
|
|
<Property Name="Length" Value="1911" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="
-- =============================================
-- Author:		S.E. Locatelli
-- Create date: 2013.12.02
-- Description:	Procedura per import dati in PackagDet da dati ProductionLogRaw/PackagRaw
-- =============================================
CREATE PROCEDURE [ext].[stp_mergeRawMat]
(
	@source NVARCHAR(20) = 'ProductionLogRaw' -- nome della tabella sorgente tra ProductionLogRaw e PackagRaw
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[ext].[stp_mergeTranspCostDet]">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
BEGIN
|
|
SET NOCOUNT ON;
|
|
|
|
-- Create a temporary table variable to hold the output actions.
|
|
DECLARE @SummaryOfChanges TABLE(Change VARCHAR(20));
|
|
|
|
-- import con MERGE... verifico tipo di caricamento richiesto!
|
|
IF @source = 'TranspCostRaw' -- carico da anagrafica
|
|
BEGIN
|
|
MERGE INTO TranspCostDet AS Target
|
|
USING (SELECT DISTINCT TranspZone, TranspCost FROM ext.TranspCostRaw)
|
|
AS Source
|
|
ON Target.TranspZone = Source.TranspZone
|
|
WHEN MATCHED THEN
|
|
UPDATE SET TranspCost = Source.TranspCost
|
|
WHEN NOT MATCHED BY TARGET THEN
|
|
INSERT (TranspZone, TranspCost) VALUES (TranspZone, TranspCost)
|
|
OUTPUT $action INTO @SummaryOfChanges;
|
|
|
|
END
|
|
|
|
-- Query the results of the table variable.
|
|
SELECT Change, COUNT(*) AS CountPerChange
|
|
FROM @SummaryOfChanges
|
|
GROUP BY Change;
|
|
END]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[ext].[stp_mergeTranspCostDet].[@source]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[TranspCostRaw]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[TranspCostRaw].[TranspZone]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[TranspCostRaw].[TranspCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TranspCostDet]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TranspCostDet].[TranspZone]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[TranspCostRaw].[TranspZone]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TranspCostDet].[TranspCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[TranspCostRaw].[TranspCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[TranspCostDet].[TranspZone]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[TranspCostRaw].[TranspZone]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[TranspCostRaw].[TranspCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[stp_mergeTranspCostDet].[@SummaryOfChanges].[Change]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DynamicObjects">
|
|
<Entry>
|
|
<Element Type="SqlDynamicColumnSource" Name="[ext].[stp_mergeTranspCostDet].[@SummaryOfChanges]">
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[stp_mergeTranspCostDet].[@SummaryOfChanges].[Change]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<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>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[ext].[stp_mergeTranspCostDet].[@source]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA['TranspCostRaw']]></Value>
|
|
</Property>
|
|
<Relationship Name="Type">
|
|
<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>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References Name="[ext]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="250" />
|
|
<Property Name="Length" Value="1242" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="
-- =============================================
-- Author:		S.E. Locatelli
-- Create date: 2014.01.16
-- Description:	Procedura per import dati in ClientDet da dati ProductionLogRaw/ClientsRaw
-- =============================================
CREATE PROCEDURE [ext].[stp_mergeTranspCostDet]
(
	@source NVARCHAR(20) = 'TranspCostRaw' -- nome della tabella sorgente tra ProductionLogRaw e ClientsRaw
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[ext].[stp_updateProductionLog]">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
BEGIN
|
|
SET NOCOUNT ON;
|
|
|
|
-- Create a temporary table variable to hold the output actions.
|
|
DECLARE @deleted INT = 0
|
|
,@inserted INT = 0
|
|
,@fromDate DATETIME = GETDATE()
|
|
,@toDate DATETIME = GETDATE()
|
|
|
|
-- primo step: calcolo inizio/fine periodo...
|
|
SELECT @fromDate=MIN(EventStart), @toDate=MAX(EventStart) FROM ext.ProductionLogRaw
|
|
|
|
|
|
-- secondo step: elimino dal tracciato tutti i dati dal periodo indicato
|
|
DELETE FROM dbo.ProductionLog
|
|
WHERE EventStart BETWEEN @fromDate AND @toDate
|
|
|
|
SELECT @deleted = ISNULL(@@ROWCOUNT,0)
|
|
|
|
-- inserisco i nuovi dati
|
|
INSERT INTO dbo.ProductionLog
|
|
SELECT * FROM ext.ProductionLogRaw
|
|
|
|
SELECT @inserted = ISNULL(@@ROWCOUNT,0)
|
|
|
|
-- riporto in output quanto eliminato/inserito
|
|
SELECT @deleted as RecDeleted, @inserted as RecInserted
|
|
|
|
END]]></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 ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[EventStart]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[EventStart]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References Name="[ext]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="380" />
|
|
<Property Name="Length" Value="1254" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="
-- =============================================
-- Author:		S.E. Locatelli
-- Create date: 2013.11.29
-- Description:	Procedura per import dati in ProductionLog da dati ProductionLogRaw
--
-- ATTENZIONE: dato l'intervallo temporale in ext.ProductionLogRaw eventuali dati precedenti in dbo.ProductionLog saranno eliminati
-- =============================================
CREATE PROCEDURE [ext].[stp_updateProductionLog]

AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[ext].[TranspCostRaw]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[TranspCostRaw].[TranspZone]">
|
|
<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="202" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[ext].[TranspCostRaw].[TranspCost]">
|
|
<Property Name="IsNullable" Value="False" />
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Property Name="Scale" Value="6" />
|
|
<Property Name="Precision" Value="9" />
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References Name="[ext]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="209" />
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[AgentsDet].[CodAg].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'codice agente...']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[AgentsDet].[CodAg]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[AgentsDet].[Firstname].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Nome']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[AgentsDet].[Firstname]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[AgentsDet].[Lastname].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Cognome']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[AgentsDet].[Lastname]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[AgentsDet].[QuotaProvvAg].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Provvigione come €/kg']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[AgentsDet].[QuotaProvvAg]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[ClientDet].[City].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'città']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet].[City]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[ClientDet].[ClientName].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Ragione Sociale']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet].[ClientName]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[ClientDet].[CodAg].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'codice agente...']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet].[CodAg]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[ClientDet].[CodClient].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'codice cliente']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet].[CodClient]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[ClientDet].[Nation].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'nazione']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet].[Nation]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[ClientDet].[State].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'stato/provincia']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet].[State]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[ClientDet].[TranspZone].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Classificazione cliente (es zona, provincia...) x incrocio con tab costi trasporto']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet].[TranspZone]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[ClientDet].[ZipCode].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'cap']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet].[ZipCode]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[Cost2Plant].[CodPlant].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'codice impianto']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant].[CodPlant]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[Cost2Plant].[FC].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Costo Fissi €/h per CDC + FASE']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant].[FC]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[Cost2Plant].[OH].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Over Head costo €/h per CDC + FASE']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant].[OH]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[Cost2Plant].[ProcessNum].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'codice fase, da qui si crea anagrafica fasi distinct']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant].[ProcessNum]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[Cost2Plant].[QuotaManStd].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'indicazione della quota uomo per produrre quanto registrato']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant].[QuotaManStd]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[Cost2Plant].[QuotaPlantStd].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'indicazione della quota macchina per produrre quanto registrato']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant].[QuotaPlantStd]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[Cost2Plant].[SC].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'costoSETUP €/cambio per CDC + FASE']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant].[SC]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[Cost2Plant].[VC].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Costi Variabili €/h per CDC + FASE']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[Cost2Plant].[VC]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[DiesDet].[Active].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Stato: 1 = disponibile, 0 = rottamata']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[Active]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[DiesDet].[ActLife].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Durata attuale (delle rottamate, media) in kg']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[ActLife]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[DiesDet].[CodDies].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'codice matrice']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[CodDies]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[DiesDet].[CodDiesGroup].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'codice CLASSE matrice, es tipo + diametro; nota: massima numerosità pari a numero articoli, minima numerosità 1']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[CodDiesGroup]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[DiesDet].[CodItem].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'codice articolo']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[CodItem]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[DiesDet].[ExpLife].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Durata attesa in kg PREVISTA']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[ExpLife]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[DiesDet].[Price].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'prezzo di acquisto']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[Price]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[DiesDet].[TestCost].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'costo di prove e correzioni']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[DiesDet].[TestCost]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[DiesGroupDet].[CodDiesGroup].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'codice CLASSE matrice, es tipo + diametro']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet].[CodDiesGroup]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[DiesGroupDet].[EOLLife].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Durata attuale (delle rottamate, media) in kg']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet].[EOLLife]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[DiesGroupDet].[ExpLife].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Durata attesa in kg PREVISTA']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet].[ExpLife]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[DiesGroupDet].[Price].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'prezzo di acquisto']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet].[Price]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[DiesGroupDet].[QtyEOL].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'numero rottamate nel gruppo (End Of Life)']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet].[QtyEOL]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[DiesGroupDet].[QtyTot].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Totale matrici del gruppo']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[DiesGroupDet].[QtyTot]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[Incoterms].[CodInco].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Codice Incoterms']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[Incoterms].[CodInco]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[Incoterms].[Descript].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Descrizione Incoterms']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[Incoterms].[Descript]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[Incoterms].[HasTC].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Indica se ha costi di trasporto (1) o non lil ha (0)']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[Incoterms].[HasTC]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[ItemDet].[Class01].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[Class01]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[ItemDet].[CodItem].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'codice articolo']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[CodItem]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[ItemDet].[CodItemGroup].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'classe raggruppamento (es complessità disegno)']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[CodItemGroup]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[ItemDet].[UnitWeight].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'peso espresso come g/m (grammi / metro)']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet].[UnitWeight]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[PackagDet].[RMCost].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Raw Material Cost - costo dei materiali']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[PackagDet].[RMCost]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[PackagDet].[RMWeight].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'kg peso medio']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[PackagDet].[RMWeight]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[Package2].[Tare].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Tara']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2].[Tare]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[Package2].[TotQta].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Quantità totale lavorata']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2].[TotQta]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[Package2].[Weight].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Peso medio']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2].[Weight]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[Package2Item].[CodItem].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'codice articolo']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2Item].[CodItem]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[Package2Item].[Tare].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Tara']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2Item].[Tare]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[Package2Item].[TotQta].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Quantità totale lavorata']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2Item].[TotQta]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[Package2Item].[Weight].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Peso medio']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2Item].[Weight]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[Package2ItemClient].[CodClient].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'codice cliente']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2ItemClient].[CodClient]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[Package2ItemClient].[CodItem].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'codice articolo']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2ItemClient].[CodItem]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[Package2ItemClient].[Tare].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Tara']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2ItemClient].[Tare]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[Package2ItemClient].[TotQta].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Quantità totale lavorata']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2ItemClient].[TotQta]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[Package2ItemClient].[Weight].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Peso medio']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[Package2ItemClient].[Weight]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[PlantsDet].[Charge].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Over Head costo €/h per CDC + FASE']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[PlantsDet].[Charge]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[PlantsDet].[CodPlant].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'codice impianto']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[PlantsDet].[CodPlant]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[PlantsDet].[Descript].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'descrizione impianto']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[PlantsDet].[Descript]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[ProductionLog].[BatchNum].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'codice lotto']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[BatchNum]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[ProductionLog].[CodClient].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'codice cliente']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[CodClient]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[ProductionLog].[CodDies].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'codice matrice']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[CodDies]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[ProductionLog].[CodPackag].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'codice imballo']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[CodPackag]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[ProductionLog].[CodPlant].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'codice impianto']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[CodPlant]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[ProductionLog].[Duration].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Durata espressa in ore']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[Duration]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[ProductionLog].[EventEnd].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'fine evento - formato INT 16 cifre yyyyMMddHHmmssnn dove nn = centesimi di sec oppure 00']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[EventEnd]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[ProductionLog].[EventStart].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'inizio evento - formato INT 16 cifre yyyyMMddHHmmssnn dove nn = centesimi di sec oppure 00']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[EventStart]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[ProductionLog].[EventType].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'tipo evento: produzione, prova, guasto, setup...']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[EventType]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[ProductionLog].[NumIN].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'qta materiale in ingresso']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[NumIN]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[ProductionLog].[NumOUT].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'qta materiale BUONO prodotto in OUTput']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[NumOUT]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[ProductionLog].[okDi].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'validazione riga x calcolo difettosità']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[okDi]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[ProductionLog].[okPr].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'validazione riga x calcolo produttività']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[okPr]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[ProductionLog].[okQM].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'validazione riga x calcolo quota MAN']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[okQM]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[ProductionLog].[okSc].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'validazione riga x calcolo scarti']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[okSc]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[ProductionLog].[OrderNum].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'rif codice ordine']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[OrderNum]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[ProductionLog].[ProcessNum].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'codice fase, da qui si crea anagrafica fasi distinct']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[ProcessNum]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[ProductionLog].[ProcessType].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'codice del TIPO di fase, x raggruppamento funzionale']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[ProcessType]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[ProductionLog].[QtyEXT].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'kg materiale dbora che fa parte dell''OUT, es imballi/tara']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[QtyEXT]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[ProductionLog].[QtyIN].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'kg materiale in ingresso']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[QtyIN]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[ProductionLog].[QtyOUT].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'kg materiale BUONO prodotto in OUTput']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[QtyOUT]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[ProductionLog].[QuotaMan].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'indicazione della quota uomo per produrre quanto registrato']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[QuotaMan]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[ProductionLog].[QuotaPlant].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'indicazione della quota macchina per produrre quanto registrato']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[QuotaPlant]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[ProductionLog].[RawMat].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'codice MP']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[RawMat]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[ProductionLog].[Tags].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'categorie LIBERE, separatore #']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[ProductionLog].[Tags]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteFull_Q].[PriceOff].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Prezzo Offerto']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteFull_Q].[PriceOff]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteList].[BatchQty].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Quantità lotto kg']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[BatchQty]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteList].[CodClient].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'codice cliente']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodClient]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteList].[CodInco].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Codice Incoterms']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodInco]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteList].[CodItem].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'codice articolo']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodItem]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteList].[CodItemGroup].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'classe raggruppamento (es complessità disegno)']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodItemGroup]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteList].[CodQuote].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'numero nel formato yyMMddnnnn dove nnn è incrementale giornaliero']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[CodQuote]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteList].[OrdDate].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'data dell''ordine']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[OrdDate]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteList].[OrdNum].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'numero ordine']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[OrdNum]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteList].[OrdPrice].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Prezzo finale ordine']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[OrdPrice]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteList].[OrdRow].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'riga ordine']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[OrdRow]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteList].[PriceOff].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Prezzo Offerto']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[PriceOff]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteList].[QuoteType].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'tipo di preventivo: Q = quote, S = simulation']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[QuoteType]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteList].[RawMat].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'codice MP']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[RawMat]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteList].[UnitWeight].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'peso espresso come g/m (grammi / metro)']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteList].[UnitWeight]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteOC].[C4UG].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Costo pro quota di impiego (per matrici, imballi,...)']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[C4UG]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteOC].[Class01].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Riclass. 01, tipo di costo :
|
|
- UTIL (EE/GAS)
|
|
- ROTTAME (costo rifusione + quota perdita x ri-vendita)
|
|
- CONS
|
|
- TRASP
|
|
- PROVV
|
|
- EXTRA']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[Class01]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteOC].[Class02].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Riclass. 02, codice di ricerca per tipo di costo extra, es se consumabili è codice matrice']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[Class02]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteOC].[Class03].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Riclass. 03']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[Class03]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteOC].[Class04].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Riclass. 04']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[Class04]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteOC].[Class05].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Riclass. 05']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[Class05]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteOC].[CodPlant].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'codice impianto']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[CodPlant]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteOC].[CodQuote].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'numero nel formato yyMMddnnnn dove nnn è incrementale giornaliero']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[CodQuote]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteOC].[NumEx].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'progressivo del costo OTHER']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[NumEx]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteOC].[ProcessNum].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Tipo risorsa (e lavorazione): 01 .. 04']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[ProcessNum]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteOC].[Quota].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Quota di impiego']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[Quota]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteOC].[QuoteType].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'tipo di preventivo: Q = quote, S = simulation']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[QuoteType]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteOC].[TotCost].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Costo totale di riferimento']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[TotCost]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteOC].[TotQty].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'quantità totale di riferimento']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC].[TotQty]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteParam].[CodQuote].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'numero nel formato yyMMddnnnn dove nnn è incrementale giornaliero']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam].[CodQuote]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteParam].[NumP].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'progressivo interno']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam].[NumP]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteParam].[ProcessNum].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Tipo risorsa (e lavorazione): 01 .. 04']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam].[ProcessNum]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteParam].[QuoteType].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'tipo di preventivo: Q = quote, S = simulation']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteParam].[QuoteType]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteRM].[CodQuote].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'numero nel formato yyMMddnnnn dove nnn è incrementale giornaliero']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[CodQuote]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteRM].[FCR].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Tasso di conversione TOTALE, messa al cento, quantità di MP necessaria per produrre un unità di prodotto']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[FCR]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteRM].[FSR].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'FULL Scrape Ratio, percentuale scarto TOTALE']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[FSR]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteRM].[FYR].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'FULL Yield Ratio, percentuale RESA TOTALE']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[FYR]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteRM].[NumRM].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'progressivo interno']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[NumRM]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteRM].[QuoteType].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'tipo di preventivo: Q = quote, S = simulation']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[QuoteType]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteRM].[RawMat].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'codice MP']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[RawMat]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteRM].[RawMatCost].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'costo della MP €/kg']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[RawMatCost]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteRM].[RawMatExtraCost].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'costo degli extra della MP €/kg']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteRM].[RawMatExtraCost]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteWorkExt].[CodQuote].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'numero nel formato yyMMddnnnn dove nnn è incrementale giornaliero']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkExt].[CodQuote]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteWorkExt].[EWC4UG].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'External Work Cost FOR Unit of Good, quota dei costi fissi per unità di prodotto finito (Copertura Costo Struttura e Linea)']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkExt].[EWC4UG]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteWorkExt].[NumWE].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'progressivo interno']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkExt].[NumWE]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteWorkExt].[QuoteType].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'tipo di preventivo: Q = quote, S = simulation']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkExt].[QuoteType]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteWorkExt].[UM].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Unità di misura di riferimento per il costo']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkExt].[UM]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteWorkInt].[Class01].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Riclass. 01, ARTICOLO + MATERIALE']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[Class01]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteWorkInt].[Class02].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Riclass. 02, codice di ricerca per prod - es cod imballo o Chiave di ricerca Articolo/ClasseArt + RawMat+ Impianto + NumLuci ']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[Class02]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteWorkInt].[Class03].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Riclass. 03, tipo imballo']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[Class03]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteWorkInt].[Class04].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Riclass. 04']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[Class04]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteWorkInt].[Class05].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Riclass. 05']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[Class05]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteWorkInt].[CodPlant].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'codice impianto']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[CodPlant]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteWorkInt].[CodQuote].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'numero nel formato yyMMddnnnn dove nnn è incrementale giornaliero']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[CodQuote]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteWorkInt].[DCR].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Defect Conversion Ratio, Messa a Cento, 1 / RESA ']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[DCR]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteWorkInt].[DSR].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Defect Scrape Ratio, percentuale scarto per difettosità prodotto (qualità)']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[DSR]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteWorkInt].[DYR].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Defect Yield Ratio, percentuale RESA per difettosità prodotto (qualità), 1 - scarto']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[DYR]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteWorkInt].[FC4UG].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Fixed Cost FOR Unit of Good, quota dei costi fissi per unità di prodotto finito (Copertura Costo Struttura e Linea)']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[FC4UG]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteWorkInt].[MCR].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Material Conversion Ratio, Messa a Cento, 1 / RESA ']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[MCR]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteWorkInt].[MSR].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Material Scrape Ratio, percentuale scarto legato alla MP (cesoia x alx)']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[MSR]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteWorkInt].[MYR].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Material Yield Ratio, percentuale RESA legato alla MP (cesoia x alx), 1 - scarto']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[MYR]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteWorkInt].[NetProd].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Produttivita netta (teorica) kg/h']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[NetProd]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteWorkInt].[NumWI].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'progressivo interno']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[NumWI]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteWorkInt].[OH4UG].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'OH Cost FOR Unit of Good, quota dei costi Over Head per unità di prodotto finito']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[OH4UG]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteWorkInt].[ProcessNum].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Tipo risorsa (e lavorazione): estrusione/imballo']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[ProcessNum]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteWorkInt].[QuoteType].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'tipo di preventivo: Q = quote, S = simulation']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[QuoteType]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteWorkInt].[SC4UG].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Setup Cost FOR Unit of Good, quota dei costi di setup per unità di prodotto finito (costo cambio matrice x Alx)']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[SC4UG]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteWorkInt].[VC4UG].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Variables Cost FOR Unit of Good, quota dei costi variabili per unità di prodotto finito (Costo del personale x Alx)']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[VC4UG]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteWorkInt].[WCR].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Work Conversion Ratio, Messa a Cento, 1 / RESA ']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[WCR]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteWorkInt].[WSR].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Work Scrape Ratio, percentuale scarto della lavorazione (tecnico)']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[WSR]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[QuoteWorkInt].[WYR].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Work Yield Ratio, percentuale RESA della lavorazione (tecnico), 1 - scarto']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteWorkInt].[WYR]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[RawMatDet].[CSR].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Cut Scrape Ratio, percentuale scarto cesoia']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[CSR]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[RawMatDet].[ExtraMatCost].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Costo extra di acquisto del materiale']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[ExtraMatCost]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[RawMatDet].[ExtraServCost].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Costo extra dei servizi sul materiale (es ultrasuoni)']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[ExtraServCost]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[RawMatDet].[ProcCost].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'costo del processo di rifusione €/kg']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[ProcCost]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[RawMatDet].[ProcYield].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'resa del processo di rifusione %']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[ProcYield]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[RawMatDet].[RawMat].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'codice MP']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[RawMat]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[RawMatDet].[SSR].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Scrape Sell Ratio, percentuale di vendita dello scarto (0-100)']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[SSR]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[RawMatDet].[SSVA].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Scrape Sell Value - ABSOLUTE, valore di vendita dello scarto ASSOLUTO']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[SSVA]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[RawMatDet].[SSVR].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Scrape Sell Value - RELATIVE come valore % del valore lega']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[RawMatDet].[SSVR]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[RevHistory].[DateRev].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'data revisione']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[RevHistory].[DateRev]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[RevHistory].[Description].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'descrizione revisione']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[RevHistory].[Description]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[RevHistory].[RevNum].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'incrementale del numero di revisione']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[RevHistory].[RevNum]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[RevHistory].[RevType].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Tipo di revisione indicata coem S.C.P --> in C = costi di contab industriale, P = da ProductionLog, S = Sistema di calcolo']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[RevHistory].[RevType]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[TabProdSc].[ProdTeo].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'produttività teorica (kgTeorici / durata h)']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[TabProdSc].[ProdTeo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[TabProdSc].[ScTec].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'scarto tecnico: 1 - (KgTeorici/ISNULL(KgLordi,1))']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[TabProdSc].[ScTec]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[TranspCostDet].[TranspCost].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'costi di traporto €/kg']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[TranspCostDet].[TranspCost]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[TranspCostDet].[TranspZone].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Classificazione cliente (es zona, provincia...) x incrocio con tab costi trasporto']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[TranspCostDet].[TranspZone]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[Utilities].[CodPlant].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'codice impianto']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[Utilities].[CodPlant]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[Utilities].[CodUtil].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'codice dell''utility (Energia elettrica / gas)']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[Utilities].[CodUtil]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[dbo].[Utilities].[UnitCost].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Costo al kg per impianto ed utility']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[Utilities].[UnitCost]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[ext].[ClientsRaw].[City].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'città']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[ext].[ClientsRaw].[City]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[ext].[ClientsRaw].[ClientName].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Ragione Sociale']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[ext].[ClientsRaw].[ClientName]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[ext].[ClientsRaw].[CodAg].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'codice agente...']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[ext].[ClientsRaw].[CodAg]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[ext].[ClientsRaw].[CodClient].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'codice cliente']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[ext].[ClientsRaw].[CodClient]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[ext].[ClientsRaw].[Nation].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'nazione']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[ext].[ClientsRaw].[Nation]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[ext].[ClientsRaw].[State].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'stato/provincia']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[ext].[ClientsRaw].[State]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[ext].[ClientsRaw].[TranspZone].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Classificazione cliente (es zona, provincia...) x incrocio con tab costi trasporto']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[ext].[ClientsRaw].[TranspZone]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[ext].[ClientsRaw].[ZipCode].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'cap']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[ext].[ClientsRaw].[ZipCode]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[ext].[ItemsRaw].[Class01].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw].[Class01]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[ext].[ItemsRaw].[CodItem].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'codice articolo']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw].[CodItem]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[ext].[ItemsRaw].[CodItemGroup].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'calsse raggruppamento (es complessità disegno)']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw].[CodItemGroup]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[ext].[PackagRaw].[FullWeight].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'peso medio del pacco (compelssivo)']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[ext].[PackagRaw].[FullWeight]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[ext].[PackagRaw].[RMCost].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Raw Material Cost - costo dei materiali']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[ext].[PackagRaw].[RMCost]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[ext].[PackagRaw].[RMWeight].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'kg peso medio']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[ext].[PackagRaw].[RMWeight]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[ext].[PackagRaw].[Tare].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'kg tara standard']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[ext].[PackagRaw].[Tare]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[ext].[ProductionLogRaw].[BatchNum].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'codice lotto']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[BatchNum]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[ext].[ProductionLogRaw].[CodClient].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'codice cliente']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[CodClient]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[ext].[ProductionLogRaw].[CodDies].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'codice matrice']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[CodDies]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[ext].[ProductionLogRaw].[CodPackag].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'codice imballo']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[CodPackag]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[ext].[ProductionLogRaw].[CodPlant].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'codice impianto']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[CodPlant]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[ext].[ProductionLogRaw].[EventEnd].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'fine evento - formato INT 16 cifre yyyyMMddHHmmssnn dove nn = centesimi di sec oppure 00']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[EventEnd]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[ext].[ProductionLogRaw].[EventStart].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'inizio evento - formato INT 16 cifre yyyyMMddHHmmssnn dove nn = centesimi di sec oppure 00']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[EventStart]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[ext].[ProductionLogRaw].[EventType].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'tipo evento: produzione, prova, guasto, setup...']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[EventType]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[ext].[ProductionLogRaw].[NumIN].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'qta materiale in ingresso']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[NumIN]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[ext].[ProductionLogRaw].[NumOUT].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'qta materiale BUONO prodotto in OUTput']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[NumOUT]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[ext].[ProductionLogRaw].[okDi].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'validazione riga x calcolo difettosità']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[okDi]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[ext].[ProductionLogRaw].[okPr].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'validazione riga x calcolo produttività']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[okPr]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[ext].[ProductionLogRaw].[okQM].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'validazione riga x calcolo quota MAN']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[okQM]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[ext].[ProductionLogRaw].[okSc].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'validazione riga x calcolo scarti']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[okSc]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[ext].[ProductionLogRaw].[OrderNum].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'rif codice ordine']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[OrderNum]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[ext].[ProductionLogRaw].[ProcessNum].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'codice fase, da qui si crea anagrafica fasi distinct']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[ProcessNum]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[ext].[ProductionLogRaw].[ProcessType].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'codice del TIPO di fase, x raggruppamento funzionale']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[ProcessType]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[ext].[ProductionLogRaw].[QtyEXT].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'kg materiale extra che fa parte dell''OUT, es imballi/tara']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[QtyEXT]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[ext].[ProductionLogRaw].[QtyIN].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'kg materiale in ingresso']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[QtyIN]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[ext].[ProductionLogRaw].[QtyOUT].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'kg materiale BUONO prodotto in OUTput']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[QtyOUT]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[ext].[ProductionLogRaw].[QuotaMan].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'indicazione della quota uomo per produrre quanto registrato']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[QuotaMan]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[ext].[ProductionLogRaw].[QuotaPlant].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'indicazione della quota macchina per produrre quanto registrato']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[QuotaPlant]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[ext].[ProductionLogRaw].[RawMat].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'codice MP']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[RawMat]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[ext].[ProductionLogRaw].[Tags].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'categorie LIBERE, separatore #']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[Tags]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[ext].[ProductionLogRaw_KO].[okDi].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'validazione riga x calcolo difettosità']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw_KO].[okDi]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[ext].[ProductionLogRaw_KO].[okPr].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'validazione riga x calcolo produttività']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw_KO].[okPr]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[ext].[ProductionLogRaw_KO].[okQM].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'validazione riga x calcolo quota MAN']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw_KO].[okQM]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[ext].[ProductionLogRaw_KO].[okSc].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'validazione riga x calcolo scarti']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw_KO].[okSc]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[tmp].[ClientsRaw].[City].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'città']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[tmp].[ClientsRaw].[City]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[tmp].[ClientsRaw].[ClientName].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Ragione Sociale']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[tmp].[ClientsRaw].[ClientName]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[tmp].[ClientsRaw].[CodAg].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'codice agente...']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[tmp].[ClientsRaw].[CodAg]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[tmp].[ClientsRaw].[CodClient].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'codice cliente']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[tmp].[ClientsRaw].[CodClient]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[tmp].[ClientsRaw].[Nation].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'nazione']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[tmp].[ClientsRaw].[Nation]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[tmp].[ClientsRaw].[State].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'stato/provincia']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[tmp].[ClientsRaw].[State]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[tmp].[ClientsRaw].[TranspZone].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Classificazione cliente (es zona, provincia...) x incrocio con tab costi trasporto']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[tmp].[ClientsRaw].[TranspZone]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[tmp].[ClientsRaw].[ZipCode].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'cap']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[tmp].[ClientsRaw].[ZipCode]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[tmp].[ItemsRaw].[Class01].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[tmp].[ItemsRaw].[Class01]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[tmp].[ItemsRaw].[CodItem].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'codice articolo']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[tmp].[ItemsRaw].[CodItem]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[tmp].[ItemsRaw].[CodItemGroup].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'calsse raggruppamento (es complessità disegno)']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[tmp].[ItemsRaw].[CodItemGroup]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[tmp].[PackagRaw].[FullWeight].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'peso medio del pacco (compelssivo)']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[tmp].[PackagRaw].[FullWeight]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[tmp].[PackagRaw].[RMCost].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Raw Material Cost - costo dei materiali']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[tmp].[PackagRaw].[RMCost]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[tmp].[PackagRaw].[RMWeight].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'kg peso medio']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[tmp].[PackagRaw].[RMWeight]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[tmp].[PackagRaw].[Tare].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'kg tara standard']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[tmp].[PackagRaw].[Tare]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[tmp].[ProductionLogRaw].[okDi].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'validazione riga x calcolo difettosità']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw].[okDi]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[tmp].[ProductionLogRaw].[okPr].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'validazione riga x calcolo produttività']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw].[okPr]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[tmp].[ProductionLogRaw].[okQM].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'validazione riga x calcolo quota MAN']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw].[okQM]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[tmp].[ProductionLogRaw].[okSc].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'validazione riga x calcolo scarti']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw].[okSc]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[tmp].[ProductionLogRaw_KO].[okDi].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'validazione riga x calcolo difettosità']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw_KO].[okDi]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[tmp].[ProductionLogRaw_KO].[okPr].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'validazione riga x calcolo produttività']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw_KO].[okPr]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[tmp].[ProductionLogRaw_KO].[okQM].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'validazione riga x calcolo quota MAN']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw_KO].[okQM]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlColumn].[tmp].[ProductionLogRaw_KO].[okSc].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'validazione riga x calcolo scarti']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw_KO].[okSc]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlTableBase].[dbo].[ClientDet].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Client Details Table']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[ClientDet]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlTableBase].[dbo].[ItemDet].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Item Details Table']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[ItemDet]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlTableBase].[dbo].[QuoteOC].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'Altri costi (diretti-indiretti)']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[QuoteOC]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlTableBase].[dbo].[Utilities].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'costo unitario per unità di PF (€/kg)']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[Utilities]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlTableBase].[ext].[ClientsRaw].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[ext].[ClientsRaw]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlTableBase].[tmp].[ClientsRaw].[MS_Description]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[N'']]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[tmp].[ClientsRaw]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_QuoteFull_Q].[MS_DiagramPane1]">
|
|
<Property Name="Value">
|
|
<Value><![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 = "QuoteFull_Q"
|
|
Begin Extent =
|
|
Top = 6
|
|
Left = 38
|
|
Bottom = 136
|
|
Right = 221
|
|
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_QuoteFull_Q]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_QuoteFull_Q].[MS_DiagramPaneCount]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[1]]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_QuoteFull_Q]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_selClient].[MS_DiagramPane1]">
|
|
<Property Name="Value">
|
|
<Value><![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 = "ClientDet"
|
|
Begin Extent =
|
|
Top = 6
|
|
Left = 38
|
|
Bottom = 258
|
|
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 = 4290
|
|
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_selClient]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_selClient].[MS_DiagramPaneCount]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[1]]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_selClient]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_selCons].[MS_DiagramPane1]">
|
|
<Property Name="Value">
|
|
<Value><![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[10] 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 = "Incoterms"
|
|
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 = 840
|
|
Width = 4620
|
|
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_selCons]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_selCons].[MS_DiagramPaneCount]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[1]]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_selCons]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_selItems].[MS_DiagramPane1]">
|
|
<Property Name="Value">
|
|
<Value><![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 = "ItemDet"
|
|
Begin Extent =
|
|
Top = 6
|
|
Left = 38
|
|
Bottom = 254
|
|
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 = 4635
|
|
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_selItems]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlExtendedProperty" Name="[SqlView].[dbo].[v_selItems].[MS_DiagramPaneCount]">
|
|
<Property Name="Value">
|
|
<Value><![CDATA[1]]></Value>
|
|
</Property>
|
|
<Relationship Name="Host">
|
|
<Entry>
|
|
<References Name="[dbo].[v_selItems]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlSchema" Name="[tmp]">
|
|
<Relationship Name="Authorizer">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[dbo]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[tmp].[ClientsRaw]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[tmp].[ClientsRaw].[CodClient]">
|
|
<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="[tmp].[ClientsRaw].[ClientName]">
|
|
<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>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[tmp].[ClientsRaw].[CodAg]">
|
|
<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="[tmp].[ClientsRaw].[ZipCode]">
|
|
<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="[tmp].[ClientsRaw].[City]">
|
|
<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="[tmp].[ClientsRaw].[State]">
|
|
<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="[tmp].[ClientsRaw].[Nation]">
|
|
<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="[tmp].[ClientsRaw].[TranspZone]">
|
|
<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="210" />
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References Name="[tmp]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[tmp].[convertClientsRaw]">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
BEGIN
|
|
SET NOCOUNT ON;
|
|
|
|
-- per Giancarlo: rendere parametrico con esecuzione sql x poter inserire nei parametri il separatore ed il resto? http://www.sqlteam.com/article/using-bulk-insert-to-load-a-text-file
|
|
|
|
IF @fileType = 'ClientsRaw'
|
|
BEGIN
|
|
-- svuoto tabella temp
|
|
TRUNCATE TABLE ext.ClientsRaw
|
|
|
|
-- inserisco con cast valori...
|
|
INSERT ext.ClientsRaw
|
|
WITH (TABLOCK)
|
|
( CodClient, ClientName, CodAg, ZipCode, City, [State], Nation, TranspZone)
|
|
SELECT
|
|
CodClient,
|
|
ClientName,
|
|
CodAg,
|
|
ZipCode,
|
|
City,
|
|
[State],
|
|
Nation,
|
|
TranspZone
|
|
FROM tmp.ClientsRaw;
|
|
|
|
SELECT COUNT(*) as RecordsIn FROM ext.ClientsRaw
|
|
END
|
|
|
|
END]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[tmp].[convertClientsRaw].[@fileType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ClientsRaw]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ClientsRaw].[CodClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ClientsRaw].[ClientName]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ClientsRaw].[CodAg]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ClientsRaw].[ZipCode]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ClientsRaw].[City]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ClientsRaw].[State]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ClientsRaw].[Nation]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ClientsRaw].[TranspZone]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ClientsRaw]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ClientsRaw].[CodClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ClientsRaw].[ClientName]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ClientsRaw].[CodAg]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ClientsRaw].[ZipCode]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ClientsRaw].[City]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ClientsRaw].[State]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ClientsRaw].[Nation]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ClientsRaw].[TranspZone]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[tmp].[convertClientsRaw].[@fileType]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA['ClientsRaw']]></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 Name="[tmp]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="249" />
|
|
<Property Name="Length" Value="1161" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="

-- =============================================
-- Author:		S.E. Locatelli
-- Create date: 2013.11.28
-- Description:	Procedura per conversioen e tipizzazione dati da tmp a ext x ClientsRaw
-- =============================================
CREATE PROCEDURE [tmp].[convertClientsRaw]
(
	 @fileType NVARCHAR(50) = 'ClientsRaw'
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[tmp].[convertDiesGroupRaw]">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
BEGIN
|
|
SET NOCOUNT ON;
|
|
|
|
-- per Giancarlo: rendere parametrico con esecuzione sql x poter inserire nei parametri il separatore ed il resto? http://www.sqlteam.com/article/using-bulk-insert-to-load-a-text-file
|
|
|
|
IF @fileType = 'DiesGroupRaw'
|
|
BEGIN
|
|
-- svuoto tabella temp
|
|
TRUNCATE TABLE ext.DiesGroupRaw
|
|
|
|
-- inserisco con cast valori...
|
|
INSERT ext.DiesGroupRaw
|
|
WITH (TABLOCK)
|
|
( CodDiesGroup, Price, QtyTot, QtyEOL, ExpLife, EOLLife)
|
|
SELECT
|
|
CodDiesGroup,
|
|
CAST( CAST( REPLACE( '0' + REPLACE(Price,'.',''),',','.' ) AS float )AS decimal( 9,3 )) AS Price,
|
|
CAST(ISNULL(QtyTot,0) AS INT) AS QtyTot,
|
|
CAST(ISNULL(QtyEOL,0) AS INT) AS QtyEOL,
|
|
CAST( CAST( REPLACE( '0' + REPLACE(ExpLife,'.',''),',','.' ) AS float )AS decimal( 9,2 )) AS ExpLife,
|
|
CAST( CAST( REPLACE( '0' + REPLACE(EOLLife,'.',''),',','.' ) AS float )AS decimal( 9,2 )) AS EOLLife
|
|
FROM tmp.DiesGroupRaw;
|
|
|
|
SELECT COUNT(*) as RecordsIn FROM ext.DiesGroupRaw
|
|
END
|
|
|
|
END]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[tmp].[convertDiesGroupRaw].[@fileType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[DiesGroupRaw]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[DiesGroupRaw].[CodDiesGroup]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[DiesGroupRaw].[Price]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[DiesGroupRaw].[QtyTot]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[DiesGroupRaw].[QtyEOL]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[DiesGroupRaw].[ExpLife]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[DiesGroupRaw].[EOLLife]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[DiesGroupRaw]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[DiesGroupRaw].[CodDiesGroup]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[float]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[DiesGroupRaw].[Price]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[DiesGroupRaw].[QtyTot]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[DiesGroupRaw].[QtyEOL]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[float]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[DiesGroupRaw].[ExpLife]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[float]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[DiesGroupRaw].[EOLLife]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[tmp].[convertDiesGroupRaw].[@fileType]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA['DiesGroupRaw']]></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 Name="[tmp]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="253" />
|
|
<Property Name="Length" Value="1447" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="


-- =============================================
-- Author:		S.E. Locatelli
-- Create date: 2014.01.08
-- Description:	Procedura per conversione e tipizzazione dati da tmp a ext x DiesGroupRaw
-- =============================================
CREATE PROCEDURE [tmp].[convertDiesGroupRaw]
(
	 @fileType NVARCHAR(50) = 'DiesGroupRaw'
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[tmp].[convertDiesRaw]">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
BEGIN
|
|
SET NOCOUNT ON;
|
|
|
|
-- per Giancarlo: rendere parametrico con esecuzione sql x poter inserire nei parametri il separatore ed il resto? http://www.sqlteam.com/article/using-bulk-insert-to-load-a-text-file
|
|
|
|
IF @fileType = 'DiesRaw'
|
|
BEGIN
|
|
-- svuoto tabella temp
|
|
TRUNCATE TABLE ext.DiesRaw
|
|
|
|
-- inserisco con cast valori...
|
|
INSERT ext.DiesRaw
|
|
WITH (TABLOCK)
|
|
( CodDies, HoleNum, CodItem, CodDiesGroup, Price, ExpLife, ActLife, Active )
|
|
SELECT
|
|
CodDies,
|
|
CAST(ISNULL(HoleNum,0) AS INT) AS HoleNum,
|
|
CodItem,
|
|
CodDiesGroup,
|
|
CAST( CAST( REPLACE( '0' + Price,',','.' )AS float )AS decimal( 9,3 )) AS Price,
|
|
CAST( CAST( REPLACE( '0' + ExpLife,',','.' )AS float )AS decimal( 9,2 )) AS ExpLife,
|
|
CAST( CAST( REPLACE( '0' + ActLife,',','.' )AS float )AS decimal( 9,2 )) AS ActLife,
|
|
CAST(ISNULL(Active,0) AS INT) AS Active
|
|
FROM tmp.DiesRaw;
|
|
|
|
SELECT COUNT(*) as RecordsIn FROM ext.DiesRaw
|
|
END
|
|
|
|
END]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[tmp].[convertDiesRaw].[@fileType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[DiesRaw]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[DiesRaw].[CodDies]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[DiesRaw].[HoleNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[DiesRaw].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[DiesRaw].[CodDiesGroup]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[DiesRaw].[Price]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[DiesRaw].[ExpLife]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[DiesRaw].[ActLife]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[DiesRaw].[Active]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[DiesRaw]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[DiesRaw].[CodDies]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[DiesRaw].[HoleNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[DiesRaw].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[DiesRaw].[CodDiesGroup]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[float]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[DiesRaw].[Price]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[float]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[DiesRaw].[ExpLife]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[float]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[DiesRaw].[ActLife]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[DiesRaw].[Active]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[tmp].[convertDiesRaw].[@fileType]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA['DiesRaw']]></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 Name="[tmp]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="246" />
|
|
<Property Name="Length" Value="1446" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="

-- =============================================
-- Author:		S.E. Locatelli
-- Create date: 2013.12.02
-- Description:	Procedura per conversione e tipizzazione dati da tmp a ext x DiesRaw
-- =============================================
CREATE PROCEDURE [tmp].[convertDiesRaw]
(
	 @fileType NVARCHAR(50) = 'DiesRaw'
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[tmp].[convertItemsRaw]">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
BEGIN
|
|
SET NOCOUNT ON;
|
|
|
|
-- per Giancarlo: rendere parametrico con esecuzione sql x poter inserire nei parametri il separatore ed il resto? http://www.sqlteam.com/article/using-bulk-insert-to-load-a-text-file
|
|
|
|
IF @fileType = 'ItemsRaw'
|
|
BEGIN
|
|
-- svuoto tabella temp
|
|
TRUNCATE TABLE ext.ItemsRaw
|
|
|
|
-- inserisco con cast valori...
|
|
INSERT ext.ItemsRaw
|
|
WITH (TABLOCK)
|
|
( CodItem, ItemDescr, UnitWeight, CodPlant, CodItemGroup, Class01, Class02, Class03, Class04, Class05 )
|
|
SELECT DISTINCT
|
|
CodItem,
|
|
ItemDescr,
|
|
CAST( CAST( REPLACE( '0' + UnitWeight,',','.' )AS float )AS decimal( 9,3 )) AS UnitWeight,
|
|
CodPlant,
|
|
CodItemGroup,
|
|
Class01,
|
|
Class02,
|
|
Class03,
|
|
Class04,
|
|
Class05
|
|
FROM tmp.ItemsRaw;
|
|
|
|
SELECT COUNT(*) as RecordsIn FROM ext.ItemsRaw
|
|
END
|
|
|
|
END]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[tmp].[convertItemsRaw].[@fileType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw].[ItemDescr]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw].[UnitWeight]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw].[CodItemGroup]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw].[Class01]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw].[Class02]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw].[Class03]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw].[Class04]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ItemsRaw].[Class05]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ItemsRaw]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ItemsRaw].[CodItem]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ItemsRaw].[ItemDescr]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[float]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ItemsRaw].[UnitWeight]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ItemsRaw].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ItemsRaw].[CodItemGroup]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ItemsRaw].[Class01]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ItemsRaw].[Class02]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ItemsRaw].[Class03]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ItemsRaw].[Class04]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ItemsRaw].[Class05]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[tmp].[convertItemsRaw].[@fileType]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA['ItemsRaw']]></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 Name="[tmp]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="247" />
|
|
<Property Name="Length" Value="1298" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="

-- =============================================
-- Author:		S.E. Locatelli
-- Create date: 2013.11.28
-- Description:	Procedura per conversioen e tipizzazione dati da tmp a ext x ItemsRaw
-- =============================================
CREATE PROCEDURE [tmp].[convertItemsRaw]
(
	 @fileType NVARCHAR(50) = 'ItemsRaw'
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[tmp].[convertPackagRaw]">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
BEGIN
|
|
SET NOCOUNT ON;
|
|
|
|
-- per Giancarlo: rendere parametrico con esecuzione sql x poter inserire nei parametri il separatore ed il resto? http://www.sqlteam.com/article/using-bulk-insert-to-load-a-text-file
|
|
|
|
IF @fileType = 'PackagRaw'
|
|
BEGIN
|
|
-- svuoto tabella temp
|
|
TRUNCATE TABLE ext.PackagRaw
|
|
|
|
-- inserisco con cast valori...
|
|
INSERT ext.PackagRaw
|
|
WITH (TABLOCK)
|
|
( CodPackag, PackagDesc, RMCost, RMWeight, Tare, FullWeight )
|
|
SELECT
|
|
CodPackag,
|
|
PackagDesc,
|
|
CAST( CAST( REPLACE( '0' + RMCost,',','.' )AS float )AS decimal( 9,3 )) AS RMCost,
|
|
CAST( CAST( REPLACE( '0' + RMWeight,',','.' )AS float )AS decimal( 9,4 )) AS RMWeight,
|
|
CAST( CAST( REPLACE( '0' + Tare,',','.' )AS float )AS decimal( 9,4 )) AS Tare,
|
|
CAST( CAST( REPLACE( '0' + FullWeight,',','.' )AS float )AS decimal( 9,4 )) AS FullWeight
|
|
FROM tmp.PackagRaw;
|
|
|
|
SELECT COUNT(*) as RecordsIn FROM ext.PackagRaw
|
|
END
|
|
|
|
END]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[tmp].[convertPackagRaw].[@fileType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[PackagRaw]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[PackagRaw].[CodPackag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[PackagRaw].[PackagDesc]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[PackagRaw].[RMCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[PackagRaw].[RMWeight]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[PackagRaw].[Tare]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[PackagRaw].[FullWeight]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[PackagRaw]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[PackagRaw].[CodPackag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[PackagRaw].[PackagDesc]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[float]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[PackagRaw].[RMCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[float]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[PackagRaw].[RMWeight]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[float]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[PackagRaw].[Tare]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[float]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[PackagRaw].[FullWeight]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[tmp].[convertPackagRaw].[@fileType]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA['PackagRaw']]></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 Name="[tmp]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="248" />
|
|
<Property Name="Length" Value="1416" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="

-- =============================================
-- Author:		S.E. Locatelli
-- Create date: 2013.11.29
-- Description:	Procedura per conversioen e tipizzazione dati da tmp a ext x PackagRaw
-- =============================================
CREATE PROCEDURE [tmp].[convertPackagRaw]
(
	 @fileType NVARCHAR(50) = 'PackagRaw'
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[tmp].[convertProductionLogRaw]">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
BEGIN
|
|
SET NOCOUNT ON;
|
|
|
|
-- per Giancarlo: rendere parametrico con esecuzione sql x poter inserire nei parametri il separatore ed il resto? http://www.sqlteam.com/article/using-bulk-insert-to-load-a-text-file
|
|
|
|
IF @fileType = 'ProductionLogRaw'
|
|
BEGIN
|
|
-- svuoto tabella temp
|
|
TRUNCATE TABLE ext.ProductionLogRaw
|
|
|
|
-- inserisco con cast valori...
|
|
INSERT ext.ProductionLogRaw
|
|
WITH (TABLOCK)
|
|
( EventStart, EventEnd, CodPlant, ProcessNum, NrPos, CodDies, CodClient, OrderNum, BatchNum, ProcessType, EventType, RawMat, CodPackag, QtyIN, QtyOUT, QtyEXT, NumIN, NumOUT, QuotaPlant, QuotaMan, Tags, okPr, okQM, okSc, okDi )
|
|
|
|
SELECT
|
|
dbo.f_dtFromRaw( EventStart ) AS EventStart, -- record nulli sono già stati cancellati
|
|
dbo.f_dtFromRaw( EventEnd ) AS EventEnd, -- record nulli sono già stati cancellati
|
|
dbo.f_trim(ISNULL(CodPlant ,'')),
|
|
dbo.f_trim(ISNULL(ProcessNum ,'')),
|
|
dbo.f_trim(ISNULL(NrPos ,'')),
|
|
dbo.f_trim(ISNULL(CodDies ,'')),
|
|
dbo.f_trim(ISNULL(CodClient ,'')),
|
|
dbo.f_trim(ISNULL(OrderNum ,'')),
|
|
dbo.f_trim(ISNULL(BatchNum ,'')),
|
|
dbo.f_trim(ISNULL(ProcessType,'')),
|
|
dbo.f_trim(ISNULL(EventType ,'')),
|
|
dbo.f_trim(ISNULL(RawMat ,'')),
|
|
dbo.f_trim(ISNULL(CodPackag ,'')),
|
|
CAST( CAST( REPLACE( '0' + ISNULL(QtyIN,'') ,',','.' ) AS float ) AS decimal( 18,4 )) AS QtyIN,
|
|
CAST( CAST( REPLACE( '0' + ISNULL(QtyOUT,''),',','.' ) AS float ) AS decimal( 18,4 )) AS QtyOUT,
|
|
CAST( CAST( REPLACE( '0' + ISNULL(QtyEXT,''),',','.' ) AS float ) AS decimal( 18,4 )) AS QtyEXT,
|
|
CAST( ISNULL(NumIN ,'') AS int )AS NumIN,
|
|
CAST( ISNULL(NumOUT ,'') AS int )AS NumOUT,
|
|
CAST( CAST( REPLACE( '0' + ISNULL(QuotaPlant,''),',','.' ) AS float )AS decimal( 9,4 )) AS QuotaPlant,
|
|
CAST( CAST( REPLACE( '0' + ISNULL(QuotaMan,''),',','.' ) AS float )AS decimal( 9,4 )) AS QuotaMan,
|
|
dbo.f_trim(ISNULL(Tags ,'')),
|
|
okPr,
|
|
okQM,
|
|
okSc,
|
|
okDi
|
|
FROM tmp.ProductionLogRaw;
|
|
|
|
SELECT COUNT(*) as RecordsIn FROM ext.ProductionLogRaw
|
|
END
|
|
|
|
END]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[tmp].[convertProductionLogRaw].[@fileType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[EventStart]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[EventEnd]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[NrPos]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[CodDies]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[CodClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[OrderNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[BatchNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[ProcessType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[EventType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[RawMat]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[CodPackag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[QtyIN]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[QtyOUT]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[QtyEXT]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[NumIN]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[NumOUT]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[QuotaPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[QuotaMan]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[Tags]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[okPr]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[okQM]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[okSc]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[ProductionLogRaw].[okDi]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw].[EventStart]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_dtFromRaw]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw].[EventEnd]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_dtFromRaw]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[dbo].[f_trim]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw].[NrPos]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw].[CodDies]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw].[CodClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw].[OrderNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw].[BatchNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw].[ProcessType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw].[EventType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw].[RawMat]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw].[CodPackag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[float]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw].[QtyIN]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[float]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw].[QtyOUT]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[float]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw].[QtyEXT]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw].[NumIN]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[int]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw].[NumOUT]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[float]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw].[QuotaPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[float]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw].[QuotaMan]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw].[Tags]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw].[okPr]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw].[okQM]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw].[okSc]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw].[okDi]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[tmp].[convertProductionLogRaw].[@fileType]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA['ProductionLogRaw']]></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 Name="[tmp]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="257" />
|
|
<Property Name="Length" Value="2833" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="


-- =============================================
-- Author:		S.E. Locatelli
-- Create date: 2013.11.28
-- Description:	Procedura per conversioen e tipizzazione dati da tmp a ext x ProductionLogRaw
-- =============================================
CREATE PROCEDURE [tmp].[convertProductionLogRaw]
(
	 @fileType NVARCHAR(50) = 'ProductionLogRaw'
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[tmp].[convertTranspCostRaw]">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
BEGIN
|
|
SET NOCOUNT ON;
|
|
|
|
-- per Giancarlo: rendere parametrico con esecuzione sql x poter inserire nei parametri il separatore ed il resto? http://www.sqlteam.com/article/using-bulk-insert-to-load-a-text-file
|
|
|
|
IF @fileType = 'TranspCostRaw'
|
|
BEGIN
|
|
-- svuoto tabella temp
|
|
TRUNCATE TABLE ext.TranspCostRaw
|
|
|
|
-- inserisco con cast valori...
|
|
INSERT ext.TranspCostRaw
|
|
WITH (TABLOCK)
|
|
(TranspZone, TranspCost)
|
|
SELECT
|
|
TranspZone,
|
|
MAX(CAST( CAST( REPLACE( '0' + TranspCost,',','.' )AS float )AS decimal( 18,9 ))) AS TranspCost
|
|
FROM tmp.TranspCostRaw
|
|
GROUP BY TranspZone
|
|
|
|
SELECT COUNT(*) as RecordsIn FROM ext.TranspCostRaw
|
|
END
|
|
|
|
END]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[tmp].[convertTranspCostRaw].[@fileType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[TranspCostRaw]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[TranspCostRaw].[TranspZone]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[ext].[TranspCostRaw].[TranspCost]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[TranspCostRaw]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[TranspCostRaw].[TranspZone]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[decimal]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[float]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[TranspCostRaw].[TranspCost]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[tmp].[convertTranspCostRaw].[@fileType]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA['TranspCostRaw']]></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 Name="[tmp]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="252" />
|
|
<Property Name="Length" Value="1090" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="

-- =============================================
-- Author:		S.E. Locatelli
-- Create date: 2013.11.28
-- Description:	Procedura per conversioen e tipizzazione dati da tmp a ext x TranspCostRaw
-- =============================================
CREATE PROCEDURE [tmp].[convertTranspCostRaw]
(
	 @fileType NVARCHAR(50) = 'TranspCostRaw'
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[tmp].[DF_ClientsRaw_TranspZone]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[tmp].[ClientsRaw]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[tmp].[ClientsRaw].[TranspZone]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="210" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[tmp].[DF_ItemsRaw_Class01]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[tmp].[ItemsRaw]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[tmp].[ItemsRaw].[Class01]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="211" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[tmp].[DF_ItemsRaw_Class02]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[tmp].[ItemsRaw]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[tmp].[ItemsRaw].[Class02]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="212" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[tmp].[DF_ItemsRaw_Class03]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[tmp].[ItemsRaw]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[tmp].[ItemsRaw].[Class03]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="213" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[tmp].[DF_ItemsRaw_Class04]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[tmp].[ItemsRaw]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[tmp].[ItemsRaw].[Class04]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="214" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[tmp].[DF_ItemsRaw_Class05]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[tmp].[ItemsRaw]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[tmp].[ItemsRaw].[Class05]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="215" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[tmp].[DF_ProductionLogRaw_KO_ImportDate]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[(getdate())]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw_KO]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw_KO].[ImportDate]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="216" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[tmp].[DF_ProductionLogRaw_KO_okDi]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((1))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw_KO]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw_KO].[okDi]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="217" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[tmp].[DF_ProductionLogRaw_KO_okPr]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((1))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw_KO]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw_KO].[okPr]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="218" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[tmp].[DF_ProductionLogRaw_KO_okQM]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((1))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw_KO]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw_KO].[okQM]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="219" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[tmp].[DF_ProductionLogRaw_KO_okSc]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((1))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw_KO]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw_KO].[okSc]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="220" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[tmp].[DF_ProductionLogRaw_NrPos]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw].[NrPos]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="221" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[tmp].[DF_ProductionLogRaw_NrPos_KO]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw_KO]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw_KO].[NrPos]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="222" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[tmp].[DF_ProductionLogRaw_okDi]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((1))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw].[okDi]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="223" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[tmp].[DF_ProductionLogRaw_okPr]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((1))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw].[okPr]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="224" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[tmp].[DF_ProductionLogRaw_okQM]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((1))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw].[okQM]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="225" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[tmp].[DF_ProductionLogRaw_okSc]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[((1))]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw].[okSc]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="226" />
|
|
</Element>
|
|
<Element Type="SqlDefaultConstraint" Name="[tmp].[DF_TraspZoneRaw]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA[('')]]></Value>
|
|
</Property>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[tmp].[TranspCostRaw]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="ForColumn">
|
|
<Entry>
|
|
<References Name="[tmp].[TranspCostRaw].[TranspZone]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="227" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[tmp].[DiesGroupRaw]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[tmp].[DiesGroupRaw].[CodDiesGroup]">
|
|
<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="[tmp].[DiesGroupRaw].[Price]">
|
|
<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="[tmp].[DiesGroupRaw].[QtyTot]">
|
|
<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="[tmp].[DiesGroupRaw].[QtyEOL]">
|
|
<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="[tmp].[DiesGroupRaw].[ExpLife]">
|
|
<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="[tmp].[DiesGroupRaw].[EOLLife]">
|
|
<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 Name="[tmp]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[tmp].[DiesRaw]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[tmp].[DiesRaw].[CodDies]">
|
|
<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="[tmp].[DiesRaw].[HoleNum]">
|
|
<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="[tmp].[DiesRaw].[CodItem]">
|
|
<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="[tmp].[DiesRaw].[CodDiesGroup]">
|
|
<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="[tmp].[DiesRaw].[Price]">
|
|
<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="[tmp].[DiesRaw].[ExpLife]">
|
|
<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="[tmp].[DiesRaw].[ActLife]">
|
|
<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="[tmp].[DiesRaw].[Active]">
|
|
<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 Name="[tmp]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[tmp].[ExcludeCondFilter]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[tmp].[ExcludeCondFilter].[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="[tmp].[ExcludeCondFilter].[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="[tmp].[ExcludeCondFilter].[WhereCond]">
|
|
<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>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References Name="[tmp]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="228" />
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[tmp].[importClientsRaw]">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
BEGIN
|
|
SET NOCOUNT ON;
|
|
|
|
-- per Giancarlo: rendere parametrico con esecuzione sql x poter inserire nei parametri il separatore ed il resto? http://www.sqlteam.com/article/using-bulk-insert-to-load-a-text-file
|
|
|
|
IF @fileType = 'ClientsRaw'
|
|
BEGIN
|
|
-- svuoto tabella temp
|
|
TRUNCATE TABLE tmp.ClientsRaw
|
|
|
|
-- carico dati bulk!
|
|
BULK INSERT tmp.ClientsRaw
|
|
FROM 'e:\test\ClientsRaw.csv'
|
|
WITH (FIELDTERMINATOR = ';', ROWTERMINATOR = '\n', FIRSTROW = 2, ERRORFILE = 'e:\test\errorClients.log')
|
|
--WITH (FIELDTERMINATOR = ';', ROWTERMINATOR = '\n', FIRSTROW = 2, ERRORFILE = 'e:\test\errorClients.log', CODEPAGE = '1252')
|
|
|
|
SELECT COUNT(*) as RecordsIn FROM tmp.ClientsRaw
|
|
|
|
END
|
|
|
|
END]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[tmp].[importClientsRaw].[@fileType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ClientsRaw]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[tmp].[importClientsRaw].[@fileType]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA['ClientsRaw']]></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 Name="[tmp]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="230" />
|
|
<Property Name="Length" Value="1050" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="

-- =============================================
-- Author:		S.E. Locatelli
-- Create date: 2013.11.29
-- Description:	Procedura per import dati in tabella tmp da file csv
-- =============================================
CREATE PROCEDURE [tmp].[importClientsRaw]
(
	 @fileType NVARCHAR(50) = 'ClientsRaw'
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[tmp].[importDiesGroupRaw]">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
BEGIN
|
|
SET NOCOUNT ON;
|
|
|
|
-- per Giancarlo: rendere parametrico con esecuzione sql x poter inserire nei parametri il separatore ed il resto? http://www.sqlteam.com/article/using-bulk-insert-to-load-a-text-file
|
|
|
|
IF @fileType = 'DiesGroupRaw'
|
|
BEGIN
|
|
-- svuoto tabella temp
|
|
TRUNCATE TABLE tmp.DiesGroupRaw
|
|
|
|
-- carico dati bulk!
|
|
BULK INSERT tmp.DiesGroupRaw
|
|
FROM 'e:\test\DiesGroupRaw.csv'
|
|
WITH (FIELDTERMINATOR = ';', ROWTERMINATOR = '\n', FIRSTROW = 2, ERRORFILE = 'e:\test\errorDiesGroup.log')
|
|
--WITH (FIELDTERMINATOR = ';', ROWTERMINATOR = '\n', FIRSTROW = 2, ERRORFILE = 'e:\test\errorDiesGroup.log', CODEPAGE = '1252')
|
|
|
|
SELECT COUNT(*) as RecordsIn FROM tmp.DiesGroupRaw
|
|
|
|
END
|
|
|
|
END]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[tmp].[importDiesGroupRaw].[@fileType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[DiesGroupRaw]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[tmp].[importDiesGroupRaw].[@fileType]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA['DiesGroupRaw']]></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 Name="[tmp]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="230" />
|
|
<Property Name="Length" Value="1068" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="

-- =============================================
-- Author:		S.E. Locatelli
-- Create date: 2013.12.02
-- Description:	Procedura per import dati in tabella tmp da file csv
-- =============================================
CREATE PROCEDURE [tmp].[importDiesGroupRaw]
(
	 @fileType NVARCHAR(50) = 'DiesGroupRaw'
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[tmp].[importDiesRaw]">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
BEGIN
|
|
SET NOCOUNT ON;
|
|
|
|
-- per Giancarlo: rendere parametrico con esecuzione sql x poter inserire nei parametri il separatore ed il resto? http://www.sqlteam.com/article/using-bulk-insert-to-load-a-text-file
|
|
|
|
IF @fileType = 'DiesRaw'
|
|
BEGIN
|
|
-- svuoto tabella temp
|
|
TRUNCATE TABLE tmp.DiesRaw
|
|
|
|
-- carico dati bulk!
|
|
BULK INSERT tmp.DiesRaw
|
|
FROM 'e:\test\DiesRaw.csv'
|
|
WITH (FIELDTERMINATOR = ';', ROWTERMINATOR = '\n', FIRSTROW = 2, ERRORFILE = 'e:\test\errorDies.log')
|
|
--WITH (FIELDTERMINATOR = ';', ROWTERMINATOR = '\n', FIRSTROW = 2, ERRORFILE = 'e:\test\errorDies.log', CODEPAGE = '1252')
|
|
|
|
SELECT COUNT(*) as RecordsIn FROM tmp.DiesRaw
|
|
|
|
END
|
|
|
|
END]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[tmp].[importDiesRaw].[@fileType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[DiesRaw]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[tmp].[importDiesRaw].[@fileType]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA['DiesRaw']]></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 Name="[tmp]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="230" />
|
|
<Property Name="Length" Value="1023" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="

-- =============================================
-- Author:		S.E. Locatelli
-- Create date: 2013.12.02
-- Description:	Procedura per import dati in tabella tmp da file csv
-- =============================================
create PROCEDURE [tmp].[importDiesRaw]
(
	 @fileType NVARCHAR(50) = 'DiesRaw'
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[tmp].[importItemsRaw]">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
BEGIN
|
|
SET NOCOUNT ON;
|
|
|
|
-- per Giancarlo: rendere parametrico con esecuzione sql x poter inserire nei parametri il separatore ed il resto? http://www.sqlteam.com/article/using-bulk-insert-to-load-a-text-file
|
|
|
|
IF @fileType = 'ItemsRaw'
|
|
BEGIN
|
|
-- svuoto tabella temp
|
|
TRUNCATE TABLE tmp.ItemsRaw
|
|
|
|
-- carico dati bulk!
|
|
BULK INSERT tmp.ItemsRaw
|
|
FROM 'e:\test\ItemsRaw.csv'
|
|
WITH (FIELDTERMINATOR = ';', ROWTERMINATOR = '\n', FIRSTROW = 2, ERRORFILE = 'e:\test\errorItems.log')
|
|
--WITH (FIELDTERMINATOR = ';', ROWTERMINATOR = '\n', FIRSTROW = 2, ERRORFILE = 'e:\test\errorItems.log', CODEPAGE = '1252')
|
|
|
|
SELECT COUNT(*) as RecordsIn FROM tmp.ItemsRaw
|
|
|
|
END
|
|
|
|
END]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[tmp].[importItemsRaw].[@fileType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ItemsRaw]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[tmp].[importItemsRaw].[@fileType]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA['ItemsRaw']]></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 Name="[tmp]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="230" />
|
|
<Property Name="Length" Value="1032" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="

-- =============================================
-- Author:		S.E. Locatelli
-- Create date: 2013.11.29
-- Description:	Procedura per import dati in tabella tmp da file csv
-- =============================================
CREATE PROCEDURE [tmp].[importItemsRaw]
(
	 @fileType NVARCHAR(50) = 'ItemsRaw'
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[tmp].[importPackagRaw]">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
BEGIN
|
|
SET NOCOUNT ON;
|
|
|
|
-- per Giancarlo: rendere parametrico con esecuzione sql x poter inserire nei parametri il separatore ed il resto? http://www.sqlteam.com/article/using-bulk-insert-to-load-a-text-file
|
|
|
|
IF @fileType = 'PackagRaw'
|
|
BEGIN
|
|
-- svuoto tabella temp
|
|
TRUNCATE TABLE tmp.PackagRaw
|
|
|
|
-- carico dati bulk!
|
|
BULK INSERT tmp.PackagRaw
|
|
FROM 'e:\test\PackagRaw.csv'
|
|
WITH (FIELDTERMINATOR = ';', ROWTERMINATOR = '\n', FIRSTROW = 2, ERRORFILE = 'e:\test\errorPackag.log')
|
|
--WITH (FIELDTERMINATOR = ';', ROWTERMINATOR = '\n', FIRSTROW = 2, ERRORFILE = 'e:\test\errorPackag.log', CODEPAGE = '1252')
|
|
|
|
SELECT COUNT(*) as RecordsIn FROM tmp.PackagRaw
|
|
|
|
END
|
|
|
|
END]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[tmp].[importPackagRaw].[@fileType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[PackagRaw]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[tmp].[importPackagRaw].[@fileType]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA['PackagRaw']]></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 Name="[tmp]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="230" />
|
|
<Property Name="Length" Value="1041" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="

-- =============================================
-- Author:		S.E. Locatelli
-- Create date: 2013.11.29
-- Description:	Procedura per import dati in tabella tmp da file csv
-- =============================================
create PROCEDURE [tmp].[importPackagRaw]
(
	 @fileType NVARCHAR(50) = 'PackagRaw'
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[tmp].[importProductionLogRaw]">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
BEGIN
|
|
SET NOCOUNT ON;
|
|
|
|
-- per Giancarlo: rendere parametrico con esecuzione sql x poter inserire nei parametri il separatore ed il resto? http://www.sqlteam.com/article/using-bulk-insert-to-load-a-text-file
|
|
|
|
IF @fileType = 'ProductionLogRaw'
|
|
BEGIN
|
|
-- svuoto tabella temp
|
|
TRUNCATE TABLE tmp.ProductionLogRaw
|
|
|
|
-- carico dati bulk!
|
|
BULK INSERT tmp.ProductionLogRaw
|
|
FROM 'e:\test\ProductRaw.csv'
|
|
|
|
WITH (FIELDTERMINATOR = ';', ROWTERMINATOR = '\n', FIRSTROW = 2, ERRORFILE = 'e:\test\errorProduct.log')
|
|
--WITH (FIELDTERMINATOR = ';', ROWTERMINATOR = '\n', FIRSTROW = 2, ERRORFILE = 'e:\test\errorProduct.log', CODEPAGE = '1252')
|
|
|
|
-- ===============================================================================
|
|
-- pulisco l tabella dai record con chiave duplicata ( se doppi li elimino tutti )
|
|
-- ===============================================================================
|
|
SET XACT_ABORT ON;
|
|
BEGIN TRAN
|
|
|
|
-- salvo i dati con chiave duplicata
|
|
INSERT INTO tmp.ProductionLogRaw_KO
|
|
SELECT Prod.*, GETDATE() FROM tmp.ProductionLogRaw AS Prod
|
|
INNER JOIN
|
|
(
|
|
SELECT EventStart, EventEnd, CodPlant, ProcessNum, NrPos, CodDies
|
|
FROM tmp.ProductionLogRaw
|
|
GROUP BY EventStart, EventEnd, CodPlant, ProcessNum, NrPos, CodDies
|
|
HAVING COUNT(*)>1
|
|
) AS Dupl ON Prod.EventStart = Dupl.EventStart AND
|
|
Prod.EventEnd = Dupl.EventEnd AND
|
|
Prod.CodPlant = Dupl.CodPlant AND
|
|
Prod.ProcessNum = Dupl.ProcessNum AND
|
|
Prod.NrPos = Dupl.NrPos AND
|
|
Prod.CodDies = Dupl.CodDies
|
|
|
|
-- Cancello i record con chiave duplicata
|
|
DELETE Prod
|
|
WITH (TABLOCK)
|
|
FROM tmp.ProductionLogRaw AS Prod
|
|
INNER JOIN
|
|
(
|
|
SELECT EventStart, EventEnd, CodPlant, ProcessNum, NrPos, CodDies
|
|
FROM tmp.ProductionLogRaw
|
|
GROUP BY EventStart, EventEnd, CodPlant, ProcessNum, NrPos, CodDies
|
|
HAVING COUNT(*)>1
|
|
) AS Dupl ON Prod.EventStart = Dupl.EventStart AND
|
|
Prod.EventEnd = Dupl.EventEnd AND
|
|
Prod.CodPlant = Dupl.CodPlant AND
|
|
Prod.ProcessNum = Dupl.ProcessNum AND
|
|
Prod.NrPos = Dupl.NrPos AND
|
|
Prod.CodDies = Dupl.CodDies
|
|
|
|
-- ===============================================================================
|
|
-- pulisco la tabella dai record con date non corrette
|
|
-- ===============================================================================
|
|
DELETE FROM tmp.ProductionLogRaw
|
|
WITH (TABLOCK)
|
|
OUTPUT deleted.* INTO tmp.ProductionLogRaw_KO -- salvo i record cancellati in tabella KO
|
|
( EventStart, EventEnd, CodPlant, ProcessNum, NrPos, CodDies, CodClient, OrderNum, BatchNum, ProcessType, EventType, RawMat
|
|
, CodPackag, QtyIN, QtyOUT, QtyEXT, NumIN, NumOUT, QuotaPlant, QuotaMan, Tags, okPr, okQM, okSc, okDi )
|
|
WHERE EventStart >= EventEnd
|
|
OR CONVERT( BIGINT , EventStart ) + 68000000000000 <= EventEnd -- record che darebbero errore poi nel datediff > 68 anni
|
|
OR EventStart IS NULL
|
|
OR EventEnd IS NULL
|
|
|
|
-- SELECT * FROM tmp.ProductionLogRaw_KO
|
|
|
|
--ROLLBACK
|
|
COMMIT
|
|
|
|
SELECT COUNT(*) AS RecordsIn FROM tmp.ProductionLogRaw
|
|
|
|
END
|
|
END]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[tmp].[importProductionLogRaw].[@fileType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw_KO]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw].[EventStart]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw].[EventEnd]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw].[NrPos]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw].[CodDies]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw].[EventStart]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw].[EventStart]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw].[EventEnd]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw].[EventEnd]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw].[NrPos]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw].[NrPos]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw].[CodDies]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw].[CodDies]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw].[EventStart]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw].[EventEnd]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[bigint]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw_KO].[EventStart]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw_KO].[EventEnd]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw_KO].[CodPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw_KO].[ProcessNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw_KO].[NrPos]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw_KO].[CodDies]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw_KO].[CodClient]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw_KO].[OrderNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw_KO].[BatchNum]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw_KO].[ProcessType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw_KO].[EventType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw_KO].[RawMat]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw_KO].[CodPackag]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw_KO].[QtyIN]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw_KO].[QtyOUT]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw_KO].[QtyEXT]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw_KO].[NumIN]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw_KO].[NumOUT]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw_KO].[QuotaPlant]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw_KO].[QuotaMan]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw_KO].[Tags]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw_KO].[okPr]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw_KO].[okQM]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw_KO].[okSc]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[ProductionLogRaw_KO].[okDi]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[tmp].[importProductionLogRaw].[@fileType]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA['ProductionLogRaw']]></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 Name="[tmp]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="286" />
|
|
<Property Name="Length" Value="4604" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="



-- =============================================
-- Author:		S.E. Locatelli
-- Create date: 2013.11.28
-- Description:	Procedura per import dati in tabelal tmp da file csv
-- 
-- TRUNCATE TABLE tmp.ProductionLogRaw_KO
--
-- =============================================
CREATE PROCEDURE [tmp].[importProductionLogRaw]
(
	 @fileType NVARCHAR(50) = 'ProductionLogRaw'
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlProcedure" Name="[tmp].[importTranspCostRaw]">
|
|
<Property Name="BodyScript">
|
|
<Value><![CDATA[
|
|
BEGIN
|
|
SET NOCOUNT ON;
|
|
|
|
-- per Giancarlo: rendere parametrico con esecuzione sql x poter inserire nei parametri il separatore ed il resto? http://www.sqlteam.com/article/using-bulk-insert-to-load-a-text-file
|
|
|
|
IF @fileType = 'TranspCostRaw'
|
|
BEGIN
|
|
-- svuoto tabella temp
|
|
TRUNCATE TABLE tmp.TranspCostRaw
|
|
|
|
-- carico dati bulk!
|
|
BULK INSERT tmp.TranspCostRaw
|
|
FROM 'e:\test\TranspCostRaw.csv'
|
|
WITH (FIELDTERMINATOR = ';', ROWTERMINATOR = '\n', FIRSTROW = 2, ERRORFILE = 'e:\test\errorTranspCost.log')
|
|
--WITH (FIELDTERMINATOR = ';', ROWTERMINATOR = '\n', FIRSTROW = 2, ERRORFILE = 'e:\test\errorTranspCost.log', CODEPAGE = '1252')
|
|
|
|
SELECT COUNT(*) as RecordsIn FROM tmp.TranspCostRaw
|
|
|
|
END
|
|
|
|
END]]></Value>
|
|
</Property>
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="BodyDependencies">
|
|
<Entry>
|
|
<References Name="[tmp].[importTranspCostRaw].[@fileType]" />
|
|
</Entry>
|
|
<Entry>
|
|
<References Name="[tmp].[TranspCostRaw]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Parameters">
|
|
<Entry>
|
|
<Element Type="SqlSubroutineParameter" Name="[tmp].[importTranspCostRaw].[@fileType]">
|
|
<Property Name="DefaultExpressionScript">
|
|
<Value><![CDATA['TranspCostRaw']]></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 Name="[tmp]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="230" />
|
|
<Property Name="Length" Value="1077" />
|
|
<Property Name="StartLine" Value="1" />
|
|
<Property Name="StartColumn" Value="1" />
|
|
<Property Name="HeaderContents" Value="

-- =============================================
-- Author:		S.E. Locatelli
-- Create date: 2014.01.16
-- Description:	Procedura per import dati in tabella tmp da file csv
-- =============================================
create PROCEDURE [tmp].[importTranspCostRaw]
(
	 @fileType NVARCHAR(50) = 'TranspCostRaw'
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[tmp].[ItemsRaw]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[tmp].[ItemsRaw].[CodItem]">
|
|
<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="[tmp].[ItemsRaw].[ItemDescr]">
|
|
<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>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[tmp].[ItemsRaw].[UnitWeight]">
|
|
<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="[tmp].[ItemsRaw].[CodPlant]">
|
|
<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="[tmp].[ItemsRaw].[CodItemGroup]">
|
|
<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="[tmp].[ItemsRaw].[Class01]">
|
|
<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="211" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[tmp].[ItemsRaw].[Class02]">
|
|
<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="212" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[tmp].[ItemsRaw].[Class03]">
|
|
<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="213" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[tmp].[ItemsRaw].[Class04]">
|
|
<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="214" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[tmp].[ItemsRaw].[Class05]">
|
|
<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="215" />
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References Name="[tmp]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[tmp].[PackagRaw]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[tmp].[PackagRaw].[CodPackag]">
|
|
<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="[tmp].[PackagRaw].[PackagDesc]">
|
|
<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>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[tmp].[PackagRaw].[RMCost]">
|
|
<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="[tmp].[PackagRaw].[RMWeight]">
|
|
<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="[tmp].[PackagRaw].[Tare]">
|
|
<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="[tmp].[PackagRaw].[FullWeight]">
|
|
<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 Name="[tmp]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlPrimaryKeyConstraint" Name="[tmp].[PK_ExtFieldsFilter]">
|
|
<Relationship Name="ColumnSpecifications">
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[tmp].[ExcludeCondFilter].[TableName]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlIndexedColumnSpecification">
|
|
<Relationship Name="Column">
|
|
<Entry>
|
|
<References Name="[tmp].[ExcludeCondFilter].[FieldName]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="DefiningTable">
|
|
<Entry>
|
|
<References Name="[tmp].[ExcludeCondFilter]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="228" />
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[tmp].[ProductionLogRaw]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[tmp].[ProductionLogRaw].[EventStart]">
|
|
<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="[tmp].[ProductionLogRaw].[EventEnd]">
|
|
<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="[tmp].[ProductionLogRaw].[CodPlant]">
|
|
<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="[tmp].[ProductionLogRaw].[ProcessNum]">
|
|
<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="[tmp].[ProductionLogRaw].[NrPos]">
|
|
<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="221" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[tmp].[ProductionLogRaw].[CodDies]">
|
|
<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="[tmp].[ProductionLogRaw].[CodClient]">
|
|
<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="[tmp].[ProductionLogRaw].[OrderNum]">
|
|
<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="[tmp].[ProductionLogRaw].[BatchNum]">
|
|
<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="[tmp].[ProductionLogRaw].[ProcessType]">
|
|
<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="[tmp].[ProductionLogRaw].[EventType]">
|
|
<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="[tmp].[ProductionLogRaw].[RawMat]">
|
|
<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="[tmp].[ProductionLogRaw].[CodPackag]">
|
|
<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="[tmp].[ProductionLogRaw].[QtyIN]">
|
|
<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="[tmp].[ProductionLogRaw].[QtyOUT]">
|
|
<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="[tmp].[ProductionLogRaw].[QtyEXT]">
|
|
<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="[tmp].[ProductionLogRaw].[NumIN]">
|
|
<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="[tmp].[ProductionLogRaw].[NumOUT]">
|
|
<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="[tmp].[ProductionLogRaw].[QuotaPlant]">
|
|
<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="[tmp].[ProductionLogRaw].[QuotaMan]">
|
|
<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="[tmp].[ProductionLogRaw].[Tags]">
|
|
<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>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[tmp].[ProductionLogRaw].[okPr]">
|
|
<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="224" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[tmp].[ProductionLogRaw].[okQM]">
|
|
<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="225" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[tmp].[ProductionLogRaw].[okSc]">
|
|
<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="226" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[tmp].[ProductionLogRaw].[okDi]">
|
|
<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="223" />
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References Name="[tmp]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[tmp].[ProductionLogRaw_KO]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[tmp].[ProductionLogRaw_KO].[EventStart]">
|
|
<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="[tmp].[ProductionLogRaw_KO].[EventEnd]">
|
|
<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="[tmp].[ProductionLogRaw_KO].[CodPlant]">
|
|
<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="[tmp].[ProductionLogRaw_KO].[ProcessNum]">
|
|
<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="[tmp].[ProductionLogRaw_KO].[NrPos]">
|
|
<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="222" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[tmp].[ProductionLogRaw_KO].[CodDies]">
|
|
<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="[tmp].[ProductionLogRaw_KO].[CodClient]">
|
|
<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="[tmp].[ProductionLogRaw_KO].[OrderNum]">
|
|
<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="[tmp].[ProductionLogRaw_KO].[BatchNum]">
|
|
<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="[tmp].[ProductionLogRaw_KO].[ProcessType]">
|
|
<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="[tmp].[ProductionLogRaw_KO].[EventType]">
|
|
<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="[tmp].[ProductionLogRaw_KO].[RawMat]">
|
|
<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="[tmp].[ProductionLogRaw_KO].[CodPackag]">
|
|
<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="[tmp].[ProductionLogRaw_KO].[QtyIN]">
|
|
<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="[tmp].[ProductionLogRaw_KO].[QtyOUT]">
|
|
<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="[tmp].[ProductionLogRaw_KO].[QtyEXT]">
|
|
<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="[tmp].[ProductionLogRaw_KO].[NumIN]">
|
|
<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="[tmp].[ProductionLogRaw_KO].[NumOUT]">
|
|
<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="[tmp].[ProductionLogRaw_KO].[QuotaPlant]">
|
|
<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="[tmp].[ProductionLogRaw_KO].[QuotaMan]">
|
|
<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="[tmp].[ProductionLogRaw_KO].[Tags]">
|
|
<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>
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[tmp].[ProductionLogRaw_KO].[okPr]">
|
|
<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="218" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[tmp].[ProductionLogRaw_KO].[okQM]">
|
|
<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="219" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[tmp].[ProductionLogRaw_KO].[okSc]">
|
|
<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="220" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[tmp].[ProductionLogRaw_KO].[okDi]">
|
|
<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="217" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[tmp].[ProductionLogRaw_KO].[ImportDate]">
|
|
<Relationship Name="TypeSpecifier">
|
|
<Entry>
|
|
<Element Type="SqlTypeSpecifier">
|
|
<Relationship Name="Type">
|
|
<Entry>
|
|
<References ExternalSource="BuiltIns" Name="[datetime]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<AttachedAnnotation Disambiguator="216" />
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References Name="[tmp]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[tmp].[ProductionLogRaw_old]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[tmp].[ProductionLogRaw_old].[EventStart]">
|
|
<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="[tmp].[ProductionLogRaw_old].[EventEnd]">
|
|
<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="[tmp].[ProductionLogRaw_old].[CodPlant]">
|
|
<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="[tmp].[ProductionLogRaw_old].[ProcessNum]">
|
|
<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="[tmp].[ProductionLogRaw_old].[NrPos]">
|
|
<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="[tmp].[ProductionLogRaw_old].[CodDies]">
|
|
<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="[tmp].[ProductionLogRaw_old].[CodClient]">
|
|
<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="[tmp].[ProductionLogRaw_old].[OrderNum]">
|
|
<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="[tmp].[ProductionLogRaw_old].[BatchNum]">
|
|
<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="[tmp].[ProductionLogRaw_old].[ProcessType]">
|
|
<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="[tmp].[ProductionLogRaw_old].[EventType]">
|
|
<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="[tmp].[ProductionLogRaw_old].[RawMat]">
|
|
<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="[tmp].[ProductionLogRaw_old].[CodPackag]">
|
|
<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="[tmp].[ProductionLogRaw_old].[QtyIN]">
|
|
<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="[tmp].[ProductionLogRaw_old].[QtyOUT]">
|
|
<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="[tmp].[ProductionLogRaw_old].[QtyEXT]">
|
|
<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="[tmp].[ProductionLogRaw_old].[NumIN]">
|
|
<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="[tmp].[ProductionLogRaw_old].[NumOUT]">
|
|
<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="[tmp].[ProductionLogRaw_old].[QuotaPlant]">
|
|
<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="[tmp].[ProductionLogRaw_old].[QuotaMan]">
|
|
<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="[tmp].[ProductionLogRaw_old].[Tags]">
|
|
<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>
|
|
</Element>
|
|
</Entry>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References Name="[tmp]" />
|
|
</Entry>
|
|
</Relationship>
|
|
</Element>
|
|
<Element Type="SqlTable" Name="[tmp].[TranspCostRaw]">
|
|
<Property Name="IsAnsiNullsOn" Value="True" />
|
|
<Relationship Name="Columns">
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[tmp].[TranspCostRaw].[TranspZone]">
|
|
<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="227" />
|
|
</Element>
|
|
</Entry>
|
|
<Entry>
|
|
<Element Type="SqlSimpleColumn" Name="[tmp].[TranspCostRaw].[TranspCost]">
|
|
<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 Name="[tmp]" />
|
|
</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_insNewLemma]">
|
|
<Property Name="BodyScript">
|
|
<Value><![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="[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>
|
|
</Relationship>
|
|
<Relationship Name="Schema">
|
|
<Entry>
|
|
<References Name="[voc]" />
|
|
</Entry>
|
|
</Relationship>
|
|
<Annotation Type="SysCommentsObjectAnnotation">
|
|
<Property Name="CreateOffset" Value="214" />
|
|
<Property Name="Length" Value="582" />
|
|
<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 [voc].[stp_insNewLemma]
(
	@lemma		NVARCHAR(50),
	@traduzione NVARCHAR(500)
)
AS" />
|
|
</Annotation>
|
|
</Element>
|
|
</Model>
|
|
</DataSchemaModel> |