Avanzamento x parte template con EF

This commit is contained in:
Samuele E. Locatelli
2018-01-03 19:29:24 +01:00
parent 3833ebe4b8
commit 8124d7bcc1
35 changed files with 556 additions and 481 deletions
@@ -63,7 +63,6 @@
<Property Name="C_iva1" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
<Property Name="iva" Type="Double" />
<Property Name="descrizione" Type="String" MaxLength="250" FixedLength="false" Unicode="true" />
<NavigationProperty Name="Righe_fatt" Relationship="Self.FK_Righe_fatt_C_iva" FromRole="C_iva" ToRole="Righe_fatt" />
<NavigationProperty Name="RigheFatt" Relationship="Self.FK_RigheFatt_C_iva" FromRole="C_iva" ToRole="RigheFatt" />
</EntityType>
<EntityType Name="CDC">
@@ -146,7 +145,6 @@
<NavigationProperty Name="Clienti" Relationship="Self.FK_Fatture_Clienti" FromRole="Fatture" ToRole="Clienti" />
<NavigationProperty Name="CostiAssorbiti" Relationship="Self.FK_CostiAssorbiti_Fatture" FromRole="Fatture" ToRole="CostiAssorbiti" />
<NavigationProperty Name="Pagamenti" Relationship="Self.FK_Pagamenti_Fatture" FromRole="Fatture" ToRole="Pagamenti" />
<NavigationProperty Name="Righe_fatt" Relationship="Self.FK_Righe_fatt_Fatture" FromRole="Fatture" ToRole="Righe_fatt" />
<NavigationProperty Name="RigheFatt" Relationship="Self.FK_RigheFatt_Fatture" FromRole="Fatture" ToRole="RigheFatt" />
<NavigationProperty Name="Scadenze" Relationship="Self.FK_Scadenze_Fatture" FromRole="Fatture" ToRole="Scadenze" />
<Property Name="IsTemplate" Type="Boolean" Nullable="false" />
@@ -229,26 +227,6 @@
<Property Name="READWRITE" Type="String" MaxLength="1" FixedLength="true" Unicode="false" />
<NavigationProperty Name="Permessi" Relationship="Self.FK_Permessi2Funzione_Permessi" FromRole="Permessi2Funzione" ToRole="Permessi" />
</EntityType>
<EntityType Name="Righe_fatt">
<Key>
<PropertyRef Name="Id" />
</Key>
<Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
<Property Name="idxDoc" Type="Int32" />
<Property Name="Descrizione" Type="String" MaxLength="1500" FixedLength="false" Unicode="true" />
<Property Name="um" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
<Property Name="prezzo_um" Type="Decimal" Precision="19" Scale="4" />
<Property Name="qta" Type="Single" Nullable="false" />
<Property Name="sconto" Type="Single" Nullable="false" />
<Property Name="c_iva" Type="Int32" />
<Property Name="no_ritenuta" Type="Boolean" Nullable="false" />
<Property Name="valuta" Type="String" MaxLength="255" FixedLength="false" Unicode="true" Nullable="false" />
<Property Name="Id_fatt" Type="Int32" annotation:StoreGeneratedPattern="Computed" />
<Property Name="codExt" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
<Property Name="quotaProj" Type="Double" Nullable="false" />
<NavigationProperty Name="C_iva1" Relationship="Self.FK_Righe_fatt_C_iva" FromRole="Righe_fatt" ToRole="C_iva" />
<NavigationProperty Name="Fatture" Relationship="Self.FK_Righe_fatt_Fatture" FromRole="Righe_fatt" ToRole="Fatture" />
</EntityType>
<EntityType Name="RigheFatt">
<Key>
<PropertyRef Name="IdxRigheFatt" />
@@ -277,16 +255,6 @@
<Property Name="note" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
<NavigationProperty Name="Fatture" Relationship="Self.FK_Scadenze_Fatture" FromRole="Scadenze" ToRole="Fatture" />
</EntityType>
<EntityType Name="sysdiagrams">
<Key>
<PropertyRef Name="diagram_id" />
</Key>
<Property Name="name" Type="String" MaxLength="128" FixedLength="false" Unicode="true" Nullable="false" />
<Property Name="principal_id" Type="Int32" Nullable="false" />
<Property Name="diagram_id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
<Property Name="version" Type="Int32" />
<Property Name="definition" Type="Binary" MaxLength="Max" FixedLength="false" />
</EntityType>
<EntityType Name="UTENTE">
<Key>
<PropertyRef Name="USER_NAME" />
@@ -340,18 +308,6 @@
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_Righe_fatt_C_iva">
<End Role="C_iva" Type="Self.C_iva" Multiplicity="0..1" />
<End Role="Righe_fatt" Type="Self.Righe_fatt" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="C_iva">
<PropertyRef Name="C_iva1" />
</Principal>
<Dependent Role="Righe_fatt">
<PropertyRef Name="c_iva" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_RigheFatt_C_iva">
<End Role="C_iva" Type="Self.C_iva" Multiplicity="0..1" />
<End Role="RigheFatt" Type="Self.RigheFatt" Multiplicity="*" />
@@ -448,18 +404,6 @@
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_Righe_fatt_Fatture">
<End Role="Fatture" Type="Self.Fatture" Multiplicity="0..1" />
<End Role="Righe_fatt" Type="Self.Righe_fatt" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="Fatture">
<PropertyRef Name="IdxFatt" />
</Principal>
<Dependent Role="Righe_fatt">
<PropertyRef Name="idxDoc" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_RigheFatt_Fatture">
<End Role="Fatture" Type="Self.Fatture" Multiplicity="0..1" />
<End Role="RigheFatt" Type="Self.RigheFatt" Multiplicity="*" />
@@ -530,10 +474,8 @@
<EntitySet Name="Pagamenti" EntityType="Self.Pagamenti" />
<EntitySet Name="Permessi" EntityType="Self.Permessi" />
<EntitySet Name="Permessi2Funzione" EntityType="Self.Permessi2Funzione" />
<EntitySet Name="Righe_fatt" EntityType="Self.Righe_fatt" />
<EntitySet Name="RigheFatt" EntityType="Self.RigheFatt" />
<EntitySet Name="Scadenze" EntityType="Self.Scadenze" />
<EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" />
<EntitySet Name="UTENTE" EntityType="Self.UTENTE" />
<EntitySet Name="Vocabolario" EntityType="Self.Vocabolario" />
<EntitySet Name="Anagr_righe_voci_fatt" EntityType="Self.Anagr_righe_voci_fatt" />
@@ -541,10 +483,6 @@
<End Role="Anagr_tipo_elem" EntitySet="Anagr_tipo_elem" />
<End Role="Anagr_elem_doc" EntitySet="Anagr_elem_doc" />
</AssociationSet>
<AssociationSet Name="FK_Righe_fatt_C_iva" Association="Self.FK_Righe_fatt_C_iva">
<End Role="C_iva" EntitySet="C_iva" />
<End Role="Righe_fatt" EntitySet="Righe_fatt" />
</AssociationSet>
<AssociationSet Name="FK_RigheFatt_C_iva" Association="Self.FK_RigheFatt_C_iva">
<End Role="C_iva" EntitySet="C_iva" />
<End Role="RigheFatt" EntitySet="RigheFatt" />
@@ -577,10 +515,6 @@
<End Role="Fatture" EntitySet="Fatture" />
<End Role="Pagamenti" EntitySet="Pagamenti" />
</AssociationSet>
<AssociationSet Name="FK_Righe_fatt_Fatture" Association="Self.FK_Righe_fatt_Fatture">
<End Role="Fatture" EntitySet="Fatture" />
<End Role="Righe_fatt" EntitySet="Righe_fatt" />
</AssociationSet>
<AssociationSet Name="FK_RigheFatt_Fatture" Association="Self.FK_RigheFatt_Fatture">
<End Role="Fatture" EntitySet="Fatture" />
<End Role="RigheFatt" EntitySet="RigheFatt" />
@@ -598,6 +532,8 @@
<End Role="Permessi2Funzione" EntitySet="Permessi2Funzione" />
</AssociationSet>
<EntitySet Name="Documenti" EntityType="MAPModel.Documenti" />
<EntitySet Name="DocTemplate" EntityType="MAPModel.DocTemplate" />
<EntitySet Name="RowTemplate" EntityType="MAPModel.RowTemplate" />
</EntityContainer>
<EntityType Name="Documenti">
<Key>
@@ -636,4 +572,53 @@
<Property Name="ritenuta" Type="Double" Nullable="false" />
<Property Name="CostiAss" Type="Decimal" Nullable="false" Precision="19" Scale="4" />
</EntityType>
<EntityType Name="DocTemplate">
<Key>
<PropertyRef Name="idxDoc" />
<PropertyRef Name="Gruppo" />
<PropertyRef Name="RagSoc" />
<PropertyRef Name="num" />
<PropertyRef Name="anno" />
<PropertyRef Name="netto" />
<PropertyRef Name="iva" />
<PropertyRef Name="importo" />
<PropertyRef Name="tipo" />
<PropertyRef Name="idxCli" />
<PropertyRef Name="totPagato" />
<PropertyRef Name="totScadenze" />
<PropertyRef Name="Descrizione" />
<PropertyRef Name="ritenuta" />
<PropertyRef Name="CostiAss" />
</Key>
<Property Name="idxDoc" Type="Int32" Nullable="false" />
<Property Name="emesso" Type="DateTime" Precision="0" />
<Property Name="Gruppo" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
<Property Name="RagSoc" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
<Property Name="num" Type="Int32" Nullable="false" />
<Property Name="anno" Type="Int32" Nullable="false" />
<Property Name="Trim" Type="Int32" />
<Property Name="Mese" Type="Int32" />
<Property Name="netto" Type="Decimal" Nullable="false" Precision="9" Scale="2" />
<Property Name="iva" Type="Decimal" Nullable="false" Precision="9" Scale="2" />
<Property Name="importo" Type="Decimal" Nullable="false" Precision="9" Scale="2" />
<Property Name="tipo" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
<Property Name="idxCli" Type="Int32" Nullable="false" />
<Property Name="totPagato" Type="Decimal" Nullable="false" Precision="19" Scale="4" />
<Property Name="totScadenze" Type="Decimal" Nullable="false" Precision="19" Scale="4" />
<Property Name="Descrizione" Type="String" Nullable="false" MaxLength="Max" FixedLength="false" Unicode="true" />
<Property Name="ritenuta" Type="Double" Nullable="false" />
<Property Name="CostiAss" Type="Decimal" Nullable="false" Precision="19" Scale="4" />
</EntityType>
<EntityType Name="RowTemplate">
<Key>
<PropertyRef Name="importo" />
<PropertyRef Name="netto" />
<PropertyRef Name="iva" />
</Key>
<Property Name="IdxRigheFatt" Type="Int32" />
<Property Name="Descrizione" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
<Property Name="importo" Type="Decimal" Nullable="false" Precision="9" Scale="2" />
<Property Name="netto" Type="Decimal" Nullable="false" Precision="9" Scale="2" />
<Property Name="iva" Type="Decimal" Nullable="false" Precision="9" Scale="2" />
</EntityType>
</Schema>