|
|
@ -173,6 +173,11 @@ namespace UniApiWpf |
|
|
|
} |
|
|
|
|
|
|
|
private void BgwPutDoWork(object sender, DoWorkEventArgs e) |
|
|
|
{ |
|
|
|
TimeSpan nowDt = DateTime.Now.TimeOfDay; |
|
|
|
TimeSpan workstartDT = DateTime.Parse("1:00").TimeOfDay; |
|
|
|
TimeSpan workendDT = DateTime.Parse("2:00").TimeOfDay; |
|
|
|
if (nowDt < workstartDT || nowDt > workendDT) |
|
|
|
{ |
|
|
|
SCP_DC_UNI_CONTROLLER.WriteService((rs) => |
|
|
|
{ |
|
|
@ -186,6 +191,7 @@ namespace UniApiWpf |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void BgwGetRunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) |
|
|
@ -197,6 +203,12 @@ namespace UniApiWpf |
|
|
|
{ |
|
|
|
try |
|
|
|
{ |
|
|
|
TimeSpan nowDt = DateTime.Now.TimeOfDay; |
|
|
|
TimeSpan workstartDT = DateTime.Parse("1:00").TimeOfDay; |
|
|
|
TimeSpan workendDT = DateTime.Parse("2:00").TimeOfDay; |
|
|
|
if (nowDt < workstartDT || nowDt > workendDT) |
|
|
|
{ |
|
|
|
#region
|
|
|
|
SCP_DC_UNI_CONTROLLER.ReadService((rs) => |
|
|
|
{ |
|
|
|
List<LogModel> _list = new List<LogModel>(); |
|
|
@ -215,6 +227,9 @@ namespace UniApiWpf |
|
|
|
CreateLogDataList(_list, WriteLogEnum.Get); |
|
|
|
} |
|
|
|
}); |
|
|
|
#endregion
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
|