modifiche comportamento editing

This commit is contained in:
zaccaria.majid
2022-10-20 09:42:19 +02:00
parent e948ae31af
commit d453c1d944
8 changed files with 44 additions and 9 deletions
+8
View File
@@ -33,7 +33,15 @@ else
{
<tr class="@checkSelect(@record)">
<td>
@if(isEditing == false)
{
<button class="btn btn-primary btn-sm" @onclick="() => selRecord(record)"><i class="fa-solid fa-magnifying-glass"></i></button>
}
else
{
<button class="btn btn-secondary btn-sm disabled"><i class="fa-solid fa-magnifying-glass"></i></button>
}
</td>
<td>
@record.OdlNav.CodArticolo
+21
View File
@@ -53,6 +53,7 @@ namespace MP.SPEC.Components
try
{
answ = (currRecord.IdxMacchina == recordSel.IdxMacchina && currRecord.DtRif == recordSel.DtRif) ? "table-info" : "";
}
catch
{ }
@@ -140,6 +141,19 @@ namespace MP.SPEC.Components
currRecord = null;
await reloadData(true);
}
private string css()
{
string answ = "";
if (isEditing == false)
{
answ = "visible";
}
else
{
answ = "hidden";
}
return answ;
}
#endregion Protected Methods
@@ -165,6 +179,12 @@ namespace MP.SPEC.Components
set => SelFilter.CurrPage = value;
}
private bool isEditing
{
get => SelFilter.isEditing;
set => SelFilter.isEditing = value;
}
private bool isLoading { get; set; } = false;
private List<FluxLogDTO>? listaFlux { get; set; } = null;
@@ -257,6 +277,7 @@ namespace MP.SPEC.Components
currFluxLogDto = null;
currRecord = null;
visualizzaFlux = true;
isEditing = false;
await RecordSelFlux.InvokeAsync(currFluxLogDto);
await Task.Delay(1);
}
+1 -1
View File
@@ -5,7 +5,7 @@
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<RootNamespace>MP.SPEC</RootNamespace>
<Version>6.16.2210.1920</Version>
<Version>6.16.2210.2009</Version>
</PropertyGroup>
<ItemGroup>
+3 -3
View File
@@ -49,12 +49,12 @@
</div>
<div class="col-3 pe-0">
<div class="input-group input-group-sm">
<span class="input-group-text" id="inputGroup-sizing-sm">VALORE</span>
<input type="text" class="form-control" aria-label="Art search" aria-describedby="inputGroup-sizing-sm" @bind-value="@currDetFluxLogRecord.ValoreEdit">
<span class="input-group-text" id="inputGroup-sizing-sm" >VALORE</span>
<input type="text" class="form-control" aria-label="Art search" aria-describedby="inputGroup-sizing-sm" @bind-value="@currDetFluxLogRecord.ValoreEdit" @onclick="()=>enableEdit()">
</div>
</div>
</div>
<div class="row pt-4 " >
<div class="row pt-4" style="visibility: @css()">
<div class="col-3 pe-0">
</div>
<div class="col-3 pe-0">
+8 -2
View File
@@ -31,6 +31,7 @@ namespace MP.SPEC.Pages
protected async Task cancel()
{
currDetFluxLogRecord = null;
isEditing = false;
await Task.Delay(1);
StateHasChanged();
}
@@ -110,15 +111,20 @@ namespace MP.SPEC.Pages
string answ = "";
if (isEditing == false)
{
answ = "disabled";
answ = "hidden";
}
else
{
answ = "enabled";
answ = "visible";
}
return answ;
}
private void enableEdit()
{
isEditing = true;
}
protected void updateTotal(int newTotCount)
{
totalCount = newTotCount;
+1 -1
View File
@@ -1,6 +1,6 @@
<body>
<i>Modulo MAPOSPEC </i>
<h4>Versione: 6.16.2210.1920</h4>
<h4>Versione: 6.16.2210.2009</h4>
<br /> Note di rilascio:
<ul>
<li>
+1 -1
View File
@@ -1 +1 @@
6.16.2210.1920
6.16.2210.2009
+1 -1
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<item>
<version>6.16.2210.1920</version>
<version>6.16.2210.2009</version>
<url>https://nexus.steamware.net/repository/SWS/MP-SPEC/stable/LAST/MP.SPEC.zip</url>
<changelog>https://nexus.steamware.net/repository/SWS/MP-SPEC/stable/LAST/ChangeLog.html</changelog>
<mandatory>false</mandatory>