Update icoel DB:

- gest server + nome DB parametrica corretta
This commit is contained in:
Samuele Locatelli
2023-05-31 14:35:19 +02:00
parent a57fc701aa
commit b644a9973f
4 changed files with 7 additions and 4 deletions
+2 -1
View File
@@ -67,7 +67,8 @@ FORCE_DYN_DATA=TRUE
DEM_FACT_DYN_DATA=5
ENABLE_DATA_FILTER=TRUE
ENABLE_CLI_RESTART=TRUE
SyncStateDb=localhost\sqlexpress
SyncStateServer=localhost\sqlexpress
SyncStateDb=MoonPro_ISF
SyncStateUser=egalware
SyncStatePwd=egalware2022
SyncStateCTout=
@@ -76,6 +76,7 @@ SyncStateUser=steamware
SyncStatePwd=viadante16
SyncStateCTout=
VetoReadSec=2
VetoSyncSec=10
; clock base (da 10ms)
timerIntMs=20
+2 -1
View File
@@ -33,12 +33,13 @@ namespace IOB_WIN_NEXT.IobSql
* - lanciare sync e verifica stato sync
*/
string SyncStateServer = getOptPar("SyncStateServer");
string SyncStateDb = getOptPar("SyncStateDb");
string SyncStateUser = getOptPar("SyncStateUser");
string SyncStatePwd = getOptPar("SyncStatePwd");
string SyncStateCTout = getOptPar("SyncStateCTout");
string connSyncState = $"data source={SyncStateDb};initial catalog=MoonPro_ISF;persist security info=True;user id={SyncStateUser};password={SyncStatePwd};MultipleActiveResultSets=True;App=IOB-WIN-NEXT";
string connSyncState = $"data source={SyncStateServer};initial catalog={SyncStateDb};persist security info=True;user id={SyncStateUser};password={SyncStatePwd};MultipleActiveResultSets=True;App=IOB-WIN-NEXT";
// gestione command timeout da https://erikej.github.io/sqlclient/2020/10/26/sqlclient-commandtimeout-preview.html
if (!string.IsNullOrEmpty(SyncStateCTout))
+2 -2
View File
@@ -14,8 +14,8 @@ namespace IOB_WIN_NEXT.IobSql
{
/// <summary>
/// Adapter specializzato per LANTEK e le chiamate tramite DB per i dati
/// - PODL (ordini MES --&gt; MACCHINA)
/// - ProdLog (da FasiDaLantek???)
/// - PODL (ordini MES --> MACCHINA)
/// - ProdLog (da NestingDaLantek + RigheNestingDaLantek)
/// </summary>
public class SqlServLantek : Iob.Generic