Aggiunta visualizzazione elaborazione durante conferma
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_confProd.ascx.cs" Inherits="MoonProTablet.WebUserControls.mod_confProd" %>
|
||||
|
||||
|
||||
|
||||
<div class="card bg-secondary">
|
||||
<div class="card-header p-0">
|
||||
<div class="row">
|
||||
@@ -55,10 +56,25 @@
|
||||
<div class="col-6 col-sm-3 pl-1 align-self-end font-weight-bold">
|
||||
<asp:LinkButton runat="server" ID="lbtSalva" Visible="false" CssClass="btn btn-success text-light btn-lg btn-block" OnClick="lbtSalva_Click"><i class="fa fa-floppy-o"></i> CONFERMA</asp:LinkButton>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<asp:UpdateProgress ID="updtRicerca" runat="server" DisplayAfter="10" DynamicLayout="true">
|
||||
<ProgressTemplate>
|
||||
<div id="progress_back">
|
||||
</div>
|
||||
<div id="progress_top" class="text-center text-warning align-middle">
|
||||
<i class="fa fa-spinner fa-pulse"></i>
|
||||
<b>ELABORAZIONE IN CORSO</b>
|
||||
<i class="fa fa-spinner fa-pulse"></i>
|
||||
<div class="progress">
|
||||
<div class="progress-bar progress-bar-striped bg-success progress-bar-animated" role="progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100" style="width: 75%"></div>
|
||||
</div>
|
||||
</div>
|
||||
</ProgressTemplate>
|
||||
</asp:UpdateProgress>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row textCondens">
|
||||
<div class="col-6 py-1 text-left text-uppercase">
|
||||
<b>Dati Globali ODL</b>
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using MapoDb;
|
||||
using SteamWare;
|
||||
using System;
|
||||
using System.Threading;
|
||||
using System.Web.UI;
|
||||
|
||||
namespace MoonProTablet.WebUserControls
|
||||
@@ -362,6 +363,7 @@ namespace MoonProTablet.WebUserControls
|
||||
/// <param name="e"></param>
|
||||
protected void lbtSalva_Click(object sender, EventArgs e)
|
||||
{
|
||||
//Thread.Sleep(3000);
|
||||
if (memLayer.ML.CRI("modoConfProd") == 2)
|
||||
{
|
||||
confermaPerTurni();
|
||||
@@ -375,7 +377,7 @@ namespace MoonProTablet.WebUserControls
|
||||
// mostro output
|
||||
lblOut.Text = string.Format("Confermata la produzione per {0} pezzi! (+{1} pz scarto) alle {2:yyyy-MM-dd HH:mm:ss}", numPzConfermati, numPzScarto2Rec, dtReqUpdate);
|
||||
// cambio button conferma...
|
||||
switchBtnConferma(!txtNumPezzi.Enabled);
|
||||
switchBtnConferma(!txtNumPezzi.Enabled);
|
||||
// sollevo evento!
|
||||
if (eh_newVal != null)
|
||||
{
|
||||
@@ -473,5 +475,9 @@ namespace MoonProTablet.WebUserControls
|
||||
}
|
||||
}
|
||||
|
||||
protected void lbtTest_Click(object sender, EventArgs e)
|
||||
{
|
||||
Thread.Sleep(3000);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -174,6 +174,15 @@ namespace MoonProTablet.WebUserControls {
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton lbtSalva;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo updtRicerca.
|
||||
/// </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.UpdateProgress updtRicerca;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblPz2RecTot.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user