Forza rilettura a riavvio dei TCRec da DB...
This commit is contained in:
+1
-1
@@ -226,7 +226,7 @@ namespace IOB_WIN
|
||||
{
|
||||
if (cIobConf.optPar["PZCOUNT_MODE"].StartsWith("STD"))
|
||||
{
|
||||
pzCntReload();
|
||||
pzCntReload(true);
|
||||
// refresh associazione Macchina - IOB
|
||||
sendM2IOB();
|
||||
// per adesso imposto lettura fanuc == contapezzi (poi farà vera lettura...)
|
||||
|
||||
@@ -472,7 +472,8 @@ namespace IOB_WIN
|
||||
/// <summary>
|
||||
/// Effettua rilettura del contapezzi dal server MP/IO
|
||||
/// </summary>
|
||||
protected void pzCntReload()
|
||||
/// <param name="forceCountRec">Forza rilettura da DB tempi ciclo rilevati</param>
|
||||
protected void pzCntReload(bool forceCountRec)
|
||||
{
|
||||
// legge da IO server ULTIMO valore CONTPEZZI al riavvio...
|
||||
string currServerCount = "";
|
||||
@@ -480,7 +481,7 @@ namespace IOB_WIN
|
||||
if (checkServerAlive)
|
||||
{
|
||||
// se ho valori in coda da trasmettere uso dati REDIS
|
||||
if (QueueIN.Count > 0)
|
||||
if (QueueIN.Count > 0 && !forceCountRec)
|
||||
{
|
||||
currServerCount = utils.callUrl(urlGetPzCount);
|
||||
lgInfo("Lettura contapezzi dall'url {0}", urlGetPzCount);
|
||||
@@ -668,7 +669,7 @@ namespace IOB_WIN
|
||||
if (utils.CRB("enableContapezzi"))
|
||||
{
|
||||
// rilettura contapezzi da server... SE ABILITATA
|
||||
pzCntReload();
|
||||
pzCntReload(false);
|
||||
// refresh associazione Macchina - IOB
|
||||
sendM2IOB();
|
||||
}
|
||||
|
||||
@@ -219,7 +219,7 @@ namespace IOB_WIN
|
||||
{
|
||||
if (cIobConf.optPar["PZCOUNT_MODE"].StartsWith("STD"))
|
||||
{
|
||||
pzCntReload();
|
||||
pzCntReload(true);
|
||||
// refresh associazione Macchina - IOB
|
||||
sendM2IOB();
|
||||
// per adesso imposto lettura fanuc == contapezzi (poi farà vera lettura...)
|
||||
|
||||
+1
-1
@@ -127,7 +127,7 @@ namespace IOB_WIN
|
||||
{
|
||||
if (cIobConf.optPar["PZCOUNT_MODE"].StartsWith("OVAR"))
|
||||
{
|
||||
pzCntReload();
|
||||
pzCntReload(true);
|
||||
// refresh associazione Macchina - IOB
|
||||
sendM2IOB();
|
||||
// per adesso imposto lettura dal CNC == contapezzi (poi farà vera lettura...)
|
||||
|
||||
@@ -309,7 +309,7 @@ namespace IOB_WIN
|
||||
{
|
||||
if (cIobConf.optPar["PZCOUNT_MODE"].StartsWith("STD"))
|
||||
{
|
||||
pzCntReload();
|
||||
pzCntReload(true);
|
||||
// refresh associazione Macchina - IOB
|
||||
sendM2IOB();
|
||||
// per adesso imposto lettura fanuc == contapezzi (poi farà vera lettura...)
|
||||
|
||||
@@ -326,7 +326,7 @@ namespace IOB_WIN
|
||||
{
|
||||
if (cIobConf.optPar["PZCOUNT_MODE"].StartsWith("STD"))
|
||||
{
|
||||
pzCntReload();
|
||||
pzCntReload(true);
|
||||
// refresh associazione Macchina - IOB
|
||||
sendM2IOB();
|
||||
// per adesso imposto lettura fanuc == contapezzi (poi farà vera lettura...)
|
||||
|
||||
Vendored
+1
-1
@@ -16,7 +16,7 @@ pipeline {
|
||||
|
||||
/* calcolo numero versione... diverso x branch MASTER/DEVELOP */
|
||||
script {
|
||||
withEnv(['NEXT_BUILD_NUMBER=325']) {
|
||||
withEnv(['NEXT_BUILD_NUMBER=326']) {
|
||||
// env.versionNumber = VersionNumber(versionNumberString : '1.18.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true)
|
||||
env.versionNumber = VersionNumber(versionNumberString : '1.18.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}')
|
||||
env.APP_NAME = 'MAPO-IOB-WIN'
|
||||
|
||||
Reference in New Issue
Block a user