Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
MitarbeiterRolleApp
Please create a React-JS application for the MitarbeiterRolleModule. The application has to offer the following views for the user interface: 1. DienstView 2. MitarbeiterView 3. MitarbeiterRolleView 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 DienstView must contain the following fields: - name: BisDatumZeit type: STRING - name: DienstArt type: DienstArt - name: Mitarbeiter type: Mitarbeiter - name: Station type: Station - name: VonDatumZeit type: STRING The data source for the [Station] select control should be loaded from the relative URL: "/StationService/station" (HTTP-GET) The data source for the [DienstArt] select control should be loaded from the relative URL: "/TraegerArtService/dienstart" (HTTP-GET) The data source for the [Mitarbeiter] select control should be loaded from the relative URL: "/MitarbeiterRolleService/mitarbeiter" (HTTP-GET) An existing Dienst entity should be loaded from the relative URL: "/MitarbeiterRolleService/dienst/{id}" (HTTP-GET) If a new Dienst entity has been created, the new entity should be posted to the relative URL: "/MitarbeiterRolleService/dienst" (HTTP-POST) If an existing Dienst entity has been updated, the modified entity should be sent to the relative URL: "/MitarbeiterRolleService/dienst/{id}" (HTTP-PUT) If an existing Dienst entity has to be deleted, the following relative URL should be called: "/MitarbeiterRolleService/dienst/{id}" (HTTP-DELETE) 2. The MitarbeiterView must contain the following fields: - name: Beruf type: STRING - name: Einstellungsdatum type: DATE - name: IstArzt type: BOOL - name: IstPflege type: BOOL - name: Krankenhaus type: Krankenhaus - name: MitarbeiterRolle type: MitarbeiterRolle - name: Nachname type: STRING - name: Vorname type: STRING The data source for the [Krankenhaus] select control should be loaded from the relative URL: "/KrankenhausService/krankenhaus" (HTTP-GET) The data source for the [MitarbeiterRolle] select control should be loaded from the relative URL: "/MitarbeiterRolleService/mitarbeiterrolle" (HTTP-GET) An existing Mitarbeiter entity should be loaded from the relative URL: "/MitarbeiterRolleService/mitarbeiter/{id}" (HTTP-GET) If a new Mitarbeiter entity has been created, the new entity should be posted to the relative URL: "/MitarbeiterRolleService/mitarbeiter" (HTTP-POST) If an existing Mitarbeiter entity has been updated, the modified entity should be sent to the relative URL: "/MitarbeiterRolleService/mitarbeiter/{id}" (HTTP-PUT) If an existing Mitarbeiter entity has to be deleted, the following relative URL should be called: "/MitarbeiterRolleService/mitarbeiter/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Dienst columns: - column: Station - column: VonDatumZeit - column: DienstArt - column: BisDatumZeit - column: Mitarbeiter The table should have the title "Diensts" und the data must be loaded from the server with the following relative URL: "/MitarbeiterRolleService/dienst/mitarbeiter/{id}" 3. The MitarbeiterRolleView must contain the following fields: - name: IstLeitungsfunktion type: BOOL - name: Name type: STRING An existing MitarbeiterRolle entity should be loaded from the relative URL: "/MitarbeiterRolleService/mitarbeiterrolle/{id}" (HTTP-GET) If a new MitarbeiterRolle entity has been created, the new entity should be posted to the relative URL: "/MitarbeiterRolleService/mitarbeiterrolle" (HTTP-POST) If an existing MitarbeiterRolle entity has been updated, the modified entity should be sent to the relative URL: "/MitarbeiterRolleService/mitarbeiterrolle/{id}" (HTTP-PUT) If an existing MitarbeiterRolle entity has to be deleted, the following relative URL should be called: "/MitarbeiterRolleService/mitarbeiterrolle/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Mitarbeiter columns: - column: IstPflege - column: Einstellungsdatum - column: MitarbeiterRolle - column: Krankenhaus - column: Nachname - column: Vorname - column: IstArzt - column: Beruf The table should have the title "Mitarbeiters" und the data must be loaded from the server with the following relative URL: "/MitarbeiterRolleService/mitarbeiter/mitarbeiterrolle/{id}"
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum