cdad2bfd80
- librerie esterne - elenco quotes - ricalcolo MANCA creazione new quotes con condizioni e mostrare dato ben formattato
253 lines
15 KiB
XML
253 lines
15 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Schema Namespace="Proxima_C2PModel" Alias="Self" p1:UseStrongSpatialTypes="false" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns:p1="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm">
|
|
<EntityContainer Name="Proxima_C2PEntities" p1:LazyLoadingEnabled="true">
|
|
<EntitySet Name="QuoteLists" EntityType="Proxima_C2PModel.QuoteList" />
|
|
<EntitySet Name="QuoteOCs" EntityType="Proxima_C2PModel.QuoteOC" />
|
|
<EntitySet Name="QuoteParams" EntityType="Proxima_C2PModel.QuoteParam" />
|
|
<EntitySet Name="QuoteRMs" EntityType="Proxima_C2PModel.QuoteRM" />
|
|
<EntitySet Name="QuoteWorkExts" EntityType="Proxima_C2PModel.QuoteWorkExt" />
|
|
<EntitySet Name="QuoteWorkInts" EntityType="Proxima_C2PModel.QuoteWorkInt" />
|
|
<AssociationSet Name="FK_QuoteExtra_QuoteList" Association="Proxima_C2PModel.FK_QuoteExtra_QuoteList">
|
|
<End Role="QuoteList" EntitySet="QuoteLists" />
|
|
<End Role="QuoteOC" EntitySet="QuoteOCs" />
|
|
</AssociationSet>
|
|
<AssociationSet Name="FK_QuoteParam_QuoteList" Association="Proxima_C2PModel.FK_QuoteParam_QuoteList">
|
|
<End Role="QuoteList" EntitySet="QuoteLists" />
|
|
<End Role="QuoteParam" EntitySet="QuoteParams" />
|
|
</AssociationSet>
|
|
<AssociationSet Name="FK_QuoteRM_QuoteList" Association="Proxima_C2PModel.FK_QuoteRM_QuoteList">
|
|
<End Role="QuoteList" EntitySet="QuoteLists" />
|
|
<End Role="QuoteRM" EntitySet="QuoteRMs" />
|
|
</AssociationSet>
|
|
<AssociationSet Name="FK_QuoteWorkExt_QuoteList" Association="Proxima_C2PModel.FK_QuoteWorkExt_QuoteList">
|
|
<End Role="QuoteList" EntitySet="QuoteLists" />
|
|
<End Role="QuoteWorkExt" EntitySet="QuoteWorkExts" />
|
|
</AssociationSet>
|
|
<AssociationSet Name="FK_QuoteWorkInt_QuoteList" Association="Proxima_C2PModel.FK_QuoteWorkInt_QuoteList">
|
|
<End Role="QuoteList" EntitySet="QuoteLists" />
|
|
<End Role="QuoteWorkInt" EntitySet="QuoteWorkInts" />
|
|
</AssociationSet>
|
|
<FunctionImport Name="stp_QL_update">
|
|
<Parameter Name="QuoteType" Mode="In" Type="String" />
|
|
<Parameter Name="CodQuote" Mode="In" Type="Int64" />
|
|
<Parameter Name="QuoteRev" Mode="In" Type="Int32" />
|
|
</FunctionImport>
|
|
</EntityContainer>
|
|
<EntityType Name="QuoteList">
|
|
<Key>
|
|
<PropertyRef Name="QuoteType" />
|
|
<PropertyRef Name="CodQuote" />
|
|
<PropertyRef Name="QuoteRev" />
|
|
</Key>
|
|
<Property Name="QuoteType" Type="String" Nullable="false" MaxLength="1" Unicode="false" FixedLength="true" />
|
|
<Property Name="CodQuote" Type="Int64" Nullable="false" />
|
|
<Property Name="QuoteRev" Type="Int32" Nullable="false" />
|
|
<Property Name="CodClient" Type="String" Nullable="false" MaxLength="50" Unicode="true" FixedLength="false" />
|
|
<Property Name="CodItem" Type="String" Nullable="false" MaxLength="50" Unicode="true" FixedLength="false" />
|
|
<Property Name="CodItemGroup" Type="String" Nullable="false" MaxLength="50" Unicode="true" FixedLength="false" />
|
|
<Property Name="RawMat" Type="String" Nullable="false" MaxLength="50" Unicode="true" FixedLength="false" />
|
|
<Property Name="UnitWeight" Type="Decimal" Nullable="false" Precision="9" Scale="3" />
|
|
<Property Name="BatchQty" Type="Int32" Nullable="false" />
|
|
<Property Name="CodInco" Type="String" Nullable="false" MaxLength="5" Unicode="true" FixedLength="false" />
|
|
<Property Name="KeyAM" Type="String" Nullable="false" MaxLength="101" Unicode="true" FixedLength="false" p1:StoreGeneratedPattern="Computed" />
|
|
<Property Name="Note" Type="String" Nullable="false" MaxLength="2500" Unicode="true" FixedLength="false" />
|
|
<NavigationProperty Name="QuoteOCs" Relationship="Proxima_C2PModel.FK_QuoteExtra_QuoteList" FromRole="QuoteList" ToRole="QuoteOC" />
|
|
<NavigationProperty Name="QuoteParams" Relationship="Proxima_C2PModel.FK_QuoteParam_QuoteList" FromRole="QuoteList" ToRole="QuoteParam" />
|
|
<NavigationProperty Name="QuoteRMs" Relationship="Proxima_C2PModel.FK_QuoteRM_QuoteList" FromRole="QuoteList" ToRole="QuoteRM" />
|
|
<NavigationProperty Name="QuoteWorkExts" Relationship="Proxima_C2PModel.FK_QuoteWorkExt_QuoteList" FromRole="QuoteList" ToRole="QuoteWorkExt" />
|
|
<NavigationProperty Name="QuoteWorkInts" Relationship="Proxima_C2PModel.FK_QuoteWorkInt_QuoteList" FromRole="QuoteList" ToRole="QuoteWorkInt" />
|
|
</EntityType>
|
|
<EntityType Name="QuoteOC">
|
|
<Key>
|
|
<PropertyRef Name="QuoteType" />
|
|
<PropertyRef Name="CodQuote" />
|
|
<PropertyRef Name="QuoteRev" />
|
|
<PropertyRef Name="NumEx" />
|
|
</Key>
|
|
<Property Name="QuoteType" Type="String" Nullable="false" MaxLength="1" Unicode="false" FixedLength="true" />
|
|
<Property Name="CodQuote" Type="Int64" Nullable="false" />
|
|
<Property Name="QuoteRev" Type="Int32" Nullable="false" />
|
|
<Property Name="NumEx" Type="Int32" Nullable="false" />
|
|
<Property Name="ProcessNum" Type="String" Nullable="false" MaxLength="50" Unicode="true" FixedLength="false" />
|
|
<Property Name="CodPlant" Type="String" Nullable="false" MaxLength="50" Unicode="true" FixedLength="false" />
|
|
<Property Name="Class01" Type="String" Nullable="false" MaxLength="50" Unicode="true" FixedLength="false" />
|
|
<Property Name="Class02" Type="String" Nullable="false" MaxLength="50" Unicode="true" FixedLength="false" />
|
|
<Property Name="Class03" Type="String" Nullable="false" MaxLength="50" Unicode="true" FixedLength="false" />
|
|
<Property Name="Class04" Type="String" Nullable="false" MaxLength="50" Unicode="true" FixedLength="false" />
|
|
<Property Name="Class05" Type="String" Nullable="false" MaxLength="50" Unicode="true" FixedLength="false" />
|
|
<Property Name="TotQty" Type="Decimal" Nullable="false" Precision="18" Scale="6" />
|
|
<Property Name="TotCost" Type="Decimal" Nullable="false" Precision="18" Scale="6" />
|
|
<Property Name="Quota" Type="Decimal" Nullable="false" Precision="18" Scale="6" />
|
|
<Property Name="C4UG" Type="Decimal" Precision="38" Scale="7" p1:StoreGeneratedPattern="Computed" />
|
|
<Property Name="valid" Type="Boolean" Nullable="false" />
|
|
<NavigationProperty Name="QuoteList" Relationship="Proxima_C2PModel.FK_QuoteExtra_QuoteList" FromRole="QuoteOC" ToRole="QuoteList" />
|
|
</EntityType>
|
|
<EntityType Name="QuoteParam">
|
|
<Key>
|
|
<PropertyRef Name="QuoteType" />
|
|
<PropertyRef Name="CodQuote" />
|
|
<PropertyRef Name="QuoteRev" />
|
|
<PropertyRef Name="NumP" />
|
|
</Key>
|
|
<Property Name="QuoteType" Type="String" Nullable="false" MaxLength="1" Unicode="false" FixedLength="true" />
|
|
<Property Name="CodQuote" Type="Int64" Nullable="false" />
|
|
<Property Name="QuoteRev" Type="Int32" Nullable="false" />
|
|
<Property Name="NumP" Type="Int32" Nullable="false" />
|
|
<Property Name="ProcessNum" Type="String" Nullable="false" MaxLength="50" Unicode="true" FixedLength="false" />
|
|
<Property Name="Descr" Type="String" Nullable="false" MaxLength="50" Unicode="true" FixedLength="false" />
|
|
<Property Name="Parameter" Type="String" Nullable="false" MaxLength="100" Unicode="true" FixedLength="false" />
|
|
<NavigationProperty Name="QuoteList" Relationship="Proxima_C2PModel.FK_QuoteParam_QuoteList" FromRole="QuoteParam" ToRole="QuoteList" />
|
|
</EntityType>
|
|
<EntityType Name="QuoteRM">
|
|
<Key>
|
|
<PropertyRef Name="QuoteType" />
|
|
<PropertyRef Name="CodQuote" />
|
|
<PropertyRef Name="QuoteRev" />
|
|
<PropertyRef Name="NumRM" />
|
|
</Key>
|
|
<Property Name="QuoteType" Type="String" Nullable="false" MaxLength="1" Unicode="false" FixedLength="true" />
|
|
<Property Name="CodQuote" Type="Int64" Nullable="false" />
|
|
<Property Name="QuoteRev" Type="Int32" Nullable="false" />
|
|
<Property Name="NumRM" Type="Int32" Nullable="false" />
|
|
<Property Name="RawMat" Type="String" Nullable="false" MaxLength="50" Unicode="true" FixedLength="false" />
|
|
<Property Name="RawMatCost" Type="Decimal" Nullable="false" Precision="18" Scale="6" />
|
|
<Property Name="RawMatExtraCost" Type="Decimal" Nullable="false" Precision="18" Scale="6" />
|
|
<Property Name="CodPackag" Type="String" Nullable="false" MaxLength="50" Unicode="true" FixedLength="false" />
|
|
<Property Name="FCR" Type="Decimal" Nullable="false" Precision="18" Scale="6" />
|
|
<Property Name="FYR" Type="Decimal" Precision="26" Scale="19" p1:StoreGeneratedPattern="Computed" />
|
|
<Property Name="FSR" Type="Decimal" Precision="27" Scale="19" p1:StoreGeneratedPattern="Computed" />
|
|
<Property Name="valid" Type="Boolean" Nullable="false" />
|
|
<NavigationProperty Name="QuoteList" Relationship="Proxima_C2PModel.FK_QuoteRM_QuoteList" FromRole="QuoteRM" ToRole="QuoteList" />
|
|
</EntityType>
|
|
<EntityType Name="QuoteWorkExt">
|
|
<Key>
|
|
<PropertyRef Name="QuoteType" />
|
|
<PropertyRef Name="CodQuote" />
|
|
<PropertyRef Name="QuoteRev" />
|
|
<PropertyRef Name="NumWE" />
|
|
</Key>
|
|
<Property Name="QuoteType" Type="String" Nullable="false" MaxLength="1" Unicode="false" FixedLength="true" />
|
|
<Property Name="CodQuote" Type="Int64" Nullable="false" />
|
|
<Property Name="QuoteRev" Type="Int32" Nullable="false" />
|
|
<Property Name="NumWE" Type="Int32" Nullable="false" />
|
|
<Property Name="EWC4UG" Type="Decimal" Nullable="false" Precision="9" Scale="6" />
|
|
<Property Name="UM" Type="String" Nullable="false" MaxLength="50" Unicode="true" FixedLength="false" />
|
|
<Property Name="valid" Type="Boolean" Nullable="false" />
|
|
<NavigationProperty Name="QuoteList" Relationship="Proxima_C2PModel.FK_QuoteWorkExt_QuoteList" FromRole="QuoteWorkExt" ToRole="QuoteList" />
|
|
</EntityType>
|
|
<EntityType Name="QuoteWorkInt">
|
|
<Key>
|
|
<PropertyRef Name="QuoteType" />
|
|
<PropertyRef Name="CodQuote" />
|
|
<PropertyRef Name="QuoteRev" />
|
|
<PropertyRef Name="NumWI" />
|
|
</Key>
|
|
<Property Name="QuoteType" Type="String" Nullable="false" MaxLength="1" Unicode="false" FixedLength="true" />
|
|
<Property Name="CodQuote" Type="Int64" Nullable="false" />
|
|
<Property Name="QuoteRev" Type="Int32" Nullable="false" />
|
|
<Property Name="NumWI" Type="Int32" Nullable="false" />
|
|
<Property Name="ProcessNum" Type="String" Nullable="false" MaxLength="50" Unicode="true" FixedLength="false" />
|
|
<Property Name="CodPlant" Type="String" Nullable="false" MaxLength="50" Unicode="true" FixedLength="false" />
|
|
<Property Name="Class01" Type="String" Nullable="false" MaxLength="50" Unicode="true" FixedLength="false" />
|
|
<Property Name="Class02" Type="String" Nullable="false" MaxLength="50" Unicode="true" FixedLength="false" />
|
|
<Property Name="Class03" Type="String" Nullable="false" MaxLength="50" Unicode="true" FixedLength="false" />
|
|
<Property Name="Class04" Type="String" Nullable="false" MaxLength="50" Unicode="true" FixedLength="false" />
|
|
<Property Name="Class05" Type="String" Nullable="false" MaxLength="50" Unicode="true" FixedLength="false" />
|
|
<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" p1:StoreGeneratedPattern="Computed" />
|
|
<Property Name="MYR" Type="Decimal" Precision="10" Scale="8" p1:StoreGeneratedPattern="Computed" />
|
|
<Property Name="DYR" Type="Decimal" Precision="10" Scale="8" p1:StoreGeneratedPattern="Computed" />
|
|
<Property Name="WCR" Type="Decimal" Precision="20" Scale="11" p1:StoreGeneratedPattern="Computed" />
|
|
<Property Name="MCR" Type="Decimal" Precision="20" Scale="11" p1:StoreGeneratedPattern="Computed" />
|
|
<Property Name="DCR" Type="Decimal" Precision="20" Scale="11" p1:StoreGeneratedPattern="Computed" />
|
|
<Property Name="valid" Type="Boolean" Nullable="false" />
|
|
<NavigationProperty Name="QuoteList" Relationship="Proxima_C2PModel.FK_QuoteWorkInt_QuoteList" FromRole="QuoteWorkInt" ToRole="QuoteList" />
|
|
</EntityType>
|
|
<Association Name="FK_QuoteExtra_QuoteList">
|
|
<End Role="QuoteList" Type="Proxima_C2PModel.QuoteList" Multiplicity="1" />
|
|
<End Role="QuoteOC" Type="Proxima_C2PModel.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.QuoteList" Multiplicity="1" />
|
|
<End Role="QuoteParam" Type="Proxima_C2PModel.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.QuoteList" Multiplicity="1" />
|
|
<End Role="QuoteRM" Type="Proxima_C2PModel.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.QuoteList" Multiplicity="1" />
|
|
<End Role="QuoteWorkExt" Type="Proxima_C2PModel.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.QuoteList" Multiplicity="1" />
|
|
<End Role="QuoteWorkInt" Type="Proxima_C2PModel.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>
|
|
</Schema> |