Prima release con tutti i files del progetto con:

- librerie esterne
- elenco quotes
- ricalcolo

MANCA creazione new quotes con condizioni e mostrare dato ben formattato
This commit is contained in:
Samuele E. Locatelli
2014-01-23 18:17:26 +01:00
parent 02f942d719
commit cdad2bfd80
505 changed files with 739460 additions and 0 deletions
@@ -0,0 +1,15 @@
C:\Users\samuele\Documents\Visual Studio 2012\Projects\C2P\C2P_Data\bin\Debug\C2P_Data.dll
C:\Users\samuele\Documents\Visual Studio 2012\Projects\C2P\C2P_Data\bin\Debug\C2P_Data.pdb
C:\Users\samuele\Documents\Visual Studio 2012\Projects\C2P\C2P_Data\obj\Debug\C2P_Data.csprojResolveAssemblyReference.cache
C:\Users\samuele\Documents\Visual Studio 2012\Projects\C2P\C2P_Data\obj\Debug\C2P_Data.dll
C:\Users\samuele\Documents\Visual Studio 2012\Projects\C2P\C2P_Data\obj\Debug\C2P_Data.pdb
C:\Users\samuele\Documents\Visual Studio 2012\Projects\C2P\C2P_Data\bin\Debug\C2P_Data.dll.config
C:\Users\samuele\Documents\Visual Studio 2012\Projects\C2P\C2P_Data\bin\Debug\EntityFramework.dll
C:\Users\samuele\Documents\Visual Studio 2012\Projects\C2P\C2P_Data\bin\Debug\EntityFramework.xml
C:\Users\samuele\Documents\Visual Studio 2012\Projects\C2P\C2P_Data\bin\Debug\EntityFramework.SqlServer.dll
C:\Users\samuele\Documents\Visual Studio 2012\Projects\C2P\C2P_Data\bin\Debug\EntityFramework.SqlServer.xml
C:\Users\samuele\Documents\Visual Studio 2012\Projects\C2P\C2P_Data\bin\Debug\SteamWare.dll
C:\Users\samuele\Documents\Visual Studio 2012\Projects\C2P\C2P_Data\bin\Debug\Flesk.ViewState.dll
C:\Users\samuele\Documents\Visual Studio 2012\Projects\C2P\C2P_Data\bin\Debug\ICSharpCode.SharpZipLib.dll
C:\Users\samuele\Documents\Visual Studio 2012\Projects\C2P\C2P_Data\bin\Debug\SteamWare.pdb
C:\Users\samuele\Documents\Visual Studio 2012\Projects\C2P\C2P_Data\bin\Debug\SteamWare.xml
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,253 @@
<?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>
@@ -0,0 +1,122 @@
<?xml version="1.0" encoding="utf-8"?>
<Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
<EntityContainerMapping StorageEntityContainer="Proxima_C2PModelStoreContainer" CdmEntityContainer="Proxima_C2PEntities">
<EntitySetMapping Name="QuoteLists">
<EntityTypeMapping TypeName="Proxima_C2PModel.QuoteList">
<MappingFragment StoreEntitySet="QuoteList">
<ScalarProperty Name="QuoteType" ColumnName="QuoteType" />
<ScalarProperty Name="CodQuote" ColumnName="CodQuote" />
<ScalarProperty Name="QuoteRev" ColumnName="QuoteRev" />
<ScalarProperty Name="CodClient" ColumnName="CodClient" />
<ScalarProperty Name="CodItem" ColumnName="CodItem" />
<ScalarProperty Name="CodItemGroup" ColumnName="CodItemGroup" />
<ScalarProperty Name="RawMat" ColumnName="RawMat" />
<ScalarProperty Name="UnitWeight" ColumnName="UnitWeight" />
<ScalarProperty Name="BatchQty" ColumnName="BatchQty" />
<ScalarProperty Name="CodInco" ColumnName="CodInco" />
<ScalarProperty Name="KeyAM" ColumnName="KeyAM" />
<ScalarProperty Name="Note" ColumnName="Note" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="QuoteOCs">
<EntityTypeMapping TypeName="Proxima_C2PModel.QuoteOC">
<MappingFragment StoreEntitySet="QuoteOC">
<ScalarProperty Name="QuoteType" ColumnName="QuoteType" />
<ScalarProperty Name="CodQuote" ColumnName="CodQuote" />
<ScalarProperty Name="QuoteRev" ColumnName="QuoteRev" />
<ScalarProperty Name="NumEx" ColumnName="NumEx" />
<ScalarProperty Name="ProcessNum" ColumnName="ProcessNum" />
<ScalarProperty Name="CodPlant" ColumnName="CodPlant" />
<ScalarProperty Name="Class01" ColumnName="Class01" />
<ScalarProperty Name="Class02" ColumnName="Class02" />
<ScalarProperty Name="Class03" ColumnName="Class03" />
<ScalarProperty Name="Class04" ColumnName="Class04" />
<ScalarProperty Name="Class05" ColumnName="Class05" />
<ScalarProperty Name="TotQty" ColumnName="TotQty" />
<ScalarProperty Name="TotCost" ColumnName="TotCost" />
<ScalarProperty Name="Quota" ColumnName="Quota" />
<ScalarProperty Name="C4UG" ColumnName="C4UG" />
<ScalarProperty Name="valid" ColumnName="valid" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="QuoteParams">
<EntityTypeMapping TypeName="Proxima_C2PModel.QuoteParam">
<MappingFragment StoreEntitySet="QuoteParam">
<ScalarProperty Name="QuoteType" ColumnName="QuoteType" />
<ScalarProperty Name="CodQuote" ColumnName="CodQuote" />
<ScalarProperty Name="QuoteRev" ColumnName="QuoteRev" />
<ScalarProperty Name="NumP" ColumnName="NumP" />
<ScalarProperty Name="ProcessNum" ColumnName="ProcessNum" />
<ScalarProperty Name="Descr" ColumnName="Descr" />
<ScalarProperty Name="Parameter" ColumnName="Parameter" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="QuoteRMs">
<EntityTypeMapping TypeName="Proxima_C2PModel.QuoteRM">
<MappingFragment StoreEntitySet="QuoteRM">
<ScalarProperty Name="QuoteType" ColumnName="QuoteType" />
<ScalarProperty Name="CodQuote" ColumnName="CodQuote" />
<ScalarProperty Name="QuoteRev" ColumnName="QuoteRev" />
<ScalarProperty Name="NumRM" ColumnName="NumRM" />
<ScalarProperty Name="RawMat" ColumnName="RawMat" />
<ScalarProperty Name="RawMatCost" ColumnName="RawMatCost" />
<ScalarProperty Name="RawMatExtraCost" ColumnName="RawMatExtraCost" />
<ScalarProperty Name="CodPackag" ColumnName="CodPackag" />
<ScalarProperty Name="FCR" ColumnName="FCR" />
<ScalarProperty Name="FYR" ColumnName="FYR" />
<ScalarProperty Name="FSR" ColumnName="FSR" />
<ScalarProperty Name="valid" ColumnName="valid" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="QuoteWorkExts">
<EntityTypeMapping TypeName="Proxima_C2PModel.QuoteWorkExt">
<MappingFragment StoreEntitySet="QuoteWorkExt">
<ScalarProperty Name="QuoteType" ColumnName="QuoteType" />
<ScalarProperty Name="CodQuote" ColumnName="CodQuote" />
<ScalarProperty Name="QuoteRev" ColumnName="QuoteRev" />
<ScalarProperty Name="NumWE" ColumnName="NumWE" />
<ScalarProperty Name="EWC4UG" ColumnName="EWC4UG" />
<ScalarProperty Name="UM" ColumnName="UM" />
<ScalarProperty Name="valid" ColumnName="valid" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="QuoteWorkInts">
<EntityTypeMapping TypeName="Proxima_C2PModel.QuoteWorkInt">
<MappingFragment StoreEntitySet="QuoteWorkInt">
<ScalarProperty Name="QuoteType" ColumnName="QuoteType" />
<ScalarProperty Name="CodQuote" ColumnName="CodQuote" />
<ScalarProperty Name="QuoteRev" ColumnName="QuoteRev" />
<ScalarProperty Name="NumWI" ColumnName="NumWI" />
<ScalarProperty Name="ProcessNum" ColumnName="ProcessNum" />
<ScalarProperty Name="CodPlant" ColumnName="CodPlant" />
<ScalarProperty Name="Class01" ColumnName="Class01" />
<ScalarProperty Name="Class02" ColumnName="Class02" />
<ScalarProperty Name="Class03" ColumnName="Class03" />
<ScalarProperty Name="Class04" ColumnName="Class04" />
<ScalarProperty Name="Class05" ColumnName="Class05" />
<ScalarProperty Name="NetProd" ColumnName="NetProd" />
<ScalarProperty Name="WSR" ColumnName="WSR" />
<ScalarProperty Name="MSR" ColumnName="MSR" />
<ScalarProperty Name="DSR" ColumnName="DSR" />
<ScalarProperty Name="FC4UG" ColumnName="FC4UG" />
<ScalarProperty Name="VC4UG" ColumnName="VC4UG" />
<ScalarProperty Name="OH4UG" ColumnName="OH4UG" />
<ScalarProperty Name="SC4UG" ColumnName="SC4UG" />
<ScalarProperty Name="WYR" ColumnName="WYR" />
<ScalarProperty Name="MYR" ColumnName="MYR" />
<ScalarProperty Name="DYR" ColumnName="DYR" />
<ScalarProperty Name="WCR" ColumnName="WCR" />
<ScalarProperty Name="MCR" ColumnName="MCR" />
<ScalarProperty Name="DCR" ColumnName="DCR" />
<ScalarProperty Name="valid" ColumnName="valid" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<FunctionImportMapping FunctionImportName="stp_QL_update" FunctionName="Proxima_C2PModel.Store.stp_QL_update" />
</EntityContainerMapping>
</Mapping>
@@ -0,0 +1,243 @@
<?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>