Aggiunta ms x evitare doppioni FL
This commit is contained in:
@@ -267,7 +267,7 @@
|
||||
protected List<string> IC_ESS_getFlRows(string CodIOB, DateTime dtStart, DateTime dtEnd, bool doProd, ref int idxCount)
|
||||
{
|
||||
List<string> rows = new List<string>();
|
||||
DateTime dtCurs = dtStart;
|
||||
DateTime dtCurs = dtStart.AddMilliseconds(rnd.Next(50, 100));
|
||||
int simInt = 0;
|
||||
double simReal = 0;
|
||||
double simDTime = 0;
|
||||
@@ -286,7 +286,7 @@
|
||||
simInt = simValInt(doProd, item.Key, item.Value);
|
||||
currRow = $"{CodIOB};{dtCurs:yyyy-MM-dd HH:mm:ss.fff};{item.Key};{simInt};{idxCount++}";
|
||||
rows.Add(currRow);
|
||||
dtCurs = dtCurs.AddMilliseconds(rnd.Next(5, 50));
|
||||
dtCurs = dtCurs.AddMilliseconds(rnd.Next(50, 150));
|
||||
idxCount = idxCount <= 9999 ? idxCount : 0;
|
||||
}
|
||||
}
|
||||
@@ -298,7 +298,7 @@
|
||||
simReal = simValReal(doProd, item.Key, item.Value);
|
||||
currRow = $"{CodIOB};{dtCurs:yyyy-MM-dd HH:mm:ss.fff};{item.Key};{simReal};{idxCount++}";
|
||||
rows.Add(currRow);
|
||||
dtCurs = dtCurs.AddMilliseconds(rnd.Next(5, 50));
|
||||
dtCurs = dtCurs.AddMilliseconds(rnd.Next(50, 150));
|
||||
idxCount = idxCount <= 9999 ? idxCount : 0;
|
||||
}
|
||||
}
|
||||
@@ -310,7 +310,7 @@
|
||||
simDTime = simValData(dtCurs, item.Key, item.Value);
|
||||
currRow = $"{CodIOB};{dtCurs:yyyy-MM-dd HH:mm:ss.fff};{item.Key};{simDTime};{idxCount++}";
|
||||
rows.Add(currRow);
|
||||
dtCurs = dtCurs.AddMilliseconds(rnd.Next(5, 50));
|
||||
dtCurs = dtCurs.AddMilliseconds(rnd.Next(50, 150));
|
||||
idxCount = idxCount <= 9999 ? idxCount : 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,11 +20,11 @@ namespace MapoDataFiller
|
||||
|
||||
public MConf()
|
||||
{
|
||||
ConfDir = @"C:\temp\Interclays\";
|
||||
ConfDir = @"C:\Temp\Interclays\";
|
||||
CodIOB = "NONE";
|
||||
HasHeader = false;
|
||||
TimeTable = "Demo.csv";
|
||||
OutFolder = @"C:\temp\Interclays\Out";
|
||||
OutFolder = @"C:\Temp\Interclays\Out";
|
||||
}
|
||||
}
|
||||
public class CMan
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
ConfDir: C:\temp\Interclays
|
||||
ConfDir: C:\Temp\Interclays
|
||||
CodIOB: INTERCL_02
|
||||
HasHeader: true
|
||||
TimeTable: Interclays02.csv
|
||||
OutFolder: C:\temp\Interclays\Out
|
||||
OutFolder: C:\Temp\Interclays\Out
|
||||
|
||||
Reference in New Issue
Block a user