Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
BauabschnittApp
Please create a React-JS application for the BauabschnittModule. The application has to offer the following views for the user interface: 1. BauabschnittView 2. BaulosView 3. BaustellenschildView 4. UnfallView 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 BauabschnittView must contain the following fields: - name: AbschnittNummer type: INT - name: Baustelle type: Baustelle - name: Beginn type: DATE - name: Beschreibung type: STRING - name: Bezeichnung type: STRING - name: Ende type: DATE The data source for the [Baustelle] select control should be loaded from the relative URL: "/BaustelleService/baustelle" (HTTP-GET) An existing Bauabschnitt entity should be loaded from the relative URL: "/BauabschnittService/bauabschnitt/{id}" (HTTP-GET) If a new Bauabschnitt entity has been created, the new entity should be posted to the relative URL: "/BauabschnittService/bauabschnitt" (HTTP-POST) If an existing Bauabschnitt entity has been updated, the modified entity should be sent to the relative URL: "/BauabschnittService/bauabschnitt/{id}" (HTTP-PUT) If an existing Bauabschnitt entity has to be deleted, the following relative URL should be called: "/BauabschnittService/bauabschnitt/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Baulos columns: - column: Bauabschnitt - column: Beschreibung - column: Ende - column: Bezeichnung - column: Beginn The table should have the title "Bauloss" und the data must be loaded from the server with the following relative URL: "/BauabschnittService/baulos/bauabschnitt/{id}" 2. The BaulosView must contain the following fields: - name: Bauabschnitt type: Bauabschnitt - name: Beginn type: DATE - name: Beschreibung type: STRING - name: Bezeichnung type: STRING - name: Ende type: DATE The data source for the [Bauabschnitt] select control should be loaded from the relative URL: "/BauabschnittService/bauabschnitt" (HTTP-GET) An existing Baulos entity should be loaded from the relative URL: "/BauabschnittService/baulos/{id}" (HTTP-GET) If a new Baulos entity has been created, the new entity should be posted to the relative URL: "/BauabschnittService/baulos" (HTTP-POST) If an existing Baulos entity has been updated, the modified entity should be sent to the relative URL: "/BauabschnittService/baulos/{id}" (HTTP-PUT) If an existing Baulos entity has to be deleted, the following relative URL should be called: "/BauabschnittService/baulos/{id}" (HTTP-DELETE) 3. The BaustellenschildView must contain the following fields: - name: Baustelle type: Baustelle - name: SchildTyp type: STRING - name: StandortBeschreibung type: STRING - name: TextInhalt type: STRING The data source for the [Baustelle] select control should be loaded from the relative URL: "/BaustelleService/baustelle" (HTTP-GET) An existing Baustellenschild entity should be loaded from the relative URL: "/BauabschnittService/baustellenschild/{id}" (HTTP-GET) If a new Baustellenschild entity has been created, the new entity should be posted to the relative URL: "/BauabschnittService/baustellenschild" (HTTP-POST) If an existing Baustellenschild entity has been updated, the modified entity should be sent to the relative URL: "/BauabschnittService/baustellenschild/{id}" (HTTP-PUT) If an existing Baustellenschild entity has to be deleted, the following relative URL should be called: "/BauabschnittService/baustellenschild/{id}" (HTTP-DELETE) 4. The UnfallView must contain the following fields: - name: Baustelle type: Baustelle - name: Beschreibung type: STRING - name: BeteiligtenAnzahl type: INT - name: Datum type: DATE - name: Personenschaden type: BOOL - name: PolizeiEinsatz type: BOOL - name: Sachschaden type: BOOL The data source for the [Baustelle] select control should be loaded from the relative URL: "/BaustelleService/baustelle" (HTTP-GET) An existing Unfall entity should be loaded from the relative URL: "/BauabschnittService/unfall/{id}" (HTTP-GET) If a new Unfall entity has been created, the new entity should be posted to the relative URL: "/BauabschnittService/unfall" (HTTP-POST) If an existing Unfall entity has been updated, the modified entity should be sent to the relative URL: "/BauabschnittService/unfall/{id}" (HTTP-PUT) If an existing Unfall entity has to be deleted, the following relative URL should be called: "/BauabschnittService/unfall/{id}" (HTTP-DELETE) Add a HTML table to the view with the following UnfallBeteiligter columns: - column: Verletzt - column: Akteur - column: Rolle - column: Unfall - column: Getoetet The table should have the title "UnfallBeteiligters" und the data must be loaded from the server with the following relative URL: "/AkteurService/unfallbeteiligter/unfall/{id}"
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum