diff --git a/WebDoorCreator.Data/SqlScripts/View/OrderStatusView.sql b/WebDoorCreator.Data/SqlScripts/View/OrderStatusView.sql
index 94bea48..0d0f706 100644
--- a/WebDoorCreator.Data/SqlScripts/View/OrderStatusView.sql
+++ b/WebDoorCreator.Data/SqlScripts/View/OrderStatusView.sql
@@ -1,50 +1,35 @@
-/****** Object: View [dbo].[v_OrderStatus] Script Date: 17/03/2023 08:48:45 ******/
-SET ANSI_NULLS ON
+SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-
CREATE VIEW [dbo].[v_OrderStatus]
AS
-
-WITH cteDoorGroup AS
-(
- SELECT OrderId
- ,COUNT(DISTINCT DoorIdParent) AS NumType
- ,SUM(Quantity) AS NumDoors
- ,SUM(Quantity*UnitCost) AS TotCost
- FROM Door
+WITH cteDoorGroup
+AS (
+ SELECT OrderId
+ ,COUNT(DISTINCT ParentId) AS NumType
+ ,SUM(Quantity) AS NumDoors
+ ,SUM(Quantity * UnitCost) AS TotCost
+ FROM dbo.Door
GROUP BY OrderId
-)
-
-SELECT
- ord.OrderId
+ )
+SELECT ord.OrderId
,ord.CompanyId
,ord.OrderExtCode
,ord.DateIns
,ord.UserIdIns
,ord.DateMod
,ord.UserIdMod
- ,ord.STATUS as OrderStatus
+ ,ord.STATUS AS OrderStatus
,ord.OrderDescript
,ISNULL(cte.NumType, 0) AS NumType
,ISNULL(cte.NumDoors, 0) AS NumDoors
,ISNULL(cte.TotCost, 0) AS TotCost
- --,dbo.Door.DoorId
- --,dbo.Door.OrderId
- --,dbo.Door.TypeId
- --,dbo.Door.DoorExtCode
- --,dbo.Door.DateIns
- --,dbo.Door.UserIdIns
- --,dbo.Door.DateMod
- --,dbo.Door.UserIdMod
- --,dbo.Door.DoorDescript
- --,dbo.Door.Quantity
- --,dbo.Door.UnitCost
-
-FROM dbo.[Order] as ord
-LEFT OUTER JOIN cteDoorGroup cte ON ord.OrderId = cte.OrderId
+ ,ord.DateDelivery
+ ,ord.Discount
+FROM dbo.[Order] AS ord
+LEFT OUTER JOIN cteDoorGroup AS cte ON ord.OrderId = cte.OrderId
GO
\ No newline at end of file
diff --git a/WebDoorCreator.Data/SqlScripts/View/UserRolesClaims.sql b/WebDoorCreator.Data/SqlScripts/View/UserRolesClaims.sql
new file mode 100644
index 0000000..0f0d347
--- /dev/null
+++ b/WebDoorCreator.Data/SqlScripts/View/UserRolesClaims.sql
@@ -0,0 +1,46 @@
+SET ANSI_NULLS ON
+GO
+
+SET QUOTED_IDENTIFIER ON
+GO
+
+CREATE VIEW [dbo].[v_UserRolesClaims]
+AS
+/*
+
+
+ Mod: 2023.05.26 agg. campi Claims
+*/
+
+SELECT
+ NU.Id AS UserId
+ ,NU.UserName
+ ,NU.Email
+ ,ISNULL(UR.RoleId, '') AS RoleId
+ ,ISNULL(ANR.Name, '') AS RoleName
+ ,UC.Id AS ClaimId
+ ,UC.UserId AS ClaimUserId
+ ,UC.ClaimType
+ ,UC.ClaimValue
+ --,ANR.Id
+ --,ANR.NormalizedName
+ --,ANR.ConcurrencyStamp
+ --,UR.UserId
+ --,NU.NormalizedUserName
+ --,NU.NormalizedEmail
+ --,NU.EmailConfirmed
+ --,NU.PasswordHash
+ --,NU.SecurityStamp
+ --,NU.ConcurrencyStamp AS Expr2
+ --,NU.PhoneNumber
+ --,NU.PhoneNumberConfirmed
+ --,NU.TwoFactorEnabled
+ --,NU.LockoutEnd
+ --,NU.LockoutEnabled
+ --,NU.AccessFailedCount
+FROM dbo.AspNetRoles ANR
+INNER JOIN dbo.AspNetUserRoles UR ON ANR.Id = UR.RoleId
+RIGHT OUTER JOIN dbo.AspNetUsers NU ON UR.UserId = NU.Id
+LEFT OUTER JOIN dbo.AspNetUserClaims UC ON NU.Id = UC.UserId
+
+GO
\ No newline at end of file
diff --git a/WebDoorCreator.Data/SqlScripts/View/UserView - Copy.sql b/WebDoorCreator.Data/SqlScripts/View/UserView - Copy.sql
deleted file mode 100644
index 99c6824..0000000
--- a/WebDoorCreator.Data/SqlScripts/View/UserView - Copy.sql
+++ /dev/null
@@ -1,46 +0,0 @@
-SET ANSI_NULLS ON
-GO
-
-SET QUOTED_IDENTIFIER ON
-GO
-
-CREATE VIEW [dbo].[v_UserRolesClaims]
-AS
-/*
-
-
- Mod: 2023.05.26 agg. campi Claims
-*/
-
-SELECT
- NU.Id AS UserId
- ,NU.UserName
- ,NU.Email
- ,ISNULL(UR.RoleId, '') AS RoleId
- ,ISNULL(ANR.Name, '') AS RoleName
- ,UC.Id AS ClaimId
- ,UC.UserId AS ClaimUserId
- ,UC.ClaimType
- ,UC.ClaimValue
- --,ANR.Id
- --,ANR.NormalizedName
- --,ANR.ConcurrencyStamp
- --,UR.UserId
- --,NU.NormalizedUserName
- --,NU.NormalizedEmail
- --,NU.EmailConfirmed
- --,NU.PasswordHash
- --,NU.SecurityStamp
- --,NU.ConcurrencyStamp AS Expr2
- --,NU.PhoneNumber
- --,NU.PhoneNumberConfirmed
- --,NU.TwoFactorEnabled
- --,NU.LockoutEnd
- --,NU.LockoutEnabled
- --,NU.AccessFailedCount
-FROM dbo.AspNetRoles ANR
-INNER JOIN dbo.AspNetUserRoles UR ON ANR.Id = UR.RoleId
-RIGHT OUTER JOIN dbo.AspNetUsers NU ON UR.UserId = NU.Id
-LEFT OUTER JOIN dbo.AspNetUserClaims UC ON NU.Id = UC.UserId
-
-GO
\ No newline at end of file
diff --git a/WebDoorCreator.Data/WebDoorCreator.Data.csproj b/WebDoorCreator.Data/WebDoorCreator.Data.csproj
index 0336585..827477b 100644
--- a/WebDoorCreator.Data/WebDoorCreator.Data.csproj
+++ b/WebDoorCreator.Data/WebDoorCreator.Data.csproj
@@ -65,7 +65,7 @@
Always
-
+
Always
diff --git a/WebDoorCreator.UI/WebDoorCreator.UI.csproj b/WebDoorCreator.UI/WebDoorCreator.UI.csproj
index bb63b17..48e7d54 100644
--- a/WebDoorCreator.UI/WebDoorCreator.UI.csproj
+++ b/WebDoorCreator.UI/WebDoorCreator.UI.csproj
@@ -1,124 +1,124 @@
-
- net6.0
- enable
- 0.9.2306.0610
- enable
- aspnet-WebDoorCreator.UI-dfe95fed-1398-4144-bd43-8b3a765d6608
-
+
+ net6.0
+ enable
+ 0.9.2306.0610
+ enable
+ aspnet-WebDoorCreator.UI-dfe95fed-1398-4144-bd43-8b3a765d6608
+
-
-
-
+
+
+
-
- <_WebToolingArtifacts Remove="Properties\PublishProfiles\IIS-PROD.pubxml" />
- <_WebToolingArtifacts Remove="Properties\PublishProfiles\IIS01.pubxml" />
- <_WebToolingArtifacts Remove="Properties\PublishProfiles\IIS02.pubxml" />
- <_WebToolingArtifacts Remove="Properties\PublishProfiles\IISProfile.pubxml" />
-
+
+ <_WebToolingArtifacts Remove="Properties\PublishProfiles\IIS-PROD.pubxml" />
+ <_WebToolingArtifacts Remove="Properties\PublishProfiles\IIS01.pubxml" />
+ <_WebToolingArtifacts Remove="Properties\PublishProfiles\IIS02.pubxml" />
+ <_WebToolingArtifacts Remove="Properties\PublishProfiles\IISProfile.pubxml" />
+
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
+
+
+ Always
+
+
+ Always
+
+
+ Always
+
+
+ Always
+
+
-
-
-
-
-
-
-
-
-
-
-
- all
- runtime; build; native; contentfiles; analyzers; buildtransitive
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+ all
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+
+
+
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
- Never
-
-
- Never
-
-
- Never
-
-
- Never
-
-
- Never
-
-
- Never
-
-
- Never
-
-
- Never
-
-
- Never
-
-
- Never
-
-
- Never
-
-
- Never
-
-
+
+
+ Never
+
+
+ Never
+
+
+ Never
+
+
+ Never
+
+
+ Never
+
+
+ Never
+
+
+ Never
+
+
+ Never
+
+
+ Never
+
+
+ Never
+
+
+ Never
+
+
+ Never
+
+
-
-
- Always
-
-
-
-
-
+
+
+ Always
+
+
+
+
+