From 9aa783373f07be682a51c304213fad1025ad142b Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Mon, 17 May 2021 13:27:11 +0200 Subject: [PATCH 1/6] Rename MpDatalayer --> MP.Data --- MpDataLayer/Constants.cs | 2 +- MpDataLayer/Controllers/MpStatsController.cs | 2 +- MpDataLayer/DatabaseModels/Aaul.cs | 2 +- MpDataLayer/DatabaseModels/Cal.cs | 2 +- MpDataLayer/DatabaseModels/Config.cs | 2 +- MpDataLayer/DatabaseModels/Ddb.cs | 2 +- MpDataLayer/DatabaseModels/Ddb1.cs | 2 +- MpDataLayer/DatabaseModels/DdbTurni.cs | 2 +- MpDataLayer/DatabaseModels/DdbTurniNew.cs | 2 +- MpDataLayer/DatabaseModels/DdbTurniSummary.cs | 2 +- MpDataLayer/DatabaseModels/DdbTurniSummaryNew.cs | 2 +- MpDataLayer/DatabaseModels/Ecp.cs | 2 +- MpDataLayer/DatabaseModels/Ecp1.cs | 2 +- MpDataLayer/DatabaseModels/Kit.cs | 2 +- MpDataLayer/DatabaseModels/Odl.cs | 2 +- MpDataLayer/DatabaseModels/Odl1.cs | 2 +- MpDataLayer/DatabaseModels/R.cs | 2 +- MpDataLayer/DatabaseModels/R1.cs | 2 +- MpDataLayer/DatabaseModels/Rc.cs | 2 +- MpDataLayer/DatabaseModels/ResControlli.cs | 2 +- MpDataLayer/DatabaseModels/ResScarti.cs | 2 +- MpDataLayer/DatabaseModels/Tally.cs | 2 +- MpDataLayer/DatabaseModels/TcStat.cs | 2 +- MpDataLayer/DatabaseModels/Tcr.cs | 2 +- MpDataLayer/DatabaseModels/Tcr1.cs | 2 +- MpDataLayer/DatabaseModels/TcrDay.cs | 2 +- MpDataLayer/DatabaseModels/TcrDayTest.cs | 2 +- MpDataLayer/DatabaseModels/TestJason.cs | 2 +- MpDataLayer/DatabaseModels/Ul.cs | 2 +- MpDataLayer/DatabaseModels/UserActionLog.cs | 2 +- MpDataLayer/DatabaseModels/VDdb.cs | 2 +- MpDataLayer/DatabaseModels/VDdbLight.cs | 2 +- MpDataLayer/DatabaseModels/VDdbLightOld.cs | 2 +- MpDataLayer/DatabaseModels/VDdbTurni.cs | 2 +- MpDataLayer/DatabaseModels/VEcp.cs | 2 +- MpDataLayer/DatabaseModels/VEcp1.cs | 2 +- MpDataLayer/DatabaseModels/VEcpExtended.cs | 2 +- MpDataLayer/DatabaseModels/VKit.cs | 2 +- MpDataLayer/DatabaseModels/VOdl.cs | 2 +- MpDataLayer/DatabaseModels/VOdl1.cs | 2 +- MpDataLayer/DatabaseModels/VPodlNonChiusi.cs | 2 +- MpDataLayer/DatabaseModels/VR1.cs | 2 +- MpDataLayer/DatabaseModels/VTcStat.cs | 2 +- MpDataLayer/DatabaseModels/VTcr.cs | 2 +- MpDataLayer/DatabaseModels/VTcr1.cs | 2 +- MpDataLayer/DatabaseModels/VTcrDay.cs | 2 +- MpDataLayer/DatabaseModels/VetoTc.cs | 2 +- MpDataLayer/Enums.cs | 2 +- MpDataLayer/{MpDataLayer.csproj => MP.Data.csproj} | 2 ++ MpDataLayer/MoonPro_STATSContext.cs | 2 +- MpDataLayer/StatsDbContext.cs | 2 +- 51 files changed, 52 insertions(+), 50 deletions(-) rename MpDataLayer/{MpDataLayer.csproj => MP.Data.csproj} (97%) diff --git a/MpDataLayer/Constants.cs b/MpDataLayer/Constants.cs index 3c7f13d8..4abf10f1 100644 --- a/MpDataLayer/Constants.cs +++ b/MpDataLayer/Constants.cs @@ -4,7 +4,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; -namespace MpDataLayer +namespace MP.Data { class Constants { diff --git a/MpDataLayer/Controllers/MpStatsController.cs b/MpDataLayer/Controllers/MpStatsController.cs index 0ba0f3f5..0b1d43eb 100644 --- a/MpDataLayer/Controllers/MpStatsController.cs +++ b/MpDataLayer/Controllers/MpStatsController.cs @@ -7,7 +7,7 @@ using System.Configuration; using NLog; using Microsoft.Extensions.Configuration; -namespace MpDataLayer.Controllers +namespace MP.Data.Controllers { public class MpStatsController : IDisposable { diff --git a/MpDataLayer/DatabaseModels/Aaul.cs b/MpDataLayer/DatabaseModels/Aaul.cs index 9394d319..f639d8c7 100644 --- a/MpDataLayer/DatabaseModels/Aaul.cs +++ b/MpDataLayer/DatabaseModels/Aaul.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; #nullable disable -namespace MpDataLayer.DatabaseModels +namespace MP.Data.DatabaseModels { public partial class Aaul { diff --git a/MpDataLayer/DatabaseModels/Cal.cs b/MpDataLayer/DatabaseModels/Cal.cs index 9db20b85..62ac75a3 100644 --- a/MpDataLayer/DatabaseModels/Cal.cs +++ b/MpDataLayer/DatabaseModels/Cal.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; #nullable disable -namespace MpDataLayer.DatabaseModels +namespace MP.Data.DatabaseModels { public partial class Cal { diff --git a/MpDataLayer/DatabaseModels/Config.cs b/MpDataLayer/DatabaseModels/Config.cs index e0dad34d..e994d899 100644 --- a/MpDataLayer/DatabaseModels/Config.cs +++ b/MpDataLayer/DatabaseModels/Config.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; #nullable disable -namespace MpDataLayer.DatabaseModels +namespace MP.Data.DatabaseModels { public partial class Config { diff --git a/MpDataLayer/DatabaseModels/Ddb.cs b/MpDataLayer/DatabaseModels/Ddb.cs index 1f213127..01eb95f0 100644 --- a/MpDataLayer/DatabaseModels/Ddb.cs +++ b/MpDataLayer/DatabaseModels/Ddb.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; #nullable disable -namespace MpDataLayer.DatabaseModels +namespace MP.Data.DatabaseModels { public partial class Ddb { diff --git a/MpDataLayer/DatabaseModels/Ddb1.cs b/MpDataLayer/DatabaseModels/Ddb1.cs index 33efad5a..60291b02 100644 --- a/MpDataLayer/DatabaseModels/Ddb1.cs +++ b/MpDataLayer/DatabaseModels/Ddb1.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; #nullable disable -namespace MpDataLayer.DatabaseModels +namespace MP.Data.DatabaseModels { public partial class Ddb1 { diff --git a/MpDataLayer/DatabaseModels/DdbTurni.cs b/MpDataLayer/DatabaseModels/DdbTurni.cs index c6ad5ea1..4fc7e14d 100644 --- a/MpDataLayer/DatabaseModels/DdbTurni.cs +++ b/MpDataLayer/DatabaseModels/DdbTurni.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; #nullable disable -namespace MpDataLayer.DatabaseModels +namespace MP.Data.DatabaseModels { public partial class DdbTurni { diff --git a/MpDataLayer/DatabaseModels/DdbTurniNew.cs b/MpDataLayer/DatabaseModels/DdbTurniNew.cs index c8699f0f..37bf31d9 100644 --- a/MpDataLayer/DatabaseModels/DdbTurniNew.cs +++ b/MpDataLayer/DatabaseModels/DdbTurniNew.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; #nullable disable -namespace MpDataLayer.DatabaseModels +namespace MP.Data.DatabaseModels { public partial class DdbTurniNew { diff --git a/MpDataLayer/DatabaseModels/DdbTurniSummary.cs b/MpDataLayer/DatabaseModels/DdbTurniSummary.cs index 2760ca5a..5db34143 100644 --- a/MpDataLayer/DatabaseModels/DdbTurniSummary.cs +++ b/MpDataLayer/DatabaseModels/DdbTurniSummary.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; #nullable disable -namespace MpDataLayer.DatabaseModels +namespace MP.Data.DatabaseModels { public partial class DdbTurniSummary { diff --git a/MpDataLayer/DatabaseModels/DdbTurniSummaryNew.cs b/MpDataLayer/DatabaseModels/DdbTurniSummaryNew.cs index 1f0bfe4f..1460328b 100644 --- a/MpDataLayer/DatabaseModels/DdbTurniSummaryNew.cs +++ b/MpDataLayer/DatabaseModels/DdbTurniSummaryNew.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; #nullable disable -namespace MpDataLayer.DatabaseModels +namespace MP.Data.DatabaseModels { public partial class DdbTurniSummaryNew { diff --git a/MpDataLayer/DatabaseModels/Ecp.cs b/MpDataLayer/DatabaseModels/Ecp.cs index 2e003e85..09fb32dc 100644 --- a/MpDataLayer/DatabaseModels/Ecp.cs +++ b/MpDataLayer/DatabaseModels/Ecp.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; #nullable disable -namespace MpDataLayer.DatabaseModels +namespace MP.Data.DatabaseModels { public partial class Ecp { diff --git a/MpDataLayer/DatabaseModels/Ecp1.cs b/MpDataLayer/DatabaseModels/Ecp1.cs index a6e1b626..33a3a973 100644 --- a/MpDataLayer/DatabaseModels/Ecp1.cs +++ b/MpDataLayer/DatabaseModels/Ecp1.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; #nullable disable -namespace MpDataLayer.DatabaseModels +namespace MP.Data.DatabaseModels { public partial class Ecp1 { diff --git a/MpDataLayer/DatabaseModels/Kit.cs b/MpDataLayer/DatabaseModels/Kit.cs index ba70fc4a..cb25c5c0 100644 --- a/MpDataLayer/DatabaseModels/Kit.cs +++ b/MpDataLayer/DatabaseModels/Kit.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; #nullable disable -namespace MpDataLayer.DatabaseModels +namespace MP.Data.DatabaseModels { public partial class Kit { diff --git a/MpDataLayer/DatabaseModels/Odl.cs b/MpDataLayer/DatabaseModels/Odl.cs index aa588745..fa8f8bfa 100644 --- a/MpDataLayer/DatabaseModels/Odl.cs +++ b/MpDataLayer/DatabaseModels/Odl.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; #nullable disable -namespace MpDataLayer.DatabaseModels +namespace MP.Data.DatabaseModels { public partial class Odl { diff --git a/MpDataLayer/DatabaseModels/Odl1.cs b/MpDataLayer/DatabaseModels/Odl1.cs index 96edddb6..50436e07 100644 --- a/MpDataLayer/DatabaseModels/Odl1.cs +++ b/MpDataLayer/DatabaseModels/Odl1.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; #nullable disable -namespace MpDataLayer.DatabaseModels +namespace MP.Data.DatabaseModels { public partial class Odl1 { diff --git a/MpDataLayer/DatabaseModels/R.cs b/MpDataLayer/DatabaseModels/R.cs index 58830883..8e58bf74 100644 --- a/MpDataLayer/DatabaseModels/R.cs +++ b/MpDataLayer/DatabaseModels/R.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; #nullable disable -namespace MpDataLayer.DatabaseModels +namespace MP.Data.DatabaseModels { public partial class R { diff --git a/MpDataLayer/DatabaseModels/R1.cs b/MpDataLayer/DatabaseModels/R1.cs index ef429455..e4abb10d 100644 --- a/MpDataLayer/DatabaseModels/R1.cs +++ b/MpDataLayer/DatabaseModels/R1.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; #nullable disable -namespace MpDataLayer.DatabaseModels +namespace MP.Data.DatabaseModels { public partial class R1 { diff --git a/MpDataLayer/DatabaseModels/Rc.cs b/MpDataLayer/DatabaseModels/Rc.cs index db9e5a56..8578e1a4 100644 --- a/MpDataLayer/DatabaseModels/Rc.cs +++ b/MpDataLayer/DatabaseModels/Rc.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; #nullable disable -namespace MpDataLayer.DatabaseModels +namespace MP.Data.DatabaseModels { public partial class Rc { diff --git a/MpDataLayer/DatabaseModels/ResControlli.cs b/MpDataLayer/DatabaseModels/ResControlli.cs index 6a14a1d6..77f46ee9 100644 --- a/MpDataLayer/DatabaseModels/ResControlli.cs +++ b/MpDataLayer/DatabaseModels/ResControlli.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; #nullable disable -namespace MpDataLayer.DatabaseModels +namespace MP.Data.DatabaseModels { public partial class ResControlli { diff --git a/MpDataLayer/DatabaseModels/ResScarti.cs b/MpDataLayer/DatabaseModels/ResScarti.cs index 3b4b8a3b..4d66d124 100644 --- a/MpDataLayer/DatabaseModels/ResScarti.cs +++ b/MpDataLayer/DatabaseModels/ResScarti.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; #nullable disable -namespace MpDataLayer.DatabaseModels +namespace MP.Data.DatabaseModels { public partial class ResScarti { diff --git a/MpDataLayer/DatabaseModels/Tally.cs b/MpDataLayer/DatabaseModels/Tally.cs index 665c4c8f..e64cf735 100644 --- a/MpDataLayer/DatabaseModels/Tally.cs +++ b/MpDataLayer/DatabaseModels/Tally.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; #nullable disable -namespace MpDataLayer.DatabaseModels +namespace MP.Data.DatabaseModels { public partial class Tally { diff --git a/MpDataLayer/DatabaseModels/TcStat.cs b/MpDataLayer/DatabaseModels/TcStat.cs index 47854d10..eef51348 100644 --- a/MpDataLayer/DatabaseModels/TcStat.cs +++ b/MpDataLayer/DatabaseModels/TcStat.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; #nullable disable -namespace MpDataLayer.DatabaseModels +namespace MP.Data.DatabaseModels { public partial class TcStat { diff --git a/MpDataLayer/DatabaseModels/Tcr.cs b/MpDataLayer/DatabaseModels/Tcr.cs index e6164342..d0ba1c26 100644 --- a/MpDataLayer/DatabaseModels/Tcr.cs +++ b/MpDataLayer/DatabaseModels/Tcr.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; #nullable disable -namespace MpDataLayer.DatabaseModels +namespace MP.Data.DatabaseModels { public partial class Tcr { diff --git a/MpDataLayer/DatabaseModels/Tcr1.cs b/MpDataLayer/DatabaseModels/Tcr1.cs index 9cd223b2..444d2669 100644 --- a/MpDataLayer/DatabaseModels/Tcr1.cs +++ b/MpDataLayer/DatabaseModels/Tcr1.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; #nullable disable -namespace MpDataLayer.DatabaseModels +namespace MP.Data.DatabaseModels { public partial class Tcr1 { diff --git a/MpDataLayer/DatabaseModels/TcrDay.cs b/MpDataLayer/DatabaseModels/TcrDay.cs index 5e3f2f19..20c3fbdf 100644 --- a/MpDataLayer/DatabaseModels/TcrDay.cs +++ b/MpDataLayer/DatabaseModels/TcrDay.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; #nullable disable -namespace MpDataLayer.DatabaseModels +namespace MP.Data.DatabaseModels { public partial class TcrDay { diff --git a/MpDataLayer/DatabaseModels/TcrDayTest.cs b/MpDataLayer/DatabaseModels/TcrDayTest.cs index 7cdd98a2..904d7c7f 100644 --- a/MpDataLayer/DatabaseModels/TcrDayTest.cs +++ b/MpDataLayer/DatabaseModels/TcrDayTest.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; #nullable disable -namespace MpDataLayer.DatabaseModels +namespace MP.Data.DatabaseModels { public partial class TcrDayTest { diff --git a/MpDataLayer/DatabaseModels/TestJason.cs b/MpDataLayer/DatabaseModels/TestJason.cs index f162836d..8f921d40 100644 --- a/MpDataLayer/DatabaseModels/TestJason.cs +++ b/MpDataLayer/DatabaseModels/TestJason.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; #nullable disable -namespace MpDataLayer.DatabaseModels +namespace MP.Data.DatabaseModels { public partial class TestJason { diff --git a/MpDataLayer/DatabaseModels/Ul.cs b/MpDataLayer/DatabaseModels/Ul.cs index 585b79dc..54b11f82 100644 --- a/MpDataLayer/DatabaseModels/Ul.cs +++ b/MpDataLayer/DatabaseModels/Ul.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; #nullable disable -namespace MpDataLayer.DatabaseModels +namespace MP.Data.DatabaseModels { public partial class Ul { diff --git a/MpDataLayer/DatabaseModels/UserActionLog.cs b/MpDataLayer/DatabaseModels/UserActionLog.cs index 199809cb..15426401 100644 --- a/MpDataLayer/DatabaseModels/UserActionLog.cs +++ b/MpDataLayer/DatabaseModels/UserActionLog.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; #nullable disable -namespace MpDataLayer.DatabaseModels +namespace MP.Data.DatabaseModels { public partial class UserActionLog { diff --git a/MpDataLayer/DatabaseModels/VDdb.cs b/MpDataLayer/DatabaseModels/VDdb.cs index b6101765..4aeccff6 100644 --- a/MpDataLayer/DatabaseModels/VDdb.cs +++ b/MpDataLayer/DatabaseModels/VDdb.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; #nullable disable -namespace MpDataLayer.DatabaseModels +namespace MP.Data.DatabaseModels { public partial class VDdb { diff --git a/MpDataLayer/DatabaseModels/VDdbLight.cs b/MpDataLayer/DatabaseModels/VDdbLight.cs index 2340bc30..f1bafcbc 100644 --- a/MpDataLayer/DatabaseModels/VDdbLight.cs +++ b/MpDataLayer/DatabaseModels/VDdbLight.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; #nullable disable -namespace MpDataLayer.DatabaseModels +namespace MP.Data.DatabaseModels { public partial class VDdbLight { diff --git a/MpDataLayer/DatabaseModels/VDdbLightOld.cs b/MpDataLayer/DatabaseModels/VDdbLightOld.cs index 1f56626f..d636177a 100644 --- a/MpDataLayer/DatabaseModels/VDdbLightOld.cs +++ b/MpDataLayer/DatabaseModels/VDdbLightOld.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; #nullable disable -namespace MpDataLayer.DatabaseModels +namespace MP.Data.DatabaseModels { public partial class VDdbLightOld { diff --git a/MpDataLayer/DatabaseModels/VDdbTurni.cs b/MpDataLayer/DatabaseModels/VDdbTurni.cs index 39f605b1..fbdc6046 100644 --- a/MpDataLayer/DatabaseModels/VDdbTurni.cs +++ b/MpDataLayer/DatabaseModels/VDdbTurni.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; #nullable disable -namespace MpDataLayer.DatabaseModels +namespace MP.Data.DatabaseModels { public partial class VDdbTurni { diff --git a/MpDataLayer/DatabaseModels/VEcp.cs b/MpDataLayer/DatabaseModels/VEcp.cs index 274a6c3b..c90a45b6 100644 --- a/MpDataLayer/DatabaseModels/VEcp.cs +++ b/MpDataLayer/DatabaseModels/VEcp.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; #nullable disable -namespace MpDataLayer.DatabaseModels +namespace MP.Data.DatabaseModels { public partial class VEcp { diff --git a/MpDataLayer/DatabaseModels/VEcp1.cs b/MpDataLayer/DatabaseModels/VEcp1.cs index e12d1a9e..3c63b654 100644 --- a/MpDataLayer/DatabaseModels/VEcp1.cs +++ b/MpDataLayer/DatabaseModels/VEcp1.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; #nullable disable -namespace MpDataLayer.DatabaseModels +namespace MP.Data.DatabaseModels { public partial class VEcp1 { diff --git a/MpDataLayer/DatabaseModels/VEcpExtended.cs b/MpDataLayer/DatabaseModels/VEcpExtended.cs index b6c03144..c2d75bc9 100644 --- a/MpDataLayer/DatabaseModels/VEcpExtended.cs +++ b/MpDataLayer/DatabaseModels/VEcpExtended.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; #nullable disable -namespace MpDataLayer.DatabaseModels +namespace MP.Data.DatabaseModels { public partial class VEcpExtended { diff --git a/MpDataLayer/DatabaseModels/VKit.cs b/MpDataLayer/DatabaseModels/VKit.cs index 59d8084f..f84ce903 100644 --- a/MpDataLayer/DatabaseModels/VKit.cs +++ b/MpDataLayer/DatabaseModels/VKit.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; #nullable disable -namespace MpDataLayer.DatabaseModels +namespace MP.Data.DatabaseModels { public partial class VKit { diff --git a/MpDataLayer/DatabaseModels/VOdl.cs b/MpDataLayer/DatabaseModels/VOdl.cs index 5cf15d5a..8600135a 100644 --- a/MpDataLayer/DatabaseModels/VOdl.cs +++ b/MpDataLayer/DatabaseModels/VOdl.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; #nullable disable -namespace MpDataLayer.DatabaseModels +namespace MP.Data.DatabaseModels { public partial class VOdl { diff --git a/MpDataLayer/DatabaseModels/VOdl1.cs b/MpDataLayer/DatabaseModels/VOdl1.cs index 75a3a7f5..97fda075 100644 --- a/MpDataLayer/DatabaseModels/VOdl1.cs +++ b/MpDataLayer/DatabaseModels/VOdl1.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; #nullable disable -namespace MpDataLayer.DatabaseModels +namespace MP.Data.DatabaseModels { public partial class VOdl1 { diff --git a/MpDataLayer/DatabaseModels/VPodlNonChiusi.cs b/MpDataLayer/DatabaseModels/VPodlNonChiusi.cs index 9c7ef255..fa806e0d 100644 --- a/MpDataLayer/DatabaseModels/VPodlNonChiusi.cs +++ b/MpDataLayer/DatabaseModels/VPodlNonChiusi.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; #nullable disable -namespace MpDataLayer.DatabaseModels +namespace MP.Data.DatabaseModels { public partial class VPodlNonChiusi { diff --git a/MpDataLayer/DatabaseModels/VR1.cs b/MpDataLayer/DatabaseModels/VR1.cs index 47737486..956f8786 100644 --- a/MpDataLayer/DatabaseModels/VR1.cs +++ b/MpDataLayer/DatabaseModels/VR1.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; #nullable disable -namespace MpDataLayer.DatabaseModels +namespace MP.Data.DatabaseModels { public partial class VR1 { diff --git a/MpDataLayer/DatabaseModels/VTcStat.cs b/MpDataLayer/DatabaseModels/VTcStat.cs index 8846c061..2c048219 100644 --- a/MpDataLayer/DatabaseModels/VTcStat.cs +++ b/MpDataLayer/DatabaseModels/VTcStat.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; #nullable disable -namespace MpDataLayer.DatabaseModels +namespace MP.Data.DatabaseModels { public partial class VTcStat { diff --git a/MpDataLayer/DatabaseModels/VTcr.cs b/MpDataLayer/DatabaseModels/VTcr.cs index 612bc35a..a3adb842 100644 --- a/MpDataLayer/DatabaseModels/VTcr.cs +++ b/MpDataLayer/DatabaseModels/VTcr.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; #nullable disable -namespace MpDataLayer.DatabaseModels +namespace MP.Data.DatabaseModels { public partial class VTcr { diff --git a/MpDataLayer/DatabaseModels/VTcr1.cs b/MpDataLayer/DatabaseModels/VTcr1.cs index 15231e9d..55061b57 100644 --- a/MpDataLayer/DatabaseModels/VTcr1.cs +++ b/MpDataLayer/DatabaseModels/VTcr1.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; #nullable disable -namespace MpDataLayer.DatabaseModels +namespace MP.Data.DatabaseModels { public partial class VTcr1 { diff --git a/MpDataLayer/DatabaseModels/VTcrDay.cs b/MpDataLayer/DatabaseModels/VTcrDay.cs index 5d4c6101..5d591407 100644 --- a/MpDataLayer/DatabaseModels/VTcrDay.cs +++ b/MpDataLayer/DatabaseModels/VTcrDay.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; #nullable disable -namespace MpDataLayer.DatabaseModels +namespace MP.Data.DatabaseModels { public partial class VTcrDay { diff --git a/MpDataLayer/DatabaseModels/VetoTc.cs b/MpDataLayer/DatabaseModels/VetoTc.cs index d4271715..b48ad96b 100644 --- a/MpDataLayer/DatabaseModels/VetoTc.cs +++ b/MpDataLayer/DatabaseModels/VetoTc.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; #nullable disable -namespace MpDataLayer.DatabaseModels +namespace MP.Data.DatabaseModels { public partial class VetoTc { diff --git a/MpDataLayer/Enums.cs b/MpDataLayer/Enums.cs index 64437007..421dd601 100644 --- a/MpDataLayer/Enums.cs +++ b/MpDataLayer/Enums.cs @@ -1,6 +1,6 @@ using System; -namespace MpDataLayer +namespace MP.Data { public class Enums { diff --git a/MpDataLayer/MpDataLayer.csproj b/MpDataLayer/MP.Data.csproj similarity index 97% rename from MpDataLayer/MpDataLayer.csproj rename to MpDataLayer/MP.Data.csproj index 33dc3477..a8360e39 100644 --- a/MpDataLayer/MpDataLayer.csproj +++ b/MpDataLayer/MP.Data.csproj @@ -2,6 +2,8 @@ net5.0 + MP.Data + MP.Data diff --git a/MpDataLayer/MoonPro_STATSContext.cs b/MpDataLayer/MoonPro_STATSContext.cs index 6704c094..2c0ed3fa 100644 --- a/MpDataLayer/MoonPro_STATSContext.cs +++ b/MpDataLayer/MoonPro_STATSContext.cs @@ -7,7 +7,7 @@ using NLog; #nullable disable -namespace MpDataLayer +namespace MP.Data { public partial class MoonPro_STATSContext : DbContext { diff --git a/MpDataLayer/StatsDbContext.cs b/MpDataLayer/StatsDbContext.cs index d897301c..e52f398f 100644 --- a/MpDataLayer/StatsDbContext.cs +++ b/MpDataLayer/StatsDbContext.cs @@ -4,7 +4,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; -namespace MpDataLayer +namespace MP.Data { public class StatsDbContext { From a90a62cd7a8fd8bcfb76c972176331d80a463f45 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Mon, 17 May 2021 13:33:13 +0200 Subject: [PATCH 2/6] COmpleto rename MP.Data --- MP.Data/Constants.cs | 12 + MP.Data/Controllers/MpStatsController.cs | 85 + MP.Data/DatabaseModels/Aaul.cs | 13 + MP.Data/DatabaseModels/Cal.cs | 18 + MP.Data/DatabaseModels/Config.cs | 15 + MP.Data/DatabaseModels/Ddb.cs | 15 + MP.Data/DatabaseModels/Ddb1.cs | 24 + MP.Data/DatabaseModels/DdbTurni.cs | 30 + MP.Data/DatabaseModels/DdbTurniNew.cs | 30 + MP.Data/DatabaseModels/DdbTurniSummary.cs | 21 + MP.Data/DatabaseModels/DdbTurniSummaryNew.cs | 21 + MP.Data/DatabaseModels/Ecp.cs | 23 + MP.Data/DatabaseModels/Ecp1.cs | 21 + MP.Data/DatabaseModels/Kit.cs | 14 + MP.Data/DatabaseModels/Odl.cs | 26 + MP.Data/DatabaseModels/Odl1.cs | 30 + MP.Data/DatabaseModels/R.cs | 23 + MP.Data/DatabaseModels/R1.cs | 22 + MP.Data/DatabaseModels/Rc.cs | 19 + MP.Data/DatabaseModels/ResControlli.cs | 23 + MP.Data/DatabaseModels/ResScarti.cs | 26 + MP.Data/DatabaseModels/Tally.cs | 12 + MP.Data/DatabaseModels/TcStat.cs | 16 + MP.Data/DatabaseModels/Tcr.cs | 19 + MP.Data/DatabaseModels/Tcr1.cs | 20 + MP.Data/DatabaseModels/TcrDay.cs | 19 + MP.Data/DatabaseModels/TcrDayTest.cs | 19 + MP.Data/DatabaseModels/TestJason.cs | 14 + MP.Data/DatabaseModels/Ul.cs | 21 + MP.Data/DatabaseModels/UserActionLog.cs | 25 + MP.Data/DatabaseModels/VDdb.cs | 24 + MP.Data/DatabaseModels/VDdbLight.cs | 18 + MP.Data/DatabaseModels/VDdbLightOld.cs | 18 + MP.Data/DatabaseModels/VDdbTurni.cs | 26 + MP.Data/DatabaseModels/VEcp.cs | 21 + MP.Data/DatabaseModels/VEcp1.cs | 25 + MP.Data/DatabaseModels/VEcpExtended.cs | 27 + MP.Data/DatabaseModels/VKit.cs | 14 + MP.Data/DatabaseModels/VOdl.cs | 30 + MP.Data/DatabaseModels/VOdl1.cs | 28 + MP.Data/DatabaseModels/VPodlNonChiusi.cs | 30 + MP.Data/DatabaseModels/VR1.cs | 23 + MP.Data/DatabaseModels/VTcStat.cs | 18 + MP.Data/DatabaseModels/VTcr.cs | 20 + MP.Data/DatabaseModels/VTcr1.cs | 21 + MP.Data/DatabaseModels/VTcrDay.cs | 21 + MP.Data/DatabaseModels/VetoTc.cs | 15 + MP.Data/Enums.cs | 8 + MP.Data/MP.Data.csproj | 65 + MP.Data/MoonPro_STATSContext.cs | 1606 ++++++++++++++++++ MP.Data/Resources/Readme.md | 23 + MP.Data/StatsDbContext.cs | 12 + 52 files changed, 2769 insertions(+) create mode 100644 MP.Data/Constants.cs create mode 100644 MP.Data/Controllers/MpStatsController.cs create mode 100644 MP.Data/DatabaseModels/Aaul.cs create mode 100644 MP.Data/DatabaseModels/Cal.cs create mode 100644 MP.Data/DatabaseModels/Config.cs create mode 100644 MP.Data/DatabaseModels/Ddb.cs create mode 100644 MP.Data/DatabaseModels/Ddb1.cs create mode 100644 MP.Data/DatabaseModels/DdbTurni.cs create mode 100644 MP.Data/DatabaseModels/DdbTurniNew.cs create mode 100644 MP.Data/DatabaseModels/DdbTurniSummary.cs create mode 100644 MP.Data/DatabaseModels/DdbTurniSummaryNew.cs create mode 100644 MP.Data/DatabaseModels/Ecp.cs create mode 100644 MP.Data/DatabaseModels/Ecp1.cs create mode 100644 MP.Data/DatabaseModels/Kit.cs create mode 100644 MP.Data/DatabaseModels/Odl.cs create mode 100644 MP.Data/DatabaseModels/Odl1.cs create mode 100644 MP.Data/DatabaseModels/R.cs create mode 100644 MP.Data/DatabaseModels/R1.cs create mode 100644 MP.Data/DatabaseModels/Rc.cs create mode 100644 MP.Data/DatabaseModels/ResControlli.cs create mode 100644 MP.Data/DatabaseModels/ResScarti.cs create mode 100644 MP.Data/DatabaseModels/Tally.cs create mode 100644 MP.Data/DatabaseModels/TcStat.cs create mode 100644 MP.Data/DatabaseModels/Tcr.cs create mode 100644 MP.Data/DatabaseModels/Tcr1.cs create mode 100644 MP.Data/DatabaseModels/TcrDay.cs create mode 100644 MP.Data/DatabaseModels/TcrDayTest.cs create mode 100644 MP.Data/DatabaseModels/TestJason.cs create mode 100644 MP.Data/DatabaseModels/Ul.cs create mode 100644 MP.Data/DatabaseModels/UserActionLog.cs create mode 100644 MP.Data/DatabaseModels/VDdb.cs create mode 100644 MP.Data/DatabaseModels/VDdbLight.cs create mode 100644 MP.Data/DatabaseModels/VDdbLightOld.cs create mode 100644 MP.Data/DatabaseModels/VDdbTurni.cs create mode 100644 MP.Data/DatabaseModels/VEcp.cs create mode 100644 MP.Data/DatabaseModels/VEcp1.cs create mode 100644 MP.Data/DatabaseModels/VEcpExtended.cs create mode 100644 MP.Data/DatabaseModels/VKit.cs create mode 100644 MP.Data/DatabaseModels/VOdl.cs create mode 100644 MP.Data/DatabaseModels/VOdl1.cs create mode 100644 MP.Data/DatabaseModels/VPodlNonChiusi.cs create mode 100644 MP.Data/DatabaseModels/VR1.cs create mode 100644 MP.Data/DatabaseModels/VTcStat.cs create mode 100644 MP.Data/DatabaseModels/VTcr.cs create mode 100644 MP.Data/DatabaseModels/VTcr1.cs create mode 100644 MP.Data/DatabaseModels/VTcrDay.cs create mode 100644 MP.Data/DatabaseModels/VetoTc.cs create mode 100644 MP.Data/Enums.cs create mode 100644 MP.Data/MP.Data.csproj create mode 100644 MP.Data/MoonPro_STATSContext.cs create mode 100644 MP.Data/Resources/Readme.md create mode 100644 MP.Data/StatsDbContext.cs diff --git a/MP.Data/Constants.cs b/MP.Data/Constants.cs new file mode 100644 index 00000000..4abf10f1 --- /dev/null +++ b/MP.Data/Constants.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace MP.Data +{ + class Constants + { + } +} diff --git a/MP.Data/Controllers/MpStatsController.cs b/MP.Data/Controllers/MpStatsController.cs new file mode 100644 index 00000000..0b1d43eb --- /dev/null +++ b/MP.Data/Controllers/MpStatsController.cs @@ -0,0 +1,85 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Configuration; +using NLog; +using Microsoft.Extensions.Configuration; + +namespace MP.Data.Controllers +{ + public class MpStatsController : IDisposable + { + #region Private Fields + + private static IConfiguration _configuration; + private static MoonPro_STATSContext dbCtx; + private static NLog.Logger Log = LogManager.GetCurrentClassLogger(); + + #endregion Private Fields + + #region Public Constructors + + public MpStatsController(IConfiguration configuration) + { + _configuration = configuration; + dbCtx = new MoonPro_STATSContext(configuration); + Log.Info("Avviata classe MpStatsController.MpStatsController"); + } + + #endregion Public Constructors + + #region Public Methods + + public void Dispose() + { + // Clear database context + dbCtx.Dispose(); + } + + /// + /// Annulla modifiche su una specifica entity (cancel update) + /// + /// + /// + public bool rollBackEntity(object item) + { + bool answ = false; + try + { + if (dbCtx.Entry(item).State == Microsoft.EntityFrameworkCore.EntityState.Deleted || dbCtx.Entry(item).State == Microsoft.EntityFrameworkCore.EntityState.Modified) + { + dbCtx.Entry(item).Reload(); + } + } + catch (Exception exc) + { + Log.Error($"Eccezione in rollBackEntity{Environment.NewLine}{exc}"); + } + return answ; + } + + /// + /// Elenco tabella scarti da filtro + /// + /// + /// + /// + public List ScartiGetAll(int numRecord, string searchVal = "") + { + List dbResult = new List(); + + dbResult = dbCtx + .DbSetScarti + .Where(x => x.KeyRichiesta.Contains(searchVal) || x.Descrizione.Contains(searchVal) || x.CodArticolo.Contains(searchVal) || string.IsNullOrEmpty(searchVal)) + .OrderByDescending(x => x.DataOra) + .Take(numRecord) + .ToList(); + + return dbResult; + } + + #endregion Public Methods + } +} \ No newline at end of file diff --git a/MP.Data/DatabaseModels/Aaul.cs b/MP.Data/DatabaseModels/Aaul.cs new file mode 100644 index 00000000..f639d8c7 --- /dev/null +++ b/MP.Data/DatabaseModels/Aaul.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; + +#nullable disable + +namespace MP.Data.DatabaseModels +{ + public partial class Aaul + { + public string Azione { get; set; } + public string Descrizione { get; set; } + } +} diff --git a/MP.Data/DatabaseModels/Cal.cs b/MP.Data/DatabaseModels/Cal.cs new file mode 100644 index 00000000..62ac75a3 --- /dev/null +++ b/MP.Data/DatabaseModels/Cal.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; + +#nullable disable + +namespace MP.Data.DatabaseModels +{ + public partial class Cal + { + public DateTime Giorno { get; set; } + public bool? DoDdb { get; set; } + public bool? DoTcr { get; set; } + public bool? DoUl { get; set; } + public bool? DoEcp { get; set; } + public bool? DoRs { get; set; } + public bool? DoOdl { get; set; } + } +} diff --git a/MP.Data/DatabaseModels/Config.cs b/MP.Data/DatabaseModels/Config.cs new file mode 100644 index 00000000..e994d899 --- /dev/null +++ b/MP.Data/DatabaseModels/Config.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; + +#nullable disable + +namespace MP.Data.DatabaseModels +{ + public partial class Config + { + public string Chiave { get; set; } + public string Valore { get; set; } + public string ValoreStd { get; set; } + public string Note { get; set; } + } +} diff --git a/MP.Data/DatabaseModels/Ddb.cs b/MP.Data/DatabaseModels/Ddb.cs new file mode 100644 index 00000000..01eb95f0 --- /dev/null +++ b/MP.Data/DatabaseModels/Ddb.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; + +#nullable disable + +namespace MP.Data.DatabaseModels +{ + public partial class Ddb + { + public DateTime DataOraRif { get; set; } + public string IdxMacchina { get; set; } + public int IdxStato { get; set; } + public decimal DurataMinuti { get; set; } + } +} diff --git a/MP.Data/DatabaseModels/Ddb1.cs b/MP.Data/DatabaseModels/Ddb1.cs new file mode 100644 index 00000000..60291b02 --- /dev/null +++ b/MP.Data/DatabaseModels/Ddb1.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; + +#nullable disable + +namespace MP.Data.DatabaseModels +{ + public partial class Ddb1 + { + public string IdxMacchina { get; set; } + public DateTime InizioStato { get; set; } + public DateTime? FineStato { get; set; } + public int IdxStato { get; set; } + public double? DurataMinuti { get; set; } + public string Value { get; set; } + public string CodArticolo { get; set; } + public double? TempoCicloBase { get; set; } + public int? PzPalletProd { get; set; } + public int? MatrOpr { get; set; } + public string Pallet { get; set; } + public string Descrizione { get; set; } + public string ClasseTempo { get; set; } + } +} diff --git a/MP.Data/DatabaseModels/DdbTurni.cs b/MP.Data/DatabaseModels/DdbTurni.cs new file mode 100644 index 00000000..4fc7e14d --- /dev/null +++ b/MP.Data/DatabaseModels/DdbTurni.cs @@ -0,0 +1,30 @@ +using System; +using System.Collections.Generic; + +#nullable disable + +namespace MP.Data.DatabaseModels +{ + public partial class DdbTurni + { + public DateTime DataRif { get; set; } + public string IdxMacchina { get; set; } + public string Turno { get; set; } + public int IdxStato { get; set; } + public string CodArticolo { get; set; } + public DateTime InizioStato { get; set; } + public DateTime FineStato { get; set; } + public string Pallet { get; set; } + public int? PzPalletProd { get; set; } + public decimal? TempoCicloBase { get; set; } + public string Descrizione { get; set; } + public string ClasseTempo { get; set; } + public DateTime? DataTurnoInizio { get; set; } + public DateTime? DataTurnoFine { get; set; } + public long? DurataStato { get; set; } + public DateTime InizioPeriodo { get; set; } + public DateTime? FinePeriodo { get; set; } + public long? DurataPeriodo { get; set; } + public int TotPzProd { get; set; } + } +} diff --git a/MP.Data/DatabaseModels/DdbTurniNew.cs b/MP.Data/DatabaseModels/DdbTurniNew.cs new file mode 100644 index 00000000..37bf31d9 --- /dev/null +++ b/MP.Data/DatabaseModels/DdbTurniNew.cs @@ -0,0 +1,30 @@ +using System; +using System.Collections.Generic; + +#nullable disable + +namespace MP.Data.DatabaseModels +{ + public partial class DdbTurniNew + { + public DateTime DataRif { get; set; } + public string IdxMacchina { get; set; } + public string Turno { get; set; } + public int IdxStato { get; set; } + public string CodArticolo { get; set; } + public DateTime InizioStato { get; set; } + public DateTime FineStato { get; set; } + public string Pallet { get; set; } + public int? PzPalletProd { get; set; } + public decimal? TempoCicloBase { get; set; } + public string Descrizione { get; set; } + public string ClasseTempo { get; set; } + public DateTime? DataTurnoInizio { get; set; } + public DateTime? DataTurnoFine { get; set; } + public long? DurataStato { get; set; } + public DateTime InizioPeriodo { get; set; } + public DateTime? FinePeriodo { get; set; } + public long? DurataPeriodo { get; set; } + public int TotPzProd { get; set; } + } +} diff --git a/MP.Data/DatabaseModels/DdbTurniSummary.cs b/MP.Data/DatabaseModels/DdbTurniSummary.cs new file mode 100644 index 00000000..5db34143 --- /dev/null +++ b/MP.Data/DatabaseModels/DdbTurniSummary.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; + +#nullable disable + +namespace MP.Data.DatabaseModels +{ + public partial class DdbTurniSummary + { + public string IdxMacchina { get; set; } + public DateTime DataRif { get; set; } + public string Turno { get; set; } + public string CodArticolo { get; set; } + public int IdxStato { get; set; } + public decimal TempoCicloBase { get; set; } + public DateTime? Inizio { get; set; } + public int PzPalletProd { get; set; } + public decimal? Durata { get; set; } + public int? PzProd { get; set; } + } +} diff --git a/MP.Data/DatabaseModels/DdbTurniSummaryNew.cs b/MP.Data/DatabaseModels/DdbTurniSummaryNew.cs new file mode 100644 index 00000000..1460328b --- /dev/null +++ b/MP.Data/DatabaseModels/DdbTurniSummaryNew.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; + +#nullable disable + +namespace MP.Data.DatabaseModels +{ + public partial class DdbTurniSummaryNew + { + public string IdxMacchina { get; set; } + public DateTime DataRif { get; set; } + public string Turno { get; set; } + public string CodArticolo { get; set; } + public int IdxStato { get; set; } + public decimal TempoCicloBase { get; set; } + public DateTime? Inizio { get; set; } + public int PzPalletProd { get; set; } + public decimal? Durata { get; set; } + public int? PzProd { get; set; } + } +} diff --git a/MP.Data/DatabaseModels/Ecp.cs b/MP.Data/DatabaseModels/Ecp.cs new file mode 100644 index 00000000..09fb32dc --- /dev/null +++ b/MP.Data/DatabaseModels/Ecp.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; + +#nullable disable + +namespace MP.Data.DatabaseModels +{ + public partial class Ecp + { + public int IdxEcp { get; set; } + public DateTime DataOraConf { get; set; } + public string IdxMacchina { get; set; } + public string KeyRichiesta { get; set; } + public int IdxOdl { get; set; } + public string CodArticolo { get; set; } + public int PezziConf { get; set; } + public int PezziScar { get; set; } + public int PezziDaRilav { get; set; } + public int MatrOpr { get; set; } + public string Cognome { get; set; } + public string Nome { get; set; } + } +} diff --git a/MP.Data/DatabaseModels/Ecp1.cs b/MP.Data/DatabaseModels/Ecp1.cs new file mode 100644 index 00000000..33a3a973 --- /dev/null +++ b/MP.Data/DatabaseModels/Ecp1.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; + +#nullable disable + +namespace MP.Data.DatabaseModels +{ + public partial class Ecp1 + { + public DateTime DataOraConf { get; set; } + public string IdxMacchina { get; set; } + public int MatrApp { get; set; } + public DateTime DataFrom { get; set; } + public DateTime DataTo { get; set; } + public int PezziConf { get; set; } + public int PezziScar { get; set; } + public int PezziDaRilav { get; set; } + public string CommessaEsterna { get; set; } + public int TipoConf { get; set; } + } +} diff --git a/MP.Data/DatabaseModels/Kit.cs b/MP.Data/DatabaseModels/Kit.cs new file mode 100644 index 00000000..cb25c5c0 --- /dev/null +++ b/MP.Data/DatabaseModels/Kit.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; + +#nullable disable + +namespace MP.Data.DatabaseModels +{ + public partial class Kit + { + public string KeyKit { get; set; } + public string KeyExtOrd { get; set; } + public string CodArtParent { get; set; } + } +} diff --git a/MP.Data/DatabaseModels/Odl.cs b/MP.Data/DatabaseModels/Odl.cs new file mode 100644 index 00000000..fa8f8bfa --- /dev/null +++ b/MP.Data/DatabaseModels/Odl.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; + +#nullable disable + +namespace MP.Data.DatabaseModels +{ + public partial class Odl + { + public int IdxOdl { get; set; } + public string KeyRichiesta { get; set; } + public string CodArticolo { get; set; } + public decimal Tcassegnato { get; set; } + public string IdxMacchina { get; set; } + public int NumPezzi { get; set; } + public int NumPezziEv { get; set; } + public int NumPezziSca { get; set; } + public int NumPezziRil { get; set; } + public DateTime? DataInizio { get; set; } + public DateTime? DataFine { get; set; } + public string KeyRichiestaParent { get; set; } + public string CodArticoloParent { get; set; } + public DateTime? DueDate { get; set; } + public int? PzPallet { get; set; } + } +} diff --git a/MP.Data/DatabaseModels/Odl1.cs b/MP.Data/DatabaseModels/Odl1.cs new file mode 100644 index 00000000..50436e07 --- /dev/null +++ b/MP.Data/DatabaseModels/Odl1.cs @@ -0,0 +1,30 @@ +using System; +using System.Collections.Generic; + +#nullable disable + +namespace MP.Data.DatabaseModels +{ + public partial class Odl1 + { + public int IdxOdl { get; set; } + public string CodArticolo { get; set; } + public string IdxMacchina { get; set; } + public int NumPezzi { get; set; } + public decimal Tcassegnato { get; set; } + public DateTime? DataInizio { get; set; } + public DateTime? DataFine { get; set; } + public string Note { get; set; } + public bool NeedAppr { get; set; } + public string UserAppr { get; set; } + public DateTime? DataAppr { get; set; } + public decimal? TcrichAttr { get; set; } + public string KeyRichiesta { get; set; } + public int PzPallet { get; set; } + public bool Provvisorio { get; set; } + public int MatrOpr { get; set; } + public string CommessaAs400 { get; set; } + public int ToAs400 { get; set; } + public DateTime? DueDate { get; set; } + } +} diff --git a/MP.Data/DatabaseModels/R.cs b/MP.Data/DatabaseModels/R.cs new file mode 100644 index 00000000..8e58bf74 --- /dev/null +++ b/MP.Data/DatabaseModels/R.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; + +#nullable disable + +namespace MP.Data.DatabaseModels +{ + public partial class R + { + public DateTime DataOraRif { get; set; } + public string IdxMacchina { get; set; } + public string Causale { get; set; } + public string Descrizione { get; set; } + public string Note { get; set; } + public int Qta { get; set; } + public string KeyRichiesta { get; set; } + public int IdxOdl { get; set; } + public string CodArticolo { get; set; } + public int MatrOpr { get; set; } + public string Cognome { get; set; } + public string Nome { get; set; } + } +} diff --git a/MP.Data/DatabaseModels/R1.cs b/MP.Data/DatabaseModels/R1.cs new file mode 100644 index 00000000..e4abb10d --- /dev/null +++ b/MP.Data/DatabaseModels/R1.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; + +#nullable disable + +namespace MP.Data.DatabaseModels +{ + public partial class R1 + { + public string IdxMacchina { get; set; } + public DateTime DataOra { get; set; } + public string Causale { get; set; } + public int Qta { get; set; } + public string Note { get; set; } + public string CodArticolo { get; set; } + public int MatrOpr { get; set; } + public DateTime? DataOraProdRec { get; set; } + public string Descrizione { get; set; } + public string KeyRichiesta { get; set; } + public int IdxOdl { get; set; } + } +} diff --git a/MP.Data/DatabaseModels/Rc.cs b/MP.Data/DatabaseModels/Rc.cs new file mode 100644 index 00000000..8578e1a4 --- /dev/null +++ b/MP.Data/DatabaseModels/Rc.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; + +#nullable disable + +namespace MP.Data.DatabaseModels +{ + public partial class Rc + { + public int IdxControllo { get; set; } + public DateTime DataOra { get; set; } + public string IdxMacchina { get; set; } + public int IdxOdl { get; set; } + public string CodArticolo { get; set; } + public int MatrOpr { get; set; } + public bool EsitoOk { get; set; } + public string Note { get; set; } + } +} diff --git a/MP.Data/DatabaseModels/ResControlli.cs b/MP.Data/DatabaseModels/ResControlli.cs new file mode 100644 index 00000000..77f46ee9 --- /dev/null +++ b/MP.Data/DatabaseModels/ResControlli.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; + +#nullable disable + +namespace MP.Data.DatabaseModels +{ + public partial class ResControlli + { + #region Public Properties + + public string CodArticolo { get; set; } + public DateTime DataOra { get; set; } + public bool EsitoOk { get; set; } + public int IdxControllo { get; set; } + public string IdxMacchina { get; set; } + public int IdxOdl { get; set; } + public int MatrOpr { get; set; } + public string Note { get; set; } + + #endregion Public Properties + } +} \ No newline at end of file diff --git a/MP.Data/DatabaseModels/ResScarti.cs b/MP.Data/DatabaseModels/ResScarti.cs new file mode 100644 index 00000000..4d66d124 --- /dev/null +++ b/MP.Data/DatabaseModels/ResScarti.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; + +#nullable disable + +namespace MP.Data.DatabaseModels +{ + public partial class ResScarti + { + #region Public Properties + + public string Causale { get; set; } + public string CodArticolo { get; set; } + public DateTime DataOra { get; set; } + public DateTime? DataOraProdRec { get; set; } + public string Descrizione { get; set; } + public string IdxMacchina { get; set; } + public int IdxOdl { get; set; } + public string KeyRichiesta { get; set; } + public int MatrOpr { get; set; } + public string Note { get; set; } + public int Qta { get; set; } + + #endregion Public Properties + } +} \ No newline at end of file diff --git a/MP.Data/DatabaseModels/Tally.cs b/MP.Data/DatabaseModels/Tally.cs new file mode 100644 index 00000000..e64cf735 --- /dev/null +++ b/MP.Data/DatabaseModels/Tally.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; + +#nullable disable + +namespace MP.Data.DatabaseModels +{ + public partial class Tally + { + public int N { get; set; } + } +} diff --git a/MP.Data/DatabaseModels/TcStat.cs b/MP.Data/DatabaseModels/TcStat.cs new file mode 100644 index 00000000..eef51348 --- /dev/null +++ b/MP.Data/DatabaseModels/TcStat.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; + +#nullable disable + +namespace MP.Data.DatabaseModels +{ + public partial class TcStat + { + public string CodArticolo { get; set; } + public string CodGruppo { get; set; } + public string IdxMacchina { get; set; } + public decimal TcStat1 { get; set; } + public int TcType { get; set; } + } +} diff --git a/MP.Data/DatabaseModels/Tcr.cs b/MP.Data/DatabaseModels/Tcr.cs new file mode 100644 index 00000000..d0ba1c26 --- /dev/null +++ b/MP.Data/DatabaseModels/Tcr.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; + +#nullable disable + +namespace MP.Data.DatabaseModels +{ + public partial class Tcr + { + public DateTime DataOraRif { get; set; } + public string IdxMacchina { get; set; } + public string CodArticolo { get; set; } + public int PzProd { get; set; } + public decimal? Tcmedio { get; set; } + public decimal? Tcmin { get; set; } + public decimal? Tcmax { get; set; } + public decimal? Tc50p { get; set; } + } +} diff --git a/MP.Data/DatabaseModels/Tcr1.cs b/MP.Data/DatabaseModels/Tcr1.cs new file mode 100644 index 00000000..444d2669 --- /dev/null +++ b/MP.Data/DatabaseModels/Tcr1.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; + +#nullable disable + +namespace MP.Data.DatabaseModels +{ + public partial class Tcr1 + { + public string IdxMacchina { get; set; } + public string CodArticolo { get; set; } + public DateTime DataOraRif { get; set; } + public decimal Tcmedio { get; set; } + public int PzProd { get; set; } + public int IdxOdl { get; set; } + public decimal Tcassegnato { get; set; } + public string KeyRichiesta { get; set; } + public int PzPallet { get; set; } + } +} diff --git a/MP.Data/DatabaseModels/TcrDay.cs b/MP.Data/DatabaseModels/TcrDay.cs new file mode 100644 index 00000000..20c3fbdf --- /dev/null +++ b/MP.Data/DatabaseModels/TcrDay.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; + +#nullable disable + +namespace MP.Data.DatabaseModels +{ + public partial class TcrDay + { + public DateTime DataOraRif { get; set; } + public string IdxMacchina { get; set; } + public string CodArticolo { get; set; } + public int PzProd { get; set; } + public decimal? Tcmedio { get; set; } + public decimal? Tcmin { get; set; } + public decimal? Tcmax { get; set; } + public decimal? Tc50p { get; set; } + } +} diff --git a/MP.Data/DatabaseModels/TcrDayTest.cs b/MP.Data/DatabaseModels/TcrDayTest.cs new file mode 100644 index 00000000..904d7c7f --- /dev/null +++ b/MP.Data/DatabaseModels/TcrDayTest.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; + +#nullable disable + +namespace MP.Data.DatabaseModels +{ + public partial class TcrDayTest + { + public DateTime DataOraRif { get; set; } + public string IdxMacchina { get; set; } + public string CodArticolo { get; set; } + public int PzProd { get; set; } + public decimal? Tcmedio { get; set; } + public decimal? Tcmin { get; set; } + public decimal? Tcmax { get; set; } + public decimal? Tc50p { get; set; } + } +} diff --git a/MP.Data/DatabaseModels/TestJason.cs b/MP.Data/DatabaseModels/TestJason.cs new file mode 100644 index 00000000..8f921d40 --- /dev/null +++ b/MP.Data/DatabaseModels/TestJason.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; + +#nullable disable + +namespace MP.Data.DatabaseModels +{ + public partial class TestJason + { + public DateTime Data { get; set; } + public byte[] Json { get; set; } + public int? Rows { get; set; } + } +} diff --git a/MP.Data/DatabaseModels/Ul.cs b/MP.Data/DatabaseModels/Ul.cs new file mode 100644 index 00000000..54b11f82 --- /dev/null +++ b/MP.Data/DatabaseModels/Ul.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; + +#nullable disable + +namespace MP.Data.DatabaseModels +{ + public partial class Ul + { + public int IdxLog { get; set; } + public DateTime DataOraRif { get; set; } + public string IdxMacchina { get; set; } + public int MatrOpr { get; set; } + public string Cognome { get; set; } + public string Nome { get; set; } + public string CodArticolo { get; set; } + public string Azione { get; set; } + public string Valore { get; set; } + public decimal Qta { get; set; } + } +} diff --git a/MP.Data/DatabaseModels/UserActionLog.cs b/MP.Data/DatabaseModels/UserActionLog.cs new file mode 100644 index 00000000..15426401 --- /dev/null +++ b/MP.Data/DatabaseModels/UserActionLog.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; + +#nullable disable + +namespace MP.Data.DatabaseModels +{ + public partial class UserActionLog + { + #region Public Properties + + public string Azione { get; set; } + public string CodArticolo { get; set; } + public string Cognome { get; set; } + public DateTime DataOraRif { get; set; } + public int IdxLog { get; set; } + public string IdxMacchina { get; set; } + public int MatrOpr { get; set; } + public string Nome { get; set; } + public decimal Qta { get; set; } + public string Valore { get; set; } + + #endregion Public Properties + } +} \ No newline at end of file diff --git a/MP.Data/DatabaseModels/VDdb.cs b/MP.Data/DatabaseModels/VDdb.cs new file mode 100644 index 00000000..4aeccff6 --- /dev/null +++ b/MP.Data/DatabaseModels/VDdb.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; + +#nullable disable + +namespace MP.Data.DatabaseModels +{ + public partial class VDdb + { + public string IdxMacchina { get; set; } + public DateTime InizioStato { get; set; } + public DateTime? FineStato { get; set; } + public int IdxStato { get; set; } + public double? DurataMinuti { get; set; } + public string Value { get; set; } + public string CodArticolo { get; set; } + public double? TempoCicloBase { get; set; } + public int? PzPalletProd { get; set; } + public int? MatrOpr { get; set; } + public string Pallet { get; set; } + public string Descrizione { get; set; } + public string ClasseTempo { get; set; } + } +} diff --git a/MP.Data/DatabaseModels/VDdbLight.cs b/MP.Data/DatabaseModels/VDdbLight.cs new file mode 100644 index 00000000..f1bafcbc --- /dev/null +++ b/MP.Data/DatabaseModels/VDdbLight.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; + +#nullable disable + +namespace MP.Data.DatabaseModels +{ + public partial class VDdbLight + { + public string CodMacchina { get; set; } + public string DescMacchina { get; set; } + public DateTime InizioStato { get; set; } + public string Stato { get; set; } + public double? DurataMinuti { get; set; } + public string CodArticolo { get; set; } + public string Operatore { get; set; } + } +} diff --git a/MP.Data/DatabaseModels/VDdbLightOld.cs b/MP.Data/DatabaseModels/VDdbLightOld.cs new file mode 100644 index 00000000..d636177a --- /dev/null +++ b/MP.Data/DatabaseModels/VDdbLightOld.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; + +#nullable disable + +namespace MP.Data.DatabaseModels +{ + public partial class VDdbLightOld + { + public string CodMacchina { get; set; } + public string DescMacchina { get; set; } + public DateTime InizioStato { get; set; } + public string Stato { get; set; } + public double? DurataMinuti { get; set; } + public string CodArticolo { get; set; } + public string Operatore { get; set; } + } +} diff --git a/MP.Data/DatabaseModels/VDdbTurni.cs b/MP.Data/DatabaseModels/VDdbTurni.cs new file mode 100644 index 00000000..fbdc6046 --- /dev/null +++ b/MP.Data/DatabaseModels/VDdbTurni.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; + +#nullable disable + +namespace MP.Data.DatabaseModels +{ + public partial class VDdbTurni + { + public string IdxMacchina { get; set; } + public DateTime DataRif { get; set; } + public string Turno { get; set; } + public string CodArticolo { get; set; } + public int IdxStato { get; set; } + public decimal TempoCicloBase { get; set; } + public int PzPalletProd { get; set; } + public decimal? Durata { get; set; } + public int? PzProd { get; set; } + public string ClasseTempo { get; set; } + public string DescClasseTempo { get; set; } + public string Semaforo { get; set; } + public string SemColore { get; set; } + public string CodMacchina { get; set; } + public string DescMacchina { get; set; } + } +} diff --git a/MP.Data/DatabaseModels/VEcp.cs b/MP.Data/DatabaseModels/VEcp.cs new file mode 100644 index 00000000..c90a45b6 --- /dev/null +++ b/MP.Data/DatabaseModels/VEcp.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; + +#nullable disable + +namespace MP.Data.DatabaseModels +{ + public partial class VEcp + { + public DateTime DataOraConf { get; set; } + public string IdxMacchina { get; set; } + public int MatrApp { get; set; } + public DateTime DataFrom { get; set; } + public DateTime DataTo { get; set; } + public int PezziConf { get; set; } + public int PezziScar { get; set; } + public int PezziDaRilav { get; set; } + public string CommessaEsterna { get; set; } + public int TipoConf { get; set; } + } +} diff --git a/MP.Data/DatabaseModels/VEcp1.cs b/MP.Data/DatabaseModels/VEcp1.cs new file mode 100644 index 00000000..3c63b654 --- /dev/null +++ b/MP.Data/DatabaseModels/VEcp1.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; + +#nullable disable + +namespace MP.Data.DatabaseModels +{ + public partial class VEcp1 + { + public int IdxEcp { get; set; } + public DateTime DataOraConf { get; set; } + public string IdxMacchina { get; set; } + public string CodMacchina { get; set; } + public string DescMacchina { get; set; } + public string KeyRichiesta { get; set; } + public int IdxOdl { get; set; } + public string CodArticolo { get; set; } + public int PezziConf { get; set; } + public int PezziScar { get; set; } + public int PezziDaRilav { get; set; } + public int MatrOpr { get; set; } + public string Cognome { get; set; } + public string Nome { get; set; } + } +} diff --git a/MP.Data/DatabaseModels/VEcpExtended.cs b/MP.Data/DatabaseModels/VEcpExtended.cs new file mode 100644 index 00000000..c2d75bc9 --- /dev/null +++ b/MP.Data/DatabaseModels/VEcpExtended.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; + +#nullable disable + +namespace MP.Data.DatabaseModels +{ + public partial class VEcpExtended + { + public int IdxEcp { get; set; } + public DateTime DataOraConf { get; set; } + public string IdxMacchina { get; set; } + public string CodMacchina { get; set; } + public string DescMacchina { get; set; } + public string KeyRichiesta { get; set; } + public int IdxOdl { get; set; } + public string CodArticolo { get; set; } + public int PezziConf { get; set; } + public int PezziScar { get; set; } + public int PezziDaRilav { get; set; } + public int MatrOpr { get; set; } + public string Cognome { get; set; } + public string Nome { get; set; } + public decimal Tcassegnato { get; set; } + public DateTime DueDate { get; set; } + } +} diff --git a/MP.Data/DatabaseModels/VKit.cs b/MP.Data/DatabaseModels/VKit.cs new file mode 100644 index 00000000..f84ce903 --- /dev/null +++ b/MP.Data/DatabaseModels/VKit.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; + +#nullable disable + +namespace MP.Data.DatabaseModels +{ + public partial class VKit + { + public string KeyKit { get; set; } + public string KeyExtOrd { get; set; } + public string CodArtParent { get; set; } + } +} diff --git a/MP.Data/DatabaseModels/VOdl.cs b/MP.Data/DatabaseModels/VOdl.cs new file mode 100644 index 00000000..8600135a --- /dev/null +++ b/MP.Data/DatabaseModels/VOdl.cs @@ -0,0 +1,30 @@ +using System; +using System.Collections.Generic; + +#nullable disable + +namespace MP.Data.DatabaseModels +{ + public partial class VOdl + { + public int IdxOdl { get; set; } + public string CodArticolo { get; set; } + public string IdxMacchina { get; set; } + public int NumPezzi { get; set; } + public decimal Tcassegnato { get; set; } + public DateTime? DataInizio { get; set; } + public DateTime? DataFine { get; set; } + public string Note { get; set; } + public bool NeedAppr { get; set; } + public string UserAppr { get; set; } + public DateTime? DataAppr { get; set; } + public decimal? TcrichAttr { get; set; } + public string KeyRichiesta { get; set; } + public int PzPallet { get; set; } + public bool Provvisorio { get; set; } + public int MatrOpr { get; set; } + public string CommessaAs400 { get; set; } + public int ToAs400 { get; set; } + public DateTime? DueDate { get; set; } + } +} diff --git a/MP.Data/DatabaseModels/VOdl1.cs b/MP.Data/DatabaseModels/VOdl1.cs new file mode 100644 index 00000000..97fda075 --- /dev/null +++ b/MP.Data/DatabaseModels/VOdl1.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; + +#nullable disable + +namespace MP.Data.DatabaseModels +{ + public partial class VOdl1 + { + public int IdxOdl { get; set; } + public string KeyRichiesta { get; set; } + public string CodArticolo { get; set; } + public decimal Tcassegnato { get; set; } + public string IdxMacchina { get; set; } + public string CodMacchina { get; set; } + public string DescMacchina { get; set; } + public int NumPezzi { get; set; } + public int NumPezziEv { get; set; } + public int NumPezziSca { get; set; } + public int NumPezziRil { get; set; } + public DateTime? DataInizio { get; set; } + public DateTime? DataFine { get; set; } + public string KeyRichiestaParent { get; set; } + public string CodArticoloParent { get; set; } + public DateTime? DueDate { get; set; } + public int? PzPallet { get; set; } + } +} diff --git a/MP.Data/DatabaseModels/VPodlNonChiusi.cs b/MP.Data/DatabaseModels/VPodlNonChiusi.cs new file mode 100644 index 00000000..fa806e0d --- /dev/null +++ b/MP.Data/DatabaseModels/VPodlNonChiusi.cs @@ -0,0 +1,30 @@ +using System; +using System.Collections.Generic; + +#nullable disable + +namespace MP.Data.DatabaseModels +{ + public partial class VPodlNonChiusi + { + public int IdxPromessa { get; set; } + public string KeyRichiesta { get; set; } + public string KeyBcode { get; set; } + public bool Attivabile { get; set; } + public int IdxOdl { get; set; } + public DateTime? DataInizio { get; set; } + public string CodArticolo { get; set; } + public string DescArticolo { get; set; } + public string CodGruppo { get; set; } + public string IdxMacchina { get; set; } + public string CodMacchina { get; set; } + public string Nome { get; set; } + public int NumPezzi { get; set; } + public decimal Tcassegnato { get; set; } + public DateTime DueDate { get; set; } + public int Priorita { get; set; } + public int PzPallet { get; set; } + public decimal? TotMinProg { get; set; } + public decimal? TotOreProg { get; set; } + } +} diff --git a/MP.Data/DatabaseModels/VR1.cs b/MP.Data/DatabaseModels/VR1.cs new file mode 100644 index 00000000..956f8786 --- /dev/null +++ b/MP.Data/DatabaseModels/VR1.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; + +#nullable disable + +namespace MP.Data.DatabaseModels +{ + public partial class VR1 + { + public DateTime DataOraRif { get; set; } + public string IdxMacchina { get; set; } + public string Causale { get; set; } + public string Descrizione { get; set; } + public string Note { get; set; } + public int Qta { get; set; } + public string KeyRichiesta { get; set; } + public int IdxOdl { get; set; } + public string CodArticolo { get; set; } + public int MatrOpr { get; set; } + public string Cognome { get; set; } + public string Nome { get; set; } + } +} diff --git a/MP.Data/DatabaseModels/VTcStat.cs b/MP.Data/DatabaseModels/VTcStat.cs new file mode 100644 index 00000000..2c048219 --- /dev/null +++ b/MP.Data/DatabaseModels/VTcStat.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; + +#nullable disable + +namespace MP.Data.DatabaseModels +{ + public partial class VTcStat + { + public string CodArticolo { get; set; } + public string CodGruppo { get; set; } + public string IdxMacchina { get; set; } + public string CodMacchina { get; set; } + public string DescMacchina { get; set; } + public decimal TcStat { get; set; } + public int TcType { get; set; } + } +} diff --git a/MP.Data/DatabaseModels/VTcr.cs b/MP.Data/DatabaseModels/VTcr.cs new file mode 100644 index 00000000..a3adb842 --- /dev/null +++ b/MP.Data/DatabaseModels/VTcr.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; + +#nullable disable + +namespace MP.Data.DatabaseModels +{ + public partial class VTcr + { + public string IdxMacchina { get; set; } + public string CodArticolo { get; set; } + public DateTime DataOraRif { get; set; } + public decimal Tcmedio { get; set; } + public int PzProd { get; set; } + public int IdxOdl { get; set; } + public decimal Tcassegnato { get; set; } + public string KeyRichiesta { get; set; } + public int PzPallet { get; set; } + } +} diff --git a/MP.Data/DatabaseModels/VTcr1.cs b/MP.Data/DatabaseModels/VTcr1.cs new file mode 100644 index 00000000..55061b57 --- /dev/null +++ b/MP.Data/DatabaseModels/VTcr1.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; + +#nullable disable + +namespace MP.Data.DatabaseModels +{ + public partial class VTcr1 + { + public DateTime DataOraRif { get; set; } + public string IdxMacchina { get; set; } + public string CodMacchina { get; set; } + public string DescMacchina { get; set; } + public string CodArticolo { get; set; } + public int PzProd { get; set; } + public decimal? Tcmedio { get; set; } + public decimal? Tcmin { get; set; } + public decimal? Tcmax { get; set; } + public decimal? Tc50p { get; set; } + } +} diff --git a/MP.Data/DatabaseModels/VTcrDay.cs b/MP.Data/DatabaseModels/VTcrDay.cs new file mode 100644 index 00000000..5d591407 --- /dev/null +++ b/MP.Data/DatabaseModels/VTcrDay.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; + +#nullable disable + +namespace MP.Data.DatabaseModels +{ + public partial class VTcrDay + { + public DateTime? DataOraRif { get; set; } + public string IdxMacchina { get; set; } + public string CodMacchina { get; set; } + public string DescMacchina { get; set; } + public string CodArticolo { get; set; } + public int PzProd { get; set; } + public decimal? Tcmedio { get; set; } + public decimal? Tcmin { get; set; } + public decimal? Tcmax { get; set; } + public decimal? Tc50p { get; set; } + } +} diff --git a/MP.Data/DatabaseModels/VetoTc.cs b/MP.Data/DatabaseModels/VetoTc.cs new file mode 100644 index 00000000..b48ad96b --- /dev/null +++ b/MP.Data/DatabaseModels/VetoTc.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; + +#nullable disable + +namespace MP.Data.DatabaseModels +{ + public partial class VetoTc + { + public string IdxMacchina { get; set; } + public string CodArticolo { get; set; } + public bool? VetoTc1 { get; set; } + public decimal SogliaTc { get; set; } + } +} diff --git a/MP.Data/Enums.cs b/MP.Data/Enums.cs new file mode 100644 index 00000000..421dd601 --- /dev/null +++ b/MP.Data/Enums.cs @@ -0,0 +1,8 @@ +using System; + +namespace MP.Data +{ + public class Enums + { + } +} \ No newline at end of file diff --git a/MP.Data/MP.Data.csproj b/MP.Data/MP.Data.csproj new file mode 100644 index 00000000..a8360e39 --- /dev/null +++ b/MP.Data/MP.Data.csproj @@ -0,0 +1,65 @@ + + + + net5.0 + MP.Data + MP.Data + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + diff --git a/MP.Data/MoonPro_STATSContext.cs b/MP.Data/MoonPro_STATSContext.cs new file mode 100644 index 00000000..ee404307 --- /dev/null +++ b/MP.Data/MoonPro_STATSContext.cs @@ -0,0 +1,1606 @@ +using System; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Metadata; +using Microsoft.Extensions.Configuration; +using MP.Data.DatabaseModels; +using NLog; + +#nullable disable + +namespace MP.Data +{ + public partial class MoonPro_STATSContext : DbContext + { + #region Private Fields + + private static NLog.Logger Log = LogManager.GetCurrentClassLogger(); + + private IConfiguration _configuration; + + #endregion Private Fields + + #region Public Constructors + + public MoonPro_STATSContext(IConfiguration configuration) + { + _configuration = configuration; + } + + public MoonPro_STATSContext(DbContextOptions options) + : base(options) + { + } + + #endregion Public Constructors + +#if false + public virtual DbSet Aauls { get; set; } + public virtual DbSet Cals { get; set; } + public virtual DbSet Configs { get; set; } + public virtual DbSet Ddbs { get; set; } + public virtual DbSet Ddbs1 { get; set; } + public virtual DbSet DdbTurniNews { get; set; } + public virtual DbSet DdbTurnis { get; set; } + public virtual DbSet DdbTurniSummaries { get; set; } + public virtual DbSet DdbTurniSummaryNews { get; set; } + public virtual DbSet Ecps { get; set; } + public virtual DbSet Ecps1 { get; set; } + public virtual DbSet Kits { get; set; } + public virtual DbSet Odls { get; set; } + public virtual DbSet Odls1 { get; set; } + public virtual DbSet Rcs { get; set; } + public virtual DbSet Rs { get; set; } + public virtual DbSet Rs1 { get; set; } + public virtual DbSet Tallies { get; set; } + public virtual DbSet TcrDays { get; set; } + public virtual DbSet TcrDayTests { get; set; } + public virtual DbSet Tcrs { get; set; } + public virtual DbSet Tcrs1 { get; set; } + public virtual DbSet TcStats { get; set; } + public virtual DbSet TestJasons { get; set; } + public virtual DbSet
    Uls { get; set; } +#endif + +#if false + public virtual DbSet VDdbLightOlds { get; set; } + public virtual DbSet VDdbLights { get; set; } + public virtual DbSet VDdbs { get; set; } + public virtual DbSet VDdbTurnis { get; set; } + public virtual DbSet VEcpExtendeds { get; set; } + public virtual DbSet VEcps { get; set; } + public virtual DbSet VEcps1 { get; set; } + public virtual DbSet VetoTcs { get; set; } + public virtual DbSet VKits { get; set; } + public virtual DbSet VOdls { get; set; } + public virtual DbSet VOdls1 { get; set; } + public virtual DbSet VPodlNonChiusis { get; set; } +#endif + + #region Public Properties + + public virtual DbSet DbSetControlli { get; set; } + public virtual DbSet DbSetScarti { get; set; } +#if false + public virtual DbSet VRs1 { get; set; } + public virtual DbSet VTcrDays { get; set; } + public virtual DbSet VTcrs { get; set; } + public virtual DbSet VTcrs1 { get; set; } + public virtual DbSet VTcStats { get; set; } +#endif + public virtual DbSet DbSetUserLog { get; set; } + + #endregion Public Properties + + #region Private Methods + + partial void OnModelCreatingPartial(ModelBuilder modelBuilder); + + #endregion Private Methods + + #region Protected Methods + + protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) + { + if (!optionsBuilder.IsConfigured) + { + string connString = _configuration.GetConnectionString("Mp.Stats"); + + optionsBuilder.UseSqlServer(_configuration.GetConnectionString("Mp.Stats")); + +#warning To protect potentially sensitive information in your connection string, you should move it out of source code. You can avoid scaffolding the connection string by using the Name= syntax to read it from configuration - see https://go.microsoft.com/fwlink/?linkid=2131148. For more guidance on storing connection strings, see http://go.microsoft.com/fwlink/?LinkId=723263. + //optionsBuilder.UseSqlServer("Server=SQL2016DEV;Database=MoonPro_STATS;Trusted_Connection=True;"); + } + } + + protected override void OnModelCreating(ModelBuilder modelBuilder) + { + modelBuilder.HasAnnotation("Relational:Collation", "SQL_Latin1_General_CP1_CI_AS"); + +#if false + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.Azione); + + entity.ToTable("AAUL"); + + entity.Property(e => e.Azione) + .HasMaxLength(50) + .HasDefaultValueSql("('ND')") + .HasComment("Azione dell'operatore"); + + entity.Property(e => e.Descrizione) + .IsRequired() + .HasMaxLength(50) + .HasDefaultValueSql("('')"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.Giorno) + .HasName("PK_Calendario"); + + entity.ToTable("CAL"); + + entity.Property(e => e.Giorno) + .HasColumnType("datetime") + .HasColumnName("giorno"); + + entity.Property(e => e.DoDdb) + .IsRequired() + .HasColumnName("doDDB") + .HasDefaultValueSql("((1))") + .HasComment("Indica che è necessario ricalcolare statistiche derivate da DDB (DiarioDiBordo)"); + + entity.Property(e => e.DoEcp) + .IsRequired() + .HasColumnName("doECP") + .HasDefaultValueSql("((1))") + .HasComment("Indica che è necessario ricalcolare statistiche derivate da DPO (DatiProduzione Operatore) - conferme manuali operatore"); + + entity.Property(e => e.DoOdl) + .IsRequired() + .HasColumnName("doODL") + .HasDefaultValueSql("((1))") + .HasComment("Indica che è necessario ricalcolare statistiche ODL"); + + entity.Property(e => e.DoRs) + .IsRequired() + .HasColumnName("doRS") + .HasDefaultValueSql("((1))") + .HasComment("Indica che è necessario ricalcolare statistiche derivate da RS (Registro Scarti)"); + + entity.Property(e => e.DoTcr) + .IsRequired() + .HasColumnName("doTCR") + .HasDefaultValueSql("((1))") + .HasComment("Indica che è necessario ricalcolare statistiche derivate da rilevazione TCR (TempiCicloRilevati)"); + + entity.Property(e => e.DoUl) + .IsRequired() + .HasColumnName("doUL") + .HasDefaultValueSql("((1))") + .HasComment("Indica che è necessario ricalcolare statistiche derivate da DSO (Dichiarazioni Scarti Operatore)"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.Chiave); + + entity.ToTable("Config"); + + entity.Property(e => e.Chiave) + .HasMaxLength(50) + .HasColumnName("chiave"); + + entity.Property(e => e.Note).HasColumnName("note"); + + entity.Property(e => e.Valore).HasColumnName("valore"); + + entity.Property(e => e.ValoreStd) + .HasColumnName("valoreStd") + .HasComment("Valore di default/riferimento per la variabile"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => new { e.DataOraRif, e.IdxMacchina, e.IdxStato }) + .HasName("PK_DDB_1"); + + entity.ToTable("DDB"); + + entity.Property(e => e.DataOraRif).HasColumnType("datetime"); + + entity.Property(e => e.IdxMacchina).HasMaxLength(50); + + entity.Property(e => e.DurataMinuti).HasColumnType("decimal(18, 8)"); + }); + + modelBuilder.Entity(entity => + { + entity.HasNoKey(); + + entity.ToTable("DDB", "raw"); + + entity.HasIndex(e => e.InizioStato, "ci_DDB_Data") + .IsClustered(); + + entity.HasIndex(e => e.CodArticolo, "i_DDB_CodArt"); + + entity.HasIndex(e => e.IdxMacchina, "i_DDB_IdxMacc"); + + entity.HasIndex(e => e.IdxStato, "i_DDB_IdxStato"); + + entity.HasIndex(e => e.MatrOpr, "i_DDB_MatrOpr"); + + entity.Property(e => e.ClasseTempo).HasMaxLength(50); + + entity.Property(e => e.CodArticolo).HasMaxLength(50); + + entity.Property(e => e.Descrizione).HasMaxLength(50); + + entity.Property(e => e.FineStato).HasColumnType("datetime"); + + entity.Property(e => e.IdxMacchina) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.InizioStato).HasColumnType("datetime"); + + entity.Property(e => e.Pallet) + .HasMaxLength(20) + .HasColumnName("pallet"); + + entity.Property(e => e.Value).HasMaxLength(50); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => new { e.DataRif, e.IdxMacchina, e.Turno, e.IdxStato, e.CodArticolo, e.InizioPeriodo }); + + entity.ToTable("DDB_Turni"); + + entity.Property(e => e.DataRif).HasColumnType("datetime"); + + entity.Property(e => e.IdxMacchina).HasMaxLength(50); + + entity.Property(e => e.Turno).HasMaxLength(5); + + entity.Property(e => e.CodArticolo).HasMaxLength(50); + + entity.Property(e => e.InizioPeriodo).HasColumnType("datetime"); + + entity.Property(e => e.ClasseTempo).HasMaxLength(50); + + entity.Property(e => e.DataTurnoFine).HasColumnType("datetime"); + + entity.Property(e => e.DataTurnoInizio).HasColumnType("datetime"); + + entity.Property(e => e.Descrizione).HasMaxLength(50); + + entity.Property(e => e.FinePeriodo).HasColumnType("datetime"); + + entity.Property(e => e.FineStato).HasColumnType("datetime"); + + entity.Property(e => e.InizioStato).HasColumnType("datetime"); + + entity.Property(e => e.Pallet) + .HasMaxLength(20) + .HasColumnName("pallet"); + + entity.Property(e => e.TempoCicloBase).HasColumnType("decimal(18, 8)"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => new { e.DataRif, e.IdxMacchina, e.Turno, e.IdxStato, e.CodArticolo, e.InizioPeriodo }); + + entity.ToTable("DDB_TurniNew"); + + entity.Property(e => e.DataRif).HasColumnType("datetime"); + + entity.Property(e => e.IdxMacchina).HasMaxLength(50); + + entity.Property(e => e.Turno).HasMaxLength(5); + + entity.Property(e => e.CodArticolo).HasMaxLength(50); + + entity.Property(e => e.InizioPeriodo).HasColumnType("datetime"); + + entity.Property(e => e.ClasseTempo).HasMaxLength(50); + + entity.Property(e => e.DataTurnoFine).HasColumnType("datetime"); + + entity.Property(e => e.DataTurnoInizio).HasColumnType("datetime"); + + entity.Property(e => e.Descrizione).HasMaxLength(50); + + entity.Property(e => e.FinePeriodo).HasColumnType("datetime"); + + entity.Property(e => e.FineStato).HasColumnType("datetime"); + + entity.Property(e => e.InizioStato).HasColumnType("datetime"); + + entity.Property(e => e.Pallet) + .HasMaxLength(20) + .HasColumnName("pallet"); + + entity.Property(e => e.TempoCicloBase).HasColumnType("decimal(18, 8)"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => new { e.IdxMacchina, e.DataRif, e.Turno, e.CodArticolo, e.IdxStato, e.TempoCicloBase, e.PzPalletProd }); + + entity.ToTable("DDB_TurniSummary"); + + entity.Property(e => e.IdxMacchina).HasMaxLength(50); + + entity.Property(e => e.DataRif).HasColumnType("datetime"); + + entity.Property(e => e.Turno).HasMaxLength(5); + + entity.Property(e => e.CodArticolo).HasMaxLength(50); + + entity.Property(e => e.TempoCicloBase).HasColumnType("decimal(18, 8)"); + + entity.Property(e => e.Durata).HasColumnType("numeric(27, 7)"); + + entity.Property(e => e.Inizio).HasColumnType("datetime"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => new { e.IdxMacchina, e.DataRif, e.Turno, e.CodArticolo, e.IdxStato, e.TempoCicloBase, e.PzPalletProd }); + + entity.ToTable("DDB_TurniSummaryNew"); + + entity.Property(e => e.IdxMacchina).HasMaxLength(50); + + entity.Property(e => e.DataRif).HasColumnType("datetime"); + + entity.Property(e => e.Turno).HasMaxLength(5); + + entity.Property(e => e.CodArticolo).HasMaxLength(50); + + entity.Property(e => e.TempoCicloBase).HasColumnType("decimal(18, 8)"); + + entity.Property(e => e.Durata).HasColumnType("numeric(27, 7)"); + + entity.Property(e => e.Inizio).HasColumnType("datetime"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.IdxEcp); + + entity.ToTable("ECP"); + + entity.Property(e => e.IdxEcp).HasColumnName("idxECP"); + + entity.Property(e => e.CodArticolo) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.Cognome) + .IsRequired() + .HasMaxLength(50) + .HasDefaultValueSql("('')"); + + entity.Property(e => e.DataOraConf).HasColumnType("datetime"); + + entity.Property(e => e.IdxMacchina) + .IsRequired() + .HasMaxLength(50) + .HasColumnName("idxMacchina"); + + entity.Property(e => e.IdxOdl).HasColumnName("IdxODL"); + + entity.Property(e => e.KeyRichiesta) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.Nome) + .IsRequired() + .HasMaxLength(50) + .HasDefaultValueSql("('')"); + + entity.Property(e => e.PezziConf).HasColumnName("pezziConf"); + + entity.Property(e => e.PezziDaRilav).HasColumnName("pezziDaRilav"); + + entity.Property(e => e.PezziScar).HasColumnName("pezziScar"); + }); + + modelBuilder.Entity(entity => + { + entity.HasNoKey(); + + entity.ToTable("ECP", "raw"); + + entity.HasIndex(e => e.DataOraConf, "ci_ECP_Data") + .IsClustered(); + + entity.HasIndex(e => e.IdxMacchina, "i_ECP_IdxMacc"); + + entity.HasIndex(e => e.MatrApp, "i_ECP_MatrApp"); + + entity.HasIndex(e => e.IdxMacchina, "i_ODL_IdxMacc"); + + entity.Property(e => e.CommessaEsterna) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.DataFrom) + .HasColumnType("datetime") + .HasColumnName("dataFrom"); + + entity.Property(e => e.DataOraConf).HasColumnType("datetime"); + + entity.Property(e => e.DataTo) + .HasColumnType("datetime") + .HasColumnName("dataTo"); + + entity.Property(e => e.IdxMacchina) + .IsRequired() + .HasMaxLength(50) + .HasColumnName("idxMacchina"); + + entity.Property(e => e.PezziConf).HasColumnName("pezziConf"); + + entity.Property(e => e.PezziDaRilav).HasColumnName("pezziDaRilav"); + + entity.Property(e => e.PezziScar).HasColumnName("pezziScar"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.KeyKit); + + entity.ToTable("KIT", "raw"); + + entity.Property(e => e.KeyKit).HasMaxLength(50); + + entity.Property(e => e.CodArtParent).IsRequired(); + + entity.Property(e => e.KeyExtOrd).IsRequired(); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.IdxOdl) + .HasName("PK_ODL_1"); + + entity.ToTable("ODL"); + + entity.Property(e => e.IdxOdl) + .ValueGeneratedNever() + .HasColumnName("IdxODL"); + + entity.Property(e => e.CodArticolo) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.CodArticoloParent) + .IsRequired() + .HasDefaultValueSql("('')"); + + entity.Property(e => e.DataFine).HasColumnType("datetime"); + + entity.Property(e => e.DataInizio).HasColumnType("datetime"); + + entity.Property(e => e.DueDate).HasColumnType("datetime"); + + entity.Property(e => e.IdxMacchina).HasMaxLength(50); + + entity.Property(e => e.KeyRichiesta) + .IsRequired() + .HasMaxLength(50) + .HasComment("Chiave: ordine esterno o KIT"); + + entity.Property(e => e.KeyRichiestaParent) + .IsRequired() + .HasDefaultValueSql("('')") + .HasComment("Chiave: ordine esterno o KIT"); + + entity.Property(e => e.PzPallet).HasDefaultValueSql("((1))"); + + entity.Property(e => e.Tcassegnato) + .HasColumnType("decimal(18, 8)") + .HasColumnName("TCAssegnato"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.IdxOdl) + .IsClustered(false); + + entity.ToTable("ODL", "raw"); + + entity.HasIndex(e => e.IdxOdl, "ci_ODL_Data") + .IsClustered(); + + entity.HasIndex(e => e.IdxMacchina, "i_ODL_IdxMacc"); + + entity.HasIndex(e => e.KeyRichiesta, "i_ODL_KeyRic"); + + entity.Property(e => e.IdxOdl) + .ValueGeneratedNever() + .HasColumnName("IdxODL"); + + entity.Property(e => e.CodArticolo) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.CommessaAs400) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.DataAppr).HasColumnType("datetime"); + + entity.Property(e => e.DataFine).HasColumnType("datetime"); + + entity.Property(e => e.DataInizio).HasColumnType("datetime"); + + entity.Property(e => e.DueDate).HasColumnType("datetime"); + + entity.Property(e => e.IdxMacchina).HasMaxLength(50); + + entity.Property(e => e.KeyRichiesta) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.Note).HasMaxLength(2500); + + entity.Property(e => e.Provvisorio).HasColumnName("provvisorio"); + + entity.Property(e => e.Tcassegnato) + .HasColumnType("decimal(18, 8)") + .HasColumnName("TCAssegnato"); + + entity.Property(e => e.TcrichAttr) + .HasColumnType("decimal(18, 8)") + .HasColumnName("TCRichAttr"); + + entity.Property(e => e.UserAppr).HasMaxLength(50); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => new { e.DataOraRif, e.IdxMacchina, e.Causale, e.IdxOdl }); + + entity.ToTable("RS"); + + entity.Property(e => e.DataOraRif).HasColumnType("datetime"); + + entity.Property(e => e.IdxMacchina).HasMaxLength(50); + + entity.Property(e => e.Causale).HasMaxLength(50); + + entity.Property(e => e.IdxOdl).HasColumnName("IdxODL"); + + entity.Property(e => e.CodArticolo) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.Cognome) + .IsRequired() + .HasMaxLength(50) + .HasDefaultValueSql("('')"); + + entity.Property(e => e.Descrizione) + .IsRequired() + .HasMaxLength(250); + + entity.Property(e => e.KeyRichiesta) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.Nome) + .IsRequired() + .HasMaxLength(50) + .HasDefaultValueSql("('')"); + + entity.Property(e => e.Note) + .IsRequired() + .HasMaxLength(250); + }); + + modelBuilder.Entity(entity => + { + entity.HasNoKey(); + + entity.ToTable("RS", "raw"); + + entity.HasIndex(e => e.DataOra, "ci_RS_Data") + .IsClustered(); + + entity.HasIndex(e => e.Causale, "i_RS_Causale"); + + entity.HasIndex(e => e.CodArticolo, "i_RS_CodArt"); + + entity.HasIndex(e => e.IdxMacchina, "i_RS_IdxMacc"); + + entity.HasIndex(e => e.MatrOpr, "i_RS_MatrOpr"); + + entity.Property(e => e.Causale) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.CodArticolo) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.DataOra).HasColumnType("datetime"); + + entity.Property(e => e.DataOraProdRec).HasColumnType("datetime"); + + entity.Property(e => e.Descrizione) + .IsRequired() + .HasMaxLength(250); + + entity.Property(e => e.IdxMacchina) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.IdxOdl).HasColumnName("IdxODL"); + + entity.Property(e => e.KeyRichiesta) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.Note) + .IsRequired() + .HasMaxLength(250); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.IdxControllo) + .IsClustered(false); + + entity.ToTable("RC", "raw"); + + entity.HasIndex(e => e.DataOra, "ci_RC_Data") + .IsClustered(); + + entity.HasIndex(e => e.CodArticolo, "i_RC_CodArt"); + + entity.HasIndex(e => e.EsitoOk, "i_RC_EsitoOk"); + + entity.HasIndex(e => e.IdxMacchina, "i_RC_IdxMacc"); + + entity.HasIndex(e => e.MatrOpr, "i_RC_MatrOpr"); + + entity.Property(e => e.IdxControllo).ValueGeneratedNever(); + + entity.Property(e => e.CodArticolo) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.DataOra).HasColumnType("datetime"); + + entity.Property(e => e.EsitoOk).HasColumnName("EsitoOK"); + + entity.Property(e => e.IdxMacchina) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.IdxOdl).HasColumnName("IdxODL"); + + entity.Property(e => e.Note) + .IsRequired() + .HasMaxLength(250); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.N) + .HasName("PK_Tally_N"); + + entity.ToTable("Tally"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => new { e.CodArticolo, e.CodGruppo, e.IdxMacchina }); + + entity.ToTable("TC_Stat"); + + entity.Property(e => e.CodArticolo).HasMaxLength(50); + + entity.Property(e => e.CodGruppo).HasMaxLength(50); + + entity.Property(e => e.IdxMacchina).HasMaxLength(50); + + entity.Property(e => e.TcStat1) + .HasColumnType("decimal(18, 8)") + .HasColumnName("TC_Stat"); + + entity.Property(e => e.TcType).HasColumnName("TC_Type"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => new { e.IdxMacchina, e.CodArticolo, e.DataOraRif }) + .IsClustered(false); + + entity.ToTable("TCR"); + + entity.Property(e => e.IdxMacchina).HasMaxLength(50); + + entity.Property(e => e.CodArticolo).HasMaxLength(50); + + entity.Property(e => e.DataOraRif).HasColumnType("datetime"); + + entity.Property(e => e.Tc50p) + .HasColumnType("decimal(18, 8)") + .HasColumnName("TC50p") + .HasComment("Valore percentile 50"); + + entity.Property(e => e.Tcmax) + .HasColumnType("decimal(18, 8)") + .HasColumnName("TCMax") + .HasComment("Valore MASSIMO"); + + entity.Property(e => e.Tcmedio) + .HasColumnType("decimal(18, 8)") + .HasColumnName("TCMedio") + .HasComment("Valore di MEDIA arimetica"); + + entity.Property(e => e.Tcmin) + .HasColumnType("decimal(18, 8)") + .HasColumnName("TCMin") + .HasComment("Valore minimo"); + }); + + modelBuilder.Entity(entity => + { + entity.HasNoKey(); + + entity.ToTable("TCR", "raw"); + + entity.HasIndex(e => e.DataOraRif, "ci_TCR_Data") + .IsClustered(); + + entity.HasIndex(e => e.CodArticolo, "i_TCR_CodArt"); + + entity.HasIndex(e => e.IdxMacchina, "i_TCR_IdxMacc"); + + entity.HasIndex(e => e.KeyRichiesta, "i_TCR_KeyRich"); + + entity.Property(e => e.CodArticolo) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.DataOraRif).HasColumnType("datetime"); + + entity.Property(e => e.IdxMacchina) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.IdxOdl).HasColumnName("IdxODL"); + + entity.Property(e => e.KeyRichiesta) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.Tcassegnato) + .HasColumnType("decimal(18, 8)") + .HasColumnName("TCAssegnato"); + + entity.Property(e => e.Tcmedio) + .HasColumnType("decimal(18, 8)") + .HasColumnName("TCMedio"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => new { e.IdxMacchina, e.CodArticolo, e.DataOraRif }) + .HasName("PK_TCRDay") + .IsClustered(false); + + entity.ToTable("TCR_Day"); + + entity.Property(e => e.IdxMacchina).HasMaxLength(50); + + entity.Property(e => e.CodArticolo).HasMaxLength(50); + + entity.Property(e => e.DataOraRif).HasColumnType("date"); + + entity.Property(e => e.Tc50p) + .HasColumnType("decimal(18, 8)") + .HasColumnName("TC50p") + .HasComment("Valore percentile 50"); + + entity.Property(e => e.Tcmax) + .HasColumnType("decimal(18, 8)") + .HasColumnName("TCMax") + .HasComment("Valore MASSIMO"); + + entity.Property(e => e.Tcmedio) + .HasColumnType("decimal(18, 8)") + .HasColumnName("TCMedio") + .HasComment("Valore di MEDIA arimetica"); + + entity.Property(e => e.Tcmin) + .HasColumnType("decimal(18, 8)") + .HasColumnName("TCMin") + .HasComment("Valore minimo"); + }); + + modelBuilder.Entity(entity => + { + entity.HasNoKey(); + + entity.ToTable("TCR_DayTest"); + + entity.Property(e => e.CodArticolo) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.DataOraRif).HasColumnType("date"); + + entity.Property(e => e.IdxMacchina) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.Tc50p) + .HasColumnType("decimal(18, 8)") + .HasColumnName("TC50p"); + + entity.Property(e => e.Tcmax) + .HasColumnType("decimal(18, 8)") + .HasColumnName("TCMax"); + + entity.Property(e => e.Tcmedio) + .HasColumnType("decimal(18, 8)") + .HasColumnName("TCMedio"); + + entity.Property(e => e.Tcmin) + .HasColumnType("decimal(18, 8)") + .HasColumnName("TCMin"); + }); + + modelBuilder.Entity(entity => + { + entity.HasNoKey(); + + entity.ToTable("TestJason"); + + entity.Property(e => e.Data).HasColumnType("date"); + }); + + modelBuilder.Entity
      (entity => + { + entity.HasKey(e => e.IdxLog) + .HasName("PK_UserLog"); + + entity.ToTable("UL"); + + entity.HasIndex(e => e.DataOraRif, "i_UL_DataOra"); + + entity.Property(e => e.Azione) + .IsRequired() + .HasMaxLength(50) + .HasDefaultValueSql("('ND')") + .HasComment("Azione dell'operatore"); + + entity.Property(e => e.CodArticolo) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.Cognome) + .IsRequired() + .HasMaxLength(50) + .HasDefaultValueSql("('')"); + + entity.Property(e => e.DataOraRif).HasColumnType("datetime"); + + entity.Property(e => e.IdxMacchina) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.Nome) + .IsRequired() + .HasMaxLength(50) + .HasDefaultValueSql("('')"); + + entity.Property(e => e.Qta).HasColumnType("decimal(18, 8)"); + + entity.Property(e => e.Valore) + .IsRequired() + .HasMaxLength(250) + .HasDefaultValueSql("('')"); + }); + + modelBuilder.Entity(entity => + { + entity.HasNoKey(); + + entity.ToView("vDDB"); + + entity.Property(e => e.ClasseTempo).HasMaxLength(50); + + entity.Property(e => e.CodArticolo).HasMaxLength(50); + + entity.Property(e => e.Descrizione).HasMaxLength(50); + + entity.Property(e => e.FineStato).HasColumnType("datetime"); + + entity.Property(e => e.IdxMacchina) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.InizioStato).HasColumnType("datetime"); + + entity.Property(e => e.Pallet) + .HasMaxLength(20) + .HasColumnName("pallet"); + + entity.Property(e => e.Value).HasMaxLength(50); + }); + + modelBuilder.Entity(entity => + { + entity.HasNoKey(); + + entity.ToView("v_DDB_Light", "export"); + + entity.Property(e => e.CodArticolo).HasMaxLength(50); + + entity.Property(e => e.CodMacchina).HasMaxLength(50); + + entity.Property(e => e.DescMacchina).HasMaxLength(50); + + entity.Property(e => e.InizioStato).HasColumnType("datetime"); + + entity.Property(e => e.Operatore) + .IsRequired() + .HasMaxLength(101); + + entity.Property(e => e.Stato).HasMaxLength(50); + }); + + modelBuilder.Entity(entity => + { + entity.HasNoKey(); + + entity.ToView("vDDB_Light_OLD"); + + entity.Property(e => e.CodArticolo).HasMaxLength(50); + + entity.Property(e => e.CodMacchina).HasMaxLength(50); + + entity.Property(e => e.DescMacchina).HasMaxLength(50); + + entity.Property(e => e.InizioStato).HasColumnType("datetime"); + + entity.Property(e => e.Operatore) + .IsRequired() + .HasMaxLength(101); + + entity.Property(e => e.Stato).HasMaxLength(50); + }); + + modelBuilder.Entity(entity => + { + entity.HasNoKey(); + + entity.ToView("v_DDB_Turni", "export"); + + entity.Property(e => e.ClasseTempo).HasMaxLength(50); + + entity.Property(e => e.CodArticolo) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.CodMacchina).HasMaxLength(50); + + entity.Property(e => e.DataRif).HasColumnType("datetime"); + + entity.Property(e => e.DescClasseTempo).HasMaxLength(50); + + entity.Property(e => e.DescMacchina).HasMaxLength(50); + + entity.Property(e => e.Durata).HasColumnType("numeric(38, 7)"); + + entity.Property(e => e.IdxMacchina) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.SemColore) + .IsRequired() + .HasMaxLength(6) + .IsUnicode(false); + + entity.Property(e => e.Semaforo).HasMaxLength(50); + + entity.Property(e => e.TempoCicloBase).HasColumnType("decimal(18, 8)"); + + entity.Property(e => e.Turno) + .IsRequired() + .HasMaxLength(5); + }); + + modelBuilder.Entity(entity => + { + entity.HasNoKey(); + + entity.ToView("vECP"); + + entity.Property(e => e.CommessaEsterna) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.DataFrom) + .HasColumnType("datetime") + .HasColumnName("dataFrom"); + + entity.Property(e => e.DataOraConf).HasColumnType("datetime"); + + entity.Property(e => e.DataTo) + .HasColumnType("datetime") + .HasColumnName("dataTo"); + + entity.Property(e => e.IdxMacchina) + .IsRequired() + .HasMaxLength(50) + .HasColumnName("idxMacchina"); + + entity.Property(e => e.PezziConf).HasColumnName("pezziConf"); + + entity.Property(e => e.PezziDaRilav).HasColumnName("pezziDaRilav"); + + entity.Property(e => e.PezziScar).HasColumnName("pezziScar"); + }); + + modelBuilder.Entity(entity => + { + entity.HasNoKey(); + + entity.ToView("v_ECP", "export"); + + entity.Property(e => e.CodArticolo) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.CodMacchina).HasMaxLength(50); + + entity.Property(e => e.Cognome) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.DataOraConf).HasColumnType("datetime"); + + entity.Property(e => e.DescMacchina).HasMaxLength(50); + + entity.Property(e => e.IdxEcp).HasColumnName("idxECP"); + + entity.Property(e => e.IdxMacchina) + .IsRequired() + .HasMaxLength(50) + .HasColumnName("idxMacchina"); + + entity.Property(e => e.IdxOdl).HasColumnName("IdxODL"); + + entity.Property(e => e.KeyRichiesta) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.Nome) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.PezziConf).HasColumnName("pezziConf"); + + entity.Property(e => e.PezziDaRilav).HasColumnName("pezziDaRilav"); + + entity.Property(e => e.PezziScar).HasColumnName("pezziScar"); + }); + + modelBuilder.Entity(entity => + { + entity.HasNoKey(); + + entity.ToView("v_ECP_Extended", "export"); + + entity.Property(e => e.CodArticolo) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.CodMacchina).HasMaxLength(50); + + entity.Property(e => e.Cognome) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.DataOraConf).HasColumnType("datetime"); + + entity.Property(e => e.DescMacchina).HasMaxLength(50); + + entity.Property(e => e.DueDate).HasColumnType("datetime"); + + entity.Property(e => e.IdxEcp).HasColumnName("idxECP"); + + entity.Property(e => e.IdxMacchina) + .IsRequired() + .HasMaxLength(50) + .HasColumnName("idxMacchina"); + + entity.Property(e => e.IdxOdl).HasColumnName("IdxODL"); + + entity.Property(e => e.KeyRichiesta) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.Nome) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.PezziConf).HasColumnName("pezziConf"); + + entity.Property(e => e.PezziDaRilav).HasColumnName("pezziDaRilav"); + + entity.Property(e => e.PezziScar).HasColumnName("pezziScar"); + + entity.Property(e => e.Tcassegnato) + .HasColumnType("decimal(18, 8)") + .HasColumnName("TCAssegnato"); + }); + + modelBuilder.Entity(entity => + { + entity.HasNoKey(); + + entity.ToView("vKIT"); + + entity.Property(e => e.KeyKit) + .IsRequired() + .HasMaxLength(50); + }); + + modelBuilder.Entity(entity => + { + entity.HasNoKey(); + + entity.ToView("vODL"); + + entity.Property(e => e.CodArticolo) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.CommessaAs400) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.DataAppr).HasColumnType("datetime"); + + entity.Property(e => e.DataFine).HasColumnType("datetime"); + + entity.Property(e => e.DataInizio).HasColumnType("datetime"); + + entity.Property(e => e.DueDate).HasColumnType("datetime"); + + entity.Property(e => e.IdxMacchina).HasMaxLength(50); + + entity.Property(e => e.IdxOdl).HasColumnName("IdxODL"); + + entity.Property(e => e.KeyRichiesta) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.Note).HasMaxLength(2500); + + entity.Property(e => e.Provvisorio).HasColumnName("provvisorio"); + + entity.Property(e => e.Tcassegnato) + .HasColumnType("decimal(18, 8)") + .HasColumnName("TCAssegnato"); + + entity.Property(e => e.TcrichAttr) + .HasColumnType("decimal(18, 8)") + .HasColumnName("TCRichAttr"); + + entity.Property(e => e.UserAppr).HasMaxLength(50); + }); + + modelBuilder.Entity(entity => + { + entity.HasNoKey(); + + entity.ToView("v_ODL", "export"); + + entity.Property(e => e.CodArticolo) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.CodArticoloParent).IsRequired(); + + entity.Property(e => e.CodMacchina).HasMaxLength(50); + + entity.Property(e => e.DataFine).HasColumnType("datetime"); + + entity.Property(e => e.DataInizio).HasColumnType("datetime"); + + entity.Property(e => e.DescMacchina).HasMaxLength(50); + + entity.Property(e => e.DueDate).HasColumnType("datetime"); + + entity.Property(e => e.IdxMacchina).HasMaxLength(50); + + entity.Property(e => e.IdxOdl).HasColumnName("IdxODL"); + + entity.Property(e => e.KeyRichiesta) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.KeyRichiestaParent).IsRequired(); + + entity.Property(e => e.Tcassegnato) + .HasColumnType("decimal(18, 8)") + .HasColumnName("TCAssegnato"); + }); + + modelBuilder.Entity(entity => + { + entity.HasNoKey(); + + entity.ToView("v_PODL_NonChiusi", "export"); + + entity.Property(e => e.CodArticolo) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.CodGruppo) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.CodMacchina) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.DataInizio).HasColumnType("datetime"); + + entity.Property(e => e.DescArticolo).HasMaxLength(301); + + entity.Property(e => e.DueDate).HasColumnType("datetime"); + + entity.Property(e => e.IdxMacchina) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.IdxOdl).HasColumnName("IdxODL"); + + entity.Property(e => e.IdxPromessa).HasColumnName("idxPromessa"); + + entity.Property(e => e.KeyBcode) + .IsRequired() + .HasMaxLength(50) + .HasColumnName("KeyBCode"); + + entity.Property(e => e.KeyRichiesta) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.Nome).HasMaxLength(50); + + entity.Property(e => e.Tcassegnato) + .HasColumnType("decimal(18, 8)") + .HasColumnName("TCAssegnato"); + + entity.Property(e => e.TotMinProg).HasColumnType("decimal(29, 8)"); + + entity.Property(e => e.TotOreProg).HasColumnType("decimal(32, 11)"); + }); +#endif + + modelBuilder.Entity(entity => + { + entity.HasNoKey(); + + entity.ToView("vRS"); + + entity.Property(e => e.Causale) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.CodArticolo) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.DataOra).HasColumnType("datetime"); + + entity.Property(e => e.DataOraProdRec).HasColumnType("datetime"); + + entity.Property(e => e.Descrizione) + .IsRequired() + .HasMaxLength(250); + + entity.Property(e => e.IdxMacchina) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.IdxOdl).HasColumnName("IdxODL"); + + entity.Property(e => e.KeyRichiesta) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.Note) + .IsRequired() + .HasMaxLength(250); + }); +#if false + + modelBuilder.Entity(entity => + { + entity.HasNoKey(); + + entity.ToView("v_RS", "export"); + + entity.Property(e => e.Causale) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.CodArticolo) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.Cognome) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.DataOraRif).HasColumnType("datetime"); + + entity.Property(e => e.Descrizione) + .IsRequired() + .HasMaxLength(250); + + entity.Property(e => e.IdxMacchina) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.IdxOdl).HasColumnName("IdxODL"); + + entity.Property(e => e.KeyRichiesta) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.Nome) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.Note) + .IsRequired() + .HasMaxLength(250); + }); +#endif + + modelBuilder.Entity(entity => + { + entity.HasNoKey(); + + entity.ToView("vRC"); + + entity.Property(e => e.CodArticolo) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.DataOra).HasColumnType("datetime"); + + entity.Property(e => e.EsitoOk).HasColumnName("EsitoOK"); + + entity.Property(e => e.IdxControllo).ValueGeneratedOnAdd(); + + entity.Property(e => e.IdxMacchina) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.IdxOdl).HasColumnName("IdxODL"); + + entity.Property(e => e.Note) + .IsRequired() + .HasMaxLength(250); + }); + +#if false + modelBuilder.Entity(entity => + { + entity.HasNoKey(); + + entity.ToView("v_TC_Stat", "export"); + + entity.Property(e => e.CodArticolo) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.CodGruppo) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.CodMacchina).HasMaxLength(50); + + entity.Property(e => e.DescMacchina).HasMaxLength(50); + + entity.Property(e => e.IdxMacchina) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.TcStat) + .HasColumnType("decimal(18, 8)") + .HasColumnName("TC_Stat"); + + entity.Property(e => e.TcType).HasColumnName("TC_Type"); + }); + + modelBuilder.Entity(entity => + { + entity.HasNoKey(); + + entity.ToView("vTCR"); + + entity.Property(e => e.CodArticolo) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.DataOraRif).HasColumnType("datetime"); + + entity.Property(e => e.IdxMacchina) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.IdxOdl).HasColumnName("IdxODL"); + + entity.Property(e => e.KeyRichiesta) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.Tcassegnato) + .HasColumnType("decimal(18, 8)") + .HasColumnName("TCAssegnato"); + + entity.Property(e => e.Tcmedio) + .HasColumnType("decimal(18, 8)") + .HasColumnName("TCMedio"); + }); + + modelBuilder.Entity(entity => + { + entity.HasNoKey(); + + entity.ToView("v_TCR", "export"); + + entity.Property(e => e.CodArticolo) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.CodMacchina).HasMaxLength(50); + + entity.Property(e => e.DataOraRif).HasColumnType("datetime"); + + entity.Property(e => e.DescMacchina).HasMaxLength(50); + + entity.Property(e => e.IdxMacchina) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.Tc50p) + .HasColumnType("decimal(18, 8)") + .HasColumnName("TC50p"); + + entity.Property(e => e.Tcmax) + .HasColumnType("decimal(18, 8)") + .HasColumnName("TCMax"); + + entity.Property(e => e.Tcmedio) + .HasColumnType("decimal(18, 8)") + .HasColumnName("TCMedio"); + + entity.Property(e => e.Tcmin) + .HasColumnType("decimal(18, 8)") + .HasColumnName("TCMin"); + }); + + modelBuilder.Entity(entity => + { + entity.HasNoKey(); + + entity.ToView("v_TCR_Day", "export"); + + entity.Property(e => e.CodArticolo) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.CodMacchina).HasMaxLength(50); + + entity.Property(e => e.DataOraRif).HasColumnType("datetime"); + + entity.Property(e => e.DescMacchina).HasMaxLength(50); + + entity.Property(e => e.IdxMacchina) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.Tc50p) + .HasColumnType("decimal(18, 8)") + .HasColumnName("TC50p"); + + entity.Property(e => e.Tcmax) + .HasColumnType("decimal(18, 8)") + .HasColumnName("TCMax"); + + entity.Property(e => e.Tcmedio) + .HasColumnType("decimal(18, 8)") + .HasColumnName("TCMedio"); + + entity.Property(e => e.Tcmin) + .HasColumnType("decimal(18, 8)") + .HasColumnName("TCMin"); + }); +#endif + + modelBuilder.Entity(entity => + { + entity.HasNoKey(); + + entity.ToView("v_UL", "export"); + + entity.Property(e => e.Azione) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.CodArticolo) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.Cognome) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.DataOraRif).HasColumnType("datetime"); + + entity.Property(e => e.IdxLog).ValueGeneratedOnAdd(); + + entity.Property(e => e.IdxMacchina) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.Nome) + .IsRequired() + .HasMaxLength(50); + + entity.Property(e => e.Qta).HasColumnType("decimal(18, 8)"); + + entity.Property(e => e.Valore) + .IsRequired() + .HasMaxLength(250); + }); +#if false + + modelBuilder.Entity(entity => + { + entity.HasKey(e => new { e.IdxMacchina, e.CodArticolo }); + + entity.ToTable("VetoTC"); + + entity.Property(e => e.IdxMacchina).HasMaxLength(50); + + entity.Property(e => e.CodArticolo).HasMaxLength(50); + + entity.Property(e => e.SogliaTc) + .HasColumnType("decimal(18, 8)") + .HasColumnName("SogliaTC"); + + entity.Property(e => e.VetoTc1) + .IsRequired() + .HasColumnName("VetoTC") + .HasDefaultValueSql("((1))"); + }); +#endif + + OnModelCreatingPartial(modelBuilder); + } + + #endregion Protected Methods + } +} \ No newline at end of file diff --git a/MP.Data/Resources/Readme.md b/MP.Data/Resources/Readme.md new file mode 100644 index 00000000..29cc121b --- /dev/null +++ b/MP.Data/Resources/Readme.md @@ -0,0 +1,23 @@ +# Appunti gestione MP-STAT DB + + +Per la gestione dell'accesso al DB statistiche si opera con EFCore --> apop blazor server + +## Scaffolding DB iniziale + + Scaffold-DbContext "Server=SQL2016DEV;Database=MoonPro_STATS;Trusted_Connection=True;" Microsoft.EntityFrameworkCore.SqlServer -OutputDir DatabaseModels + +## Scaffolding SOLO di tabelle/viste selezionate (con force update) + + Scaffold-DbContext "Server=SQL2016DEV;Database=MoonPro_STATS;Trusted_Connection=True;" Microsoft.EntityFrameworkCore.SqlServer -OutputDir DatabaseModels -Tables v_RS, v_TC_Stat, v_TCR, v_TCR_Day, v_UL + + + +## Approfondimenti + +Qualche link di approfondimento: + + - https://docs.microsoft.com/en-us/ef/core/ + - https://docs.microsoft.com/en-us/ef/core/extensions/ + - https://www.entityframeworktutorial.net/efcore/create-model-for-existing-database-in-ef-core.aspx + - https://entityframework.net/ef-code-first \ No newline at end of file diff --git a/MP.Data/StatsDbContext.cs b/MP.Data/StatsDbContext.cs new file mode 100644 index 00000000..e52f398f --- /dev/null +++ b/MP.Data/StatsDbContext.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace MP.Data +{ + public class StatsDbContext + { + } +} \ No newline at end of file From 48d5671e536392a4b23ec215b43e2a344347f022 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Mon, 17 May 2021 13:33:28 +0200 Subject: [PATCH 3/6] RImozione old DataLayer --- MpDataLayer/Constants.cs | 12 - MpDataLayer/Controllers/MpStatsController.cs | 85 - MpDataLayer/DatabaseModels/Aaul.cs | 13 - MpDataLayer/DatabaseModels/Cal.cs | 18 - MpDataLayer/DatabaseModels/Config.cs | 15 - MpDataLayer/DatabaseModels/Ddb.cs | 15 - MpDataLayer/DatabaseModels/Ddb1.cs | 24 - MpDataLayer/DatabaseModels/DdbTurni.cs | 30 - MpDataLayer/DatabaseModels/DdbTurniNew.cs | 30 - MpDataLayer/DatabaseModels/DdbTurniSummary.cs | 21 - .../DatabaseModels/DdbTurniSummaryNew.cs | 21 - MpDataLayer/DatabaseModels/Ecp.cs | 23 - MpDataLayer/DatabaseModels/Ecp1.cs | 21 - MpDataLayer/DatabaseModels/Kit.cs | 14 - MpDataLayer/DatabaseModels/Odl.cs | 26 - MpDataLayer/DatabaseModels/Odl1.cs | 30 - MpDataLayer/DatabaseModels/R.cs | 23 - MpDataLayer/DatabaseModels/R1.cs | 22 - MpDataLayer/DatabaseModels/Rc.cs | 19 - MpDataLayer/DatabaseModels/ResControlli.cs | 23 - MpDataLayer/DatabaseModels/ResScarti.cs | 26 - MpDataLayer/DatabaseModels/Tally.cs | 12 - MpDataLayer/DatabaseModels/TcStat.cs | 16 - MpDataLayer/DatabaseModels/Tcr.cs | 19 - MpDataLayer/DatabaseModels/Tcr1.cs | 20 - MpDataLayer/DatabaseModels/TcrDay.cs | 19 - MpDataLayer/DatabaseModels/TcrDayTest.cs | 19 - MpDataLayer/DatabaseModels/TestJason.cs | 14 - MpDataLayer/DatabaseModels/Ul.cs | 21 - MpDataLayer/DatabaseModels/UserActionLog.cs | 25 - MpDataLayer/DatabaseModels/VDdb.cs | 24 - MpDataLayer/DatabaseModels/VDdbLight.cs | 18 - MpDataLayer/DatabaseModels/VDdbLightOld.cs | 18 - MpDataLayer/DatabaseModels/VDdbTurni.cs | 26 - MpDataLayer/DatabaseModels/VEcp.cs | 21 - MpDataLayer/DatabaseModels/VEcp1.cs | 25 - MpDataLayer/DatabaseModels/VEcpExtended.cs | 27 - MpDataLayer/DatabaseModels/VKit.cs | 14 - MpDataLayer/DatabaseModels/VOdl.cs | 30 - MpDataLayer/DatabaseModels/VOdl1.cs | 28 - MpDataLayer/DatabaseModels/VPodlNonChiusi.cs | 30 - MpDataLayer/DatabaseModels/VR1.cs | 23 - MpDataLayer/DatabaseModels/VTcStat.cs | 18 - MpDataLayer/DatabaseModels/VTcr.cs | 20 - MpDataLayer/DatabaseModels/VTcr1.cs | 21 - MpDataLayer/DatabaseModels/VTcrDay.cs | 21 - MpDataLayer/DatabaseModels/VetoTc.cs | 15 - MpDataLayer/Enums.cs | 8 - MpDataLayer/MP.Data.csproj | 65 - MpDataLayer/MoonPro_STATSContext.cs | 1606 ----------------- MpDataLayer/Resources/Readme.md | 23 - MpDataLayer/StatsDbContext.cs | 12 - 52 files changed, 2769 deletions(-) delete mode 100644 MpDataLayer/Constants.cs delete mode 100644 MpDataLayer/Controllers/MpStatsController.cs delete mode 100644 MpDataLayer/DatabaseModels/Aaul.cs delete mode 100644 MpDataLayer/DatabaseModels/Cal.cs delete mode 100644 MpDataLayer/DatabaseModels/Config.cs delete mode 100644 MpDataLayer/DatabaseModels/Ddb.cs delete mode 100644 MpDataLayer/DatabaseModels/Ddb1.cs delete mode 100644 MpDataLayer/DatabaseModels/DdbTurni.cs delete mode 100644 MpDataLayer/DatabaseModels/DdbTurniNew.cs delete mode 100644 MpDataLayer/DatabaseModels/DdbTurniSummary.cs delete mode 100644 MpDataLayer/DatabaseModels/DdbTurniSummaryNew.cs delete mode 100644 MpDataLayer/DatabaseModels/Ecp.cs delete mode 100644 MpDataLayer/DatabaseModels/Ecp1.cs delete mode 100644 MpDataLayer/DatabaseModels/Kit.cs delete mode 100644 MpDataLayer/DatabaseModels/Odl.cs delete mode 100644 MpDataLayer/DatabaseModels/Odl1.cs delete mode 100644 MpDataLayer/DatabaseModels/R.cs delete mode 100644 MpDataLayer/DatabaseModels/R1.cs delete mode 100644 MpDataLayer/DatabaseModels/Rc.cs delete mode 100644 MpDataLayer/DatabaseModels/ResControlli.cs delete mode 100644 MpDataLayer/DatabaseModels/ResScarti.cs delete mode 100644 MpDataLayer/DatabaseModels/Tally.cs delete mode 100644 MpDataLayer/DatabaseModels/TcStat.cs delete mode 100644 MpDataLayer/DatabaseModels/Tcr.cs delete mode 100644 MpDataLayer/DatabaseModels/Tcr1.cs delete mode 100644 MpDataLayer/DatabaseModels/TcrDay.cs delete mode 100644 MpDataLayer/DatabaseModels/TcrDayTest.cs delete mode 100644 MpDataLayer/DatabaseModels/TestJason.cs delete mode 100644 MpDataLayer/DatabaseModels/Ul.cs delete mode 100644 MpDataLayer/DatabaseModels/UserActionLog.cs delete mode 100644 MpDataLayer/DatabaseModels/VDdb.cs delete mode 100644 MpDataLayer/DatabaseModels/VDdbLight.cs delete mode 100644 MpDataLayer/DatabaseModels/VDdbLightOld.cs delete mode 100644 MpDataLayer/DatabaseModels/VDdbTurni.cs delete mode 100644 MpDataLayer/DatabaseModels/VEcp.cs delete mode 100644 MpDataLayer/DatabaseModels/VEcp1.cs delete mode 100644 MpDataLayer/DatabaseModels/VEcpExtended.cs delete mode 100644 MpDataLayer/DatabaseModels/VKit.cs delete mode 100644 MpDataLayer/DatabaseModels/VOdl.cs delete mode 100644 MpDataLayer/DatabaseModels/VOdl1.cs delete mode 100644 MpDataLayer/DatabaseModels/VPodlNonChiusi.cs delete mode 100644 MpDataLayer/DatabaseModels/VR1.cs delete mode 100644 MpDataLayer/DatabaseModels/VTcStat.cs delete mode 100644 MpDataLayer/DatabaseModels/VTcr.cs delete mode 100644 MpDataLayer/DatabaseModels/VTcr1.cs delete mode 100644 MpDataLayer/DatabaseModels/VTcrDay.cs delete mode 100644 MpDataLayer/DatabaseModels/VetoTc.cs delete mode 100644 MpDataLayer/Enums.cs delete mode 100644 MpDataLayer/MP.Data.csproj delete mode 100644 MpDataLayer/MoonPro_STATSContext.cs delete mode 100644 MpDataLayer/Resources/Readme.md delete mode 100644 MpDataLayer/StatsDbContext.cs diff --git a/MpDataLayer/Constants.cs b/MpDataLayer/Constants.cs deleted file mode 100644 index 4abf10f1..00000000 --- a/MpDataLayer/Constants.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace MP.Data -{ - class Constants - { - } -} diff --git a/MpDataLayer/Controllers/MpStatsController.cs b/MpDataLayer/Controllers/MpStatsController.cs deleted file mode 100644 index 0b1d43eb..00000000 --- a/MpDataLayer/Controllers/MpStatsController.cs +++ /dev/null @@ -1,85 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Configuration; -using NLog; -using Microsoft.Extensions.Configuration; - -namespace MP.Data.Controllers -{ - public class MpStatsController : IDisposable - { - #region Private Fields - - private static IConfiguration _configuration; - private static MoonPro_STATSContext dbCtx; - private static NLog.Logger Log = LogManager.GetCurrentClassLogger(); - - #endregion Private Fields - - #region Public Constructors - - public MpStatsController(IConfiguration configuration) - { - _configuration = configuration; - dbCtx = new MoonPro_STATSContext(configuration); - Log.Info("Avviata classe MpStatsController.MpStatsController"); - } - - #endregion Public Constructors - - #region Public Methods - - public void Dispose() - { - // Clear database context - dbCtx.Dispose(); - } - - /// - /// Annulla modifiche su una specifica entity (cancel update) - /// - /// - /// - public bool rollBackEntity(object item) - { - bool answ = false; - try - { - if (dbCtx.Entry(item).State == Microsoft.EntityFrameworkCore.EntityState.Deleted || dbCtx.Entry(item).State == Microsoft.EntityFrameworkCore.EntityState.Modified) - { - dbCtx.Entry(item).Reload(); - } - } - catch (Exception exc) - { - Log.Error($"Eccezione in rollBackEntity{Environment.NewLine}{exc}"); - } - return answ; - } - - /// - /// Elenco tabella scarti da filtro - /// - /// - /// - /// - public List ScartiGetAll(int numRecord, string searchVal = "") - { - List dbResult = new List(); - - dbResult = dbCtx - .DbSetScarti - .Where(x => x.KeyRichiesta.Contains(searchVal) || x.Descrizione.Contains(searchVal) || x.CodArticolo.Contains(searchVal) || string.IsNullOrEmpty(searchVal)) - .OrderByDescending(x => x.DataOra) - .Take(numRecord) - .ToList(); - - return dbResult; - } - - #endregion Public Methods - } -} \ No newline at end of file diff --git a/MpDataLayer/DatabaseModels/Aaul.cs b/MpDataLayer/DatabaseModels/Aaul.cs deleted file mode 100644 index f639d8c7..00000000 --- a/MpDataLayer/DatabaseModels/Aaul.cs +++ /dev/null @@ -1,13 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class Aaul - { - public string Azione { get; set; } - public string Descrizione { get; set; } - } -} diff --git a/MpDataLayer/DatabaseModels/Cal.cs b/MpDataLayer/DatabaseModels/Cal.cs deleted file mode 100644 index 62ac75a3..00000000 --- a/MpDataLayer/DatabaseModels/Cal.cs +++ /dev/null @@ -1,18 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class Cal - { - public DateTime Giorno { get; set; } - public bool? DoDdb { get; set; } - public bool? DoTcr { get; set; } - public bool? DoUl { get; set; } - public bool? DoEcp { get; set; } - public bool? DoRs { get; set; } - public bool? DoOdl { get; set; } - } -} diff --git a/MpDataLayer/DatabaseModels/Config.cs b/MpDataLayer/DatabaseModels/Config.cs deleted file mode 100644 index e994d899..00000000 --- a/MpDataLayer/DatabaseModels/Config.cs +++ /dev/null @@ -1,15 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class Config - { - public string Chiave { get; set; } - public string Valore { get; set; } - public string ValoreStd { get; set; } - public string Note { get; set; } - } -} diff --git a/MpDataLayer/DatabaseModels/Ddb.cs b/MpDataLayer/DatabaseModels/Ddb.cs deleted file mode 100644 index 01eb95f0..00000000 --- a/MpDataLayer/DatabaseModels/Ddb.cs +++ /dev/null @@ -1,15 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class Ddb - { - public DateTime DataOraRif { get; set; } - public string IdxMacchina { get; set; } - public int IdxStato { get; set; } - public decimal DurataMinuti { get; set; } - } -} diff --git a/MpDataLayer/DatabaseModels/Ddb1.cs b/MpDataLayer/DatabaseModels/Ddb1.cs deleted file mode 100644 index 60291b02..00000000 --- a/MpDataLayer/DatabaseModels/Ddb1.cs +++ /dev/null @@ -1,24 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class Ddb1 - { - public string IdxMacchina { get; set; } - public DateTime InizioStato { get; set; } - public DateTime? FineStato { get; set; } - public int IdxStato { get; set; } - public double? DurataMinuti { get; set; } - public string Value { get; set; } - public string CodArticolo { get; set; } - public double? TempoCicloBase { get; set; } - public int? PzPalletProd { get; set; } - public int? MatrOpr { get; set; } - public string Pallet { get; set; } - public string Descrizione { get; set; } - public string ClasseTempo { get; set; } - } -} diff --git a/MpDataLayer/DatabaseModels/DdbTurni.cs b/MpDataLayer/DatabaseModels/DdbTurni.cs deleted file mode 100644 index 4fc7e14d..00000000 --- a/MpDataLayer/DatabaseModels/DdbTurni.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class DdbTurni - { - public DateTime DataRif { get; set; } - public string IdxMacchina { get; set; } - public string Turno { get; set; } - public int IdxStato { get; set; } - public string CodArticolo { get; set; } - public DateTime InizioStato { get; set; } - public DateTime FineStato { get; set; } - public string Pallet { get; set; } - public int? PzPalletProd { get; set; } - public decimal? TempoCicloBase { get; set; } - public string Descrizione { get; set; } - public string ClasseTempo { get; set; } - public DateTime? DataTurnoInizio { get; set; } - public DateTime? DataTurnoFine { get; set; } - public long? DurataStato { get; set; } - public DateTime InizioPeriodo { get; set; } - public DateTime? FinePeriodo { get; set; } - public long? DurataPeriodo { get; set; } - public int TotPzProd { get; set; } - } -} diff --git a/MpDataLayer/DatabaseModels/DdbTurniNew.cs b/MpDataLayer/DatabaseModels/DdbTurniNew.cs deleted file mode 100644 index 37bf31d9..00000000 --- a/MpDataLayer/DatabaseModels/DdbTurniNew.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class DdbTurniNew - { - public DateTime DataRif { get; set; } - public string IdxMacchina { get; set; } - public string Turno { get; set; } - public int IdxStato { get; set; } - public string CodArticolo { get; set; } - public DateTime InizioStato { get; set; } - public DateTime FineStato { get; set; } - public string Pallet { get; set; } - public int? PzPalletProd { get; set; } - public decimal? TempoCicloBase { get; set; } - public string Descrizione { get; set; } - public string ClasseTempo { get; set; } - public DateTime? DataTurnoInizio { get; set; } - public DateTime? DataTurnoFine { get; set; } - public long? DurataStato { get; set; } - public DateTime InizioPeriodo { get; set; } - public DateTime? FinePeriodo { get; set; } - public long? DurataPeriodo { get; set; } - public int TotPzProd { get; set; } - } -} diff --git a/MpDataLayer/DatabaseModels/DdbTurniSummary.cs b/MpDataLayer/DatabaseModels/DdbTurniSummary.cs deleted file mode 100644 index 5db34143..00000000 --- a/MpDataLayer/DatabaseModels/DdbTurniSummary.cs +++ /dev/null @@ -1,21 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class DdbTurniSummary - { - public string IdxMacchina { get; set; } - public DateTime DataRif { get; set; } - public string Turno { get; set; } - public string CodArticolo { get; set; } - public int IdxStato { get; set; } - public decimal TempoCicloBase { get; set; } - public DateTime? Inizio { get; set; } - public int PzPalletProd { get; set; } - public decimal? Durata { get; set; } - public int? PzProd { get; set; } - } -} diff --git a/MpDataLayer/DatabaseModels/DdbTurniSummaryNew.cs b/MpDataLayer/DatabaseModels/DdbTurniSummaryNew.cs deleted file mode 100644 index 1460328b..00000000 --- a/MpDataLayer/DatabaseModels/DdbTurniSummaryNew.cs +++ /dev/null @@ -1,21 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class DdbTurniSummaryNew - { - public string IdxMacchina { get; set; } - public DateTime DataRif { get; set; } - public string Turno { get; set; } - public string CodArticolo { get; set; } - public int IdxStato { get; set; } - public decimal TempoCicloBase { get; set; } - public DateTime? Inizio { get; set; } - public int PzPalletProd { get; set; } - public decimal? Durata { get; set; } - public int? PzProd { get; set; } - } -} diff --git a/MpDataLayer/DatabaseModels/Ecp.cs b/MpDataLayer/DatabaseModels/Ecp.cs deleted file mode 100644 index 09fb32dc..00000000 --- a/MpDataLayer/DatabaseModels/Ecp.cs +++ /dev/null @@ -1,23 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class Ecp - { - public int IdxEcp { get; set; } - public DateTime DataOraConf { get; set; } - public string IdxMacchina { get; set; } - public string KeyRichiesta { get; set; } - public int IdxOdl { get; set; } - public string CodArticolo { get; set; } - public int PezziConf { get; set; } - public int PezziScar { get; set; } - public int PezziDaRilav { get; set; } - public int MatrOpr { get; set; } - public string Cognome { get; set; } - public string Nome { get; set; } - } -} diff --git a/MpDataLayer/DatabaseModels/Ecp1.cs b/MpDataLayer/DatabaseModels/Ecp1.cs deleted file mode 100644 index 33a3a973..00000000 --- a/MpDataLayer/DatabaseModels/Ecp1.cs +++ /dev/null @@ -1,21 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class Ecp1 - { - public DateTime DataOraConf { get; set; } - public string IdxMacchina { get; set; } - public int MatrApp { get; set; } - public DateTime DataFrom { get; set; } - public DateTime DataTo { get; set; } - public int PezziConf { get; set; } - public int PezziScar { get; set; } - public int PezziDaRilav { get; set; } - public string CommessaEsterna { get; set; } - public int TipoConf { get; set; } - } -} diff --git a/MpDataLayer/DatabaseModels/Kit.cs b/MpDataLayer/DatabaseModels/Kit.cs deleted file mode 100644 index cb25c5c0..00000000 --- a/MpDataLayer/DatabaseModels/Kit.cs +++ /dev/null @@ -1,14 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class Kit - { - public string KeyKit { get; set; } - public string KeyExtOrd { get; set; } - public string CodArtParent { get; set; } - } -} diff --git a/MpDataLayer/DatabaseModels/Odl.cs b/MpDataLayer/DatabaseModels/Odl.cs deleted file mode 100644 index fa8f8bfa..00000000 --- a/MpDataLayer/DatabaseModels/Odl.cs +++ /dev/null @@ -1,26 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class Odl - { - public int IdxOdl { get; set; } - public string KeyRichiesta { get; set; } - public string CodArticolo { get; set; } - public decimal Tcassegnato { get; set; } - public string IdxMacchina { get; set; } - public int NumPezzi { get; set; } - public int NumPezziEv { get; set; } - public int NumPezziSca { get; set; } - public int NumPezziRil { get; set; } - public DateTime? DataInizio { get; set; } - public DateTime? DataFine { get; set; } - public string KeyRichiestaParent { get; set; } - public string CodArticoloParent { get; set; } - public DateTime? DueDate { get; set; } - public int? PzPallet { get; set; } - } -} diff --git a/MpDataLayer/DatabaseModels/Odl1.cs b/MpDataLayer/DatabaseModels/Odl1.cs deleted file mode 100644 index 50436e07..00000000 --- a/MpDataLayer/DatabaseModels/Odl1.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class Odl1 - { - public int IdxOdl { get; set; } - public string CodArticolo { get; set; } - public string IdxMacchina { get; set; } - public int NumPezzi { get; set; } - public decimal Tcassegnato { get; set; } - public DateTime? DataInizio { get; set; } - public DateTime? DataFine { get; set; } - public string Note { get; set; } - public bool NeedAppr { get; set; } - public string UserAppr { get; set; } - public DateTime? DataAppr { get; set; } - public decimal? TcrichAttr { get; set; } - public string KeyRichiesta { get; set; } - public int PzPallet { get; set; } - public bool Provvisorio { get; set; } - public int MatrOpr { get; set; } - public string CommessaAs400 { get; set; } - public int ToAs400 { get; set; } - public DateTime? DueDate { get; set; } - } -} diff --git a/MpDataLayer/DatabaseModels/R.cs b/MpDataLayer/DatabaseModels/R.cs deleted file mode 100644 index 8e58bf74..00000000 --- a/MpDataLayer/DatabaseModels/R.cs +++ /dev/null @@ -1,23 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class R - { - public DateTime DataOraRif { get; set; } - public string IdxMacchina { get; set; } - public string Causale { get; set; } - public string Descrizione { get; set; } - public string Note { get; set; } - public int Qta { get; set; } - public string KeyRichiesta { get; set; } - public int IdxOdl { get; set; } - public string CodArticolo { get; set; } - public int MatrOpr { get; set; } - public string Cognome { get; set; } - public string Nome { get; set; } - } -} diff --git a/MpDataLayer/DatabaseModels/R1.cs b/MpDataLayer/DatabaseModels/R1.cs deleted file mode 100644 index e4abb10d..00000000 --- a/MpDataLayer/DatabaseModels/R1.cs +++ /dev/null @@ -1,22 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class R1 - { - public string IdxMacchina { get; set; } - public DateTime DataOra { get; set; } - public string Causale { get; set; } - public int Qta { get; set; } - public string Note { get; set; } - public string CodArticolo { get; set; } - public int MatrOpr { get; set; } - public DateTime? DataOraProdRec { get; set; } - public string Descrizione { get; set; } - public string KeyRichiesta { get; set; } - public int IdxOdl { get; set; } - } -} diff --git a/MpDataLayer/DatabaseModels/Rc.cs b/MpDataLayer/DatabaseModels/Rc.cs deleted file mode 100644 index 8578e1a4..00000000 --- a/MpDataLayer/DatabaseModels/Rc.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class Rc - { - public int IdxControllo { get; set; } - public DateTime DataOra { get; set; } - public string IdxMacchina { get; set; } - public int IdxOdl { get; set; } - public string CodArticolo { get; set; } - public int MatrOpr { get; set; } - public bool EsitoOk { get; set; } - public string Note { get; set; } - } -} diff --git a/MpDataLayer/DatabaseModels/ResControlli.cs b/MpDataLayer/DatabaseModels/ResControlli.cs deleted file mode 100644 index 77f46ee9..00000000 --- a/MpDataLayer/DatabaseModels/ResControlli.cs +++ /dev/null @@ -1,23 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class ResControlli - { - #region Public Properties - - public string CodArticolo { get; set; } - public DateTime DataOra { get; set; } - public bool EsitoOk { get; set; } - public int IdxControllo { get; set; } - public string IdxMacchina { get; set; } - public int IdxOdl { get; set; } - public int MatrOpr { get; set; } - public string Note { get; set; } - - #endregion Public Properties - } -} \ No newline at end of file diff --git a/MpDataLayer/DatabaseModels/ResScarti.cs b/MpDataLayer/DatabaseModels/ResScarti.cs deleted file mode 100644 index 4d66d124..00000000 --- a/MpDataLayer/DatabaseModels/ResScarti.cs +++ /dev/null @@ -1,26 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class ResScarti - { - #region Public Properties - - public string Causale { get; set; } - public string CodArticolo { get; set; } - public DateTime DataOra { get; set; } - public DateTime? DataOraProdRec { get; set; } - public string Descrizione { get; set; } - public string IdxMacchina { get; set; } - public int IdxOdl { get; set; } - public string KeyRichiesta { get; set; } - public int MatrOpr { get; set; } - public string Note { get; set; } - public int Qta { get; set; } - - #endregion Public Properties - } -} \ No newline at end of file diff --git a/MpDataLayer/DatabaseModels/Tally.cs b/MpDataLayer/DatabaseModels/Tally.cs deleted file mode 100644 index e64cf735..00000000 --- a/MpDataLayer/DatabaseModels/Tally.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class Tally - { - public int N { get; set; } - } -} diff --git a/MpDataLayer/DatabaseModels/TcStat.cs b/MpDataLayer/DatabaseModels/TcStat.cs deleted file mode 100644 index eef51348..00000000 --- a/MpDataLayer/DatabaseModels/TcStat.cs +++ /dev/null @@ -1,16 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class TcStat - { - public string CodArticolo { get; set; } - public string CodGruppo { get; set; } - public string IdxMacchina { get; set; } - public decimal TcStat1 { get; set; } - public int TcType { get; set; } - } -} diff --git a/MpDataLayer/DatabaseModels/Tcr.cs b/MpDataLayer/DatabaseModels/Tcr.cs deleted file mode 100644 index d0ba1c26..00000000 --- a/MpDataLayer/DatabaseModels/Tcr.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class Tcr - { - public DateTime DataOraRif { get; set; } - public string IdxMacchina { get; set; } - public string CodArticolo { get; set; } - public int PzProd { get; set; } - public decimal? Tcmedio { get; set; } - public decimal? Tcmin { get; set; } - public decimal? Tcmax { get; set; } - public decimal? Tc50p { get; set; } - } -} diff --git a/MpDataLayer/DatabaseModels/Tcr1.cs b/MpDataLayer/DatabaseModels/Tcr1.cs deleted file mode 100644 index 444d2669..00000000 --- a/MpDataLayer/DatabaseModels/Tcr1.cs +++ /dev/null @@ -1,20 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class Tcr1 - { - public string IdxMacchina { get; set; } - public string CodArticolo { get; set; } - public DateTime DataOraRif { get; set; } - public decimal Tcmedio { get; set; } - public int PzProd { get; set; } - public int IdxOdl { get; set; } - public decimal Tcassegnato { get; set; } - public string KeyRichiesta { get; set; } - public int PzPallet { get; set; } - } -} diff --git a/MpDataLayer/DatabaseModels/TcrDay.cs b/MpDataLayer/DatabaseModels/TcrDay.cs deleted file mode 100644 index 20c3fbdf..00000000 --- a/MpDataLayer/DatabaseModels/TcrDay.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class TcrDay - { - public DateTime DataOraRif { get; set; } - public string IdxMacchina { get; set; } - public string CodArticolo { get; set; } - public int PzProd { get; set; } - public decimal? Tcmedio { get; set; } - public decimal? Tcmin { get; set; } - public decimal? Tcmax { get; set; } - public decimal? Tc50p { get; set; } - } -} diff --git a/MpDataLayer/DatabaseModels/TcrDayTest.cs b/MpDataLayer/DatabaseModels/TcrDayTest.cs deleted file mode 100644 index 904d7c7f..00000000 --- a/MpDataLayer/DatabaseModels/TcrDayTest.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class TcrDayTest - { - public DateTime DataOraRif { get; set; } - public string IdxMacchina { get; set; } - public string CodArticolo { get; set; } - public int PzProd { get; set; } - public decimal? Tcmedio { get; set; } - public decimal? Tcmin { get; set; } - public decimal? Tcmax { get; set; } - public decimal? Tc50p { get; set; } - } -} diff --git a/MpDataLayer/DatabaseModels/TestJason.cs b/MpDataLayer/DatabaseModels/TestJason.cs deleted file mode 100644 index 8f921d40..00000000 --- a/MpDataLayer/DatabaseModels/TestJason.cs +++ /dev/null @@ -1,14 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class TestJason - { - public DateTime Data { get; set; } - public byte[] Json { get; set; } - public int? Rows { get; set; } - } -} diff --git a/MpDataLayer/DatabaseModels/Ul.cs b/MpDataLayer/DatabaseModels/Ul.cs deleted file mode 100644 index 54b11f82..00000000 --- a/MpDataLayer/DatabaseModels/Ul.cs +++ /dev/null @@ -1,21 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class Ul - { - public int IdxLog { get; set; } - public DateTime DataOraRif { get; set; } - public string IdxMacchina { get; set; } - public int MatrOpr { get; set; } - public string Cognome { get; set; } - public string Nome { get; set; } - public string CodArticolo { get; set; } - public string Azione { get; set; } - public string Valore { get; set; } - public decimal Qta { get; set; } - } -} diff --git a/MpDataLayer/DatabaseModels/UserActionLog.cs b/MpDataLayer/DatabaseModels/UserActionLog.cs deleted file mode 100644 index 15426401..00000000 --- a/MpDataLayer/DatabaseModels/UserActionLog.cs +++ /dev/null @@ -1,25 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class UserActionLog - { - #region Public Properties - - public string Azione { get; set; } - public string CodArticolo { get; set; } - public string Cognome { get; set; } - public DateTime DataOraRif { get; set; } - public int IdxLog { get; set; } - public string IdxMacchina { get; set; } - public int MatrOpr { get; set; } - public string Nome { get; set; } - public decimal Qta { get; set; } - public string Valore { get; set; } - - #endregion Public Properties - } -} \ No newline at end of file diff --git a/MpDataLayer/DatabaseModels/VDdb.cs b/MpDataLayer/DatabaseModels/VDdb.cs deleted file mode 100644 index 4aeccff6..00000000 --- a/MpDataLayer/DatabaseModels/VDdb.cs +++ /dev/null @@ -1,24 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class VDdb - { - public string IdxMacchina { get; set; } - public DateTime InizioStato { get; set; } - public DateTime? FineStato { get; set; } - public int IdxStato { get; set; } - public double? DurataMinuti { get; set; } - public string Value { get; set; } - public string CodArticolo { get; set; } - public double? TempoCicloBase { get; set; } - public int? PzPalletProd { get; set; } - public int? MatrOpr { get; set; } - public string Pallet { get; set; } - public string Descrizione { get; set; } - public string ClasseTempo { get; set; } - } -} diff --git a/MpDataLayer/DatabaseModels/VDdbLight.cs b/MpDataLayer/DatabaseModels/VDdbLight.cs deleted file mode 100644 index f1bafcbc..00000000 --- a/MpDataLayer/DatabaseModels/VDdbLight.cs +++ /dev/null @@ -1,18 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class VDdbLight - { - public string CodMacchina { get; set; } - public string DescMacchina { get; set; } - public DateTime InizioStato { get; set; } - public string Stato { get; set; } - public double? DurataMinuti { get; set; } - public string CodArticolo { get; set; } - public string Operatore { get; set; } - } -} diff --git a/MpDataLayer/DatabaseModels/VDdbLightOld.cs b/MpDataLayer/DatabaseModels/VDdbLightOld.cs deleted file mode 100644 index d636177a..00000000 --- a/MpDataLayer/DatabaseModels/VDdbLightOld.cs +++ /dev/null @@ -1,18 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class VDdbLightOld - { - public string CodMacchina { get; set; } - public string DescMacchina { get; set; } - public DateTime InizioStato { get; set; } - public string Stato { get; set; } - public double? DurataMinuti { get; set; } - public string CodArticolo { get; set; } - public string Operatore { get; set; } - } -} diff --git a/MpDataLayer/DatabaseModels/VDdbTurni.cs b/MpDataLayer/DatabaseModels/VDdbTurni.cs deleted file mode 100644 index fbdc6046..00000000 --- a/MpDataLayer/DatabaseModels/VDdbTurni.cs +++ /dev/null @@ -1,26 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class VDdbTurni - { - public string IdxMacchina { get; set; } - public DateTime DataRif { get; set; } - public string Turno { get; set; } - public string CodArticolo { get; set; } - public int IdxStato { get; set; } - public decimal TempoCicloBase { get; set; } - public int PzPalletProd { get; set; } - public decimal? Durata { get; set; } - public int? PzProd { get; set; } - public string ClasseTempo { get; set; } - public string DescClasseTempo { get; set; } - public string Semaforo { get; set; } - public string SemColore { get; set; } - public string CodMacchina { get; set; } - public string DescMacchina { get; set; } - } -} diff --git a/MpDataLayer/DatabaseModels/VEcp.cs b/MpDataLayer/DatabaseModels/VEcp.cs deleted file mode 100644 index c90a45b6..00000000 --- a/MpDataLayer/DatabaseModels/VEcp.cs +++ /dev/null @@ -1,21 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class VEcp - { - public DateTime DataOraConf { get; set; } - public string IdxMacchina { get; set; } - public int MatrApp { get; set; } - public DateTime DataFrom { get; set; } - public DateTime DataTo { get; set; } - public int PezziConf { get; set; } - public int PezziScar { get; set; } - public int PezziDaRilav { get; set; } - public string CommessaEsterna { get; set; } - public int TipoConf { get; set; } - } -} diff --git a/MpDataLayer/DatabaseModels/VEcp1.cs b/MpDataLayer/DatabaseModels/VEcp1.cs deleted file mode 100644 index 3c63b654..00000000 --- a/MpDataLayer/DatabaseModels/VEcp1.cs +++ /dev/null @@ -1,25 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class VEcp1 - { - public int IdxEcp { get; set; } - public DateTime DataOraConf { get; set; } - public string IdxMacchina { get; set; } - public string CodMacchina { get; set; } - public string DescMacchina { get; set; } - public string KeyRichiesta { get; set; } - public int IdxOdl { get; set; } - public string CodArticolo { get; set; } - public int PezziConf { get; set; } - public int PezziScar { get; set; } - public int PezziDaRilav { get; set; } - public int MatrOpr { get; set; } - public string Cognome { get; set; } - public string Nome { get; set; } - } -} diff --git a/MpDataLayer/DatabaseModels/VEcpExtended.cs b/MpDataLayer/DatabaseModels/VEcpExtended.cs deleted file mode 100644 index c2d75bc9..00000000 --- a/MpDataLayer/DatabaseModels/VEcpExtended.cs +++ /dev/null @@ -1,27 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class VEcpExtended - { - public int IdxEcp { get; set; } - public DateTime DataOraConf { get; set; } - public string IdxMacchina { get; set; } - public string CodMacchina { get; set; } - public string DescMacchina { get; set; } - public string KeyRichiesta { get; set; } - public int IdxOdl { get; set; } - public string CodArticolo { get; set; } - public int PezziConf { get; set; } - public int PezziScar { get; set; } - public int PezziDaRilav { get; set; } - public int MatrOpr { get; set; } - public string Cognome { get; set; } - public string Nome { get; set; } - public decimal Tcassegnato { get; set; } - public DateTime DueDate { get; set; } - } -} diff --git a/MpDataLayer/DatabaseModels/VKit.cs b/MpDataLayer/DatabaseModels/VKit.cs deleted file mode 100644 index f84ce903..00000000 --- a/MpDataLayer/DatabaseModels/VKit.cs +++ /dev/null @@ -1,14 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class VKit - { - public string KeyKit { get; set; } - public string KeyExtOrd { get; set; } - public string CodArtParent { get; set; } - } -} diff --git a/MpDataLayer/DatabaseModels/VOdl.cs b/MpDataLayer/DatabaseModels/VOdl.cs deleted file mode 100644 index 8600135a..00000000 --- a/MpDataLayer/DatabaseModels/VOdl.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class VOdl - { - public int IdxOdl { get; set; } - public string CodArticolo { get; set; } - public string IdxMacchina { get; set; } - public int NumPezzi { get; set; } - public decimal Tcassegnato { get; set; } - public DateTime? DataInizio { get; set; } - public DateTime? DataFine { get; set; } - public string Note { get; set; } - public bool NeedAppr { get; set; } - public string UserAppr { get; set; } - public DateTime? DataAppr { get; set; } - public decimal? TcrichAttr { get; set; } - public string KeyRichiesta { get; set; } - public int PzPallet { get; set; } - public bool Provvisorio { get; set; } - public int MatrOpr { get; set; } - public string CommessaAs400 { get; set; } - public int ToAs400 { get; set; } - public DateTime? DueDate { get; set; } - } -} diff --git a/MpDataLayer/DatabaseModels/VOdl1.cs b/MpDataLayer/DatabaseModels/VOdl1.cs deleted file mode 100644 index 97fda075..00000000 --- a/MpDataLayer/DatabaseModels/VOdl1.cs +++ /dev/null @@ -1,28 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class VOdl1 - { - public int IdxOdl { get; set; } - public string KeyRichiesta { get; set; } - public string CodArticolo { get; set; } - public decimal Tcassegnato { get; set; } - public string IdxMacchina { get; set; } - public string CodMacchina { get; set; } - public string DescMacchina { get; set; } - public int NumPezzi { get; set; } - public int NumPezziEv { get; set; } - public int NumPezziSca { get; set; } - public int NumPezziRil { get; set; } - public DateTime? DataInizio { get; set; } - public DateTime? DataFine { get; set; } - public string KeyRichiestaParent { get; set; } - public string CodArticoloParent { get; set; } - public DateTime? DueDate { get; set; } - public int? PzPallet { get; set; } - } -} diff --git a/MpDataLayer/DatabaseModels/VPodlNonChiusi.cs b/MpDataLayer/DatabaseModels/VPodlNonChiusi.cs deleted file mode 100644 index fa806e0d..00000000 --- a/MpDataLayer/DatabaseModels/VPodlNonChiusi.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class VPodlNonChiusi - { - public int IdxPromessa { get; set; } - public string KeyRichiesta { get; set; } - public string KeyBcode { get; set; } - public bool Attivabile { get; set; } - public int IdxOdl { get; set; } - public DateTime? DataInizio { get; set; } - public string CodArticolo { get; set; } - public string DescArticolo { get; set; } - public string CodGruppo { get; set; } - public string IdxMacchina { get; set; } - public string CodMacchina { get; set; } - public string Nome { get; set; } - public int NumPezzi { get; set; } - public decimal Tcassegnato { get; set; } - public DateTime DueDate { get; set; } - public int Priorita { get; set; } - public int PzPallet { get; set; } - public decimal? TotMinProg { get; set; } - public decimal? TotOreProg { get; set; } - } -} diff --git a/MpDataLayer/DatabaseModels/VR1.cs b/MpDataLayer/DatabaseModels/VR1.cs deleted file mode 100644 index 956f8786..00000000 --- a/MpDataLayer/DatabaseModels/VR1.cs +++ /dev/null @@ -1,23 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class VR1 - { - public DateTime DataOraRif { get; set; } - public string IdxMacchina { get; set; } - public string Causale { get; set; } - public string Descrizione { get; set; } - public string Note { get; set; } - public int Qta { get; set; } - public string KeyRichiesta { get; set; } - public int IdxOdl { get; set; } - public string CodArticolo { get; set; } - public int MatrOpr { get; set; } - public string Cognome { get; set; } - public string Nome { get; set; } - } -} diff --git a/MpDataLayer/DatabaseModels/VTcStat.cs b/MpDataLayer/DatabaseModels/VTcStat.cs deleted file mode 100644 index 2c048219..00000000 --- a/MpDataLayer/DatabaseModels/VTcStat.cs +++ /dev/null @@ -1,18 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class VTcStat - { - public string CodArticolo { get; set; } - public string CodGruppo { get; set; } - public string IdxMacchina { get; set; } - public string CodMacchina { get; set; } - public string DescMacchina { get; set; } - public decimal TcStat { get; set; } - public int TcType { get; set; } - } -} diff --git a/MpDataLayer/DatabaseModels/VTcr.cs b/MpDataLayer/DatabaseModels/VTcr.cs deleted file mode 100644 index a3adb842..00000000 --- a/MpDataLayer/DatabaseModels/VTcr.cs +++ /dev/null @@ -1,20 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class VTcr - { - public string IdxMacchina { get; set; } - public string CodArticolo { get; set; } - public DateTime DataOraRif { get; set; } - public decimal Tcmedio { get; set; } - public int PzProd { get; set; } - public int IdxOdl { get; set; } - public decimal Tcassegnato { get; set; } - public string KeyRichiesta { get; set; } - public int PzPallet { get; set; } - } -} diff --git a/MpDataLayer/DatabaseModels/VTcr1.cs b/MpDataLayer/DatabaseModels/VTcr1.cs deleted file mode 100644 index 55061b57..00000000 --- a/MpDataLayer/DatabaseModels/VTcr1.cs +++ /dev/null @@ -1,21 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class VTcr1 - { - public DateTime DataOraRif { get; set; } - public string IdxMacchina { get; set; } - public string CodMacchina { get; set; } - public string DescMacchina { get; set; } - public string CodArticolo { get; set; } - public int PzProd { get; set; } - public decimal? Tcmedio { get; set; } - public decimal? Tcmin { get; set; } - public decimal? Tcmax { get; set; } - public decimal? Tc50p { get; set; } - } -} diff --git a/MpDataLayer/DatabaseModels/VTcrDay.cs b/MpDataLayer/DatabaseModels/VTcrDay.cs deleted file mode 100644 index 5d591407..00000000 --- a/MpDataLayer/DatabaseModels/VTcrDay.cs +++ /dev/null @@ -1,21 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class VTcrDay - { - public DateTime? DataOraRif { get; set; } - public string IdxMacchina { get; set; } - public string CodMacchina { get; set; } - public string DescMacchina { get; set; } - public string CodArticolo { get; set; } - public int PzProd { get; set; } - public decimal? Tcmedio { get; set; } - public decimal? Tcmin { get; set; } - public decimal? Tcmax { get; set; } - public decimal? Tc50p { get; set; } - } -} diff --git a/MpDataLayer/DatabaseModels/VetoTc.cs b/MpDataLayer/DatabaseModels/VetoTc.cs deleted file mode 100644 index b48ad96b..00000000 --- a/MpDataLayer/DatabaseModels/VetoTc.cs +++ /dev/null @@ -1,15 +0,0 @@ -using System; -using System.Collections.Generic; - -#nullable disable - -namespace MP.Data.DatabaseModels -{ - public partial class VetoTc - { - public string IdxMacchina { get; set; } - public string CodArticolo { get; set; } - public bool? VetoTc1 { get; set; } - public decimal SogliaTc { get; set; } - } -} diff --git a/MpDataLayer/Enums.cs b/MpDataLayer/Enums.cs deleted file mode 100644 index 421dd601..00000000 --- a/MpDataLayer/Enums.cs +++ /dev/null @@ -1,8 +0,0 @@ -using System; - -namespace MP.Data -{ - public class Enums - { - } -} \ No newline at end of file diff --git a/MpDataLayer/MP.Data.csproj b/MpDataLayer/MP.Data.csproj deleted file mode 100644 index a8360e39..00000000 --- a/MpDataLayer/MP.Data.csproj +++ /dev/null @@ -1,65 +0,0 @@ - - - - net5.0 - MP.Data - MP.Data - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - - - - diff --git a/MpDataLayer/MoonPro_STATSContext.cs b/MpDataLayer/MoonPro_STATSContext.cs deleted file mode 100644 index 2c0ed3fa..00000000 --- a/MpDataLayer/MoonPro_STATSContext.cs +++ /dev/null @@ -1,1606 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.Extensions.Configuration; -using MpDataLayer.DatabaseModels; -using NLog; - -#nullable disable - -namespace MP.Data -{ - public partial class MoonPro_STATSContext : DbContext - { - #region Private Fields - - private static NLog.Logger Log = LogManager.GetCurrentClassLogger(); - - private IConfiguration _configuration; - - #endregion Private Fields - - #region Public Constructors - - public MoonPro_STATSContext(IConfiguration configuration) - { - _configuration = configuration; - } - - public MoonPro_STATSContext(DbContextOptions options) - : base(options) - { - } - - #endregion Public Constructors - -#if false - public virtual DbSet Aauls { get; set; } - public virtual DbSet Cals { get; set; } - public virtual DbSet Configs { get; set; } - public virtual DbSet Ddbs { get; set; } - public virtual DbSet Ddbs1 { get; set; } - public virtual DbSet DdbTurniNews { get; set; } - public virtual DbSet DdbTurnis { get; set; } - public virtual DbSet DdbTurniSummaries { get; set; } - public virtual DbSet DdbTurniSummaryNews { get; set; } - public virtual DbSet Ecps { get; set; } - public virtual DbSet Ecps1 { get; set; } - public virtual DbSet Kits { get; set; } - public virtual DbSet Odls { get; set; } - public virtual DbSet Odls1 { get; set; } - public virtual DbSet Rcs { get; set; } - public virtual DbSet Rs { get; set; } - public virtual DbSet Rs1 { get; set; } - public virtual DbSet Tallies { get; set; } - public virtual DbSet TcrDays { get; set; } - public virtual DbSet TcrDayTests { get; set; } - public virtual DbSet Tcrs { get; set; } - public virtual DbSet Tcrs1 { get; set; } - public virtual DbSet TcStats { get; set; } - public virtual DbSet TestJasons { get; set; } - public virtual DbSet
        Uls { get; set; } -#endif - -#if false - public virtual DbSet VDdbLightOlds { get; set; } - public virtual DbSet VDdbLights { get; set; } - public virtual DbSet VDdbs { get; set; } - public virtual DbSet VDdbTurnis { get; set; } - public virtual DbSet VEcpExtendeds { get; set; } - public virtual DbSet VEcps { get; set; } - public virtual DbSet VEcps1 { get; set; } - public virtual DbSet VetoTcs { get; set; } - public virtual DbSet VKits { get; set; } - public virtual DbSet VOdls { get; set; } - public virtual DbSet VOdls1 { get; set; } - public virtual DbSet VPodlNonChiusis { get; set; } -#endif - - #region Public Properties - - public virtual DbSet DbSetControlli { get; set; } - public virtual DbSet DbSetScarti { get; set; } -#if false - public virtual DbSet VRs1 { get; set; } - public virtual DbSet VTcrDays { get; set; } - public virtual DbSet VTcrs { get; set; } - public virtual DbSet VTcrs1 { get; set; } - public virtual DbSet VTcStats { get; set; } -#endif - public virtual DbSet DbSetUserLog { get; set; } - - #endregion Public Properties - - #region Private Methods - - partial void OnModelCreatingPartial(ModelBuilder modelBuilder); - - #endregion Private Methods - - #region Protected Methods - - protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) - { - if (!optionsBuilder.IsConfigured) - { - string connString = _configuration.GetConnectionString("Mp.Stats"); - - optionsBuilder.UseSqlServer(_configuration.GetConnectionString("Mp.Stats")); - -#warning To protect potentially sensitive information in your connection string, you should move it out of source code. You can avoid scaffolding the connection string by using the Name= syntax to read it from configuration - see https://go.microsoft.com/fwlink/?linkid=2131148. For more guidance on storing connection strings, see http://go.microsoft.com/fwlink/?LinkId=723263. - //optionsBuilder.UseSqlServer("Server=SQL2016DEV;Database=MoonPro_STATS;Trusted_Connection=True;"); - } - } - - protected override void OnModelCreating(ModelBuilder modelBuilder) - { - modelBuilder.HasAnnotation("Relational:Collation", "SQL_Latin1_General_CP1_CI_AS"); - -#if false - modelBuilder.Entity(entity => - { - entity.HasKey(e => e.Azione); - - entity.ToTable("AAUL"); - - entity.Property(e => e.Azione) - .HasMaxLength(50) - .HasDefaultValueSql("('ND')") - .HasComment("Azione dell'operatore"); - - entity.Property(e => e.Descrizione) - .IsRequired() - .HasMaxLength(50) - .HasDefaultValueSql("('')"); - }); - - modelBuilder.Entity(entity => - { - entity.HasKey(e => e.Giorno) - .HasName("PK_Calendario"); - - entity.ToTable("CAL"); - - entity.Property(e => e.Giorno) - .HasColumnType("datetime") - .HasColumnName("giorno"); - - entity.Property(e => e.DoDdb) - .IsRequired() - .HasColumnName("doDDB") - .HasDefaultValueSql("((1))") - .HasComment("Indica che è necessario ricalcolare statistiche derivate da DDB (DiarioDiBordo)"); - - entity.Property(e => e.DoEcp) - .IsRequired() - .HasColumnName("doECP") - .HasDefaultValueSql("((1))") - .HasComment("Indica che è necessario ricalcolare statistiche derivate da DPO (DatiProduzione Operatore) - conferme manuali operatore"); - - entity.Property(e => e.DoOdl) - .IsRequired() - .HasColumnName("doODL") - .HasDefaultValueSql("((1))") - .HasComment("Indica che è necessario ricalcolare statistiche ODL"); - - entity.Property(e => e.DoRs) - .IsRequired() - .HasColumnName("doRS") - .HasDefaultValueSql("((1))") - .HasComment("Indica che è necessario ricalcolare statistiche derivate da RS (Registro Scarti)"); - - entity.Property(e => e.DoTcr) - .IsRequired() - .HasColumnName("doTCR") - .HasDefaultValueSql("((1))") - .HasComment("Indica che è necessario ricalcolare statistiche derivate da rilevazione TCR (TempiCicloRilevati)"); - - entity.Property(e => e.DoUl) - .IsRequired() - .HasColumnName("doUL") - .HasDefaultValueSql("((1))") - .HasComment("Indica che è necessario ricalcolare statistiche derivate da DSO (Dichiarazioni Scarti Operatore)"); - }); - - modelBuilder.Entity(entity => - { - entity.HasKey(e => e.Chiave); - - entity.ToTable("Config"); - - entity.Property(e => e.Chiave) - .HasMaxLength(50) - .HasColumnName("chiave"); - - entity.Property(e => e.Note).HasColumnName("note"); - - entity.Property(e => e.Valore).HasColumnName("valore"); - - entity.Property(e => e.ValoreStd) - .HasColumnName("valoreStd") - .HasComment("Valore di default/riferimento per la variabile"); - }); - - modelBuilder.Entity(entity => - { - entity.HasKey(e => new { e.DataOraRif, e.IdxMacchina, e.IdxStato }) - .HasName("PK_DDB_1"); - - entity.ToTable("DDB"); - - entity.Property(e => e.DataOraRif).HasColumnType("datetime"); - - entity.Property(e => e.IdxMacchina).HasMaxLength(50); - - entity.Property(e => e.DurataMinuti).HasColumnType("decimal(18, 8)"); - }); - - modelBuilder.Entity(entity => - { - entity.HasNoKey(); - - entity.ToTable("DDB", "raw"); - - entity.HasIndex(e => e.InizioStato, "ci_DDB_Data") - .IsClustered(); - - entity.HasIndex(e => e.CodArticolo, "i_DDB_CodArt"); - - entity.HasIndex(e => e.IdxMacchina, "i_DDB_IdxMacc"); - - entity.HasIndex(e => e.IdxStato, "i_DDB_IdxStato"); - - entity.HasIndex(e => e.MatrOpr, "i_DDB_MatrOpr"); - - entity.Property(e => e.ClasseTempo).HasMaxLength(50); - - entity.Property(e => e.CodArticolo).HasMaxLength(50); - - entity.Property(e => e.Descrizione).HasMaxLength(50); - - entity.Property(e => e.FineStato).HasColumnType("datetime"); - - entity.Property(e => e.IdxMacchina) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.InizioStato).HasColumnType("datetime"); - - entity.Property(e => e.Pallet) - .HasMaxLength(20) - .HasColumnName("pallet"); - - entity.Property(e => e.Value).HasMaxLength(50); - }); - - modelBuilder.Entity(entity => - { - entity.HasKey(e => new { e.DataRif, e.IdxMacchina, e.Turno, e.IdxStato, e.CodArticolo, e.InizioPeriodo }); - - entity.ToTable("DDB_Turni"); - - entity.Property(e => e.DataRif).HasColumnType("datetime"); - - entity.Property(e => e.IdxMacchina).HasMaxLength(50); - - entity.Property(e => e.Turno).HasMaxLength(5); - - entity.Property(e => e.CodArticolo).HasMaxLength(50); - - entity.Property(e => e.InizioPeriodo).HasColumnType("datetime"); - - entity.Property(e => e.ClasseTempo).HasMaxLength(50); - - entity.Property(e => e.DataTurnoFine).HasColumnType("datetime"); - - entity.Property(e => e.DataTurnoInizio).HasColumnType("datetime"); - - entity.Property(e => e.Descrizione).HasMaxLength(50); - - entity.Property(e => e.FinePeriodo).HasColumnType("datetime"); - - entity.Property(e => e.FineStato).HasColumnType("datetime"); - - entity.Property(e => e.InizioStato).HasColumnType("datetime"); - - entity.Property(e => e.Pallet) - .HasMaxLength(20) - .HasColumnName("pallet"); - - entity.Property(e => e.TempoCicloBase).HasColumnType("decimal(18, 8)"); - }); - - modelBuilder.Entity(entity => - { - entity.HasKey(e => new { e.DataRif, e.IdxMacchina, e.Turno, e.IdxStato, e.CodArticolo, e.InizioPeriodo }); - - entity.ToTable("DDB_TurniNew"); - - entity.Property(e => e.DataRif).HasColumnType("datetime"); - - entity.Property(e => e.IdxMacchina).HasMaxLength(50); - - entity.Property(e => e.Turno).HasMaxLength(5); - - entity.Property(e => e.CodArticolo).HasMaxLength(50); - - entity.Property(e => e.InizioPeriodo).HasColumnType("datetime"); - - entity.Property(e => e.ClasseTempo).HasMaxLength(50); - - entity.Property(e => e.DataTurnoFine).HasColumnType("datetime"); - - entity.Property(e => e.DataTurnoInizio).HasColumnType("datetime"); - - entity.Property(e => e.Descrizione).HasMaxLength(50); - - entity.Property(e => e.FinePeriodo).HasColumnType("datetime"); - - entity.Property(e => e.FineStato).HasColumnType("datetime"); - - entity.Property(e => e.InizioStato).HasColumnType("datetime"); - - entity.Property(e => e.Pallet) - .HasMaxLength(20) - .HasColumnName("pallet"); - - entity.Property(e => e.TempoCicloBase).HasColumnType("decimal(18, 8)"); - }); - - modelBuilder.Entity(entity => - { - entity.HasKey(e => new { e.IdxMacchina, e.DataRif, e.Turno, e.CodArticolo, e.IdxStato, e.TempoCicloBase, e.PzPalletProd }); - - entity.ToTable("DDB_TurniSummary"); - - entity.Property(e => e.IdxMacchina).HasMaxLength(50); - - entity.Property(e => e.DataRif).HasColumnType("datetime"); - - entity.Property(e => e.Turno).HasMaxLength(5); - - entity.Property(e => e.CodArticolo).HasMaxLength(50); - - entity.Property(e => e.TempoCicloBase).HasColumnType("decimal(18, 8)"); - - entity.Property(e => e.Durata).HasColumnType("numeric(27, 7)"); - - entity.Property(e => e.Inizio).HasColumnType("datetime"); - }); - - modelBuilder.Entity(entity => - { - entity.HasKey(e => new { e.IdxMacchina, e.DataRif, e.Turno, e.CodArticolo, e.IdxStato, e.TempoCicloBase, e.PzPalletProd }); - - entity.ToTable("DDB_TurniSummaryNew"); - - entity.Property(e => e.IdxMacchina).HasMaxLength(50); - - entity.Property(e => e.DataRif).HasColumnType("datetime"); - - entity.Property(e => e.Turno).HasMaxLength(5); - - entity.Property(e => e.CodArticolo).HasMaxLength(50); - - entity.Property(e => e.TempoCicloBase).HasColumnType("decimal(18, 8)"); - - entity.Property(e => e.Durata).HasColumnType("numeric(27, 7)"); - - entity.Property(e => e.Inizio).HasColumnType("datetime"); - }); - - modelBuilder.Entity(entity => - { - entity.HasKey(e => e.IdxEcp); - - entity.ToTable("ECP"); - - entity.Property(e => e.IdxEcp).HasColumnName("idxECP"); - - entity.Property(e => e.CodArticolo) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.Cognome) - .IsRequired() - .HasMaxLength(50) - .HasDefaultValueSql("('')"); - - entity.Property(e => e.DataOraConf).HasColumnType("datetime"); - - entity.Property(e => e.IdxMacchina) - .IsRequired() - .HasMaxLength(50) - .HasColumnName("idxMacchina"); - - entity.Property(e => e.IdxOdl).HasColumnName("IdxODL"); - - entity.Property(e => e.KeyRichiesta) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.Nome) - .IsRequired() - .HasMaxLength(50) - .HasDefaultValueSql("('')"); - - entity.Property(e => e.PezziConf).HasColumnName("pezziConf"); - - entity.Property(e => e.PezziDaRilav).HasColumnName("pezziDaRilav"); - - entity.Property(e => e.PezziScar).HasColumnName("pezziScar"); - }); - - modelBuilder.Entity(entity => - { - entity.HasNoKey(); - - entity.ToTable("ECP", "raw"); - - entity.HasIndex(e => e.DataOraConf, "ci_ECP_Data") - .IsClustered(); - - entity.HasIndex(e => e.IdxMacchina, "i_ECP_IdxMacc"); - - entity.HasIndex(e => e.MatrApp, "i_ECP_MatrApp"); - - entity.HasIndex(e => e.IdxMacchina, "i_ODL_IdxMacc"); - - entity.Property(e => e.CommessaEsterna) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.DataFrom) - .HasColumnType("datetime") - .HasColumnName("dataFrom"); - - entity.Property(e => e.DataOraConf).HasColumnType("datetime"); - - entity.Property(e => e.DataTo) - .HasColumnType("datetime") - .HasColumnName("dataTo"); - - entity.Property(e => e.IdxMacchina) - .IsRequired() - .HasMaxLength(50) - .HasColumnName("idxMacchina"); - - entity.Property(e => e.PezziConf).HasColumnName("pezziConf"); - - entity.Property(e => e.PezziDaRilav).HasColumnName("pezziDaRilav"); - - entity.Property(e => e.PezziScar).HasColumnName("pezziScar"); - }); - - modelBuilder.Entity(entity => - { - entity.HasKey(e => e.KeyKit); - - entity.ToTable("KIT", "raw"); - - entity.Property(e => e.KeyKit).HasMaxLength(50); - - entity.Property(e => e.CodArtParent).IsRequired(); - - entity.Property(e => e.KeyExtOrd).IsRequired(); - }); - - modelBuilder.Entity(entity => - { - entity.HasKey(e => e.IdxOdl) - .HasName("PK_ODL_1"); - - entity.ToTable("ODL"); - - entity.Property(e => e.IdxOdl) - .ValueGeneratedNever() - .HasColumnName("IdxODL"); - - entity.Property(e => e.CodArticolo) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.CodArticoloParent) - .IsRequired() - .HasDefaultValueSql("('')"); - - entity.Property(e => e.DataFine).HasColumnType("datetime"); - - entity.Property(e => e.DataInizio).HasColumnType("datetime"); - - entity.Property(e => e.DueDate).HasColumnType("datetime"); - - entity.Property(e => e.IdxMacchina).HasMaxLength(50); - - entity.Property(e => e.KeyRichiesta) - .IsRequired() - .HasMaxLength(50) - .HasComment("Chiave: ordine esterno o KIT"); - - entity.Property(e => e.KeyRichiestaParent) - .IsRequired() - .HasDefaultValueSql("('')") - .HasComment("Chiave: ordine esterno o KIT"); - - entity.Property(e => e.PzPallet).HasDefaultValueSql("((1))"); - - entity.Property(e => e.Tcassegnato) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TCAssegnato"); - }); - - modelBuilder.Entity(entity => - { - entity.HasKey(e => e.IdxOdl) - .IsClustered(false); - - entity.ToTable("ODL", "raw"); - - entity.HasIndex(e => e.IdxOdl, "ci_ODL_Data") - .IsClustered(); - - entity.HasIndex(e => e.IdxMacchina, "i_ODL_IdxMacc"); - - entity.HasIndex(e => e.KeyRichiesta, "i_ODL_KeyRic"); - - entity.Property(e => e.IdxOdl) - .ValueGeneratedNever() - .HasColumnName("IdxODL"); - - entity.Property(e => e.CodArticolo) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.CommessaAs400) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.DataAppr).HasColumnType("datetime"); - - entity.Property(e => e.DataFine).HasColumnType("datetime"); - - entity.Property(e => e.DataInizio).HasColumnType("datetime"); - - entity.Property(e => e.DueDate).HasColumnType("datetime"); - - entity.Property(e => e.IdxMacchina).HasMaxLength(50); - - entity.Property(e => e.KeyRichiesta) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.Note).HasMaxLength(2500); - - entity.Property(e => e.Provvisorio).HasColumnName("provvisorio"); - - entity.Property(e => e.Tcassegnato) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TCAssegnato"); - - entity.Property(e => e.TcrichAttr) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TCRichAttr"); - - entity.Property(e => e.UserAppr).HasMaxLength(50); - }); - - modelBuilder.Entity(entity => - { - entity.HasKey(e => new { e.DataOraRif, e.IdxMacchina, e.Causale, e.IdxOdl }); - - entity.ToTable("RS"); - - entity.Property(e => e.DataOraRif).HasColumnType("datetime"); - - entity.Property(e => e.IdxMacchina).HasMaxLength(50); - - entity.Property(e => e.Causale).HasMaxLength(50); - - entity.Property(e => e.IdxOdl).HasColumnName("IdxODL"); - - entity.Property(e => e.CodArticolo) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.Cognome) - .IsRequired() - .HasMaxLength(50) - .HasDefaultValueSql("('')"); - - entity.Property(e => e.Descrizione) - .IsRequired() - .HasMaxLength(250); - - entity.Property(e => e.KeyRichiesta) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.Nome) - .IsRequired() - .HasMaxLength(50) - .HasDefaultValueSql("('')"); - - entity.Property(e => e.Note) - .IsRequired() - .HasMaxLength(250); - }); - - modelBuilder.Entity(entity => - { - entity.HasNoKey(); - - entity.ToTable("RS", "raw"); - - entity.HasIndex(e => e.DataOra, "ci_RS_Data") - .IsClustered(); - - entity.HasIndex(e => e.Causale, "i_RS_Causale"); - - entity.HasIndex(e => e.CodArticolo, "i_RS_CodArt"); - - entity.HasIndex(e => e.IdxMacchina, "i_RS_IdxMacc"); - - entity.HasIndex(e => e.MatrOpr, "i_RS_MatrOpr"); - - entity.Property(e => e.Causale) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.CodArticolo) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.DataOra).HasColumnType("datetime"); - - entity.Property(e => e.DataOraProdRec).HasColumnType("datetime"); - - entity.Property(e => e.Descrizione) - .IsRequired() - .HasMaxLength(250); - - entity.Property(e => e.IdxMacchina) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.IdxOdl).HasColumnName("IdxODL"); - - entity.Property(e => e.KeyRichiesta) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.Note) - .IsRequired() - .HasMaxLength(250); - }); - - modelBuilder.Entity(entity => - { - entity.HasKey(e => e.IdxControllo) - .IsClustered(false); - - entity.ToTable("RC", "raw"); - - entity.HasIndex(e => e.DataOra, "ci_RC_Data") - .IsClustered(); - - entity.HasIndex(e => e.CodArticolo, "i_RC_CodArt"); - - entity.HasIndex(e => e.EsitoOk, "i_RC_EsitoOk"); - - entity.HasIndex(e => e.IdxMacchina, "i_RC_IdxMacc"); - - entity.HasIndex(e => e.MatrOpr, "i_RC_MatrOpr"); - - entity.Property(e => e.IdxControllo).ValueGeneratedNever(); - - entity.Property(e => e.CodArticolo) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.DataOra).HasColumnType("datetime"); - - entity.Property(e => e.EsitoOk).HasColumnName("EsitoOK"); - - entity.Property(e => e.IdxMacchina) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.IdxOdl).HasColumnName("IdxODL"); - - entity.Property(e => e.Note) - .IsRequired() - .HasMaxLength(250); - }); - - modelBuilder.Entity(entity => - { - entity.HasKey(e => e.N) - .HasName("PK_Tally_N"); - - entity.ToTable("Tally"); - }); - - modelBuilder.Entity(entity => - { - entity.HasKey(e => new { e.CodArticolo, e.CodGruppo, e.IdxMacchina }); - - entity.ToTable("TC_Stat"); - - entity.Property(e => e.CodArticolo).HasMaxLength(50); - - entity.Property(e => e.CodGruppo).HasMaxLength(50); - - entity.Property(e => e.IdxMacchina).HasMaxLength(50); - - entity.Property(e => e.TcStat1) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TC_Stat"); - - entity.Property(e => e.TcType).HasColumnName("TC_Type"); - }); - - modelBuilder.Entity(entity => - { - entity.HasKey(e => new { e.IdxMacchina, e.CodArticolo, e.DataOraRif }) - .IsClustered(false); - - entity.ToTable("TCR"); - - entity.Property(e => e.IdxMacchina).HasMaxLength(50); - - entity.Property(e => e.CodArticolo).HasMaxLength(50); - - entity.Property(e => e.DataOraRif).HasColumnType("datetime"); - - entity.Property(e => e.Tc50p) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TC50p") - .HasComment("Valore percentile 50"); - - entity.Property(e => e.Tcmax) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TCMax") - .HasComment("Valore MASSIMO"); - - entity.Property(e => e.Tcmedio) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TCMedio") - .HasComment("Valore di MEDIA arimetica"); - - entity.Property(e => e.Tcmin) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TCMin") - .HasComment("Valore minimo"); - }); - - modelBuilder.Entity(entity => - { - entity.HasNoKey(); - - entity.ToTable("TCR", "raw"); - - entity.HasIndex(e => e.DataOraRif, "ci_TCR_Data") - .IsClustered(); - - entity.HasIndex(e => e.CodArticolo, "i_TCR_CodArt"); - - entity.HasIndex(e => e.IdxMacchina, "i_TCR_IdxMacc"); - - entity.HasIndex(e => e.KeyRichiesta, "i_TCR_KeyRich"); - - entity.Property(e => e.CodArticolo) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.DataOraRif).HasColumnType("datetime"); - - entity.Property(e => e.IdxMacchina) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.IdxOdl).HasColumnName("IdxODL"); - - entity.Property(e => e.KeyRichiesta) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.Tcassegnato) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TCAssegnato"); - - entity.Property(e => e.Tcmedio) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TCMedio"); - }); - - modelBuilder.Entity(entity => - { - entity.HasKey(e => new { e.IdxMacchina, e.CodArticolo, e.DataOraRif }) - .HasName("PK_TCRDay") - .IsClustered(false); - - entity.ToTable("TCR_Day"); - - entity.Property(e => e.IdxMacchina).HasMaxLength(50); - - entity.Property(e => e.CodArticolo).HasMaxLength(50); - - entity.Property(e => e.DataOraRif).HasColumnType("date"); - - entity.Property(e => e.Tc50p) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TC50p") - .HasComment("Valore percentile 50"); - - entity.Property(e => e.Tcmax) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TCMax") - .HasComment("Valore MASSIMO"); - - entity.Property(e => e.Tcmedio) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TCMedio") - .HasComment("Valore di MEDIA arimetica"); - - entity.Property(e => e.Tcmin) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TCMin") - .HasComment("Valore minimo"); - }); - - modelBuilder.Entity(entity => - { - entity.HasNoKey(); - - entity.ToTable("TCR_DayTest"); - - entity.Property(e => e.CodArticolo) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.DataOraRif).HasColumnType("date"); - - entity.Property(e => e.IdxMacchina) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.Tc50p) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TC50p"); - - entity.Property(e => e.Tcmax) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TCMax"); - - entity.Property(e => e.Tcmedio) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TCMedio"); - - entity.Property(e => e.Tcmin) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TCMin"); - }); - - modelBuilder.Entity(entity => - { - entity.HasNoKey(); - - entity.ToTable("TestJason"); - - entity.Property(e => e.Data).HasColumnType("date"); - }); - - modelBuilder.Entity
          (entity => - { - entity.HasKey(e => e.IdxLog) - .HasName("PK_UserLog"); - - entity.ToTable("UL"); - - entity.HasIndex(e => e.DataOraRif, "i_UL_DataOra"); - - entity.Property(e => e.Azione) - .IsRequired() - .HasMaxLength(50) - .HasDefaultValueSql("('ND')") - .HasComment("Azione dell'operatore"); - - entity.Property(e => e.CodArticolo) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.Cognome) - .IsRequired() - .HasMaxLength(50) - .HasDefaultValueSql("('')"); - - entity.Property(e => e.DataOraRif).HasColumnType("datetime"); - - entity.Property(e => e.IdxMacchina) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.Nome) - .IsRequired() - .HasMaxLength(50) - .HasDefaultValueSql("('')"); - - entity.Property(e => e.Qta).HasColumnType("decimal(18, 8)"); - - entity.Property(e => e.Valore) - .IsRequired() - .HasMaxLength(250) - .HasDefaultValueSql("('')"); - }); - - modelBuilder.Entity(entity => - { - entity.HasNoKey(); - - entity.ToView("vDDB"); - - entity.Property(e => e.ClasseTempo).HasMaxLength(50); - - entity.Property(e => e.CodArticolo).HasMaxLength(50); - - entity.Property(e => e.Descrizione).HasMaxLength(50); - - entity.Property(e => e.FineStato).HasColumnType("datetime"); - - entity.Property(e => e.IdxMacchina) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.InizioStato).HasColumnType("datetime"); - - entity.Property(e => e.Pallet) - .HasMaxLength(20) - .HasColumnName("pallet"); - - entity.Property(e => e.Value).HasMaxLength(50); - }); - - modelBuilder.Entity(entity => - { - entity.HasNoKey(); - - entity.ToView("v_DDB_Light", "export"); - - entity.Property(e => e.CodArticolo).HasMaxLength(50); - - entity.Property(e => e.CodMacchina).HasMaxLength(50); - - entity.Property(e => e.DescMacchina).HasMaxLength(50); - - entity.Property(e => e.InizioStato).HasColumnType("datetime"); - - entity.Property(e => e.Operatore) - .IsRequired() - .HasMaxLength(101); - - entity.Property(e => e.Stato).HasMaxLength(50); - }); - - modelBuilder.Entity(entity => - { - entity.HasNoKey(); - - entity.ToView("vDDB_Light_OLD"); - - entity.Property(e => e.CodArticolo).HasMaxLength(50); - - entity.Property(e => e.CodMacchina).HasMaxLength(50); - - entity.Property(e => e.DescMacchina).HasMaxLength(50); - - entity.Property(e => e.InizioStato).HasColumnType("datetime"); - - entity.Property(e => e.Operatore) - .IsRequired() - .HasMaxLength(101); - - entity.Property(e => e.Stato).HasMaxLength(50); - }); - - modelBuilder.Entity(entity => - { - entity.HasNoKey(); - - entity.ToView("v_DDB_Turni", "export"); - - entity.Property(e => e.ClasseTempo).HasMaxLength(50); - - entity.Property(e => e.CodArticolo) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.CodMacchina).HasMaxLength(50); - - entity.Property(e => e.DataRif).HasColumnType("datetime"); - - entity.Property(e => e.DescClasseTempo).HasMaxLength(50); - - entity.Property(e => e.DescMacchina).HasMaxLength(50); - - entity.Property(e => e.Durata).HasColumnType("numeric(38, 7)"); - - entity.Property(e => e.IdxMacchina) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.SemColore) - .IsRequired() - .HasMaxLength(6) - .IsUnicode(false); - - entity.Property(e => e.Semaforo).HasMaxLength(50); - - entity.Property(e => e.TempoCicloBase).HasColumnType("decimal(18, 8)"); - - entity.Property(e => e.Turno) - .IsRequired() - .HasMaxLength(5); - }); - - modelBuilder.Entity(entity => - { - entity.HasNoKey(); - - entity.ToView("vECP"); - - entity.Property(e => e.CommessaEsterna) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.DataFrom) - .HasColumnType("datetime") - .HasColumnName("dataFrom"); - - entity.Property(e => e.DataOraConf).HasColumnType("datetime"); - - entity.Property(e => e.DataTo) - .HasColumnType("datetime") - .HasColumnName("dataTo"); - - entity.Property(e => e.IdxMacchina) - .IsRequired() - .HasMaxLength(50) - .HasColumnName("idxMacchina"); - - entity.Property(e => e.PezziConf).HasColumnName("pezziConf"); - - entity.Property(e => e.PezziDaRilav).HasColumnName("pezziDaRilav"); - - entity.Property(e => e.PezziScar).HasColumnName("pezziScar"); - }); - - modelBuilder.Entity(entity => - { - entity.HasNoKey(); - - entity.ToView("v_ECP", "export"); - - entity.Property(e => e.CodArticolo) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.CodMacchina).HasMaxLength(50); - - entity.Property(e => e.Cognome) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.DataOraConf).HasColumnType("datetime"); - - entity.Property(e => e.DescMacchina).HasMaxLength(50); - - entity.Property(e => e.IdxEcp).HasColumnName("idxECP"); - - entity.Property(e => e.IdxMacchina) - .IsRequired() - .HasMaxLength(50) - .HasColumnName("idxMacchina"); - - entity.Property(e => e.IdxOdl).HasColumnName("IdxODL"); - - entity.Property(e => e.KeyRichiesta) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.Nome) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.PezziConf).HasColumnName("pezziConf"); - - entity.Property(e => e.PezziDaRilav).HasColumnName("pezziDaRilav"); - - entity.Property(e => e.PezziScar).HasColumnName("pezziScar"); - }); - - modelBuilder.Entity(entity => - { - entity.HasNoKey(); - - entity.ToView("v_ECP_Extended", "export"); - - entity.Property(e => e.CodArticolo) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.CodMacchina).HasMaxLength(50); - - entity.Property(e => e.Cognome) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.DataOraConf).HasColumnType("datetime"); - - entity.Property(e => e.DescMacchina).HasMaxLength(50); - - entity.Property(e => e.DueDate).HasColumnType("datetime"); - - entity.Property(e => e.IdxEcp).HasColumnName("idxECP"); - - entity.Property(e => e.IdxMacchina) - .IsRequired() - .HasMaxLength(50) - .HasColumnName("idxMacchina"); - - entity.Property(e => e.IdxOdl).HasColumnName("IdxODL"); - - entity.Property(e => e.KeyRichiesta) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.Nome) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.PezziConf).HasColumnName("pezziConf"); - - entity.Property(e => e.PezziDaRilav).HasColumnName("pezziDaRilav"); - - entity.Property(e => e.PezziScar).HasColumnName("pezziScar"); - - entity.Property(e => e.Tcassegnato) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TCAssegnato"); - }); - - modelBuilder.Entity(entity => - { - entity.HasNoKey(); - - entity.ToView("vKIT"); - - entity.Property(e => e.KeyKit) - .IsRequired() - .HasMaxLength(50); - }); - - modelBuilder.Entity(entity => - { - entity.HasNoKey(); - - entity.ToView("vODL"); - - entity.Property(e => e.CodArticolo) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.CommessaAs400) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.DataAppr).HasColumnType("datetime"); - - entity.Property(e => e.DataFine).HasColumnType("datetime"); - - entity.Property(e => e.DataInizio).HasColumnType("datetime"); - - entity.Property(e => e.DueDate).HasColumnType("datetime"); - - entity.Property(e => e.IdxMacchina).HasMaxLength(50); - - entity.Property(e => e.IdxOdl).HasColumnName("IdxODL"); - - entity.Property(e => e.KeyRichiesta) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.Note).HasMaxLength(2500); - - entity.Property(e => e.Provvisorio).HasColumnName("provvisorio"); - - entity.Property(e => e.Tcassegnato) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TCAssegnato"); - - entity.Property(e => e.TcrichAttr) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TCRichAttr"); - - entity.Property(e => e.UserAppr).HasMaxLength(50); - }); - - modelBuilder.Entity(entity => - { - entity.HasNoKey(); - - entity.ToView("v_ODL", "export"); - - entity.Property(e => e.CodArticolo) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.CodArticoloParent).IsRequired(); - - entity.Property(e => e.CodMacchina).HasMaxLength(50); - - entity.Property(e => e.DataFine).HasColumnType("datetime"); - - entity.Property(e => e.DataInizio).HasColumnType("datetime"); - - entity.Property(e => e.DescMacchina).HasMaxLength(50); - - entity.Property(e => e.DueDate).HasColumnType("datetime"); - - entity.Property(e => e.IdxMacchina).HasMaxLength(50); - - entity.Property(e => e.IdxOdl).HasColumnName("IdxODL"); - - entity.Property(e => e.KeyRichiesta) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.KeyRichiestaParent).IsRequired(); - - entity.Property(e => e.Tcassegnato) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TCAssegnato"); - }); - - modelBuilder.Entity(entity => - { - entity.HasNoKey(); - - entity.ToView("v_PODL_NonChiusi", "export"); - - entity.Property(e => e.CodArticolo) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.CodGruppo) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.CodMacchina) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.DataInizio).HasColumnType("datetime"); - - entity.Property(e => e.DescArticolo).HasMaxLength(301); - - entity.Property(e => e.DueDate).HasColumnType("datetime"); - - entity.Property(e => e.IdxMacchina) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.IdxOdl).HasColumnName("IdxODL"); - - entity.Property(e => e.IdxPromessa).HasColumnName("idxPromessa"); - - entity.Property(e => e.KeyBcode) - .IsRequired() - .HasMaxLength(50) - .HasColumnName("KeyBCode"); - - entity.Property(e => e.KeyRichiesta) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.Nome).HasMaxLength(50); - - entity.Property(e => e.Tcassegnato) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TCAssegnato"); - - entity.Property(e => e.TotMinProg).HasColumnType("decimal(29, 8)"); - - entity.Property(e => e.TotOreProg).HasColumnType("decimal(32, 11)"); - }); -#endif - - modelBuilder.Entity(entity => - { - entity.HasNoKey(); - - entity.ToView("vRS"); - - entity.Property(e => e.Causale) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.CodArticolo) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.DataOra).HasColumnType("datetime"); - - entity.Property(e => e.DataOraProdRec).HasColumnType("datetime"); - - entity.Property(e => e.Descrizione) - .IsRequired() - .HasMaxLength(250); - - entity.Property(e => e.IdxMacchina) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.IdxOdl).HasColumnName("IdxODL"); - - entity.Property(e => e.KeyRichiesta) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.Note) - .IsRequired() - .HasMaxLength(250); - }); -#if false - - modelBuilder.Entity(entity => - { - entity.HasNoKey(); - - entity.ToView("v_RS", "export"); - - entity.Property(e => e.Causale) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.CodArticolo) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.Cognome) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.DataOraRif).HasColumnType("datetime"); - - entity.Property(e => e.Descrizione) - .IsRequired() - .HasMaxLength(250); - - entity.Property(e => e.IdxMacchina) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.IdxOdl).HasColumnName("IdxODL"); - - entity.Property(e => e.KeyRichiesta) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.Nome) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.Note) - .IsRequired() - .HasMaxLength(250); - }); -#endif - - modelBuilder.Entity(entity => - { - entity.HasNoKey(); - - entity.ToView("vRC"); - - entity.Property(e => e.CodArticolo) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.DataOra).HasColumnType("datetime"); - - entity.Property(e => e.EsitoOk).HasColumnName("EsitoOK"); - - entity.Property(e => e.IdxControllo).ValueGeneratedOnAdd(); - - entity.Property(e => e.IdxMacchina) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.IdxOdl).HasColumnName("IdxODL"); - - entity.Property(e => e.Note) - .IsRequired() - .HasMaxLength(250); - }); - -#if false - modelBuilder.Entity(entity => - { - entity.HasNoKey(); - - entity.ToView("v_TC_Stat", "export"); - - entity.Property(e => e.CodArticolo) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.CodGruppo) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.CodMacchina).HasMaxLength(50); - - entity.Property(e => e.DescMacchina).HasMaxLength(50); - - entity.Property(e => e.IdxMacchina) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.TcStat) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TC_Stat"); - - entity.Property(e => e.TcType).HasColumnName("TC_Type"); - }); - - modelBuilder.Entity(entity => - { - entity.HasNoKey(); - - entity.ToView("vTCR"); - - entity.Property(e => e.CodArticolo) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.DataOraRif).HasColumnType("datetime"); - - entity.Property(e => e.IdxMacchina) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.IdxOdl).HasColumnName("IdxODL"); - - entity.Property(e => e.KeyRichiesta) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.Tcassegnato) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TCAssegnato"); - - entity.Property(e => e.Tcmedio) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TCMedio"); - }); - - modelBuilder.Entity(entity => - { - entity.HasNoKey(); - - entity.ToView("v_TCR", "export"); - - entity.Property(e => e.CodArticolo) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.CodMacchina).HasMaxLength(50); - - entity.Property(e => e.DataOraRif).HasColumnType("datetime"); - - entity.Property(e => e.DescMacchina).HasMaxLength(50); - - entity.Property(e => e.IdxMacchina) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.Tc50p) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TC50p"); - - entity.Property(e => e.Tcmax) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TCMax"); - - entity.Property(e => e.Tcmedio) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TCMedio"); - - entity.Property(e => e.Tcmin) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TCMin"); - }); - - modelBuilder.Entity(entity => - { - entity.HasNoKey(); - - entity.ToView("v_TCR_Day", "export"); - - entity.Property(e => e.CodArticolo) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.CodMacchina).HasMaxLength(50); - - entity.Property(e => e.DataOraRif).HasColumnType("datetime"); - - entity.Property(e => e.DescMacchina).HasMaxLength(50); - - entity.Property(e => e.IdxMacchina) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.Tc50p) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TC50p"); - - entity.Property(e => e.Tcmax) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TCMax"); - - entity.Property(e => e.Tcmedio) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TCMedio"); - - entity.Property(e => e.Tcmin) - .HasColumnType("decimal(18, 8)") - .HasColumnName("TCMin"); - }); -#endif - - modelBuilder.Entity(entity => - { - entity.HasNoKey(); - - entity.ToView("v_UL", "export"); - - entity.Property(e => e.Azione) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.CodArticolo) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.Cognome) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.DataOraRif).HasColumnType("datetime"); - - entity.Property(e => e.IdxLog).ValueGeneratedOnAdd(); - - entity.Property(e => e.IdxMacchina) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.Nome) - .IsRequired() - .HasMaxLength(50); - - entity.Property(e => e.Qta).HasColumnType("decimal(18, 8)"); - - entity.Property(e => e.Valore) - .IsRequired() - .HasMaxLength(250); - }); -#if false - - modelBuilder.Entity(entity => - { - entity.HasKey(e => new { e.IdxMacchina, e.CodArticolo }); - - entity.ToTable("VetoTC"); - - entity.Property(e => e.IdxMacchina).HasMaxLength(50); - - entity.Property(e => e.CodArticolo).HasMaxLength(50); - - entity.Property(e => e.SogliaTc) - .HasColumnType("decimal(18, 8)") - .HasColumnName("SogliaTC"); - - entity.Property(e => e.VetoTc1) - .IsRequired() - .HasColumnName("VetoTC") - .HasDefaultValueSql("((1))"); - }); -#endif - - OnModelCreatingPartial(modelBuilder); - } - - #endregion Protected Methods - } -} \ No newline at end of file diff --git a/MpDataLayer/Resources/Readme.md b/MpDataLayer/Resources/Readme.md deleted file mode 100644 index 29cc121b..00000000 --- a/MpDataLayer/Resources/Readme.md +++ /dev/null @@ -1,23 +0,0 @@ -# Appunti gestione MP-STAT DB - - -Per la gestione dell'accesso al DB statistiche si opera con EFCore --> apop blazor server - -## Scaffolding DB iniziale - - Scaffold-DbContext "Server=SQL2016DEV;Database=MoonPro_STATS;Trusted_Connection=True;" Microsoft.EntityFrameworkCore.SqlServer -OutputDir DatabaseModels - -## Scaffolding SOLO di tabelle/viste selezionate (con force update) - - Scaffold-DbContext "Server=SQL2016DEV;Database=MoonPro_STATS;Trusted_Connection=True;" Microsoft.EntityFrameworkCore.SqlServer -OutputDir DatabaseModels -Tables v_RS, v_TC_Stat, v_TCR, v_TCR_Day, v_UL - - - -## Approfondimenti - -Qualche link di approfondimento: - - - https://docs.microsoft.com/en-us/ef/core/ - - https://docs.microsoft.com/en-us/ef/core/extensions/ - - https://www.entityframeworktutorial.net/efcore/create-model-for-existing-database-in-ef-core.aspx - - https://entityframework.net/ef-code-first \ No newline at end of file diff --git a/MpDataLayer/StatsDbContext.cs b/MpDataLayer/StatsDbContext.cs deleted file mode 100644 index e52f398f..00000000 --- a/MpDataLayer/StatsDbContext.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace MP.Data -{ - public class StatsDbContext - { - } -} \ No newline at end of file From a8a3bfdc0a44db8b566ed2fda305629e6c12af3a Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Mon, 17 May 2021 13:35:20 +0200 Subject: [PATCH 4/6] Migrazione classe Mp.Stats --- MP-STATS.sln | 4 ++-- {MP-STATS => MP.Stats}/App.razor | 0 {MP-STATS => MP.Stats}/Components/CmpFooter.razor | 0 {MP-STATS => MP.Stats}/Components/CmpTop.razor | 2 +- {MP-STATS => MP.Stats}/Components/DataPager.razor | 0 {MP-STATS => MP.Stats}/Components/HomeButton.razor | 0 {MP-STATS => MP.Stats}/Components/SearchMod.razor | 4 ++-- {MP-STATS => MP.Stats}/Data/MessageService.cs | 2 +- {MP-STATS => MP.Stats}/Data/MpStatsService.cs | 10 +++++----- {MP-STATS => MP.Stats}/Data/WeatherForecast.cs | 2 +- .../Data/WeatherForecastService.cs | 2 +- .../MP-STATS.csproj => MP.Stats/MP.Stats.csproj | 4 ++-- {MP-STATS => MP.Stats}/Pages/Controlli.razor | 4 ++-- {MP-STATS => MP.Stats}/Pages/Counter.razor | 0 {MP-STATS => MP.Stats}/Pages/Error.cshtml | 2 +- {MP-STATS => MP.Stats}/Pages/Error.cshtml.cs | 2 +- {MP-STATS => MP.Stats}/Pages/FetchData.razor | 2 +- {MP-STATS => MP.Stats}/Pages/Index.razor | 4 ++-- {MP-STATS => MP.Stats}/Pages/Scarti.razor | 4 ++-- {MP-STATS => MP.Stats}/Pages/Scarti.razor.cs | 8 ++++---- {MP-STATS => MP.Stats}/Pages/_Host.cshtml | 2 +- {MP-STATS => MP.Stats}/Pages/_Host.cshtml.bak | 2 +- {MP-STATS => MP.Stats}/Program.cs | 2 +- .../Properties/launchSettings.json | 0 {MP-STATS => MP.Stats}/Shared/MainLayout.razor | 4 ++-- {MP-STATS => MP.Stats}/Shared/MainLayout.razor.css | 0 {MP-STATS => MP.Stats}/Shared/NavMenu.razor | 0 {MP-STATS => MP.Stats}/Shared/NavMenu.razor.css | 0 {MP-STATS => MP.Stats}/Startup.cs | 4 ++-- {MP-STATS => MP.Stats}/Startup.cs.bak | 4 ++-- {MP-STATS => MP.Stats}/_Imports.razor | 4 ++-- {MP-STATS => MP.Stats}/appsettings.Development.json | 0 {MP-STATS => MP.Stats}/appsettings.Production.json | 0 {MP-STATS => MP.Stats}/appsettings.Staging.json | 0 {MP-STATS => MP.Stats}/appsettings.json | 0 {MP-STATS => MP.Stats}/appsettings.json.bak | 0 {MP-STATS => MP.Stats}/logs/.placeholder | 0 {MP-STATS => MP.Stats}/post-build.ps1 | 0 .../wwwroot/css/bootstrap/bootstrap.min.css | 0 .../wwwroot/css/bootstrap/bootstrap.min.css.map | 0 {MP-STATS => MP.Stats}/wwwroot/css/fonts.css | 0 {MP-STATS => MP.Stats}/wwwroot/css/fonts.less | 0 .../wwwroot/css/open-iconic/FONT-LICENSE | 0 .../wwwroot/css/open-iconic/ICON-LICENSE | 0 .../wwwroot/css/open-iconic/README.md | 0 .../font/css/open-iconic-bootstrap.min.css | 0 .../css/open-iconic/font/fonts/open-iconic.eot | Bin .../css/open-iconic/font/fonts/open-iconic.otf | Bin .../css/open-iconic/font/fonts/open-iconic.svg | 0 .../css/open-iconic/font/fonts/open-iconic.ttf | Bin .../css/open-iconic/font/fonts/open-iconic.woff | Bin {MP-STATS => MP.Stats}/wwwroot/css/site.css | 0 {MP-STATS => MP.Stats}/wwwroot/css/site.less | 0 {MP-STATS => MP.Stats}/wwwroot/favicon.ico | Bin .../wwwroot/fonts/lato-v17-latin-regular.eot | Bin .../wwwroot/fonts/lato-v17-latin-regular.svg | 0 .../wwwroot/fonts/lato-v17-latin-regular.ttf | Bin .../wwwroot/fonts/lato-v17-latin-regular.woff | Bin .../wwwroot/fonts/lato-v17-latin-regular.woff2 | Bin .../wwwroot/fonts/roboto-v27-latin-regular.eot | Bin .../wwwroot/fonts/roboto-v27-latin-regular.svg | 0 .../wwwroot/fonts/roboto-v27-latin-regular.ttf | Bin .../wwwroot/fonts/roboto-v27-latin-regular.woff | Bin .../wwwroot/fonts/roboto-v27-latin-regular.woff2 | Bin {MP-STATS => MP.Stats}/wwwroot/img/LogoBlu.svg | 0 {MP-STATS => MP.Stats}/wwwroot/js/debounce.js | 0 {MP-STATS => MP.Stats}/wwwroot/js/external.js | 0 67 files changed, 39 insertions(+), 39 deletions(-) rename {MP-STATS => MP.Stats}/App.razor (100%) rename {MP-STATS => MP.Stats}/Components/CmpFooter.razor (100%) rename {MP-STATS => MP.Stats}/Components/CmpTop.razor (97%) rename {MP-STATS => MP.Stats}/Components/DataPager.razor (100%) rename {MP-STATS => MP.Stats}/Components/HomeButton.razor (100%) rename {MP-STATS => MP.Stats}/Components/SearchMod.razor (94%) rename {MP-STATS => MP.Stats}/Data/MessageService.cs (98%) rename {MP-STATS => MP.Stats}/Data/MpStatsService.cs (85%) rename {MP-STATS => MP.Stats}/Data/WeatherForecast.cs (91%) rename {MP-STATS => MP.Stats}/Data/WeatherForecastService.cs (96%) rename MP-STATS/MP-STATS.csproj => MP.Stats/MP.Stats.csproj (77%) rename {MP-STATS => MP.Stats}/Pages/Controlli.razor (79%) rename {MP-STATS => MP.Stats}/Pages/Counter.razor (100%) rename {MP-STATS => MP.Stats}/Pages/Error.cshtml (97%) rename {MP-STATS => MP.Stats}/Pages/Error.cshtml.cs (97%) rename {MP-STATS => MP.Stats}/Pages/FetchData.razor (98%) rename {MP-STATS => MP.Stats}/Pages/Index.razor (97%) rename {MP-STATS => MP.Stats}/Pages/Scarti.razor (97%) rename {MP-STATS => MP.Stats}/Pages/Scarti.razor.cs (95%) rename {MP-STATS => MP.Stats}/Pages/_Host.cshtml (97%) rename {MP-STATS => MP.Stats}/Pages/_Host.cshtml.bak (97%) rename {MP-STATS => MP.Stats}/Program.cs (97%) rename {MP-STATS => MP.Stats}/Properties/launchSettings.json (100%) rename {MP-STATS => MP.Stats}/Shared/MainLayout.razor (96%) rename {MP-STATS => MP.Stats}/Shared/MainLayout.razor.css (100%) rename {MP-STATS => MP.Stats}/Shared/NavMenu.razor (100%) rename {MP-STATS => MP.Stats}/Shared/NavMenu.razor.css (100%) rename {MP-STATS => MP.Stats}/Startup.cs (98%) rename {MP-STATS => MP.Stats}/Startup.cs.bak (98%) rename {MP-STATS => MP.Stats}/_Imports.razor (89%) rename {MP-STATS => MP.Stats}/appsettings.Development.json (100%) rename {MP-STATS => MP.Stats}/appsettings.Production.json (100%) rename {MP-STATS => MP.Stats}/appsettings.Staging.json (100%) rename {MP-STATS => MP.Stats}/appsettings.json (100%) rename {MP-STATS => MP.Stats}/appsettings.json.bak (100%) rename {MP-STATS => MP.Stats}/logs/.placeholder (100%) rename {MP-STATS => MP.Stats}/post-build.ps1 (100%) rename {MP-STATS => MP.Stats}/wwwroot/css/bootstrap/bootstrap.min.css (100%) rename {MP-STATS => MP.Stats}/wwwroot/css/bootstrap/bootstrap.min.css.map (100%) rename {MP-STATS => MP.Stats}/wwwroot/css/fonts.css (100%) rename {MP-STATS => MP.Stats}/wwwroot/css/fonts.less (100%) rename {MP-STATS => MP.Stats}/wwwroot/css/open-iconic/FONT-LICENSE (100%) rename {MP-STATS => MP.Stats}/wwwroot/css/open-iconic/ICON-LICENSE (100%) rename {MP-STATS => MP.Stats}/wwwroot/css/open-iconic/README.md (100%) rename {MP-STATS => MP.Stats}/wwwroot/css/open-iconic/font/css/open-iconic-bootstrap.min.css (100%) rename {MP-STATS => MP.Stats}/wwwroot/css/open-iconic/font/fonts/open-iconic.eot (100%) rename {MP-STATS => MP.Stats}/wwwroot/css/open-iconic/font/fonts/open-iconic.otf (100%) rename {MP-STATS => MP.Stats}/wwwroot/css/open-iconic/font/fonts/open-iconic.svg (100%) rename {MP-STATS => MP.Stats}/wwwroot/css/open-iconic/font/fonts/open-iconic.ttf (100%) rename {MP-STATS => MP.Stats}/wwwroot/css/open-iconic/font/fonts/open-iconic.woff (100%) rename {MP-STATS => MP.Stats}/wwwroot/css/site.css (100%) rename {MP-STATS => MP.Stats}/wwwroot/css/site.less (100%) rename {MP-STATS => MP.Stats}/wwwroot/favicon.ico (100%) rename {MP-STATS => MP.Stats}/wwwroot/fonts/lato-v17-latin-regular.eot (100%) rename {MP-STATS => MP.Stats}/wwwroot/fonts/lato-v17-latin-regular.svg (100%) rename {MP-STATS => MP.Stats}/wwwroot/fonts/lato-v17-latin-regular.ttf (100%) rename {MP-STATS => MP.Stats}/wwwroot/fonts/lato-v17-latin-regular.woff (100%) rename {MP-STATS => MP.Stats}/wwwroot/fonts/lato-v17-latin-regular.woff2 (100%) rename {MP-STATS => MP.Stats}/wwwroot/fonts/roboto-v27-latin-regular.eot (100%) rename {MP-STATS => MP.Stats}/wwwroot/fonts/roboto-v27-latin-regular.svg (100%) rename {MP-STATS => MP.Stats}/wwwroot/fonts/roboto-v27-latin-regular.ttf (100%) rename {MP-STATS => MP.Stats}/wwwroot/fonts/roboto-v27-latin-regular.woff (100%) rename {MP-STATS => MP.Stats}/wwwroot/fonts/roboto-v27-latin-regular.woff2 (100%) rename {MP-STATS => MP.Stats}/wwwroot/img/LogoBlu.svg (100%) rename {MP-STATS => MP.Stats}/wwwroot/js/debounce.js (100%) rename {MP-STATS => MP.Stats}/wwwroot/js/external.js (100%) diff --git a/MP-STATS.sln b/MP-STATS.sln index 266dbaf1..c8630043 100644 --- a/MP-STATS.sln +++ b/MP-STATS.sln @@ -3,9 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 16 VisualStudioVersion = 16.0.31229.75 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MP-STATS", "MP-STATS\MP-STATS.csproj", "{D9901B50-E61C-400C-B62C-FA060CF72C29}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MP-STATS", "MP.Stats\MP.Stats.csproj", "{D9901B50-E61C-400C-B62C-FA060CF72C29}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MpDataLayer", "MpDataLayer\MpDataLayer.csproj", "{10BA8450-301D-49C7-8E1E-21B7469C225C}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MP.Data", "MP.Data\MP.Data.csproj", "{10BA8450-301D-49C7-8E1E-21B7469C225C}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution diff --git a/MP-STATS/App.razor b/MP.Stats/App.razor similarity index 100% rename from MP-STATS/App.razor rename to MP.Stats/App.razor diff --git a/MP-STATS/Components/CmpFooter.razor b/MP.Stats/Components/CmpFooter.razor similarity index 100% rename from MP-STATS/Components/CmpFooter.razor rename to MP.Stats/Components/CmpFooter.razor diff --git a/MP-STATS/Components/CmpTop.razor b/MP.Stats/Components/CmpTop.razor similarity index 97% rename from MP-STATS/Components/CmpTop.razor rename to MP.Stats/Components/CmpTop.razor index 4128b284..187e684f 100644 --- a/MP-STATS/Components/CmpTop.razor +++ b/MP.Stats/Components/CmpTop.razor @@ -1,4 +1,4 @@ -@using MP_STATS.Components +@using MP.Stats.Components @using System.Security.Claims @using Microsoft.AspNetCore.Components.Authorization diff --git a/MP-STATS/Components/DataPager.razor b/MP.Stats/Components/DataPager.razor similarity index 100% rename from MP-STATS/Components/DataPager.razor rename to MP.Stats/Components/DataPager.razor diff --git a/MP-STATS/Components/HomeButton.razor b/MP.Stats/Components/HomeButton.razor similarity index 100% rename from MP-STATS/Components/HomeButton.razor rename to MP.Stats/Components/HomeButton.razor diff --git a/MP-STATS/Components/SearchMod.razor b/MP.Stats/Components/SearchMod.razor similarity index 94% rename from MP-STATS/Components/SearchMod.razor rename to MP.Stats/Components/SearchMod.razor index 85d0eb95..0aab3cec 100644 --- a/MP-STATS/Components/SearchMod.razor +++ b/MP.Stats/Components/SearchMod.razor @@ -1,5 +1,5 @@ -@using MP_STATS.Components -@using MP_STATS.Data +@using MP.Stats.Components +@using MP.Stats.Data @inject MessageService MessageService
          diff --git a/MP-STATS/Data/MessageService.cs b/MP.Stats/Data/MessageService.cs similarity index 98% rename from MP-STATS/Data/MessageService.cs rename to MP.Stats/Data/MessageService.cs index 0ea09851..c01e734c 100644 --- a/MP-STATS/Data/MessageService.cs +++ b/MP.Stats/Data/MessageService.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; -namespace MP_STATS.Data +namespace MP.Stats.Data { public class MessageService { diff --git a/MP-STATS/Data/MpStatsService.cs b/MP.Stats/Data/MpStatsService.cs similarity index 85% rename from MP-STATS/Data/MpStatsService.cs rename to MP.Stats/Data/MpStatsService.cs index df8ce951..5c0c2570 100644 --- a/MP-STATS/Data/MpStatsService.cs +++ b/MP.Stats/Data/MpStatsService.cs @@ -6,9 +6,9 @@ using System.Configuration; using System.Text; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Logging; -using MpDataLayer; +using MP.Data; -namespace MP_STATS.Data +namespace MP.Stats.Data { public class MpStatsService { @@ -28,7 +28,7 @@ namespace MP_STATS.Data #region Public Fields - public static MpDataLayer.Controllers.MpStatsController dbController; + public static MP.Data.Controllers.MpStatsController dbController; #endregion Public Fields @@ -45,7 +45,7 @@ namespace MP_STATS.Data } else { - dbController = new MpDataLayer.Controllers.MpStatsController(configuration); + dbController = new MP.Data.Controllers.MpStatsController(configuration); StringBuilder sb = new StringBuilder(); sb.AppendLine($"DbController OK"); //sb.AppendLine($"CST: {dbController.CustomersCount()} | CNT: {dbController.CountersCount()} | BSK: {dbController.BasketsCount()} | NGT: {dbController.NegotiationsCount()} | DOC: {dbController.DocsCount()} | ITM: {dbController.ItemsCount()} | RES: {dbController.ResourcesCount()}"); @@ -62,7 +62,7 @@ namespace MP_STATS.Data dbController.rollBackEntity(item); } - public Task ScartiGetAll(int numRecord, string searchVal = "") + public Task ScartiGetAll(int numRecord, string searchVal = "") { return Task.FromResult(dbController.ScartiGetAll(numRecord, searchVal).ToArray()); } diff --git a/MP-STATS/Data/WeatherForecast.cs b/MP.Stats/Data/WeatherForecast.cs similarity index 91% rename from MP-STATS/Data/WeatherForecast.cs rename to MP.Stats/Data/WeatherForecast.cs index c06bbd67..b5ff87aa 100644 --- a/MP-STATS/Data/WeatherForecast.cs +++ b/MP.Stats/Data/WeatherForecast.cs @@ -1,6 +1,6 @@ using System; -namespace MP_STATS.Data +namespace MP.Stats.Data { public class WeatherForecast { diff --git a/MP-STATS/Data/WeatherForecastService.cs b/MP.Stats/Data/WeatherForecastService.cs similarity index 96% rename from MP-STATS/Data/WeatherForecastService.cs rename to MP.Stats/Data/WeatherForecastService.cs index 069417db..02f62be9 100644 --- a/MP-STATS/Data/WeatherForecastService.cs +++ b/MP.Stats/Data/WeatherForecastService.cs @@ -2,7 +2,7 @@ using System; using System.Linq; using System.Threading.Tasks; -namespace MP_STATS.Data +namespace MP.Stats.Data { public class WeatherForecastService { diff --git a/MP-STATS/MP-STATS.csproj b/MP.Stats/MP.Stats.csproj similarity index 77% rename from MP-STATS/MP-STATS.csproj rename to MP.Stats/MP.Stats.csproj index f16d772f..4ccf0775 100644 --- a/MP-STATS/MP-STATS.csproj +++ b/MP.Stats/MP.Stats.csproj @@ -2,11 +2,11 @@ net5.0 - MP_STATS + MP.Stats - + diff --git a/MP-STATS/Pages/Controlli.razor b/MP.Stats/Pages/Controlli.razor similarity index 79% rename from MP-STATS/Pages/Controlli.razor rename to MP.Stats/Pages/Controlli.razor index 854bc248..0c0fb7b2 100644 --- a/MP-STATS/Pages/Controlli.razor +++ b/MP.Stats/Pages/Controlli.razor @@ -1,7 +1,7 @@ @page "/controlli" -@using MP_STATS.Components -@using MP_STATS.Data +@using MP.Stats.Components +@using MP.Stats.Data
          Controlli
          diff --git a/MP-STATS/Pages/Counter.razor b/MP.Stats/Pages/Counter.razor similarity index 100% rename from MP-STATS/Pages/Counter.razor rename to MP.Stats/Pages/Counter.razor diff --git a/MP-STATS/Pages/Error.cshtml b/MP.Stats/Pages/Error.cshtml similarity index 97% rename from MP-STATS/Pages/Error.cshtml rename to MP.Stats/Pages/Error.cshtml index b8bc6bd8..b49efeb6 100644 --- a/MP-STATS/Pages/Error.cshtml +++ b/MP.Stats/Pages/Error.cshtml @@ -1,5 +1,5 @@ @page -@model MP_STATS.Pages.ErrorModel +@model MP.Stats.Pages.ErrorModel diff --git a/MP-STATS/Pages/Error.cshtml.cs b/MP.Stats/Pages/Error.cshtml.cs similarity index 97% rename from MP-STATS/Pages/Error.cshtml.cs rename to MP.Stats/Pages/Error.cshtml.cs index 87fbb7c5..28c1142f 100644 --- a/MP-STATS/Pages/Error.cshtml.cs +++ b/MP.Stats/Pages/Error.cshtml.cs @@ -7,7 +7,7 @@ using System.Diagnostics; using System.Linq; using System.Threading.Tasks; -namespace MP_STATS.Pages +namespace MP.Stats.Pages { [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)] [IgnoreAntiforgeryToken] diff --git a/MP-STATS/Pages/FetchData.razor b/MP.Stats/Pages/FetchData.razor similarity index 98% rename from MP-STATS/Pages/FetchData.razor rename to MP.Stats/Pages/FetchData.razor index 69a40f87..de4d781b 100644 --- a/MP-STATS/Pages/FetchData.razor +++ b/MP.Stats/Pages/FetchData.razor @@ -1,6 +1,6 @@ @page "/fetchdata" -@using MP_STATS.Data +@using MP.Stats.Data @inject WeatherForecastService ForecastService

          Weather forecast

          diff --git a/MP-STATS/Pages/Index.razor b/MP.Stats/Pages/Index.razor similarity index 97% rename from MP-STATS/Pages/Index.razor rename to MP.Stats/Pages/Index.razor index 7e53c4fd..4cf3b8ee 100644 --- a/MP-STATS/Pages/Index.razor +++ b/MP.Stats/Pages/Index.razor @@ -1,7 +1,7 @@ @page "/" -@using MP_STATS.Components -@using MP_STATS.Data +@using MP.Stats.Components +@using MP.Stats.Data
          diff --git a/MP-STATS/Pages/Scarti.razor b/MP.Stats/Pages/Scarti.razor similarity index 97% rename from MP-STATS/Pages/Scarti.razor rename to MP.Stats/Pages/Scarti.razor index 8ce0c777..e5b7ed07 100644 --- a/MP-STATS/Pages/Scarti.razor +++ b/MP.Stats/Pages/Scarti.razor @@ -1,7 +1,7 @@ @page "/scarti" -@using MP_STATS.Components -@using MP_STATS.Data +@using MP.Stats.Components +@using MP.Stats.Data
          Scarti
          diff --git a/MP-STATS/Pages/Scarti.razor.cs b/MP.Stats/Pages/Scarti.razor.cs similarity index 95% rename from MP-STATS/Pages/Scarti.razor.cs rename to MP.Stats/Pages/Scarti.razor.cs index 8a10dc37..75b83121 100644 --- a/MP-STATS/Pages/Scarti.razor.cs +++ b/MP.Stats/Pages/Scarti.razor.cs @@ -1,18 +1,18 @@ using Microsoft.AspNetCore.Components; using Microsoft.JSInterop; -using MP_STATS.Data; +using MP.Stats.Data; using System; using System.Threading.Tasks; -namespace MP_STATS.Pages +namespace MP.Stats.Pages { public partial class Scarti : ComponentBase, IDisposable { #region Private Fields - private MpDataLayer.DatabaseModels.ResScarti currRecord = null; + private MP.Data.DatabaseModels.ResScarti currRecord = null; - private MpDataLayer.DatabaseModels.ResScarti[] ListRecords; + private MP.Data.DatabaseModels.ResScarti[] ListRecords; #endregion Private Fields diff --git a/MP-STATS/Pages/_Host.cshtml b/MP.Stats/Pages/_Host.cshtml similarity index 97% rename from MP-STATS/Pages/_Host.cshtml rename to MP.Stats/Pages/_Host.cshtml index 499c43d3..9d3af208 100644 --- a/MP-STATS/Pages/_Host.cshtml +++ b/MP.Stats/Pages/_Host.cshtml @@ -1,7 +1,7 @@ @page "/" @using System.Globalization @using Microsoft.AspNetCore.Localization -@namespace MP_STATS.Pages +@namespace MP.Stats.Pages @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers @{ Layout = null; diff --git a/MP-STATS/Pages/_Host.cshtml.bak b/MP.Stats/Pages/_Host.cshtml.bak similarity index 97% rename from MP-STATS/Pages/_Host.cshtml.bak rename to MP.Stats/Pages/_Host.cshtml.bak index 0b5cdcf0..8c6accba 100644 --- a/MP-STATS/Pages/_Host.cshtml.bak +++ b/MP.Stats/Pages/_Host.cshtml.bak @@ -1,5 +1,5 @@ @page "/" -@namespace MP_STATS.Pages +@namespace MP.Stats.Pages @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers @{ Layout = null; diff --git a/MP-STATS/Program.cs b/MP.Stats/Program.cs similarity index 97% rename from MP-STATS/Program.cs rename to MP.Stats/Program.cs index 72c1800a..f159f7fc 100644 --- a/MP-STATS/Program.cs +++ b/MP.Stats/Program.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; -namespace MP_STATS +namespace MP.Stats { public class Program { diff --git a/MP-STATS/Properties/launchSettings.json b/MP.Stats/Properties/launchSettings.json similarity index 100% rename from MP-STATS/Properties/launchSettings.json rename to MP.Stats/Properties/launchSettings.json diff --git a/MP-STATS/Shared/MainLayout.razor b/MP.Stats/Shared/MainLayout.razor similarity index 96% rename from MP-STATS/Shared/MainLayout.razor rename to MP.Stats/Shared/MainLayout.razor index 0604e969..96964e0e 100644 --- a/MP-STATS/Shared/MainLayout.razor +++ b/MP.Stats/Shared/MainLayout.razor @@ -1,7 +1,7 @@ @inherits LayoutComponentBase -@using MP_STATS.Data -@using MP_STATS.Components +@using MP.Stats.Data +@using MP.Stats.Components @inject MessageService MessageService @implements IDisposable diff --git a/MP-STATS/Shared/MainLayout.razor.css b/MP.Stats/Shared/MainLayout.razor.css similarity index 100% rename from MP-STATS/Shared/MainLayout.razor.css rename to MP.Stats/Shared/MainLayout.razor.css diff --git a/MP-STATS/Shared/NavMenu.razor b/MP.Stats/Shared/NavMenu.razor similarity index 100% rename from MP-STATS/Shared/NavMenu.razor rename to MP.Stats/Shared/NavMenu.razor diff --git a/MP-STATS/Shared/NavMenu.razor.css b/MP.Stats/Shared/NavMenu.razor.css similarity index 100% rename from MP-STATS/Shared/NavMenu.razor.css rename to MP.Stats/Shared/NavMenu.razor.css diff --git a/MP-STATS/Startup.cs b/MP.Stats/Startup.cs similarity index 98% rename from MP-STATS/Startup.cs rename to MP.Stats/Startup.cs index 433ae5d0..ce078b63 100644 --- a/MP-STATS/Startup.cs +++ b/MP.Stats/Startup.cs @@ -5,7 +5,7 @@ using Microsoft.AspNetCore.HttpsPolicy; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; -using MP_STATS.Data; +using MP.Stats.Data; using System; using System.Collections.Generic; using System.Linq; @@ -14,7 +14,7 @@ using System.Threading.Tasks; using Microsoft.AspNetCore.Localization; using System.Globalization; -namespace MP_STATS +namespace MP.Stats { public class Startup { diff --git a/MP-STATS/Startup.cs.bak b/MP.Stats/Startup.cs.bak similarity index 98% rename from MP-STATS/Startup.cs.bak rename to MP.Stats/Startup.cs.bak index 137eb51f..bb9ae887 100644 --- a/MP-STATS/Startup.cs.bak +++ b/MP.Stats/Startup.cs.bak @@ -5,7 +5,7 @@ using Microsoft.AspNetCore.HttpsPolicy; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; -using MP_STATS.Data; +using MP.Stats.Data; using System; using System.Collections.Generic; using System.Linq; @@ -14,7 +14,7 @@ using System.Threading.Tasks; using Microsoft.AspNetCore.Localization; using System.Globalization; -namespace MP_STATS +namespace MP.Stats { public class Startup { diff --git a/MP-STATS/_Imports.razor b/MP.Stats/_Imports.razor similarity index 89% rename from MP-STATS/_Imports.razor rename to MP.Stats/_Imports.razor index a33d6b96..b335524c 100644 --- a/MP-STATS/_Imports.razor +++ b/MP.Stats/_Imports.razor @@ -6,5 +6,5 @@ @using Microsoft.AspNetCore.Components.Web @using Microsoft.AspNetCore.Components.Web.Virtualization @using Microsoft.JSInterop -@using MP_STATS -@using MP_STATS.Shared +@using MP.Stats +@using MP.Stats.Shared diff --git a/MP-STATS/appsettings.Development.json b/MP.Stats/appsettings.Development.json similarity index 100% rename from MP-STATS/appsettings.Development.json rename to MP.Stats/appsettings.Development.json diff --git a/MP-STATS/appsettings.Production.json b/MP.Stats/appsettings.Production.json similarity index 100% rename from MP-STATS/appsettings.Production.json rename to MP.Stats/appsettings.Production.json diff --git a/MP-STATS/appsettings.Staging.json b/MP.Stats/appsettings.Staging.json similarity index 100% rename from MP-STATS/appsettings.Staging.json rename to MP.Stats/appsettings.Staging.json diff --git a/MP-STATS/appsettings.json b/MP.Stats/appsettings.json similarity index 100% rename from MP-STATS/appsettings.json rename to MP.Stats/appsettings.json diff --git a/MP-STATS/appsettings.json.bak b/MP.Stats/appsettings.json.bak similarity index 100% rename from MP-STATS/appsettings.json.bak rename to MP.Stats/appsettings.json.bak diff --git a/MP-STATS/logs/.placeholder b/MP.Stats/logs/.placeholder similarity index 100% rename from MP-STATS/logs/.placeholder rename to MP.Stats/logs/.placeholder diff --git a/MP-STATS/post-build.ps1 b/MP.Stats/post-build.ps1 similarity index 100% rename from MP-STATS/post-build.ps1 rename to MP.Stats/post-build.ps1 diff --git a/MP-STATS/wwwroot/css/bootstrap/bootstrap.min.css b/MP.Stats/wwwroot/css/bootstrap/bootstrap.min.css similarity index 100% rename from MP-STATS/wwwroot/css/bootstrap/bootstrap.min.css rename to MP.Stats/wwwroot/css/bootstrap/bootstrap.min.css diff --git a/MP-STATS/wwwroot/css/bootstrap/bootstrap.min.css.map b/MP.Stats/wwwroot/css/bootstrap/bootstrap.min.css.map similarity index 100% rename from MP-STATS/wwwroot/css/bootstrap/bootstrap.min.css.map rename to MP.Stats/wwwroot/css/bootstrap/bootstrap.min.css.map diff --git a/MP-STATS/wwwroot/css/fonts.css b/MP.Stats/wwwroot/css/fonts.css similarity index 100% rename from MP-STATS/wwwroot/css/fonts.css rename to MP.Stats/wwwroot/css/fonts.css diff --git a/MP-STATS/wwwroot/css/fonts.less b/MP.Stats/wwwroot/css/fonts.less similarity index 100% rename from MP-STATS/wwwroot/css/fonts.less rename to MP.Stats/wwwroot/css/fonts.less diff --git a/MP-STATS/wwwroot/css/open-iconic/FONT-LICENSE b/MP.Stats/wwwroot/css/open-iconic/FONT-LICENSE similarity index 100% rename from MP-STATS/wwwroot/css/open-iconic/FONT-LICENSE rename to MP.Stats/wwwroot/css/open-iconic/FONT-LICENSE diff --git a/MP-STATS/wwwroot/css/open-iconic/ICON-LICENSE b/MP.Stats/wwwroot/css/open-iconic/ICON-LICENSE similarity index 100% rename from MP-STATS/wwwroot/css/open-iconic/ICON-LICENSE rename to MP.Stats/wwwroot/css/open-iconic/ICON-LICENSE diff --git a/MP-STATS/wwwroot/css/open-iconic/README.md b/MP.Stats/wwwroot/css/open-iconic/README.md similarity index 100% rename from MP-STATS/wwwroot/css/open-iconic/README.md rename to MP.Stats/wwwroot/css/open-iconic/README.md diff --git a/MP-STATS/wwwroot/css/open-iconic/font/css/open-iconic-bootstrap.min.css b/MP.Stats/wwwroot/css/open-iconic/font/css/open-iconic-bootstrap.min.css similarity index 100% rename from MP-STATS/wwwroot/css/open-iconic/font/css/open-iconic-bootstrap.min.css rename to MP.Stats/wwwroot/css/open-iconic/font/css/open-iconic-bootstrap.min.css diff --git a/MP-STATS/wwwroot/css/open-iconic/font/fonts/open-iconic.eot b/MP.Stats/wwwroot/css/open-iconic/font/fonts/open-iconic.eot similarity index 100% rename from MP-STATS/wwwroot/css/open-iconic/font/fonts/open-iconic.eot rename to MP.Stats/wwwroot/css/open-iconic/font/fonts/open-iconic.eot diff --git a/MP-STATS/wwwroot/css/open-iconic/font/fonts/open-iconic.otf b/MP.Stats/wwwroot/css/open-iconic/font/fonts/open-iconic.otf similarity index 100% rename from MP-STATS/wwwroot/css/open-iconic/font/fonts/open-iconic.otf rename to MP.Stats/wwwroot/css/open-iconic/font/fonts/open-iconic.otf diff --git a/MP-STATS/wwwroot/css/open-iconic/font/fonts/open-iconic.svg b/MP.Stats/wwwroot/css/open-iconic/font/fonts/open-iconic.svg similarity index 100% rename from MP-STATS/wwwroot/css/open-iconic/font/fonts/open-iconic.svg rename to MP.Stats/wwwroot/css/open-iconic/font/fonts/open-iconic.svg diff --git a/MP-STATS/wwwroot/css/open-iconic/font/fonts/open-iconic.ttf b/MP.Stats/wwwroot/css/open-iconic/font/fonts/open-iconic.ttf similarity index 100% rename from MP-STATS/wwwroot/css/open-iconic/font/fonts/open-iconic.ttf rename to MP.Stats/wwwroot/css/open-iconic/font/fonts/open-iconic.ttf diff --git a/MP-STATS/wwwroot/css/open-iconic/font/fonts/open-iconic.woff b/MP.Stats/wwwroot/css/open-iconic/font/fonts/open-iconic.woff similarity index 100% rename from MP-STATS/wwwroot/css/open-iconic/font/fonts/open-iconic.woff rename to MP.Stats/wwwroot/css/open-iconic/font/fonts/open-iconic.woff diff --git a/MP-STATS/wwwroot/css/site.css b/MP.Stats/wwwroot/css/site.css similarity index 100% rename from MP-STATS/wwwroot/css/site.css rename to MP.Stats/wwwroot/css/site.css diff --git a/MP-STATS/wwwroot/css/site.less b/MP.Stats/wwwroot/css/site.less similarity index 100% rename from MP-STATS/wwwroot/css/site.less rename to MP.Stats/wwwroot/css/site.less diff --git a/MP-STATS/wwwroot/favicon.ico b/MP.Stats/wwwroot/favicon.ico similarity index 100% rename from MP-STATS/wwwroot/favicon.ico rename to MP.Stats/wwwroot/favicon.ico diff --git a/MP-STATS/wwwroot/fonts/lato-v17-latin-regular.eot b/MP.Stats/wwwroot/fonts/lato-v17-latin-regular.eot similarity index 100% rename from MP-STATS/wwwroot/fonts/lato-v17-latin-regular.eot rename to MP.Stats/wwwroot/fonts/lato-v17-latin-regular.eot diff --git a/MP-STATS/wwwroot/fonts/lato-v17-latin-regular.svg b/MP.Stats/wwwroot/fonts/lato-v17-latin-regular.svg similarity index 100% rename from MP-STATS/wwwroot/fonts/lato-v17-latin-regular.svg rename to MP.Stats/wwwroot/fonts/lato-v17-latin-regular.svg diff --git a/MP-STATS/wwwroot/fonts/lato-v17-latin-regular.ttf b/MP.Stats/wwwroot/fonts/lato-v17-latin-regular.ttf similarity index 100% rename from MP-STATS/wwwroot/fonts/lato-v17-latin-regular.ttf rename to MP.Stats/wwwroot/fonts/lato-v17-latin-regular.ttf diff --git a/MP-STATS/wwwroot/fonts/lato-v17-latin-regular.woff b/MP.Stats/wwwroot/fonts/lato-v17-latin-regular.woff similarity index 100% rename from MP-STATS/wwwroot/fonts/lato-v17-latin-regular.woff rename to MP.Stats/wwwroot/fonts/lato-v17-latin-regular.woff diff --git a/MP-STATS/wwwroot/fonts/lato-v17-latin-regular.woff2 b/MP.Stats/wwwroot/fonts/lato-v17-latin-regular.woff2 similarity index 100% rename from MP-STATS/wwwroot/fonts/lato-v17-latin-regular.woff2 rename to MP.Stats/wwwroot/fonts/lato-v17-latin-regular.woff2 diff --git a/MP-STATS/wwwroot/fonts/roboto-v27-latin-regular.eot b/MP.Stats/wwwroot/fonts/roboto-v27-latin-regular.eot similarity index 100% rename from MP-STATS/wwwroot/fonts/roboto-v27-latin-regular.eot rename to MP.Stats/wwwroot/fonts/roboto-v27-latin-regular.eot diff --git a/MP-STATS/wwwroot/fonts/roboto-v27-latin-regular.svg b/MP.Stats/wwwroot/fonts/roboto-v27-latin-regular.svg similarity index 100% rename from MP-STATS/wwwroot/fonts/roboto-v27-latin-regular.svg rename to MP.Stats/wwwroot/fonts/roboto-v27-latin-regular.svg diff --git a/MP-STATS/wwwroot/fonts/roboto-v27-latin-regular.ttf b/MP.Stats/wwwroot/fonts/roboto-v27-latin-regular.ttf similarity index 100% rename from MP-STATS/wwwroot/fonts/roboto-v27-latin-regular.ttf rename to MP.Stats/wwwroot/fonts/roboto-v27-latin-regular.ttf diff --git a/MP-STATS/wwwroot/fonts/roboto-v27-latin-regular.woff b/MP.Stats/wwwroot/fonts/roboto-v27-latin-regular.woff similarity index 100% rename from MP-STATS/wwwroot/fonts/roboto-v27-latin-regular.woff rename to MP.Stats/wwwroot/fonts/roboto-v27-latin-regular.woff diff --git a/MP-STATS/wwwroot/fonts/roboto-v27-latin-regular.woff2 b/MP.Stats/wwwroot/fonts/roboto-v27-latin-regular.woff2 similarity index 100% rename from MP-STATS/wwwroot/fonts/roboto-v27-latin-regular.woff2 rename to MP.Stats/wwwroot/fonts/roboto-v27-latin-regular.woff2 diff --git a/MP-STATS/wwwroot/img/LogoBlu.svg b/MP.Stats/wwwroot/img/LogoBlu.svg similarity index 100% rename from MP-STATS/wwwroot/img/LogoBlu.svg rename to MP.Stats/wwwroot/img/LogoBlu.svg diff --git a/MP-STATS/wwwroot/js/debounce.js b/MP.Stats/wwwroot/js/debounce.js similarity index 100% rename from MP-STATS/wwwroot/js/debounce.js rename to MP.Stats/wwwroot/js/debounce.js diff --git a/MP-STATS/wwwroot/js/external.js b/MP.Stats/wwwroot/js/external.js similarity index 100% rename from MP-STATS/wwwroot/js/external.js rename to MP.Stats/wwwroot/js/external.js From a5d3eaa761eeb69d77ff9154fa9d0cd194da22e4 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Mon, 17 May 2021 14:36:30 +0200 Subject: [PATCH 5/6] fix pager con selettore tendina --- MP.Stats/Components/DataPager.razor | 37 ++++++++++++++++++++++------- 1 file changed, 29 insertions(+), 8 deletions(-) diff --git a/MP.Stats/Components/DataPager.razor b/MP.Stats/Components/DataPager.razor index 8516e5d9..527b8e78 100644 --- a/MP.Stats/Components/DataPager.razor +++ b/MP.Stats/Components/DataPager.razor @@ -1,21 +1,42 @@ 
          - -
          - - @*# record*@ -
          + row/pag:  +
          @code { + protected int _numRecord { get; set; } = 10; + [Parameter] - public int numRecord { get; set; } = 10; + public int numRecord + { + get + { + return _numRecord; + } + set + { + bool doReport = !_numRecord.Equals(value); + _numRecord = value; + if (doReport) + { + reportChange(); + } + } + } [Parameter] public EventCallback numRecordChanged { get; set; } - private async Task reportChange() + private void reportChange() { - await numRecordChanged.InvokeAsync(numRecord); + numRecordChanged.InvokeAsync(numRecord); } + } \ No newline at end of file From 5bd3ddbe4f17e6129edc62426e340cd467c01e29 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Mon, 17 May 2021 14:36:46 +0200 Subject: [PATCH 6/6] fixcss --- MP.Stats/Components/SearchMod.razor | 2 +- MP.Stats/MP.Stats.csproj | 13 ++++++ MP.Stats/Pages/Index.razor | 19 +++++--- MP.Stats/Pages/Scarti.razor | 58 ++++++++++++------------ MP.Stats/Pages/Scarti.razor.cs | 1 + MP.Stats/Pages/_Host.cshtml | 6 +-- MP.Stats/Shared/NavMenu.razor | 2 +- MP.Stats/compilerconfig.json | 10 +++++ MP.Stats/compilerconfig.json.defaults | 63 +++++++++++++++++++++++++++ MP.Stats/wwwroot/css/fonts.min.css | 1 + MP.Stats/wwwroot/css/site.min.css | 1 + 11 files changed, 135 insertions(+), 41 deletions(-) create mode 100644 MP.Stats/compilerconfig.json create mode 100644 MP.Stats/compilerconfig.json.defaults create mode 100644 MP.Stats/wwwroot/css/fonts.min.css create mode 100644 MP.Stats/wwwroot/css/site.min.css diff --git a/MP.Stats/Components/SearchMod.razor b/MP.Stats/Components/SearchMod.razor index 0aab3cec..efebcbba 100644 --- a/MP.Stats/Components/SearchMod.razor +++ b/MP.Stats/Components/SearchMod.razor @@ -3,7 +3,7 @@ @inject MessageService MessageService
          - +
          diff --git a/MP.Stats/MP.Stats.csproj b/MP.Stats/MP.Stats.csproj index 4ccf0775..52359c8b 100644 --- a/MP.Stats/MP.Stats.csproj +++ b/MP.Stats/MP.Stats.csproj @@ -5,6 +5,15 @@ MP.Stats + + + + + + <_ContentIncludedByDefault Remove="compilerconfig.json" /> + <_ContentIncludedByDefault Remove="wwwroot\css\fonts.min.css" /> + + @@ -13,6 +22,10 @@ + + + + PreserveNewest diff --git a/MP.Stats/Pages/Index.razor b/MP.Stats/Pages/Index.razor index 4cf3b8ee..91a38f96 100644 --- a/MP.Stats/Pages/Index.razor +++ b/MP.Stats/Pages/Index.razor @@ -3,6 +3,8 @@ @using MP.Stats.Components @using MP.Stats.Data +@inject MessageService MessageService +
          @@ -22,14 +24,14 @@
          -
          @Anno
          +
          Main Topics
          - - + + + @**@ - - + @**@
          @@ -37,6 +39,9 @@
          @code { - - private int Anno { get; set; } = DateTime.Today.Year; + protected override Task OnInitializedAsync() + { + MessageService.ShowSearch = false; + return base.OnInitializedAsync(); + } } \ No newline at end of file diff --git a/MP.Stats/Pages/Scarti.razor b/MP.Stats/Pages/Scarti.razor index e5b7ed07..c6503e13 100644 --- a/MP.Stats/Pages/Scarti.razor +++ b/MP.Stats/Pages/Scarti.razor @@ -8,43 +8,43 @@
          @if (currRecord != null) { - @**@ + @**@ } @if (ListRecords == null) { -

          Loading...

          +

          Loading...

          } else { - - - - @**@ - - - - - - - - - - - @foreach (var record in ListRecords) +
          MacchinaDataODL/CommessaArticoloDescrizioneQtaOperatore
          + + + @**@ + + + + + + + + + + + @foreach (var record in ListRecords) { - - @**@ - - - - - - - - + + @**@ + + + + + + + + } - -
          MacchinaDataODL/CommessaArticoloDescrizioneQtaOperatore
           @record.IdxMacchina@record.DataOra@record.IdxOdl | @record.KeyRichiesta@record.CodArticolo@record.Descrizione@record.CodArticolo@record.MatrOpr
           @record.IdxMacchina@record.DataOra@record.IdxOdl | @record.KeyRichiesta@record.CodArticolo@record.Descrizione@record.CodArticolo@record.MatrOpr
          + + }