Merge branch 'feature/ProjRename' into develop

This commit is contained in:
Samuele Locatelli
2021-05-17 14:36:55 +02:00
126 changed files with 316 additions and 199 deletions
+2 -2
View File
@@ -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
-21
View File
@@ -1,21 +0,0 @@
<div class="input-group input-group-sm">
<input @bind-value="numRecord" @bind-value:event="oninput" type="text" class="form-control" />
<div class="input-group-append">
<button @onclick="reportChange" class="btn btn-success input-group-text"># record</button>
@*<span class="input-group-text"># record</span>*@
</div>
</div>
@code {
[Parameter]
public int numRecord { get; set; } = 10;
[Parameter]
public EventCallback<int> numRecordChanged { get; set; }
private async Task reportChange()
{
await numRecordChanged.InvokeAsync(numRecord);
}
}
-21
View File
@@ -1,21 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<RootNamespace>MP_STATS</RootNamespace>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\MpDataLayer\MpDataLayer.csproj" />
</ItemGroup>
<ItemGroup>
<Folder Include="Components\" />
</ItemGroup>
<ItemGroup>
<None Update="logs\.placeholder">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
</Project>
-59
View File
@@ -1,59 +0,0 @@
@page "/scarti"
@using MP_STATS.Components
@using MP_STATS.Data
<div class="card">
<div class="card-header table-primary h1">Scarti</div>
<div class="card-body">
@if (currRecord != null)
{
@*<BasketEditor Basket="@currBasket" DataReset="ResetData" DataUpdated="UpdateData"></BasketEditor>*@
}
@if (ListRecords == null)
{
<p><em>Loading...</em></p>
}
else
{
<table class="table table-sm table-striped">
<thead>
<tr>
@*<th></th>*@
<th>Macchina</th>
<th>Data</th>
<th>ODL/Commessa</th>
<th>Articolo</th>
<th>Descrizione</th>
<th>Qta</th>
<th>Operatore</th>
</tr>
</thead>
<tbody>
@foreach (var record in ListRecords)
{
<tr class="@checkSelect(@record.DataOra, @record.IdxMacchina, @record.Causale)">
@*<td><button class="btn btn-sm btn-info" @onclick="() => Edit(record)"><span class="oi oi-pencil"></span></button>&nbsp;<button class="btn btn-sm btn-success" @onclick="() => ShowDocs(record)" title="Vai ai documenti"><span class="oi oi-document"></span></button></td>*@
<td>@record.IdxMacchina</td>
<td>@record.DataOra</td>
<td>@record.IdxOdl | @record.KeyRichiesta</td>
<td>@record.CodArticolo</td>
<td>@record.Descrizione</td>
<td>@record.CodArticolo</td>
<td>@record.MatrOpr</td>
</tr>
}
</tbody>
</table>
}
</div>
<div class="card-footer py-1">
<div class="row">
<div class="col-8 col-lg-10">
</div>
<div class="col-4 col-lg-2">
<DataPager numRecord="@numRecord" numRecordChanged="ForceReload" />
</div>
</div>
</div>
</div>
@@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MpDataLayer
namespace MP.Data
{
class Constants
{
@@ -7,7 +7,7 @@ using System.Configuration;
using NLog;
using Microsoft.Extensions.Configuration;
namespace MpDataLayer.Controllers
namespace MP.Data.Controllers
{
public class MpStatsController : IDisposable
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace MpDataLayer.DatabaseModels
namespace MP.Data.DatabaseModels
{
public partial class Aaul
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace MpDataLayer.DatabaseModels
namespace MP.Data.DatabaseModels
{
public partial class Cal
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace MpDataLayer.DatabaseModels
namespace MP.Data.DatabaseModels
{
public partial class Config
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace MpDataLayer.DatabaseModels
namespace MP.Data.DatabaseModels
{
public partial class Ddb
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace MpDataLayer.DatabaseModels
namespace MP.Data.DatabaseModels
{
public partial class Ddb1
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace MpDataLayer.DatabaseModels
namespace MP.Data.DatabaseModels
{
public partial class DdbTurni
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace MpDataLayer.DatabaseModels
namespace MP.Data.DatabaseModels
{
public partial class DdbTurniNew
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace MpDataLayer.DatabaseModels
namespace MP.Data.DatabaseModels
{
public partial class DdbTurniSummary
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace MpDataLayer.DatabaseModels
namespace MP.Data.DatabaseModels
{
public partial class DdbTurniSummaryNew
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace MpDataLayer.DatabaseModels
namespace MP.Data.DatabaseModels
{
public partial class Ecp
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace MpDataLayer.DatabaseModels
namespace MP.Data.DatabaseModels
{
public partial class Ecp1
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace MpDataLayer.DatabaseModels
namespace MP.Data.DatabaseModels
{
public partial class Kit
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace MpDataLayer.DatabaseModels
namespace MP.Data.DatabaseModels
{
public partial class Odl
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace MpDataLayer.DatabaseModels
namespace MP.Data.DatabaseModels
{
public partial class Odl1
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace MpDataLayer.DatabaseModels
namespace MP.Data.DatabaseModels
{
public partial class R
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace MpDataLayer.DatabaseModels
namespace MP.Data.DatabaseModels
{
public partial class R1
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace MpDataLayer.DatabaseModels
namespace MP.Data.DatabaseModels
{
public partial class Rc
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace MpDataLayer.DatabaseModels
namespace MP.Data.DatabaseModels
{
public partial class ResControlli
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace MpDataLayer.DatabaseModels
namespace MP.Data.DatabaseModels
{
public partial class ResScarti
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace MpDataLayer.DatabaseModels
namespace MP.Data.DatabaseModels
{
public partial class Tally
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace MpDataLayer.DatabaseModels
namespace MP.Data.DatabaseModels
{
public partial class TcStat
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace MpDataLayer.DatabaseModels
namespace MP.Data.DatabaseModels
{
public partial class Tcr
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace MpDataLayer.DatabaseModels
namespace MP.Data.DatabaseModels
{
public partial class Tcr1
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace MpDataLayer.DatabaseModels
namespace MP.Data.DatabaseModels
{
public partial class TcrDay
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace MpDataLayer.DatabaseModels
namespace MP.Data.DatabaseModels
{
public partial class TcrDayTest
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace MpDataLayer.DatabaseModels
namespace MP.Data.DatabaseModels
{
public partial class TestJason
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace MpDataLayer.DatabaseModels
namespace MP.Data.DatabaseModels
{
public partial class Ul
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace MpDataLayer.DatabaseModels
namespace MP.Data.DatabaseModels
{
public partial class UserActionLog
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace MpDataLayer.DatabaseModels
namespace MP.Data.DatabaseModels
{
public partial class VDdb
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace MpDataLayer.DatabaseModels
namespace MP.Data.DatabaseModels
{
public partial class VDdbLight
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace MpDataLayer.DatabaseModels
namespace MP.Data.DatabaseModels
{
public partial class VDdbLightOld
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace MpDataLayer.DatabaseModels
namespace MP.Data.DatabaseModels
{
public partial class VDdbTurni
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace MpDataLayer.DatabaseModels
namespace MP.Data.DatabaseModels
{
public partial class VEcp
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace MpDataLayer.DatabaseModels
namespace MP.Data.DatabaseModels
{
public partial class VEcp1
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace MpDataLayer.DatabaseModels
namespace MP.Data.DatabaseModels
{
public partial class VEcpExtended
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace MpDataLayer.DatabaseModels
namespace MP.Data.DatabaseModels
{
public partial class VKit
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace MpDataLayer.DatabaseModels
namespace MP.Data.DatabaseModels
{
public partial class VOdl
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace MpDataLayer.DatabaseModels
namespace MP.Data.DatabaseModels
{
public partial class VOdl1
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace MpDataLayer.DatabaseModels
namespace MP.Data.DatabaseModels
{
public partial class VPodlNonChiusi
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace MpDataLayer.DatabaseModels
namespace MP.Data.DatabaseModels
{
public partial class VR1
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace MpDataLayer.DatabaseModels
namespace MP.Data.DatabaseModels
{
public partial class VTcStat
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace MpDataLayer.DatabaseModels
namespace MP.Data.DatabaseModels
{
public partial class VTcr
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace MpDataLayer.DatabaseModels
namespace MP.Data.DatabaseModels
{
public partial class VTcr1
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace MpDataLayer.DatabaseModels
namespace MP.Data.DatabaseModels
{
public partial class VTcrDay
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
#nullable disable
namespace MpDataLayer.DatabaseModels
namespace MP.Data.DatabaseModels
{
public partial class VetoTc
{
+1 -1
View File
@@ -1,6 +1,6 @@
using System;
namespace MpDataLayer
namespace MP.Data
{
public class Enums
{
@@ -2,6 +2,8 @@
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<AssemblyName>MP.Data</AssemblyName>
<RootNamespace>MP.Data</RootNamespace>
</PropertyGroup>
<ItemGroup>
@@ -2,12 +2,12 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.Extensions.Configuration;
using MpDataLayer.DatabaseModels;
using MP.Data.DatabaseModels;
using NLog;
#nullable disable
namespace MpDataLayer
namespace MP.Data
{
public partial class MoonPro_STATSContext : DbContext
{
@@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MpDataLayer
namespace MP.Data
{
public class StatsDbContext
{
@@ -1,4 +1,4 @@
@using MP_STATS.Components
@using MP.Stats.Components
@using System.Security.Claims
@using Microsoft.AspNetCore.Components.Authorization
+42
View File
@@ -0,0 +1,42 @@
<div class="input-group input-group-sm">
row/pag:&nbsp;
<select @bind="@numRecord" class="form-control form-control-sm">
<option value="5">5</option>
<option value="10">10</option>
<option value="25">25</option>
<option value="50">50</option>
<option value="100">100</option>
</select>
</div>
@code {
protected int _numRecord { get; set; } = 10;
[Parameter]
public int numRecord
{
get
{
return _numRecord;
}
set
{
bool doReport = !_numRecord.Equals(value);
_numRecord = value;
if (doReport)
{
reportChange();
}
}
}
[Parameter]
public EventCallback<int> numRecordChanged { get; set; }
private void reportChange()
{
numRecordChanged.InvokeAsync(numRecord);
}
}
@@ -1,9 +1,9 @@
@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">
<input @bind-value="@searchVal" @bind-value:event="oninput" type="text" class="form-control" title="Campo Ricerca" placeholder="Ricerca [ALT-R]" accesskey="R" />
<input @bind-value="searchVal" @bind-value:event="oninput" type="text" class="form-control" title="Campo Ricerca" placeholder="Ricerca [ALT-R]" accesskey="R" />
<div class="input-group-append">
<button @onclick="reset" class="btn btn-success input-group-text">reset</button>
</div>
@@ -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
{
+34
View File
@@ -0,0 +1,34 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<RootNamespace>MP.Stats</RootNamespace>
</PropertyGroup>
<ItemGroup>
<Content Remove="compilerconfig.json" />
</ItemGroup>
<ItemGroup>
<_ContentIncludedByDefault Remove="compilerconfig.json" />
<_ContentIncludedByDefault Remove="wwwroot\css\fonts.min.css" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\MP.Data\MP.Data.csproj" />
</ItemGroup>
<ItemGroup>
<Folder Include="Components\" />
</ItemGroup>
<ItemGroup>
<None Include="compilerconfig.json" />
</ItemGroup>
<ItemGroup>
<None Update="logs\.placeholder">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
</Project>
@@ -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,9 @@
@page "/"
@using MP_STATS.Components
@using MP_STATS.Data
@using MP.Stats.Components
@using MP.Stats.Data
@inject MessageService MessageService
<div class="jumbotron">
<div class="row">
@@ -22,14 +24,14 @@
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-header table-primary h1">@Anno</div>
<div class="card-header table-primary h1">Main Topics</div>
<div class="card-body">
<HomeButton NavLink="produzione" Icon="oi oi-book" Descript="Produzione" />
<HomeButton NavLink="negotiations" Icon="oi oi-cart" Descript="Negoziazioni" />
<HomeButton NavLink="docs" Icon="oi oi-document" Descript="Documenti" />
<HomeButton NavLink="diario" Icon="oi oi-document" Descript="User Log" />
<HomeButton NavLink="controlli" Icon="oi oi-beaker" Descript="Controlli" />
<HomeButton NavLink="scarti" Icon="oi oi-warning" Descript="Scarti" />
@*<HomeButton NavLink="resources" Icon="oi oi-puzzle-piece" Descript="Risorse" />*@
<HomeButton NavLink="items" Icon="oi oi-badge" Descript="Items" />
<HomeButton NavLink="utility" Icon="oi oi-wrench" Descript="Utility" />
@*<HomeButton NavLink="utility" Icon="oi oi-wrench" Descript="Utility" />*@
</div>
</div>
</div>
@@ -37,6 +39,9 @@
</div>
@code {
private int Anno { get; set; } = DateTime.Today.Year;
protected override Task OnInitializedAsync()
{
MessageService.ShowSearch = false;
return base.OnInitializedAsync();
}
}
+59
View File
@@ -0,0 +1,59 @@
@page "/scarti"
@using MP.Stats.Components
@using MP.Stats.Data
<div class="card">
<div class="card-header table-primary h1">Scarti</div>
<div class="card-body">
@if (currRecord != null)
{
@*<BasketEditor Basket="@currBasket" DataReset="ResetData" DataUpdated="UpdateData"></BasketEditor>*@
}
@if (ListRecords == null)
{
<p><em>Loading...</em></p>
}
else
{
<table class="table table-sm table-striped">
<thead>
<tr>
@*<th></th>*@
<th>Macchina</th>
<th>Data</th>
<th>ODL/Commessa</th>
<th>Articolo</th>
<th>Descrizione</th>
<th>Qta</th>
<th>Operatore</th>
</tr>
</thead>
<tbody>
@foreach (var record in ListRecords)
{
<tr class="@checkSelect(@record.DataOra, @record.IdxMacchina, @record.Causale)">
@*<td><button class="btn btn-sm btn-info" @onclick="() => Edit(record)"><span class="oi oi-pencil"></span></button>&nbsp;<button class="btn btn-sm btn-success" @onclick="() => ShowDocs(record)" title="Vai ai documenti"><span class="oi oi-document"></span></button></td>*@
<td>@record.IdxMacchina</td>
<td>@record.DataOra</td>
<td>@record.IdxOdl | @record.KeyRichiesta</td>
<td>@record.CodArticolo</td>
<td>@record.Descrizione</td>
<td>@record.CodArticolo</td>
<td>@record.MatrOpr</td>
</tr>
}
</tbody>
</table>
}
</div>
<div class="card-footer py-1">
<div class="row">
<div class="col-8 col-lg-10">
</div>
<div class="col-4 col-lg-2">
<DataPager numRecord="@numRecord" numRecordChanged="ForceReload" />
</div>
</div>
</div>
</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
@@ -48,6 +48,7 @@ namespace MP_STATS.Pages
protected override async Task OnInitializedAsync()
{
numRecord = 10;
MessageService.ShowSearch = true;
MessageService.EA_SearchUpdated += OnSeachUpdated;
ListRecords = await StatService.ScartiGetAll(numRecord, MessageService.SearchVal);
@@ -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;
@@ -12,11 +12,11 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>MP-STATS</title>
<title>MP.STATS</title>
<base href="~/" />
<link rel="stylesheet" href="css/bootstrap/bootstrap.min.css" />
<link href="css/site.css" rel="stylesheet" />
<link href="MP-STATS.styles.css" rel="stylesheet" />
<link href="MP.Stats.styles.css" rel="stylesheet" />
</head>
<body>
<component type="typeof(App)" render-mode="ServerPrerendered" />
@@ -34,4 +34,4 @@
<script src="_framework/blazor.server.js"></script>
</body>
</html>
</html>
@@ -1,5 +1,5 @@
@page "/"
@namespace MP_STATS.Pages
@namespace MP.Stats.Pages
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@{
Layout = null;
+1 -1
View File
@@ -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
@@ -19,7 +19,7 @@
</li>
<li class="nav-item px-3">
<NavLink class="nav-link" href="diario">
<span class="oi oi-document" aria-hidden="true" title="Statistiche Controlli"></span> User Action Log
<span class="oi oi-document" aria-hidden="true" title="Statistiche Controlli"></span> User ActionLog
</NavLink>
</li>
<li class="nav-item px-3">
+2 -2
View File
@@ -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
+10
View File
@@ -0,0 +1,10 @@
[
{
"outputFile": "wwwroot/css/fonts.css",
"inputFile": "wwwroot/css/fonts.less"
},
{
"outputFile": "wwwroot/css/site.css",
"inputFile": "wwwroot/css/site.less"
}
]
+63
View File
@@ -0,0 +1,63 @@
{
"compilers": {
"less": {
"autoPrefix": "",
"cssComb": "none",
"ieCompat": true,
"strictMath": false,
"strictUnits": false,
"relativeUrls": true,
"rootPath": "",
"sourceMapRoot": "",
"sourceMapBasePath": "",
"sourceMap": false
},
"sass": {
"autoPrefix": "",
"includePath": "",
"indentType": "space",
"indentWidth": 2,
"outputStyle": "nested",
"Precision": 5,
"relativeUrls": true,
"sourceMapRoot": "",
"lineFeed": "",
"sourceMap": false
},
"stylus": {
"sourceMap": false
},
"babel": {
"sourceMap": false
},
"coffeescript": {
"bare": false,
"runtimeMode": "node",
"sourceMap": false
},
"handlebars": {
"root": "",
"noBOM": false,
"name": "",
"namespace": "",
"knownHelpersOnly": false,
"forcePartial": false,
"knownHelpers": [],
"commonjs": "",
"amd": false,
"sourceMap": false
}
},
"minifiers": {
"css": {
"enabled": true,
"termSemicolons": true,
"gzip": false
},
"javascript": {
"enabled": true,
"termSemicolons": true,
"gzip": false
}
}
}
+1
View File
@@ -0,0 +1 @@
@font-face{font-family:'Lato';font-style:normal;font-weight:400;src:url('../fonts/lato-v17-latin-regular.eot?');src:local(''),url('../fonts/lato-v17-latin-regular.eot?#iefix') format('embedded-opentype'),url('../fonts/lato-v17-latin-regular.woff2') format('woff2'),url('../fonts/lato-v17-latin-regular.woff') format('woff'),url('../fonts/lato-v17-latin-regular.ttf') format('truetype'),url('../fonts/lato-v17-latin-regular.svg#Lato') format('svg');}@font-face{font-family:'Roboto';font-style:normal;font-weight:400;src:url('../fonts/roboto-v27-latin-regular.eot?');src:local(''),url('../fonts/roboto-v27-latin-regular.eot?#iefix') format('embedded-opentype'),url('../fonts/roboto-v27-latin-regular.woff2') format('woff2'),url('../fonts/roboto-v27-latin-regular.woff') format('woff'),url('../fonts/roboto-v27-latin-regular.ttf') format('truetype'),url('../fonts/roboto-v27-latin-regular.svg#Roboto') format('svg');}

Some files were not shown because too many files have changed in this diff Show More