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. KraftwerkWirtschaftsdatenView 2. StaudammView 3. 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 3 views are defined below. 1. The KraftwerkWirtschaftsdatenView must contain the following fields: - name: Jahr type: LONG - 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) 2. The StaudammView must contain the following fields: - name: Dammtyp type: STRING - name: HoeheM type: DOUBLE - name: LaengeM type: DOUBLE - name: Name type: STRING - 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 Staudamm entity should be loaded from the relative URL: "/WirtschaftsKennzahlService/staudamm/{id}" (HTTP-GET) If a new Staudamm entity has been created, the new entity should be posted to the relative URL: "/WirtschaftsKennzahlService/staudamm" (HTTP-POST) If an existing Staudamm entity has been updated, the modified entity should be sent to the relative URL: "/WirtschaftsKennzahlService/staudamm/{id}" (HTTP-PUT) If an existing Staudamm entity has to be deleted, the following relative URL should be called: "/WirtschaftsKennzahlService/staudamm/{id}" (HTTP-DELETE) 3. 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: Wert - column: WirtschaftsKennzahl - column: Wasserkraftwerk - column: Jahr 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