add backup load in information tab

This commit is contained in:
Yinyin Liu 2026-06-12 13:48:16 +02:00
parent b09cf00d78
commit 444a0a29f2
8 changed files with 48 additions and 0 deletions

View File

@ -62,6 +62,7 @@ public class Installation : TreeNode
public string InstallationModel { get; set; } = ""; public string InstallationModel { get; set; } = "";
public string ExternalEms { get; set; } = "No"; public string ExternalEms { get; set; } = "No";
public string CouplingType { get; set; } = "DC"; public string CouplingType { get; set; } = "DC";
public string BackupLoad { get; set; } = "None";
[Ignore] [Ignore]
public String OrderNumbers { get; set; } public String OrderNumbers { get; set; }

View File

@ -294,6 +294,7 @@ public static partial class Db
fileConnection.Execute("UPDATE Installation SET ExternalEms = 'No' WHERE ExternalEms IS NULL OR ExternalEms = ''"); fileConnection.Execute("UPDATE Installation SET ExternalEms = 'No' WHERE ExternalEms IS NULL OR ExternalEms = ''");
fileConnection.Execute("UPDATE Installation SET InstallationModel = '' WHERE InstallationModel IS NULL"); fileConnection.Execute("UPDATE Installation SET InstallationModel = '' WHERE InstallationModel IS NULL");
fileConnection.Execute("UPDATE Installation SET PvStringsPerInverter = '' WHERE PvStringsPerInverter IS NULL"); fileConnection.Execute("UPDATE Installation SET PvStringsPerInverter = '' WHERE PvStringsPerInverter IS NULL");
fileConnection.Execute("UPDATE Installation SET BackupLoad = 'None' WHERE BackupLoad IS NULL");
return fileConnection; return fileConnection;
//return CopyDbToMemory(fileConnection); //return CopyDbToMemory(fileConnection);

View File

@ -931,6 +931,35 @@ function InformationSodistorehome(props: InformationSodistorehomeProps) {
</FormControl> </FormControl>
</div> </div>
<div>
<FormControl sx={{ m: 1, width: '50ch' }}>
<InputLabel
shrink
sx={{ fontSize: 14, backgroundColor: 'white', px: 0.5 }}
>
<FormattedMessage id="backupLoad" defaultMessage="Backup Load" />
</InputLabel>
<Select
name="backupLoad"
value={formValues.backupLoad || 'None'}
onChange={handleChange}
inputProps={{ readOnly: !canEdit }}
displayEmpty
notched
>
<MenuItem value="Whole">
<FormattedMessage id="backupWhole" defaultMessage="Whole house" />
</MenuItem>
<MenuItem value="Partial">
<FormattedMessage id="backupPartial" defaultMessage="Partial" />
</MenuItem>
<MenuItem value="None">
<FormattedMessage id="backupNone" defaultMessage="Not used" />
</MenuItem>
</Select>
</FormControl>
</div>
{isSodistorePro ? ( {isSodistorePro ? (
<div> <div>
<TextField <TextField

View File

@ -29,6 +29,7 @@ export interface I_Installation extends I_S3Credentials {
installationModel: string; installationModel: string;
externalEms: string; externalEms: string;
couplingType: string; couplingType: string;
backupLoad: string;
parentId: number; parentId: number;
s3WriteKey: string; s3WriteKey: string;

View File

@ -135,6 +135,10 @@
"couplingAC": "AC-gekoppelt", "couplingAC": "AC-gekoppelt",
"couplingDC": "DC-gekoppelt", "couplingDC": "DC-gekoppelt",
"couplingMixed": "Gemischt", "couplingMixed": "Gemischt",
"backupLoad": "Notstromfähigkeit",
"backupWhole": "Komplettes Haus",
"backupPartial": "Teilnetz",
"backupNone": "nicht verwendet",
"selectModel": "Modell auswählen...", "selectModel": "Modell auswählen...",
"inverterN": "Wechselrichter {n}", "inverterN": "Wechselrichter {n}",
"clusterN": "Cluster {n}", "clusterN": "Cluster {n}",

View File

@ -117,6 +117,10 @@
"couplingAC": "AC-coupled", "couplingAC": "AC-coupled",
"couplingDC": "DC-coupled", "couplingDC": "DC-coupled",
"couplingMixed": "Mixed", "couplingMixed": "Mixed",
"backupLoad": "Backup Load",
"backupWhole": "Whole house",
"backupPartial": "Partial",
"backupNone": "Not used",
"selectModel": "Select model...", "selectModel": "Select model...",
"inverterN": "Inverter {n}", "inverterN": "Inverter {n}",
"clusterN": "Cluster {n}", "clusterN": "Cluster {n}",

View File

@ -129,6 +129,10 @@
"couplingAC": "Couplage AC", "couplingAC": "Couplage AC",
"couplingDC": "Couplage DC", "couplingDC": "Couplage DC",
"couplingMixed": "Mixte", "couplingMixed": "Mixte",
"backupLoad": "Capacité de secours",
"backupWhole": "Maison entière",
"backupPartial": "Partiel",
"backupNone": "Non utilisé",
"selectModel": "Sélectionner le modèle...", "selectModel": "Sélectionner le modèle...",
"inverterN": "Onduleur {n}", "inverterN": "Onduleur {n}",
"clusterN": "Cluster {n}", "clusterN": "Cluster {n}",

View File

@ -117,6 +117,10 @@
"couplingAC": "Accoppiamento AC", "couplingAC": "Accoppiamento AC",
"couplingDC": "Accoppiamento DC", "couplingDC": "Accoppiamento DC",
"couplingMixed": "Misto", "couplingMixed": "Misto",
"backupLoad": "Capacità di backup",
"backupWhole": "Intera casa",
"backupPartial": "Parziale",
"backupNone": "Non utilizzato",
"selectModel": "Seleziona modello...", "selectModel": "Seleziona modello...",
"inverterN": "Inverter {n}", "inverterN": "Inverter {n}",
"clusterN": "Cluster {n}", "clusterN": "Cluster {n}",