not-set instead of default value for AC/DC Coupling and Backup Load
This commit is contained in:
parent
15972cff1d
commit
4aa30acd0b
|
|
@ -61,8 +61,8 @@ public class Installation : TreeNode
|
|||
public string PvStringsPerInverter { get; set; } = "";
|
||||
public string InstallationModel { get; set; } = "";
|
||||
public string ExternalEms { get; set; } = "No";
|
||||
public string CouplingType { get; set; } = "DC";
|
||||
public string BackupLoad { get; set; } = "None";
|
||||
public string? CouplingType { get; set; }
|
||||
public string? BackupLoad { get; set; }
|
||||
|
||||
[Ignore]
|
||||
public String OrderNumbers { get; set; }
|
||||
|
|
|
|||
|
|
@ -294,7 +294,6 @@ public static partial class Db
|
|||
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 PvStringsPerInverter = '' WHERE PvStringsPerInverter IS NULL");
|
||||
fileConnection.Execute("UPDATE Installation SET BackupLoad = 'None' WHERE BackupLoad IS NULL");
|
||||
|
||||
return fileConnection;
|
||||
//return CopyDbToMemory(fileConnection);
|
||||
|
|
|
|||
|
|
@ -376,7 +376,14 @@ function InformationSodistorehome(props: InformationSodistorehomeProps) {
|
|||
})
|
||||
.catch(() => {});
|
||||
}
|
||||
updateInstallation(formValues, props.type);
|
||||
updateInstallation(
|
||||
{
|
||||
...formValues,
|
||||
couplingType: formValues.couplingType || null,
|
||||
backupLoad: formValues.backupLoad || null
|
||||
},
|
||||
props.type
|
||||
);
|
||||
};
|
||||
|
||||
const handleDelete = () => {
|
||||
|
|
@ -912,12 +919,15 @@ function InformationSodistorehome(props: InformationSodistorehomeProps) {
|
|||
</InputLabel>
|
||||
<Select
|
||||
name="couplingType"
|
||||
value={formValues.couplingType || 'DC'}
|
||||
value={formValues.couplingType || ''}
|
||||
onChange={handleChange}
|
||||
inputProps={{ readOnly: !canEdit }}
|
||||
displayEmpty
|
||||
notched
|
||||
>
|
||||
<MenuItem value="">
|
||||
<em><FormattedMessage id="notSet" defaultMessage="Not set" /></em>
|
||||
</MenuItem>
|
||||
<MenuItem value="AC">
|
||||
<FormattedMessage id="couplingAC" defaultMessage="AC-coupled" />
|
||||
</MenuItem>
|
||||
|
|
@ -941,12 +951,15 @@ function InformationSodistorehome(props: InformationSodistorehomeProps) {
|
|||
</InputLabel>
|
||||
<Select
|
||||
name="backupLoad"
|
||||
value={formValues.backupLoad || 'None'}
|
||||
value={formValues.backupLoad || ''}
|
||||
onChange={handleChange}
|
||||
inputProps={{ readOnly: !canEdit }}
|
||||
displayEmpty
|
||||
notched
|
||||
>
|
||||
<MenuItem value="">
|
||||
<em><FormattedMessage id="notSet" defaultMessage="Not set" /></em>
|
||||
</MenuItem>
|
||||
<MenuItem value="Whole">
|
||||
<FormattedMessage id="backupWhole" defaultMessage="Whole house" />
|
||||
</MenuItem>
|
||||
|
|
|
|||
|
|
@ -28,8 +28,8 @@ export interface I_Installation extends I_S3Credentials {
|
|||
pvStringsPerInverter: string;
|
||||
installationModel: string;
|
||||
externalEms: string;
|
||||
couplingType: string;
|
||||
backupLoad: string;
|
||||
couplingType: string | null;
|
||||
backupLoad: string | null;
|
||||
|
||||
parentId: number;
|
||||
s3WriteKey: string;
|
||||
|
|
|
|||
|
|
@ -139,6 +139,7 @@
|
|||
"backupWhole": "Komplettes Haus",
|
||||
"backupPartial": "Teilnetz",
|
||||
"backupNone": "nicht verwendet",
|
||||
"notSet": "Nicht festgelegt",
|
||||
"selectModel": "Modell auswählen...",
|
||||
"inverterN": "Wechselrichter {n}",
|
||||
"clusterN": "Cluster {n}",
|
||||
|
|
|
|||
|
|
@ -121,6 +121,7 @@
|
|||
"backupWhole": "Whole house",
|
||||
"backupPartial": "Partial",
|
||||
"backupNone": "Not used",
|
||||
"notSet": "Not set",
|
||||
"selectModel": "Select model...",
|
||||
"inverterN": "Inverter {n}",
|
||||
"clusterN": "Cluster {n}",
|
||||
|
|
|
|||
|
|
@ -133,6 +133,7 @@
|
|||
"backupWhole": "Maison entière",
|
||||
"backupPartial": "Partiel",
|
||||
"backupNone": "Non utilisé",
|
||||
"notSet": "Non défini",
|
||||
"selectModel": "Sélectionner le modèle...",
|
||||
"inverterN": "Onduleur {n}",
|
||||
"clusterN": "Cluster {n}",
|
||||
|
|
|
|||
|
|
@ -121,6 +121,7 @@
|
|||
"backupWhole": "Intera casa",
|
||||
"backupPartial": "Parziale",
|
||||
"backupNone": "Non utilizzato",
|
||||
"notSet": "Non impostato",
|
||||
"selectModel": "Seleziona modello...",
|
||||
"inverterN": "Inverter {n}",
|
||||
"clusterN": "Cluster {n}",
|
||||
|
|
|
|||
Loading…
Reference in New Issue