Mostrar progreso (NumRegistro/TotalRegistro) en log
This commit is contained in:
parent
4840f5dc7e
commit
3901973729
|
@ -73,7 +73,10 @@ namespace LectorVerdnatura
|
||||||
if (hayconexion)
|
if (hayconexion)
|
||||||
{
|
{
|
||||||
retorno = true;
|
retorno = true;
|
||||||
if (ContarRecordsLector() > 0)
|
int NumRegistro = 0;
|
||||||
|
int TotalRegistros = ContarRecordsLector();
|
||||||
|
|
||||||
|
if (TotalRegistros > 0)
|
||||||
{
|
{
|
||||||
db = new database();
|
db = new database();
|
||||||
|
|
||||||
|
@ -82,8 +85,9 @@ namespace LectorVerdnatura
|
||||||
while (clector.SSR_GetGeneralLogData(iddevice, out sdwEnrollNumber, out idwVerifyMode,
|
while (clector.SSR_GetGeneralLogData(iddevice, out sdwEnrollNumber, out idwVerifyMode,
|
||||||
out idwInOutMode, out idwYear, out idwMonth, out idwDay, out idwHour, out idwMinute, out idwSecond, ref idwWorkcode))
|
out idwInOutMode, out idwYear, out idwMonth, out idwDay, out idwHour, out idwMinute, out idwSecond, ref idwWorkcode))
|
||||||
{
|
{
|
||||||
|
NumRegistro++;
|
||||||
String FechaRegistro = idwYear.ToString() + "-" + String.Format("{0:0#}", idwMonth) + "-" + String.Format("{0:0#}", idwDay) + " " + String.Format("{0:0#}", idwHour) + ":" + String.Format("{0:0#}", idwMinute) + ":" + String.Format("{0:0#}", idwSecond);
|
String FechaRegistro = idwYear.ToString() + "-" + String.Format("{0:0#}", idwMonth) + "-" + String.Format("{0:0#}", idwDay) + " " + String.Format("{0:0#}", idwHour) + ":" + String.Format("{0:0#}", idwMinute) + ":" + String.Format("{0:0#}", idwSecond);
|
||||||
nuevoregistro = "Registro --> NIS=" + sdwEnrollNumber + " --> WH: " + warehouseFk.ToString() + " --> " + FechaRegistro;
|
nuevoregistro = "Registro (" + NumRegistro + "/" + TotalRegistros + ") -- > NIS=" + sdwEnrollNumber + " --> WH: " + warehouseFk.ToString() + " --> " + FechaRegistro;
|
||||||
|
|
||||||
DateTime fecha = DateTime.Parse(FechaRegistro);
|
DateTime fecha = DateTime.Parse(FechaRegistro);
|
||||||
|
|
||||||
|
|
Reference in New Issue