Avanzamento x parte template con EF
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
+22
-18
@@ -8,6 +8,9 @@
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-12 text-center">
|
||||
<h1>Archivio Documenti (Fatture)</h1>
|
||||
</div>
|
||||
<div class="col-md-6 text-center">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
@@ -20,28 +23,29 @@
|
||||
<div runat="server" id="divTopFooter" class="panel-footer bg-info fontSmall">
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<b>TEMPLATE</b>
|
||||
</div>
|
||||
<div class="panel-body bg-default fontSmall text-left" style="min-height: 34px;">
|
||||
<h3>TIPO FATTURA BASE</h3>
|
||||
<asp:RadioButtonList runat="server" ID="rblTipoFatt" DataSourceID="odsTipoDoc" Width="100%" DataTextField="Descrizione" DataValueField="idxDoc">
|
||||
</asp:RadioButtonList>
|
||||
<asp:ObjectDataSource runat="server" ID="odsTipoDoc" SelectMethod="ElencoDocTemplate" TypeName="MedAP_data.MedAPModel"></asp:ObjectDataSource>
|
||||
<hr />
|
||||
<h4>RIGHE OPZIONI (1+)</h4>
|
||||
<asp:CheckBoxList runat="server" ID="cblRigheFatt" DataSourceID="odsTipoRow" DataTextField="Descrizione" DataValueField="idxRigheFatt">
|
||||
</asp:CheckBoxList>
|
||||
<asp:ObjectDataSource runat="server" ID="odsTipoRow" SelectMethod="ElencoRowTemplate" TypeName="MedAP_data.MedAPModel" OldValuesParameterFormatString="original_{0}"></asp:ObjectDataSource>
|
||||
</div>
|
||||
<div runat="server" id="div1" class="panel-footer bg-info fontSmall">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6 text-center">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<b>TIPOLOGIE FATTURA</b>
|
||||
</div>
|
||||
<div class="panel-body bg-default fontSmall text-left" style="min-height: 34px;">
|
||||
<ul>
|
||||
<li>fattura tipo A</li>
|
||||
<li>fattura tipo B</li>
|
||||
<li>fattura tipo C</li>
|
||||
<li>fattura tipo D</li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
<div runat="server" id="div1" class="panel-footer bg-info fontSmall">
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<b>ARCHIVIO DOCUMENTI</b>
|
||||
<b>DOCUMENTI</b>
|
||||
</div>
|
||||
<div class="panel-body bg-default fontSmall" style="min-height: 34px;">
|
||||
<uc1:mod_searchParam runat="server" ID="mod_searchParam" enableAdvCom="true" enableTipoDocSel="true" enableApertiSel="true" />
|
||||
|
||||
Generated
+36
@@ -30,6 +30,42 @@ namespace MedAP {
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divTopFooter;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo rblTipoFatt.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.RadioButtonList rblTipoFatt;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo odsTipoDoc.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ObjectDataSource odsTipoDoc;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo cblRigheFatt.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.CheckBoxList cblRigheFatt;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo odsTipoRow.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ObjectDataSource odsTipoRow;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo div1.
|
||||
/// </summary>
|
||||
|
||||
@@ -2,92 +2,92 @@
|
||||
<%@ Register Src="~/WebUserControl/mod_barPlot.ascx" TagPrefix="uc1" TagName="mod_barPlot" %>
|
||||
|
||||
<asp:GridView ID="grView" runat="server" AutoGenerateColumns="False" DataSourceID="ods" AllowPaging="True" CssClass="table table-striped" AllowSorting="True" DataKeyNames="idxDoc" Width="100%" OnSelectedIndexChanged="grView_SelectedIndexChanged" OnSorting="grView_Sorting" OnPageIndexChanged="grView_PageIndexChanged">
|
||||
<PagerStyle CssClass="active GridPager" />
|
||||
<PagerSettings Mode="NumericFirstLast" />
|
||||
<SelectedRowStyle CssClass="info" />
|
||||
<Columns>
|
||||
<asp:TemplateField>
|
||||
<HeaderTemplate>
|
||||
<asp:LinkButton ID="lbReset" runat="server" CssClass="btn btn-default btn-xs" OnClick="lbReset_Click" Visible="true"><i class="fa fa-refresh" aria-hidden="true"></i> RESET</asp:LinkButton>
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton runat="server" ID="lbIdxDoc1" CommandArgument='<%# Eval("idxDoc") %>' CausesValidation="False" CommandName="Select">
|
||||
<asp:Label ID="lblEmesso" runat="server" Text='<%# Eval("emesso", "{0:yyyy.MM.dd}") %>'></asp:Label>
|
||||
</asp:LinkButton>
|
||||
</ItemTemplate>
|
||||
<ItemStyle Width="15%" />
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="numero" SortExpression="###" ItemStyle-Width="70%">
|
||||
<ItemTemplate>
|
||||
<div class="row">
|
||||
<div class="col-xs-1 text-right pRZero">
|
||||
<asp:HyperLink runat="server" ID="lnkFatt" Target="_blank" NavigateUrl='<%# getUrlFattura(Eval("idxDoc")) %>'>
|
||||
<PagerStyle CssClass="active GridPager" />
|
||||
<PagerSettings Mode="NumericFirstLast" />
|
||||
<SelectedRowStyle CssClass="info" />
|
||||
<Columns>
|
||||
<asp:TemplateField>
|
||||
<HeaderTemplate>
|
||||
<asp:LinkButton ID="lbReset" runat="server" CssClass="btn btn-default btn-xs" OnClick="lbReset_Click" Visible="true"><i class="fa fa-refresh" aria-hidden="true"></i> RESET</asp:LinkButton>
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton runat="server" ID="lbIdxDoc1" CommandArgument='<%# Eval("idxDoc") %>' CausesValidation="False" CommandName="Select">
|
||||
<asp:Label ID="lblEmesso" runat="server" Text='<%# Eval("emesso", "{0:yyyy.MM.dd}") %>'></asp:Label>
|
||||
</asp:LinkButton>
|
||||
</ItemTemplate>
|
||||
<ItemStyle Width="15%" />
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="numero" SortExpression="###" ItemStyle-Width="70%">
|
||||
<ItemTemplate>
|
||||
<div class="row">
|
||||
<div class="col-xs-1 text-right pRZero">
|
||||
<asp:HyperLink runat="server" ID="lnkFatt" Target="_blank" NavigateUrl='<%# getUrlFattura(Eval("idxDoc")) %>'>
|
||||
<i class="fa fa-file-pdf-o fa-2x" aria-hidden="true"></i>
|
||||
</asp:HyperLink>
|
||||
</div>
|
||||
<div class="col-xs-2 text-nowrap pRZero">
|
||||
<asp:LinkButton runat="server" ID="lbIdxDoc2" CommandArgument='<%# Eval("idxDoc") %>' CausesValidation="False" CommandName="Select">
|
||||
<asp:Label ID="lblNum" runat="server" Text='<%# Eval("num","<b>{0:000}</b>") %>' />/<asp:Label ID="lblanno" runat="server" Text='<%# Eval("anno") %>' />
|
||||
</asp:LinkButton>
|
||||
</div>
|
||||
<div class="col-xs-6">
|
||||
<asp:LinkButton runat="server" ID="lbSelCli" CommandArgument='<%# Eval("idxCli") %>' OnClick="lbSelCli_Click">
|
||||
<asp:Label ID="lblcodCli" runat="server" Text='<%# Eval("RagSoc","<b>{0}</b>") %>' ToolTip='<%# Eval("RagSoc") %>' />
|
||||
</asp:LinkButton>
|
||||
</div>
|
||||
<div class="col-xs-2 text-right text-nowrap max20em pLZero pRZero">
|
||||
<asp:LinkButton runat="server" ID="lbSelTipo" CommandArgument='<%# Eval("tipo") %>' OnClick="lbSelTipo_Click">
|
||||
<asp:Label ID="lblTipo" runat="server" Text='<%# Eval("tipo") %>' ToolTip='<%# Eval("tipo") %>' />
|
||||
</asp:LinkButton>
|
||||
</div>
|
||||
<div class="col-xs-1 text-right pLZero">
|
||||
<%--<asp:HyperLink runat="server" ID="lnkPdf" Target="_blank" NavigateUrl='<%# getUrlFatturaPdf(Eval("anno"),Eval("num")) %>'>--%>
|
||||
<asp:HyperLink runat="server" ID="lnkPdf" Target="_blank" NavigateUrl='<%# getUrlFatturaPdf(Eval("idxDoc")) %>'>
|
||||
</asp:HyperLink>
|
||||
</div>
|
||||
<div class="col-xs-2 text-nowrap pRZero">
|
||||
<asp:LinkButton runat="server" ID="lbIdxDoc2" CommandArgument='<%# Eval("idxDoc") %>' CausesValidation="False" CommandName="Select">
|
||||
<asp:Label ID="lblNum" runat="server" Text='<%# Eval("num","<b>{0:000}</b>") %>' />/<asp:Label ID="lblanno" runat="server" Text='<%# Eval("anno") %>' />
|
||||
</asp:LinkButton>
|
||||
</div>
|
||||
<div class="col-xs-6">
|
||||
<asp:LinkButton runat="server" ID="lbSelCli" CommandArgument='<%# Eval("idxCli") %>' OnClick="lbSelCli_Click">
|
||||
<asp:Label ID="lblcodCli" runat="server" Text='<%# Eval("RagSoc","<b>{0}</b>") %>' ToolTip='<%# Eval("RagSoc") %>' />
|
||||
</asp:LinkButton>
|
||||
</div>
|
||||
<div class="col-xs-2 text-right text-nowrap max20em pLZero pRZero">
|
||||
<asp:LinkButton runat="server" ID="lbSelTipo" CommandArgument='<%# Eval("tipo") %>' OnClick="lbSelTipo_Click">
|
||||
<asp:Label ID="lblTipo" runat="server" Text='<%# Eval("tipo") %>' ToolTip='<%# Eval("tipo") %>' />
|
||||
</asp:LinkButton>
|
||||
</div>
|
||||
<div class="col-xs-1 text-right pLZero">
|
||||
<%--<asp:HyperLink runat="server" ID="lnkPdf" Target="_blank" NavigateUrl='<%# getUrlFatturaPdf(Eval("anno"),Eval("num")) %>'>--%>
|
||||
<asp:HyperLink runat="server" ID="lnkPdf" Target="_blank" NavigateUrl='<%# getUrlFatturaPdf(Eval("idxDoc")) %>'>
|
||||
<i class="fa fa-print fa-2x" aria-hidden="true"></i>
|
||||
</asp:HyperLink>
|
||||
</div>
|
||||
<div class="col-xs-12 max40em">
|
||||
<asp:Label ID="lblDescrizione" runat="server" CssClass="docNote " Text='<%# Bind("Descrizione") %>' ToolTip='<%# Bind("Descrizione") %>' />
|
||||
</div>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
<ItemStyle Width="60%"></ItemStyle>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="importo" SortExpression="netto" ItemStyle-Width="15%">
|
||||
<ItemTemplate>
|
||||
<div class="row text-nowrap">
|
||||
<div class="col-xs-12 text-right">
|
||||
<asp:LinkButton runat="server" ID="lbIdxDoc3" CommandArgument='<%# Eval("idxDoc") %>' CausesValidation="False" CommandName="Select">
|
||||
<asp:Label ID="lblNetto" runat="server" Text='<%# Eval("netto", "<b>{0:C2}</b>") %>' />
|
||||
</asp:LinkButton>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row fontStd text-nowrap">
|
||||
<div class="col-xs-8 pRZero">
|
||||
<uc1:mod_barPlot runat="server" ID="mod_barPlotPag" elencoValori='<%# getBarData(Eval("totPagato"), Eval("totScadenze"), "greenBar", "redBar") %>' resolution="1" Visible='<%# showPagam %>' />
|
||||
<uc1:mod_barPlot runat="server" ID="mod_barPlotCostiAss" elencoValori='<%# getBarData(Eval("CostiAss"), Convert.ToDecimal(Eval("netto"))-Convert.ToDecimal(Eval("CostiAss")), "grayBar", "greenBar") %>' resolution="1" Visible='<%# showCosti %>' />
|
||||
</div>
|
||||
<div class="col-xs-4 pLZero text-right">
|
||||
<asp:Label ID="lblChiuso" runat="server" Text='<%# Eval("chiuso", "{0:dd MMM}") %>' ToolTip='<%# Eval("chiuso", "{0:yyyy.MM.dd}") %>' />
|
||||
</div>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
<ItemStyle Width="25%"></ItemStyle>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:HyperLink>
|
||||
</div>
|
||||
<div class="col-xs-12 max40em">
|
||||
<asp:Label ID="lblDescrizione" runat="server" CssClass="docNote " Text='<%# Bind("Descrizione") %>' ToolTip='<%# Bind("Descrizione") %>' />
|
||||
</div>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
<ItemStyle Width="60%"></ItemStyle>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="importo" SortExpression="netto" ItemStyle-Width="15%">
|
||||
<ItemTemplate>
|
||||
<div class="row text-nowrap">
|
||||
<div class="col-xs-12 text-right">
|
||||
<asp:LinkButton runat="server" ID="lbIdxDoc3" CommandArgument='<%# Eval("idxDoc") %>' CausesValidation="False" CommandName="Select">
|
||||
<asp:Label ID="lblNetto" runat="server" Text='<%# Eval("netto", "<b>{0:C2}</b>") %>' />
|
||||
</asp:LinkButton>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row fontStd text-nowrap">
|
||||
<div class="col-xs-8 pRZero">
|
||||
<uc1:mod_barPlot runat="server" ID="mod_barPlotPag" elencoValori='<%# getBarData(Eval("totPagato"), Eval("totScadenze"), "greenBar", "redBar") %>' resolution="1" Visible='<%# showPagam %>' />
|
||||
<uc1:mod_barPlot runat="server" ID="mod_barPlotCostiAss" elencoValori='<%# getBarData(Eval("CostiAss"), Convert.ToDecimal(Eval("netto"))-Convert.ToDecimal(Eval("CostiAss")), "grayBar", "greenBar") %>' resolution="1" Visible='<%# showCosti %>' />
|
||||
</div>
|
||||
<div class="col-xs-4 pLZero text-right">
|
||||
<asp:Label ID="lblChiuso" runat="server" Text='<%# Eval("chiuso", "{0:dd MMM}") %>' ToolTip='<%# Eval("chiuso", "{0:yyyy.MM.dd}") %>' />
|
||||
</div>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
<ItemStyle Width="25%"></ItemStyle>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getFilt" TypeName="SteamWare.DS_BillingTableAdapters.DocumentiTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:ControlParameter ControlID="hfAnno" DefaultValue="0" Name="anno" PropertyName="Value" Type="Int32" />
|
||||
<asp:ControlParameter ControlID="hfIdxCli" DefaultValue="0" Name="idxCli" PropertyName="Value" Type="Int32" />
|
||||
<asp:ControlParameter ControlID="hfTipo" DefaultValue="*" Name="tipo" PropertyName="Value" Type="String" />
|
||||
<asp:ControlParameter ControlID="hfGruppo" DefaultValue="*" Name="gruppo" PropertyName="Value" Type="String" />
|
||||
<asp:ControlParameter ControlID="hfRagSoc" DefaultValue="*" Name="ragSoc" PropertyName="Value" Type="String" />
|
||||
<asp:ControlParameter ControlID="hfInizio" DefaultValue="1900-01-01" Name="inizio" PropertyName="Value" Type="DateTime" />
|
||||
<asp:ControlParameter ControlID="hfFine" DefaultValue="9999-12-31" Name="fine" PropertyName="Value" Type="DateTime" />
|
||||
<asp:ControlParameter ControlID="hfAperta" DefaultValue="0" Name="aperta" PropertyName="Value" Type="Int32" />
|
||||
<asp:ControlParameter ControlID="hfSearch" DefaultValue="*" Name="search" PropertyName="Value" Type="String" />
|
||||
</SelectParameters>
|
||||
<SelectParameters>
|
||||
<asp:ControlParameter ControlID="hfAnno" DefaultValue="0" Name="anno" PropertyName="Value" Type="Int32" />
|
||||
<asp:ControlParameter ControlID="hfIdxCli" DefaultValue="0" Name="idxCli" PropertyName="Value" Type="Int32" />
|
||||
<asp:ControlParameter ControlID="hfTipo" DefaultValue="*" Name="tipo" PropertyName="Value" Type="String" />
|
||||
<asp:ControlParameter ControlID="hfGruppo" DefaultValue="*" Name="gruppo" PropertyName="Value" Type="String" />
|
||||
<asp:ControlParameter ControlID="hfRagSoc" DefaultValue="*" Name="ragSoc" PropertyName="Value" Type="String" />
|
||||
<asp:ControlParameter ControlID="hfInizio" DefaultValue="1900-01-01" Name="inizio" PropertyName="Value" Type="DateTime" />
|
||||
<asp:ControlParameter ControlID="hfFine" DefaultValue="9999-12-31" Name="fine" PropertyName="Value" Type="DateTime" />
|
||||
<asp:ControlParameter ControlID="hfAperta" DefaultValue="0" Name="aperta" PropertyName="Value" Type="Int32" />
|
||||
<asp:ControlParameter ControlID="hfSearch" DefaultValue="*" Name="search" PropertyName="Value" Type="String" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
<asp:HiddenField runat="server" ID="hfAnno" Value="0" />
|
||||
<asp:HiddenField runat="server" ID="hfIdxCli" Value="0" />
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -50,7 +50,7 @@
|
||||
<add key="_logLevel" value="6" />
|
||||
<add key="_logMaxMb" value="30" />
|
||||
<!--altro-->
|
||||
<add key="cIva" value="21" />
|
||||
<add key="cIva" value="5" />
|
||||
<add key="limiteWarn" value="0.9" />
|
||||
<!--reports-->
|
||||
<add key="startRepDate" value="2006-01-01" />
|
||||
|
||||
Binary file not shown.
@@ -50,7 +50,7 @@
|
||||
<add key="_logLevel" value="6" />
|
||||
<add key="_logMaxMb" value="30" />
|
||||
<!--altro-->
|
||||
<add key="cIva" value="21" />
|
||||
<add key="cIva" value="5" />
|
||||
<add key="limiteWarn" value="0.9" />
|
||||
<!--reports-->
|
||||
<add key="startRepDate" value="2006-01-01" />
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -46,13 +46,13 @@ namespace MedAP_data
|
||||
public virtual DbSet<Pagamenti> Pagamenti { get; set; }
|
||||
public virtual DbSet<Permessi> Permessi { get; set; }
|
||||
public virtual DbSet<Permessi2Funzione> Permessi2Funzione { get; set; }
|
||||
public virtual DbSet<Righe_fatt> Righe_fatt { get; set; }
|
||||
public virtual DbSet<RigheFatt> RigheFatt { get; set; }
|
||||
public virtual DbSet<Scadenze> Scadenze { get; set; }
|
||||
public virtual DbSet<sysdiagrams> sysdiagrams { get; set; }
|
||||
public virtual DbSet<UTENTE> UTENTE { get; set; }
|
||||
public virtual DbSet<Vocabolario> Vocabolario { get; set; }
|
||||
public virtual DbSet<Anagr_righe_voci_fatt> Anagr_righe_voci_fatt { get; set; }
|
||||
public virtual DbSet<Documenti> Documenti { get; set; }
|
||||
public virtual DbSet<DocTemplate> DocTemplate { get; set; }
|
||||
public virtual DbSet<RowTemplate> RowTemplate { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
+170
-158
@@ -227,24 +227,6 @@ avviso 6002: Nessuna chiave primaria definita per la tabella/visualizzazione 'Me
|
||||
<Property Name="COD_FUNZIONE" Type="nvarchar" MaxLength="31" Nullable="false" />
|
||||
<Property Name="READWRITE" Type="char" MaxLength="1" />
|
||||
</EntityType>
|
||||
<EntityType Name="Righe_fatt">
|
||||
<Key>
|
||||
<PropertyRef Name="Id" />
|
||||
</Key>
|
||||
<Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
||||
<Property Name="idxDoc" Type="int" />
|
||||
<Property Name="Descrizione" Type="nvarchar" MaxLength="1500" />
|
||||
<Property Name="um" Type="nvarchar" MaxLength="50" />
|
||||
<Property Name="prezzo/um" Type="money" />
|
||||
<Property Name="qta" Type="real" Nullable="false" />
|
||||
<Property Name="sconto" Type="real" Nullable="false" />
|
||||
<Property Name="c_iva" Type="int" />
|
||||
<Property Name="no_ritenuta" Type="bit" Nullable="false" />
|
||||
<Property Name="valuta" Type="nvarchar" MaxLength="255" Nullable="false" />
|
||||
<Property Name="Id_fatt" Type="int" StoreGeneratedPattern="Computed" />
|
||||
<Property Name="codExt" Type="nvarchar" MaxLength="50" Nullable="false" />
|
||||
<Property Name="quotaProj" Type="float" Nullable="false" />
|
||||
</EntityType>
|
||||
<EntityType Name="RigheFatt">
|
||||
<Key>
|
||||
<PropertyRef Name="IdxRigheFatt" />
|
||||
@@ -270,16 +252,6 @@ avviso 6002: Nessuna chiave primaria definita per la tabella/visualizzazione 'Me
|
||||
<Property Name="importo" Type="money" />
|
||||
<Property Name="note" Type="nvarchar" MaxLength="50" />
|
||||
</EntityType>
|
||||
<EntityType Name="sysdiagrams">
|
||||
<Key>
|
||||
<PropertyRef Name="diagram_id" />
|
||||
</Key>
|
||||
<Property Name="name" Type="nvarchar" MaxLength="128" Nullable="false" />
|
||||
<Property Name="principal_id" Type="int" Nullable="false" />
|
||||
<Property Name="diagram_id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
||||
<Property Name="version" Type="int" />
|
||||
<Property Name="definition" Type="varbinary(max)" />
|
||||
</EntityType>
|
||||
<EntityType Name="UTENTE">
|
||||
<Key>
|
||||
<PropertyRef Name="USER_NAME" />
|
||||
@@ -344,6 +316,59 @@ avviso 6002: Nessuna chiave primaria definita per la tabella/visualizzazione 'Me
|
||||
<Property Name="ritenuta" Type="float" Nullable="false" />
|
||||
<Property Name="CostiAss" Type="money" Nullable="false" />
|
||||
</EntityType>
|
||||
<!--Errori trovati durante la generazione:
|
||||
avviso 6002: Nessuna chiave primaria definita per la tabella/visualizzazione 'MedAP.dbo.v_DocTemplate'. La chiave è stata dedotta e la definizione è stata creata come tabella/visualizzazione di sola lettura.-->
|
||||
<EntityType Name="v_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="int" Nullable="false" />
|
||||
<Property Name="emesso" Type="date" />
|
||||
<Property Name="Gruppo" Type="nvarchar" MaxLength="50" Nullable="false" />
|
||||
<Property Name="RagSoc" Type="nvarchar" MaxLength="50" Nullable="false" />
|
||||
<Property Name="num" Type="int" Nullable="false" />
|
||||
<Property Name="anno" Type="int" Nullable="false" />
|
||||
<Property Name="Trim" Type="int" />
|
||||
<Property Name="Mese" Type="int" />
|
||||
<Property Name="netto" Type="decimal" Precision="9" Scale="2" Nullable="false" />
|
||||
<Property Name="iva" Type="decimal" Precision="9" Scale="2" Nullable="false" />
|
||||
<Property Name="importo" Type="decimal" Precision="9" Scale="2" Nullable="false" />
|
||||
<Property Name="tipo" Type="nvarchar" MaxLength="50" Nullable="false" />
|
||||
<Property Name="idxCli" Type="int" Nullable="false" />
|
||||
<Property Name="totPagato" Type="money" Nullable="false" />
|
||||
<Property Name="totScadenze" Type="money" Nullable="false" />
|
||||
<Property Name="Descrizione" Type="nvarchar(max)" Nullable="false" />
|
||||
<Property Name="ritenuta" Type="float" Nullable="false" />
|
||||
<Property Name="CostiAss" Type="money" Nullable="false" />
|
||||
</EntityType>
|
||||
<!--Errori trovati durante la generazione:
|
||||
avviso 6002: Nessuna chiave primaria definita per la tabella/visualizzazione 'MedAP.dbo.v_RowTemplate'. La chiave è stata dedotta e la definizione è stata creata come tabella/visualizzazione di sola lettura.-->
|
||||
<EntityType Name="v_RowTemplate">
|
||||
<Key>
|
||||
<PropertyRef Name="importo" />
|
||||
<PropertyRef Name="netto" />
|
||||
<PropertyRef Name="iva" />
|
||||
</Key>
|
||||
<Property Name="IdxRigheFatt" Type="int" />
|
||||
<Property Name="Descrizione" Type="nvarchar(max)" />
|
||||
<Property Name="importo" Type="decimal" Precision="9" Scale="2" Nullable="false" />
|
||||
<Property Name="netto" Type="decimal" Precision="9" Scale="2" Nullable="false" />
|
||||
<Property Name="iva" Type="decimal" Precision="9" Scale="2" Nullable="false" />
|
||||
</EntityType>
|
||||
<Association Name="anagr_elem_doc${EF6530B8-621C-4A01-B6E9-82278E2DA243}">
|
||||
<End Role="Anagr_tipo_elem" Type="Self.Anagr_tipo_elem" Multiplicity="0..1" />
|
||||
<End Role="Anagr_elem_doc" Type="Self.Anagr_elem_doc" Multiplicity="*" />
|
||||
@@ -440,30 +465,6 @@ avviso 6002: Nessuna chiave primaria definita per la tabella/visualizzazione 'Me
|
||||
</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_iva" />
|
||||
</Principal>
|
||||
<Dependent Role="Righe_fatt">
|
||||
<PropertyRef Name="c_iva" />
|
||||
</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_C_iva">
|
||||
<End Role="C_iva" Type="Self.C_iva" Multiplicity="0..1" />
|
||||
<End Role="RigheFatt" Type="Self.RigheFatt" Multiplicity="*" />
|
||||
@@ -546,10 +547,8 @@ avviso 6002: Nessuna chiave primaria definita per la tabella/visualizzazione 'Me
|
||||
<EntitySet Name="Pagamenti" EntityType="Self.Pagamenti" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="Permessi" EntityType="Self.Permessi" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="Permessi2Funzione" EntityType="Self.Permessi2Funzione" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="Righe_fatt" EntityType="Self.Righe_fatt" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="RigheFatt" EntityType="Self.RigheFatt" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="Scadenze" EntityType="Self.Scadenze" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="UTENTE" EntityType="Self.UTENTE" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="Vocabolario" EntityType="Self.Vocabolario" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="Anagr_righe_voci_fatt" EntityType="Self.Anagr_righe_voci_fatt" store:Type="Tables" store:Schema="dbo">
|
||||
@@ -585,6 +584,37 @@ avviso 6002: Nessuna chiave primaria definita per la tabella/visualizzazione 'Me
|
||||
[v_docsExpl].[ritenuta] AS [ritenuta],
|
||||
[v_docsExpl].[CostiAss] AS [CostiAss]
|
||||
FROM [dbo].[v_docsExpl] AS [v_docsExpl]</DefiningQuery>
|
||||
</EntitySet>
|
||||
<EntitySet Name="v_DocTemplate" EntityType="Self.v_DocTemplate" store:Type="Views" store:Schema="dbo">
|
||||
<DefiningQuery>SELECT
|
||||
[v_DocTemplate].[idxDoc] AS [idxDoc],
|
||||
[v_DocTemplate].[emesso] AS [emesso],
|
||||
[v_DocTemplate].[Gruppo] AS [Gruppo],
|
||||
[v_DocTemplate].[RagSoc] AS [RagSoc],
|
||||
[v_DocTemplate].[num] AS [num],
|
||||
[v_DocTemplate].[anno] AS [anno],
|
||||
[v_DocTemplate].[Trim] AS [Trim],
|
||||
[v_DocTemplate].[Mese] AS [Mese],
|
||||
[v_DocTemplate].[netto] AS [netto],
|
||||
[v_DocTemplate].[iva] AS [iva],
|
||||
[v_DocTemplate].[importo] AS [importo],
|
||||
[v_DocTemplate].[tipo] AS [tipo],
|
||||
[v_DocTemplate].[idxCli] AS [idxCli],
|
||||
[v_DocTemplate].[totPagato] AS [totPagato],
|
||||
[v_DocTemplate].[totScadenze] AS [totScadenze],
|
||||
[v_DocTemplate].[Descrizione] AS [Descrizione],
|
||||
[v_DocTemplate].[ritenuta] AS [ritenuta],
|
||||
[v_DocTemplate].[CostiAss] AS [CostiAss]
|
||||
FROM [dbo].[v_DocTemplate] AS [v_DocTemplate]</DefiningQuery>
|
||||
</EntitySet>
|
||||
<EntitySet Name="v_RowTemplate" EntityType="Self.v_RowTemplate" store:Type="Views" store:Schema="dbo">
|
||||
<DefiningQuery>SELECT
|
||||
[v_RowTemplate].[IdxRigheFatt] AS [IdxRigheFatt],
|
||||
[v_RowTemplate].[Descrizione] AS [Descrizione],
|
||||
[v_RowTemplate].[importo] AS [importo],
|
||||
[v_RowTemplate].[netto] AS [netto],
|
||||
[v_RowTemplate].[iva] AS [iva]
|
||||
FROM [dbo].[v_RowTemplate] AS [v_RowTemplate]</DefiningQuery>
|
||||
</EntitySet>
|
||||
<AssociationSet Name="anagr_elem_doc${EF6530B8-621C-4A01-B6E9-82278E2DA243}" Association="Self.anagr_elem_doc${EF6530B8-621C-4A01-B6E9-82278E2DA243}">
|
||||
<End Role="Anagr_tipo_elem" EntitySet="Anagr_tipo_elem" />
|
||||
@@ -618,14 +648,6 @@ avviso 6002: Nessuna chiave primaria definita per la tabella/visualizzazione 'Me
|
||||
<End Role="Permessi" EntitySet="Permessi" />
|
||||
<End Role="Permessi2Funzione" EntitySet="Permessi2Funzione" />
|
||||
</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_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_C_iva" Association="Self.FK_RigheFatt_C_iva">
|
||||
<End Role="C_iva" EntitySet="C_iva" />
|
||||
<End Role="RigheFatt" EntitySet="RigheFatt" />
|
||||
@@ -714,7 +736,6 @@ avviso 6002: Nessuna chiave primaria definita per la tabella/visualizzazione 'Me
|
||||
<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">
|
||||
@@ -797,7 +818,6 @@ avviso 6002: Nessuna chiave primaria definita per la tabella/visualizzazione 'Me
|
||||
<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" />
|
||||
@@ -880,26 +900,6 @@ avviso 6002: Nessuna chiave primaria definita per la tabella/visualizzazione 'Me
|
||||
<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" />
|
||||
@@ -928,16 +928,6 @@ avviso 6002: Nessuna chiave primaria definita per la tabella/visualizzazione 'Me
|
||||
<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" />
|
||||
@@ -991,18 +981,6 @@ avviso 6002: Nessuna chiave primaria definita per la tabella/visualizzazione 'Me
|
||||
</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="*" />
|
||||
@@ -1099,18 +1077,6 @@ avviso 6002: Nessuna chiave primaria definita per la tabella/visualizzazione 'Me
|
||||
</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="*" />
|
||||
@@ -1181,10 +1147,8 @@ avviso 6002: Nessuna chiave primaria definita per la tabella/visualizzazione 'Me
|
||||
<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" />
|
||||
@@ -1192,10 +1156,6 @@ avviso 6002: Nessuna chiave primaria definita per la tabella/visualizzazione 'Me
|
||||
<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" />
|
||||
@@ -1228,10 +1188,6 @@ avviso 6002: Nessuna chiave primaria definita per la tabella/visualizzazione 'Me
|
||||
<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" />
|
||||
@@ -1249,6 +1205,8 @@ avviso 6002: Nessuna chiave primaria definita per la tabella/visualizzazione 'Me
|
||||
<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>
|
||||
@@ -1287,6 +1245,55 @@ avviso 6002: Nessuna chiave primaria definita per la tabella/visualizzazione 'Me
|
||||
<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>
|
||||
</edmx:ConceptualModels>
|
||||
<!-- C-S mapping content -->
|
||||
@@ -1513,25 +1520,6 @@ avviso 6002: Nessuna chiave primaria definita per la tabella/visualizzazione 'Me
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
<EntitySetMapping Name="Righe_fatt">
|
||||
<EntityTypeMapping TypeName="MAPModel.Righe_fatt">
|
||||
<MappingFragment StoreEntitySet="Righe_fatt">
|
||||
<ScalarProperty Name="Id" ColumnName="Id" />
|
||||
<ScalarProperty Name="idxDoc" ColumnName="idxDoc" />
|
||||
<ScalarProperty Name="Descrizione" ColumnName="Descrizione" />
|
||||
<ScalarProperty Name="um" ColumnName="um" />
|
||||
<ScalarProperty Name="prezzo_um" ColumnName="prezzo/um" />
|
||||
<ScalarProperty Name="qta" ColumnName="qta" />
|
||||
<ScalarProperty Name="sconto" ColumnName="sconto" />
|
||||
<ScalarProperty Name="c_iva" ColumnName="c_iva" />
|
||||
<ScalarProperty Name="no_ritenuta" ColumnName="no_ritenuta" />
|
||||
<ScalarProperty Name="valuta" ColumnName="valuta" />
|
||||
<ScalarProperty Name="Id_fatt" ColumnName="Id_fatt" />
|
||||
<ScalarProperty Name="codExt" ColumnName="codExt" />
|
||||
<ScalarProperty Name="quotaProj" ColumnName="quotaProj" />
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
<EntitySetMapping Name="RigheFatt">
|
||||
<EntityTypeMapping TypeName="MAPModel.RigheFatt">
|
||||
<MappingFragment StoreEntitySet="RigheFatt">
|
||||
@@ -1558,17 +1546,6 @@ avviso 6002: Nessuna chiave primaria definita per la tabella/visualizzazione 'Me
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
<EntitySetMapping Name="sysdiagrams">
|
||||
<EntityTypeMapping TypeName="MAPModel.sysdiagrams">
|
||||
<MappingFragment StoreEntitySet="sysdiagrams">
|
||||
<ScalarProperty Name="name" ColumnName="name" />
|
||||
<ScalarProperty Name="principal_id" ColumnName="principal_id" />
|
||||
<ScalarProperty Name="diagram_id" ColumnName="diagram_id" />
|
||||
<ScalarProperty Name="version" ColumnName="version" />
|
||||
<ScalarProperty Name="definition" ColumnName="definition" />
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
<EntitySetMapping Name="UTENTE">
|
||||
<EntityTypeMapping TypeName="MAPModel.UTENTE">
|
||||
<MappingFragment StoreEntitySet="UTENTE">
|
||||
@@ -1633,6 +1610,41 @@ avviso 6002: Nessuna chiave primaria definita per la tabella/visualizzazione 'Me
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
<EntitySetMapping Name="DocTemplate">
|
||||
<EntityTypeMapping TypeName="MAPModel.DocTemplate">
|
||||
<MappingFragment StoreEntitySet="v_DocTemplate">
|
||||
<ScalarProperty Name="CostiAss" ColumnName="CostiAss" />
|
||||
<ScalarProperty Name="ritenuta" ColumnName="ritenuta" />
|
||||
<ScalarProperty Name="Descrizione" ColumnName="Descrizione" />
|
||||
<ScalarProperty Name="totScadenze" ColumnName="totScadenze" />
|
||||
<ScalarProperty Name="totPagato" ColumnName="totPagato" />
|
||||
<ScalarProperty Name="idxCli" ColumnName="idxCli" />
|
||||
<ScalarProperty Name="tipo" ColumnName="tipo" />
|
||||
<ScalarProperty Name="importo" ColumnName="importo" />
|
||||
<ScalarProperty Name="iva" ColumnName="iva" />
|
||||
<ScalarProperty Name="netto" ColumnName="netto" />
|
||||
<ScalarProperty Name="Mese" ColumnName="Mese" />
|
||||
<ScalarProperty Name="Trim" ColumnName="Trim" />
|
||||
<ScalarProperty Name="anno" ColumnName="anno" />
|
||||
<ScalarProperty Name="num" ColumnName="num" />
|
||||
<ScalarProperty Name="RagSoc" ColumnName="RagSoc" />
|
||||
<ScalarProperty Name="Gruppo" ColumnName="Gruppo" />
|
||||
<ScalarProperty Name="emesso" ColumnName="emesso" />
|
||||
<ScalarProperty Name="idxDoc" ColumnName="idxDoc" />
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
<EntitySetMapping Name="RowTemplate">
|
||||
<EntityTypeMapping TypeName="MAPModel.RowTemplate">
|
||||
<MappingFragment StoreEntitySet="v_RowTemplate">
|
||||
<ScalarProperty Name="iva" ColumnName="iva" />
|
||||
<ScalarProperty Name="netto" ColumnName="netto" />
|
||||
<ScalarProperty Name="importo" ColumnName="importo" />
|
||||
<ScalarProperty Name="Descrizione" ColumnName="Descrizione" />
|
||||
<ScalarProperty Name="IdxRigheFatt" ColumnName="IdxRigheFatt" />
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
</EntityContainerMapping>
|
||||
</Mapping>
|
||||
</edmx:Mappings>
|
||||
|
||||
@@ -26,15 +26,12 @@
|
||||
<EntityTypeShape EntityType="MAPModel.Pagamenti" Width="1.5" PointX="5.25" PointY="8.5" IsExpanded="true" />
|
||||
<EntityTypeShape EntityType="MAPModel.Permessi" Width="1.5" PointX="13.75" PointY="6" IsExpanded="true" />
|
||||
<EntityTypeShape EntityType="MAPModel.Permessi2Funzione" Width="1.5" PointX="16" PointY="6.25" IsExpanded="true" />
|
||||
<EntityTypeShape EntityType="MAPModel.Righe_fatt" Width="1.5" PointX="8.25" PointY="7.75" IsExpanded="true" />
|
||||
<EntityTypeShape EntityType="MAPModel.RigheFatt" Width="1.5" PointX="5.25" PointY="12.125" IsExpanded="true" />
|
||||
<EntityTypeShape EntityType="MAPModel.Scadenze" Width="1.5" PointX="5.25" PointY="19.875" IsExpanded="true" />
|
||||
<EntityTypeShape EntityType="MAPModel.sysdiagrams" Width="1.5" PointX="0.75" PointY="15.75" IsExpanded="true" />
|
||||
<EntityTypeShape EntityType="MAPModel.UTENTE" Width="1.5" PointX="11" PointY="1" IsExpanded="true" />
|
||||
<EntityTypeShape EntityType="MAPModel.Vocabolario" Width="1.5" PointX="13" PointY="10.875" IsExpanded="true" />
|
||||
<EntityTypeShape EntityType="MAPModel.Anagr_righe_voci_fatt" Width="1.5" PointX="15.75" PointY="9.75" IsExpanded="true" />
|
||||
<AssociationConnector Association="MAPModel.anagr_elem_doc__EF6530B8_621C_4A01_B6E9_82278E2DA243_" ManuallyRouted="false" />
|
||||
<AssociationConnector Association="MAPModel.FK_Righe_fatt_C_iva" ManuallyRouted="false" />
|
||||
<AssociationConnector Association="MAPModel.FK_RigheFatt_C_iva" ManuallyRouted="false" />
|
||||
<AssociationConnector Association="MAPModel.FK_UTENTE_CDC" ManuallyRouted="false" />
|
||||
<AssociationConnector Association="MAPModel.FK_Fatture_Clienti" ManuallyRouted="false" />
|
||||
@@ -43,12 +40,13 @@
|
||||
<AssociationConnector Association="MAPModel.FK_DIRITTI_MODULO" ManuallyRouted="false" />
|
||||
<AssociationConnector Association="MAPModel.FK_DIRITTI_UTENTE" ManuallyRouted="false" />
|
||||
<AssociationConnector Association="MAPModel.FK_Pagamenti_Fatture" ManuallyRouted="false" />
|
||||
<AssociationConnector Association="MAPModel.FK_Righe_fatt_Fatture" ManuallyRouted="false" />
|
||||
<AssociationConnector Association="MAPModel.FK_RigheFatt_Fatture" ManuallyRouted="false" />
|
||||
<AssociationConnector Association="MAPModel.FK_Scadenze_Fatture" ManuallyRouted="false" />
|
||||
<AssociationConnector Association="MAPModel.FK_Vocabolario_Lingue" ManuallyRouted="false" />
|
||||
<AssociationConnector Association="MAPModel.FK_Permessi2Funzione_Permessi" ManuallyRouted="false" />
|
||||
<EntityTypeShape EntityType="MAPModel.Documenti" Width="1.5" PointX="12.375" PointY="16.75" />
|
||||
<EntityTypeShape EntityType="MAPModel.Documenti" Width="1.5" PointX="11.25" PointY="16.75" />
|
||||
<EntityTypeShape EntityType="MAPModel.DocTemplate" Width="1.5" PointX="13.375" PointY="16.75" />
|
||||
<EntityTypeShape EntityType="MAPModel.RowTemplate" Width="1.5" PointX="15.25" PointY="16.75" />
|
||||
</Diagram>
|
||||
</edmx:Diagrams>
|
||||
</edmx:Designer>
|
||||
|
||||
@@ -17,7 +17,6 @@ namespace MedAP_data
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
|
||||
public C_iva()
|
||||
{
|
||||
this.Righe_fatt = new HashSet<Righe_fatt>();
|
||||
this.RigheFatt = new HashSet<RigheFatt>();
|
||||
}
|
||||
|
||||
@@ -25,8 +24,6 @@ namespace MedAP_data
|
||||
public Nullable<double> iva { get; set; }
|
||||
public string descrizione { get; set; }
|
||||
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<Righe_fatt> Righe_fatt { get; set; }
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<RigheFatt> RigheFatt { get; set; }
|
||||
}
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Codice generato da un modello.
|
||||
//
|
||||
// Le modifiche manuali a questo file potrebbero causare un comportamento imprevisto dell'applicazione.
|
||||
// Se il codice viene rigenerato, le modifiche manuali al file verranno sovrascritte.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace MedAP_data
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public partial class DocTemplate
|
||||
{
|
||||
public int idxDoc { get; set; }
|
||||
public Nullable<System.DateTime> emesso { get; set; }
|
||||
public string Gruppo { get; set; }
|
||||
public string RagSoc { get; set; }
|
||||
public int num { get; set; }
|
||||
public int anno { get; set; }
|
||||
public Nullable<int> Trim { get; set; }
|
||||
public Nullable<int> Mese { get; set; }
|
||||
public decimal netto { get; set; }
|
||||
public decimal iva { get; set; }
|
||||
public decimal importo { get; set; }
|
||||
public string tipo { get; set; }
|
||||
public int idxCli { get; set; }
|
||||
public decimal totPagato { get; set; }
|
||||
public decimal totScadenze { get; set; }
|
||||
public string Descrizione { get; set; }
|
||||
public double ritenuta { get; set; }
|
||||
public decimal CostiAss { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -18,7 +18,6 @@ namespace MedAP_data
|
||||
public Fatture()
|
||||
{
|
||||
this.Pagamenti = new HashSet<Pagamenti>();
|
||||
this.Righe_fatt = new HashSet<Righe_fatt>();
|
||||
this.RigheFatt = new HashSet<RigheFatt>();
|
||||
this.Scadenze = new HashSet<Scadenze>();
|
||||
}
|
||||
@@ -39,8 +38,6 @@ namespace MedAP_data
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<Pagamenti> Pagamenti { get; set; }
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<Righe_fatt> Righe_fatt { get; set; }
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<RigheFatt> RigheFatt { get; set; }
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<Scadenze> Scadenze { get; set; }
|
||||
|
||||
@@ -63,7 +63,24 @@ namespace MedAP_data
|
||||
return query.Count();
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// elenco completo
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static IEnumerable<DocTemplate> ElencoDocTemplate()
|
||||
{
|
||||
var result = from r in ctx.DocTemplate.OrderBy(s => s.Descrizione) select r;
|
||||
return result;
|
||||
}
|
||||
/// <summary>
|
||||
/// elenco completo
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static IEnumerable<RowTemplate> ElencoRowTemplate()
|
||||
{
|
||||
var result = from r in ctx.RowTemplate.OrderBy(s => s.Descrizione) select r;
|
||||
return result;
|
||||
}
|
||||
/// <summary>
|
||||
/// elenco completo
|
||||
/// </summary>
|
||||
|
||||
@@ -91,10 +91,6 @@
|
||||
<Compile Include="Clienti.cs">
|
||||
<DependentUpon>APModel.tt</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Documenti.cs">
|
||||
<DependentUpon>APModel.tt</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="MedAPModel.cs" />
|
||||
<Compile Include="Contributi.cs">
|
||||
<DependentUpon>APModel.tt</DependentUpon>
|
||||
</Compile>
|
||||
@@ -107,6 +103,12 @@
|
||||
<Compile Include="DIRITTI.cs">
|
||||
<DependentUpon>APModel.tt</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="DocTemplate.cs">
|
||||
<DependentUpon>APModel.tt</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Documenti.cs">
|
||||
<DependentUpon>APModel.tt</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Fatture.cs">
|
||||
<DependentUpon>APModel.tt</DependentUpon>
|
||||
</Compile>
|
||||
@@ -122,6 +124,7 @@
|
||||
<Compile Include="ListValues.cs">
|
||||
<DependentUpon>APModel.tt</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="MedAPModel.cs" />
|
||||
<Compile Include="MODULO.cs">
|
||||
<DependentUpon>APModel.tt</DependentUpon>
|
||||
</Compile>
|
||||
@@ -138,15 +141,12 @@
|
||||
<Compile Include="RigheFatt.cs">
|
||||
<DependentUpon>APModel.tt</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Righe_fatt.cs">
|
||||
<Compile Include="RowTemplate.cs">
|
||||
<DependentUpon>APModel.tt</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Scadenze.cs">
|
||||
<DependentUpon>APModel.tt</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="sysdiagrams.cs">
|
||||
<DependentUpon>APModel.tt</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="UTENTE.cs">
|
||||
<DependentUpon>APModel.tt</DependentUpon>
|
||||
</Compile>
|
||||
|
||||
@@ -1,34 +0,0 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Codice generato da un modello.
|
||||
//
|
||||
// Le modifiche manuali a questo file potrebbero causare un comportamento imprevisto dell'applicazione.
|
||||
// Se il codice viene rigenerato, le modifiche manuali al file verranno sovrascritte.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace MedAP_data
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public partial class Righe_fatt
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public Nullable<int> idxDoc { get; set; }
|
||||
public string Descrizione { get; set; }
|
||||
public string um { get; set; }
|
||||
public Nullable<decimal> prezzo_um { get; set; }
|
||||
public float qta { get; set; }
|
||||
public float sconto { get; set; }
|
||||
public Nullable<int> c_iva { get; set; }
|
||||
public bool no_ritenuta { get; set; }
|
||||
public string valuta { get; set; }
|
||||
public Nullable<int> Id_fatt { get; set; }
|
||||
public string codExt { get; set; }
|
||||
public double quotaProj { get; set; }
|
||||
|
||||
public virtual C_iva C_iva1 { get; set; }
|
||||
public virtual Fatture Fatture { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -12,12 +12,12 @@ namespace MedAP_data
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public partial class sysdiagrams
|
||||
public partial class RowTemplate
|
||||
{
|
||||
public string name { get; set; }
|
||||
public int principal_id { get; set; }
|
||||
public int diagram_id { get; set; }
|
||||
public Nullable<int> version { get; set; }
|
||||
public byte[] definition { get; set; }
|
||||
public Nullable<int> IdxRigheFatt { get; set; }
|
||||
public string Descrizione { get; set; }
|
||||
public decimal importo { get; set; }
|
||||
public decimal netto { get; set; }
|
||||
public decimal iva { get; set; }
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
@@ -1 +1 @@
|
||||
30338fa98c0593a3698e3167cbb08a45e46823b0
|
||||
f130c0723100e2b65c168f6271f26212ad7fcdc5
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -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>
|
||||
@@ -221,25 +221,6 @@
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
<EntitySetMapping Name="Righe_fatt">
|
||||
<EntityTypeMapping TypeName="MAPModel.Righe_fatt">
|
||||
<MappingFragment StoreEntitySet="Righe_fatt">
|
||||
<ScalarProperty Name="Id" ColumnName="Id" />
|
||||
<ScalarProperty Name="idxDoc" ColumnName="idxDoc" />
|
||||
<ScalarProperty Name="Descrizione" ColumnName="Descrizione" />
|
||||
<ScalarProperty Name="um" ColumnName="um" />
|
||||
<ScalarProperty Name="prezzo_um" ColumnName="prezzo/um" />
|
||||
<ScalarProperty Name="qta" ColumnName="qta" />
|
||||
<ScalarProperty Name="sconto" ColumnName="sconto" />
|
||||
<ScalarProperty Name="c_iva" ColumnName="c_iva" />
|
||||
<ScalarProperty Name="no_ritenuta" ColumnName="no_ritenuta" />
|
||||
<ScalarProperty Name="valuta" ColumnName="valuta" />
|
||||
<ScalarProperty Name="Id_fatt" ColumnName="Id_fatt" />
|
||||
<ScalarProperty Name="codExt" ColumnName="codExt" />
|
||||
<ScalarProperty Name="quotaProj" ColumnName="quotaProj" />
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
<EntitySetMapping Name="RigheFatt">
|
||||
<EntityTypeMapping TypeName="MAPModel.RigheFatt">
|
||||
<MappingFragment StoreEntitySet="RigheFatt">
|
||||
@@ -266,17 +247,6 @@
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
<EntitySetMapping Name="sysdiagrams">
|
||||
<EntityTypeMapping TypeName="MAPModel.sysdiagrams">
|
||||
<MappingFragment StoreEntitySet="sysdiagrams">
|
||||
<ScalarProperty Name="name" ColumnName="name" />
|
||||
<ScalarProperty Name="principal_id" ColumnName="principal_id" />
|
||||
<ScalarProperty Name="diagram_id" ColumnName="diagram_id" />
|
||||
<ScalarProperty Name="version" ColumnName="version" />
|
||||
<ScalarProperty Name="definition" ColumnName="definition" />
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
<EntitySetMapping Name="UTENTE">
|
||||
<EntityTypeMapping TypeName="MAPModel.UTENTE">
|
||||
<MappingFragment StoreEntitySet="UTENTE">
|
||||
@@ -341,5 +311,40 @@
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
<EntitySetMapping Name="DocTemplate">
|
||||
<EntityTypeMapping TypeName="MAPModel.DocTemplate">
|
||||
<MappingFragment StoreEntitySet="v_DocTemplate">
|
||||
<ScalarProperty Name="CostiAss" ColumnName="CostiAss" />
|
||||
<ScalarProperty Name="ritenuta" ColumnName="ritenuta" />
|
||||
<ScalarProperty Name="Descrizione" ColumnName="Descrizione" />
|
||||
<ScalarProperty Name="totScadenze" ColumnName="totScadenze" />
|
||||
<ScalarProperty Name="totPagato" ColumnName="totPagato" />
|
||||
<ScalarProperty Name="idxCli" ColumnName="idxCli" />
|
||||
<ScalarProperty Name="tipo" ColumnName="tipo" />
|
||||
<ScalarProperty Name="importo" ColumnName="importo" />
|
||||
<ScalarProperty Name="iva" ColumnName="iva" />
|
||||
<ScalarProperty Name="netto" ColumnName="netto" />
|
||||
<ScalarProperty Name="Mese" ColumnName="Mese" />
|
||||
<ScalarProperty Name="Trim" ColumnName="Trim" />
|
||||
<ScalarProperty Name="anno" ColumnName="anno" />
|
||||
<ScalarProperty Name="num" ColumnName="num" />
|
||||
<ScalarProperty Name="RagSoc" ColumnName="RagSoc" />
|
||||
<ScalarProperty Name="Gruppo" ColumnName="Gruppo" />
|
||||
<ScalarProperty Name="emesso" ColumnName="emesso" />
|
||||
<ScalarProperty Name="idxDoc" ColumnName="idxDoc" />
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
<EntitySetMapping Name="RowTemplate">
|
||||
<EntityTypeMapping TypeName="MAPModel.RowTemplate">
|
||||
<MappingFragment StoreEntitySet="v_RowTemplate">
|
||||
<ScalarProperty Name="iva" ColumnName="iva" />
|
||||
<ScalarProperty Name="netto" ColumnName="netto" />
|
||||
<ScalarProperty Name="importo" ColumnName="importo" />
|
||||
<ScalarProperty Name="Descrizione" ColumnName="Descrizione" />
|
||||
<ScalarProperty Name="IdxRigheFatt" ColumnName="IdxRigheFatt" />
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
</EntityContainerMapping>
|
||||
</Mapping>
|
||||
@@ -222,24 +222,6 @@ avviso 6002: Nessuna chiave primaria definita per la tabella/visualizzazione 'Me
|
||||
<Property Name="COD_FUNZIONE" Type="nvarchar" MaxLength="31" Nullable="false" />
|
||||
<Property Name="READWRITE" Type="char" MaxLength="1" />
|
||||
</EntityType>
|
||||
<EntityType Name="Righe_fatt">
|
||||
<Key>
|
||||
<PropertyRef Name="Id" />
|
||||
</Key>
|
||||
<Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
||||
<Property Name="idxDoc" Type="int" />
|
||||
<Property Name="Descrizione" Type="nvarchar" MaxLength="1500" />
|
||||
<Property Name="um" Type="nvarchar" MaxLength="50" />
|
||||
<Property Name="prezzo/um" Type="money" />
|
||||
<Property Name="qta" Type="real" Nullable="false" />
|
||||
<Property Name="sconto" Type="real" Nullable="false" />
|
||||
<Property Name="c_iva" Type="int" />
|
||||
<Property Name="no_ritenuta" Type="bit" Nullable="false" />
|
||||
<Property Name="valuta" Type="nvarchar" MaxLength="255" Nullable="false" />
|
||||
<Property Name="Id_fatt" Type="int" StoreGeneratedPattern="Computed" />
|
||||
<Property Name="codExt" Type="nvarchar" MaxLength="50" Nullable="false" />
|
||||
<Property Name="quotaProj" Type="float" Nullable="false" />
|
||||
</EntityType>
|
||||
<EntityType Name="RigheFatt">
|
||||
<Key>
|
||||
<PropertyRef Name="IdxRigheFatt" />
|
||||
@@ -265,16 +247,6 @@ avviso 6002: Nessuna chiave primaria definita per la tabella/visualizzazione 'Me
|
||||
<Property Name="importo" Type="money" />
|
||||
<Property Name="note" Type="nvarchar" MaxLength="50" />
|
||||
</EntityType>
|
||||
<EntityType Name="sysdiagrams">
|
||||
<Key>
|
||||
<PropertyRef Name="diagram_id" />
|
||||
</Key>
|
||||
<Property Name="name" Type="nvarchar" MaxLength="128" Nullable="false" />
|
||||
<Property Name="principal_id" Type="int" Nullable="false" />
|
||||
<Property Name="diagram_id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
||||
<Property Name="version" Type="int" />
|
||||
<Property Name="definition" Type="varbinary(max)" />
|
||||
</EntityType>
|
||||
<EntityType Name="UTENTE">
|
||||
<Key>
|
||||
<PropertyRef Name="USER_NAME" />
|
||||
@@ -339,6 +311,59 @@ avviso 6002: Nessuna chiave primaria definita per la tabella/visualizzazione 'Me
|
||||
<Property Name="ritenuta" Type="float" Nullable="false" />
|
||||
<Property Name="CostiAss" Type="money" Nullable="false" />
|
||||
</EntityType>
|
||||
<!--Errori trovati durante la generazione:
|
||||
avviso 6002: Nessuna chiave primaria definita per la tabella/visualizzazione 'MedAP.dbo.v_DocTemplate'. La chiave è stata dedotta e la definizione è stata creata come tabella/visualizzazione di sola lettura.-->
|
||||
<EntityType Name="v_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="int" Nullable="false" />
|
||||
<Property Name="emesso" Type="date" />
|
||||
<Property Name="Gruppo" Type="nvarchar" MaxLength="50" Nullable="false" />
|
||||
<Property Name="RagSoc" Type="nvarchar" MaxLength="50" Nullable="false" />
|
||||
<Property Name="num" Type="int" Nullable="false" />
|
||||
<Property Name="anno" Type="int" Nullable="false" />
|
||||
<Property Name="Trim" Type="int" />
|
||||
<Property Name="Mese" Type="int" />
|
||||
<Property Name="netto" Type="decimal" Precision="9" Scale="2" Nullable="false" />
|
||||
<Property Name="iva" Type="decimal" Precision="9" Scale="2" Nullable="false" />
|
||||
<Property Name="importo" Type="decimal" Precision="9" Scale="2" Nullable="false" />
|
||||
<Property Name="tipo" Type="nvarchar" MaxLength="50" Nullable="false" />
|
||||
<Property Name="idxCli" Type="int" Nullable="false" />
|
||||
<Property Name="totPagato" Type="money" Nullable="false" />
|
||||
<Property Name="totScadenze" Type="money" Nullable="false" />
|
||||
<Property Name="Descrizione" Type="nvarchar(max)" Nullable="false" />
|
||||
<Property Name="ritenuta" Type="float" Nullable="false" />
|
||||
<Property Name="CostiAss" Type="money" Nullable="false" />
|
||||
</EntityType>
|
||||
<!--Errori trovati durante la generazione:
|
||||
avviso 6002: Nessuna chiave primaria definita per la tabella/visualizzazione 'MedAP.dbo.v_RowTemplate'. La chiave è stata dedotta e la definizione è stata creata come tabella/visualizzazione di sola lettura.-->
|
||||
<EntityType Name="v_RowTemplate">
|
||||
<Key>
|
||||
<PropertyRef Name="importo" />
|
||||
<PropertyRef Name="netto" />
|
||||
<PropertyRef Name="iva" />
|
||||
</Key>
|
||||
<Property Name="IdxRigheFatt" Type="int" />
|
||||
<Property Name="Descrizione" Type="nvarchar(max)" />
|
||||
<Property Name="importo" Type="decimal" Precision="9" Scale="2" Nullable="false" />
|
||||
<Property Name="netto" Type="decimal" Precision="9" Scale="2" Nullable="false" />
|
||||
<Property Name="iva" Type="decimal" Precision="9" Scale="2" Nullable="false" />
|
||||
</EntityType>
|
||||
<Association Name="anagr_elem_doc${EF6530B8-621C-4A01-B6E9-82278E2DA243}">
|
||||
<End Role="Anagr_tipo_elem" Type="Self.Anagr_tipo_elem" Multiplicity="0..1" />
|
||||
<End Role="Anagr_elem_doc" Type="Self.Anagr_elem_doc" Multiplicity="*" />
|
||||
@@ -435,30 +460,6 @@ avviso 6002: Nessuna chiave primaria definita per la tabella/visualizzazione 'Me
|
||||
</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_iva" />
|
||||
</Principal>
|
||||
<Dependent Role="Righe_fatt">
|
||||
<PropertyRef Name="c_iva" />
|
||||
</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_C_iva">
|
||||
<End Role="C_iva" Type="Self.C_iva" Multiplicity="0..1" />
|
||||
<End Role="RigheFatt" Type="Self.RigheFatt" Multiplicity="*" />
|
||||
@@ -541,10 +542,8 @@ avviso 6002: Nessuna chiave primaria definita per la tabella/visualizzazione 'Me
|
||||
<EntitySet Name="Pagamenti" EntityType="Self.Pagamenti" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="Permessi" EntityType="Self.Permessi" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="Permessi2Funzione" EntityType="Self.Permessi2Funzione" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="Righe_fatt" EntityType="Self.Righe_fatt" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="RigheFatt" EntityType="Self.RigheFatt" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="Scadenze" EntityType="Self.Scadenze" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="UTENTE" EntityType="Self.UTENTE" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="Vocabolario" EntityType="Self.Vocabolario" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="Anagr_righe_voci_fatt" EntityType="Self.Anagr_righe_voci_fatt" store:Type="Tables" store:Schema="dbo">
|
||||
@@ -581,6 +580,37 @@ avviso 6002: Nessuna chiave primaria definita per la tabella/visualizzazione 'Me
|
||||
[v_docsExpl].[CostiAss] AS [CostiAss]
|
||||
FROM [dbo].[v_docsExpl] AS [v_docsExpl]</DefiningQuery>
|
||||
</EntitySet>
|
||||
<EntitySet Name="v_DocTemplate" EntityType="Self.v_DocTemplate" store:Type="Views" store:Schema="dbo">
|
||||
<DefiningQuery>SELECT
|
||||
[v_DocTemplate].[idxDoc] AS [idxDoc],
|
||||
[v_DocTemplate].[emesso] AS [emesso],
|
||||
[v_DocTemplate].[Gruppo] AS [Gruppo],
|
||||
[v_DocTemplate].[RagSoc] AS [RagSoc],
|
||||
[v_DocTemplate].[num] AS [num],
|
||||
[v_DocTemplate].[anno] AS [anno],
|
||||
[v_DocTemplate].[Trim] AS [Trim],
|
||||
[v_DocTemplate].[Mese] AS [Mese],
|
||||
[v_DocTemplate].[netto] AS [netto],
|
||||
[v_DocTemplate].[iva] AS [iva],
|
||||
[v_DocTemplate].[importo] AS [importo],
|
||||
[v_DocTemplate].[tipo] AS [tipo],
|
||||
[v_DocTemplate].[idxCli] AS [idxCli],
|
||||
[v_DocTemplate].[totPagato] AS [totPagato],
|
||||
[v_DocTemplate].[totScadenze] AS [totScadenze],
|
||||
[v_DocTemplate].[Descrizione] AS [Descrizione],
|
||||
[v_DocTemplate].[ritenuta] AS [ritenuta],
|
||||
[v_DocTemplate].[CostiAss] AS [CostiAss]
|
||||
FROM [dbo].[v_DocTemplate] AS [v_DocTemplate]</DefiningQuery>
|
||||
</EntitySet>
|
||||
<EntitySet Name="v_RowTemplate" EntityType="Self.v_RowTemplate" store:Type="Views" store:Schema="dbo">
|
||||
<DefiningQuery>SELECT
|
||||
[v_RowTemplate].[IdxRigheFatt] AS [IdxRigheFatt],
|
||||
[v_RowTemplate].[Descrizione] AS [Descrizione],
|
||||
[v_RowTemplate].[importo] AS [importo],
|
||||
[v_RowTemplate].[netto] AS [netto],
|
||||
[v_RowTemplate].[iva] AS [iva]
|
||||
FROM [dbo].[v_RowTemplate] AS [v_RowTemplate]</DefiningQuery>
|
||||
</EntitySet>
|
||||
<AssociationSet Name="anagr_elem_doc${EF6530B8-621C-4A01-B6E9-82278E2DA243}" Association="Self.anagr_elem_doc${EF6530B8-621C-4A01-B6E9-82278E2DA243}">
|
||||
<End Role="Anagr_tipo_elem" EntitySet="Anagr_tipo_elem" />
|
||||
<End Role="Anagr_elem_doc" EntitySet="Anagr_elem_doc" />
|
||||
@@ -613,14 +643,6 @@ avviso 6002: Nessuna chiave primaria definita per la tabella/visualizzazione 'Me
|
||||
<End Role="Permessi" EntitySet="Permessi" />
|
||||
<End Role="Permessi2Funzione" EntitySet="Permessi2Funzione" />
|
||||
</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_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_C_iva" Association="Self.FK_RigheFatt_C_iva">
|
||||
<End Role="C_iva" EntitySet="C_iva" />
|
||||
<End Role="RigheFatt" EntitySet="RigheFatt" />
|
||||
|
||||
Reference in New Issue
Block a user