|
@@ -88,24 +88,24 @@ namespace SCADA_DAQ.Customer
|
|
|
//T_PowerChart.Update(processDatas);
|
|
|
|
|
|
|
|
|
- var datas = Env.DAL.App_Microwave_TestResult.GetTopN<ProductModel>(100);
|
|
|
- var index = 0;
|
|
|
- CreateBackGroundTask(() =>
|
|
|
- {
|
|
|
- var data = datas[index % datas.Count];
|
|
|
- data.CreateTime = DateTime.Now;
|
|
|
- if (data.ProcessDatas == null || data.ProcessDatas.Count <= 0)
|
|
|
- {
|
|
|
- var process = Env.DAL.App_Microwave_ProcessData.GetData<ProcessData>(t => t.ReportId == data.ID);
|
|
|
- data.ProcessDatas = process.ToList();
|
|
|
- }
|
|
|
- Dispatcher.Invoke(() =>
|
|
|
- {
|
|
|
- HeaderView.DataContext = data;
|
|
|
- T_PowerChart.Update(data.ProcessDatas);
|
|
|
- });
|
|
|
- index++;
|
|
|
- }, 10000, 1000, true, "数据回放");
|
|
|
+ //var datas = Env.DAL.App_Microwave_TestResult.GetTopN<ProductModel>(100);
|
|
|
+ //var index = 0;
|
|
|
+ //CreateBackGroundTask(() =>
|
|
|
+ //{
|
|
|
+ // var data = datas[index % datas.Count];
|
|
|
+ // data.CreateTime = DateTime.Now;
|
|
|
+ // if (data.ProcessDatas == null || data.ProcessDatas.Count <= 0)
|
|
|
+ // {
|
|
|
+ // var process = Env.DAL.App_Microwave_ProcessData.GetData<ProcessData>(t => t.ReportId == data.ID);
|
|
|
+ // data.ProcessDatas = process.ToList();
|
|
|
+ // }
|
|
|
+ // Dispatcher.Invoke(() =>
|
|
|
+ // {
|
|
|
+ // HeaderView.DataContext = data;
|
|
|
+ // T_PowerChart.Update(data.ProcessDatas);
|
|
|
+ // });
|
|
|
+ // index++;
|
|
|
+ //}, 10000, 1000, true, "数据回放");
|
|
|
}
|
|
|
|
|
|
private void Rfid2_TestFinish(object sender, TestFinishEventArgs e)
|