Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
WirtschaftsKennzahlApp
Please create a React-JS application for the WirtschaftsKennzahlModule. The application has to offer the following views for the user interface: 1. BetriebsartView 2. KraftwerkWirtschaftsdatenView 3. SpeicherbeckenView 4. WirtschaftsKennzahlView 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 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: "/WirtschaftsKennzahlService/betriebsart/{id}" (HTTP-GET) If a new Betriebsart entity has been created, the new entity should be posted to the relative URL: "/WirtschaftsKennzahlService/betriebsart" (HTTP-POST) If an existing Betriebsart entity has been updated, the modified entity should be sent to the relative URL: "/WirtschaftsKennzahlService/betriebsart/{id}" (HTTP-PUT) If an existing Betriebsart entity has to be deleted, the following relative URL should be called: "/WirtschaftsKennzahlService/betriebsart/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Wasserkraftwerk columns: - column: Betriebsart - column: JahreserzeugungGwh - column: AusserbetriebnahmeJahr - column: Land - column: Fluss - column: IstKavernenkraftwerk - column: NettoFallhoeheMaxM - column: InbetriebnahmeJahr - column: IstPumpspeicher - column: Druckstufe - column: InstallierteLeistungMw - column: NettoFallhoeheMinM - column: Kraftwerkstyp - column: Lastklasse - column: Name - column: Beschreibung - column: Topographieklasse 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}" 2. The KraftwerkWirtschaftsdatenView must contain the following fields: - name: Jahr type: INT - name: Wasserkraftwerk type: Wasserkraftwerk - name: Wert type: DOUBLE - name: WirtschaftsKennzahl type: WirtschaftsKennzahl The data source for the [Wasserkraftwerk] select control should be loaded from the relative URL: "/WasserkraftwerkService/wasserkraftwerk" (HTTP-GET) The data source for the [WirtschaftsKennzahl] select control should be loaded from the relative URL: "/WirtschaftsKennzahlService/wirtschaftskennzahl" (HTTP-GET) An existing KraftwerkWirtschaftsdaten entity should be loaded from the relative URL: "/WirtschaftsKennzahlService/kraftwerkwirtschaftsdaten/{id}" (HTTP-GET) If a new KraftwerkWirtschaftsdaten entity has been created, the new entity should be posted to the relative URL: "/WirtschaftsKennzahlService/kraftwerkwirtschaftsdaten" (HTTP-POST) If an existing KraftwerkWirtschaftsdaten entity has been updated, the modified entity should be sent to the relative URL: "/WirtschaftsKennzahlService/kraftwerkwirtschaftsdaten/{id}" (HTTP-PUT) If an existing KraftwerkWirtschaftsdaten entity has to be deleted, the following relative URL should be called: "/WirtschaftsKennzahlService/kraftwerkwirtschaftsdaten/{id}" (HTTP-DELETE) 3. The SpeicherbeckenView must contain the following fields: - name: IstNatuerlich type: BOOL - name: Name type: STRING - name: Speicherart type: STRING - 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) An existing Speicherbecken entity should be loaded from the relative URL: "/WirtschaftsKennzahlService/speicherbecken/{id}" (HTTP-GET) If a new Speicherbecken entity has been created, the new entity should be posted to the relative URL: "/WirtschaftsKennzahlService/speicherbecken" (HTTP-POST) If an existing Speicherbecken entity has been updated, the modified entity should be sent to the relative URL: "/WirtschaftsKennzahlService/speicherbecken/{id}" (HTTP-PUT) If an existing Speicherbecken entity has to be deleted, the following relative URL should be called: "/WirtschaftsKennzahlService/speicherbecken/{id}" (HTTP-DELETE) 4. The WirtschaftsKennzahlView must contain the following fields: - name: Beschreibung type: STRING - name: Einheit type: STRING - name: Name type: STRING An existing WirtschaftsKennzahl entity should be loaded from the relative URL: "/WirtschaftsKennzahlService/wirtschaftskennzahl/{id}" (HTTP-GET) If a new WirtschaftsKennzahl entity has been created, the new entity should be posted to the relative URL: "/WirtschaftsKennzahlService/wirtschaftskennzahl" (HTTP-POST) If an existing WirtschaftsKennzahl entity has been updated, the modified entity should be sent to the relative URL: "/WirtschaftsKennzahlService/wirtschaftskennzahl/{id}" (HTTP-PUT) If an existing WirtschaftsKennzahl entity has to be deleted, the following relative URL should be called: "/WirtschaftsKennzahlService/wirtschaftskennzahl/{id}" (HTTP-DELETE) Add a HTML table to the view with the following KraftwerkWirtschaftsdaten columns: - column: Wasserkraftwerk - column: WirtschaftsKennzahl - column: Jahr - column: Wert The table should have the title "KraftwerkWirtschaftsdatens" und the data must be loaded from the server with the following relative URL: "/WirtschaftsKennzahlService/kraftwerkwirtschaftsdaten/wirtschaftskennzahl/{id}"
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum