Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
KundeApp
Please create a React-JS application for the KundeModule. The application has to offer the following views for the user interface: 1. DienstleistungView 2. HistorischesEreignisView 3. KundeView 4. KundenkarteView 5. PersonalkostenstrukturView The views have to be reachable for the user via a menu list at the left side of each view. The requirements for the 5 views are defined below. 1. The DienstleistungView must contain the following fields: - name: Beschreibung type: STRING - name: Bezeichnung type: STRING - name: HatAutoVerstauservice type: BOOL - name: HatEinpackservice type: BOOL - name: HatElektroroller type: BOOL - name: HatKinderwagen type: BOOL - name: IstRundUmDieUhr type: BOOL - name: Supermarkt type: Supermarkt The data source for the [Supermarkt] select control should be loaded from the relative URL: "/SupermarktService/supermarkt" (HTTP-GET) An existing Dienstleistung entity should be loaded from the relative URL: "/KundeService/dienstleistung/{id}" (HTTP-GET) If a new Dienstleistung entity has been created, the new entity should be posted to the relative URL: "/KundeService/dienstleistung" (HTTP-POST) If an existing Dienstleistung entity has been updated, the modified entity should be sent to the relative URL: "/KundeService/dienstleistung/{id}" (HTTP-PUT) If an existing Dienstleistung entity has to be deleted, the following relative URL should be called: "/KundeService/dienstleistung/{id}" (HTTP-DELETE) 2. The HistorischesEreignisView must contain the following fields: - name: Beschreibung type: STRING - name: Datum type: DATE - name: Quelle type: STRING - name: Supermarkt type: Supermarkt The data source for the [Supermarkt] select control should be loaded from the relative URL: "/SupermarktService/supermarkt" (HTTP-GET) An existing HistorischesEreignis entity should be loaded from the relative URL: "/KundeService/historischesereignis/{id}" (HTTP-GET) If a new HistorischesEreignis entity has been created, the new entity should be posted to the relative URL: "/KundeService/historischesereignis" (HTTP-POST) If an existing HistorischesEreignis entity has been updated, the modified entity should be sent to the relative URL: "/KundeService/historischesereignis/{id}" (HTTP-PUT) If an existing HistorischesEreignis entity has to be deleted, the following relative URL should be called: "/KundeService/historischesereignis/{id}" (HTTP-DELETE) 3. The KundeView must contain the following fields: - name: Geburtsdatum type: DATE - name: HatKundenkarte type: BOOL - name: Kundenart type: STRING - name: Land type: Land - name: Name type: STRING - name: Stadt type: Stadt The data source for the [Stadt] select control should be loaded from the relative URL: "/LandService/stadt" (HTTP-GET) The data source for the [Land] select control should be loaded from the relative URL: "/LandService/land" (HTTP-GET) An existing Kunde entity should be loaded from the relative URL: "/KundeService/kunde/{id}" (HTTP-GET) If a new Kunde entity has been created, the new entity should be posted to the relative URL: "/KundeService/kunde" (HTTP-POST) If an existing Kunde entity has been updated, the modified entity should be sent to the relative URL: "/KundeService/kunde/{id}" (HTTP-PUT) If an existing Kunde entity has to be deleted, the following relative URL should be called: "/KundeService/kunde/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Kundenkarte columns: - column: Ablaufdatum - column: Kunde - column: Kartennummer - column: Ausgabedatum - column: Supermarkt - column: RabattProgramm The table should have the title "Kundenkartes" und the data must be loaded from the server with the following relative URL: "/KundeService/kundenkarte/kunde/{id}" Add a HTML table to the view with the following Mitgliedschaft columns: - column: Beitrittsdatum - column: Geldeinlage - column: Kunde - column: Konsumgenossenschaft The table should have the title "Mitgliedschafts" und the data must be loaded from the server with the following relative URL: "/SupermarktService/mitgliedschaft/kunde/{id}" 4. The KundenkarteView must contain the following fields: - name: Ablaufdatum type: DATE - name: Ausgabedatum type: DATE - name: Kartennummer type: STRING - name: Kunde type: Kunde - name: RabattProgramm type: STRING - name: Supermarkt type: Supermarkt The data source for the [Kunde] select control should be loaded from the relative URL: "/KundeService/kunde" (HTTP-GET) The data source for the [Supermarkt] select control should be loaded from the relative URL: "/SupermarktService/supermarkt" (HTTP-GET) An existing Kundenkarte entity should be loaded from the relative URL: "/KundeService/kundenkarte/{id}" (HTTP-GET) If a new Kundenkarte entity has been created, the new entity should be posted to the relative URL: "/KundeService/kundenkarte" (HTTP-POST) If an existing Kundenkarte entity has been updated, the modified entity should be sent to the relative URL: "/KundeService/kundenkarte/{id}" (HTTP-PUT) If an existing Kundenkarte entity has to be deleted, the following relative URL should be called: "/KundeService/kundenkarte/{id}" (HTTP-DELETE) 5. The PersonalkostenstrukturView must contain the following fields: - name: BruttoUmsatz type: STRING - name: Jahr type: LONG - name: Mitarbeiteranzahl type: LONG - name: PersonalkostenAnteilProzent type: STRING - name: Supermarkt type: Supermarkt The data source for the [Supermarkt] select control should be loaded from the relative URL: "/SupermarktService/supermarkt" (HTTP-GET) An existing Personalkostenstruktur entity should be loaded from the relative URL: "/KundeService/personalkostenstruktur/{id}" (HTTP-GET) If a new Personalkostenstruktur entity has been created, the new entity should be posted to the relative URL: "/KundeService/personalkostenstruktur" (HTTP-POST) If an existing Personalkostenstruktur entity has been updated, the modified entity should be sent to the relative URL: "/KundeService/personalkostenstruktur/{id}" (HTTP-PUT) If an existing Personalkostenstruktur entity has to be deleted, the following relative URL should be called: "/KundeService/personalkostenstruktur/{id}" (HTTP-DELETE)
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum