Compare commits

..

No commits in common. "ba0af3a12aa71f2e231689a7ca88a5a4b250a9d1" and "483590534a22f22b41269ddf09ccd18fea2aa726" have entirely different histories.

View File

@ -125,7 +125,6 @@ namespace JiShe.CollectBus.ScheduledMeterReading
BrandType = "DDS1980", BrandType = "DDS1980",
MeterType = MeterTypeEnum.Ammeter, MeterType = MeterTypeEnum.Ammeter,
ProjectID = 1, ProjectID = 1,
MeteringPort = 2,
}); });
ammeterInfos.Add(new DeviceInfo() ammeterInfos.Add(new DeviceInfo()
@ -144,7 +143,6 @@ namespace JiShe.CollectBus.ScheduledMeterReading
BrandType = "DDS1980", BrandType = "DDS1980",
MeterType = MeterTypeEnum.Ammeter, MeterType = MeterTypeEnum.Ammeter,
ProjectID = 1, ProjectID = 1,
MeteringPort = 2,
}); });
//ammeterInfos.Add(new DeviceInfo() //ammeterInfos.Add(new DeviceInfo()
@ -288,7 +286,7 @@ namespace JiShe.CollectBus.ScheduledMeterReading
FocusId = 95780, FocusId = 95780,
ProjectID = 1, ProjectID = 1,
TripType = "off", TripType = "off",
TripTime = $"{DateTime.Now:HH:mm}", TripTime = "14:02",
MeterId = 127035, MeterId = 127035,
LoopType = "EachDay", LoopType = "EachDay",
EachDayWithout = "周六,周日", EachDayWithout = "周六,周日",
@ -308,6 +306,36 @@ namespace JiShe.CollectBus.ScheduledMeterReading
EachDayWithout = "周六,周日", EachDayWithout = "周六,周日",
TimeDensity = 15, TimeDensity = 15,
}); });
settingInfos.Add(new AmmeterAutoValveControlSetting()
{
MeterType = MeterTypeEnum.Ammeter,
AmmerterAddress = "321410010270",
FocusAddress = "322011149",
FocusId = 333333,
ProjectID = 1,
TripType = "on",
TripTime = $"{DateTime.Now:HH:mm}",
MeterId = 333333,
LoopType = "EachDay",
EachDayWithout = "周六,周日",
TimeDensity = 15,
});
settingInfos.Add(new AmmeterAutoValveControlSetting()
{
MeterType = MeterTypeEnum.Ammeter,
AmmerterAddress = "112410027787",
FocusAddress = "322011149",
FocusId = 222222,
ProjectID = 1,
TripType = "on",
TripTime = $"{DateTime.Now:HH:mm}",
MeterId = 222222,
LoopType = "EachDay",
EachDayWithout = "周六,周日",
TimeDensity = 15,
});
#else #else
//获取电表阀控配置 //获取电表阀控配置
var settingInfos = await GetAmmeterAutoValveControlSetting(currentTimeStr); var settingInfos = await GetAmmeterAutoValveControlSetting(currentTimeStr);