Merge branch 'Giancarlo' into ES3

This commit is contained in:
Samuele E. Locatelli
2020-12-03 19:06:01 +01:00
6 changed files with 95 additions and 26 deletions
Vendored
+1 -1
View File
@@ -12,7 +12,7 @@ pipeline {
steps {
/* calcolo numero versione... diverso x branch MASTER/DEVELOP */
script {
withEnv(['NEXT_BUILD_NUMBER=1339']) {
withEnv(['NEXT_BUILD_NUMBER=1340']) {
// 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'
+27
View File
@@ -41,6 +41,33 @@ namespace MoonProTablet.WebUserControls
#endregion Public Events
#region Protected Properties
/// <summary>
/// Restituisce il codice IdxMacchina dell'impianto PARENT (se multi) altrimenti la stessa macchina...
/// </summary>
protected string idxMaccParent
{
get
{
string answ = "";
// se è multi controllo
if (isMulti)
{
// verifico se SIA una tavola (ha char "#")
int iSharp = idxMacchinaFix.IndexOf('#');
if (iSharp > 0)
{
// sistemo nome
answ = idxMacchinaFix.Substring(0, iSharp);
}
}
return answ;
}
}
#endregion Protected Properties
#region Internal Properties
/// <summary>
+32 -1
View File
@@ -1,4 +1,5 @@
using System;
using MapoDb;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
@@ -28,9 +29,37 @@ namespace MoonProTablet.WebUserControls
#region Private Methods
/// <summary>
/// Verifica visibilità reset
/// </summary>
private void checkReset()
{
// condizioni booleane
bool inAttr = false;
// controllo se la macchina è in attrezzaggio...
DS_applicazione.StatoMacchineRow rigaStato = null;
try
{
// se è multi controllo parent...
if (isMulti)
{
rigaStato = selData.mng.rigaStato(idxMaccParent);
}
else
{
rigaStato = selData.mng.rigaStato(idxMacchinaFix);
}
inAttr = (rigaStato.IdxStato == 2);
}
catch
{ }
lbtClearOdl.Visible = inAttr;
}
private void cmp_ST_objCheck_eh_doUpdate(object sender, EventArgs e)
{
repGroup.DataBind();
checkReset();
}
#endregion Private Methods
@@ -44,6 +73,7 @@ namespace MoonProTablet.WebUserControls
// sollevo evento
repGroup.DataBind();
reportUpdate();
checkReset();
}
protected void Page_Load(object sender, EventArgs e)
@@ -53,6 +83,7 @@ namespace MoonProTablet.WebUserControls
lbtClearOdl.DataBind();
}
cmp_ST_objCheck.eh_doUpdate += cmp_ST_objCheck_eh_doUpdate;
checkReset();
}
#endregion Protected Methods
+1
View File
@@ -92,6 +92,7 @@
</div>
<div class="row pb-3 mt-3">
<div class="col-sm-6">
<asp:Label runat="server" ID="lblNeedSTAR" Visible="false" CssClass="btn btn-block btn-outline-danger">Scheda Tecnica incompleta!!!</asp:Label>
<asp:LinkButton runat="server" ID="lbtStartProd" OnClick="lbtStartProd_Click" OnClientClick='<%# SteamWare.jsUtils.getCBE("confermaInizioProd") %>' CssClass="btn btn-block btn-warning"><i class="fa fa-check"></i> FINE Attr / INIZIO Prod.</asp:LinkButton>
</div>
<div class="col-sm-6">
+25 -24
View File
@@ -85,29 +85,6 @@ namespace MoonProTablet.WebUserControls
}
}
/// <summary>
/// Restituisce il codice IdxMacchina dell'impianto PARENT (se multi) altrimenti la stessa macchina...
/// </summary>
protected string idxMaccParent
{
get
{
string answ = "";
// se è multi controllo
if (isMulti)
{
// verifico se SIA una tavola (ha char "#")
int iSharp = idxMacchinaFix.IndexOf('#');
if (iSharp > 0)
{
// sistemo nome
answ = idxMacchinaFix.Substring(0, iSharp);
}
}
return answ;
}
}
/// <summary>
/// valore INT di num Pz per Pallet...
/// </summary>
@@ -511,10 +488,30 @@ namespace MoonProTablet.WebUserControls
}
// deve controllare abbia ODL o PROMESSE odl...
bool hasNewOdl = DataLayerObj.taSelOdlFree.getUnused(idxMacchinaFix, chkTutti.Checked).Rows.Count > 1;
bool enableSchedaTecnica = memLayer.ML.CRB("enableSchedaTecnica");
// sistemo buttons!
lbtStartAttr.Enabled = (isEnabled && (!inAttr && hasNewOdl));
lbtStartProd.Enabled = (isEnabled && inAttr);
lbtEndProd.Enabled = (isEnabled && (!inAttr && currHasOdl));
// controllo se ci sia da verificare scheda tecnica
if (enableSchedaTecnica)
{
var tabRichieste = DataLayerObj.taSTAR.getPendingByOdl("", idxOdl);
bool okCheckST = tabRichieste.Count == 0;
if (okCheckST)
{
lblNeedSTAR.Visible = false;
lbtStartProd.Enabled = (isEnabled && inAttr);
}
else
{
lblNeedSTAR.Visible = (isEnabled && inAttr);
lbtStartProd.Enabled = false;
}
}
else
{
lbtStartProd.Enabled = (isEnabled && inAttr);
}
ddlODL.Enabled = (isEnabled && (!inAttr && hasNewOdl));
odsODL.DataBind();
// sistemo anche come css..
@@ -1223,6 +1220,10 @@ namespace MoonProTablet.WebUserControls
{
DataLayerObj.taODL.fixMachineSlave(idxMacchina, 30, 1);
}
// se c'è gesitone SchedaTecnica --> chiamo procedura update x lotti
// FixMe-ToDo
// riporto stringa
lblOut.Text = sb.ToString().Replace("---", "<br/>");
// nascondo note!
+9
View File
@@ -221,6 +221,15 @@ namespace MoonProTablet.WebUserControls
/// </remarks>
protected global::System.Web.UI.WebControls.LinkButton lbtReopOdlSuTav;
/// <summary>
/// Controllo lblNeedSTAR.
/// </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 lblNeedSTAR;
/// <summary>
/// Controllo lbtStartProd.
/// </summary>