Merge branch 'release/AddFtpIob06'
This commit is contained in:
@@ -10,6 +10,7 @@ MODEL=SONATEST_VEO
|
||||
|
||||
[CNC]
|
||||
IP=10.74.82.204
|
||||
PORT=21
|
||||
PING_IP=10.74.82.204
|
||||
GETPRGNAME=false
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@ MODEL=VEO
|
||||
|
||||
[CNC]
|
||||
IP=172.28.30.208
|
||||
PORT=21
|
||||
PING_IP=172.28.30.208
|
||||
GETPRGNAME=false
|
||||
|
||||
|
||||
+32
-31
@@ -88,6 +88,8 @@ namespace IOB_WIN_NEXT.IobNet
|
||||
}
|
||||
}
|
||||
}
|
||||
// invio conf macchina all'inizio
|
||||
SendMachineConf();
|
||||
}
|
||||
|
||||
#endregion Public Constructors
|
||||
@@ -248,36 +250,6 @@ namespace IOB_WIN_NEXT.IobNet
|
||||
return taskDone;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Rimuove eventuali file placeholder di ODL corrente preesistenti
|
||||
/// </summary>
|
||||
/// <param name="remDir"></param>
|
||||
/// <param name="fNameOdl"></param>
|
||||
private bool RemPlaceholder(string remDir, string fNameOdl)
|
||||
{
|
||||
bool fatto = false;
|
||||
try
|
||||
{
|
||||
Dictionary<string, string> currActParam = new Dictionary<string, string>();
|
||||
currActParam.Add("RemoteDir", remDir);
|
||||
currActParam.Add("FileName2Del", fNameOdl);
|
||||
ActionConfig currAct = new ActionConfig()
|
||||
{
|
||||
Id = "01",
|
||||
Description = "Clean Curr ODL Files",
|
||||
Action = ActType.RemoveFileByName,
|
||||
ParamList = currActParam
|
||||
};
|
||||
// eseguo step...
|
||||
fatto = doStep(currAct);
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
lgError($"Eccezione in RemPlaceholder{Environment.NewLine}{exc}");
|
||||
}
|
||||
return fatto;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Effettua processing CUSTOM x FTP:
|
||||
/// - prende ogni conf specifica
|
||||
@@ -376,7 +348,6 @@ namespace IOB_WIN_NEXT.IobNet
|
||||
B_input = 0;
|
||||
}
|
||||
|
||||
|
||||
#if false
|
||||
// annullo lettura bit signal IN pre/post x evitare invio automatico...
|
||||
B_output = B_input;
|
||||
@@ -854,6 +825,36 @@ namespace IOB_WIN_NEXT.IobNet
|
||||
return answ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Rimuove eventuali file placeholder di ODL corrente preesistenti
|
||||
/// </summary>
|
||||
/// <param name="remDir"></param>
|
||||
/// <param name="fNameOdl"></param>
|
||||
private bool RemPlaceholder(string remDir, string fNameOdl)
|
||||
{
|
||||
bool fatto = false;
|
||||
try
|
||||
{
|
||||
Dictionary<string, string> currActParam = new Dictionary<string, string>();
|
||||
currActParam.Add("RemoteDir", remDir);
|
||||
currActParam.Add("FileName2Del", fNameOdl);
|
||||
ActionConfig currAct = new ActionConfig()
|
||||
{
|
||||
Id = "01",
|
||||
Description = "Clean Curr ODL Files",
|
||||
Action = ActType.RemoveFileByName,
|
||||
ParamList = currActParam
|
||||
};
|
||||
// eseguo step...
|
||||
fatto = doStep(currAct);
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
lgError($"Eccezione in RemPlaceholder{Environment.NewLine}{exc}");
|
||||
}
|
||||
return fatto;
|
||||
}
|
||||
|
||||
#endregion Private Methods
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user