cdad2bfd80
- librerie esterne - elenco quotes - ricalcolo MANCA creazione new quotes con condizioni e mostrare dato ben formattato
243 lines
13 KiB
XML
243 lines
13 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Schema Namespace="Proxima_C2PModel.Store" Alias="Self" Provider="System.Data.SqlClient" ProviderManifestToken="2008" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
|
|
<EntityContainer Name="Proxima_C2PModelStoreContainer">
|
|
<EntitySet Name="QuoteList" EntityType="Proxima_C2PModel.Store.QuoteList" store:Type="Tables" Schema="dbo" />
|
|
<EntitySet Name="QuoteOC" EntityType="Proxima_C2PModel.Store.QuoteOC" store:Type="Tables" Schema="dbo" />
|
|
<EntitySet Name="QuoteParam" EntityType="Proxima_C2PModel.Store.QuoteParam" store:Type="Tables" Schema="dbo" />
|
|
<EntitySet Name="QuoteRM" EntityType="Proxima_C2PModel.Store.QuoteRM" store:Type="Tables" Schema="dbo" />
|
|
<EntitySet Name="QuoteWorkExt" EntityType="Proxima_C2PModel.Store.QuoteWorkExt" store:Type="Tables" Schema="dbo" />
|
|
<EntitySet Name="QuoteWorkInt" EntityType="Proxima_C2PModel.Store.QuoteWorkInt" store:Type="Tables" Schema="dbo" />
|
|
<AssociationSet Name="FK_QuoteExtra_QuoteList" Association="Proxima_C2PModel.Store.FK_QuoteExtra_QuoteList">
|
|
<End Role="QuoteList" EntitySet="QuoteList" />
|
|
<End Role="QuoteOC" EntitySet="QuoteOC" />
|
|
</AssociationSet>
|
|
<AssociationSet Name="FK_QuoteParam_QuoteList" Association="Proxima_C2PModel.Store.FK_QuoteParam_QuoteList">
|
|
<End Role="QuoteList" EntitySet="QuoteList" />
|
|
<End Role="QuoteParam" EntitySet="QuoteParam" />
|
|
</AssociationSet>
|
|
<AssociationSet Name="FK_QuoteRM_QuoteList" Association="Proxima_C2PModel.Store.FK_QuoteRM_QuoteList">
|
|
<End Role="QuoteList" EntitySet="QuoteList" />
|
|
<End Role="QuoteRM" EntitySet="QuoteRM" />
|
|
</AssociationSet>
|
|
<AssociationSet Name="FK_QuoteWorkExt_QuoteList" Association="Proxima_C2PModel.Store.FK_QuoteWorkExt_QuoteList">
|
|
<End Role="QuoteList" EntitySet="QuoteList" />
|
|
<End Role="QuoteWorkExt" EntitySet="QuoteWorkExt" />
|
|
</AssociationSet>
|
|
<AssociationSet Name="FK_QuoteWorkInt_QuoteList" Association="Proxima_C2PModel.Store.FK_QuoteWorkInt_QuoteList">
|
|
<End Role="QuoteList" EntitySet="QuoteList" />
|
|
<End Role="QuoteWorkInt" EntitySet="QuoteWorkInt" />
|
|
</AssociationSet>
|
|
</EntityContainer>
|
|
<EntityType Name="QuoteList">
|
|
<Key>
|
|
<PropertyRef Name="QuoteType" />
|
|
<PropertyRef Name="CodQuote" />
|
|
<PropertyRef Name="QuoteRev" />
|
|
</Key>
|
|
<Property Name="QuoteType" Type="char" Nullable="false" MaxLength="1" />
|
|
<Property Name="CodQuote" Type="bigint" Nullable="false" />
|
|
<Property Name="QuoteRev" Type="int" Nullable="false" />
|
|
<Property Name="CodClient" Type="nvarchar" Nullable="false" MaxLength="50" />
|
|
<Property Name="CodItem" Type="nvarchar" Nullable="false" MaxLength="50" />
|
|
<Property Name="CodItemGroup" Type="nvarchar" Nullable="false" MaxLength="50" />
|
|
<Property Name="RawMat" Type="nvarchar" Nullable="false" MaxLength="50" />
|
|
<Property Name="UnitWeight" Type="decimal" Nullable="false" Precision="9" Scale="3" />
|
|
<Property Name="BatchQty" Type="int" Nullable="false" />
|
|
<Property Name="CodInco" Type="nvarchar" Nullable="false" MaxLength="5" />
|
|
<Property Name="KeyAM" Type="nvarchar" Nullable="false" MaxLength="101" StoreGeneratedPattern="Computed" />
|
|
<Property Name="Note" Type="nvarchar" Nullable="false" MaxLength="2500" />
|
|
</EntityType>
|
|
<EntityType Name="QuoteOC">
|
|
<Key>
|
|
<PropertyRef Name="QuoteType" />
|
|
<PropertyRef Name="CodQuote" />
|
|
<PropertyRef Name="QuoteRev" />
|
|
<PropertyRef Name="NumEx" />
|
|
</Key>
|
|
<Property Name="QuoteType" Type="char" Nullable="false" MaxLength="1" />
|
|
<Property Name="CodQuote" Type="bigint" Nullable="false" />
|
|
<Property Name="QuoteRev" Type="int" Nullable="false" />
|
|
<Property Name="NumEx" Type="int" Nullable="false" />
|
|
<Property Name="ProcessNum" Type="nvarchar" Nullable="false" MaxLength="50" />
|
|
<Property Name="CodPlant" Type="nvarchar" Nullable="false" MaxLength="50" />
|
|
<Property Name="Class01" Type="nvarchar" Nullable="false" MaxLength="50" />
|
|
<Property Name="Class02" Type="nvarchar" Nullable="false" MaxLength="50" />
|
|
<Property Name="Class03" Type="nvarchar" Nullable="false" MaxLength="50" />
|
|
<Property Name="Class04" Type="nvarchar" Nullable="false" MaxLength="50" />
|
|
<Property Name="Class05" Type="nvarchar" Nullable="false" MaxLength="50" />
|
|
<Property Name="TotQty" Type="decimal" Nullable="false" Scale="6" />
|
|
<Property Name="TotCost" Type="decimal" Nullable="false" Scale="6" />
|
|
<Property Name="Quota" Type="decimal" Nullable="false" Scale="6" />
|
|
<Property Name="C4UG" Type="decimal" Precision="38" Scale="7" StoreGeneratedPattern="Computed" />
|
|
<Property Name="valid" Type="bit" Nullable="false" />
|
|
</EntityType>
|
|
<EntityType Name="QuoteParam">
|
|
<Key>
|
|
<PropertyRef Name="QuoteType" />
|
|
<PropertyRef Name="CodQuote" />
|
|
<PropertyRef Name="QuoteRev" />
|
|
<PropertyRef Name="NumP" />
|
|
</Key>
|
|
<Property Name="QuoteType" Type="char" Nullable="false" MaxLength="1" />
|
|
<Property Name="CodQuote" Type="bigint" Nullable="false" />
|
|
<Property Name="QuoteRev" Type="int" Nullable="false" />
|
|
<Property Name="NumP" Type="int" Nullable="false" />
|
|
<Property Name="ProcessNum" Type="nvarchar" Nullable="false" MaxLength="50" />
|
|
<Property Name="Descr" Type="nvarchar" Nullable="false" MaxLength="50" />
|
|
<Property Name="Parameter" Type="nvarchar" Nullable="false" MaxLength="100" />
|
|
</EntityType>
|
|
<EntityType Name="QuoteRM">
|
|
<Key>
|
|
<PropertyRef Name="QuoteType" />
|
|
<PropertyRef Name="CodQuote" />
|
|
<PropertyRef Name="QuoteRev" />
|
|
<PropertyRef Name="NumRM" />
|
|
</Key>
|
|
<Property Name="QuoteType" Type="char" Nullable="false" MaxLength="1" />
|
|
<Property Name="CodQuote" Type="bigint" Nullable="false" />
|
|
<Property Name="QuoteRev" Type="int" Nullable="false" />
|
|
<Property Name="NumRM" Type="int" Nullable="false" />
|
|
<Property Name="RawMat" Type="nvarchar" Nullable="false" MaxLength="50" />
|
|
<Property Name="RawMatCost" Type="decimal" Nullable="false" Scale="6" />
|
|
<Property Name="RawMatExtraCost" Type="decimal" Nullable="false" Scale="6" />
|
|
<Property Name="CodPackag" Type="nvarchar" Nullable="false" MaxLength="50" />
|
|
<Property Name="FCR" Type="decimal" Nullable="false" Scale="6" />
|
|
<Property Name="FYR" Type="decimal" Precision="26" Scale="19" StoreGeneratedPattern="Computed" />
|
|
<Property Name="FSR" Type="decimal" Precision="27" Scale="19" StoreGeneratedPattern="Computed" />
|
|
<Property Name="valid" Type="bit" Nullable="false" />
|
|
</EntityType>
|
|
<EntityType Name="QuoteWorkExt">
|
|
<Key>
|
|
<PropertyRef Name="QuoteType" />
|
|
<PropertyRef Name="CodQuote" />
|
|
<PropertyRef Name="QuoteRev" />
|
|
<PropertyRef Name="NumWE" />
|
|
</Key>
|
|
<Property Name="QuoteType" Type="char" Nullable="false" MaxLength="1" />
|
|
<Property Name="CodQuote" Type="bigint" Nullable="false" />
|
|
<Property Name="QuoteRev" Type="int" Nullable="false" />
|
|
<Property Name="NumWE" Type="int" Nullable="false" />
|
|
<Property Name="EWC4UG" Type="decimal" Nullable="false" Precision="9" Scale="6" />
|
|
<Property Name="UM" Type="nvarchar" Nullable="false" MaxLength="50" />
|
|
<Property Name="valid" Type="bit" Nullable="false" />
|
|
</EntityType>
|
|
<EntityType Name="QuoteWorkInt">
|
|
<Key>
|
|
<PropertyRef Name="QuoteType" />
|
|
<PropertyRef Name="CodQuote" />
|
|
<PropertyRef Name="QuoteRev" />
|
|
<PropertyRef Name="NumWI" />
|
|
</Key>
|
|
<Property Name="QuoteType" Type="char" Nullable="false" MaxLength="1" />
|
|
<Property Name="CodQuote" Type="bigint" Nullable="false" />
|
|
<Property Name="QuoteRev" Type="int" Nullable="false" />
|
|
<Property Name="NumWI" Type="int" Nullable="false" />
|
|
<Property Name="ProcessNum" Type="nvarchar" Nullable="false" MaxLength="50" />
|
|
<Property Name="CodPlant" Type="nvarchar" Nullable="false" MaxLength="50" />
|
|
<Property Name="Class01" Type="nvarchar" Nullable="false" MaxLength="50" />
|
|
<Property Name="Class02" Type="nvarchar" Nullable="false" MaxLength="50" />
|
|
<Property Name="Class03" Type="nvarchar" Nullable="false" MaxLength="50" />
|
|
<Property Name="Class04" Type="nvarchar" Nullable="false" MaxLength="50" />
|
|
<Property Name="Class05" Type="nvarchar" Nullable="false" MaxLength="50" />
|
|
<Property Name="NetProd" Type="decimal" Nullable="false" Precision="9" Scale="3" />
|
|
<Property Name="WSR" Type="decimal" Nullable="false" Precision="9" Scale="8" />
|
|
<Property Name="MSR" Type="decimal" Nullable="false" Precision="9" Scale="8" />
|
|
<Property Name="DSR" Type="decimal" Nullable="false" Precision="9" Scale="8" />
|
|
<Property Name="FC4UG" Type="decimal" Nullable="false" Precision="9" Scale="6" />
|
|
<Property Name="VC4UG" Type="decimal" Nullable="false" Precision="9" Scale="6" />
|
|
<Property Name="OH4UG" Type="decimal" Nullable="false" Precision="9" Scale="6" />
|
|
<Property Name="SC4UG" Type="decimal" Nullable="false" Precision="9" Scale="6" />
|
|
<Property Name="WYR" Type="decimal" Precision="10" Scale="8" StoreGeneratedPattern="Computed" />
|
|
<Property Name="MYR" Type="decimal" Precision="10" Scale="8" StoreGeneratedPattern="Computed" />
|
|
<Property Name="DYR" Type="decimal" Precision="10" Scale="8" StoreGeneratedPattern="Computed" />
|
|
<Property Name="WCR" Type="decimal" Precision="20" Scale="11" StoreGeneratedPattern="Computed" />
|
|
<Property Name="MCR" Type="decimal" Precision="20" Scale="11" StoreGeneratedPattern="Computed" />
|
|
<Property Name="DCR" Type="decimal" Precision="20" Scale="11" StoreGeneratedPattern="Computed" />
|
|
<Property Name="valid" Type="bit" Nullable="false" />
|
|
</EntityType>
|
|
<Association Name="FK_QuoteExtra_QuoteList">
|
|
<End Role="QuoteList" Type="Proxima_C2PModel.Store.QuoteList" Multiplicity="1" />
|
|
<End Role="QuoteOC" Type="Proxima_C2PModel.Store.QuoteOC" Multiplicity="*" />
|
|
<ReferentialConstraint>
|
|
<Principal Role="QuoteList">
|
|
<PropertyRef Name="QuoteType" />
|
|
<PropertyRef Name="CodQuote" />
|
|
<PropertyRef Name="QuoteRev" />
|
|
</Principal>
|
|
<Dependent Role="QuoteOC">
|
|
<PropertyRef Name="QuoteType" />
|
|
<PropertyRef Name="CodQuote" />
|
|
<PropertyRef Name="QuoteRev" />
|
|
</Dependent>
|
|
</ReferentialConstraint>
|
|
</Association>
|
|
<Association Name="FK_QuoteParam_QuoteList">
|
|
<End Role="QuoteList" Type="Proxima_C2PModel.Store.QuoteList" Multiplicity="1" />
|
|
<End Role="QuoteParam" Type="Proxima_C2PModel.Store.QuoteParam" Multiplicity="*" />
|
|
<ReferentialConstraint>
|
|
<Principal Role="QuoteList">
|
|
<PropertyRef Name="QuoteType" />
|
|
<PropertyRef Name="CodQuote" />
|
|
<PropertyRef Name="QuoteRev" />
|
|
</Principal>
|
|
<Dependent Role="QuoteParam">
|
|
<PropertyRef Name="QuoteType" />
|
|
<PropertyRef Name="CodQuote" />
|
|
<PropertyRef Name="QuoteRev" />
|
|
</Dependent>
|
|
</ReferentialConstraint>
|
|
</Association>
|
|
<Association Name="FK_QuoteRM_QuoteList">
|
|
<End Role="QuoteList" Type="Proxima_C2PModel.Store.QuoteList" Multiplicity="1" />
|
|
<End Role="QuoteRM" Type="Proxima_C2PModel.Store.QuoteRM" Multiplicity="*" />
|
|
<ReferentialConstraint>
|
|
<Principal Role="QuoteList">
|
|
<PropertyRef Name="QuoteType" />
|
|
<PropertyRef Name="CodQuote" />
|
|
<PropertyRef Name="QuoteRev" />
|
|
</Principal>
|
|
<Dependent Role="QuoteRM">
|
|
<PropertyRef Name="QuoteType" />
|
|
<PropertyRef Name="CodQuote" />
|
|
<PropertyRef Name="QuoteRev" />
|
|
</Dependent>
|
|
</ReferentialConstraint>
|
|
</Association>
|
|
<Association Name="FK_QuoteWorkExt_QuoteList">
|
|
<End Role="QuoteList" Type="Proxima_C2PModel.Store.QuoteList" Multiplicity="1" />
|
|
<End Role="QuoteWorkExt" Type="Proxima_C2PModel.Store.QuoteWorkExt" Multiplicity="*" />
|
|
<ReferentialConstraint>
|
|
<Principal Role="QuoteList">
|
|
<PropertyRef Name="QuoteType" />
|
|
<PropertyRef Name="CodQuote" />
|
|
<PropertyRef Name="QuoteRev" />
|
|
</Principal>
|
|
<Dependent Role="QuoteWorkExt">
|
|
<PropertyRef Name="QuoteType" />
|
|
<PropertyRef Name="CodQuote" />
|
|
<PropertyRef Name="QuoteRev" />
|
|
</Dependent>
|
|
</ReferentialConstraint>
|
|
</Association>
|
|
<Association Name="FK_QuoteWorkInt_QuoteList">
|
|
<End Role="QuoteList" Type="Proxima_C2PModel.Store.QuoteList" Multiplicity="1" />
|
|
<End Role="QuoteWorkInt" Type="Proxima_C2PModel.Store.QuoteWorkInt" Multiplicity="*" />
|
|
<ReferentialConstraint>
|
|
<Principal Role="QuoteList">
|
|
<PropertyRef Name="QuoteType" />
|
|
<PropertyRef Name="CodQuote" />
|
|
<PropertyRef Name="QuoteRev" />
|
|
</Principal>
|
|
<Dependent Role="QuoteWorkInt">
|
|
<PropertyRef Name="QuoteType" />
|
|
<PropertyRef Name="CodQuote" />
|
|
<PropertyRef Name="QuoteRev" />
|
|
</Dependent>
|
|
</ReferentialConstraint>
|
|
</Association>
|
|
<Function Name="stp_QL_update" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
|
|
<Parameter Name="QuoteType" Type="char" Mode="In" />
|
|
<Parameter Name="CodQuote" Type="bigint" Mode="In" />
|
|
<Parameter Name="QuoteRev" Type="int" Mode="In" />
|
|
</Function>
|
|
</Schema> |