Migrazione classe Mp.Stats
@@ -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
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
@using MP_STATS.Components
|
||||
@using MP.Stats.Components
|
||||
@using System.Security.Claims
|
||||
@using Microsoft.AspNetCore.Components.Authorization
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
@using MP_STATS.Components
|
||||
@using MP_STATS.Data
|
||||
@using MP.Stats.Components
|
||||
@using MP.Stats.Data
|
||||
@inject MessageService MessageService
|
||||
|
||||
<div class="input-group input-group-sm">
|
||||
@@ -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
|
||||
{
|
||||
@@ -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<MpDataLayer.DatabaseModels.ResScarti[]> ScartiGetAll(int numRecord, string searchVal = "")
|
||||
public Task<MP.Data.DatabaseModels.ResScarti[]> ScartiGetAll(int numRecord, string searchVal = "")
|
||||
{
|
||||
return Task.FromResult(dbController.ScartiGetAll(numRecord, searchVal).ToArray());
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
using System;
|
||||
|
||||
namespace MP_STATS.Data
|
||||
namespace MP.Stats.Data
|
||||
{
|
||||
public class WeatherForecast
|
||||
{
|
||||
@@ -2,7 +2,7 @@ using System;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MP_STATS.Data
|
||||
namespace MP.Stats.Data
|
||||
{
|
||||
public class WeatherForecastService
|
||||
{
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
<RootNamespace>MP_STATS</RootNamespace>
|
||||
<RootNamespace>MP.Stats</RootNamespace>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\MpDataLayer\MpDataLayer.csproj" />
|
||||
<ProjectReference Include="..\MP.Data\MP.Data.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
@@ -1,7 +1,7 @@
|
||||
@page "/controlli"
|
||||
|
||||
@using MP_STATS.Components
|
||||
@using MP_STATS.Data
|
||||
@using MP.Stats.Components
|
||||
@using MP.Stats.Data
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header table-primary h1">Controlli</div>
|
||||
@@ -1,5 +1,5 @@
|
||||
@page
|
||||
@model MP_STATS.Pages.ErrorModel
|
||||
@model MP.Stats.Pages.ErrorModel
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
@@ -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]
|
||||
@@ -1,6 +1,6 @@
|
||||
@page "/fetchdata"
|
||||
|
||||
@using MP_STATS.Data
|
||||
@using MP.Stats.Data
|
||||
@inject WeatherForecastService ForecastService
|
||||
|
||||
<h1>Weather forecast</h1>
|
||||
@@ -1,7 +1,7 @@
|
||||
@page "/"
|
||||
|
||||
@using MP_STATS.Components
|
||||
@using MP_STATS.Data
|
||||
@using MP.Stats.Components
|
||||
@using MP.Stats.Data
|
||||
|
||||
<div class="jumbotron">
|
||||
<div class="row">
|
||||
@@ -1,7 +1,7 @@
|
||||
@page "/scarti"
|
||||
|
||||
@using MP_STATS.Components
|
||||
@using MP_STATS.Data
|
||||
@using MP.Stats.Components
|
||||
@using MP.Stats.Data
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header table-primary h1">Scarti</div>
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
@@ -1,5 +1,5 @@
|
||||
@page "/"
|
||||
@namespace MP_STATS.Pages
|
||||
@namespace MP.Stats.Pages
|
||||
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
|
||||
@{
|
||||
Layout = null;
|
||||
@@ -7,7 +7,7 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MP_STATS
|
||||
namespace MP.Stats
|
||||
{
|
||||
public class Program
|
||||
{
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
{
|
||||
@@ -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
|
||||
{
|
||||
@@ -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
|
||||
|
Before Width: | Height: | Size: 54 KiB After Width: | Height: | Size: 54 KiB |
|
Before Width: | Height: | Size: 273 KiB After Width: | Height: | Size: 273 KiB |
|
Before Width: | Height: | Size: 78 KiB After Width: | Height: | Size: 78 KiB |
|
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 48 KiB |
|
Before Width: | Height: | Size: 6.0 KiB After Width: | Height: | Size: 6.0 KiB |