Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
EffizienzMassnahmeTypApp
Please create a React-JS application for the EffizienzMassnahmeTypModule. The application has to offer the following views for the user interface: 1. EffizienzMassnahmeView 2. EffizienzMassnahmeTypView 3. EnergieStatistikView 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 EffizienzMassnahmeView must contain the following fields: - name: Beschreibung type: STRING - name: EffizienzMassnahmeTyp type: EffizienzMassnahmeTyp - name: EndJahr type: INT - name: ErwarteteErsparnisProzent type: STRING - name: Foerderprogramm type: Foerderprogramm - name: Gemeinde type: Gemeinde - name: IstLedUmruestung type: BOOL - name: StartJahr type: INT The data source for the [Foerderprogramm] select control should be loaded from the relative URL: "/BeleuchtungsnormService/foerderprogramm" (HTTP-GET) The data source for the [Gemeinde] select control should be loaded from the relative URL: "/GemeindeService/gemeinde" (HTTP-GET) The data source for the [EffizienzMassnahmeTyp] select control should be loaded from the relative URL: "/EffizienzMassnahmeTypService/effizienzmassnahmetyp" (HTTP-GET) An existing EffizienzMassnahme entity should be loaded from the relative URL: "/EffizienzMassnahmeTypService/effizienzmassnahme/{id}" (HTTP-GET) If a new EffizienzMassnahme entity has been created, the new entity should be posted to the relative URL: "/EffizienzMassnahmeTypService/effizienzmassnahme" (HTTP-POST) If an existing EffizienzMassnahme entity has been updated, the modified entity should be sent to the relative URL: "/EffizienzMassnahmeTypService/effizienzmassnahme/{id}" (HTTP-PUT) If an existing EffizienzMassnahme entity has to be deleted, the following relative URL should be called: "/EffizienzMassnahmeTypService/effizienzmassnahme/{id}" (HTTP-DELETE) 2. The EffizienzMassnahmeTypView must contain the following fields: - name: Beschreibung type: STRING - name: IstBetrieblich type: BOOL - name: IstTechnisch type: BOOL - name: Name type: STRING An existing EffizienzMassnahmeTyp entity should be loaded from the relative URL: "/EffizienzMassnahmeTypService/effizienzmassnahmetyp/{id}" (HTTP-GET) If a new EffizienzMassnahmeTyp entity has been created, the new entity should be posted to the relative URL: "/EffizienzMassnahmeTypService/effizienzmassnahmetyp" (HTTP-POST) If an existing EffizienzMassnahmeTyp entity has been updated, the modified entity should be sent to the relative URL: "/EffizienzMassnahmeTypService/effizienzmassnahmetyp/{id}" (HTTP-PUT) If an existing EffizienzMassnahmeTyp entity has to be deleted, the following relative URL should be called: "/EffizienzMassnahmeTypService/effizienzmassnahmetyp/{id}" (HTTP-DELETE) Add a HTML table to the view with the following EffizienzMassnahme columns: - column: Gemeinde - column: StartJahr - column: Beschreibung - column: IstLedUmruestung - column: EndJahr - column: Foerderprogramm - column: ErwarteteErsparnisProzent - column: EffizienzMassnahmeTyp The table should have the title "EffizienzMassnahmes" und the data must be loaded from the server with the following relative URL: "/EffizienzMassnahmeTypService/effizienzmassnahme/effizienzmassnahmetyp/{id}" 3. The EnergieStatistikView must contain the following fields: - name: AnteilNationalerStromProzent type: STRING - name: AnteilPrimaerenergieProzent type: STRING - name: Jahr type: INT - name: Land type: Land - name: LeuchtenAnzahl type: LONG - name: StromverbrauchTWh type: STRING The data source for the [Land] select control should be loaded from the relative URL: "/LandService/land" (HTTP-GET) An existing EnergieStatistik entity should be loaded from the relative URL: "/EffizienzMassnahmeTypService/energiestatistik/{id}" (HTTP-GET) If a new EnergieStatistik entity has been created, the new entity should be posted to the relative URL: "/EffizienzMassnahmeTypService/energiestatistik" (HTTP-POST) If an existing EnergieStatistik entity has been updated, the modified entity should be sent to the relative URL: "/EffizienzMassnahmeTypService/energiestatistik/{id}" (HTTP-PUT) If an existing EnergieStatistik entity has to be deleted, the following relative URL should be called: "/EffizienzMassnahmeTypService/energiestatistik/{id}" (HTTP-DELETE)
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum