diff --git a/.vs/MedAP/v15/.suo b/.vs/MedAP/v15/.suo
index 3006387..4bae1a2 100644
Binary files a/.vs/MedAP/v15/.suo and b/.vs/MedAP/v15/.suo differ
diff --git a/.vs/MedAP/v15/Server/sqlite3/storage.ide b/.vs/MedAP/v15/Server/sqlite3/storage.ide
index 34af77f..6a3ed77 100644
Binary files a/.vs/MedAP/v15/Server/sqlite3/storage.ide and b/.vs/MedAP/v15/Server/sqlite3/storage.ide differ
diff --git a/.vs/MedAP/v15/Server/sqlite3/storage.ide-wal b/.vs/MedAP/v15/Server/sqlite3/storage.ide-wal
index 986e72e..57bec8c 100644
Binary files a/.vs/MedAP/v15/Server/sqlite3/storage.ide-wal and b/.vs/MedAP/v15/Server/sqlite3/storage.ide-wal differ
diff --git a/MedAP/DocArchive.aspx.cs b/MedAP/DocArchive.aspx.cs
index c45bba0..a1313ba 100644
--- a/MedAP/DocArchive.aspx.cs
+++ b/MedAP/DocArchive.aspx.cs
@@ -97,7 +97,7 @@ namespace MedAP
case ucEvType.ReqUpdateParent:
mod_DocsArchive.searchVal = mod_searchParam.searchVal;
mod_DocsArchive.tipoDoc = mod_searchParam.tipoDoc;
- mod_DocsArchive.idxCli = mod_searchParam.idxCli;
+ mod_DocsArchive.idxCli = mod_ElencoClienti.idxCliSel;
mod_DocsArchive.aperta = mod_searchParam.aperta;
mod_DocsArchive.doUpdate();
break;
diff --git a/MedAP/WebUserControl/mod_DocsDetail.ascx b/MedAP/WebUserControl/mod_DocsDetail.ascx
index ca2144a..fe48a73 100644
--- a/MedAP/WebUserControl/mod_DocsDetail.ascx
+++ b/MedAP/WebUserControl/mod_DocsDetail.ascx
@@ -293,7 +293,7 @@
-
+
@@ -392,12 +392,18 @@
-
+
-
+
+
+
+
+
+
+
@@ -417,9 +423,6 @@
- <%----%>
diff --git a/MedAP/WebUserControl/mod_DocsDetail.ascx.designer.cs b/MedAP/WebUserControl/mod_DocsDetail.ascx.designer.cs
index 50d9517..8ac7c81 100644
--- a/MedAP/WebUserControl/mod_DocsDetail.ascx.designer.cs
+++ b/MedAP/WebUserControl/mod_DocsDetail.ascx.designer.cs
@@ -93,6 +93,15 @@ namespace MedAP.WebUserControl {
///
protected global::System.Web.UI.WebControls.ObjectDataSource odsRighe;
+ ///
+ /// Controllo odsRigheOld.
+ ///
+ ///
+ /// Campo generato automaticamente.
+ /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ ///
+ protected global::System.Web.UI.WebControls.ObjectDataSource odsRigheOld;
+
///
/// Controllo odsIva.
///
diff --git a/MedAP/WebUserControl/mod_ElencoClienti.ascx b/MedAP/WebUserControl/mod_ElencoClienti.ascx
index e913c38..e930bff 100644
--- a/MedAP/WebUserControl/mod_ElencoClienti.ascx
+++ b/MedAP/WebUserControl/mod_ElencoClienti.ascx
@@ -5,8 +5,10 @@
@@ -56,7 +58,7 @@
-
+
diff --git a/MedAP/bin/MedAP_data.dll b/MedAP/bin/MedAP_data.dll
index 6834464..52ec3f1 100644
Binary files a/MedAP/bin/MedAP_data.dll and b/MedAP/bin/MedAP_data.dll differ
diff --git a/MedAP/bin/MedAP_data.pdb b/MedAP/bin/MedAP_data.pdb
index 1006695..6b2d7f0 100644
Binary files a/MedAP/bin/MedAP_data.pdb and b/MedAP/bin/MedAP_data.pdb differ
diff --git a/MedAP/bin/SHERPA.dll b/MedAP/bin/SHERPA.dll
index cb0bc0a..b3aef6d 100644
Binary files a/MedAP/bin/SHERPA.dll and b/MedAP/bin/SHERPA.dll differ
diff --git a/MedAP/bin/SHERPA.pdb b/MedAP/bin/SHERPA.pdb
index 2896d89..daddab9 100644
Binary files a/MedAP/bin/SHERPA.pdb and b/MedAP/bin/SHERPA.pdb differ
diff --git a/MedAP/obj/Debug/MedAP.csprojResolveAssemblyReference.cache b/MedAP/obj/Debug/MedAP.csprojResolveAssemblyReference.cache
index 0239468..1add74f 100644
Binary files a/MedAP/obj/Debug/MedAP.csprojResolveAssemblyReference.cache and b/MedAP/obj/Debug/MedAP.csprojResolveAssemblyReference.cache differ
diff --git a/MedAP/obj/Debug/SHERPA.dll b/MedAP/obj/Debug/SHERPA.dll
index cb0bc0a..b3aef6d 100644
Binary files a/MedAP/obj/Debug/SHERPA.dll and b/MedAP/obj/Debug/SHERPA.dll differ
diff --git a/MedAP/obj/Debug/SHERPA.pdb b/MedAP/obj/Debug/SHERPA.pdb
index 2896d89..daddab9 100644
Binary files a/MedAP/obj/Debug/SHERPA.pdb and b/MedAP/obj/Debug/SHERPA.pdb differ
diff --git a/MedAP_data/APModel.Context.cs b/MedAP_data/APModel.Context.cs
index 3fc8e9d..b84ffca 100644
--- a/MedAP_data/APModel.Context.cs
+++ b/MedAP_data/APModel.Context.cs
@@ -12,6 +12,8 @@ namespace MedAP_data
using System;
using System.Data.Entity;
using System.Data.Entity.Infrastructure;
+ using System.Data.Entity.Core.Objects;
+ using System.Linq;
public partial class MAPEntities : DbContext
{
@@ -25,34 +27,70 @@ namespace MedAP_data
throw new UnintentionalCodeFirstException();
}
- public virtual DbSet Anagr_elem_doc { get; set; }
- public virtual DbSet Anagr_elem_movimenti { get; set; }
- public virtual DbSet Anagr_gruppi_righe_voci_fatt { get; set; }
- public virtual DbSet Anagr_movimenti { get; set; }
- public virtual DbSet Anagr_tipo_elem { get; set; }
- public virtual DbSet AreaCap { get; set; }
- public virtual DbSet C_iva { get; set; }
- public virtual DbSet CDC { get; set; }
- public virtual DbSet Clienti { get; set; }
- public virtual DbSet Contributi { get; set; }
- public virtual DbSet CostiAssorbiti { get; set; }
- public virtual DbSet DIRITTI { get; set; }
- public virtual DbSet Fatture { get; set; }
- public virtual DbSet FUNZIONE { get; set; }
- public virtual DbSet Gruppi { get; set; }
- public virtual DbSet Lingue { get; set; }
- public virtual DbSet ListValues { get; set; }
- public virtual DbSet MODULO { get; set; }
- public virtual DbSet Pagamenti { get; set; }
- public virtual DbSet Permessi { get; set; }
- public virtual DbSet Permessi2Funzione { get; set; }
- public virtual DbSet RigheFatt { get; set; }
- public virtual DbSet Scadenze { get; set; }
- public virtual DbSet UTENTE { get; set; }
- public virtual DbSet Vocabolario { get; set; }
- public virtual DbSet Anagr_righe_voci_fatt { get; set; }
public virtual DbSet Documenti { get; set; }
public virtual DbSet DocTemplate { get; set; }
public virtual DbSet RowTemplate { get; set; }
+ public virtual DbSet RigheDoc { get; set; }
+ public virtual DbSet Clienti { get; set; }
+
+ public virtual int stp_docRows_deleteQuery(Nullable original_id)
+ {
+ var original_idParameter = original_id.HasValue ?
+ new ObjectParameter("Original_id", original_id) :
+ new ObjectParameter("Original_id", typeof(int));
+
+ return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("stp_docRows_deleteQuery", original_idParameter);
+ }
+
+ public virtual int stp_docRows_updateQuery(Nullable original_id, string descrizione, string um, Nullable prezzoUm, Nullable qta, Nullable sconto, Nullable c_iva)
+ {
+ var original_idParameter = original_id.HasValue ?
+ new ObjectParameter("Original_id", original_id) :
+ new ObjectParameter("Original_id", typeof(int));
+
+ var descrizioneParameter = descrizione != null ?
+ new ObjectParameter("Descrizione", descrizione) :
+ new ObjectParameter("Descrizione", typeof(string));
+
+ var umParameter = um != null ?
+ new ObjectParameter("um", um) :
+ new ObjectParameter("um", typeof(string));
+
+ var prezzoUmParameter = prezzoUm.HasValue ?
+ new ObjectParameter("prezzoUm", prezzoUm) :
+ new ObjectParameter("prezzoUm", typeof(decimal));
+
+ var qtaParameter = qta.HasValue ?
+ new ObjectParameter("qta", qta) :
+ new ObjectParameter("qta", typeof(float));
+
+ var scontoParameter = sconto.HasValue ?
+ new ObjectParameter("sconto", sconto) :
+ new ObjectParameter("sconto", typeof(float));
+
+ var c_ivaParameter = c_iva.HasValue ?
+ new ObjectParameter("c_iva", c_iva) :
+ new ObjectParameter("c_iva", typeof(int));
+
+ return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("stp_docRows_updateQuery", original_idParameter, descrizioneParameter, umParameter, prezzoUmParameter, qtaParameter, scontoParameter, c_ivaParameter);
+ }
+
+ public virtual ObjectResult stp_docRows_getByIdxDoc(Nullable idxDoc)
+ {
+ var idxDocParameter = idxDoc.HasValue ?
+ new ObjectParameter("idxDoc", idxDoc) :
+ new ObjectParameter("idxDoc", typeof(int));
+
+ return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("stp_docRows_getByIdxDoc", idxDocParameter);
+ }
+
+ public virtual ObjectResult stp_docRows_getByIdxDoc(Nullable idxDoc, MergeOption mergeOption)
+ {
+ var idxDocParameter = idxDoc.HasValue ?
+ new ObjectParameter("idxDoc", idxDoc) :
+ new ObjectParameter("idxDoc", typeof(int));
+
+ return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("stp_docRows_getByIdxDoc", mergeOption, idxDocParameter);
+ }
}
}
diff --git a/MedAP_data/APModel.edmx b/MedAP_data/APModel.edmx
index 4d086b9..0fbcd9d 100644
--- a/MedAP_data/APModel.edmx
+++ b/MedAP_data/APModel.edmx
@@ -5,92 +5,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -110,172 +24,26 @@ avviso 6002: Nessuna chiave primaria definita per la tabella/visualizzazione 'Me
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
+
+
-
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
@@ -369,199 +137,40 @@ avviso 6002: Nessuna chiave primaria definita per la tabella/visualizzazione 'Me
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
SELECT
- [Anagr_righe_voci_fatt].[id] AS [id],
- [Anagr_righe_voci_fatt].[descrizione] AS [descrizione],
- [Anagr_righe_voci_fatt].[um] AS [um],
- [Anagr_righe_voci_fatt].[prezzo_um] AS [prezzo_um],
- [Anagr_righe_voci_fatt].[qta] AS [qta],
- [Anagr_righe_voci_fatt].[sconto] AS [sconto],
- [Anagr_righe_voci_fatt].[iva] AS [iva],
- [Anagr_righe_voci_fatt].[no_ritenuta] AS [no_ritenuta]
- FROM [dbo].[Anagr_righe_voci_fatt] AS [Anagr_righe_voci_fatt]
+ [v_docRowsExpl].[IdxRigheFatt] AS [IdxRigheFatt],
+ [v_docRowsExpl].[IdxFatt] AS [IdxFatt],
+ [v_docRowsExpl].[idxDoc] AS [idxDoc],
+ [v_docRowsExpl].[Descrizione] AS [Descrizione],
+ [v_docRowsExpl].[um] AS [um],
+ [v_docRowsExpl].[prezzoUm] AS [prezzoUm],
+ [v_docRowsExpl].[qta] AS [qta],
+ [v_docRowsExpl].[sconto] AS [sconto],
+ [v_docRowsExpl].[c_iva] AS [c_iva],
+ [v_docRowsExpl].[no_ritenuta] AS [no_ritenuta],
+ [v_docRowsExpl].[iva] AS [iva],
+ [v_docRowsExpl].[netto] AS [netto],
+ [v_docRowsExpl].[quotaIva] AS [quotaIva],
+ [v_docRowsExpl].[importo] AS [importo]
+ FROM [dbo].[v_docRowsExpl] AS [v_docRowsExpl]
SELECT
@@ -616,597 +225,32 @@ avviso 6002: Nessuna chiave primaria definita per la tabella/visualizzazione 'Me
[v_RowTemplate].[iva] AS [iva]
FROM [dbo].[v_RowTemplate] AS [v_RowTemplate]
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -1294,298 +338,66 @@ avviso 6002: Nessuna chiave primaria definita per la tabella/visualizzazione 'Me
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -1645,6 +457,69 @@ avviso 6002: Nessuna chiave primaria definita per la tabella/visualizzazione 'Me
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/MedAP_data/APModel.edmx.diagram b/MedAP_data/APModel.edmx.diagram
index 6e84516..662d32b 100644
--- a/MedAP_data/APModel.edmx.diagram
+++ b/MedAP_data/APModel.edmx.diagram
@@ -5,48 +5,11 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
diff --git a/MedAP_data/Anagr_elem_doc.cs b/MedAP_data/Anagr_elem_doc.cs
deleted file mode 100644
index fe9c753..0000000
--- a/MedAP_data/Anagr_elem_doc.cs
+++ /dev/null
@@ -1,25 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// 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.
-//
-//------------------------------------------------------------------------------
-
-namespace MedAP_data
-{
- using System;
- using System.Collections.Generic;
-
- public partial class Anagr_elem_doc
- {
- public int id { get; set; }
- public Nullable rif_tipo { get; set; }
- public string cod { get; set; }
- public string descrizione { get; set; }
- public Nullable rif_anagr_fatt { get; set; }
-
- public virtual Anagr_tipo_elem Anagr_tipo_elem { get; set; }
- }
-}
diff --git a/MedAP_data/Anagr_elem_movimenti.cs b/MedAP_data/Anagr_elem_movimenti.cs
deleted file mode 100644
index e76eb24..0000000
--- a/MedAP_data/Anagr_elem_movimenti.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// 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.
-//
-//------------------------------------------------------------------------------
-
-namespace MedAP_data
-{
- using System;
- using System.Collections.Generic;
-
- public partial class Anagr_elem_movimenti
- {
- public int id { get; set; }
- public string descrizione { get; set; }
- public Nullable rif_movimento { get; set; }
- public Nullable giorni_decorrenza { get; set; }
- public Nullable rif_conto_dest { get; set; }
- public Nullable rif_conto_origine { get; set; }
- public Nullable percentuale { get; set; }
- public byte[] SSMA_TimeStamp { get; set; }
- }
-}
diff --git a/MedAP_data/Anagr_gruppi_righe_voci_fatt.cs b/MedAP_data/Anagr_gruppi_righe_voci_fatt.cs
deleted file mode 100644
index eb90f32..0000000
--- a/MedAP_data/Anagr_gruppi_righe_voci_fatt.cs
+++ /dev/null
@@ -1,20 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// 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.
-//
-//------------------------------------------------------------------------------
-
-namespace MedAP_data
-{
- using System;
- using System.Collections.Generic;
-
- public partial class Anagr_gruppi_righe_voci_fatt
- {
- public int idxGruppo { get; set; }
- public string Descrizione { get; set; }
- }
-}
diff --git a/MedAP_data/Anagr_movimenti.cs b/MedAP_data/Anagr_movimenti.cs
deleted file mode 100644
index bbf9786..0000000
--- a/MedAP_data/Anagr_movimenti.cs
+++ /dev/null
@@ -1,20 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// 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.
-//
-//------------------------------------------------------------------------------
-
-namespace MedAP_data
-{
- using System;
- using System.Collections.Generic;
-
- public partial class Anagr_movimenti
- {
- public int id { get; set; }
- public string descrizione { get; set; }
- }
-}
diff --git a/MedAP_data/Anagr_tipo_elem.cs b/MedAP_data/Anagr_tipo_elem.cs
deleted file mode 100644
index 29d361b..0000000
--- a/MedAP_data/Anagr_tipo_elem.cs
+++ /dev/null
@@ -1,30 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// 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.
-//
-//------------------------------------------------------------------------------
-
-namespace MedAP_data
-{
- using System;
- using System.Collections.Generic;
-
- public partial class Anagr_tipo_elem
- {
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
- public Anagr_tipo_elem()
- {
- this.Anagr_elem_doc = new HashSet();
- }
-
- public int id { get; set; }
- public string descrizione { get; set; }
- public string metodo { get; set; }
-
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
- public virtual ICollection Anagr_elem_doc { get; set; }
- }
-}
diff --git a/MedAP_data/AreaCap.cs b/MedAP_data/AreaCap.cs
deleted file mode 100644
index 3674809..0000000
--- a/MedAP_data/AreaCap.cs
+++ /dev/null
@@ -1,21 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// 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.
-//
-//------------------------------------------------------------------------------
-
-namespace MedAP_data
-{
- using System;
- using System.Collections.Generic;
-
- public partial class AreaCap
- {
- public string CAP { get; set; }
- public string località { get; set; }
- public string gruppo { get; set; }
- }
-}
diff --git a/MedAP_data/CDC.cs b/MedAP_data/CDC.cs
deleted file mode 100644
index a740c20..0000000
--- a/MedAP_data/CDC.cs
+++ /dev/null
@@ -1,31 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// 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.
-//
-//------------------------------------------------------------------------------
-
-namespace MedAP_data
-{
- using System;
- using System.Collections.Generic;
-
- public partial class CDC
- {
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
- public CDC()
- {
- this.UTENTE = new HashSet();
- }
-
- public string COD_CDC { get; set; }
- public string DESCRIZIONE { get; set; }
- public string COD_TIPO { get; set; }
- public string POSIZIONE { get; set; }
-
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
- public virtual ICollection UTENTE { get; set; }
- }
-}
diff --git a/MedAP_data/C_iva.cs b/MedAP_data/C_iva.cs
deleted file mode 100644
index 13c2330..0000000
--- a/MedAP_data/C_iva.cs
+++ /dev/null
@@ -1,30 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// 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.
-//
-//------------------------------------------------------------------------------
-
-namespace MedAP_data
-{
- using System;
- using System.Collections.Generic;
-
- public partial class C_iva
- {
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
- public C_iva()
- {
- this.RigheFatt = new HashSet();
- }
-
- public int C_iva1 { get; set; }
- public Nullable iva { get; set; }
- public string descrizione { get; set; }
-
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
- public virtual ICollection RigheFatt { get; set; }
- }
-}
diff --git a/MedAP_data/Clienti.cs b/MedAP_data/Clienti.cs
index 16ba594..05878d1 100644
--- a/MedAP_data/Clienti.cs
+++ b/MedAP_data/Clienti.cs
@@ -14,12 +14,6 @@ namespace MedAP_data
public partial class Clienti
{
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
- public Clienti()
- {
- this.Fatture = new HashSet();
- }
-
public int idxCli { get; set; }
public string RagSoc { get; set; }
public string Sesso { get; set; }
@@ -34,8 +28,5 @@ namespace MedAP_data
public string Pagamento { get; set; }
public string Note { get; set; }
public string idxGruppo { get; set; }
-
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
- public virtual ICollection Fatture { get; set; }
}
}
diff --git a/MedAP_data/Contributi.cs b/MedAP_data/Contributi.cs
deleted file mode 100644
index 91a5035..0000000
--- a/MedAP_data/Contributi.cs
+++ /dev/null
@@ -1,23 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// 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.
-//
-//------------------------------------------------------------------------------
-
-namespace MedAP_data
-{
- using System;
- using System.Collections.Generic;
-
- public partial class Contributi
- {
- public int Id { get; set; }
- public string Descrizione { get; set; }
- public double Percentuale { get; set; }
- public bool Imponibile { get; set; }
- public bool Ritenuta { get; set; }
- }
-}
diff --git a/MedAP_data/CostiAssorbiti.cs b/MedAP_data/CostiAssorbiti.cs
deleted file mode 100644
index be784d7..0000000
--- a/MedAP_data/CostiAssorbiti.cs
+++ /dev/null
@@ -1,23 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// 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.
-//
-//------------------------------------------------------------------------------
-
-namespace MedAP_data
-{
- using System;
- using System.Collections.Generic;
-
- public partial class CostiAssorbiti
- {
- public int IdxFatt { get; set; }
- public decimal netto { get; set; }
- public string note { get; set; }
-
- public virtual Fatture Fatture { get; set; }
- }
-}
diff --git a/MedAP_data/DIRITTI.cs b/MedAP_data/DIRITTI.cs
deleted file mode 100644
index 7ce17cc..0000000
--- a/MedAP_data/DIRITTI.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// 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.
-//
-//------------------------------------------------------------------------------
-
-namespace MedAP_data
-{
- using System;
- using System.Collections.Generic;
-
- public partial class DIRITTI
- {
- public string USER_NAME { get; set; }
- public string COD_CDC { get; set; }
- public string COD_MODULO { get; set; }
- public string COD_FUNZIONE { get; set; }
- public string VALUE { get; set; }
-
- public virtual FUNZIONE FUNZIONE { get; set; }
- public virtual MODULO MODULO { get; set; }
- public virtual UTENTE UTENTE { get; set; }
- }
-}
diff --git a/MedAP_data/FUNZIONE.cs b/MedAP_data/FUNZIONE.cs
deleted file mode 100644
index 295ba8e..0000000
--- a/MedAP_data/FUNZIONE.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// 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.
-//
-//------------------------------------------------------------------------------
-
-namespace MedAP_data
-{
- using System;
- using System.Collections.Generic;
-
- public partial class FUNZIONE
- {
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
- public FUNZIONE()
- {
- this.DIRITTI = new HashSet();
- }
-
- public string COD_FUNZIONE { get; set; }
- public string DESCRIZIONE { get; set; }
-
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
- public virtual ICollection DIRITTI { get; set; }
- }
-}
diff --git a/MedAP_data/Fatture.cs b/MedAP_data/Fatture.cs
deleted file mode 100644
index 0579af6..0000000
--- a/MedAP_data/Fatture.cs
+++ /dev/null
@@ -1,45 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// 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.
-//
-//------------------------------------------------------------------------------
-
-namespace MedAP_data
-{
- using System;
- using System.Collections.Generic;
-
- public partial class Fatture
- {
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
- public Fatture()
- {
- this.Pagamenti = new HashSet();
- this.RigheFatt = new HashSet();
- this.Scadenze = new HashSet();
- }
-
- public int IdxFatt { get; set; }
- public int Anno { get; set; }
- public int Num { get; set; }
- public int idxCli { get; set; }
- public string Tipo { get; set; }
- public System.DateTime Data { get; set; }
- public double Ritenuta { get; set; }
- public int Id { get; set; }
- public bool IsTemplate { get; set; }
- public int IdxTemplate { get; set; }
-
- public virtual Clienti Clienti { get; set; }
- public virtual CostiAssorbiti CostiAssorbiti { get; set; }
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
- public virtual ICollection Pagamenti { get; set; }
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
- public virtual ICollection RigheFatt { get; set; }
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
- public virtual ICollection Scadenze { get; set; }
- }
-}
diff --git a/MedAP_data/Gruppi.cs b/MedAP_data/Gruppi.cs
deleted file mode 100644
index d2c5e2a..0000000
--- a/MedAP_data/Gruppi.cs
+++ /dev/null
@@ -1,20 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// 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.
-//
-//------------------------------------------------------------------------------
-
-namespace MedAP_data
-{
- using System;
- using System.Collections.Generic;
-
- public partial class Gruppi
- {
- public string IdxGruppo { get; set; }
- public string Descr { get; set; }
- }
-}
diff --git a/MedAP_data/Lingue.cs b/MedAP_data/Lingue.cs
deleted file mode 100644
index 6c42762..0000000
--- a/MedAP_data/Lingue.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// 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.
-//
-//------------------------------------------------------------------------------
-
-namespace MedAP_data
-{
- using System;
- using System.Collections.Generic;
-
- public partial class Lingue
- {
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
- public Lingue()
- {
- this.Vocabolario = new HashSet();
- }
-
- public string Lingua { get; set; }
- public string DescrizioneLingua { get; set; }
-
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
- public virtual ICollection Vocabolario { get; set; }
- }
-}
diff --git a/MedAP_data/ListValues.cs b/MedAP_data/ListValues.cs
deleted file mode 100644
index 4e4bc2a..0000000
--- a/MedAP_data/ListValues.cs
+++ /dev/null
@@ -1,23 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// 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.
-//
-//------------------------------------------------------------------------------
-
-namespace MedAP_data
-{
- using System;
- using System.Collections.Generic;
-
- public partial class ListValues
- {
- public string TableName { get; set; }
- public string FieldName { get; set; }
- public string value { get; set; }
- public string label { get; set; }
- public Nullable ordinal { get; set; }
- }
-}
diff --git a/MedAP_data/MODULO.cs b/MedAP_data/MODULO.cs
deleted file mode 100644
index f260362..0000000
--- a/MedAP_data/MODULO.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// 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.
-//
-//------------------------------------------------------------------------------
-
-namespace MedAP_data
-{
- using System;
- using System.Collections.Generic;
-
- public partial class MODULO
- {
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
- public MODULO()
- {
- this.DIRITTI = new HashSet();
- }
-
- public string COD_MODULO { get; set; }
- public string DESCRIZIONE { get; set; }
-
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
- public virtual ICollection DIRITTI { get; set; }
- }
-}
diff --git a/MedAP_data/MedAPModel.cs b/MedAP_data/MedAPModel.cs
index a0fae88..908a345 100644
--- a/MedAP_data/MedAPModel.cs
+++ b/MedAP_data/MedAPModel.cs
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
+using System.Web;
namespace MedAP_data
{
@@ -14,7 +15,7 @@ namespace MedAP_data
static MAPEntities ctx = new MAPEntities();
///
- /// elenco completo
+ /// elenco completo CLIENTI
///
///
public static IEnumerable ElencoClienti()
@@ -43,7 +44,7 @@ namespace MedAP_data
return result;
}
///
- /// elenco filtrato da parametro ricerca
+ /// conteggio filtrato da parametro ricerca
///
///
///
@@ -81,8 +82,9 @@ namespace MedAP_data
var result = from r in ctx.RowTemplate.OrderBy(s => s.Descrizione) select r;
return result;
}
+
///
- /// elenco completo
+ /// elenco completo DOCUMENTI
///
///
public static IEnumerable ElencoDocumenti()
@@ -111,7 +113,7 @@ namespace MedAP_data
return result;
}
///
- /// elenco filtrato da parametro ricerca
+ /// conteggio filtrato da parametro ricerca
///
///
///
@@ -131,5 +133,94 @@ namespace MedAP_data
return query.Count();
}
+ ///
+ /// elenco completo RIGHE FATTURE
+ ///
+ ///
+ public static IEnumerable RigheDoc()
+ {
+ return RigheDoc(0);
+ }
+ ///
+ /// elenco filtrato da parametro ricerca
+ ///
+ ///
+ ///
+ ///
+ ///
+ public static IEnumerable RigheDoc(int idxFatt)
+ {
+ IQueryable query;
+ if (idxFatt > 0)
+ {
+ query = ctx.RigheDoc.Where(s => s.IdxFatt == idxFatt);
+ }
+ else
+ {
+ query = ctx.RigheDoc;
+ }
+ var result = from r in query.OrderBy(s => s.IdxRigheFatt) select r;
+ return result;
+ }
+ ///
+ /// conteggio filtrato da parametro ricerca
+ ///
+ ///
+ ///
+ ///
+ ///
+ public static int RigheDocCount(int idxFatt)
+ {
+ IQueryable query;
+ if (idxFatt > 0)
+ {
+ query = ctx.RigheDoc.Where(s => s.IdxFatt == idxFatt);
+ }
+ else
+ {
+ query = ctx.RigheDoc;
+ }
+ return query.Count();
+ }
+
+
+
+ ///
+ /// Add record RIGHE FATTURE
+ ///
+ ///
+ public static void RigheDocInsert(RigheDoc rigaFatt)
+ {
+ ctx.RigheDoc.Add(rigaFatt);
+ ctx.SaveChanges();
+ }
+ ///
+ /// Update record RIGHE FATTURE
+ ///
+ ///
+ public static void RigheDocUpdate(RigheDoc rigaFatt)
+ {
+ //ctx.stp_docRows_updateQuery(rigaFatt.IdxRigheFatt, rigaFatt.Descrizione, rigaFatt.um, rigaFatt.prezzoUm, rigaFatt.qta, rigaFatt.sconto, rigaFatt.c_iva);
+ //ctx.SaveChanges();
+ var result = from r in ctx.RigheDoc where r.IdxRigheFatt == rigaFatt.IdxRigheFatt select r;
+ result.FirstOrDefault().c_iva = rigaFatt.c_iva;
+ result.FirstOrDefault().Descrizione = rigaFatt.Descrizione;
+ result.FirstOrDefault().prezzoUm = rigaFatt.prezzoUm;
+ result.FirstOrDefault().qta = rigaFatt.qta;
+ result.FirstOrDefault().sconto = rigaFatt.sconto;
+ result.FirstOrDefault().um = rigaFatt.um;
+ ctx.SaveChanges();
+ }
+ ///
+ /// Delete record RIGHE FATTURE
+ ///
+ ///
+ public static void RigheDocDelete(RigheDoc rigaFatt)
+ {
+ var result = from r in ctx.RigheDoc where r.IdxRigheFatt == rigaFatt.IdxRigheFatt select r;
+ ctx.RigheDoc.Remove(result.FirstOrDefault());
+ ctx.SaveChanges();
+ //ctx.stp_docRows_deleteQuery(rigaFatt.IdxRigheFatt);
+ }
}
}
diff --git a/MedAP_data/MedAP_data.csproj b/MedAP_data/MedAP_data.csproj
index 2576041..941a84f 100644
--- a/MedAP_data/MedAP_data.csproj
+++ b/MedAP_data/MedAP_data.csproj
@@ -49,24 +49,6 @@
-
- APModel.tt
-
-
- APModel.tt
-
-
- APModel.tt
-
-
- APModel.tt
-
-
- APModel.tt
-
-
- APModel.tt
-
True
True
@@ -82,75 +64,24 @@
True
APModel.edmx
-
- APModel.tt
-
-
- APModel.tt
-
APModel.tt
-
- APModel.tt
-
-
- APModel.tt
-
-
- APModel.tt
-
-
- APModel.tt
-
APModel.tt
APModel.tt
-
- APModel.tt
-
-
- APModel.tt
-
-
- APModel.tt
-
-
- APModel.tt
-
-
- APModel.tt
-
-
- APModel.tt
-
-
- APModel.tt
-
-
- APModel.tt
-
-
- APModel.tt
-
-
+
APModel.tt
APModel.tt
-
- APModel.tt
-
-
- APModel.tt
-
-
+
APModel.tt
diff --git a/MedAP_data/Pagamenti.cs b/MedAP_data/Pagamenti.cs
deleted file mode 100644
index c4d67d1..0000000
--- a/MedAP_data/Pagamenti.cs
+++ /dev/null
@@ -1,25 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// 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.
-//
-//------------------------------------------------------------------------------
-
-namespace MedAP_data
-{
- using System;
- using System.Collections.Generic;
-
- public partial class Pagamenti
- {
- public int Id_fatt { get; set; }
- public System.DateTime data { get; set; }
- public Nullable netto { get; set; }
- public Nullable importo { get; set; }
- public string note { get; set; }
-
- public virtual Fatture Fatture { get; set; }
- }
-}
diff --git a/MedAP_data/Permessi.cs b/MedAP_data/Permessi.cs
deleted file mode 100644
index 2eb34ba..0000000
--- a/MedAP_data/Permessi.cs
+++ /dev/null
@@ -1,33 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// 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.
-//
-//------------------------------------------------------------------------------
-
-namespace MedAP_data
-{
- using System;
- using System.Collections.Generic;
-
- public partial class Permessi
- {
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
- public Permessi()
- {
- this.Permessi2Funzione = new HashSet();
- }
-
- public string COD_PERMESSO { get; set; }
- public string URL { get; set; }
- public Nullable GRUPPO { get; set; }
- public Nullable NUMERO { get; set; }
- public string NOME { get; set; }
- public string DESCRIZIONE { get; set; }
-
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
- public virtual ICollection Permessi2Funzione { get; set; }
- }
-}
diff --git a/MedAP_data/Permessi2Funzione.cs b/MedAP_data/Permessi2Funzione.cs
deleted file mode 100644
index 3707aa4..0000000
--- a/MedAP_data/Permessi2Funzione.cs
+++ /dev/null
@@ -1,23 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// 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.
-//
-//------------------------------------------------------------------------------
-
-namespace MedAP_data
-{
- using System;
- using System.Collections.Generic;
-
- public partial class Permessi2Funzione
- {
- public string COD_PERMESSO { get; set; }
- public string COD_FUNZIONE { get; set; }
- public string READWRITE { get; set; }
-
- public virtual Permessi Permessi { get; set; }
- }
-}
diff --git a/MedAP_data/RigheFatt.cs b/MedAP_data/RigheDoc.cs
similarity index 68%
rename from MedAP_data/RigheFatt.cs
rename to MedAP_data/RigheDoc.cs
index 14a15c3..f67c295 100644
--- a/MedAP_data/RigheFatt.cs
+++ b/MedAP_data/RigheDoc.cs
@@ -12,19 +12,21 @@ namespace MedAP_data
using System;
using System.Collections.Generic;
- public partial class RigheFatt
+ public partial class RigheDoc
{
public int IdxRigheFatt { get; set; }
public Nullable IdxFatt { get; set; }
+ public Nullable idxDoc { get; set; }
public string Descrizione { get; set; }
public string um { get; set; }
- public Nullable PrezzoUm { get; set; }
+ public Nullable prezzoUm { get; set; }
public Nullable qta { get; set; }
public Nullable sconto { get; set; }
- public Nullable C_iva { get; set; }
+ public Nullable c_iva { get; set; }
public Nullable no_ritenuta { get; set; }
-
- public virtual C_iva C_iva1 { get; set; }
- public virtual Fatture Fatture { get; set; }
+ public Nullable iva { get; set; }
+ public Nullable netto { get; set; }
+ public Nullable quotaIva { get; set; }
+ public Nullable importo { get; set; }
}
}
diff --git a/MedAP_data/Scadenze.cs b/MedAP_data/Scadenze.cs
deleted file mode 100644
index f8dcbe5..0000000
--- a/MedAP_data/Scadenze.cs
+++ /dev/null
@@ -1,25 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// 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.
-//
-//------------------------------------------------------------------------------
-
-namespace MedAP_data
-{
- using System;
- using System.Collections.Generic;
-
- public partial class Scadenze
- {
- public int Id_fatt { get; set; }
- public System.DateTime data { get; set; }
- public Nullable netto { get; set; }
- public Nullable importo { get; set; }
- public string note { get; set; }
-
- public virtual Fatture Fatture { get; set; }
- }
-}
diff --git a/MedAP_data/UTENTE.cs b/MedAP_data/UTENTE.cs
deleted file mode 100644
index f6d2169..0000000
--- a/MedAP_data/UTENTE.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// 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.
-//
-//------------------------------------------------------------------------------
-
-namespace MedAP_data
-{
- using System;
- using System.Collections.Generic;
-
- public partial class UTENTE
- {
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
- public UTENTE()
- {
- this.DIRITTI = new HashSet();
- }
-
- public string DOMINIO { get; set; }
- public string USER_NAME { get; set; }
- public string COGNOME { get; set; }
- public string NOME { get; set; }
- public string COD_SOCIETA { get; set; }
- public string MATRICOLA { get; set; }
- public string COD_CDC { get; set; }
- public string EMAIL { get; set; }
- public string SIGLA { get; set; }
- public string COD_LINGUA { get; set; }
- public string ATTIVO { get; set; }
-
- public virtual CDC CDC { get; set; }
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
- public virtual ICollection DIRITTI { get; set; }
- }
-}
diff --git a/MedAP_data/Vocabolario.cs b/MedAP_data/Vocabolario.cs
deleted file mode 100644
index 24a205c..0000000
--- a/MedAP_data/Vocabolario.cs
+++ /dev/null
@@ -1,23 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// 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.
-//
-//------------------------------------------------------------------------------
-
-namespace MedAP_data
-{
- using System;
- using System.Collections.Generic;
-
- public partial class Vocabolario
- {
- public string Lingua { get; set; }
- public string Lemma { get; set; }
- public string Traduzione { get; set; }
-
- public virtual Lingue Lingue { get; set; }
- }
-}
diff --git a/MedAP_data/bin/Debug/MedAP_data.dll b/MedAP_data/bin/Debug/MedAP_data.dll
index 6834464..52ec3f1 100644
Binary files a/MedAP_data/bin/Debug/MedAP_data.dll and b/MedAP_data/bin/Debug/MedAP_data.dll differ
diff --git a/MedAP_data/bin/Debug/MedAP_data.pdb b/MedAP_data/bin/Debug/MedAP_data.pdb
index 1006695..6b2d7f0 100644
Binary files a/MedAP_data/bin/Debug/MedAP_data.pdb and b/MedAP_data/bin/Debug/MedAP_data.pdb differ
diff --git a/MedAP_data/obj/Debug/MedAP_data.csproj.CoreCompileInputs.cache b/MedAP_data/obj/Debug/MedAP_data.csproj.CoreCompileInputs.cache
index fc2164e..c0d7e82 100644
--- a/MedAP_data/obj/Debug/MedAP_data.csproj.CoreCompileInputs.cache
+++ b/MedAP_data/obj/Debug/MedAP_data.csproj.CoreCompileInputs.cache
@@ -1 +1 @@
-f130c0723100e2b65c168f6271f26212ad7fcdc5
+8ce9d2598119c96968f8e6163d1785ede03835f4
diff --git a/MedAP_data/obj/Debug/MedAP_data.dll b/MedAP_data/obj/Debug/MedAP_data.dll
index 6834464..52ec3f1 100644
Binary files a/MedAP_data/obj/Debug/MedAP_data.dll and b/MedAP_data/obj/Debug/MedAP_data.dll differ
diff --git a/MedAP_data/obj/Debug/MedAP_data.pdb b/MedAP_data/obj/Debug/MedAP_data.pdb
index 1006695..6b2d7f0 100644
Binary files a/MedAP_data/obj/Debug/MedAP_data.pdb and b/MedAP_data/obj/Debug/MedAP_data.pdb differ
diff --git a/MedAP_data/obj/Debug/TempPE/APModel.Designer.cs.dll b/MedAP_data/obj/Debug/TempPE/APModel.Designer.cs.dll
index 85aaa40..f4dc244 100644
Binary files a/MedAP_data/obj/Debug/TempPE/APModel.Designer.cs.dll and b/MedAP_data/obj/Debug/TempPE/APModel.Designer.cs.dll differ
diff --git a/MedAP_data/obj/Debug/TempPE/APModel.cs.dll b/MedAP_data/obj/Debug/TempPE/APModel.cs.dll
index c29e51d..7175d07 100644
Binary files a/MedAP_data/obj/Debug/TempPE/APModel.cs.dll and b/MedAP_data/obj/Debug/TempPE/APModel.cs.dll differ
diff --git a/MedAP_data/obj/Debug/edmxResourcesToEmbed/APModel.csdl b/MedAP_data/obj/Debug/edmxResourcesToEmbed/APModel.csdl
index 7659c6e..c641fa2 100644
--- a/MedAP_data/obj/Debug/edmxResourcesToEmbed/APModel.csdl
+++ b/MedAP_data/obj/Debug/edmxResourcesToEmbed/APModel.csdl
@@ -1,539 +1,26 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -621,4 +108,58 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/MedAP_data/obj/Debug/edmxResourcesToEmbed/APModel.msl b/MedAP_data/obj/Debug/edmxResourcesToEmbed/APModel.msl
index 04e1151..b93805f 100644
--- a/MedAP_data/obj/Debug/edmxResourcesToEmbed/APModel.msl
+++ b/MedAP_data/obj/Debug/edmxResourcesToEmbed/APModel.msl
@@ -1,292 +1,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -346,5 +60,67 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/MedAP_data/obj/Debug/edmxResourcesToEmbed/APModel.ssdl b/MedAP_data/obj/Debug/edmxResourcesToEmbed/APModel.ssdl
index 574d5ed..06164a0 100644
--- a/MedAP_data/obj/Debug/edmxResourcesToEmbed/APModel.ssdl
+++ b/MedAP_data/obj/Debug/edmxResourcesToEmbed/APModel.ssdl
@@ -1,91 +1,5 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -105,172 +19,26 @@ avviso 6002: Nessuna chiave primaria definita per la tabella/visualizzazione 'Me
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
+
+
-
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
@@ -364,199 +132,40 @@ avviso 6002: Nessuna chiave primaria definita per la tabella/visualizzazione 'Me
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
SELECT
- [Anagr_righe_voci_fatt].[id] AS [id],
- [Anagr_righe_voci_fatt].[descrizione] AS [descrizione],
- [Anagr_righe_voci_fatt].[um] AS [um],
- [Anagr_righe_voci_fatt].[prezzo_um] AS [prezzo_um],
- [Anagr_righe_voci_fatt].[qta] AS [qta],
- [Anagr_righe_voci_fatt].[sconto] AS [sconto],
- [Anagr_righe_voci_fatt].[iva] AS [iva],
- [Anagr_righe_voci_fatt].[no_ritenuta] AS [no_ritenuta]
- FROM [dbo].[Anagr_righe_voci_fatt] AS [Anagr_righe_voci_fatt]
+ [v_docRowsExpl].[IdxRigheFatt] AS [IdxRigheFatt],
+ [v_docRowsExpl].[IdxFatt] AS [IdxFatt],
+ [v_docRowsExpl].[idxDoc] AS [idxDoc],
+ [v_docRowsExpl].[Descrizione] AS [Descrizione],
+ [v_docRowsExpl].[um] AS [um],
+ [v_docRowsExpl].[prezzoUm] AS [prezzoUm],
+ [v_docRowsExpl].[qta] AS [qta],
+ [v_docRowsExpl].[sconto] AS [sconto],
+ [v_docRowsExpl].[c_iva] AS [c_iva],
+ [v_docRowsExpl].[no_ritenuta] AS [no_ritenuta],
+ [v_docRowsExpl].[iva] AS [iva],
+ [v_docRowsExpl].[netto] AS [netto],
+ [v_docRowsExpl].[quotaIva] AS [quotaIva],
+ [v_docRowsExpl].[importo] AS [importo]
+ FROM [dbo].[v_docRowsExpl] AS [v_docRowsExpl]
SELECT
@@ -611,57 +220,5 @@ avviso 6002: Nessuna chiave primaria definita per la tabella/visualizzazione 'Me
[v_RowTemplate].[iva] AS [iva]
FROM [dbo].[v_RowTemplate] AS [v_RowTemplate]
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/MedAP_data/Anagr_righe_voci_fatt.cs b/MedAP_data/stp_docRows_getByIdxDoc_Result.cs
similarity index 51%
rename from MedAP_data/Anagr_righe_voci_fatt.cs
rename to MedAP_data/stp_docRows_getByIdxDoc_Result.cs
index 254f9dc..7c5d562 100644
--- a/MedAP_data/Anagr_righe_voci_fatt.cs
+++ b/MedAP_data/stp_docRows_getByIdxDoc_Result.cs
@@ -10,17 +10,22 @@
namespace MedAP_data
{
using System;
- using System.Collections.Generic;
- public partial class Anagr_righe_voci_fatt
+ public partial class stp_docRows_getByIdxDoc_Result
{
- public int id { get; set; }
- public string descrizione { get; set; }
+ public int IdxRigheFatt { get; set; }
+ public Nullable IdxFatt { get; set; }
+ public Nullable idxDoc { get; set; }
+ public string Descrizione { get; set; }
public string um { get; set; }
- public Nullable prezzo_um { get; set; }
- public Nullable qta { get; set; }
- public Nullable sconto { get; set; }
- public Nullable iva { get; set; }
+ public Nullable prezzoUm { get; set; }
+ public Nullable qta { get; set; }
+ public Nullable sconto { get; set; }
+ public Nullable c_iva { get; set; }
public Nullable no_ritenuta { get; set; }
+ public Nullable iva { get; set; }
+ public Nullable netto { get; set; }
+ public Nullable quotaIva { get; set; }
+ public Nullable importo { get; set; }
}
}