Update gestione segnaposto x conf prod

This commit is contained in:
Samuele E. Locatelli
2020-11-18 10:12:29 +01:00
parent 4b9a4d6b2f
commit d970b704a9
7 changed files with 28 additions and 9 deletions
+1 -1
View File
@@ -10,7 +10,7 @@
<IISExpressWindowsAuthentication />
<IISExpressUseClassicPipelineMode />
<UseGlobalApplicationHostFile />
<LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
<LastActiveSolutionConfig>IIS02|Any CPU</LastActiveSolutionConfig>
<Controller_SelectedScaffolderID>ApiControllerWithActionsScaffolder</Controller_SelectedScaffolderID>
<Controller_SelectedScaffolderCategoryPath>root/Controller</Controller_SelectedScaffolderCategoryPath>
<WebStackScaffolding_ControllerDialogWidth>600</WebStackScaffolding_ControllerDialogWidth>
+9 -2
View File
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Text;
using System.Web.Http;
namespace MP_MON.Controllers
@@ -19,7 +20,7 @@ namespace MP_MON.Controllers
// GET: api/DbTask
public IEnumerable<string> Get()
{
return new string[] { "value1", "value2" };
return new string[] { "Refresh", "value2" };
}
// GET: api/DbTask/5
@@ -29,8 +30,14 @@ namespace MP_MON.Controllers
}
// POST: api/DbTask
public void Post([FromBody] string value)
public string Post([FromBody] List<string> names)
{
string answ = "";
foreach (var item in names)
{
answ += $"{item} | ";
}
return answ;
}
// PUT: api/DbTask/5
+1 -1
View File
@@ -19,7 +19,7 @@
<IISExpressWindowsAuthentication />
<IISExpressUseClassicPipelineMode />
<UseGlobalApplicationHostFile />
<LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
<LastActiveSolutionConfig>IIS02|Any CPU</LastActiveSolutionConfig>
<Controller_SelectedScaffolderID>ApiControllerWithActionsScaffolder</Controller_SelectedScaffolderID>
<Controller_SelectedScaffolderCategoryPath>root/Controller</Controller_SelectedScaffolderCategoryPath>
</PropertyGroup>
+1 -1
View File
@@ -8,7 +8,7 @@
<IISExpressWindowsAuthentication />
<IISExpressUseClassicPipelineMode />
<UseGlobalApplicationHostFile />
<LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
<LastActiveSolutionConfig>IIS02|Any CPU</LastActiveSolutionConfig>
<ProjectView>ShowAllFiles</ProjectView>
<NameOfLastUsedPublishProfile>IIS02</NameOfLastUsedPublishProfile>
</PropertyGroup>
+3 -2
View File
@@ -12,9 +12,9 @@
////document.getElementById('<%= lblUpdating.ClientID %>').hidden = true;
}
function fixDelayed() {
console.log('start delay');
//console.log('start delay');
setTimeout(function () {
console.log('after');
//console.log('after');
////document.getElementById('<%= lblUpdating.ClientID %>').hidden = true;
}, 300);
}
@@ -71,6 +71,7 @@
<div class="col-6 col-sm-3 pr-1 align-self-end font-weight-bold">
<asp:Label runat="server" ID="lblNumLasciati" CssClass="mb-0" AssociatedControlID="txtNumPezzi" Text="Pz Prodotti LASCIATI" />
<asp:TextBox runat="server" ID="txtNumLasciati" Font-Size="XX-Large" TextMode="Number" CssClass="form-control text-right alert alert-secondary py-0 mb-0" Enabled="true" AutoPostBack="True" OnTextChanged="txtNumLasciati_TextChanged" onfocus="hideConfirmButton()" onblur="showConfirmButton()" />
<asp:Label runat="server" ID="lblEmptyNumLasciati" CssClass="btn btn-secondary text-light btn-lg btn-block" Visible="false">&nbsp;</asp:Label>
</div>
<div class="col-6 col-sm-3 pl-1 align-self-end font-weight-bold">
<asp:LinkButton runat="server" ID="lbtSalva" CssClass="btn btn-success text-light btn-lg btn-block" OnClick="lbtSalva_Click"><i class="fa fa-floppy-o"></i> CONFERMA</asp:LinkButton>
+4 -2
View File
@@ -248,8 +248,10 @@ namespace MoonProTablet.WebUserControls
private void checkConfig()
{
// verifico SE sia permesso gestire i "Pezzi lasciati" in macchina...
lblNumLasciati.Visible = memLayer.ML.cdvb("enablePzProdLasciati");
txtNumLasciati.Visible = memLayer.ML.cdvb("enablePzProdLasciati");
bool enablePzProdLasciati = memLayer.ML.cdvb("enablePzProdLasciati");
lblNumLasciati.Visible = enablePzProdLasciati;
txtNumLasciati.Visible = enablePzProdLasciati;
lblEmptyNumLasciati.Visible = !enablePzProdLasciati;
}
/// <summary>
+9
View File
@@ -167,6 +167,15 @@ namespace MoonProTablet.WebUserControls
/// </remarks>
protected global::System.Web.UI.WebControls.TextBox txtNumLasciati;
/// <summary>
/// Controllo lblEmptyNumLasciati.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblEmptyNumLasciati;
/// <summary>
/// Controllo lbtSalva.
/// </summary>