Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
MitarbeiterApp
Please create a React-JS application for the MitarbeiterModule. The application has to offer the following views for the user interface: 1. BeschaeftigungView 2. GefaehrdungstypView 3. MitarbeiterView 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 BeschaeftigungView must contain the following fields: - name: BaeckereiFiliale type: BaeckereiFiliale - name: Beruf type: Beruf - name: Enddatum type: DATE - name: Mitarbeiter type: Mitarbeiter - name: Startdatum type: DATE - name: Wochenstunden type: DOUBLE The data source for the [Beruf] select control should be loaded from the relative URL: "/AdresseService/beruf" (HTTP-GET) The data source for the [BaeckereiFiliale] select control should be loaded from the relative URL: "/AdresseService/baeckereifiliale" (HTTP-GET) The data source for the [Mitarbeiter] select control should be loaded from the relative URL: "/MitarbeiterService/mitarbeiter" (HTTP-GET) An existing Beschaeftigung entity should be loaded from the relative URL: "/MitarbeiterService/beschaeftigung/{id}" (HTTP-GET) If a new Beschaeftigung entity has been created, the new entity should be posted to the relative URL: "/MitarbeiterService/beschaeftigung" (HTTP-POST) If an existing Beschaeftigung entity has been updated, the modified entity should be sent to the relative URL: "/MitarbeiterService/beschaeftigung/{id}" (HTTP-PUT) If an existing Beschaeftigung entity has to be deleted, the following relative URL should be called: "/MitarbeiterService/beschaeftigung/{id}" (HTTP-DELETE) 2. The GefaehrdungstypView must contain the following fields: - name: Beschreibung type: STRING - name: Name type: STRING An existing Gefaehrdungstyp entity should be loaded from the relative URL: "/MitarbeiterService/gefaehrdungstyp/{id}" (HTTP-GET) If a new Gefaehrdungstyp entity has been created, the new entity should be posted to the relative URL: "/MitarbeiterService/gefaehrdungstyp" (HTTP-POST) If an existing Gefaehrdungstyp entity has been updated, the modified entity should be sent to the relative URL: "/MitarbeiterService/gefaehrdungstyp/{id}" (HTTP-PUT) If an existing Gefaehrdungstyp entity has to be deleted, the following relative URL should be called: "/MitarbeiterService/gefaehrdungstyp/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Arbeitsunfall columns: - column: Gefaehrdungstyp - column: Verletzungsschwere - column: BaeckereiFiliale - column: UnfallDatum - column: Mitarbeiter - column: Beschreibung The table should have the title "Arbeitsunfalls" und the data must be loaded from the server with the following relative URL: "/SchutzmassnahmeService/arbeitsunfall/gefaehrdungstyp/{id}" 3. The MitarbeiterView must contain the following fields: - name: Baeckerei type: Baeckerei - name: Beruf type: Beruf - name: Einstellungsdatum type: DATE - name: Geburtsdatum type: DATE - name: IstAzubi type: BOOL - name: Nachname type: STRING - name: Vorname type: STRING The data source for the [Baeckerei] select control should be loaded from the relative URL: "/BaeckereiService/baeckerei" (HTTP-GET) The data source for the [Beruf] select control should be loaded from the relative URL: "/AdresseService/beruf" (HTTP-GET) An existing Mitarbeiter entity should be loaded from the relative URL: "/MitarbeiterService/mitarbeiter/{id}" (HTTP-GET) If a new Mitarbeiter entity has been created, the new entity should be posted to the relative URL: "/MitarbeiterService/mitarbeiter" (HTTP-POST) If an existing Mitarbeiter entity has been updated, the modified entity should be sent to the relative URL: "/MitarbeiterService/mitarbeiter/{id}" (HTTP-PUT) If an existing Mitarbeiter entity has to be deleted, the following relative URL should be called: "/MitarbeiterService/mitarbeiter/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Arbeitsunfall columns: - column: Gefaehrdungstyp - column: Verletzungsschwere - column: BaeckereiFiliale - column: UnfallDatum - column: Mitarbeiter - column: Beschreibung The table should have the title "Arbeitsunfalls" und the data must be loaded from the server with the following relative URL: "/SchutzmassnahmeService/arbeitsunfall/mitarbeiter/{id}" Add a HTML table to the view with the following Beschaeftigung columns: - column: Mitarbeiter - column: Wochenstunden - column: Beruf - column: Startdatum - column: BaeckereiFiliale - column: Enddatum The table should have the title "Beschaeftigungs" und the data must be loaded from the server with the following relative URL: "/MitarbeiterService/beschaeftigung/mitarbeiter/{id}"
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum