Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
SchutzmassnahmeApp
Please create a React-JS application for the SchutzmassnahmeModule. The application has to offer the following views for the user interface: 1. ArbeitsunfallView 2. SchutzmassnahmeView 3. UnfallSchutzmassnahmeView 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 ArbeitsunfallView must contain the following fields: - name: BaeckereiFiliale type: BaeckereiFiliale - name: Beschreibung type: STRING - name: Gefaehrdungstyp type: Gefaehrdungstyp - name: Mitarbeiter type: Mitarbeiter - name: UnfallDatum type: DATE - name: Verletzungsschwere type: STRING The data source for the [BaeckereiFiliale] select control should be loaded from the relative URL: "/AdresseService/baeckereifiliale" (HTTP-GET) The data source for the [Gefaehrdungstyp] select control should be loaded from the relative URL: "/MitarbeiterService/gefaehrdungstyp" (HTTP-GET) The data source for the [Mitarbeiter] select control should be loaded from the relative URL: "/MitarbeiterService/mitarbeiter" (HTTP-GET) An existing Arbeitsunfall entity should be loaded from the relative URL: "/SchutzmassnahmeService/arbeitsunfall/{id}" (HTTP-GET) If a new Arbeitsunfall entity has been created, the new entity should be posted to the relative URL: "/SchutzmassnahmeService/arbeitsunfall" (HTTP-POST) If an existing Arbeitsunfall entity has been updated, the modified entity should be sent to the relative URL: "/SchutzmassnahmeService/arbeitsunfall/{id}" (HTTP-PUT) If an existing Arbeitsunfall entity has to be deleted, the following relative URL should be called: "/SchutzmassnahmeService/arbeitsunfall/{id}" (HTTP-DELETE) Add a HTML table to the view with the following UnfallSchutzmassnahme columns: - column: Schutzmassnahme - column: Arbeitsunfall The table should have the title "UnfallSchutzmassnahmes" und the data must be loaded from the server with the following relative URL: "/SchutzmassnahmeService/unfallschutzmassnahme/arbeitsunfall/{id}" 2. The SchutzmassnahmeView must contain the following fields: - name: Beschreibung type: STRING - name: Name type: STRING An existing Schutzmassnahme entity should be loaded from the relative URL: "/SchutzmassnahmeService/schutzmassnahme/{id}" (HTTP-GET) If a new Schutzmassnahme entity has been created, the new entity should be posted to the relative URL: "/SchutzmassnahmeService/schutzmassnahme" (HTTP-POST) If an existing Schutzmassnahme entity has been updated, the modified entity should be sent to the relative URL: "/SchutzmassnahmeService/schutzmassnahme/{id}" (HTTP-PUT) If an existing Schutzmassnahme entity has to be deleted, the following relative URL should be called: "/SchutzmassnahmeService/schutzmassnahme/{id}" (HTTP-DELETE) Add a HTML table to the view with the following UnfallSchutzmassnahme columns: - column: Schutzmassnahme - column: Arbeitsunfall The table should have the title "UnfallSchutzmassnahmes" und the data must be loaded from the server with the following relative URL: "/SchutzmassnahmeService/unfallschutzmassnahme/schutzmassnahme/{id}" 3. The UnfallSchutzmassnahmeView must contain the following fields: - name: Arbeitsunfall type: Arbeitsunfall - name: Schutzmassnahme type: Schutzmassnahme The data source for the [Arbeitsunfall] select control should be loaded from the relative URL: "/SchutzmassnahmeService/arbeitsunfall" (HTTP-GET) The data source for the [Schutzmassnahme] select control should be loaded from the relative URL: "/SchutzmassnahmeService/schutzmassnahme" (HTTP-GET) An existing UnfallSchutzmassnahme entity should be loaded from the relative URL: "/SchutzmassnahmeService/unfallschutzmassnahme/{id}" (HTTP-GET) If a new UnfallSchutzmassnahme entity has been created, the new entity should be posted to the relative URL: "/SchutzmassnahmeService/unfallschutzmassnahme" (HTTP-POST) If an existing UnfallSchutzmassnahme entity has been updated, the modified entity should be sent to the relative URL: "/SchutzmassnahmeService/unfallschutzmassnahme/{id}" (HTTP-PUT) If an existing UnfallSchutzmassnahme entity has to be deleted, the following relative URL should be called: "/SchutzmassnahmeService/unfallschutzmassnahme/{id}" (HTTP-DELETE)
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum