Commit iniziale
This commit is contained in:
commit
e6381d2367
BIN
.vs/ApiManutenzioni/v17/.wsuo
Normal file
BIN
.vs/ApiManutenzioni/v17/.wsuo
Normal file
Binary file not shown.
BIN
.vs/ApiPolo/DesignTimeBuild/.dtbcache.v2
Normal file
BIN
.vs/ApiPolo/DesignTimeBuild/.dtbcache.v2
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
0
.vs/ApiPolo/FileContentIndex/read.lock
Normal file
0
.vs/ApiPolo/FileContentIndex/read.lock
Normal file
1021
.vs/ApiPolo/config/applicationhost.config
Normal file
1021
.vs/ApiPolo/config/applicationhost.config
Normal file
File diff suppressed because it is too large
Load Diff
BIN
.vs/ApiPolo/v16/.suo
Normal file
BIN
.vs/ApiPolo/v16/.suo
Normal file
Binary file not shown.
BIN
.vs/ApiPolo/v17/.futdcache.v1
Normal file
BIN
.vs/ApiPolo/v17/.futdcache.v1
Normal file
Binary file not shown.
BIN
.vs/ApiPolo/v17/.futdcache.v2
Normal file
BIN
.vs/ApiPolo/v17/.futdcache.v2
Normal file
Binary file not shown.
BIN
.vs/ApiPolo/v17/.suo
Normal file
BIN
.vs/ApiPolo/v17/.suo
Normal file
Binary file not shown.
BIN
.vs/ProjectEvaluation/apipolo.metadata.v7.bin
Normal file
BIN
.vs/ProjectEvaluation/apipolo.metadata.v7.bin
Normal file
Binary file not shown.
BIN
.vs/ProjectEvaluation/apipolo.projects.v7.bin
Normal file
BIN
.vs/ProjectEvaluation/apipolo.projects.v7.bin
Normal file
Binary file not shown.
6
.vs/VSWorkspaceState.json
Normal file
6
.vs/VSWorkspaceState.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"ExpandedNodes": [
|
||||
""
|
||||
],
|
||||
"PreviewInSolutionExplorer": false
|
||||
}
|
||||
25
ApiPolo.sln
Normal file
25
ApiPolo.sln
Normal file
@ -0,0 +1,25 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.1.32319.34
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ApiPolo", "ApiPolo\ApiPolo.csproj", "{FCB070A4-CB11-48F7-8245-A609151A95F7}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{FCB070A4-CB11-48F7-8245-A609151A95F7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{FCB070A4-CB11-48F7-8245-A609151A95F7}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{FCB070A4-CB11-48F7-8245-A609151A95F7}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{FCB070A4-CB11-48F7-8245-A609151A95F7}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {F4BB9AEC-7FFE-4101-8B36-F1CD5AF0DCDB}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
12
ApiPolo/.config/dotnet-tools.json
Normal file
12
ApiPolo/.config/dotnet-tools.json
Normal file
@ -0,0 +1,12 @@
|
||||
{
|
||||
"version": 1,
|
||||
"isRoot": true,
|
||||
"tools": {
|
||||
"dotnet-ef": {
|
||||
"version": "7.0.0",
|
||||
"commands": [
|
||||
"dotnet-ef"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
31
ApiPolo/ApiPolo.csproj
Normal file
31
ApiPolo/ApiPolo.csproj
Normal file
@ -0,0 +1,31 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<GenerateDocumentationFile>True</GenerateDocumentationFile>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Cronos" Version="0.7.1" />
|
||||
<PackageReference Include="FirebaseAdmin" Version="2.3.0" />
|
||||
<PackageReference Include="Microsoft.AspNet.Mvc" Version="5.2.9" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Authentication.Negotiate" Version="6.0.5" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="6.0.5" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="6.0.5" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="6.0.5">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
||||
<PackageReference Include="SSH.NET" Version="2020.0.2" />
|
||||
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.3.1" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="wwwroot\VIRTU\" />
|
||||
</ItemGroup>
|
||||
|
||||
<ProjectExtensions><VisualStudio><UserProperties appsettings_1json__JsonSchema="" /></VisualStudio></ProjectExtensions>
|
||||
</Project>
|
||||
8
ApiPolo/ApiPolo.csproj.user
Normal file
8
ApiPolo/ApiPolo.csproj.user
Normal file
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Controller_SelectedScaffolderID>MvcControllerEmptyScaffolder</Controller_SelectedScaffolderID>
|
||||
<Controller_SelectedScaffolderCategoryPath>root/Common/MVC/Controller</Controller_SelectedScaffolderCategoryPath>
|
||||
<NameOfLastUsedPublishProfile>C:\SORGENTI\ApiPolo\ApiPolo\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
12306
ApiPolo/Controllers/PoloController.cs
Normal file
12306
ApiPolo/Controllers/PoloController.cs
Normal file
File diff suppressed because it is too large
Load Diff
46
ApiPolo/Models/Anag.cs
Normal file
46
ApiPolo/Models/Anag.cs
Normal file
@ -0,0 +1,46 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace ApiPolo.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// Contiene i campi di SALDIART
|
||||
/// </summary>
|
||||
[Keyless]
|
||||
public class Anag
|
||||
{
|
||||
/// <summary>tipo </summary>
|
||||
public string? antipcon { get; set; }
|
||||
|
||||
/// <summary>codice</summary>
|
||||
public string? ancodice { get; set; }
|
||||
|
||||
/// <summary>email</summary>
|
||||
public string? an_email { get; set; }
|
||||
|
||||
/// <summary>codice fiscale</summary>
|
||||
public string? ancodfis { get; set; }
|
||||
|
||||
/// <summary>partita iva</summary>
|
||||
public string? anpariva { get; set; }
|
||||
|
||||
/// <summary>indirizzo</summary>
|
||||
public string? anindiri { get; set; }
|
||||
|
||||
/// <summary>telefono</summary>
|
||||
public string? antelefo { get; set; }
|
||||
|
||||
/// <summary>cellulare</summary>
|
||||
public string? annumcel { get; set; }
|
||||
|
||||
/// <summary>pec</summary>
|
||||
public string? an_empec { get; set; }
|
||||
|
||||
/// <summary>descrizione </summary>
|
||||
public string? andescri { get; set; }
|
||||
|
||||
/// <summary>listino cliente </summary>
|
||||
public string? annumlis { get; set; }
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
15
ApiPolo/Models/AnagCommImp.cs
Normal file
15
ApiPolo/Models/AnagCommImp.cs
Normal file
@ -0,0 +1,15 @@
|
||||
namespace ApiPolo.Models
|
||||
{
|
||||
/// <summary></summary>
|
||||
public class AnagCommImp
|
||||
{
|
||||
/// <summary></summary>
|
||||
public AnagTable? cli { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public CommesseVT_Table? comm { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public ImpiantoTable? imp { get; set; }
|
||||
}
|
||||
}
|
||||
50
ApiPolo/Models/AnagTable.cs
Normal file
50
ApiPolo/Models/AnagTable.cs
Normal file
@ -0,0 +1,50 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace ApiPolo.Models
|
||||
{
|
||||
/// <summary></summary>
|
||||
public class AnagTable
|
||||
{
|
||||
/// <summary>tipo </summary>
|
||||
[Key]
|
||||
public string? antipcon { get; set; }
|
||||
|
||||
/// <summary>codice</summary>
|
||||
[Key]
|
||||
public string? ancodice { get; set; }
|
||||
|
||||
/// <summary>codice azienda</summary>
|
||||
[Key]
|
||||
public string? ancodazi { get; set; }
|
||||
|
||||
/// <summary>email</summary>
|
||||
public string? an_email { get; set; }
|
||||
|
||||
/// <summary>codice fiscale</summary>
|
||||
public string? ancodfis { get; set; }
|
||||
|
||||
/// <summary>partita iva</summary>
|
||||
public string? anpariva { get; set; }
|
||||
|
||||
/// <summary>indirizzo</summary>
|
||||
public string? anindiri { get; set; }
|
||||
|
||||
/// <summary>telefono</summary>
|
||||
public string? antelefo { get; set; }
|
||||
|
||||
/// <summary>cellulare</summary>
|
||||
public string? annumcel { get; set; }
|
||||
|
||||
/// <summary>pec</summary>
|
||||
public string? an_empec { get; set; }
|
||||
|
||||
/// <summary>descrizione </summary>
|
||||
public string? andescri { get; set; }
|
||||
|
||||
/// <summary>listino cliente </summary>
|
||||
public string? annumlis { get; set; }
|
||||
|
||||
/// <summary> cliente eliminato </summary>
|
||||
public DateTime? andtobso { get; set; }
|
||||
}
|
||||
}
|
||||
50
ApiPolo/Models/AnagVT.cs
Normal file
50
ApiPolo/Models/AnagVT.cs
Normal file
@ -0,0 +1,50 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace ApiPolo.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// Contiene i campi di API_CLIENTI
|
||||
/// </summary>
|
||||
[Keyless]
|
||||
public class AnagVT
|
||||
{
|
||||
/// <summary>tipo </summary>
|
||||
public string? antipcon { get; set; }
|
||||
|
||||
/// <summary>codice</summary>
|
||||
public string? ancodice { get; set; }
|
||||
|
||||
/// <summary>email</summary>
|
||||
public string? an_email { get; set; }
|
||||
|
||||
/// <summary>codice fiscale</summary>
|
||||
public string? ancodfis { get; set; }
|
||||
|
||||
/// <summary>partita iva</summary>
|
||||
public string? anpariva { get; set; }
|
||||
|
||||
/// <summary>indirizzo</summary>
|
||||
public string? anindiri { get; set; }
|
||||
|
||||
/// <summary>telefono</summary>
|
||||
public string? antelefo { get; set; }
|
||||
|
||||
/// <summary>cellulare</summary>
|
||||
public string? annumcel { get; set; }
|
||||
|
||||
/// <summary>pec</summary>
|
||||
public string? an_empec { get; set; }
|
||||
|
||||
/// <summary>descrizione </summary>
|
||||
public string? andescri { get; set; }
|
||||
|
||||
/// <summary>listino cliente </summary>
|
||||
public string? annumlis { get; set; }
|
||||
|
||||
/// <summary> cliente eliminato </summary>
|
||||
public DateTime? andtobso { get; set; }
|
||||
|
||||
/// <summary>azienda (tenant2)</summary>
|
||||
public string? ancodazi { get; set; }
|
||||
}
|
||||
}
|
||||
16
ApiPolo/Models/AziendaPres.cs
Normal file
16
ApiPolo/Models/AziendaPres.cs
Normal file
@ -0,0 +1,16 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace ApiPolo.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// Azienda prsente
|
||||
/// </summary>
|
||||
[Keyless]
|
||||
public class AziendaPres
|
||||
{
|
||||
/// <summary>
|
||||
/// Azienda tecnico
|
||||
/// </summary>
|
||||
public string? tccodazi { get; set; }
|
||||
}
|
||||
}
|
||||
29
ApiPolo/Models/AziendaRif.cs
Normal file
29
ApiPolo/Models/AziendaRif.cs
Normal file
@ -0,0 +1,29 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace ApiPolo.Models
|
||||
{
|
||||
/// <summary>Azienda collegata all'azienda principale</summary>
|
||||
public class AziendaRif
|
||||
{
|
||||
/// <summary>azienda</summary>
|
||||
[Key]
|
||||
public string? piazihoc { get; set; }
|
||||
|
||||
/// <summary>tecnico</summary>
|
||||
[Key]
|
||||
public string? picodtec { get; set; }
|
||||
|
||||
/// <summary>tecnico</summary>
|
||||
[Key]
|
||||
public string? pirifazi { get; set; }
|
||||
|
||||
/// <summary>Nome azienda collegata</summary>
|
||||
public string? pinomede { get; set; }
|
||||
|
||||
/// <summary>url logo</summary>
|
||||
public string? pilogurl { get; set; }
|
||||
|
||||
/// <summary>Testo rapportino</summary>
|
||||
public string? pitextin { get; set; }
|
||||
}
|
||||
}
|
||||
22
ApiPolo/Models/Buoni.cs
Normal file
22
ApiPolo/Models/Buoni.cs
Normal file
@ -0,0 +1,22 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace ApiPolo.Models
|
||||
{
|
||||
/// <summary>buoni rapportini</summary>
|
||||
public class Buoni
|
||||
{
|
||||
/// <summary>azienda</summary>
|
||||
[Key]
|
||||
public string? azienda { get; set; }
|
||||
|
||||
/// <summary>seriale buono</summary>
|
||||
[Key]
|
||||
public string? ser_buono { get; set; }
|
||||
|
||||
/// <summary>immagine</summary>
|
||||
public byte[]? immagine { get; set; }
|
||||
|
||||
/// <summary>data inserimento</summary>
|
||||
public DateTime? dt_ins { get; set; }
|
||||
}
|
||||
}
|
||||
20
ApiPolo/Models/Caus_Rapp.cs
Normal file
20
ApiPolo/Models/Caus_Rapp.cs
Normal file
@ -0,0 +1,20 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace ApiPolo.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// Causali rapportino
|
||||
/// </summary>
|
||||
[Keyless]
|
||||
public class Caus_Rapp
|
||||
{
|
||||
/// <summary>codice causale</summary>
|
||||
public string? crcodice { get; set; }
|
||||
|
||||
/// <summary>descrizione causale</summary>
|
||||
public string? crdescri { get; set; }
|
||||
|
||||
/// <summary>flag fatturazione</summary>
|
||||
public string? crrifatt { get; set; }
|
||||
}
|
||||
}
|
||||
18
ApiPolo/Models/ChiamataSeriale.cs
Normal file
18
ApiPolo/Models/ChiamataSeriale.cs
Normal file
@ -0,0 +1,18 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace ApiPolo.Models
|
||||
{
|
||||
/// <summary></summary>
|
||||
public class ChiamataSeriale
|
||||
{
|
||||
/// <summary></summary>
|
||||
[Key]
|
||||
public string? piditta { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? pinumero { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? cpccchk { get; set; }
|
||||
}
|
||||
}
|
||||
24
ApiPolo/Models/ChiamataSeriale_out.cs
Normal file
24
ApiPolo/Models/ChiamataSeriale_out.cs
Normal file
@ -0,0 +1,24 @@
|
||||
namespace ApiPolo.Models
|
||||
{
|
||||
/// <summary></summary>
|
||||
public class ChiamataSeriale_out
|
||||
{
|
||||
/// <summary></summary>
|
||||
public string? piditta { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? pinumero { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? cpccchk { get; set; }
|
||||
|
||||
/// <summary> errore titolo</summary>
|
||||
public string? err_title { get; set; }
|
||||
|
||||
/// <summary>errore dettaglio</summary>
|
||||
public string? err_detail { get; set; }
|
||||
|
||||
/// <summary>errore status code (200, 500)</summary>
|
||||
public string? err_status_code { get; set; }
|
||||
}
|
||||
}
|
||||
410
ApiPolo/Models/Chiamate.cs
Normal file
410
ApiPolo/Models/Chiamate.cs
Normal file
@ -0,0 +1,410 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace ApiPolo.Models
|
||||
{
|
||||
/// <summary>ViSTA Chiamate</summary>
|
||||
[Keyless]
|
||||
public class Chiamate
|
||||
{
|
||||
/// <summary>Azienda</summary>
|
||||
public string? chcodazi { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Seriale Chiamata
|
||||
/// </summary>
|
||||
public string? chserial { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Stato chiamata
|
||||
/// </summary>
|
||||
public string? chstato { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Codice Chiamatista assegnato
|
||||
/// </summary>
|
||||
public string? chtchiam { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Data appuntamento chiamata
|
||||
/// </summary>
|
||||
public DateTime? chdtapp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Ora appuntamento inizio
|
||||
/// </summary>
|
||||
public int? choraaPI { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Minuti appuntamento inizio
|
||||
/// </summary>
|
||||
public int? chminapi { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Note appuntamento
|
||||
/// </summary>
|
||||
public string? chnote { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Codice Impianto chiamata
|
||||
/// </summary>
|
||||
public string? chcodimp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Descrizione codice segnalazione
|
||||
/// </summary>
|
||||
public string? csdescr { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Telefono cliente
|
||||
/// </summary>
|
||||
public string? antelefo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// descrizione cliente
|
||||
/// </summary>
|
||||
public string? andescri { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Indirizzo impianto tipo
|
||||
/// </summary>
|
||||
/// <example>Via,Piazza,</example>
|
||||
public string? imindiri1 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Indirizzo impianto nome
|
||||
/// </summary>
|
||||
public string? imindiri2 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Indirizzo impianto numero
|
||||
/// </summary>
|
||||
public int? imindiri3 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Indirizzo impianto sottonumero
|
||||
/// </summary>
|
||||
public string? imindiri4 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Indirizzo impianto Scala
|
||||
/// </summary>
|
||||
public string? imindiri5 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Indirizzo impianto località
|
||||
/// </summary>
|
||||
public string? imlocali { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Indirizzo impianto Cap
|
||||
/// </summary>
|
||||
public string? imcodcap { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Indirizzo impianto comune
|
||||
/// </summary>
|
||||
public string? imcomune { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Indirizzo impianto provincia
|
||||
/// </summary>
|
||||
public string? improvin { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Indirizzo impianto nazione
|
||||
/// </summary>
|
||||
public string? imcodnaz { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// MANPROG: matricola impianto
|
||||
/// </summary>
|
||||
public string? immatric { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// MANPROG: numero impianto
|
||||
/// </summary>
|
||||
public string? imnumimp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// MANPROG: ubicazione impianto
|
||||
/// </summary>
|
||||
public string? imubicaz { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Tecnico descrizione
|
||||
/// </summary>
|
||||
public string? tcdescri { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Tecnico codice
|
||||
/// </summary>
|
||||
public string? tccodice { get; set; }
|
||||
|
||||
/*campi di RAPP_NEW*/
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// RAPP_NEW: seriale rapp_new preso in carico
|
||||
/// </summary>
|
||||
public string? ser_rapp_ic { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// RAPP_NEW: tipo rapp_new preso in carico (valore vuoto)
|
||||
/// </summary>
|
||||
public string? tipo_rapp_ic { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// RAPP_NEW: preso in carico (S o NULL)
|
||||
/// </summary>
|
||||
public string? ic { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// RAPP_NEW: seriale rapp_new rifiutata
|
||||
/// </summary>
|
||||
public string? ser_rapp_rif { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// RAPP_NEW: tipo rapp rifiutata (valore vuoto)
|
||||
/// </summary>
|
||||
public string? tipo_rapp_rif { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// RAPP_NEW: rifiutato (S o null)
|
||||
/// </summary>
|
||||
public string? rif { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// RAPP_NEW: seriale chiamata chiusa
|
||||
/// </summary>
|
||||
public string? ser_rapp_chiu { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// RAPP_NEW: tipo chiamata chiusa (3 o null)
|
||||
/// </summary>
|
||||
public string? tipo_rapp_chiu { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// RAPP_NEW: seriale buono chiamata chiusa
|
||||
/// </summary>
|
||||
public string? ser_buono_chiu { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// errore titolo
|
||||
/// </summary>
|
||||
public string? err_title { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// errore dettaglio
|
||||
/// </summary>
|
||||
public string? err_detail { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// errore status code (200, 500)
|
||||
/// </summary>
|
||||
public string? err_status_code { get; set; }
|
||||
|
||||
|
||||
//ALTRI
|
||||
/// <summary>Esercizio </summary>
|
||||
public string? chcodese { get; set; }
|
||||
|
||||
/// <summary>Tipo </summary>
|
||||
public string? chtipo { get; set; }
|
||||
|
||||
/// <summary>numero chiamata </summary>
|
||||
[Column(TypeName = "decimal(10, 0)")]
|
||||
public decimal? chnumero { get; set; }
|
||||
|
||||
/// <summary>Data inserimento chiamata</summary>
|
||||
public DateTime? chdata { get; set; }
|
||||
|
||||
/// <summary>Ora inserimento chiamata</summary>
|
||||
public int? chora { get; set; }
|
||||
|
||||
/// <summary>Minuti inserimento chiamata</summary>
|
||||
public int? chmin { get; set; }
|
||||
|
||||
/// <summary>operatore assegnazione </summary>
|
||||
public int? chopass { get; set; }
|
||||
|
||||
/// <summary>operatore di chiusura </summary>
|
||||
public int? chopchi { get; set; }
|
||||
|
||||
/// <summary>azienda impianto </summary>
|
||||
public string? chaziimp { get; set; }
|
||||
|
||||
/// <summary>ora appuntamento fine </summary>
|
||||
public int? choraapf { get; set; }
|
||||
|
||||
/// <summary>minuto appuntamento fine </summary>
|
||||
public int? chminapf { get; set; }
|
||||
|
||||
/// <summary>Riferimento chiamata </summary>
|
||||
public string? chrifer { get; set; }
|
||||
|
||||
/// <summary>telefono riferimento </summary>
|
||||
public string? chtelef { get; set; }
|
||||
|
||||
/// <summary>tcodice segnalazione </summary>
|
||||
public string? chcodseg { get; set; }
|
||||
|
||||
|
||||
|
||||
|
||||
/// <summary>Fermo impianto S/N </summary>
|
||||
public string? chstopi { get; set; }
|
||||
|
||||
/// <summary>Data assegnazione chiamata </summary>
|
||||
public DateTime? chdtass { get; set; }
|
||||
|
||||
/// <summary>Ora assegnazione chiamata </summary>
|
||||
public int? chorass { get; set; }
|
||||
|
||||
/// <summary>Min assegnazione chiamata </summary>
|
||||
public int? chminass { get; set; }
|
||||
|
||||
/// <summary>Data chiusura chiamata </summary>
|
||||
public DateTime? chdtchi { get; set; }
|
||||
|
||||
/// <summary>Ora chiusura chiamata </summary>
|
||||
public int? chorachi { get; set; }
|
||||
|
||||
/// <summary>Min chiusura chiamata </summary>
|
||||
public int? chminchi { get; set; }
|
||||
|
||||
/// <summary>Data inizio intervento </summary>
|
||||
public DateTime? chdtlin { get; set; }
|
||||
|
||||
/// <summary>Ora inizio intervento </summary>
|
||||
public int? chorali { get; set; }
|
||||
|
||||
/// <summary>Min inizio intervento </summary>
|
||||
public int? chminli { get; set; }
|
||||
|
||||
/// <summary>Data fine intervento </summary>
|
||||
public DateTime? chdtlfi { get; set; }
|
||||
|
||||
/// <summary>Ora fine intervento </summary>
|
||||
public int? choralf { get; set; }
|
||||
|
||||
/// <summary>Min fine intervento </summary>
|
||||
public int? chminlf { get; set; }
|
||||
|
||||
/// <summary>Numero 1 rapportino futuro </summary>
|
||||
public int? chnrap1 { get; set; }
|
||||
|
||||
/// <summary>Serie 1 rapportino futuro </summary>
|
||||
public string? chsrap1 { get; set; }
|
||||
|
||||
/// <summary>Numero 2 rapportino futuro </summary>
|
||||
public int? chnrap2 { get; set; }
|
||||
|
||||
/// <summary>Modalità raccolta chiamata </summary>
|
||||
public string? chmodrac { get; set; }
|
||||
|
||||
/// <summary>Numero chiamata per impianto per anno </summary>
|
||||
public int? chprgann { get; set; }
|
||||
|
||||
|
||||
/// <summary>Importo manodopera </summary>
|
||||
[Column(TypeName = "decimal(18, 4)")]
|
||||
public decimal? chimpman { get; set; }
|
||||
|
||||
/// <summary>Percentuale manodopera </summary>
|
||||
[Column(TypeName = "decimal(6, 2)")]
|
||||
public decimal? chperman { get; set; }
|
||||
|
||||
/// <summary>Stampa manodopera </summary>
|
||||
public string? chflstim { get; set; }
|
||||
|
||||
/// <summary>Chiusura da remoto </summary>
|
||||
public string? chfleste { get; set; }
|
||||
|
||||
/// <summary>Riferimento seriale importazione </summary>
|
||||
public string? chserext { get; set; }
|
||||
|
||||
/// <summary>Descrizione </summary>
|
||||
public string? imdescri { get; set; }
|
||||
|
||||
/// <summary>Tipo impianto</summary>
|
||||
public string? imtipoim { get; set; }
|
||||
|
||||
/// <summary>Ultimo amministratore </summary>
|
||||
public string? imultamm { get; set; }
|
||||
|
||||
/// <summary>Descrizione Ult. Amministratore </summary>
|
||||
public string? imultdam { get; set; }
|
||||
|
||||
/// <summary>Telefono Ult. Amministratore </summary>
|
||||
public string? imulttam { get; set; }
|
||||
|
||||
/// <summary>Zona manutenzione </summary>
|
||||
public string? imzonman { get; set; }
|
||||
|
||||
/// <summary>Pubblico/privato</summary>
|
||||
public string? imflpupr { get; set; }
|
||||
|
||||
/// <summary>Zona chiamate </summary>
|
||||
public string? imzonchi { get; set; }
|
||||
|
||||
/// <summary>Zona supervisione </summary>
|
||||
public string? imzonsup { get; set; }
|
||||
|
||||
/// <summary>Data inizio manutenzione </summary>
|
||||
public DateTime? imdainma { get; set; }
|
||||
|
||||
/// <summary>Data fine manutenzione </summary>
|
||||
public DateTime? imdafima { get; set; }
|
||||
|
||||
/// <summary>Data costruzione </summary>
|
||||
public DateTime? imdatcos { get; set; }
|
||||
|
||||
/// <summary>Numero telesoccorso </summary>
|
||||
public string? imteleso { get; set; }
|
||||
|
||||
/// <summary>Email cliente</summary>
|
||||
public string? an_email { get; set; }
|
||||
|
||||
/// <summary>Ultimo cliente </summary>
|
||||
public string? imultcli { get; set; }
|
||||
|
||||
/// <summary>codice cliente </summary>
|
||||
public string? ancodice { get; set; }
|
||||
|
||||
/// <summary>tipo anagrafica </summary>
|
||||
public string? antipcon { get; set; }
|
||||
|
||||
/// <summary>costo chiamata </summary>
|
||||
[Column(TypeName = "decimal(18, 4)")]
|
||||
public decimal? chiamata { get; set; }
|
||||
|
||||
/// <summary>spese viaggio </summary>
|
||||
[Column(TypeName = "decimal(18, 4)")]
|
||||
public decimal? spe_viaggio { get; set; }
|
||||
|
||||
/// <summary>costo orario ordinario </summary>
|
||||
[Column(TypeName = "decimal(18, 4)")]
|
||||
public decimal? costo_ordinario { get; set; }
|
||||
|
||||
/// <summary>costo orario notturno </summary>
|
||||
[Column(TypeName = "decimal(18, 4)")]
|
||||
public decimal? costo_notturno { get; set; }
|
||||
|
||||
/// <summary>costo orario straordinario </summary>
|
||||
[Column(TypeName = "decimal(18, 4)")]
|
||||
public decimal? costo_straordinario { get; set; }
|
||||
|
||||
/// <summary>costo orario festivo </summary>
|
||||
[Column(TypeName = "decimal(18, 4)")]
|
||||
public decimal? costo_festivo { get; set; }
|
||||
|
||||
/// <summary>Azienda di riferimento associata all'impianto (gestione loghi differenti)</summary>
|
||||
public string? imazirif { get; set; }
|
||||
|
||||
/// <summary>riferimento impianto (va su rapportino)</summary>
|
||||
public string? imrefref { get; set; }
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
211
ApiPolo/Models/ChiamateTable.cs
Normal file
211
ApiPolo/Models/ChiamateTable.cs
Normal file
@ -0,0 +1,211 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace ApiPolo.Models
|
||||
{
|
||||
/// <summary>Tabella CHIAMATE (insert da app)</summary>
|
||||
public class ChiamateTable
|
||||
{
|
||||
/// <summary></summary>
|
||||
[Key]
|
||||
public string? chcodazi { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
[Key]
|
||||
public string? chserial { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? chcodese { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? chtipo { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
[System.ComponentModel.DataAnnotations.Schema.Column(TypeName = "decimal(10, 0)")]
|
||||
public decimal? chnumero { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public DateTime? chdata { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public int? chora { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public int? chmin { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public int? chopins { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public int? chopass { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public int? chopchi { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? chcodimp { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? chaziimp { get; set; }
|
||||
|
||||
|
||||
|
||||
/// <summary></summary>
|
||||
public string? chtchiam { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? chtmanut { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? chstato { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public DateTime? chdtapp { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public int? choraapi { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public int? chminapi { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public int? choraapf { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public int? chminapf { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? chrifer { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? chtelef { get; set; }
|
||||
|
||||
|
||||
|
||||
/// <summary></summary>
|
||||
public string? chcodseg { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? chstopi { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? chnote { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public DateTime? chdtass { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public int? chorass { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public int? chminass { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public DateTime? chdtchi { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public int? chorachi { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public int? chminchi { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public DateTime? chdtlin { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public int? chorali { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public int? chminli { get; set; }
|
||||
|
||||
|
||||
|
||||
/// <summary></summary>
|
||||
public DateTime? chdtlfi { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public int? choralf { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public int? chminlf { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? chvalfat { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? cpccchk { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public int? chnrap1 { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? chsrap1 { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public int? chnrap2 { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? chsrap2 { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? chmodrac { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public int? chprgann { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? chserchi { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? chdesfat { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? chdessup { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
[System.ComponentModel.DataAnnotations.Schema.Column(TypeName = "decimal(18, 4)")]
|
||||
public decimal? chimpofa { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? chserdoc { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
[System.ComponentModel.DataAnnotations.Schema.Column(TypeName = "decimal(18, 4)")]
|
||||
public decimal? chimpmat { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
[System.ComponentModel.DataAnnotations.Schema.Column(TypeName = "decimal(18, 4)")]
|
||||
public decimal? chimpman { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
[System.ComponentModel.DataAnnotations.Schema.Column(TypeName = "decimal(6, 2)")]
|
||||
public decimal? chperman { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? chflstim { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? chfleste { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? chserext { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? chrifiutata { get; set; }
|
||||
|
||||
///// <summary></summary>
|
||||
//public string? chincarico { get; set; }
|
||||
|
||||
///// <summary></summary>
|
||||
//public string? chserweb { get; set; }
|
||||
|
||||
///// <summary></summary>
|
||||
//public string? chinlinea { get; set; }
|
||||
|
||||
///// <summary></summary>
|
||||
//public string? chpreinc { get; set; }
|
||||
|
||||
///// <summary></summary>
|
||||
//public string? chtelesan { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
212
ApiPolo/Models/ChiamateTableOut.cs
Normal file
212
ApiPolo/Models/ChiamateTableOut.cs
Normal file
@ -0,0 +1,212 @@
|
||||
|
||||
|
||||
namespace ApiPolo.Models
|
||||
{
|
||||
/// <summary>Tabella CHIAMATE (insert da app) - Output</summary>
|
||||
public class ChiamateTableOut
|
||||
{
|
||||
/// <summary></summary>
|
||||
public string? chcodazi { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? chserial { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? chcodese { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? chtipo { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
[System.ComponentModel.DataAnnotations.Schema.Column(TypeName = "decimal(10, 0)")]
|
||||
public decimal? chnumero { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public DateTime? chdata { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public int? chora { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public int? chmin { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public int? chopins { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public int? chopass { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public int? chopchi { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? chcodimp { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? chaziimp { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? chtchiam { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? chtmanut { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? chstato { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public DateTime? chdtapp { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public int? choraapi { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public int? chminapi { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public int? choraapf { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public int? chminapf { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? chrifer { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? chtelef { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? chcodseg { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? chstopi { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? chnote { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public DateTime? chdtass { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public int? chorass { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public int? chminass { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public DateTime? chdtchi { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public int? chorachi { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public int? chminchi { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public DateTime? chdtlin { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public int? chorali { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public int? chminli { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public DateTime? chdtlfi { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public int? choralf { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public int? chminlf { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? chvalfat { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? cpccchk { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public int? chnrap1 { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? chsrap1 { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public int? chnrap2 { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? chsrap2 { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? chmodrac { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public int? chprgann { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? chserchi { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? chdesfat { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? chdessup { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
[System.ComponentModel.DataAnnotations.Schema.Column(TypeName = "decimal(18, 4)")]
|
||||
public decimal? chimpofa { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? chserdoc { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
[System.ComponentModel.DataAnnotations.Schema.Column(TypeName = "decimal(18, 4)")]
|
||||
public decimal? chimpmat { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
[System.ComponentModel.DataAnnotations.Schema.Column(TypeName = "decimal(18, 4)")]
|
||||
public decimal? chimpman { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
[System.ComponentModel.DataAnnotations.Schema.Column(TypeName = "decimal(6, 2)")]
|
||||
public decimal? chperman { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? chflstim { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? chfleste { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? chserext { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? chrifiutata { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? chincarico { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? chserweb { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? chinlinea { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? chpreinc { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? chtelesan { get; set; }
|
||||
|
||||
/// <summary>errore titolo</summary>
|
||||
public string? err_title { get; set; }
|
||||
|
||||
/// <summary>errore dettaglio</summary>
|
||||
public string? err_detail { get; set; }
|
||||
|
||||
/// <summary>errore status code (200, 500)</summary>
|
||||
public string? err_status_code { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
305
ApiPolo/Models/Chiamate_out.cs
Normal file
305
ApiPolo/Models/Chiamate_out.cs
Normal file
@ -0,0 +1,305 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace ApiPolo.Models
|
||||
{
|
||||
/// <summary>ViSTA Chiamate</summary>
|
||||
[Keyless]
|
||||
public class Chiamate_out
|
||||
{
|
||||
/// <summary>Azienda</summary>
|
||||
public string? chcodazi { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Seriale Chiamata
|
||||
/// </summary>
|
||||
public string? chserial { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Stato chiamata
|
||||
/// </summary>
|
||||
public string? chstato { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Codice Chiamatista assegnato
|
||||
/// </summary>
|
||||
public string? chtchiam { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Data appuntamento chiamata
|
||||
/// </summary>
|
||||
public DateTime? chdtapp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Ora appuntamento inizio
|
||||
/// </summary>
|
||||
public int? choraaPI { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Minuti appuntamento inizio
|
||||
/// </summary>
|
||||
public int? chminapi { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Note appuntamento
|
||||
/// </summary>
|
||||
public string? chnote { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Codice Impianto chiamata
|
||||
/// </summary>
|
||||
public string? chcodimp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Descrizione codice segnalazione
|
||||
/// </summary>
|
||||
public string? csdescr { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Telefono cliente
|
||||
/// </summary>
|
||||
public string? antelefo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// descrizione cliente
|
||||
/// </summary>
|
||||
public string? andescri { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Indirizzo impianto tipo
|
||||
/// </summary>
|
||||
/// <example>Via,Piazza,</example>
|
||||
public string? imindiri1 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Indirizzo impianto nome
|
||||
/// </summary>
|
||||
public string? imindiri2 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Indirizzo impianto numero
|
||||
/// </summary>
|
||||
public int? imindiri3 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Indirizzo impianto sottonumero
|
||||
/// </summary>
|
||||
public string? imindiri4 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Indirizzo impianto Scala
|
||||
/// </summary>
|
||||
public string? imindiri5 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Indirizzo impianto località
|
||||
/// </summary>
|
||||
public string? imlocali { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Indirizzo impianto Cap
|
||||
/// </summary>
|
||||
public string? imcodcap { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Indirizzo impianto comune
|
||||
/// </summary>
|
||||
public string? imcomune { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Indirizzo impianto provincia
|
||||
/// </summary>
|
||||
public string? improvin { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Indirizzo impianto nazione
|
||||
/// </summary>
|
||||
public string? imcodnaz { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// matricola impianto
|
||||
/// </summary>
|
||||
public string? immatric { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// numero impianto
|
||||
/// </summary>
|
||||
public string? imnumimp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// ubicazione impianto
|
||||
/// </summary>
|
||||
public string? imubicaz { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Tecnico descrizione
|
||||
/// </summary>
|
||||
public string? tcdescri { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Tecnico codice
|
||||
/// </summary>
|
||||
public string? tccodice { get; set; }
|
||||
|
||||
/*campi di RAPP_NEW*/
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// RAPP_NEW: seriale rapp_new preso in carico
|
||||
/// </summary>
|
||||
public string? ser_rapp_ic { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// RAPP_NEW: tipo rapp_new preso in carico (valore vuoto)
|
||||
/// </summary>
|
||||
public string? tipo_rapp_ic { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// RAPP_NEW: preso in carico (S o NULL)
|
||||
/// </summary>
|
||||
public string? ic { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// RAPP_NEW: seriale rapp_new rifiutata
|
||||
/// </summary>
|
||||
public string? ser_rapp_rif { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// RAPP_NEW: tipo rapp rifiutata (valore vuoto)
|
||||
/// </summary>
|
||||
public string? tipo_rapp_rif { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// RAPP_NEW: rifiutato (S o null)
|
||||
/// </summary>
|
||||
public string? rif { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// RAPP_NEW: seriale chiamata chiusa
|
||||
/// </summary>
|
||||
public string? ser_rapp_chiu { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// RAPP_NEW: tipo chiamata chiusa (3 o null)
|
||||
/// </summary>
|
||||
public string? tipo_rapp_chiu { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// RAPP_NEW: seriale buono chiamata chiusa
|
||||
/// </summary>
|
||||
public string? ser_buono_chiu { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// errore titolo
|
||||
/// </summary>
|
||||
public string? err_title { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// errore dettaglio
|
||||
/// </summary>
|
||||
public string? err_detail { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// errore status code (200, 500)
|
||||
/// </summary>
|
||||
public string? err_status_code { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// altri dati chiamata
|
||||
/// </summary>
|
||||
|
||||
|
||||
/// <summary>Esercizio </summary>
|
||||
public string? chcodese { get; set; }
|
||||
|
||||
/// <summary>Tipo </summary>
|
||||
public string? chtipo { get; set; }
|
||||
|
||||
/// <summary>numero chiamata </summary>
|
||||
[Column(TypeName = "decimal(10, 0)")]
|
||||
public decimal? chnumero { get; set; }
|
||||
|
||||
/// <summary>Data inserimento chiamata</summary>
|
||||
public DateTime? chdata { get; set; }
|
||||
|
||||
/// <summary>Ora inserimento chiamata</summary>
|
||||
public int? chora { get; set; }
|
||||
|
||||
/// <summary>Minuti inserimento chiamata</summary>
|
||||
public int? chmin { get; set; }
|
||||
|
||||
/// <summary>operatore assegnazione </summary>
|
||||
public int? chopass { get; set; }
|
||||
|
||||
/// <summary>operatore di chiusura </summary>
|
||||
public int? chopchi { get; set; }
|
||||
|
||||
/// <summary>azienda impianto </summary>
|
||||
public string? chaziimp { get; set; }
|
||||
|
||||
/// <summary>ora appuntamento fine </summary>
|
||||
public int? choraapf { get; set; }
|
||||
|
||||
/// <summary>minuto appuntamento fine </summary>
|
||||
public int? chminapf { get; set; }
|
||||
|
||||
/// <summary>Riferimento chiamata </summary>
|
||||
public string? chrifer { get; set; }
|
||||
|
||||
/// <summary>telefono riferimento </summary>
|
||||
public string? chtelef { get; set; }
|
||||
|
||||
/// <summary>tcodice segnalazione </summary>
|
||||
public string? chcodseg { get; set; }
|
||||
|
||||
/// <summary>altri campi </summary>
|
||||
public Dictionary<string,string>? altri { get; set; }
|
||||
|
||||
/// <summary>Codice cliente </summary>
|
||||
public string? ancodice { get; set; }
|
||||
|
||||
/// <summary>costo chiamata </summary>
|
||||
[Column(TypeName = "decimal(18, 4)")]
|
||||
public decimal? chiamata { get; set; }
|
||||
|
||||
/// <summary>spese viaggio </summary>
|
||||
[Column(TypeName = "decimal(18, 4)")]
|
||||
public decimal? spe_viaggio { get; set; }
|
||||
|
||||
/// <summary>costo orario ordinario </summary>
|
||||
[Column(TypeName = "decimal(18, 4)")]
|
||||
public decimal? costo_ordinario { get; set; }
|
||||
|
||||
/// <summary>costo orario notturno </summary>
|
||||
[Column(TypeName = "decimal(18, 4)")]
|
||||
public decimal? costo_notturno { get; set; }
|
||||
|
||||
/// <summary>costo orario straordinario </summary>
|
||||
[Column(TypeName = "decimal(18, 4)")]
|
||||
public decimal? costo_straordinario { get; set; }
|
||||
|
||||
/// <summary>costo orario festivo </summary>
|
||||
[Column(TypeName = "decimal(18, 4)")]
|
||||
public decimal? costo_festivo { get; set; }
|
||||
|
||||
/// <summary>Azienda di riferimento associata all'impianto (gestione loghi differenti)</summary>
|
||||
public string? imazirif { get; set; }
|
||||
|
||||
/// <summary>riferimento impianto (va su rapportino)</summary>
|
||||
public string? imrefref { get; set; }
|
||||
|
||||
/// <summary>indirizzo stampa (html) su buono</summary>
|
||||
public string? indirizzo_stampa { get; set; }
|
||||
|
||||
/// <summary>impianto per lista (html)</summary>
|
||||
public string? impianto_list { get; set; }
|
||||
|
||||
/// <summary>riferimento impianto (html) su buono</summary>
|
||||
public string? riferimento_impianto { get; set; }
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
31
ApiPolo/Models/Chiusure.cs
Normal file
31
ApiPolo/Models/Chiusure.cs
Normal file
@ -0,0 +1,31 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace ApiPolo.Models
|
||||
{
|
||||
/// <summary>Chiusure</summary>
|
||||
[Keyless]
|
||||
public class Chiusure
|
||||
{
|
||||
/// <summary>codice chiusura</summary>
|
||||
public string? cccodice { get; set; }
|
||||
|
||||
/// <summary>descrizione</summary>
|
||||
public string? ccdescr { get; set; }
|
||||
|
||||
/// <summary>ccrapabi</summary>
|
||||
public int ccrapabi { get; set; }
|
||||
|
||||
/// <summary>obbligatoria</summary>
|
||||
public int ccrapobb { get; set; }
|
||||
|
||||
/// <summary>ccchiint</summary>
|
||||
public string? ccchiint { get; set; }
|
||||
|
||||
/// <summary>azienda</summary>
|
||||
public string? cccodazi { get; set; }
|
||||
|
||||
/// <summary>Descrizione supplementare da mettere sul rapportino</summary>
|
||||
public string? ccdessup { get; set; }
|
||||
}
|
||||
|
||||
}
|
||||
80
ApiPolo/Models/ChiusureTable.cs
Normal file
80
ApiPolo/Models/ChiusureTable.cs
Normal file
@ -0,0 +1,80 @@
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Internal;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace ApiPolo.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// (Virtual Task) Contiene i campi di CCHIUSA
|
||||
/// </summary>
|
||||
public class ChiusureTable
|
||||
{
|
||||
/// <summary></summary>
|
||||
[Key]
|
||||
public string? cccodazi { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
[Key]
|
||||
public string? cccodice { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? ccdescr { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? ccflfatt { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? ccflrep { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? ccdessup { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? cctipcod { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? ccgruppo { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
[Column(TypeName = "decimal(18, 4)")]
|
||||
public decimal? ccimpint { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
[Column(TypeName = "decimal(18, 4)")]
|
||||
public decimal? ccimpman { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? ccserint { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? ccserman { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
[Column(TypeName = "decimal(4, 1)")]
|
||||
public decimal? ccnumore { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
[Column(TypeName = "decimal(6, 2)")]
|
||||
public decimal? ccperman { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
[Column(TypeName = "decimal(4, 1)")]
|
||||
public decimal? corecom { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public DateTime? codtobso { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public int? ccrapabi { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public int? ccrapobb { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? ccriapre { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? ccchiint { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
60
ApiPolo/Models/Commessa.cs
Normal file
60
ApiPolo/Models/Commessa.cs
Normal file
@ -0,0 +1,60 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace ApiPolo.Models
|
||||
{
|
||||
/// <summary>ViSTA API_COMMESSE</summary>
|
||||
[Keyless]
|
||||
public class Commessa
|
||||
{
|
||||
/// <summary>seriale Commessa</summary>
|
||||
public string? laserial { get; set; }
|
||||
|
||||
/// <summary>Codice Commessa</summary>
|
||||
public string? lacodcom { get; set; }
|
||||
|
||||
/// <summary>Fase Commessa </summary>
|
||||
public string? ladeslav { get; set; }
|
||||
|
||||
/// <summary>data fine validita Commessa</summary>
|
||||
public DateTime? ladatchi { get; set; }
|
||||
|
||||
/// <summary>tipo </summary>
|
||||
public string? latipcli { get; set; }
|
||||
|
||||
/// <summary>codice cliente</summary>
|
||||
public string? lacodcli { get; set; }
|
||||
|
||||
/// <summary>descrizione cliente</summary>
|
||||
public string? andescri { get; set; }
|
||||
|
||||
/// <summary>impianto</summary>
|
||||
public string? imcodimp { get; set; }
|
||||
|
||||
/// <summary>tipo ind </summary>
|
||||
public string? imindiri1 { get; set; }
|
||||
|
||||
/// <summary>indirizzo </summary>
|
||||
public string? imindiri2 { get; set; }
|
||||
|
||||
/// <summary>numero </summary>
|
||||
public int? imindiri3 { get; set; }
|
||||
|
||||
/// <summary>lettera</summary>
|
||||
public string? imindiri4 { get; set; }
|
||||
|
||||
/// <summary>scala</summary>
|
||||
public string? imindiri5 { get; set; }
|
||||
|
||||
/// <summary>localita</summary>
|
||||
public string? imlocali { get; set; }
|
||||
|
||||
/// <summary>CAP</summary>
|
||||
public string? imcodcap { get; set; }
|
||||
|
||||
/// <summary>provincia</summary>
|
||||
public string? improvin { get; set; }
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
66
ApiPolo/Models/Commessa_out.cs
Normal file
66
ApiPolo/Models/Commessa_out.cs
Normal file
@ -0,0 +1,66 @@
|
||||
namespace ApiPolo.Models
|
||||
{
|
||||
/// <summary>ViSTA API_COMMESSE</summary>
|
||||
public class Commessa_out
|
||||
{
|
||||
/// <summary>Codice Commessa</summary>
|
||||
public string? cncodcan { get; set; }
|
||||
|
||||
/// <summary>Descrizione Commessa</summary>
|
||||
public string? cndescan { get; set; }
|
||||
|
||||
/// <summary>data fine validita Commessa</summary>
|
||||
public DateTime? cndatfin { get; set; }
|
||||
|
||||
/// <summary>tipo </summary>
|
||||
public string? cntipcon { get; set; }
|
||||
|
||||
/// <summary>codice cliente</summary>
|
||||
public string? cncodcon { get; set; }
|
||||
|
||||
/// <summary>descrizione cliente</summary>
|
||||
public string? andescri { get; set; }
|
||||
|
||||
/// <summary>impianto</summary>
|
||||
public string? imcodimp { get; set; }
|
||||
|
||||
/// <summary>tipo ind </summary>
|
||||
public string? imindiri1 { get; set; }
|
||||
|
||||
/// <summary>indirizzo </summary>
|
||||
public string? imindiri2 { get; set; }
|
||||
|
||||
/// <summary>numero </summary>
|
||||
public int? imindiri3 { get; set; }
|
||||
|
||||
/// <summary>lettera</summary>
|
||||
public string? imindiri4 { get; set; }
|
||||
|
||||
/// <summary>scala</summary>
|
||||
public string? imindiri5 { get; set; }
|
||||
|
||||
/// <summary>localita</summary>
|
||||
public string? imlocali { get; set; }
|
||||
|
||||
/// <summary>CAP</summary>
|
||||
public string? imcodcap { get; set; }
|
||||
|
||||
/// <summary>provincia</summary>
|
||||
public string? improvin { get; set; }
|
||||
|
||||
|
||||
|
||||
|
||||
/// <summary>elemento lista formato html</summary>
|
||||
public string? itemList { get; set; }
|
||||
|
||||
/// <summary>Error title</summary>
|
||||
public string? err_title { get; set; }
|
||||
|
||||
/// <summary>Error deatail</summary>
|
||||
public string? err_detail { get; set; }
|
||||
|
||||
/// <summary>Error code</summary>
|
||||
public string? err_status_code { get; set; }
|
||||
}
|
||||
}
|
||||
66
ApiPolo/Models/CommesseVT.cs
Normal file
66
ApiPolo/Models/CommesseVT.cs
Normal file
@ -0,0 +1,66 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace ApiPolo.Models
|
||||
{
|
||||
/// <summary>ViSTA API_COMMESSE - VT</summary>
|
||||
[Keyless]
|
||||
public class CommesseVT
|
||||
{
|
||||
/// <summary>seriale Commessa</summary>
|
||||
public string? laserial { get; set; }
|
||||
|
||||
/// <summary>Azienda</summary>
|
||||
public string? lacodazi { get; set; }
|
||||
|
||||
/// <summary>Codice Commessa</summary>
|
||||
public string? lacodcom { get; set; }
|
||||
|
||||
/// <summary>Fase Commessa </summary>
|
||||
public string? ladeslav { get; set; }
|
||||
|
||||
/// <summary>data fine validita Commessa</summary>
|
||||
public DateTime? ladatchi { get; set; }
|
||||
|
||||
/// <summary>tipo </summary>
|
||||
public string? latipcli { get; set; }
|
||||
|
||||
/// <summary>codice cliente</summary>
|
||||
public string? lacodcli { get; set; }
|
||||
|
||||
/// <summary>descrizione cliente</summary>
|
||||
public string? andescri { get; set; }
|
||||
|
||||
/// <summary>impianto</summary>
|
||||
public string? imcodimp { get; set; }
|
||||
|
||||
/// <summary>tipo ind </summary>
|
||||
public string? imindiri1 { get; set; }
|
||||
|
||||
/// <summary>indirizzo </summary>
|
||||
public string? imindiri2 { get; set; }
|
||||
|
||||
/// <summary>numero </summary>
|
||||
public int? imindiri3 { get; set; }
|
||||
|
||||
/// <summary>lettera</summary>
|
||||
public string? imindiri4 { get; set; }
|
||||
|
||||
/// <summary>scala</summary>
|
||||
public string? imindiri5 { get; set; }
|
||||
|
||||
/// <summary>localita</summary>
|
||||
public string? imlocali { get; set; }
|
||||
|
||||
/// <summary>CAP</summary>
|
||||
public string? imcodcap { get; set; }
|
||||
|
||||
/// <summary>provincia</summary>
|
||||
public string? improvin { get; set; }
|
||||
|
||||
/// <summary>codice impianto - commesse</summary>
|
||||
public string? lacodimp { get; set; }
|
||||
|
||||
/// <summary>flag commessa generica cliente</summary>
|
||||
public string? lacomgen { get; set; }
|
||||
}
|
||||
}
|
||||
37
ApiPolo/Models/CommesseVT_Table.cs
Normal file
37
ApiPolo/Models/CommesseVT_Table.cs
Normal file
@ -0,0 +1,37 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace ApiPolo.Models
|
||||
{
|
||||
/// <summary>seriale Commessa</summary>
|
||||
public class CommesseVT_Table
|
||||
{
|
||||
/// <summary>seriale Commessa</summary>
|
||||
[Key]
|
||||
public string? laserial { get; set; }
|
||||
|
||||
/// <summary>Azienda</summary>
|
||||
[Key]
|
||||
public string? lacodazi { get; set; }
|
||||
|
||||
/// <summary>Codice Commessa</summary>
|
||||
public string? lacodcom { get; set; }
|
||||
|
||||
/// <summary>Fase Commessa </summary>
|
||||
public string? ladeslav { get; set; }
|
||||
|
||||
/// <summary>data fine validita Commessa</summary>
|
||||
public DateTime? ladatchi { get; set; }
|
||||
|
||||
/// <summary>tipo </summary>
|
||||
public string? latipcli { get; set; }
|
||||
|
||||
/// <summary>codice cliente</summary>
|
||||
public string? lacodcli { get; set; }
|
||||
|
||||
/// <summary>codice impianto</summary>
|
||||
public string? lacodimp { get; set; }
|
||||
|
||||
/// <summary>flag commessa generica cliente</summary>
|
||||
public string? lacomgen { get; set; }
|
||||
}
|
||||
}
|
||||
63
ApiPolo/Models/Compo_Impia.cs
Normal file
63
ApiPolo/Models/Compo_Impia.cs
Normal file
@ -0,0 +1,63 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
|
||||
namespace ApiPolo.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// Contiene i campi di xxxMICOMIMP (componenti impianto)
|
||||
/// </summary>
|
||||
[Keyless]
|
||||
public class Compo_Impia
|
||||
{
|
||||
/// <summary>
|
||||
/// codice impianto
|
||||
/// </summary>
|
||||
public string? cocodimp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// codice impianto
|
||||
/// </summary>
|
||||
public string? cocodazi { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// indice riga
|
||||
/// </summary>
|
||||
public int? cprownum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// quantità
|
||||
/// </summary>
|
||||
[Column(TypeName = "decimal(10, 6)")]
|
||||
public decimal? coqtaart { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// codice articolo
|
||||
/// </summary>
|
||||
public string? cocodart { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// note
|
||||
/// </summary>
|
||||
public string? co__note { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// lotto articolo
|
||||
/// </summary>
|
||||
public string? lotto { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// matricola articolo
|
||||
/// </summary>
|
||||
public string? matricola { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// descrizione articolo
|
||||
///
|
||||
/// </summary>
|
||||
public string? ardesart { get; set; }
|
||||
|
||||
/// <summary>descrizione per ogni articolo (se abilitata da configurazioni)</summary>
|
||||
public string? desc_sup { get; set; }
|
||||
}
|
||||
}
|
||||
55
ApiPolo/Models/Compo_Impia_Table.cs
Normal file
55
ApiPolo/Models/Compo_Impia_Table.cs
Normal file
@ -0,0 +1,55 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace ApiPolo.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// Classe componenti per scrittura db
|
||||
/// </summary>
|
||||
public class Compo_Impia_Table
|
||||
{
|
||||
/// <summary>
|
||||
/// codice impianto
|
||||
/// </summary>
|
||||
[Key]
|
||||
public string? cocodimp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// codice impianto
|
||||
/// </summary>
|
||||
[Key]
|
||||
public string? cocodazi { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// indice riga
|
||||
/// </summary>
|
||||
[Key]
|
||||
public int? cprownum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// codice articolo
|
||||
/// </summary>
|
||||
[Column(TypeName = "decimal(10, 6)")]
|
||||
public decimal? coqtaart { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// codice articolo
|
||||
/// </summary>
|
||||
public string? cocodart { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// note
|
||||
/// </summary>
|
||||
public string? co__note { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// lotto articolo
|
||||
/// </summary>
|
||||
public string? pilotto { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// matricola articolo
|
||||
/// </summary>
|
||||
public string? pimatric { get; set; }
|
||||
}
|
||||
}
|
||||
69
ApiPolo/Models/Compo_Impia_out.cs
Normal file
69
ApiPolo/Models/Compo_Impia_out.cs
Normal file
@ -0,0 +1,69 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace ApiPolo.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// Contiene i campi di xxxMICOMIMP (componenti impianto) oggetto di output
|
||||
/// </summary>
|
||||
[Keyless]
|
||||
public class Compo_Impia_out
|
||||
{
|
||||
/// <summary>
|
||||
/// codice impianto
|
||||
/// </summary>
|
||||
public string? cocodimp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// codice impianto
|
||||
/// </summary>
|
||||
public string? cocodazi { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// indice riga
|
||||
/// </summary>
|
||||
public int? cprownum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// codice articolo
|
||||
/// </summary>
|
||||
[Column(TypeName = "decimal(10, 6)")]
|
||||
public decimal? coqtaart { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// codice articolo
|
||||
/// </summary>
|
||||
public string? cocodart { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// note
|
||||
/// </summary>
|
||||
public string? co__note { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// lotto articolo
|
||||
/// </summary>
|
||||
public string? lotto { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// matricola articolo
|
||||
/// </summary>
|
||||
public string? matricola { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// errore titolo
|
||||
/// </summary>
|
||||
public string? err_title { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// errore dettaglio
|
||||
/// </summary>
|
||||
public string? err_detail { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// errore status code (200, 500)
|
||||
/// </summary>
|
||||
public string? err_status_code { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
216
ApiPolo/Models/Configurazione_out.cs
Normal file
216
ApiPolo/Models/Configurazione_out.cs
Normal file
@ -0,0 +1,216 @@
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Internal;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace ApiPolo.Models
|
||||
{
|
||||
/// <summary></summary>
|
||||
public class Configurazione_out
|
||||
{
|
||||
/// <summary>azienda</summary>
|
||||
public string? azienda { get; set; }
|
||||
|
||||
/// <summary>path file buoni (immagini rapportini)</summary>
|
||||
public string? path_buoni { get; set; }
|
||||
|
||||
/// <summary>prefisso dei buoni da chiamata</summary>
|
||||
public string? prefisso_buoni_chia { get; set; }
|
||||
|
||||
/// <summary>prefisso dei buoni da mauntenzione</summary>
|
||||
public string? prefisso_buoni_man { get; set; }
|
||||
|
||||
/// <summary>url ftp per upload delle immagini</summary>
|
||||
public string? ftp_url { get; set; }
|
||||
|
||||
/// <summary>utente ftp per upload delle immagini</summary>
|
||||
public string? ftp_usr { get; set; }
|
||||
|
||||
/// <summary>password ftp per upload delle immagini</summary>
|
||||
public string? ftp_pwd { get; set; }
|
||||
|
||||
/// <summary>Listino articoli per magazzino</summary>
|
||||
public string? listino { get; set; }
|
||||
|
||||
/// <summary>pulsante naviga nelle liste</summary>
|
||||
public bool? abilita_naviga { get; set; }
|
||||
|
||||
/// <summary>pulsante telefona nelle liste</summary>
|
||||
public bool? abilita_telefona { get; set; }
|
||||
|
||||
/// <summary>abilita funzione</summary>
|
||||
public bool? abilita_chiamate { get; set; }
|
||||
|
||||
/// <summary>abilita funzione</summary>
|
||||
public bool? abilita_manutenzioni { get; set; }
|
||||
|
||||
/// <summary>barcode abilitato opzionalmente in varie sezioni. Per renderlo obbligatorio vedi flag sott</summary>
|
||||
public bool? abilita_barcode { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public bool? chiamate_accetta { get; set; }
|
||||
|
||||
/// <summary>barcode obbligatorio</summary>
|
||||
public bool? chiamate_accetta_barcode { get; set; }
|
||||
|
||||
/// <summary>funziona anche offline</summary>
|
||||
public bool? chiamate_accetta_offline { get; set; }
|
||||
|
||||
/// <summary>abilita funzione</summary>
|
||||
public bool? chiamate_rifiuta { get; set; }
|
||||
|
||||
/// <summary>hiamate_rifiuta_barcode</summary>
|
||||
public bool? chiamate_rifiuta_barcode { get; set; }
|
||||
|
||||
/// <summary>funziona anche offline</summary>
|
||||
public bool? chiamate_rifiuta_offline { get; set; }
|
||||
|
||||
/// <summary>barcode obbligatorio</summary>
|
||||
public bool? chiamate_chiudi_barcode { get; set; }
|
||||
|
||||
/// <summary>barcode obbligatorio</summary>
|
||||
public bool? chiamate_firma_barcode { get; set; }
|
||||
|
||||
/// <summary>barcode obbligatorio</summary>
|
||||
public bool? chiamate_chiudi_salva_barcode { get; set; }
|
||||
|
||||
/// <summary>abilita funzione</summary>
|
||||
public bool? manutenzioni_accetta { get; set; }
|
||||
|
||||
/// <summary>funziona anche offline</summary>
|
||||
public bool? chiamate_chiudi_salva_offline { get; set; }
|
||||
|
||||
/// <summary>abilita funzione</summary>
|
||||
public bool? manutenzioni_rifiuta { get; set; }
|
||||
|
||||
/// <summary>barcode obbligatorio</summary>
|
||||
public bool? manutenzioni_accetta_barcode { get; set; }
|
||||
|
||||
/// <summary>funziona anche offline</summary>
|
||||
public bool? manutenzioni_accetta_offline { get; set; }
|
||||
|
||||
/// <summary>barcode obbligatorio</summary>
|
||||
public bool? manutenzioni_chiudi_barcode { get; set; }
|
||||
|
||||
/// <summary>barcode obbligatorio</summary>
|
||||
public bool? manutenzioni_firma_barcode { get; set; }
|
||||
|
||||
/// <summary>barcode obbligatorio</summary>
|
||||
public bool? manutenzioni_chiudi_salva_barcode { get; set; }
|
||||
|
||||
/// <summary>funziona anche offline</summary>
|
||||
public bool? manutenzioni_chiudi_salva_offline { get; set; }
|
||||
|
||||
/// <summary>chiede presena DPI prima di scheda</summary>
|
||||
public bool? dpi_checkbox { get; set; }
|
||||
|
||||
/// <summary>visualizza anagrafica</summary>
|
||||
public bool? anagrafica { get; set; }
|
||||
|
||||
/// <summary>abilita stato impianto</summary>
|
||||
public bool? stato_finale { get; set; }
|
||||
|
||||
/// <summary>abilita</summary>
|
||||
public bool? descrizione_intervento { get; set; }
|
||||
|
||||
/// <summary>abilita</summary>
|
||||
public bool? composizione_impianto { get; set; }
|
||||
|
||||
/// <summary>abilita</summary>
|
||||
public bool? note_intervento { get; set; }
|
||||
|
||||
/// <summary>abilita</summary>
|
||||
public bool? esito_intervento { get; set; }
|
||||
|
||||
/// <summary>abilita</summary>
|
||||
public bool? ora_inizio_fine { get; set; }
|
||||
|
||||
/// <summary>abilita</summary>
|
||||
public bool? materiali { get; set; }
|
||||
|
||||
/// <summary>abilita</summary>
|
||||
public bool? diritto_chiamata { get; set; }
|
||||
|
||||
/// <summary>abilita</summary>
|
||||
public bool? manodopera { get; set; }
|
||||
|
||||
/// <summary>abilita</summary>
|
||||
public bool? spese_viaggio { get; set; }
|
||||
|
||||
/// <summary>abilita</summary>
|
||||
public bool? tipo_pagamento { get; set; }
|
||||
|
||||
/// <summary>abilita</summary>
|
||||
public bool? note_pagamento { get; set; }
|
||||
|
||||
/// <summary>abilita</summary>
|
||||
public bool? causale { get; set; }
|
||||
|
||||
/// <summary>abilita</summary>
|
||||
public bool? time_sheet { get; set; }
|
||||
|
||||
/// <summary>abilita</summary>
|
||||
public bool? time_sheet_offline { get; set; }
|
||||
|
||||
/// <summary>Costo orario intervento</summary>
|
||||
[Column(TypeName = "decimal(8, 3)")]
|
||||
public decimal? costo_orario { get; set; }
|
||||
|
||||
/// <summary>porta ftp</summary>
|
||||
public int? ftp_port { get; set; }
|
||||
|
||||
/// <summary>barcode obbligatorio</summary>
|
||||
public bool? manutenzioni_rifiuta_barcode { get; set; }
|
||||
|
||||
/// <summary>storico rapportini</summary>
|
||||
public bool? storico { get; set; }
|
||||
|
||||
/// <summary>storico impianto</summary>
|
||||
public bool? storico_tecnico { get; set; }
|
||||
|
||||
/// <summary>Abilita link storico interventi</summary>
|
||||
public bool? storico_interventi { get; set; }
|
||||
|
||||
/// <summary>Abilita link ricerca impianti</summary>
|
||||
public bool? ricerca_impianti { get; set; }
|
||||
|
||||
/// <summary>Abilita link storico impianto (solo per chi gestisce il magazzino)</summary>
|
||||
public bool? storico_impianto { get; set; }
|
||||
|
||||
/// <summary>Calcolo tempo rapportino automatico</summary>
|
||||
public bool? ora_inizio_fine_automatica { get; set; }
|
||||
|
||||
/// <summary>Stampa ora inizio-fine su buono</summary>
|
||||
public bool? stampa_orario { get; set; }
|
||||
|
||||
/// <summary>Stampa intestazione su buono</summary>
|
||||
public string? intestazione_stampa { get; set; }
|
||||
|
||||
|
||||
/// <summary>Seriale chiamata da usare come teplate per inserire chiamata da app (commessa o normale)</summary>
|
||||
public string? seriale_template_chi { get; set; }
|
||||
|
||||
/// <summary>0=non abilitata 1,2,3=abilitata </summary>
|
||||
public Int16? abilita_inserimento_chiamate { get; set; }
|
||||
|
||||
/// <summary>Data rapportino editabile</summary>
|
||||
public bool? abilita_data_rapp_edit { get; set; }
|
||||
|
||||
/// <summary>articoli impianto in forma decimale</summary>
|
||||
public Int16? numeri_decimali { get; set; }
|
||||
|
||||
/// <summary>max num record in ricerca</summary>
|
||||
public int? max_record { get; set; }
|
||||
|
||||
/// <summary>storico impianto</summary>
|
||||
public List<AziendaRif>? aziende_coll { get; set; }
|
||||
|
||||
/// <summary>Error Message </summary>
|
||||
public string? err_title { get; set; }
|
||||
|
||||
/// <summary>Error Message detail</summary>
|
||||
public string? err_detail { get; set; }
|
||||
|
||||
/// <summary>Status</summary>
|
||||
public string? err_status_code { get; set; }
|
||||
}
|
||||
}
|
||||
214
ApiPolo/Models/Configurazioni.cs
Normal file
214
ApiPolo/Models/Configurazioni.cs
Normal file
@ -0,0 +1,214 @@
|
||||
using Microsoft.AspNetCore.Components.RenderTree;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace ApiPolo.Models
|
||||
{
|
||||
/// <summary>Configurazioni</summary>
|
||||
public class Configurazioni
|
||||
{
|
||||
/// <summary>azienda</summary>
|
||||
[Key]
|
||||
public string? azienda { get; set; }
|
||||
|
||||
/// <summary>path file buoni (immagini rapportini)</summary>
|
||||
public string? path_buoni { get; set; }
|
||||
|
||||
/// <summary>prefisso dei buoni da chiamata</summary>
|
||||
public string? prefisso_buoni_chia { get; set; }
|
||||
|
||||
/// <summary>prefisso dei buoni da mauntenzione</summary>
|
||||
public string? prefisso_buoni_man { get; set; }
|
||||
|
||||
/// <summary>url ftp per upload delle immagini</summary>
|
||||
public string? ftp_url { get; set; }
|
||||
|
||||
/// <summary>utente ftp per upload delle immagini</summary>
|
||||
public string? ftp_usr { get; set; }
|
||||
|
||||
/// <summary>password ftp per upload delle immagini</summary>
|
||||
public string? ftp_pwd { get; set; }
|
||||
|
||||
/// <summary>Listino articoli per magazzino</summary>
|
||||
public string? listino { get; set; }
|
||||
|
||||
/// <summary>pulsante naviga nelle liste</summary>
|
||||
public bool? abilita_naviga { get; set; }
|
||||
|
||||
/// <summary>pulsante telefona nelle liste</summary>
|
||||
public bool? abilita_telefona { get; set; }
|
||||
|
||||
/// <summary>abilita funzione</summary>
|
||||
public bool? abilita_chiamate { get; set; }
|
||||
|
||||
/// <summary>abilita funzione</summary>
|
||||
public bool? abilita_manutenzioni { get; set; }
|
||||
|
||||
/// <summary>barcode abilitato opzionalmente in varie sezioni. Per renderlo obbligatorio vedi flag sott</summary>
|
||||
public bool? abilita_barcode { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public bool? chiamate_accetta { get; set; }
|
||||
|
||||
/// <summary>barcode obbligatorio</summary>
|
||||
public bool? chiamate_accetta_barcode { get; set; }
|
||||
|
||||
/// <summary>funziona anche offline</summary>
|
||||
public bool? chiamate_accetta_offline { get; set; }
|
||||
|
||||
/// <summary>abilita funzione</summary>
|
||||
public bool? chiamate_rifiuta { get; set; }
|
||||
|
||||
/// <summary>hiamate_rifiuta_barcode</summary>
|
||||
public bool? chiamate_rifiuta_barcode { get; set; }
|
||||
|
||||
/// <summary>funziona anche offline</summary>
|
||||
public bool? chiamate_rifiuta_offline { get; set; }
|
||||
|
||||
/// <summary>barcode obbligatorio</summary>
|
||||
public bool? chiamate_chiudi_barcode { get; set; }
|
||||
|
||||
/// <summary>barcode obbligatorio</summary>
|
||||
public bool? chiamate_firma_barcode { get; set; }
|
||||
|
||||
/// <summary>barcode obbligatorio</summary>
|
||||
public bool? chiamate_chiudi_salva_barcode { get; set; }
|
||||
|
||||
/// <summary>abilita funzione</summary>
|
||||
public bool? manutenzioni_accetta { get; set; }
|
||||
|
||||
/// <summary>funziona anche offline</summary>
|
||||
public bool? chiamate_chiudi_salva_offline { get; set; }
|
||||
|
||||
/// <summary>abilita funzione</summary>
|
||||
public bool? manutenzioni_rifiuta { get; set; }
|
||||
|
||||
/// <summary>barcode obbligatorio</summary>
|
||||
public bool? manutenzioni_accetta_barcode { get; set; }
|
||||
|
||||
/// <summary>funziona anche offline</summary>
|
||||
public bool? manutenzioni_accetta_offline { get; set; }
|
||||
|
||||
/// <summary>barcode obbligatorio</summary>
|
||||
public bool? manutenzioni_chiudi_barcode { get; set; }
|
||||
|
||||
/// <summary>barcode obbligatorio</summary>
|
||||
public bool? manutenzioni_firma_barcode { get; set; }
|
||||
|
||||
/// <summary>barcode obbligatorio</summary>
|
||||
public bool? manutenzioni_chiudi_salva_barcode { get; set; }
|
||||
|
||||
/// <summary>funziona anche offline</summary>
|
||||
public bool? manutenzioni_chiudi_salva_offline { get; set; }
|
||||
|
||||
/// <summary>chiede presena DPI prima di scheda</summary>
|
||||
public bool? dpi_checkbox { get; set; }
|
||||
|
||||
/// <summary>visualizza anagrafica</summary>
|
||||
public bool? anagrafica { get; set; }
|
||||
|
||||
/// <summary>abilita stato impianto</summary>
|
||||
public bool? stato_finale { get; set; }
|
||||
|
||||
/// <summary>abilita</summary>
|
||||
public bool? descrizione_intervento { get; set; }
|
||||
|
||||
/// <summary>abilita</summary>
|
||||
public bool? composizione_impianto { get; set; }
|
||||
|
||||
/// <summary>abilita</summary>
|
||||
public bool? note_intervento { get; set; }
|
||||
|
||||
/// <summary>abilita</summary>
|
||||
public bool? esito_intervento { get; set; }
|
||||
|
||||
/// <summary>abilita</summary>
|
||||
public bool? ora_inizio_fine { get; set; }
|
||||
|
||||
/// <summary>abilita</summary>
|
||||
public bool? materiali { get; set; }
|
||||
|
||||
/// <summary>abilita</summary>
|
||||
public bool? diritto_chiamata { get; set; }
|
||||
|
||||
/// <summary>abilita</summary>
|
||||
public bool? manodopera { get; set; }
|
||||
|
||||
/// <summary>abilita</summary>
|
||||
public bool? spese_viaggio { get; set; }
|
||||
|
||||
/// <summary>abilita</summary>
|
||||
public bool? tipo_pagamento { get; set; }
|
||||
|
||||
/// <summary>abilita</summary>
|
||||
public bool? note_pagamento { get; set; }
|
||||
|
||||
/// <summary>abilita</summary>
|
||||
public bool? causale { get; set; }
|
||||
|
||||
/// <summary>abilita</summary>
|
||||
public bool? time_sheet { get; set; }
|
||||
|
||||
/// <summary>abilita</summary>
|
||||
public bool? time_sheet_offline { get; set; }
|
||||
|
||||
/// <summary>Costo orario intervento</summary>
|
||||
[Column(TypeName = "decimal(8, 3)")]
|
||||
public decimal? costo_orario { get; set; }
|
||||
|
||||
/// <summary>porta ftp</summary>
|
||||
public int? ftp_port { get; set; }
|
||||
|
||||
/// <summary>barcode obbligatorio</summary>
|
||||
public bool? manutenzioni_rifiuta_barcode { get; set; }
|
||||
|
||||
/// <summary>OBSOLETO</summary>
|
||||
public bool? storico { get; set; }
|
||||
|
||||
/// <summary>OBSOLETO</summary>
|
||||
public bool? storico_tecnico { get; set; }
|
||||
|
||||
|
||||
|
||||
|
||||
/// <summary>Abilita link storico interventi</summary>
|
||||
public bool? storico_interventi { get; set; }
|
||||
|
||||
/// <summary>Abilita link ricerca impianti</summary>
|
||||
public bool? ricerca_impianti { get; set; }
|
||||
|
||||
/// <summary>Abilita link storico impianto (solo per chi gestisce il magazzino)</summary>
|
||||
public bool? storico_impianto { get; set; }
|
||||
|
||||
/// <summary>Calcolo tempo rapportino automatico</summary>
|
||||
public bool? ora_inizio_fine_automatica { get; set; }
|
||||
|
||||
/// <summary>Stampa ora inizio-fine su buono</summary>
|
||||
public bool? stampa_orario { get; set; }
|
||||
|
||||
/// <summary>Stampa intestazione su buono</summary>
|
||||
public string? intestazione_stampa { get; set; }
|
||||
|
||||
/// <summary>Seriale chiamata da usare come teplate per inserire chiamata da app (commessa o normale)</summary>
|
||||
public string? seriale_template_chi { get; set; }
|
||||
|
||||
/// <summary>0=non abilitata 1,2,3=abilitata </summary>
|
||||
public Int16? abilita_inserimento_chiamate { get; set; }
|
||||
|
||||
/// <summary>data rapportino editabile</summary>
|
||||
public bool? abilita_data_rapp_edit { get; set; }
|
||||
|
||||
/// <summary>articoli impianto in forma decimale se valore maggiore di 1 e la cifra indica il numero di cifre decimali, altrimenti sono numeri interi</summary>
|
||||
public Int16? numeri_decimali { get; set; }
|
||||
|
||||
/// <summary>max num record in ricerca</summary>
|
||||
public int? max_record { get; set; }
|
||||
|
||||
/// <summary>rende visibile la riga dei prezzi sul rapportino</summary>
|
||||
public bool? prezzi_visibili { get; set; }
|
||||
|
||||
/// <summary>rende visibile la riga dei prezzi sul rapportino</summary>
|
||||
public bool? desc_supp_prodotti_visibile { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
21
ApiPolo/Models/ConfigurazioniDbContext.cs
Normal file
21
ApiPolo/Models/ConfigurazioniDbContext.cs
Normal file
@ -0,0 +1,21 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace ApiPolo.Models
|
||||
{
|
||||
/// <summary>ConfigurazioniDbContext</summary>
|
||||
public class ConfigurazioniDbContext : DbContext
|
||||
{
|
||||
/// <summary>conf</summary>
|
||||
public DbSet<Configurazioni>? conf { get; set; }
|
||||
|
||||
/// <summary>ConfigurazioniDbContext</summary>
|
||||
public ConfigurazioniDbContext(DbContextOptions<ConfigurazioniDbContext> options) : base(options)
|
||||
{
|
||||
}
|
||||
/// <summary>OnModelCreating</summary>
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<Configurazioni>().ToTable("Configurazioni");
|
||||
}
|
||||
}
|
||||
}
|
||||
31
ApiPolo/Models/DatiAzienda.cs
Normal file
31
ApiPolo/Models/DatiAzienda.cs
Normal file
@ -0,0 +1,31 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace ApiPolo.Models
|
||||
{
|
||||
/// <summary></summary>
|
||||
public class DatiAzienda
|
||||
{
|
||||
/// <summary>azienda</summary>
|
||||
[Key]
|
||||
public string? azienda { get; set; }
|
||||
|
||||
/// <summary>tecnico</summary>
|
||||
[Key]
|
||||
public string? tecnico { get; set; }
|
||||
|
||||
/// <summary>Denominazione</summary>
|
||||
public string? ragsoc { get; set; }
|
||||
|
||||
/// <summary>url del logo esposto</summary>
|
||||
public string? url_logo { get; set; }
|
||||
|
||||
/// <summary>logo</summary>
|
||||
//[NotMapped]
|
||||
//public IFormFile? logo { get; set; }
|
||||
public byte[]? logo { get; set; }
|
||||
|
||||
/// <summary>testo azienda rapportino</summary>
|
||||
public string? testo_buono { get; set; }
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,27 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace ApiPolo.Models.Discovery_dbcontext
|
||||
{
|
||||
/// <summary>Aziende collegate</summary>
|
||||
public class DISCO_AziendaRifDbContext : DbContext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public DbSet<AziendaRif>? Azi { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public DISCO_AziendaRifDbContext(DbContextOptions<DISCO_AziendaRifDbContext> options) : base(options)
|
||||
{
|
||||
}
|
||||
/// <summary></summary>
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<AziendaRif>().ToTable("PIAZIRIF");
|
||||
modelBuilder.Entity<AziendaRif>().HasKey(table => new
|
||||
{
|
||||
table.piazihoc,
|
||||
table.picodtec,
|
||||
table.pirifazi
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,22 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace ApiPolo.Models.Discovery_dbcontext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public class DISCO_CAUS_RAPPDbContext : DbContext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public DbSet<Caus_Rapp>? Causali { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public DISCO_CAUS_RAPPDbContext(DbContextOptions<DISCO_CAUS_RAPPDbContext> options) : base(options)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary></summary>
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<Caus_Rapp>().ToView("API_CAUS_RAPP");
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,22 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace ApiPolo.Models.Discovery_dbcontext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public class DISCO_CHIAMATEDbContext:DbContext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public DbSet<Chiamate>? Chiamate { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public DISCO_CHIAMATEDbContext(DbContextOptions<DISCO_CHIAMATEDbContext> options) : base(options)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary></summary>
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<Chiamate>().ToView("API_CHIAMATE");
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,22 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace ApiPolo.Models.Discovery_dbcontext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public class DISCO_CHIUSUREDbContext:DbContext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public DbSet<Chiusure>? Chiusure { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public DISCO_CHIUSUREDbContext(DbContextOptions<DISCO_CHIUSUREDbContext> options) : base(options)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary></summary>
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<Chiusure>().ToView("API_CHIUSURE");
|
||||
}
|
||||
}
|
||||
}
|
||||
21
ApiPolo/Models/Discovery_dbcontext/DISCO_CLIENTIDbContext.cs
Normal file
21
ApiPolo/Models/Discovery_dbcontext/DISCO_CLIENTIDbContext.cs
Normal file
@ -0,0 +1,21 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace ApiPolo.Models.Discovery_dbcontext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public class DISCO_CLIENTIDbContext:DbContext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public DbSet<Anag>? Clienti { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public DISCO_CLIENTIDbContext(DbContextOptions<DISCO_CLIENTIDbContext> options) : base(options)
|
||||
{
|
||||
}
|
||||
/// <summary></summary>
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<Anag>().ToView("API_CLIENTI");
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,21 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace ApiPolo.Models.Discovery_dbcontext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public class DISCO_COMPO_IMPIADbContext:DbContext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public DbSet<Compo_Impia>? Componen { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public DISCO_COMPO_IMPIADbContext(DbContextOptions<DISCO_COMPO_IMPIADbContext> options) : base(options)
|
||||
{
|
||||
}
|
||||
/// <summary></summary>
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<Compo_Impia>().ToView("API_MICOMIMP");
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,27 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace ApiPolo.Models.Discovery_dbcontext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public class DISCO_COMPO_IMPIA_TABLEDbContext:DbContext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public DbSet<Compo_Impia_Table>? Componen { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public DISCO_COMPO_IMPIA_TABLEDbContext(DbContextOptions<DISCO_COMPO_IMPIA_TABLEDbContext> options) : base(options)
|
||||
{
|
||||
}
|
||||
/// <summary></summary>
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<Compo_Impia_Table>().ToTable("DISCOMICOMIMP");
|
||||
modelBuilder.Entity<Compo_Impia_Table>().HasKey(table => new
|
||||
{
|
||||
table.cocodimp,
|
||||
table.cprownum,
|
||||
table.cocodazi
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,22 @@
|
||||
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace ApiPolo.Models.Discovery_dbcontext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public class DISCO_IMPIANTIDbContext : DbContext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public DbSet<Impianto>? Impia { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public DISCO_IMPIANTIDbContext(DbContextOptions<DISCO_IMPIANTIDbContext> options) : base(options)
|
||||
{
|
||||
}
|
||||
/// <summary></summary>
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<Impianto>().ToView("API_IMPIANTI");
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,27 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace ApiPolo.Models.Discovery_dbcontext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public class DISCO_MAGAZZINIDbContext : DbContext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public DbSet<Magazzini>? Magaz { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public DISCO_MAGAZZINIDbContext(DbContextOptions<DISCO_MAGAZZINIDbContext> options) : base(options)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary></summary>
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<Magazzini>().ToTable("DISCOMAGAZZIN");
|
||||
modelBuilder.Entity<Magazzini>().HasKey(table => new
|
||||
{
|
||||
table.mgcodmag
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
27
ApiPolo/Models/Discovery_dbcontext/DISCO_MAG_NEWDbContext.cs
Normal file
27
ApiPolo/Models/Discovery_dbcontext/DISCO_MAG_NEWDbContext.cs
Normal file
@ -0,0 +1,27 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace ApiPolo.Models.Discovery_dbcontext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public class DISCO_MAG_NEWDbContext:DbContext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public DbSet<Mag_New>? Mag { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public DISCO_MAG_NEWDbContext(DbContextOptions<DISCO_MAG_NEWDbContext> options) : base(options)
|
||||
{
|
||||
}
|
||||
/// <summary></summary>
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<Mag_New>().ToTable("DISCOMAG_NEW");
|
||||
modelBuilder.Entity<Mag_New>().HasKey(table => new
|
||||
{
|
||||
table.seriale_rapportino,
|
||||
table.riga
|
||||
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,22 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace ApiPolo.Models.Discovery_dbcontext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public class DISCO_MANPROG_TECDbContext : DbContext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public DbSet<Manprog>? Manutenzioni { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public DISCO_MANPROG_TECDbContext(DbContextOptions<DISCO_MANPROG_TECDbContext> options) : base(options)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary></summary>
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<Manprog>().ToView("API_MANPROG");
|
||||
}
|
||||
}
|
||||
}
|
||||
22
ApiPolo/Models/Discovery_dbcontext/DISCO_PAGAMDbContext.cs
Normal file
22
ApiPolo/Models/Discovery_dbcontext/DISCO_PAGAMDbContext.cs
Normal file
@ -0,0 +1,22 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace ApiPolo.Models.Discovery_dbcontext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public class DISCO_PAGAMDbContext:DbContext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public DbSet<Pagam>? Pagamenti { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public DISCO_PAGAMDbContext(DbContextOptions<DISCO_PAGAMDbContext> options) : base(options)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary></summary>
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<Pagam>().ToView("API_PAGAMENTI");
|
||||
}
|
||||
}
|
||||
}
|
||||
27
ApiPolo/Models/Discovery_dbcontext/DISCO_PRESEDbContext.cs
Normal file
27
ApiPolo/Models/Discovery_dbcontext/DISCO_PRESEDbContext.cs
Normal file
@ -0,0 +1,27 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace ApiPolo.Models.Discovery_dbcontext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public class DISCO_PRESEDbContext:DbContext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public DbSet<Prese>? Prese { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public DISCO_PRESEDbContext(DbContextOptions<DISCO_PRESEDbContext> options) : base(options)
|
||||
{
|
||||
}
|
||||
/// <summary></summary>
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<Prese>().ToTable("PIPRESA");
|
||||
modelBuilder.Entity<Prese>().HasKey(table => new {
|
||||
table.picodazi,
|
||||
table.pimpianto,
|
||||
table.picodint,
|
||||
table.pidatman
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,21 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace ApiPolo.Models.Discovery_dbcontext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public class DISCO_RAPPORTINIDbContext : DbContext
|
||||
{
|
||||
/// <summary>Rapportini</summary>
|
||||
public DbSet<Rappmast>? rapp { get; set; }
|
||||
|
||||
/// <summary>ConfigurazioniDbContext</summary>
|
||||
public DISCO_RAPPORTINIDbContext(DbContextOptions<DISCO_RAPPORTINIDbContext> options) : base(options)
|
||||
{
|
||||
}
|
||||
/// <summary>OnModelCreating</summary>
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<Rappmast>().ToView("API_RAPPORTINI");
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,22 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace ApiPolo.Models.Discovery_dbcontext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public class DISCO_RAPP_NEWDbContext:DbContext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public DbSet<Rapp_New>? Rapps { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public DISCO_RAPP_NEWDbContext(DbContextOptions<DISCO_RAPP_NEWDbContext> options) : base(options)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary></summary>
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<Rapp_New>().ToTable("RAPP_NEW");
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,21 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace ApiPolo.Models.Discovery_dbcontext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public class DISCO_SALDIARTDbContext:DbContext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public DbSet<Saldiart>? Saldi { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public DISCO_SALDIARTDbContext(DbContextOptions<DISCO_SALDIARTDbContext> options) : base(options)
|
||||
{
|
||||
}
|
||||
/// <summary></summary>
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<Saldiart>().ToView("API_SALDIART_PREZZI");
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,22 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace ApiPolo.Models.Discovery_dbcontext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public class DISCO_SOSTITUZIONIDbcontext : DbContext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public DbSet<Sostituzione>? Sost { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public DISCO_SOSTITUZIONIDbcontext(DbContextOptions<DISCO_SOSTITUZIONIDbcontext> options) : base(options)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary></summary>
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<Sostituzione>().ToView("API_SOSTITUZIONI");
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,22 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace ApiPolo.Models.Discovery_dbcontext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public class DISCO_STO_RAPPDbContext:DbContext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public DbSet<Sto_Rapp>? StoRapp { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public DISCO_STO_RAPPDbContext(DbContextOptions<DISCO_STO_RAPPDbContext> options) : base(options)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary></summary>
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<Sto_Rapp>().ToView("API_STO_RAPP");
|
||||
}
|
||||
}
|
||||
}
|
||||
22
ApiPolo/Models/Discovery_dbcontext/DISCO_TECNICIDbContext.cs
Normal file
22
ApiPolo/Models/Discovery_dbcontext/DISCO_TECNICIDbContext.cs
Normal file
@ -0,0 +1,22 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace ApiPolo.Models.Discovery_dbcontext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public class DISCO_TECNICIDbContext:DbContext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public DbSet<Tecnici>? Tecnici { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public DISCO_TECNICIDbContext(DbContextOptions<DISCO_TECNICIDbContext> options) : base(options)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary></summary>
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<Tecnici>().ToView("API_TECNICI");
|
||||
}
|
||||
}
|
||||
}
|
||||
15
ApiPolo/Models/Error.cs
Normal file
15
ApiPolo/Models/Error.cs
Normal file
@ -0,0 +1,15 @@
|
||||
namespace ApiPolo.Models
|
||||
{
|
||||
/// <summary>Error</summary>
|
||||
public class Error
|
||||
{
|
||||
/// <summary>Error title</summary>
|
||||
public string? err_title { get; set; }
|
||||
|
||||
/// <summary>Error deatail</summary>
|
||||
public string? err_detail { get; set; }
|
||||
|
||||
/// <summary>Error code</summary>
|
||||
public string? err_status_code { get; set; }
|
||||
}
|
||||
}
|
||||
22
ApiPolo/Models/Ferrari_dbcontext/FERRA_CAUS_RAPPDbContext.cs
Normal file
22
ApiPolo/Models/Ferrari_dbcontext/FERRA_CAUS_RAPPDbContext.cs
Normal file
@ -0,0 +1,22 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace ApiPolo.Models.Ferrari_dbcontext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public class FERRA_CAUS_RAPPDbContext : DbContext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public DbSet<Caus_Rapp>? Causali { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public FERRA_CAUS_RAPPDbContext(DbContextOptions<FERRA_CAUS_RAPPDbContext> options) : base(options)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary></summary>
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<Caus_Rapp>().ToView("API_CAUS_RAPP");
|
||||
}
|
||||
}
|
||||
}
|
||||
21
ApiPolo/Models/Ferrari_dbcontext/FERRA_CHIAMATEDbContext.cs
Normal file
21
ApiPolo/Models/Ferrari_dbcontext/FERRA_CHIAMATEDbContext.cs
Normal file
@ -0,0 +1,21 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace ApiPolo.Models.Ferrari_dbcontext
|
||||
{
|
||||
/// <summary>FERRA_CHIAMATEDbContext</summary>
|
||||
public class FERRA_CHIAMATEDbContext : DbContext
|
||||
{
|
||||
/// <summary>FERRA_CHIAMATEDbContext</summary>
|
||||
public DbSet<Chiamate>? Chiamate { get; set; }
|
||||
|
||||
/// <summary>FERRA_CHIAMATEDbContext</summary>
|
||||
public FERRA_CHIAMATEDbContext(DbContextOptions<FERRA_CHIAMATEDbContext> options) : base(options)
|
||||
{
|
||||
}
|
||||
/// <summary>OnModelCreating</summary>
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<Chiamate>().ToView("API_CHIAMATE");
|
||||
}
|
||||
}
|
||||
}
|
||||
21
ApiPolo/Models/Ferrari_dbcontext/FERRA_CHIUSUREDbContext.cs
Normal file
21
ApiPolo/Models/Ferrari_dbcontext/FERRA_CHIUSUREDbContext.cs
Normal file
@ -0,0 +1,21 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace ApiPolo.Models.Ferrari_dbcontext
|
||||
{
|
||||
/// <summary>FERRA_CHIUSUREDbContext</summary>
|
||||
public class FERRA_CHIUSUREDbContext : DbContext
|
||||
{
|
||||
/// <summary>Chiusure</summary>
|
||||
public DbSet<Chiusure>? Chiusure { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public FERRA_CHIUSUREDbContext(DbContextOptions<FERRA_CHIUSUREDbContext> options) : base(options)
|
||||
{
|
||||
}
|
||||
/// <summary>OnModelCreating</summary>
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<Chiusure>().ToView("API_CHIUSURE");
|
||||
}
|
||||
}
|
||||
}
|
||||
21
ApiPolo/Models/Ferrari_dbcontext/FERRA_CLIENTIDbContext.cs
Normal file
21
ApiPolo/Models/Ferrari_dbcontext/FERRA_CLIENTIDbContext.cs
Normal file
@ -0,0 +1,21 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace ApiPolo.Models.Ferrari_dbcontext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public class FERRA_CLIENTIDbContext : DbContext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public DbSet<Anag>? Clienti { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public FERRA_CLIENTIDbContext(DbContextOptions<FERRA_CLIENTIDbContext> options) : base(options)
|
||||
{
|
||||
}
|
||||
/// <summary></summary>
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<Anag>().ToView("API_CLIENTI");
|
||||
}
|
||||
}
|
||||
}
|
||||
22
ApiPolo/Models/Ferrari_dbcontext/FERRA_COMMESSEDbContext.cs
Normal file
22
ApiPolo/Models/Ferrari_dbcontext/FERRA_COMMESSEDbContext.cs
Normal file
@ -0,0 +1,22 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace ApiPolo.Models.Ferrari_dbcontext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public class FERRA_COMMESSEDbContext: DbContext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public DbSet<Commessa>? Commesse { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public FERRA_COMMESSEDbContext(DbContextOptions<FERRA_COMMESSEDbContext> options) : base(options)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary></summary>
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<Commessa>().ToView("API_COMMESSE");
|
||||
}
|
||||
}
|
||||
}
|
||||
22
ApiPolo/Models/Ferrari_dbcontext/FERRA_IMPIANTIDbContext.cs
Normal file
22
ApiPolo/Models/Ferrari_dbcontext/FERRA_IMPIANTIDbContext.cs
Normal file
@ -0,0 +1,22 @@
|
||||
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace ApiPolo.Models.Ferrari_dbcontext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public class FERRA_IMPIANTIDbContext : DbContext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public DbSet<Impianto>? Impia { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public FERRA_IMPIANTIDbContext(DbContextOptions<FERRA_IMPIANTIDbContext> options) : base(options)
|
||||
{
|
||||
}
|
||||
/// <summary></summary>
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<Impianto>().ToView("API_IMPIANTI");
|
||||
}
|
||||
}
|
||||
}
|
||||
27
ApiPolo/Models/Ferrari_dbcontext/FERRA_MAGAZZINIDbContext.cs
Normal file
27
ApiPolo/Models/Ferrari_dbcontext/FERRA_MAGAZZINIDbContext.cs
Normal file
@ -0,0 +1,27 @@
|
||||
using ApiPolo.Models.Sicilia_dbcontext;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace ApiPolo.Models.Ferrari_dbcontext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public class FERRA_MAGAZZINIDbContext : DbContext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public DbSet<Magazzini>? Magaz { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public FERRA_MAGAZZINIDbContext(DbContextOptions<FERRA_MAGAZZINIDbContext> options) : base(options)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary></summary>
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<Magazzini>().ToTable("FERRAMAGAZZIN");
|
||||
modelBuilder.Entity<Magazzini>().HasKey(table => new
|
||||
{
|
||||
table.mgcodmag
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,20 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace ApiPolo.Models.Ferrari_dbcontext
|
||||
{
|
||||
/// <summary>FERRA_MANPROG_TECDbContext</summary>
|
||||
public class FERRA_MANPROG_TECDbContext : DbContext
|
||||
{
|
||||
/// <summary>Manutenzioni</summary>
|
||||
public DbSet<Manprog>? Manutenzioni { get; set; }
|
||||
/// <summary>Manutenzioni</summary>
|
||||
public FERRA_MANPROG_TECDbContext(DbContextOptions<FERRA_MANPROG_TECDbContext> options) : base(options)
|
||||
{
|
||||
}
|
||||
/// <summary>OnModelCreating</summary>
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<Manprog>().ToView("API_MANPROG");
|
||||
}
|
||||
}
|
||||
}
|
||||
23
ApiPolo/Models/Ferrari_dbcontext/FERRA_PAGAMDbContext.cs
Normal file
23
ApiPolo/Models/Ferrari_dbcontext/FERRA_PAGAMDbContext.cs
Normal file
@ -0,0 +1,23 @@
|
||||
using ApiPolo.Models.Sicilia_dbcontext;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace ApiPolo.Models.Ferrari_dbcontext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public class FERRA_PAGAMDbContext : DbContext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public DbSet<Pagam>? Pagamenti { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public FERRA_PAGAMDbContext(DbContextOptions<FERRA_PAGAMDbContext> options) : base(options)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary></summary>
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<Pagam>().ToView("API_PAGAMENTI");
|
||||
}
|
||||
}
|
||||
}
|
||||
27
ApiPolo/Models/Ferrari_dbcontext/FERRA_PRESEDbContext.cs
Normal file
27
ApiPolo/Models/Ferrari_dbcontext/FERRA_PRESEDbContext.cs
Normal file
@ -0,0 +1,27 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace ApiPolo.Models.Ferrari_dbcontext
|
||||
{
|
||||
/// <summary>FERRA_CHIAMATEDbContext</summary>
|
||||
public class FERRA_PRESEDbContext : DbContext
|
||||
{
|
||||
/// <summary>FERRA_CHIAMATEDbContext</summary>
|
||||
public DbSet<Prese>? Prese { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public FERRA_PRESEDbContext(DbContextOptions<FERRA_PRESEDbContext> options) : base(options)
|
||||
{
|
||||
}
|
||||
/// <summary>A</summary>
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<Prese>().ToTable("PRESA");
|
||||
modelBuilder.Entity<Prese>().HasKey(table => new {
|
||||
table.picodazi,
|
||||
table.pimpianto,
|
||||
table.picodint,
|
||||
table.pidatman
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,21 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace ApiPolo.Models.Ferrari_dbcontext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public class FERRA_RAPPORTINIDbContext: DbContext
|
||||
{
|
||||
/// <summary>Rapportini</summary>
|
||||
public DbSet<Rappmast>? rapp { get; set; }
|
||||
|
||||
/// <summary>ConfigurazioniDbContext</summary>
|
||||
public FERRA_RAPPORTINIDbContext(DbContextOptions<FERRA_RAPPORTINIDbContext> options) : base(options)
|
||||
{
|
||||
}
|
||||
/// <summary>OnModelCreating</summary>
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<Rappmast>().ToView("API_RAPPORTINI");
|
||||
}
|
||||
}
|
||||
}
|
||||
21
ApiPolo/Models/Ferrari_dbcontext/FERRA_RAPP_NEWDbContext.cs
Normal file
21
ApiPolo/Models/Ferrari_dbcontext/FERRA_RAPP_NEWDbContext.cs
Normal file
@ -0,0 +1,21 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace ApiPolo.Models.Ferrari_dbcontext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public class FERRA_RAPP_NEWDbContext : DbContext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public DbSet<Rapp_New>? Rapps { get; set; }
|
||||
/// <summary></summary>
|
||||
public FERRA_RAPP_NEWDbContext(DbContextOptions<FERRA_RAPP_NEWDbContext> options) : base(options)
|
||||
{
|
||||
}
|
||||
/// <summary></summary>
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<Rapp_New>().ToTable("RAPP_NEW");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,22 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace ApiPolo.Models.Ferrari_dbcontext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public class FERRA_SOSTITUZIONIDbcontext : DbContext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public DbSet<Sostituzione>? Sost { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public FERRA_SOSTITUZIONIDbcontext(DbContextOptions<FERRA_SOSTITUZIONIDbcontext> options) : base(options)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary></summary>
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<Sostituzione>().ToView("API_SOSTITUZIONI");
|
||||
}
|
||||
}
|
||||
}
|
||||
22
ApiPolo/Models/Ferrari_dbcontext/FERRA_STO_RAPPDbContext.cs
Normal file
22
ApiPolo/Models/Ferrari_dbcontext/FERRA_STO_RAPPDbContext.cs
Normal file
@ -0,0 +1,22 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace ApiPolo.Models.Ferrari_dbcontext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public class FERRA_STO_RAPPDbContext : DbContext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public DbSet<Sto_Rapp>? StoRapp { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public FERRA_STO_RAPPDbContext(DbContextOptions<FERRA_STO_RAPPDbContext> options) : base(options)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary></summary>
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<Sto_Rapp>().ToView("API_STO_RAPP");
|
||||
}
|
||||
}
|
||||
}
|
||||
22
ApiPolo/Models/Ferrari_dbcontext/FERRA_TECNICIDbContext.cs
Normal file
22
ApiPolo/Models/Ferrari_dbcontext/FERRA_TECNICIDbContext.cs
Normal file
@ -0,0 +1,22 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace ApiPolo.Models.Ferrari_dbcontext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public class FERRA_TECNICIDbContext : DbContext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public DbSet<Tecnici>? Tecnici { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public FERRA_TECNICIDbContext(DbContextOptions<FERRA_TECNICIDbContext> options) : base(options)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary></summary>
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<Tecnici>().ToView("API_TECNICI");
|
||||
}
|
||||
}
|
||||
}
|
||||
23
ApiPolo/Models/Gitoga_dbcontext/GITSR_CAUS_RAPP_Dbcontext.cs
Normal file
23
ApiPolo/Models/Gitoga_dbcontext/GITSR_CAUS_RAPP_Dbcontext.cs
Normal file
@ -0,0 +1,23 @@
|
||||
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace ApiPolo.Models.Gitoga_dbcontext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public class GITSR_CAUS_RAPP_Dbcontext : DbContext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public DbSet<Caus_Rapp>? Causali { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public GITSR_CAUS_RAPP_Dbcontext(DbContextOptions<GITSR_CAUS_RAPP_Dbcontext> options) : base(options)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary></summary>
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<Caus_Rapp>().ToView("API_CAUS_RAPP");
|
||||
}
|
||||
}
|
||||
}
|
||||
23
ApiPolo/Models/Gitoga_dbcontext/GITSR_CHIAMATE_Dbcontext.cs
Normal file
23
ApiPolo/Models/Gitoga_dbcontext/GITSR_CHIAMATE_Dbcontext.cs
Normal file
@ -0,0 +1,23 @@
|
||||
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace ApiPolo.Models.Gitoga_dbcontext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public class GITSR_CHIAMATE_Dbcontext : DbContext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public DbSet<Chiamate>? Chiamate { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public GITSR_CHIAMATE_Dbcontext(DbContextOptions<GITSR_CHIAMATE_Dbcontext> options) : base(options)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary></summary>
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<Chiamate>().ToView("API_CHIAMATE");
|
||||
}
|
||||
}
|
||||
}
|
||||
23
ApiPolo/Models/Gitoga_dbcontext/GITSR_CHIUSURE_Dbcontext.cs
Normal file
23
ApiPolo/Models/Gitoga_dbcontext/GITSR_CHIUSURE_Dbcontext.cs
Normal file
@ -0,0 +1,23 @@
|
||||
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace ApiPolo.Models.Gitoga_dbcontext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public class GITSR_CHIUSURE_Dbcontext : DbContext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public DbSet<Chiusure>? Chiusure { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public GITSR_CHIUSURE_Dbcontext(DbContextOptions<GITSR_CHIUSURE_Dbcontext> options) : base(options)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary></summary>
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<Chiusure>().ToView("API_CHIUSURE");
|
||||
}
|
||||
}
|
||||
}
|
||||
22
ApiPolo/Models/Gitoga_dbcontext/GITSR_CLIENTI_Dbcontext.cs
Normal file
22
ApiPolo/Models/Gitoga_dbcontext/GITSR_CLIENTI_Dbcontext.cs
Normal file
@ -0,0 +1,22 @@
|
||||
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace ApiPolo.Models.Gitoga_dbcontext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public class GITSR_CLIENTI_Dbcontext : DbContext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public DbSet<Anag>? Clienti { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public GITSR_CLIENTI_Dbcontext(DbContextOptions<GITSR_CLIENTI_Dbcontext> options) : base(options)
|
||||
{
|
||||
}
|
||||
/// <summary></summary>
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<Anag>().ToView("API_CLIENTI");
|
||||
}
|
||||
}
|
||||
}
|
||||
22
ApiPolo/Models/Gitoga_dbcontext/GITSR_IMPIANTI_Dbcontext.cs
Normal file
22
ApiPolo/Models/Gitoga_dbcontext/GITSR_IMPIANTI_Dbcontext.cs
Normal file
@ -0,0 +1,22 @@
|
||||
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace ApiPolo.Models.Gitoga_dbcontext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public class GITSR_IMPIANTI_Dbcontext : DbContext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public DbSet<Impianto>? Impia { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public GITSR_IMPIANTI_Dbcontext(DbContextOptions<GITSR_IMPIANTI_Dbcontext> options) : base(options)
|
||||
{
|
||||
}
|
||||
/// <summary></summary>
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<Impianto>().ToView("API_IMPIANTI");
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,23 @@
|
||||
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace ApiPolo.Models.Gitoga_dbcontext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public class GITSR_MANPROG_TEC_Dbcontext : DbContext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public DbSet<Manprog>? Manutenzioni { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public GITSR_MANPROG_TEC_Dbcontext(DbContextOptions<GITSR_MANPROG_TEC_Dbcontext> options) : base(options)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary></summary>
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<Manprog>().ToView("API_MANPROG");
|
||||
}
|
||||
}
|
||||
}
|
||||
23
ApiPolo/Models/Gitoga_dbcontext/GITSR_PAGAM_Dbcontext.cs
Normal file
23
ApiPolo/Models/Gitoga_dbcontext/GITSR_PAGAM_Dbcontext.cs
Normal file
@ -0,0 +1,23 @@
|
||||
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace ApiPolo.Models.Gitoga_dbcontext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public class GITSR_PAGAM_Dbcontext : DbContext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public DbSet<Pagam>? Pagamenti { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public GITSR_PAGAM_Dbcontext(DbContextOptions<GITSR_PAGAM_Dbcontext> options) : base(options)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary></summary>
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<Pagam>().ToView("API_PAGAMENTI");
|
||||
}
|
||||
}
|
||||
}
|
||||
28
ApiPolo/Models/Gitoga_dbcontext/GITSR_PRESE_Dbcontext.cs
Normal file
28
ApiPolo/Models/Gitoga_dbcontext/GITSR_PRESE_Dbcontext.cs
Normal file
@ -0,0 +1,28 @@
|
||||
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace ApiPolo.Models.Gitoga_dbcontext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public class GITSR_PRESE_Dbcontext : DbContext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public DbSet<Prese>? Prese { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public GITSR_PRESE_Dbcontext(DbContextOptions<GITSR_PRESE_Dbcontext> options) : base(options)
|
||||
{
|
||||
}
|
||||
/// <summary></summary>
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<Prese>().ToTable("PIPRESA");
|
||||
modelBuilder.Entity<Prese>().HasKey(table => new {
|
||||
table.picodazi,
|
||||
table.pimpianto,
|
||||
table.picodint,
|
||||
table.pidatman
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,22 @@
|
||||
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace ApiPolo.Models.Gitoga_dbcontext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public class GITSR_RAPPORTINI_Dbcontext : DbContext
|
||||
{
|
||||
/// <summary>Rapportini</summary>
|
||||
public DbSet<Rappmast>? rapp { get; set; }
|
||||
|
||||
/// <summary>ConfigurazioniDbContext</summary>
|
||||
public GITSR_RAPPORTINI_Dbcontext(DbContextOptions<GITSR_RAPPORTINI_Dbcontext> options) : base(options)
|
||||
{
|
||||
}
|
||||
/// <summary>OnModelCreating</summary>
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<Rappmast>().ToView("API_RAPPORTINI");
|
||||
}
|
||||
}
|
||||
}
|
||||
23
ApiPolo/Models/Gitoga_dbcontext/GITSR_RAPP_NEW_Dbcontext.cs
Normal file
23
ApiPolo/Models/Gitoga_dbcontext/GITSR_RAPP_NEW_Dbcontext.cs
Normal file
@ -0,0 +1,23 @@
|
||||
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace ApiPolo.Models.Gitoga_dbcontext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public class GITSR_RAPP_NEW_Dbcontext : DbContext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public DbSet<Rapp_New>? Rapps { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public GITSR_RAPP_NEW_Dbcontext(DbContextOptions<GITSR_RAPP_NEW_Dbcontext> options) : base(options)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary></summary>
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<Rapp_New>().ToTable("RAPP_NEW");
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,22 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace ApiPolo.Models.Gitoga_dbcontext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public class GITSR_SOSTITUZIONIDbContext : DbContext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public DbSet<Sostituzione>? Sost { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public GITSR_SOSTITUZIONIDbContext(DbContextOptions<GITSR_SOSTITUZIONIDbContext> options) : base(options)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary></summary>
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<Sostituzione>().ToView("API_SOSTITUZIONI");
|
||||
}
|
||||
}
|
||||
}
|
||||
23
ApiPolo/Models/Gitoga_dbcontext/GITSR_STO_RAPP_Dbcontext.cs
Normal file
23
ApiPolo/Models/Gitoga_dbcontext/GITSR_STO_RAPP_Dbcontext.cs
Normal file
@ -0,0 +1,23 @@
|
||||
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace ApiPolo.Models.Gitoga_dbcontext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public class GITSR_STO_RAPP_Dbcontext : DbContext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public DbSet<Sto_Rapp>? StoRapp { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public GITSR_STO_RAPP_Dbcontext(DbContextOptions<GITSR_STO_RAPP_Dbcontext> options) : base(options)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary></summary>
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<Sto_Rapp>().ToView("API_STO_RAPP");
|
||||
}
|
||||
}
|
||||
}
|
||||
23
ApiPolo/Models/Gitoga_dbcontext/GITSR_TECNICI_Dbcontext.cs
Normal file
23
ApiPolo/Models/Gitoga_dbcontext/GITSR_TECNICI_Dbcontext.cs
Normal file
@ -0,0 +1,23 @@
|
||||
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace ApiPolo.Models.Gitoga_dbcontext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public class GITSR_TECNICI_Dbcontext : DbContext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public DbSet<Tecnici>? Tecnici { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public GITSR_TECNICI_Dbcontext(DbContextOptions<GITSR_TECNICI_Dbcontext> options) : base(options)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary></summary>
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<Tecnici>().ToView("API_TECNICI");
|
||||
}
|
||||
}
|
||||
}
|
||||
54
ApiPolo/Models/Impianto.cs
Normal file
54
ApiPolo/Models/Impianto.cs
Normal file
@ -0,0 +1,54 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace ApiPolo.Models
|
||||
{
|
||||
/// <summary>Impianto</summary>
|
||||
[Keyless]
|
||||
public class Impianto
|
||||
{
|
||||
/// <summary>Codice Impianto</summary>
|
||||
public string? imcodimp { get; set; }
|
||||
|
||||
/// <summary>Descrizione Impianto</summary>
|
||||
public string? imdescri { get; set; }
|
||||
|
||||
/// <summary>Tipo indirizzo (Via, piazza..)</summary>
|
||||
public string? imindiri1 { get; set; }
|
||||
|
||||
/// <summary> indirizzo </summary>
|
||||
public string? imindiri2 { get; set; }
|
||||
|
||||
/// <summary> numero civico </summary>
|
||||
public int? imindiri3 { get; set; }
|
||||
|
||||
/// <summary> sottonumero </summary>
|
||||
public string? imindiri4 { get; set; }
|
||||
|
||||
/// <summary>scala</summary>
|
||||
public string? imindiri5 { get; set; }
|
||||
|
||||
/// <summary> localita </summary>
|
||||
public string? imlocali { get; set; }
|
||||
|
||||
/// <summary> Cap </summary>
|
||||
public string? imcodcap { get; set; }
|
||||
|
||||
/// <summary> Comune </summary>
|
||||
public string? imcomune { get; set; }
|
||||
|
||||
/// <summary> Provincia </summary>
|
||||
public string? improvin { get; set; }
|
||||
|
||||
/// <summary> Azienda </summary>
|
||||
public string? imcodazi { get; set; }
|
||||
|
||||
/// <summary> cod cliente </summary>
|
||||
public string? imultcli { get; set; }
|
||||
|
||||
/// <summary> descrizione cliente </summary>
|
||||
public string? descCliente { get; set; }
|
||||
|
||||
/// <summary>Data cancellazione</summary>
|
||||
public DateTime? imfinatt { get; set; }
|
||||
}
|
||||
}
|
||||
52
ApiPolo/Models/ImpiantoTable.cs
Normal file
52
ApiPolo/Models/ImpiantoTable.cs
Normal file
@ -0,0 +1,52 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace ApiPolo.Models
|
||||
{
|
||||
/// <summary></summary>
|
||||
public class ImpiantoTable
|
||||
{
|
||||
/// <summary>Codice Impianto</summary>
|
||||
[Key]
|
||||
public string? imcodimp { get; set; }
|
||||
|
||||
/// <summary> Azienda </summary>
|
||||
[Key]
|
||||
public string? imcodazi { get; set; }
|
||||
|
||||
/// <summary>Descrizione Impianto</summary>
|
||||
public string? imdescri { get; set; }
|
||||
|
||||
/// <summary>Tipo indirizzo (Via, piazza..)</summary>
|
||||
public string? imindiri1 { get; set; }
|
||||
|
||||
/// <summary> indirizzo </summary>
|
||||
public string? imindiri2 { get; set; }
|
||||
|
||||
/// <summary> numero civico </summary>
|
||||
public int? imindiri3 { get; set; }
|
||||
|
||||
/// <summary> sottonumero </summary>
|
||||
public string? imindiri4 { get; set; }
|
||||
|
||||
/// <summary>scala</summary>
|
||||
public string? imindiri5 { get; set; }
|
||||
|
||||
/// <summary> localita </summary>
|
||||
public string? imlocali { get; set; }
|
||||
|
||||
/// <summary> Cap </summary>
|
||||
public string? imcodcap { get; set; }
|
||||
|
||||
/// <summary> Comune </summary>
|
||||
public string? imcomune { get; set; }
|
||||
|
||||
/// <summary> Provincia </summary>
|
||||
public string? improvin { get; set; }
|
||||
|
||||
/// <summary> cliente associato </summary>
|
||||
public string? imultcli { get; set; }
|
||||
|
||||
/// <summary>Data cancellazione</summary>
|
||||
public DateTime? imfinatt { get; set; }
|
||||
}
|
||||
}
|
||||
36
ApiPolo/Models/Impianto_out.cs
Normal file
36
ApiPolo/Models/Impianto_out.cs
Normal file
@ -0,0 +1,36 @@
|
||||
namespace ApiPolo.Models
|
||||
{
|
||||
/// <summary>Impianto out</summary>
|
||||
public class Impianto_out
|
||||
{
|
||||
/// <summary>Codice Impianto</summary>
|
||||
public string? codimp { get; set; }
|
||||
|
||||
/// <summary>Codice Impianto</summary>
|
||||
public string? descimp { get; set; }
|
||||
|
||||
/// <summary>Indirizzo Impianto</summary>
|
||||
public string? indiri { get; set; }
|
||||
|
||||
/// <summary> Cap </summary>
|
||||
public string? cap { get; set; }
|
||||
|
||||
/// <summary> Comune </summary>
|
||||
public string? comune { get; set; }
|
||||
|
||||
/// <summary> Provincia </summary>
|
||||
public string? provin { get; set; }
|
||||
|
||||
/// <summary> Località </summary>
|
||||
public string? localita { get; set; }
|
||||
|
||||
/// <summary>Error title</summary>
|
||||
public string? err_title { get; set; }
|
||||
|
||||
/// <summary>Error deatail</summary>
|
||||
public string? err_detail { get; set; }
|
||||
|
||||
/// <summary>Error code</summary>
|
||||
public string? err_status_code { get; set; }
|
||||
}
|
||||
}
|
||||
313
ApiPolo/Models/Input.cs
Normal file
313
ApiPolo/Models/Input.cs
Normal file
@ -0,0 +1,313 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace ApiPolo.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// Contiene i campi di input sia per RAPP_NEW che per PRESE
|
||||
/// </summary>
|
||||
public class Input
|
||||
{
|
||||
#region RAPPNEW
|
||||
|
||||
/// <summary>
|
||||
/// Tabella RAPP_NEW: Seriale rapportini
|
||||
/// </summary>
|
||||
public string? seriale_rapportino { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Tabella RAPP_NEW: Tipo rapportini
|
||||
/// </summary>
|
||||
public string? tipo_rapportino { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Tabella RAPP_NEW: Azienda
|
||||
/// </summary>
|
||||
public string? azienda_impianto { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Tabella RAPP_NEW: Codice Impianto
|
||||
/// </summary>
|
||||
public string? codice_impianto { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Tabella RAPP_NEW: Azienda su cui è la chiamata
|
||||
/// </summary>
|
||||
public string? azienda_chiamata { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Tabella RAPP_NEW: Seriale chiamata
|
||||
/// </summary>
|
||||
public string? seriale_chiamata { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Tabella RAPP_NEW: Seriale chiamata
|
||||
/// </summary>
|
||||
public string? seriale_commessa { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Tabella RAPP_NEW: Data rapportino
|
||||
/// </summary>
|
||||
public DateTime? data_rapportino { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Tabella RAPP_NEW: Ora inizio
|
||||
/// </summary>
|
||||
public string? ora_ini_rapportino { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Tabella RAPP_NEW: Tabella RAPP_NEW: minuto inizio
|
||||
/// </summary>
|
||||
public string? min_ini_rapportino { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Tabella RAPP_NEW: Ora fine
|
||||
/// </summary>
|
||||
public string? ora_fin_rapportino { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Tabella RAPP_NEW: Minuto fine
|
||||
/// </summary>
|
||||
public string? min_fin_rapportino { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Tabella RAPP_NEW: codice chiusura
|
||||
/// </summary>
|
||||
public string? codice_chiusura_1 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Tabella RAPP_NEW: codice chiusura
|
||||
/// </summary>
|
||||
public string? codice_chiusura_2 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Tabella RAPP_NEW: codice chiusura
|
||||
/// </summary>
|
||||
public string? codice_chiusura_3 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Tabella RAPP_NEW: codice chiusura
|
||||
/// </summary>
|
||||
public string? codice_chiusura_4 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Tabella RAPP_NEW: codice chiusura
|
||||
/// </summary>
|
||||
public string? codice_chiusura_5 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Tabella RAPP_NEW: codice chiusura
|
||||
/// </summary>
|
||||
public string? codice_chiusura_6 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Tabella RAPP_NEW: codice chiusura
|
||||
/// </summary>
|
||||
public string? codice_chiusura_7 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Tabella RAPP_NEW: codice chiusura
|
||||
/// </summary>
|
||||
public string? codice_chiusura_8 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Tabella RAPP_NEW: codice chiusura
|
||||
/// </summary>
|
||||
public string? codice_chiusura_9 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Tabella RAPP_NEW: codice chiusura
|
||||
/// </summary>
|
||||
public string? codice_chiusura_10 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Tabella RAPP_NEW: descrizione intervento
|
||||
/// </summary>
|
||||
public string? descrizione_intervento { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Tabella RAPP_NEW: stato
|
||||
/// </summary>
|
||||
public string? stato_finale { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Tabella RAPP_NEW: generato
|
||||
/// </summary>
|
||||
public string? generato { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Tabella RAPP_NEW: azienda tecnico
|
||||
/// </summary>
|
||||
public string? azienda_tecnico { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Tabella RAPP_NEW: codice tecnico
|
||||
/// </summary>
|
||||
public string? codice_tecnico { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Tabella RAPP_NEW: flag rifiutata
|
||||
/// </summary>
|
||||
public string? rifiutata { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///Tabella RAPP_NEW: nominativo firma
|
||||
/// </summary>
|
||||
public string? firma { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Tabella RAPP_NEW: flag stato In Carico
|
||||
/// </summary>
|
||||
public string? incarico { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Tabella RAPP_NEW: data validità
|
||||
/// </summary>
|
||||
public DateTime? data_validita { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Tabella RAPP_NEW: pathg immagine buono o firma
|
||||
/// </summary>
|
||||
public string? immagine { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Tabella RAPP_NEW: seriale del buono
|
||||
/// </summary>
|
||||
public string? ser_buono { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Tabella RAPP_NEW: seriale del buono
|
||||
/// </summary>
|
||||
public string? codice_intervento { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Tabella RAPP_NEW: data/ora effettiva del lavoro (nel caso dispositivo offline)
|
||||
/// </summary>
|
||||
public DateTime? data_effettiva { get; set; }
|
||||
#endregion
|
||||
|
||||
#region PRESE
|
||||
/// <summary>Tabella PRESE: Azienda</summary>
|
||||
public string? picodazi { get; set; }
|
||||
|
||||
/// <summary>Tabella PRESE: Impianto</summary>
|
||||
public string? pimpianto { get; set; }
|
||||
|
||||
/// <summary>Tabella PRESE: Codice intervento QUI=? SEM=SEMESTRALE </summary>
|
||||
public string? picodint { get; set; }
|
||||
|
||||
/// <summary>Tabella PRESE: Tecnico</summary>
|
||||
public string? picodtec { get; set; }
|
||||
|
||||
/// <summary>Tabella PRESE: data della manutenzione</summary>
|
||||
public DateTime? pidatman { get; set; }
|
||||
|
||||
/// <summary>Tabella PRESE: Zona manutenzione</summary>
|
||||
public string? pizona { get; set; }
|
||||
|
||||
/// <summary>Tabella PRESE: check presa</summary>
|
||||
public string? pichkpre { get; set; }
|
||||
#endregion
|
||||
|
||||
#region Campi aggiunti
|
||||
/// <summary></summary>
|
||||
public string? difetti_riscontrati { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? lavoro_eseguito { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? esito_intervento { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? note_intervento { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? note_esito { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? nuovo_contratto { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
[Column(TypeName = "decimal(7, 2)")]
|
||||
public int? ore_lavoro { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? causale { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
[Column(TypeName = "decimal(7, 2)")]
|
||||
public decimal? materiale { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
[Column(TypeName = "decimal(7, 2)")]
|
||||
public decimal? diritto_chiamata { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
[Column(TypeName = "decimal(7, 2)")]
|
||||
public decimal? manodopera { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
[Column(TypeName = "decimal(7, 2)")]
|
||||
public decimal? spese_viaggio { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? pagamento { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
[Column(TypeName = "decimal(7, 2)")]
|
||||
public decimal? anticipo { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
[Column(TypeName = "decimal(9, 2)")]
|
||||
public decimal? totale { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? note_pagamento { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? tipo_intervento { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? rafoto1 { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? rafoto2 { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? rafoto3 { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? rafoto4 { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? rafoto5 { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? rafoto6 { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? rafoto7 { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? rafoto8 { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? rafoto9 { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public string? rafoto10 { get; set; }
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#region Componenti impianto
|
||||
/// <summary>Componenti impianto aggiunti</summary>
|
||||
public List<Saldiart>? compo_add { get; set; }
|
||||
|
||||
/// <summary>Componenti impianto eliminati </summary>
|
||||
public List<Compo_Impia>? compo_del { get; set; }
|
||||
#endregion
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
23
ApiPolo/Models/Lifta_dbcontext/LIFTA_CAUS_RAPP_Dbcontext.cs
Normal file
23
ApiPolo/Models/Lifta_dbcontext/LIFTA_CAUS_RAPP_Dbcontext.cs
Normal file
@ -0,0 +1,23 @@
|
||||
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace ApiPolo.Models.Lifta_dbcontext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public class LIFTA_CAUS_RAPP_Dbcontext : DbContext
|
||||
{
|
||||
/// <summary></summary>
|
||||
public DbSet<Caus_Rapp>? Causali { get; set; }
|
||||
|
||||
/// <summary></summary>
|
||||
public LIFTA_CAUS_RAPP_Dbcontext(DbContextOptions<LIFTA_CAUS_RAPP_Dbcontext> options) : base(options)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary></summary>
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<Caus_Rapp>().ToView("API_CAUS_RAPP");
|
||||
}
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user