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. AuditView 2. BerechtigungspruefungView 3. MitarbeiterView 4. SchulungsTeilnahmeView 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 AuditView must contain the following fields: - name: AuditDatum type: DATE - name: AuditTyp type: STRING - name: Ergebnis type: STRING - name: LokaleTafel type: LokaleTafel - name: Mitarbeiter type: Mitarbeiter - name: NacharbeitErforderlichFlag type: BOOL The data source for the [Mitarbeiter] select control should be loaded from the relative URL: "/MitarbeiterService/mitarbeiter" (HTTP-GET) The data source for the [LokaleTafel] select control should be loaded from the relative URL: "/LokaleTafelService/lokaletafel" (HTTP-GET) An existing Audit entity should be loaded from the relative URL: "/MitarbeiterService/audit/{id}" (HTTP-GET) If a new Audit entity has been created, the new entity should be posted to the relative URL: "/MitarbeiterService/audit" (HTTP-POST) If an existing Audit entity has been updated, the modified entity should be sent to the relative URL: "/MitarbeiterService/audit/{id}" (HTTP-PUT) If an existing Audit entity has to be deleted, the following relative URL should be called: "/MitarbeiterService/audit/{id}" (HTTP-DELETE) 2. The BerechtigungspruefungView must contain the following fields: - name: Ehrenamtlicher type: Ehrenamtlicher - name: EinkommenGeprueftFlag type: BOOL - name: ErgebnisStatus type: STRING - name: GueltigBis type: DATE - name: Haushalt type: Haushalt - name: Mitarbeiter type: Mitarbeiter - name: Notizen type: STRING - name: Pruefdatum type: DATE The data source for the [Haushalt] select control should be loaded from the relative URL: "/LokaleTafelService/haushalt" (HTTP-GET) The data source for the [Ehrenamtlicher] select control should be loaded from the relative URL: "/EhrenamtlicherService/ehrenamtlicher" (HTTP-GET) The data source for the [Mitarbeiter] select control should be loaded from the relative URL: "/MitarbeiterService/mitarbeiter" (HTTP-GET) An existing Berechtigungspruefung entity should be loaded from the relative URL: "/MitarbeiterService/berechtigungspruefung/{id}" (HTTP-GET) If a new Berechtigungspruefung entity has been created, the new entity should be posted to the relative URL: "/MitarbeiterService/berechtigungspruefung" (HTTP-POST) If an existing Berechtigungspruefung entity has been updated, the modified entity should be sent to the relative URL: "/MitarbeiterService/berechtigungspruefung/{id}" (HTTP-PUT) If an existing Berechtigungspruefung entity has to be deleted, the following relative URL should be called: "/MitarbeiterService/berechtigungspruefung/{id}" (HTTP-DELETE) 3. The MitarbeiterView must contain the following fields: - name: Beschaeftigungsart type: STRING - name: Email type: STRING - name: LokaleTafel type: LokaleTafel - name: Nachname type: STRING - name: Position type: STRING - name: Telefon type: STRING - name: Vorname type: STRING The data source for the [LokaleTafel] select control should be loaded from the relative URL: "/LokaleTafelService/lokaletafel" (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 SchulungsTeilnahme columns: - column: LebensmittelsicherheitsSchulung - column: ZertifikatNummer - column: Mitarbeiter - column: Ehrenamtlicher - column: BestandenFlag The table should have the title "SchulungsTeilnahmes" und the data must be loaded from the server with the following relative URL: "/MitarbeiterService/schulungsteilnahme/mitarbeiter/{id}" Add a HTML table to the view with the following Audit columns: - column: AuditTyp - column: AuditDatum - column: Ergebnis - column: NacharbeitErforderlichFlag - column: LokaleTafel - column: Mitarbeiter The table should have the title "Audits" und the data must be loaded from the server with the following relative URL: "/MitarbeiterService/audit/mitarbeiter/{id}" Add a HTML table to the view with the following Berechtigungspruefung columns: - column: Mitarbeiter - column: Pruefdatum - column: Haushalt - column: Notizen - column: EinkommenGeprueftFlag - column: ErgebnisStatus - column: GueltigBis - column: Ehrenamtlicher The table should have the title "Berechtigungspruefungs" und the data must be loaded from the server with the following relative URL: "/MitarbeiterService/berechtigungspruefung/mitarbeiter/{id}" 4. The SchulungsTeilnahmeView must contain the following fields: - name: BestandenFlag type: BOOL - name: Ehrenamtlicher type: Ehrenamtlicher - name: LebensmittelsicherheitsSchulung type: LebensmittelsicherheitsSchulung - name: Mitarbeiter type: Mitarbeiter - name: ZertifikatNummer type: STRING The data source for the [Ehrenamtlicher] select control should be loaded from the relative URL: "/EhrenamtlicherService/ehrenamtlicher" (HTTP-GET) The data source for the [LebensmittelsicherheitsSchulung] select control should be loaded from the relative URL: "/LagerService/lebensmittelsicherheitsschulung" (HTTP-GET) The data source for the [Mitarbeiter] select control should be loaded from the relative URL: "/MitarbeiterService/mitarbeiter" (HTTP-GET) An existing SchulungsTeilnahme entity should be loaded from the relative URL: "/MitarbeiterService/schulungsteilnahme/{id}" (HTTP-GET) If a new SchulungsTeilnahme entity has been created, the new entity should be posted to the relative URL: "/MitarbeiterService/schulungsteilnahme" (HTTP-POST) If an existing SchulungsTeilnahme entity has been updated, the modified entity should be sent to the relative URL: "/MitarbeiterService/schulungsteilnahme/{id}" (HTTP-PUT) If an existing SchulungsTeilnahme entity has to be deleted, the following relative URL should be called: "/MitarbeiterService/schulungsteilnahme/{id}" (HTTP-DELETE)
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum