refresh dati stampa x UDC
This commit is contained in:
Vendored
+1
-1
@@ -13,7 +13,7 @@ pipeline {
|
||||
steps {
|
||||
/* calcolo numero versione... diverso x branch MASTER/DEVELOP */
|
||||
script {
|
||||
withEnv(['NEXT_BUILD_NUMBER=1365']) {
|
||||
withEnv(['NEXT_BUILD_NUMBER=1366']) {
|
||||
// env.versionNumber = VersionNumber(versionNumberString : '6.12.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true)
|
||||
env.versionNumber = VersionNumber(versionNumberString : '6.12.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}')
|
||||
env.APP_NAME = 'MAPO'
|
||||
|
||||
@@ -346,6 +346,17 @@ namespace MP_MAG
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// titolo pagina
|
||||
/// </summary>
|
||||
public string titolo
|
||||
{
|
||||
get
|
||||
{
|
||||
return devicesAuthProxy.getPage(Request.Url).Replace(".aspx", "");
|
||||
}
|
||||
}
|
||||
|
||||
#endregion Public Properties
|
||||
|
||||
#region Public Methods
|
||||
|
||||
@@ -53,6 +53,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
<li class="list-group-item">
|
||||
<asp:LinkButton runat="server" ID="lbtForceReload" CssClass="btn btn-sm btn-block btn-primary" OnClick="lbtForceReload_Click"><i class="fas fa-sync"></i> Refresh</asp:LinkButton>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using SteamWare;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
@@ -11,6 +12,26 @@ namespace MP_MAG.WebUserControls
|
||||
{
|
||||
#region Protected Methods
|
||||
|
||||
protected void lbtForceReload_Click(object sender, EventArgs e)
|
||||
{
|
||||
// rileggo
|
||||
MagData.prodPrintData newProdPrintData = MagData.MagDataLayer.man.currProdPrintData;
|
||||
// calcolo
|
||||
var tabOdl = DataLayerObj.taODL.getByIdx(newProdPrintData.IdxOdl, false);
|
||||
if (tabOdl.Rows.Count > 0)
|
||||
{
|
||||
newProdPrintData.QtaOdl = tabOdl[0].NumPezzi;
|
||||
}
|
||||
var tabDatiProdAct = DataLayerObj.taStatoProd.GetData(newProdPrintData.IdxMacchina, DateTime.Now);
|
||||
if (tabDatiProdAct.Rows.Count > 0)
|
||||
{
|
||||
newProdPrintData.QtaConf = tabDatiProdAct[0].PzConfBuoni;
|
||||
}
|
||||
// salvo in oggetto dedicato...
|
||||
MagData.MagDataLayer.man.currProdPrintData = newProdPrintData;
|
||||
Response.Redirect(titolo);
|
||||
}
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -13,5 +13,14 @@ namespace MP_MAG.WebUserControls
|
||||
|
||||
public partial class cmp_currODL
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lbtForceReload.
|
||||
/// </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.LinkButton lbtForceReload;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user