solar_App: 在"全電站"和"時間區間/單電站"裡,增加irrDayHour的更新
This commit is contained in:
parent
44e94c8b67
commit
2d5c7db7db
@ -46,7 +46,7 @@ namespace solarApp
|
|||||||
{
|
{
|
||||||
//string d1 = day.ToString("yyyy-MM-dd");
|
//string d1 = day.ToString("yyyy-MM-dd");
|
||||||
sensorSvc.archiveData(lbSiteID_sensor.Text.Substring(0, 9), day.ToString("yyyy-MM-dd"));
|
sensorSvc.archiveData(lbSiteID_sensor.Text.Substring(0, 9), day.ToString("yyyy-MM-dd"));
|
||||||
sensorSvc.archiveSensorHistoryHourData(lbSiteID_sensor.Text.Substring(0, 9), day.ToString("yyyy-MM-dd"));/////要改
|
sensorSvc.archiveSensorHistoryHourData(lbSiteID_sensor.Text.Substring(0, 9), day.ToString("yyyy-MM-dd"));
|
||||||
sensorSvc.isFirst = false;
|
sensorSvc.isFirst = false;
|
||||||
}
|
}
|
||||||
//sensorSvc._siteDB = lbSiteDB_sensor.Text;
|
//sensorSvc._siteDB = lbSiteDB_sensor.Text;
|
||||||
@ -315,7 +315,7 @@ namespace solarApp
|
|||||||
//for sensor_history_hour
|
//for sensor_history_hour
|
||||||
foreach (DateTime day in EachDay(DateTime.Parse(date1), DateTime.Parse(date2)))
|
foreach (DateTime day in EachDay(DateTime.Parse(date1), DateTime.Parse(date2)))
|
||||||
{
|
{
|
||||||
sensorSvc.archiveSensorHistoryHourData(item.SiteID.Substring(0, 9), day.ToString("yyyy-MM-dd"));/////要改
|
sensorSvc.archiveSensorHistoryHourData(item.SiteID.Substring(0, 9), day.ToString("yyyy-MM-dd"));
|
||||||
sensorSvc.isFirst = false;
|
sensorSvc.isFirst = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -503,7 +503,19 @@ namespace solarApp
|
|||||||
}
|
}
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
// MessageBox.Show("OK");
|
|
||||||
|
sensorSvc.isFirst = true;
|
||||||
|
foreach (var item in site_list)
|
||||||
|
{
|
||||||
|
//for sensor_history_hour
|
||||||
|
foreach (DateTime day in EachDay(DateTime.Parse(date1), DateTime.Parse(date2)))
|
||||||
|
{
|
||||||
|
sensorSvc.archiveSensorHistoryHourData(item.SiteID.Substring(0, 9), day.ToString("yyyy-MM-dd"));
|
||||||
|
sensorSvc.isFirst = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// MessageBox.Show("OK");
|
||||||
lbMsgTitle.Text = DateTime.Now.ToString() + " sensor_lackData OK";
|
lbMsgTitle.Text = DateTime.Now.ToString() + " sensor_lackData OK";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -539,9 +551,12 @@ namespace solarApp
|
|||||||
|
|
||||||
//foreach (var item in site_list)
|
//foreach (var item in site_list)
|
||||||
//{
|
//{
|
||||||
|
sensorSvc.isFirst = true;
|
||||||
foreach (DateTime day in EachDay(DateTime.Parse(date1), DateTime.Parse(date2)))
|
foreach (DateTime day in EachDay(DateTime.Parse(date1), DateTime.Parse(date2)))
|
||||||
{
|
{
|
||||||
sensorSvc.archiveData(lbSiteID_sensor.Text.Substring(0, 9), day.ToString("yyyy-MM-dd"));
|
sensorSvc.archiveData(lbSiteID_sensor.Text.Substring(0, 9), day.ToString("yyyy-MM-dd"));
|
||||||
|
sensorSvc.archiveSensorHistoryHourData(lbSiteID_sensor.Text.Substring(0, 9), day.ToString("yyyy-MM-dd"));
|
||||||
|
sensorSvc.isFirst = false;
|
||||||
invSvc.archiveData(lbSiteID_sensor.Text.Substring(0, 9), day.ToString("yyyy-MM-dd"));
|
invSvc.archiveData(lbSiteID_sensor.Text.Substring(0, 9), day.ToString("yyyy-MM-dd"));
|
||||||
siteSvc.archiveData(lbSiteID_sensor.Text.Substring(0, 9), day.ToString("yyyy-MM-dd"));
|
siteSvc.archiveData(lbSiteID_sensor.Text.Substring(0, 9), day.ToString("yyyy-MM-dd"));
|
||||||
invSvc.report_invDay(lbSiteID_sensor.Text.Substring(0, 9), day.ToString("yyyy-MM-dd"));
|
invSvc.report_invDay(lbSiteID_sensor.Text.Substring(0, 9), day.ToString("yyyy-MM-dd"));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user