Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
BetriebsartApp
Please create a React-JS application for the BetriebsartModule. The application has to offer the following views for the user interface: 1. AusbaugradDefinitionView 2. BetriebsartView 3. FlussView 4. KraftwerkAusbaugradView The views have to be reachable for the user via a menu list at the left side of each view. The requirements for the 4 views are defined below. 1. The AusbaugradDefinitionView must contain the following fields: - name: Beschreibung type: STRING - name: FormelText type: STRING - name: Name type: STRING An existing AusbaugradDefinition entity should be loaded from the relative URL: "/BetriebsartService/ausbaugraddefinition/{id}" (HTTP-GET) If a new AusbaugradDefinition entity has been created, the new entity should be posted to the relative URL: "/BetriebsartService/ausbaugraddefinition" (HTTP-POST) If an existing AusbaugradDefinition entity has been updated, the modified entity should be sent to the relative URL: "/BetriebsartService/ausbaugraddefinition/{id}" (HTTP-PUT) If an existing AusbaugradDefinition entity has to be deleted, the following relative URL should be called: "/BetriebsartService/ausbaugraddefinition/{id}" (HTTP-DELETE) Add a HTML table to the view with the following KraftwerkAusbaugrad columns: - column: SpeichervolumenM3 - column: BemessungsAbflussM3s - column: JahresZuflussM3 - column: AusbaugradDefinition - column: Wasserkraftwerk - column: MittlererAbflussM3s - column: AusbaugradWert The table should have the title "KraftwerkAusbaugrads" und the data must be loaded from the server with the following relative URL: "/BetriebsartService/kraftwerkausbaugrad/ausbaugraddefinition/{id}" 2. The BetriebsartView must contain the following fields: - name: Beschreibung type: STRING - name: Name type: STRING An existing Betriebsart entity should be loaded from the relative URL: "/BetriebsartService/betriebsart/{id}" (HTTP-GET) If a new Betriebsart entity has been created, the new entity should be posted to the relative URL: "/BetriebsartService/betriebsart" (HTTP-POST) If an existing Betriebsart entity has been updated, the modified entity should be sent to the relative URL: "/BetriebsartService/betriebsart/{id}" (HTTP-PUT) If an existing Betriebsart entity has to be deleted, the following relative URL should be called: "/BetriebsartService/betriebsart/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Wasserkraftwerk columns: - column: IstPumpspeicher - column: Name - column: NettoFallhoeheMinM - column: IstKavernenkraftwerk - column: Lastklasse - column: NettoFallhoeheMaxM - column: JahreserzeugungGwh - column: InbetriebnahmeJahr - column: Topographieklasse - column: AusserbetriebnahmeJahr - column: Betriebsart - column: Fluss - column: Land - column: Druckstufe - column: Beschreibung - column: Kraftwerkstyp - column: InstallierteLeistungMw The table should have the title "Wasserkraftwerks" und the data must be loaded from the server with the following relative URL: "/WasserkraftwerkService/wasserkraftwerk/betriebsart/{id}" 3. The FlussView must contain the following fields: - name: IstSchiffbar type: BOOL - name: Kontinent type: STRING - name: Name type: STRING An existing Fluss entity should be loaded from the relative URL: "/BetriebsartService/fluss/{id}" (HTTP-GET) If a new Fluss entity has been created, the new entity should be posted to the relative URL: "/BetriebsartService/fluss" (HTTP-POST) If an existing Fluss entity has been updated, the modified entity should be sent to the relative URL: "/BetriebsartService/fluss/{id}" (HTTP-PUT) If an existing Fluss entity has to be deleted, the following relative URL should be called: "/BetriebsartService/fluss/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Wasserkraftwerk columns: - column: IstPumpspeicher - column: Name - column: NettoFallhoeheMinM - column: IstKavernenkraftwerk - column: Lastklasse - column: NettoFallhoeheMaxM - column: JahreserzeugungGwh - column: InbetriebnahmeJahr - column: Topographieklasse - column: AusserbetriebnahmeJahr - column: Betriebsart - column: Fluss - column: Land - column: Druckstufe - column: Beschreibung - column: Kraftwerkstyp - column: InstallierteLeistungMw The table should have the title "Wasserkraftwerks" und the data must be loaded from the server with the following relative URL: "/WasserkraftwerkService/wasserkraftwerk/fluss/{id}" 4. The KraftwerkAusbaugradView must contain the following fields: - name: AusbaugradDefinition type: AusbaugradDefinition - name: AusbaugradWert type: DOUBLE - name: BemessungsAbflussM3s type: DOUBLE - name: JahresZuflussM3 type: DOUBLE - name: MittlererAbflussM3s type: DOUBLE - name: SpeichervolumenM3 type: DOUBLE - name: Wasserkraftwerk type: Wasserkraftwerk The data source for the [Wasserkraftwerk] select control should be loaded from the relative URL: "/WasserkraftwerkService/wasserkraftwerk" (HTTP-GET) The data source for the [AusbaugradDefinition] select control should be loaded from the relative URL: "/BetriebsartService/ausbaugraddefinition" (HTTP-GET) An existing KraftwerkAusbaugrad entity should be loaded from the relative URL: "/BetriebsartService/kraftwerkausbaugrad/{id}" (HTTP-GET) If a new KraftwerkAusbaugrad entity has been created, the new entity should be posted to the relative URL: "/BetriebsartService/kraftwerkausbaugrad" (HTTP-POST) If an existing KraftwerkAusbaugrad entity has been updated, the modified entity should be sent to the relative URL: "/BetriebsartService/kraftwerkausbaugrad/{id}" (HTTP-PUT) If an existing KraftwerkAusbaugrad entity has to be deleted, the following relative URL should be called: "/BetriebsartService/kraftwerkausbaugrad/{id}" (HTTP-DELETE)
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum