add DC or AC Coupled option for Sodistore Home and Sodistore Pro

This commit is contained in:
Yinyin Liu 2026-03-26 09:08:49 +01:00
parent 2681248bdc
commit 8c58ce45f6
7 changed files with 40 additions and 0 deletions

View File

@ -60,6 +60,7 @@ 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";
[Ignore]
public String OrderNumbers { get; set; }

View File

@ -780,6 +780,32 @@ function InformationSodistorehome(props: InformationSodistorehomeProps) {
/>
</div>
<div>
<FormControl sx={{ m: 1, width: '50ch' }}>
<InputLabel
shrink
sx={{ fontSize: 14, backgroundColor: 'white', px: 0.5 }}
>
<FormattedMessage id="couplingType" defaultMessage="AC/DC Coupling" />
</InputLabel>
<Select
name="couplingType"
value={formValues.couplingType || 'DC'}
onChange={handleChange}
inputProps={{ readOnly: !canEdit }}
displayEmpty
notched
>
<MenuItem value="AC">
<FormattedMessage id="couplingAC" defaultMessage="AC-coupled" />
</MenuItem>
<MenuItem value="DC">
<FormattedMessage id="couplingDC" defaultMessage="DC-coupled" />
</MenuItem>
</Select>
</FormControl>
</div>
{isSodistorePro ? (
<div>
<TextField

View File

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

View File

@ -87,6 +87,9 @@
"emsOther": "Andere",
"generalInfo": "Allgemeine Informationen",
"installationSetup": "Installationseinrichtung",
"couplingType": "AC/DC-Kopplung",
"couplingAC": "AC-gekoppelt",
"couplingDC": "DC-gekoppelt",
"selectModel": "Modell auswählen...",
"inverterN": "Wechselrichter {n}",
"clusterN": "Cluster {n}",

View File

@ -69,6 +69,9 @@
"emsOther": "Other",
"generalInfo": "General Info",
"installationSetup": "Installation Setup",
"couplingType": "AC/DC Coupling",
"couplingAC": "AC-coupled",
"couplingDC": "DC-coupled",
"selectModel": "Select model...",
"inverterN": "Inverter {n}",
"clusterN": "Cluster {n}",

View File

@ -81,6 +81,9 @@
"emsOther": "Autre",
"generalInfo": "Informations générales",
"installationSetup": "Configuration de l'installation",
"couplingType": "Couplage AC/DC",
"couplingAC": "Couplage AC",
"couplingDC": "Couplage DC",
"selectModel": "Sélectionner le modèle...",
"inverterN": "Onduleur {n}",
"clusterN": "Cluster {n}",

View File

@ -69,6 +69,9 @@
"emsOther": "Altro",
"generalInfo": "Informazioni generali",
"installationSetup": "Configurazione installazione",
"couplingType": "Accoppiamento AC/DC",
"couplingAC": "Accoppiamento AC",
"couplingDC": "Accoppiamento DC",
"selectModel": "Seleziona modello...",
"inverterN": "Inverter {n}",
"clusterN": "Cluster {n}",