642 lines
35 KiB
XML
642 lines
35 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<edmx:Edmx Version="3.0" xmlns:edmx="http://schemas.microsoft.com/ado/2009/11/edmx">
|
|
<!-- EF Runtime content -->
|
|
<edmx:Runtime>
|
|
<!-- SSDL content -->
|
|
<edmx:StorageModels>
|
|
<Schema Namespace="StockManModel.Store" Provider="System.Data.SqlClient" ProviderManifestToken="2012" Alias="Self" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
|
|
<EntityType Name="Item">
|
|
<Key>
|
|
<PropertyRef Name="ID" />
|
|
</Key>
|
|
<Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
<Property Name="Descr" Type="nvarchar" MaxLength="250" Nullable="false" />
|
|
<Property Name="CodInt" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
<Property Name="ItemFamilyID" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
<Property Name="CodExt" Type="nvarchar" MaxLength="250" Nullable="false" />
|
|
<Property Name="DescrExt" Type="nvarchar" MaxLength="250" Nullable="false" />
|
|
<Property Name="QtaMin" Type="int" Nullable="false" />
|
|
<Property Name="QtaBatch" Type="int" Nullable="false" />
|
|
<Property Name="CurrValue" Type="decimal" Precision="18" Scale="6" Nullable="false" />
|
|
<Property Name="QtaCurr" Type="int" StoreGeneratedPattern="Computed" />
|
|
<Property Name="QtaPend" Type="int" StoreGeneratedPattern="Computed" />
|
|
</EntityType>
|
|
<EntityType Name="ItemFamily">
|
|
<Key>
|
|
<PropertyRef Name="ID" />
|
|
</Key>
|
|
<Property Name="ID" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
<Property Name="Descr" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
</EntityType>
|
|
<EntityType Name="ItemFlux">
|
|
<Key>
|
|
<PropertyRef Name="ID" />
|
|
</Key>
|
|
<Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
<Property Name="ItemID" Type="int" Nullable="false" />
|
|
<Property Name="LocationID" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
<Property Name="MovTypeID" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
<Property Name="ExtLocationID" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
<Property Name="dtMov" Type="date" Nullable="false" />
|
|
<Property Name="Qta" Type="int" Nullable="false" />
|
|
<Property Name="TotValue" Type="decimal" Precision="18" Scale="6" Nullable="false" />
|
|
<Property Name="UnitVal" Type="decimal" Precision="29" Scale="17" StoreGeneratedPattern="Computed" Nullable="false" />
|
|
<Property Name="OperatorID" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
<Property Name="Note" Type="nvarchar" MaxLength="250" Nullable="false" />
|
|
<Property Name="dtExport" Type="date" />
|
|
</EntityType>
|
|
<EntityType Name="ItemStock">
|
|
<Key>
|
|
<PropertyRef Name="ID" />
|
|
</Key>
|
|
<Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
<Property Name="ItemID" Type="int" Nullable="false" />
|
|
<Property Name="LocationID" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
<Property Name="QtyConf" Type="int" Nullable="false" />
|
|
<Property Name="Note" Type="nvarchar(max)" Nullable="false" />
|
|
<Property Name="dtLastUpd" Type="datetime" Nullable="false" />
|
|
</EntityType>
|
|
<EntityType Name="Location">
|
|
<Key>
|
|
<PropertyRef Name="ID" />
|
|
</Key>
|
|
<Property Name="ID" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
<Property Name="Descr" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
<Property Name="LocTypeID" Type="varchar" MaxLength="50" Nullable="false" />
|
|
</EntityType>
|
|
<EntityType Name="LocType">
|
|
<Key>
|
|
<PropertyRef Name="ID" />
|
|
</Key>
|
|
<Property Name="ID" Type="varchar" MaxLength="50" Nullable="false" />
|
|
<Property Name="Descr" Type="nvarchar" MaxLength="250" Nullable="false" />
|
|
<Property Name="IsStock" Type="bit" Nullable="false" />
|
|
<Property Name="IsCli" Type="bit" Nullable="false" />
|
|
<Property Name="IsFor" Type="bit" Nullable="false" />
|
|
</EntityType>
|
|
<EntityType Name="MovType">
|
|
<Key>
|
|
<PropertyRef Name="ID" />
|
|
</Key>
|
|
<Property Name="ID" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
<Property Name="Descr" Type="nvarchar" MaxLength="250" Nullable="false" />
|
|
<Property Name="CssClass" Type="nvarchar" MaxLength="50" />
|
|
</EntityType>
|
|
<EntityType Name="Operator">
|
|
<Key>
|
|
<PropertyRef Name="ID" />
|
|
</Key>
|
|
<Property Name="ID" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
<Property Name="CodExt" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
<Property Name="LastName" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
<Property Name="FirstName" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
</EntityType>
|
|
<!--Errori trovati durante la generazione:
|
|
avviso 6002: Nessuna chiave primaria definita per la tabella/visualizzazione 'StockMan.dbo.vItemStockStatus'. La chiave è stata dedotta e la definizione è stata creata come tabella/visualizzazione di sola lettura.-->
|
|
<Association Name="FK_Item_ItemFamily">
|
|
<End Role="ItemFamily" Type="Self.ItemFamily" Multiplicity="1" />
|
|
<End Role="Item" Type="Self.Item" Multiplicity="*" />
|
|
<ReferentialConstraint>
|
|
<Principal Role="ItemFamily">
|
|
<PropertyRef Name="ID" />
|
|
</Principal>
|
|
<Dependent Role="Item">
|
|
<PropertyRef Name="ItemFamilyID" />
|
|
</Dependent>
|
|
</ReferentialConstraint>
|
|
</Association>
|
|
<Association Name="FK_ItemFlux_Item">
|
|
<End Role="Item" Type="Self.Item" Multiplicity="1" />
|
|
<End Role="ItemFlux" Type="Self.ItemFlux" Multiplicity="*" />
|
|
<ReferentialConstraint>
|
|
<Principal Role="Item">
|
|
<PropertyRef Name="ID" />
|
|
</Principal>
|
|
<Dependent Role="ItemFlux">
|
|
<PropertyRef Name="ItemID" />
|
|
</Dependent>
|
|
</ReferentialConstraint>
|
|
</Association>
|
|
<Association Name="FK_ItemFlux_Location">
|
|
<End Role="Location" Type="Self.Location" Multiplicity="1" />
|
|
<End Role="ItemFlux" Type="Self.ItemFlux" Multiplicity="*" />
|
|
<ReferentialConstraint>
|
|
<Principal Role="Location">
|
|
<PropertyRef Name="ID" />
|
|
</Principal>
|
|
<Dependent Role="ItemFlux">
|
|
<PropertyRef Name="LocationID" />
|
|
</Dependent>
|
|
</ReferentialConstraint>
|
|
</Association>
|
|
<Association Name="FK_ItemFlux_Location1">
|
|
<End Role="Location" Type="Self.Location" Multiplicity="1" />
|
|
<End Role="ItemFlux" Type="Self.ItemFlux" Multiplicity="*" />
|
|
<ReferentialConstraint>
|
|
<Principal Role="Location">
|
|
<PropertyRef Name="ID" />
|
|
</Principal>
|
|
<Dependent Role="ItemFlux">
|
|
<PropertyRef Name="ExtLocationID" />
|
|
</Dependent>
|
|
</ReferentialConstraint>
|
|
</Association>
|
|
<Association Name="FK_ItemFlux_Operator">
|
|
<End Role="Operator" Type="Self.Operator" Multiplicity="1" />
|
|
<End Role="ItemFlux" Type="Self.ItemFlux" Multiplicity="*" />
|
|
<ReferentialConstraint>
|
|
<Principal Role="Operator">
|
|
<PropertyRef Name="ID" />
|
|
</Principal>
|
|
<Dependent Role="ItemFlux">
|
|
<PropertyRef Name="OperatorID" />
|
|
</Dependent>
|
|
</ReferentialConstraint>
|
|
</Association>
|
|
<Association Name="FK_Location_LocType1">
|
|
<End Role="LocType" Type="Self.LocType" Multiplicity="1" />
|
|
<End Role="Location" Type="Self.Location" Multiplicity="*" />
|
|
<ReferentialConstraint>
|
|
<Principal Role="LocType">
|
|
<PropertyRef Name="ID" />
|
|
</Principal>
|
|
<Dependent Role="Location">
|
|
<PropertyRef Name="LocTypeID" />
|
|
</Dependent>
|
|
</ReferentialConstraint>
|
|
</Association>
|
|
<Association Name="FK_Stock_Items">
|
|
<End Role="Item" Type="Self.Item" Multiplicity="1" />
|
|
<End Role="ItemStock" Type="Self.ItemStock" Multiplicity="*" />
|
|
<ReferentialConstraint>
|
|
<Principal Role="Item">
|
|
<PropertyRef Name="ID" />
|
|
</Principal>
|
|
<Dependent Role="ItemStock">
|
|
<PropertyRef Name="ItemID" />
|
|
</Dependent>
|
|
</ReferentialConstraint>
|
|
</Association>
|
|
<Association Name="FK_Stock_Location1">
|
|
<End Role="Location" Type="Self.Location" Multiplicity="1" />
|
|
<End Role="ItemStock" Type="Self.ItemStock" Multiplicity="*" />
|
|
<ReferentialConstraint>
|
|
<Principal Role="Location">
|
|
<PropertyRef Name="ID" />
|
|
</Principal>
|
|
<Dependent Role="ItemStock">
|
|
<PropertyRef Name="LocationID" />
|
|
</Dependent>
|
|
</ReferentialConstraint>
|
|
</Association>
|
|
<Association Name="FK_StockMov_MovType">
|
|
<End Role="MovType" Type="Self.MovType" Multiplicity="1" />
|
|
<End Role="ItemFlux" Type="Self.ItemFlux" Multiplicity="*" />
|
|
<ReferentialConstraint>
|
|
<Principal Role="MovType">
|
|
<PropertyRef Name="ID" />
|
|
</Principal>
|
|
<Dependent Role="ItemFlux">
|
|
<PropertyRef Name="MovTypeID" />
|
|
</Dependent>
|
|
</ReferentialConstraint>
|
|
</Association>
|
|
<Function Name="stp_consolidateItem" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
|
|
<Parameter Name="ItemID" Type="int" Mode="In" />
|
|
</Function>
|
|
<EntityContainer Name="StockManModelStoreContainer">
|
|
<EntitySet Name="Item" EntityType="Self.Item" Schema="dbo" store:Type="Tables" />
|
|
<EntitySet Name="ItemFamily" EntityType="Self.ItemFamily" Schema="dbo" store:Type="Tables" />
|
|
<EntitySet Name="ItemFlux" EntityType="Self.ItemFlux" Schema="dbo" store:Type="Tables" />
|
|
<EntitySet Name="ItemStock" EntityType="Self.ItemStock" Schema="dbo" store:Type="Tables" />
|
|
<EntitySet Name="Location" EntityType="Self.Location" Schema="dbo" store:Type="Tables" />
|
|
<EntitySet Name="LocType" EntityType="Self.LocType" Schema="dbo" store:Type="Tables" />
|
|
<EntitySet Name="MovType" EntityType="Self.MovType" Schema="dbo" store:Type="Tables" />
|
|
<EntitySet Name="Operator" EntityType="Self.Operator" Schema="dbo" store:Type="Tables" />
|
|
<AssociationSet Name="FK_Item_ItemFamily" Association="Self.FK_Item_ItemFamily">
|
|
<End Role="ItemFamily" EntitySet="ItemFamily" />
|
|
<End Role="Item" EntitySet="Item" />
|
|
</AssociationSet>
|
|
<AssociationSet Name="FK_ItemFlux_Item" Association="Self.FK_ItemFlux_Item">
|
|
<End Role="Item" EntitySet="Item" />
|
|
<End Role="ItemFlux" EntitySet="ItemFlux" />
|
|
</AssociationSet>
|
|
<AssociationSet Name="FK_ItemFlux_Location" Association="Self.FK_ItemFlux_Location">
|
|
<End Role="Location" EntitySet="Location" />
|
|
<End Role="ItemFlux" EntitySet="ItemFlux" />
|
|
</AssociationSet>
|
|
<AssociationSet Name="FK_ItemFlux_Location1" Association="Self.FK_ItemFlux_Location1">
|
|
<End Role="Location" EntitySet="Location" />
|
|
<End Role="ItemFlux" EntitySet="ItemFlux" />
|
|
</AssociationSet>
|
|
<AssociationSet Name="FK_ItemFlux_Operator" Association="Self.FK_ItemFlux_Operator">
|
|
<End Role="Operator" EntitySet="Operator" />
|
|
<End Role="ItemFlux" EntitySet="ItemFlux" />
|
|
</AssociationSet>
|
|
<AssociationSet Name="FK_Location_LocType1" Association="Self.FK_Location_LocType1">
|
|
<End Role="LocType" EntitySet="LocType" />
|
|
<End Role="Location" EntitySet="Location" />
|
|
</AssociationSet>
|
|
<AssociationSet Name="FK_Stock_Items" Association="Self.FK_Stock_Items">
|
|
<End Role="Item" EntitySet="Item" />
|
|
<End Role="ItemStock" EntitySet="ItemStock" />
|
|
</AssociationSet>
|
|
<AssociationSet Name="FK_Stock_Location1" Association="Self.FK_Stock_Location1">
|
|
<End Role="Location" EntitySet="Location" />
|
|
<End Role="ItemStock" EntitySet="ItemStock" />
|
|
</AssociationSet>
|
|
<AssociationSet Name="FK_StockMov_MovType" Association="Self.FK_StockMov_MovType">
|
|
<End Role="MovType" EntitySet="MovType" />
|
|
<End Role="ItemFlux" EntitySet="ItemFlux" />
|
|
</AssociationSet>
|
|
</EntityContainer>
|
|
</Schema></edmx:StorageModels>
|
|
<!-- CSDL content -->
|
|
<edmx:ConceptualModels>
|
|
<Schema Namespace="StockManModel" Alias="Self" annotation:UseStrongSpatialTypes="false" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm">
|
|
<EntityType Name="ItemFlux">
|
|
<Key>
|
|
<PropertyRef Name="ID" />
|
|
</Key>
|
|
<Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
<Property Name="ItemID" Type="Int32" Nullable="false" />
|
|
<Property Name="LocationID" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
<Property Name="MovTypeID" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
<Property Name="ExtLocationID" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
<Property Name="dtMov" Type="DateTime" Nullable="false" Precision="0" />
|
|
<Property Name="Qta" Type="Int32" Nullable="false" />
|
|
<Property Name="TotValue" Type="Decimal" Precision="18" Scale="6" Nullable="false" />
|
|
<Property Name="UnitVal" Type="Decimal" Precision="29" Scale="17" annotation:StoreGeneratedPattern="Computed" Nullable="false" />
|
|
<Property Name="Note" Type="String" MaxLength="250" FixedLength="false" Unicode="true" Nullable="false" />
|
|
<Property Name="dtExport" Type="DateTime" Precision="0" />
|
|
<NavigationProperty Name="Location" Relationship="Self.FK_ItemFlux_Location" FromRole="ItemFlux" ToRole="Location" />
|
|
<NavigationProperty Name="MovType" Relationship="Self.FK_StockMov_MovType" FromRole="ItemFlux" ToRole="MovType" />
|
|
<NavigationProperty Name="Item" Relationship="StockManModel.FK_ItemFlux_Item" FromRole="ItemFlux" ToRole="Item" />
|
|
<Property Name="OperatorID" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
<NavigationProperty Name="Operator" Relationship="StockManModel.FK_ItemFlux_Operator" FromRole="ItemFlux" ToRole="Operator" />
|
|
<NavigationProperty Name="Location1" Relationship="StockManModel.FK_ItemFlux_Location1" FromRole="ItemFlux" ToRole="Location" />
|
|
</EntityType>
|
|
<EntityType Name="ItemStock">
|
|
<Key>
|
|
<PropertyRef Name="ID" />
|
|
</Key>
|
|
<Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
<Property Name="ItemID" Type="Int32" Nullable="false" />
|
|
<Property Name="LocationID" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
<Property Name="QtyConf" Type="Int32" Nullable="false" />
|
|
<Property Name="Note" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
|
|
<Property Name="dtLastUpd" Type="DateTime" Nullable="false" Precision="3" />
|
|
<NavigationProperty Name="Location" Relationship="Self.FK_Stock_Location1" FromRole="ItemStock" ToRole="Location" />
|
|
<NavigationProperty Name="Item" Relationship="StockManModel.FK_Stock_Items" FromRole="ItemStock" ToRole="Item" />
|
|
</EntityType>
|
|
<EntityType Name="Location">
|
|
<Key>
|
|
<PropertyRef Name="ID" />
|
|
</Key>
|
|
<Property Name="ID" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
<Property Name="Descr" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
<Property Name="LocTypeID" Type="String" MaxLength="50" FixedLength="false" Unicode="false" Nullable="false" />
|
|
<NavigationProperty Name="ItemFlux" Relationship="Self.FK_ItemFlux_Location" FromRole="Location" ToRole="ItemFlux" />
|
|
<NavigationProperty Name="ItemStock" Relationship="Self.FK_Stock_Location1" FromRole="Location" ToRole="ItemStock" />
|
|
<NavigationProperty Name="LocType" Relationship="Self.FK_Location_LocType1" FromRole="Location" ToRole="LocType" />
|
|
<NavigationProperty Name="ItemFlux1" Relationship="StockManModel.FK_ItemFlux_Location1" FromRole="Location" ToRole="ItemFlux" />
|
|
</EntityType>
|
|
<EntityType Name="LocType">
|
|
<Key>
|
|
<PropertyRef Name="ID" />
|
|
</Key>
|
|
<Property Name="ID" Type="String" MaxLength="50" FixedLength="false" Unicode="false" Nullable="false" />
|
|
<Property Name="Descr" Type="String" MaxLength="250" FixedLength="false" Unicode="true" Nullable="false" />
|
|
<Property Name="IsStock" Type="Boolean" Nullable="false" />
|
|
<Property Name="IsCli" Type="Boolean" Nullable="false" />
|
|
<Property Name="IsFor" Type="Boolean" Nullable="false" />
|
|
<NavigationProperty Name="Location" Relationship="Self.FK_Location_LocType1" FromRole="LocType" ToRole="Location" />
|
|
</EntityType>
|
|
<EntityType Name="MovType">
|
|
<Key>
|
|
<PropertyRef Name="ID" />
|
|
</Key>
|
|
<Property Name="ID" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
<Property Name="Descr" Type="String" MaxLength="250" FixedLength="false" Unicode="true" Nullable="false" />
|
|
<NavigationProperty Name="ItemFlux" Relationship="Self.FK_StockMov_MovType" FromRole="MovType" ToRole="ItemFlux" />
|
|
<Property Name="CssClass" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
</EntityType>
|
|
<Association Name="FK_ItemFlux_Location">
|
|
<End Role="Location" Type="Self.Location" Multiplicity="1" />
|
|
<End Role="ItemFlux" Type="Self.ItemFlux" Multiplicity="*" />
|
|
<ReferentialConstraint>
|
|
<Principal Role="Location">
|
|
<PropertyRef Name="ID" />
|
|
</Principal>
|
|
<Dependent Role="ItemFlux">
|
|
<PropertyRef Name="LocationID" />
|
|
</Dependent>
|
|
</ReferentialConstraint>
|
|
</Association>
|
|
<Association Name="FK_StockMov_MovType">
|
|
<End Role="MovType" Type="Self.MovType" Multiplicity="1" />
|
|
<End Role="ItemFlux" Type="Self.ItemFlux" Multiplicity="*" />
|
|
<ReferentialConstraint>
|
|
<Principal Role="MovType">
|
|
<PropertyRef Name="ID" />
|
|
</Principal>
|
|
<Dependent Role="ItemFlux">
|
|
<PropertyRef Name="MovTypeID" />
|
|
</Dependent>
|
|
</ReferentialConstraint>
|
|
</Association>
|
|
<Association Name="FK_Stock_Location1">
|
|
<End Role="Location" Type="Self.Location" Multiplicity="1" />
|
|
<End Role="ItemStock" Type="Self.ItemStock" Multiplicity="*" />
|
|
<ReferentialConstraint>
|
|
<Principal Role="Location">
|
|
<PropertyRef Name="ID" />
|
|
</Principal>
|
|
<Dependent Role="ItemStock">
|
|
<PropertyRef Name="LocationID" />
|
|
</Dependent>
|
|
</ReferentialConstraint>
|
|
</Association>
|
|
<Association Name="FK_Location_LocType1">
|
|
<End Role="LocType" Type="Self.LocType" Multiplicity="1" />
|
|
<End Role="Location" Type="Self.Location" Multiplicity="*" />
|
|
<ReferentialConstraint>
|
|
<Principal Role="LocType">
|
|
<PropertyRef Name="ID" />
|
|
</Principal>
|
|
<Dependent Role="Location">
|
|
<PropertyRef Name="LocTypeID" />
|
|
</Dependent>
|
|
</ReferentialConstraint>
|
|
</Association>
|
|
<EntityContainer Name="StockManEntities" annotation:LazyLoadingEnabled="true">
|
|
<EntitySet Name="ItemFlux" EntityType="Self.ItemFlux" />
|
|
<EntitySet Name="ItemStock" EntityType="Self.ItemStock" />
|
|
<EntitySet Name="Location" EntityType="Self.Location" />
|
|
<EntitySet Name="LocType" EntityType="Self.LocType" />
|
|
<EntitySet Name="MovType" EntityType="Self.MovType" />
|
|
<AssociationSet Name="FK_ItemFlux_Location" Association="Self.FK_ItemFlux_Location">
|
|
<End Role="Location" EntitySet="Location" />
|
|
<End Role="ItemFlux" EntitySet="ItemFlux" />
|
|
</AssociationSet>
|
|
<AssociationSet Name="FK_StockMov_MovType" Association="Self.FK_StockMov_MovType">
|
|
<End Role="MovType" EntitySet="MovType" />
|
|
<End Role="ItemFlux" EntitySet="ItemFlux" />
|
|
</AssociationSet>
|
|
<AssociationSet Name="FK_Stock_Location1" Association="Self.FK_Stock_Location1">
|
|
<End Role="Location" EntitySet="Location" />
|
|
<End Role="ItemStock" EntitySet="ItemStock" />
|
|
</AssociationSet>
|
|
<AssociationSet Name="FK_Location_LocType1" Association="Self.FK_Location_LocType1">
|
|
<End Role="LocType" EntitySet="LocType" />
|
|
<End Role="Location" EntitySet="Location" />
|
|
</AssociationSet>
|
|
<FunctionImport Name="stp_consolidateItem">
|
|
<Parameter Name="ItemID" Mode="In" Type="Int32" />
|
|
</FunctionImport>
|
|
<EntitySet Name="ItemFamily" EntityType="StockManModel.ItemFamily" />
|
|
<EntitySet Name="Item" EntityType="StockManModel.Item" />
|
|
<AssociationSet Name="FK_Item_ItemFamily" Association="StockManModel.FK_Item_ItemFamily">
|
|
<End Role="ItemFamily" EntitySet="ItemFamily" />
|
|
<End Role="Item" EntitySet="Item" />
|
|
</AssociationSet>
|
|
<AssociationSet Name="FK_ItemFlux_Item" Association="StockManModel.FK_ItemFlux_Item">
|
|
<End Role="Item" EntitySet="Item" />
|
|
<End Role="ItemFlux" EntitySet="ItemFlux" />
|
|
</AssociationSet>
|
|
<AssociationSet Name="FK_Stock_Items" Association="StockManModel.FK_Stock_Items">
|
|
<End Role="Item" EntitySet="Item" />
|
|
<End Role="ItemStock" EntitySet="ItemStock" />
|
|
</AssociationSet>
|
|
<EntitySet Name="Operator" EntityType="StockManModel.Operator" />
|
|
<AssociationSet Name="FK_ItemFlux_Operator" Association="StockManModel.FK_ItemFlux_Operator">
|
|
<End Role="Operator" EntitySet="Operator" />
|
|
<End Role="ItemFlux" EntitySet="ItemFlux" />
|
|
</AssociationSet>
|
|
<AssociationSet Name="FK_ItemFlux_Location1" Association="StockManModel.FK_ItemFlux_Location1">
|
|
<End Role="Location" EntitySet="Location" />
|
|
<End Role="ItemFlux" EntitySet="ItemFlux" />
|
|
</AssociationSet>
|
|
</EntityContainer>
|
|
<EntityType Name="ItemFamily">
|
|
<Key>
|
|
<PropertyRef Name="ID" />
|
|
</Key>
|
|
<Property Name="ID" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
<Property Name="Descr" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
<NavigationProperty Name="Item" Relationship="StockManModel.FK_Item_ItemFamily" FromRole="ItemFamily" ToRole="Item" />
|
|
</EntityType>
|
|
<EntityType Name="Item">
|
|
<Key>
|
|
<PropertyRef Name="ID" />
|
|
</Key>
|
|
<Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
<Property Name="Descr" Type="String" Nullable="false" MaxLength="250" FixedLength="false" Unicode="true" />
|
|
<Property Name="CodInt" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
<Property Name="ItemFamilyID" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
<Property Name="CodExt" Type="String" Nullable="false" MaxLength="250" FixedLength="false" Unicode="true" />
|
|
<Property Name="DescrExt" Type="String" Nullable="false" MaxLength="250" FixedLength="false" Unicode="true" />
|
|
<Property Name="QtaMin" Type="Int32" Nullable="false" />
|
|
<Property Name="QtaBatch" Type="Int32" Nullable="false" />
|
|
<Property Name="CurrValue" Type="Decimal" Nullable="false" Precision="18" Scale="6" />
|
|
<NavigationProperty Name="ItemFamily" Relationship="StockManModel.FK_Item_ItemFamily" FromRole="Item" ToRole="ItemFamily" />
|
|
<NavigationProperty Name="ItemFlux" Relationship="StockManModel.FK_ItemFlux_Item" FromRole="Item" ToRole="ItemFlux" />
|
|
<NavigationProperty Name="ItemStock" Relationship="StockManModel.FK_Stock_Items" FromRole="Item" ToRole="ItemStock" />
|
|
<Property Name="QtaCurr" annotation:StoreGeneratedPattern="Computed" Type="Int32" />
|
|
<Property Name="QtaPend" Type="Int32" annotation:StoreGeneratedPattern="Computed" />
|
|
</EntityType>
|
|
<Association Name="FK_Item_ItemFamily">
|
|
<End Type="StockManModel.ItemFamily" Role="ItemFamily" Multiplicity="1" />
|
|
<End Type="StockManModel.Item" Role="Item" Multiplicity="*" />
|
|
<ReferentialConstraint>
|
|
<Principal Role="ItemFamily">
|
|
<PropertyRef Name="ID" />
|
|
</Principal>
|
|
<Dependent Role="Item">
|
|
<PropertyRef Name="ItemFamilyID" />
|
|
</Dependent>
|
|
</ReferentialConstraint>
|
|
</Association>
|
|
<Association Name="FK_ItemFlux_Item">
|
|
<End Type="StockManModel.Item" Role="Item" Multiplicity="1" />
|
|
<End Type="StockManModel.ItemFlux" Role="ItemFlux" Multiplicity="*" />
|
|
<ReferentialConstraint>
|
|
<Principal Role="Item">
|
|
<PropertyRef Name="ID" />
|
|
</Principal>
|
|
<Dependent Role="ItemFlux">
|
|
<PropertyRef Name="ItemID" />
|
|
</Dependent>
|
|
</ReferentialConstraint>
|
|
</Association>
|
|
<Association Name="FK_Stock_Items">
|
|
<End Type="StockManModel.Item" Role="Item" Multiplicity="1" />
|
|
<End Type="StockManModel.ItemStock" Role="ItemStock" Multiplicity="*" />
|
|
<ReferentialConstraint>
|
|
<Principal Role="Item">
|
|
<PropertyRef Name="ID" />
|
|
</Principal>
|
|
<Dependent Role="ItemStock">
|
|
<PropertyRef Name="ItemID" />
|
|
</Dependent>
|
|
</ReferentialConstraint>
|
|
</Association>
|
|
<EntityType Name="Operator">
|
|
<Key>
|
|
<PropertyRef Name="ID" />
|
|
</Key>
|
|
<Property Name="ID" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
<Property Name="CodExt" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
<Property Name="LastName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
<Property Name="FirstName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
<NavigationProperty Name="ItemFlux" Relationship="StockManModel.FK_ItemFlux_Operator" FromRole="Operator" ToRole="ItemFlux" />
|
|
</EntityType>
|
|
<Association Name="FK_ItemFlux_Operator">
|
|
<End Type="StockManModel.Operator" Role="Operator" Multiplicity="1" />
|
|
<End Type="StockManModel.ItemFlux" Role="ItemFlux" Multiplicity="*" />
|
|
<ReferentialConstraint>
|
|
<Principal Role="Operator">
|
|
<PropertyRef Name="ID" />
|
|
</Principal>
|
|
<Dependent Role="ItemFlux">
|
|
<PropertyRef Name="OperatorID" />
|
|
</Dependent>
|
|
</ReferentialConstraint>
|
|
</Association>
|
|
<Association Name="FK_ItemFlux_Location1">
|
|
<End Type="StockManModel.Location" Role="Location" Multiplicity="1" />
|
|
<End Type="StockManModel.ItemFlux" Role="ItemFlux" Multiplicity="*" />
|
|
<ReferentialConstraint>
|
|
<Principal Role="Location">
|
|
<PropertyRef Name="ID" />
|
|
</Principal>
|
|
<Dependent Role="ItemFlux">
|
|
<PropertyRef Name="ExtLocationID" />
|
|
</Dependent>
|
|
</ReferentialConstraint>
|
|
</Association>
|
|
</Schema>
|
|
</edmx:ConceptualModels>
|
|
<!-- C-S mapping content -->
|
|
<edmx:Mappings>
|
|
<Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
|
|
<EntityContainerMapping StorageEntityContainer="StockManModelStoreContainer" CdmEntityContainer="StockManEntities">
|
|
<EntitySetMapping Name="ItemFlux">
|
|
<EntityTypeMapping TypeName="StockManModel.ItemFlux">
|
|
<MappingFragment StoreEntitySet="ItemFlux">
|
|
<ScalarProperty Name="OperatorID" ColumnName="OperatorID" />
|
|
<ScalarProperty Name="ID" ColumnName="ID" />
|
|
<ScalarProperty Name="ItemID" ColumnName="ItemID" />
|
|
<ScalarProperty Name="LocationID" ColumnName="LocationID" />
|
|
<ScalarProperty Name="MovTypeID" ColumnName="MovTypeID" />
|
|
<ScalarProperty Name="ExtLocationID" ColumnName="ExtLocationID" />
|
|
<ScalarProperty Name="dtMov" ColumnName="dtMov" />
|
|
<ScalarProperty Name="Qta" ColumnName="Qta" />
|
|
<ScalarProperty Name="TotValue" ColumnName="TotValue" />
|
|
<ScalarProperty Name="UnitVal" ColumnName="UnitVal" />
|
|
<ScalarProperty Name="Note" ColumnName="Note" />
|
|
<ScalarProperty Name="dtExport" ColumnName="dtExport" />
|
|
</MappingFragment>
|
|
</EntityTypeMapping>
|
|
</EntitySetMapping>
|
|
<EntitySetMapping Name="ItemStock">
|
|
<EntityTypeMapping TypeName="StockManModel.ItemStock">
|
|
<MappingFragment StoreEntitySet="ItemStock">
|
|
<ScalarProperty Name="ID" ColumnName="ID" />
|
|
<ScalarProperty Name="ItemID" ColumnName="ItemID" />
|
|
<ScalarProperty Name="LocationID" ColumnName="LocationID" />
|
|
<ScalarProperty Name="QtyConf" ColumnName="QtyConf" />
|
|
<ScalarProperty Name="Note" ColumnName="Note" />
|
|
<ScalarProperty Name="dtLastUpd" ColumnName="dtLastUpd" />
|
|
</MappingFragment>
|
|
</EntityTypeMapping>
|
|
</EntitySetMapping>
|
|
<EntitySetMapping Name="Location">
|
|
<EntityTypeMapping TypeName="StockManModel.Location">
|
|
<MappingFragment StoreEntitySet="Location">
|
|
<ScalarProperty Name="ID" ColumnName="ID" />
|
|
<ScalarProperty Name="Descr" ColumnName="Descr" />
|
|
<ScalarProperty Name="LocTypeID" ColumnName="LocTypeID" />
|
|
</MappingFragment>
|
|
</EntityTypeMapping>
|
|
</EntitySetMapping>
|
|
<EntitySetMapping Name="LocType">
|
|
<EntityTypeMapping TypeName="StockManModel.LocType">
|
|
<MappingFragment StoreEntitySet="LocType">
|
|
<ScalarProperty Name="ID" ColumnName="ID" />
|
|
<ScalarProperty Name="Descr" ColumnName="Descr" />
|
|
<ScalarProperty Name="IsStock" ColumnName="IsStock" />
|
|
<ScalarProperty Name="IsCli" ColumnName="IsCli" />
|
|
<ScalarProperty Name="IsFor" ColumnName="IsFor" />
|
|
</MappingFragment>
|
|
</EntityTypeMapping>
|
|
</EntitySetMapping>
|
|
<EntitySetMapping Name="MovType">
|
|
<EntityTypeMapping TypeName="StockManModel.MovType">
|
|
<MappingFragment StoreEntitySet="MovType">
|
|
<ScalarProperty Name="CssClass" ColumnName="CssClass" />
|
|
<ScalarProperty Name="ID" ColumnName="ID" />
|
|
<ScalarProperty Name="Descr" ColumnName="Descr" />
|
|
</MappingFragment>
|
|
</EntityTypeMapping>
|
|
</EntitySetMapping>
|
|
<FunctionImportMapping FunctionImportName="stp_consolidateItem" FunctionName="StockManModel.Store.stp_consolidateItem" />
|
|
<EntitySetMapping Name="ItemFamily">
|
|
<EntityTypeMapping TypeName="StockManModel.ItemFamily">
|
|
<MappingFragment StoreEntitySet="ItemFamily">
|
|
<ScalarProperty Name="Descr" ColumnName="Descr" />
|
|
<ScalarProperty Name="ID" ColumnName="ID" />
|
|
</MappingFragment>
|
|
</EntityTypeMapping>
|
|
</EntitySetMapping>
|
|
<EntitySetMapping Name="Item">
|
|
<EntityTypeMapping TypeName="StockManModel.Item">
|
|
<MappingFragment StoreEntitySet="Item">
|
|
<ScalarProperty Name="QtaPend" ColumnName="QtaPend" />
|
|
<ScalarProperty Name="QtaCurr" ColumnName="QtaCurr" />
|
|
<ScalarProperty Name="CurrValue" ColumnName="CurrValue" />
|
|
<ScalarProperty Name="QtaBatch" ColumnName="QtaBatch" />
|
|
<ScalarProperty Name="QtaMin" ColumnName="QtaMin" />
|
|
<ScalarProperty Name="DescrExt" ColumnName="DescrExt" />
|
|
<ScalarProperty Name="CodExt" ColumnName="CodExt" />
|
|
<ScalarProperty Name="ItemFamilyID" ColumnName="ItemFamilyID" />
|
|
<ScalarProperty Name="CodInt" ColumnName="CodInt" />
|
|
<ScalarProperty Name="Descr" ColumnName="Descr" />
|
|
<ScalarProperty Name="ID" ColumnName="ID" />
|
|
</MappingFragment>
|
|
</EntityTypeMapping>
|
|
</EntitySetMapping>
|
|
<EntitySetMapping Name="Operator">
|
|
<EntityTypeMapping TypeName="StockManModel.Operator">
|
|
<MappingFragment StoreEntitySet="Operator">
|
|
<ScalarProperty Name="FirstName" ColumnName="FirstName" />
|
|
<ScalarProperty Name="LastName" ColumnName="LastName" />
|
|
<ScalarProperty Name="CodExt" ColumnName="CodExt" />
|
|
<ScalarProperty Name="ID" ColumnName="ID" />
|
|
</MappingFragment>
|
|
</EntityTypeMapping>
|
|
</EntitySetMapping>
|
|
</EntityContainerMapping>
|
|
</Mapping>
|
|
</edmx:Mappings>
|
|
</edmx:Runtime>
|
|
<!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
|
|
<Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
|
|
<Connection>
|
|
<DesignerInfoPropertySet>
|
|
<DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
|
|
</DesignerInfoPropertySet>
|
|
</Connection>
|
|
<Options>
|
|
<DesignerInfoPropertySet>
|
|
<DesignerProperty Name="ValidateOnBuild" Value="true" />
|
|
<DesignerProperty Name="EnablePluralization" Value="false" />
|
|
<DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
|
|
<DesignerProperty Name="UseLegacyProvider" Value="false" />
|
|
<DesignerProperty Name="CodeGenerationStrategy" Value="None" />
|
|
</DesignerInfoPropertySet>
|
|
</Options>
|
|
<!-- Diagram content (shape and connector positions) -->
|
|
<Diagrams></Diagrams>
|
|
</Designer>
|
|
</edmx:Edmx> |