Fix compilazione INVE x spsotamento classi TaskMan
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
@if (elencoOperatori != null)
|
||||
{
|
||||
<div class="d-flex justify-content-between" style="flex-flow: wrap;">
|
||||
<div class="d-flex justify-content-between g-1" style="flex-flow: wrap;">
|
||||
|
||||
@foreach (var item in elencoOperatori)
|
||||
{
|
||||
|
||||
@@ -18,15 +18,11 @@ namespace MP.INVE.Components
|
||||
[Parameter]
|
||||
public EventCallback<int> TotalChanged { get; set; }
|
||||
|
||||
|
||||
private SelectQrOperatoreParams? lastParams { get; set; } = null;
|
||||
|
||||
#endregion Public Properties
|
||||
|
||||
#region Protected Fields
|
||||
|
||||
protected List<AnagOperatoriModel>? elencoOperatori = new List<AnagOperatoriModel>();
|
||||
|
||||
protected List<AnagOperatoriModel>? SearchRecords = new List<AnagOperatoriModel>();
|
||||
|
||||
#endregion Protected Fields
|
||||
@@ -67,19 +63,9 @@ namespace MP.INVE.Components
|
||||
|
||||
#region Protected Methods
|
||||
|
||||
//protected override async Task OnAfterRenderAsync(bool firstRender)
|
||||
//{
|
||||
// await Task.Delay(50);
|
||||
// if (firstRender)
|
||||
// {
|
||||
// //await reloadData(true);
|
||||
// }
|
||||
//}
|
||||
|
||||
protected override async Task OnParametersSetAsync()
|
||||
{
|
||||
bool doReload = lastParams == null;
|
||||
if (doReload || !currParams.Equals(lastParams))
|
||||
if (lastParams == null || !currParams.Equals(lastParams))
|
||||
{
|
||||
lastParams = currParams.Clone();
|
||||
await reloadData(true);
|
||||
@@ -93,7 +79,6 @@ namespace MP.INVE.Components
|
||||
private string _authKey = "";
|
||||
|
||||
private int _idOperatore = 0;
|
||||
|
||||
private int _totalCount = 0;
|
||||
|
||||
#endregion Private Fields
|
||||
@@ -108,6 +93,8 @@ namespace MP.INVE.Components
|
||||
get => currParams.CurrPage;
|
||||
}
|
||||
|
||||
private SelectQrOperatoreParams? lastParams { get; set; } = null;
|
||||
|
||||
private int numRecord
|
||||
{
|
||||
get => currParams.NumRec;
|
||||
|
||||
@@ -39,8 +39,6 @@
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
</tbody>
|
||||
|
||||
@@ -40,7 +40,7 @@ namespace MP.INVE.Components
|
||||
|
||||
#region Private Fields
|
||||
|
||||
private List<ScanDataModel>? elencoSCAN;
|
||||
private List<ScanDataModel>? elencoSCAN { get; set; } = null;
|
||||
|
||||
#endregion Private Fields
|
||||
|
||||
|
||||
@@ -1,42 +1,35 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
using System.Net.Http;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Components.Authorization;
|
||||
using Microsoft.AspNetCore.Components.Forms;
|
||||
using Microsoft.AspNetCore.Components.Routing;
|
||||
using Microsoft.AspNetCore.Components.Web;
|
||||
using Microsoft.AspNetCore.Components.Web.Virtualization;
|
||||
using Microsoft.JSInterop;
|
||||
using MP.INVE;
|
||||
using MP.INVE.Shared;
|
||||
using MP.INVE.Components;
|
||||
using MP.Data.DatabaseModels;
|
||||
using MP.INVE.Data;
|
||||
using MP.INVE.Pages;
|
||||
|
||||
namespace MP.INVE.Components
|
||||
{
|
||||
public partial class ProcOperat
|
||||
{
|
||||
[Parameter]
|
||||
public AnagUdcModel UDC { get; set; } = null!;
|
||||
[Parameter]
|
||||
public string userScan { get; set; } = null!;
|
||||
[Parameter]
|
||||
public int sessID { get; set; } = 0;
|
||||
#region Public Properties
|
||||
|
||||
[Inject]
|
||||
public IJSRuntime JSRuntime { get; set; } = null!;
|
||||
|
||||
[Inject]
|
||||
public MiDataService MIService { get; set; } = null!;
|
||||
[Inject]
|
||||
public IJSRuntime JSRuntime { get; set; } = null!;
|
||||
[Inject]
|
||||
public NavigationManager NavManager{ get; set; } = null!;
|
||||
|
||||
private bool isForced = false;
|
||||
[Inject]
|
||||
public NavigationManager NavManager { get; set; } = null!;
|
||||
|
||||
[Parameter]
|
||||
public int sessID { get; set; } = 0;
|
||||
|
||||
[Parameter]
|
||||
public AnagUdcModel UDC { get; set; } = null!;
|
||||
|
||||
[Parameter]
|
||||
public string userScan { get; set; } = null!;
|
||||
|
||||
#endregion Public Properties
|
||||
|
||||
#region Protected Methods
|
||||
|
||||
protected async void insertSession()
|
||||
{
|
||||
@@ -65,7 +58,8 @@ namespace MP.INVE.Components
|
||||
{
|
||||
NavManager.NavigateTo(NavManager.Uri, true);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endregion Protected Methods
|
||||
}
|
||||
}
|
||||
@@ -60,6 +60,7 @@ namespace MP.INVE.Components
|
||||
{
|
||||
operatoreScelto = elencoOperatori.Where(x => x.MatrOpr == int.Parse(lastScanOperatore)).FirstOrDefault();
|
||||
}
|
||||
await Task.Delay(1);
|
||||
}
|
||||
public int MatrOpr { get; set; } = 0;
|
||||
public int InveSessID { get; set; } = 0;
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace MP.INVE.Data
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
//Log.Error($"Eccezione in clearLocalStorage{Environment.NewLine}{exc}");
|
||||
Log.Error($"Eccezione in clearLocalStorage{Environment.NewLine}{exc}");
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
@@ -63,148 +63,5 @@ namespace MP.INVE.Data
|
||||
return answ;
|
||||
}
|
||||
|
||||
#if false
|
||||
|
||||
public event Action EA_PageUpdated = null!;
|
||||
|
||||
public event Action EA_SearchUpdated = null!;
|
||||
|
||||
public event Action EA_ShowSearch = null!;
|
||||
|
||||
public event Action EA_StatoSearch = null!;
|
||||
|
||||
public int currPage
|
||||
{
|
||||
get => _currPage;
|
||||
set
|
||||
{
|
||||
if (_currPage != value)
|
||||
{
|
||||
_currPage = value;
|
||||
if (EA_PageUpdated != null)
|
||||
{
|
||||
EA_PageUpdated?.Invoke();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public int numRecord
|
||||
{
|
||||
get => _numRecord;
|
||||
set
|
||||
{
|
||||
if (_numRecord != value)
|
||||
{
|
||||
_numRecord = value;
|
||||
if (EA_PageUpdated != null)
|
||||
{
|
||||
EA_PageUpdated?.Invoke();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public string SearchVal
|
||||
{
|
||||
get => searchVal;
|
||||
set
|
||||
{
|
||||
//if (_nome != value)
|
||||
//{
|
||||
searchVal = value;
|
||||
|
||||
if (EA_SearchUpdated != null)
|
||||
{
|
||||
EA_SearchUpdated?.Invoke();
|
||||
}
|
||||
//}
|
||||
}
|
||||
}
|
||||
|
||||
public bool ShowSearch
|
||||
{
|
||||
get => showSearch;
|
||||
set
|
||||
{
|
||||
if (showSearch != value)
|
||||
{
|
||||
showSearch = value;
|
||||
if (EA_ShowSearch != null)
|
||||
{
|
||||
EA_ShowSearch?.Invoke();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public string StateSel
|
||||
{
|
||||
get => stateSel;
|
||||
set
|
||||
{
|
||||
stateSel = value;
|
||||
|
||||
if (EA_StatoSearch != null)
|
||||
{
|
||||
EA_StatoSearch?.Invoke();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public string TipoSearch
|
||||
{
|
||||
get => tipoSearch;
|
||||
set
|
||||
{
|
||||
if (tipoSearch != value)
|
||||
{
|
||||
tipoSearch = value;
|
||||
if (EA_ShowSearch != null)
|
||||
{
|
||||
EA_ShowSearch?.Invoke();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public int totalCount
|
||||
{
|
||||
get => _totalCount;
|
||||
set
|
||||
{
|
||||
if (_totalCount != value)
|
||||
{
|
||||
_totalCount = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected void reportPaging()
|
||||
{
|
||||
if (EA_PageUpdated != null)
|
||||
{
|
||||
EA_PageUpdated?.Invoke();
|
||||
}
|
||||
}
|
||||
|
||||
protected void reportSearch()
|
||||
{
|
||||
if (EA_SearchUpdated != null)
|
||||
{
|
||||
EA_SearchUpdated?.Invoke();
|
||||
}
|
||||
}
|
||||
|
||||
private string searchVal = "";
|
||||
private bool showSearch;
|
||||
private string stateSel = "*";
|
||||
private string tipoSearch = "";
|
||||
|
||||
private int _currPage { get; set; } = 1;
|
||||
|
||||
private int _numRecord { get; set; } = 10;
|
||||
private int _totalCount { get; set; } = 0;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
@@ -5,7 +5,7 @@
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<RootNamespace>MP.INVE</RootNamespace>
|
||||
<Version>6.16.2409.408</Version>
|
||||
<Version>6.16.2410.2811</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
@@ -32,6 +32,7 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Egw.Core\Egw.Core.csproj" />
|
||||
<ProjectReference Include="..\MP.Data\MP.Data.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
@@ -25,38 +25,39 @@ namespace MP.INVE.Pages
|
||||
{
|
||||
public partial class ElencoMagazzini
|
||||
{
|
||||
[Inject]
|
||||
private IConfiguration Configuration { get; set; } = null!;
|
||||
|
||||
[Inject]
|
||||
private ISessionStorageService sessionStorage { get; set; } = null!;
|
||||
[Inject]
|
||||
private ILocalStorageService localStorage { get; set; } = null!;
|
||||
|
||||
[Inject]
|
||||
private MiDataService MIDataservice { get; set; } = null!;
|
||||
|
||||
[Inject]
|
||||
private NavigationManager NavManager { get; set; } = null!;
|
||||
#region Public Fields
|
||||
|
||||
public SelectMagListParams currParams = new SelectMagListParams();
|
||||
|
||||
private int totalCount
|
||||
#endregion Public Fields
|
||||
|
||||
#region Protected Methods
|
||||
|
||||
protected void ForceReload(int newNum)
|
||||
{
|
||||
get => currParams.TotCount;
|
||||
set => currParams.TotCount = value;
|
||||
numRecord = newNum;
|
||||
}
|
||||
private int numRecord
|
||||
|
||||
protected void ForceReloadPage(int newNum)
|
||||
{
|
||||
get => currParams.NumRec;
|
||||
set
|
||||
{
|
||||
if (currParams.NumRec != value)
|
||||
{
|
||||
currParams.NumRec = value;
|
||||
}
|
||||
}
|
||||
currPage = newNum;
|
||||
}
|
||||
|
||||
protected override async Task OnParametersSetAsync()
|
||||
{
|
||||
await reloadData();
|
||||
await Task.Delay(1);
|
||||
}
|
||||
|
||||
#endregion Protected Methods
|
||||
|
||||
#region Private Properties
|
||||
|
||||
private string codMag { get; set; } = "";
|
||||
|
||||
[Inject]
|
||||
private IConfiguration Configuration { get; set; } = null!;
|
||||
|
||||
private int currPage
|
||||
{
|
||||
get => currParams.CurrPage;
|
||||
@@ -68,11 +69,9 @@ namespace MP.INVE.Pages
|
||||
}
|
||||
}
|
||||
}
|
||||
private bool reqNew
|
||||
{
|
||||
get => currParams.reqNew;
|
||||
set => currParams.reqNew = value;
|
||||
}
|
||||
|
||||
private string desc { get; set; } = "";
|
||||
|
||||
private bool inCorso
|
||||
{
|
||||
get => currParams.inCorso;
|
||||
@@ -83,21 +82,50 @@ namespace MP.INVE.Pages
|
||||
currParams.inCorso = value;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private List<AnagMagModel>? ListaMagazzini;
|
||||
private bool isLoading { get; set; } = false;
|
||||
|
||||
protected override async Task OnParametersSetAsync()
|
||||
[Inject]
|
||||
private ILocalStorageService localStorage { get; set; } = null!;
|
||||
|
||||
[Inject]
|
||||
private MiDataService MIDataservice { get; set; } = null!;
|
||||
|
||||
[Inject]
|
||||
private NavigationManager NavManager { get; set; } = null!;
|
||||
|
||||
private int numRecord
|
||||
{
|
||||
await reloadData();
|
||||
await Task.Delay(1);
|
||||
get => currParams.NumRec;
|
||||
set
|
||||
{
|
||||
if (currParams.NumRec != value)
|
||||
{
|
||||
currParams.NumRec = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void openNew()
|
||||
private bool reqNew
|
||||
{
|
||||
reqNew = true;
|
||||
get => currParams.reqNew;
|
||||
set => currParams.reqNew = value;
|
||||
}
|
||||
|
||||
[Inject]
|
||||
private ISessionStorageService sessionStorage { get; set; } = null!;
|
||||
|
||||
private int totalCount
|
||||
{
|
||||
get => currParams.TotCount;
|
||||
set => currParams.TotCount = value;
|
||||
}
|
||||
|
||||
#endregion Private Properties
|
||||
|
||||
#region Private Methods
|
||||
|
||||
private void closeNew()
|
||||
{
|
||||
reqNew = false;
|
||||
@@ -105,15 +133,6 @@ namespace MP.INVE.Pages
|
||||
desc = "";
|
||||
}
|
||||
|
||||
private async Task reloadData()
|
||||
{
|
||||
await Task.Delay(1);
|
||||
//ListaMagazzini = null;
|
||||
isLoading = true;
|
||||
//ListaMagazzini = MIDataservice.MagazziniList();
|
||||
isLoading = false;
|
||||
}
|
||||
|
||||
private async Task insertNewMag()
|
||||
{
|
||||
var alert = await JSRuntime.InvokeAsync<bool>("confirm", "Confermi di voler creare un nuovo magazzino?");
|
||||
@@ -129,40 +148,25 @@ namespace MP.INVE.Pages
|
||||
};
|
||||
await MIDataservice.InsertNewMag(newMag);
|
||||
NavManager.NavigateTo(NavManager.Uri, true);
|
||||
//await MIDataservice.FlushRedisCache();
|
||||
//await reloadData();
|
||||
}
|
||||
else
|
||||
{
|
||||
closeNew();
|
||||
}
|
||||
}
|
||||
#if false
|
||||
|
||||
private async Task deleteMag(AnagMagModel mag)
|
||||
private void openNew()
|
||||
{
|
||||
var alert = await JSRuntime.InvokeAsync<bool>("confirm", "Confermi di voler eliminare il magazzino selezionato?");
|
||||
if (alert)
|
||||
{
|
||||
await MIDataservice.DeleteMag(mag);
|
||||
NavManager.NavigateTo("ElencoMagazzini", true);
|
||||
await reloadData();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
protected void ForceReload(int newNum)
|
||||
{
|
||||
numRecord = newNum;
|
||||
reqNew = true;
|
||||
}
|
||||
|
||||
protected void ForceReloadPage(int newNum)
|
||||
private async Task reloadData()
|
||||
{
|
||||
currPage = newNum;
|
||||
isLoading = true;
|
||||
await Task.Delay(1);
|
||||
isLoading = false;
|
||||
}
|
||||
|
||||
private bool isLoading { get; set; } = false;
|
||||
private string codMag { get; set; } = "";
|
||||
private string desc { get; set; } = "";
|
||||
|
||||
#endregion Private Methods
|
||||
}
|
||||
}
|
||||
@@ -58,7 +58,7 @@ namespace MP.INVE.Pages
|
||||
protected async void ExportCSV()
|
||||
{
|
||||
var fullData = MIService.ExportSessionDetail(sessID);
|
||||
await MP.Data.Utils.SaveToCsv(fullData, fullPath, ';');
|
||||
await Egw.Core.Utils.SaveToCsv(fullData, fullPath, ';');
|
||||
await InvokeAsync(StateHasChanged);
|
||||
}
|
||||
|
||||
|
||||
@@ -19,6 +19,7 @@ namespace MP.INVE.Pages
|
||||
|
||||
protected string codMag { get; set; } = "";
|
||||
|
||||
protected AnagOperatoriModel currOpr { get; set; } = null!;
|
||||
protected string idOpr { get; set; } = "";
|
||||
|
||||
protected int inveSessionId { get; set; } = 0;
|
||||
@@ -29,12 +30,15 @@ namespace MP.INVE.Pages
|
||||
|
||||
[Inject]
|
||||
protected MiDataService MIService { get; set; } = null!;
|
||||
|
||||
[Inject]
|
||||
protected MessageService MsgService { get; set; } = null!;
|
||||
|
||||
[Inject]
|
||||
protected NavigationManager NavManager { get; set; } = null!;
|
||||
|
||||
protected string rawScan { get; set; } = null!;
|
||||
|
||||
[Inject]
|
||||
protected ISessionStorageService sessionStorage { get; set; } = null!;
|
||||
|
||||
@@ -74,47 +78,8 @@ namespace MP.INVE.Pages
|
||||
codMag = _codMag;
|
||||
}
|
||||
}
|
||||
|
||||
#if false
|
||||
if (!string.IsNullOrEmpty(idOpr) && !string.IsNullOrEmpty(authKey))
|
||||
{
|
||||
isFullUrl = true;
|
||||
string pw = MIService.DeriptData(authKey);
|
||||
logged = MIService.loginOperatore(int.Parse(idOpr), pw);
|
||||
|
||||
if (logged)
|
||||
{
|
||||
operatore = MIService.ElencoOperatori();
|
||||
if (operatore != null)
|
||||
{
|
||||
AnagOperatoriModel? currOpr = operatore.Where(x => (x.MatrOpr == int.Parse(idOpr)) && (x.authKey == pw)).SingleOrDefault();
|
||||
|
||||
if (currOpr != null)
|
||||
{
|
||||
string hash = MIService.EncriptData(currOpr.authKey);
|
||||
OperatoreDTO sessionOpr = new OperatoreDTO
|
||||
{
|
||||
MatrOpr = currOpr.MatrOpr,
|
||||
Nome = currOpr.Nome,
|
||||
Cognome = currOpr.Cognome,
|
||||
hashAuthKey = hash,
|
||||
dtExp = DateTime.Now.AddMinutes(1)
|
||||
};
|
||||
|
||||
#if false
|
||||
await localStorage.SetItemAsync("MatrOpr", currOpr);
|
||||
#endif
|
||||
await MsgService.setCurrOperDtoAsync(sessionOpr);
|
||||
await sessionStorage.SetItemAsync("idSessione", inveSessionId);
|
||||
}
|
||||
NavManager.NavigateTo($"Acquisizione?idSess={inveSessionId}&idOpr={idOpr}&codMag={codMag}");
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
string json = "";
|
||||
Dictionary<string, string> uriProcDict = new Dictionary<string, string>();
|
||||
|
||||
protected void saveScan(string newScan)
|
||||
{
|
||||
//uriProcDict.Clear();
|
||||
@@ -140,18 +105,18 @@ namespace MP.INVE.Pages
|
||||
else
|
||||
{
|
||||
rawScan = uriProcDict["IdSessione"];
|
||||
}
|
||||
}
|
||||
#endif
|
||||
rawScan = newScan;
|
||||
}
|
||||
}
|
||||
protected string rawScan { get; set; } = null!;
|
||||
protected AnagOperatoriModel currOpr { get; set; } = null!;
|
||||
|
||||
#endregion Protected Methods
|
||||
|
||||
#region Private Fields
|
||||
|
||||
private List<AnagOperatoriModel> operatore = new List<AnagOperatoriModel>();
|
||||
private Dictionary<string, string> uriProcDict = new Dictionary<string, string>();
|
||||
|
||||
#endregion Private Fields
|
||||
|
||||
|
||||
@@ -66,26 +66,26 @@ namespace MP.INVE.Pages
|
||||
{
|
||||
logged = MIDataservice.loginOperatore(idOperatore, authKey);
|
||||
|
||||
AnagOperatoriModel? currOpr = elencoOperatori.Where(x => (x.MatrOpr == idOperatore) && (x.authKey == authKey)).SingleOrDefault();
|
||||
|
||||
if (logged)
|
||||
if (elencoOperatori != null)
|
||||
{
|
||||
if (currOpr != null)
|
||||
AnagOperatoriModel? currOpr = elencoOperatori.Where(x => (x.MatrOpr == idOperatore) && (x.authKey == authKey)).SingleOrDefault();
|
||||
|
||||
if (logged)
|
||||
{
|
||||
string hash = MIDataservice.EncriptData(currOpr.authKey);
|
||||
OperatoreDTO sessionOpr = new OperatoreDTO
|
||||
if (currOpr != null)
|
||||
{
|
||||
MatrOpr = currOpr.MatrOpr,
|
||||
Nome = currOpr.Nome,
|
||||
Cognome = currOpr.Cognome,
|
||||
hashAuthKey = hash,
|
||||
dtExp = DateTime.Now.AddMinutes(1)
|
||||
};
|
||||
#if false
|
||||
localStorage.SetItemAsync("MatrOpr", sessionOpr);
|
||||
#endif
|
||||
await MsgService.setCurrOperDtoAsync(sessionOpr);
|
||||
NavManager.NavigateTo("InveSession", true);
|
||||
string hash = MIDataservice.EncriptData(currOpr.authKey);
|
||||
OperatoreDTO sessionOpr = new OperatoreDTO
|
||||
{
|
||||
MatrOpr = currOpr.MatrOpr,
|
||||
Nome = currOpr.Nome,
|
||||
Cognome = currOpr.Cognome,
|
||||
hashAuthKey = hash,
|
||||
dtExp = DateTime.Now.AddMinutes(1)
|
||||
};
|
||||
await MsgService.setCurrOperDtoAsync(sessionOpr);
|
||||
NavManager.NavigateTo("InveSession", true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,95 +0,0 @@
|
||||
@page "/Test"
|
||||
@*<div class="row">
|
||||
<div class="d-flex justify-content-between">
|
||||
<div class="card">
|
||||
<div>UDC Già presente</div>
|
||||
<div class="card-body">
|
||||
<div class="img-fluid" id="qrCodeImg_101"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div>SEMI LAVORATO</div>
|
||||
<div class="card-body">
|
||||
<div class="img-fluid" id="qrCodeImg_102"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div>UDC NUOVO</div>
|
||||
<div class="card-body">
|
||||
<div class="img-fluid" id="qrCodeImg_103"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div>LOTTO</div>
|
||||
<div class="card-body">
|
||||
<div class="img-fluid" id="qrCodeImg_104"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div>LOTTO Già presente</div>
|
||||
<div class="card-body">
|
||||
<div class="img-fluid" id="qrCodeImg_105"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="card">
|
||||
<div>ARTICOLO GIUSTO</div>
|
||||
<div class="card-body">
|
||||
<div class="img-fluid" id="qrCodeImg_106"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div>ARTICOLO SBAGLIATO</div>
|
||||
<div class="card-body">
|
||||
<div class="img-fluid" id="qrCodeImg_107"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>*@
|
||||
<CodeScan lastRawScan="saveScan"></CodeScan>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Oggetto</th>
|
||||
<th scope="col"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if (elencoSCAN != null)
|
||||
{
|
||||
@foreach (var item in elencoSCAN)
|
||||
{
|
||||
<tr>
|
||||
<td class="d-flex justify-content-between">
|
||||
<div class="col-6">
|
||||
<div class="fw-bold">
|
||||
<span class="small textCondensed"><b>Cod: </b></span>@item.ScanValue
|
||||
</div>
|
||||
<div>
|
||||
<span class="small textCondensed"><b>Lotto: </b></span>@item.Lotto
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<div>
|
||||
<span class="small textCondensed"><b>Art: </b></span>@item.CodArticolo
|
||||
</div>
|
||||
<div>
|
||||
<span class="small textCondensed"><b>Qty: </b></span>@Math.Round(item.Qty, 0)
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<button class="btn btn-sm btn-danger" @onclick="()=>deleteScan(item)">
|
||||
<i class="fa-solid fa-trash-can"></i>
|
||||
</button>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -1,77 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
using System.Net.Http;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Components.Authorization;
|
||||
using Microsoft.AspNetCore.Components.Forms;
|
||||
using Microsoft.AspNetCore.Components.Routing;
|
||||
using Microsoft.AspNetCore.Components.Web;
|
||||
using Microsoft.AspNetCore.Components.Web.Virtualization;
|
||||
using Microsoft.JSInterop;
|
||||
using MP.INVE;
|
||||
using MP.INVE.Shared;
|
||||
using MP.INVE.Components;
|
||||
using MP.INVE.Data;
|
||||
using MP.Data.DatabaseModels;
|
||||
|
||||
namespace MP.INVE.Pages
|
||||
{
|
||||
public partial class Test
|
||||
{
|
||||
[Inject]
|
||||
MiDataService MIService { get; set; } = null!;
|
||||
[Inject]
|
||||
IJSRuntime JSRuntime { get; set; } = null!;
|
||||
|
||||
protected string rawScan { get; set; } = null!;
|
||||
|
||||
List<ScanDataModel>? elencoSCAN;
|
||||
protected override async Task OnParametersSetAsync()
|
||||
{
|
||||
await Task.Delay(1);
|
||||
|
||||
}
|
||||
|
||||
protected override async Task OnAfterRenderAsync(bool firstRender)
|
||||
{
|
||||
//if (firstRender)
|
||||
//{
|
||||
// await JSRuntime.InvokeVoidAsync("clearContent", $"qrCodeImg_{101}");
|
||||
// await JSRuntime.InvokeVoidAsync("displayQr", $"qrCodeImg_{101}", "20MFI000000001");
|
||||
// await JSRuntime.InvokeVoidAsync("clearContent", $"qrCodeImg_{102}");
|
||||
// await JSRuntime.InvokeVoidAsync("displayQr", $"qrCodeImg_{102}", "20MSL000000002");
|
||||
// await JSRuntime.InvokeVoidAsync("clearContent", $"qrCodeImg_{103}");
|
||||
// await JSRuntime.InvokeVoidAsync("displayQr", $"qrCodeImg_{103}", "21MFI000000017");
|
||||
|
||||
// await JSRuntime.InvokeVoidAsync("clearContent", $"qrCodeImg_{104}");
|
||||
// await JSRuntime.InvokeVoidAsync("displayQr", $"qrCodeImg_{104}", "M200000019");
|
||||
|
||||
// await JSRuntime.InvokeVoidAsync("clearContent", $"qrCodeImg_{105}");
|
||||
// await JSRuntime.InvokeVoidAsync("displayQr", $"qrCodeImg_{105}", "M210000055");
|
||||
|
||||
// await JSRuntime.InvokeVoidAsync("clearContent", $"qrCodeImg_{106}");
|
||||
// await JSRuntime.InvokeVoidAsync("displayQr", $"qrCodeImg_{106}", "027407");
|
||||
|
||||
// await JSRuntime.InvokeVoidAsync("clearContent", $"qrCodeImg_{107}");
|
||||
// await JSRuntime.InvokeVoidAsync("displayQr", $"qrCodeImg_{107}", "ABCDE");
|
||||
//}
|
||||
}
|
||||
|
||||
protected void saveScan(string newScan)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(newScan))
|
||||
{
|
||||
rawScan = newScan;
|
||||
elencoSCAN = MIService.ScanList().Where(x => x.ScanValue == newScan).ToList();
|
||||
}
|
||||
}
|
||||
protected async Task deleteScan(ScanDataModel scan)
|
||||
{
|
||||
await MIService.deleteScansione(scan);
|
||||
}
|
||||
private string CodUDC { get; set; } = null!;
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
<body>
|
||||
<i>Modulo MAPOINVE </i>
|
||||
<h4>Versione: 6.16.2409.408</h4>
|
||||
<h4>Versione: 6.16.2410.2811</h4>
|
||||
<br /> Note di rilascio:
|
||||
<ul>
|
||||
<li>
|
||||
|
||||
@@ -1 +1 @@
|
||||
6.16.2409.408
|
||||
6.16.2410.2811
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<item>
|
||||
<version>6.16.2409.408</version>
|
||||
<version>6.16.2410.2811</version>
|
||||
<url>https://nexus.steamware.net/repository/SWS/MP-INVE/stable/LAST/MP.INVE.zip</url>
|
||||
<changelog>https://nexus.steamware.net/repository/SWS/MP-INVE/stable/LAST/ChangeLog.html</changelog>
|
||||
<mandatory>false</mandatory>
|
||||
|
||||
@@ -1,57 +1,61 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
using System.Net.Http;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Components.Authorization;
|
||||
using Microsoft.AspNetCore.Components.Forms;
|
||||
using Microsoft.AspNetCore.Components.Routing;
|
||||
using Microsoft.AspNetCore.Components.Web;
|
||||
using Microsoft.AspNetCore.Components.Web.Virtualization;
|
||||
using Microsoft.JSInterop;
|
||||
using MP.INVE;
|
||||
using MP.INVE.Shared;
|
||||
using MP.INVE.Components;
|
||||
using MP.INVE.Data;
|
||||
using MP.Data.DTO;
|
||||
using Blazored.LocalStorage;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
|
||||
namespace MP.INVE.Shared
|
||||
{
|
||||
public partial class NavMenu
|
||||
{
|
||||
private bool collapseNavMenu = true;
|
||||
//public List<MP.Data.DatabaseModels.LinkMenu>? ElencoLink { get; set; }
|
||||
private string? NavMenuCssClass => collapseNavMenu ? "collapse" : null;
|
||||
private void ToggleNavMenu()
|
||||
{
|
||||
collapseNavMenu = !collapseNavMenu;
|
||||
}
|
||||
#region Public Properties
|
||||
|
||||
[Parameter]
|
||||
public EventCallback<bool> EC_compressUpdated { get; set; }
|
||||
|
||||
protected override async Task OnInitializedAsync()
|
||||
{
|
||||
// recupero elenco JQM
|
||||
//ElencoLink = await MDService.ElencoLink();
|
||||
}
|
||||
#endregion Public Properties
|
||||
|
||||
#region Protected Properties
|
||||
|
||||
protected string hideText { get => showText ? "" : "invisible"; }
|
||||
|
||||
[Inject]
|
||||
protected ILocalStorageService localStorage { get; set; } = null!;
|
||||
|
||||
[Inject]
|
||||
protected NavigationManager NavigationManager { get; set; } = null!;
|
||||
|
||||
protected bool showText { get; set; } = true;
|
||||
|
||||
#endregion Protected Properties
|
||||
|
||||
#region Protected Methods
|
||||
|
||||
protected void ToggleCompress()
|
||||
{
|
||||
showText = !showText;
|
||||
EC_compressUpdated.InvokeAsync(showText);
|
||||
}
|
||||
|
||||
protected string hideText { get => showText ? "" : "invisible"; }
|
||||
#endregion Protected Methods
|
||||
|
||||
[Parameter]
|
||||
public EventCallback<bool> EC_compressUpdated { get; set; }
|
||||
[Inject]
|
||||
protected ILocalStorageService localStorage { get; set; } = null!;
|
||||
[Inject]
|
||||
protected NavigationManager NavigationManager { get; set; } = null!;
|
||||
#region Private Fields
|
||||
|
||||
private bool collapseNavMenu = true;
|
||||
|
||||
#endregion Private Fields
|
||||
|
||||
#region Private Properties
|
||||
|
||||
//public List<MP.Data.DatabaseModels.LinkMenu>? ElencoLink { get; set; }
|
||||
private string? NavMenuCssClass => collapseNavMenu ? "collapse" : null;
|
||||
|
||||
#endregion Private Properties
|
||||
|
||||
#region Private Methods
|
||||
|
||||
private void ToggleNavMenu()
|
||||
{
|
||||
collapseNavMenu = !collapseNavMenu;
|
||||
}
|
||||
|
||||
#endregion Private Methods
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
InveSessId;Description;UserCrea;DtStart;DtEnd;CodMag;DescMag;ScanId;DtScan;ScanValue;Lotto;CodArticolo;DescrArt;CodArtExt;CodStato;Qty;UserScan;Note
|
||||
2;prova n2;Zaccaria;10/11/2022 10:00:00;04/01/2023 12:57:48;00004;Magazzino Qualità;53;13/12/2022 14:33:27;21MFI000000017;M210000022;60652;GUARNIZIONE 3 STOP;60652;FIN;100,000000;103;
|
||||
2;prova n2;Zaccaria;10/11/2022 10:00:00;04/01/2023 12:57:48;00004;Magazzino Qualità;54;13/12/2022 14:33:37;M210000063;M210000063;60644;SCHAUM ZWST AUSSTROMER MIT KLEBER PROJECT CRAFTER;60644;FIN;0,000000;103;
|
||||
2;prova n2;Zaccaria;10/11/2022 10:00:00;04/01/2023 12:57:48;00004;Magazzino Qualità;55;13/12/2022 14:34:00;M210000063;M210000063;60644;SCHAUM ZWST AUSSTROMER MIT KLEBER PROJECT CRAFTER;60644;FIN;93939,000000;103;
|
||||
2;prova n2;Zaccaria;10/11/2022 10:00:00;04/01/2023 12:57:48;00004;Magazzino Qualità;56;13/12/2022 14:35:42;21MFI000000019;M210000023;AC31973128;MICROPES 2075N 250\10 H110CM SP10 + ADESIVO GL;AC31973128;FIN;200,000000;103;
|
||||
2;prova n2;Zaccaria;10/11/2022 10:00:00;04/01/2023 12:57:48;00004;Magazzino Qualità;57;13/12/2022 14:36:24;d;d;60737;TEPPICH FUER HSK KAPPE;60737;FIN;898950,000000;103;
|
||||
2;prova n2;Zaccaria;10/11/2022 10:00:00;04/01/2023 12:57:48;00004;Magazzino Qualità;58;13/12/2022 14:36:57;d;d;60737;TEPPICH FUER HSK KAPPE;60737;FIN;898950,000000;103;test note
|
||||
|
Reference in New Issue
Block a user