Fix reset regole veto/pass in redis
This commit is contained in:
@@ -54,7 +54,7 @@
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource runat="server" ID="ods" InsertMethod="Insert" OldValuesParameterFormatString="original_{0}" SelectMethod="getByLinea" TypeName="GMW_data.DS_magazzinoTableAdapters.ConfLineaTableAdapter" UpdateMethod="updateQuery" DeleteMethod="deleteQuery">
|
||||
<asp:ObjectDataSource runat="server" ID="ods" InsertMethod="Insert" OldValuesParameterFormatString="original_{0}" SelectMethod="getByLinea" TypeName="GMW_data.DS_magazzinoTableAdapters.ConfLineaTableAdapter" UpdateMethod="updateQuery" DeleteMethod="deleteQuery" OnDeleted="ods_Deleted" OnUpdated="ods_Updated">
|
||||
<DeleteParameters>
|
||||
<asp:Parameter Name="Original_IdxConf" Type="Int32" />
|
||||
</DeleteParameters>
|
||||
|
||||
@@ -242,6 +242,24 @@ namespace GMW.WebUserControls
|
||||
// creo un NUOVO record con funzionalità "PASS" di default...
|
||||
MagClass.magazzino.taConfLin.Insert(codLinea, "Particolare", "Cod Particolare", 1);
|
||||
grView.DataBind();
|
||||
resetRedisCache();
|
||||
}
|
||||
|
||||
protected void ods_Deleted(object sender, ObjectDataSourceStatusEventArgs e)
|
||||
{
|
||||
resetRedisCache();
|
||||
}
|
||||
|
||||
protected void ods_Updated(object sender, ObjectDataSourceStatusEventArgs e)
|
||||
{
|
||||
resetRedisCache();
|
||||
}
|
||||
|
||||
private void resetRedisCache()
|
||||
{
|
||||
// effettua reset in redis di EVENTUALI chaivi segnalate...
|
||||
string mHash = memLayer.ML.redHash($"lineePartVeto");
|
||||
memLayer.ML.redFlushKey(mHash);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1133,7 +1133,7 @@ namespace GMW_data
|
||||
bool answ = false;
|
||||
// cerco se avessi già in redis un controllo particolare/linea attivo e il suo risultato...
|
||||
string mHash = memLayer.ML.redHash($"lineePartVeto:{Postazione.currCodLinea}:{codParticolare}");
|
||||
if (memLayer.ML.getRSV(mHash) != "")
|
||||
if (memLayer.ML.getRSV(mHash) != null && memLayer.ML.getRSV(mHash) != "")
|
||||
{
|
||||
// recupero info...
|
||||
bool.TryParse(memLayer.ML.getRSV(mHash), out answ);
|
||||
|
||||
Vendored
+1
-1
@@ -11,7 +11,7 @@ pipeline {
|
||||
|
||||
/* calcolo numero versione... diverso x branch MASTER/DEVELOP */
|
||||
script {
|
||||
withEnv(['NEXT_BUILD_NUMBER=2127']) {
|
||||
withEnv(['NEXT_BUILD_NUMBER=2128']) {
|
||||
// impiego numero di build del SINGOLO RAMO
|
||||
// env.versionNumber = VersionNumber(versionNumberString : '4.0.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true)
|
||||
// forzo numero di build x tutti rami uguali
|
||||
|
||||
Reference in New Issue
Block a user