Merge branch 'develop'

This commit is contained in:
Samuele E. Locatelli
2020-08-12 18:57:41 +02:00
7 changed files with 39 additions and 31 deletions
+14 -7
View File
@@ -1928,6 +1928,7 @@ namespace AppData
List<string> itemsBin = new List<string>();
List<string> itemsSecOp = new List<string>();
List<string> itemsScrap = new List<string>();
List<string> itemsSelect = new List<string>();
//se ho items...
if (tabItems.Count > 0)
@@ -1960,6 +1961,11 @@ namespace AppData
{
itemsSecOp.Add(item.ItemDtmx);
}
// se selezionato status 2...
if (item.StatusID == 2)
{
itemsSelect.Add(item.ItemDtmx);
}
}
}
@@ -1980,7 +1986,8 @@ namespace AppData
answ = updateCssByItemList(answ, redKeyBase, "ItemsScrap", itemsScrap, dataCacheTTL);
// FIXED SEL da array oggetti selezionati...
answ = updateCssByPickedItems(answ, redKeyBase, "ItemsSel", dataCacheTTL);
answ = updateCssByItemList(answ, redKeyBase, "ItemsSel", itemsSelect, dataCacheTTL);
//answ = updateCssByPickedItems(answ, redKeyBase, "ItemsSel", dataCacheTTL);
// INFINE serializzo e salvo tutti gli items trovati...
@@ -2010,12 +2017,12 @@ namespace AppData
bool answ = false;
string rawData = memLayer.ML.getRSV($"{redKeyBase}:ItemsSel");
Dictionary<string, string> dictData = new Dictionary<string, string>();
if (!string.IsNullOrEmpty(rawData))
{
dictData = JsonConvert.DeserializeObject<Dictionary<string, string>>(rawData);
}
try
{
if (!string.IsNullOrEmpty(rawData))
{
dictData = JsonConvert.DeserializeObject<Dictionary<string, string>>(rawData);
}
// cerco chiave device...
if (dictData.ContainsKey(deviceId))
{
@@ -2064,12 +2071,12 @@ namespace AppData
rawData = JsonConvert.SerializeObject(dictData);
memLayer.ML.setRSV($"{redKeyBase}:ItemsSel", rawData);
answ = true;
// reset memoria redis del CSS x obbligare refresh...
memLayer.ML.setRSV($"{redKeyBase}:Css", "");
}
catch
{ }
}
// reset memoria redis del CSS x obbligare refresh...
memLayer.ML.setRSV($"{redKeyBase}:Css", "");
return answ;
}
Vendored
+1 -1
View File
@@ -11,7 +11,7 @@ pipeline {
steps {
/* calcolo numero versione... diverso x branch MASTER/DEVELOP */
script {
withEnv(['NEXT_BUILD_NUMBER=324']) {
withEnv(['NEXT_BUILD_NUMBER=325']) {
// env.versionNumber = VersionNumber(versionNumberString : '1.1.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2019-07-01', skipFailedBuilds: true)
env.versionNumber = VersionNumber(versionNumberString : '1.1.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2019-07-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}')
env.versionNumberBeta = VersionNumber(versionNumberString : '1.1.${BUILD_DATE_FORMATTED, "yyMM"}-beta.${BUILDS_ALL_TIME}', projectStartDate : '2019-07-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}')
+13 -3
View File
@@ -40,14 +40,24 @@ namespace NKC_WF.Controllers
string answ = "";
if (sheetID > 0)
{
// TTL standard
int dataCacheTTL = memLayer.ML.cdvi("cssCacheTTL");
dataCacheTTL = dataCacheTTL <= 0 ? 60 : dataCacheTTL;
// recupero da REDIS!
string redKey = $"{ComLib.machineUnloadArea(sheetID)}:Css";
// se vuoto scrivo VUOTO...
if (!memLayer.ML.redKeyPresent(redKey))
if (memLayer.ML.redKeyPresent(redKey))
{
memLayer.ML.setRSV(redKey, answ);
answ = memLayer.ML.getRSV(redKey);
}
answ = memLayer.ML.getRSV(redKey);
//if (!memLayer.ML.redKeyPresent(redKey))
//{
// memLayer.ML.setRSV(redKey, answ, dataCacheTTL / 2);
//}
//else
//{
// answ = memLayer.ML.getRSV(redKey);
//}
// RICALCOLO SOLO SE non trovo in REDIS (perché invalidato)
if (string.IsNullOrEmpty(answ))
// se vuoto lo calcolo...
+4 -4
View File
@@ -25,8 +25,8 @@
if (data != lastVal) {
$('#uplTavola').load(location.href + ' #dynCss');
document.getElementById('<%=hfCurrRev.ClientID%>').value = data;
}
});
}
});
// qui leggo la versione del BUNK (con cambio foglio...)
$.ajax({
url: "../api/getMUSheetRev/" + BunkId
@@ -36,8 +36,8 @@
// ricarico intera pagina!
location.reload();
document.getElementById('<%=hfCurrBunkRev.ClientID%>').value = data;
}
});
}
});
}
</script>
<svg width="2000" height="1000" xmlns='http://www.w3.org/2000/svg' runat="server" id="svgTable" class="img-fluid">
@@ -18,7 +18,6 @@ namespace NKC_WF.WebUserControls
if (hfBatchId.Value != value.ToString())
{
hfBatchId.Value = value.ToString();
//doUpdate();
}
}
get
@@ -38,7 +37,6 @@ namespace NKC_WF.WebUserControls
if (hfSheetId.Value != value.ToString())
{
hfSheetId.Value = value.ToString();
doUpdate();
}
}
get
+1 -7
View File
@@ -2,7 +2,6 @@
<%@ Register Src="~/WebUserControls/cmp_MU_svgViewer.ascx" TagPrefix="uc1" TagName="cmp_MU_svgViewer" %>
<%@ Register Src="~/WebUserControls/cmp_MU_stats.ascx" TagPrefix="uc1" TagName="cmp_MU_stats" %>
<%@ Register Src="~/WebUserControls/cmp_MU_suggestions.ascx" TagPrefix="uc1" TagName="cmp_MU_suggestions" %>
<%@ Register Src="~/WebUserControls/cmp_MU_bins.ascx" TagPrefix="uc1" TagName="cmp_MU_bins" %>
<%@ Register Src="~/WebUserControls/cmp_MU_carts.ascx" TagPrefix="uc1" TagName="cmp_MU_carts" %>
@@ -14,7 +13,7 @@
<div class="card-body py-1 bg-dark">
<asp:UpdatePanel runat="server" ID="upnlStats" UpdateMode="Always">
<ContentTemplate>
<asp:Timer ID="timerSvg" runat="server" Interval="1500" OnTick="timerSvg_Tick"></asp:Timer>
<asp:Timer ID="timerSvg" runat="server" Interval="1000" OnTick="timerSvg_Tick"></asp:Timer>
<asp:HiddenField ID="hfBatchID" runat="server" />
<asp:HiddenField ID="hfSheetID" runat="server" />
<uc1:cmp_MU_stats runat="server" ID="cmp_MU_stats" />
@@ -43,11 +42,6 @@
</asp:UpdatePanel>
</div>
</div>
<%--<asp:UpdatePanel runat="server" ID="upnlSuggest" UpdateMode="Conditional">
<ContentTemplate>
<uc1:cmp_MU_suggestions runat="server" ID="cmp_MU_suggestions" Visible="false" />
</ContentTemplate>
</asp:UpdatePanel>--%>
</div>
</div>
</div>
+6 -7
View File
@@ -11,8 +11,6 @@ namespace NKC_WF
if (!Page.IsPostBack)
{
((SiteMaster)this.Master).showSearch = false;
// svuoto redis...
memLayer.ML.redFlushKey(ComLib.redMachUnloadCount);
doUpdate();
}
}
@@ -64,6 +62,7 @@ namespace NKC_WF
cmp_MU_carts.BatchId = BatchId;
cmp_MU_svgViewer.BatchId = BatchId;
cmp_MU_svgViewer.SheetId = SheetId;
cmp_MU_svgViewer.doUpdate();
}
}
/// <summary>
@@ -111,22 +110,22 @@ namespace NKC_WF
int counter = numWaitSvg;
doUpdate();
// ogni x cicli
if (counter % 4 == 0)
if (counter % 5 == 0)
{
cmp_MU_stats.doUpdate();
upnlStats.DataBind();
#if false
// verifico se c'è richiesta reload UNLOAD...
if (!string.IsNullOrEmpty(memLayer.ML.getRSV(redProdForceReload)))
{
Response.Redirect(Request.RawUrl);
}
}
#endif
}
if (counter % 2 == 0)
{
cmp_MU_carts.doUpdate();
upnlCarts.DataBind();
cmp_MU_bins.doUpdate();
upnlCarts.DataBind();
}
incrNumWait();
}