천일 수정 사항 적용

This commit is contained in:
정영민
2025-11-21 13:07:13 +09:00
parent 10c781cffb
commit 3cf54b5064
62 changed files with 19280 additions and 29797 deletions

View File

@@ -14,6 +14,10 @@ namespace CHN
{
private Machine[] machines;
private List<ThermostatData> thermostatDatas = new();
private Thermostat currentThermostat;
public Action<ThermostatData> onSetThermostatData;
public Action<Machine, SimpleField> onCompleteInfo;
public Action<Machine, SimpleField> onSimpleInfo;
public Action<List<SimpleField>> onKPIInfo;
@@ -229,6 +233,23 @@ namespace CHN
.OrderBy(field => orderMap[field.machineName])
.ToList();
}
public void SetThermostatDataList(List<ThermostatData> thermostatDatas)
{
this.thermostatDatas = thermostatDatas;
UpdateShowThermostatData();
}
public void SetSelectedThermostatData(Thermostat thermostat)
{
currentThermostat = thermostat;
UpdateShowThermostatData();
}
public void UpdateShowThermostatData()
{
if (currentThermostat == null || currentThermostat.machineCode == null)
return;
onSetThermostatData(thermostatDatas.Find(x => x.workcd == currentThermostat.machineCode));
}
}
[Serializable]
public class SimpleField