천일 수정 사항 적용
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user