Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
KasseApp
Please create a React-JS application for the KasseModule. The application has to offer the following views for the user interface: 1. FranchisevertragView 2. KasseView 3. SelbstbedienungskasseView 4. UmweltbilanzView 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 FranchisevertragView must contain the following fields: - name: FranchiseGebiet type: STRING - name: FranchisenehmerName type: STRING - name: Handelskette type: Handelskette - name: Supermarkt type: Supermarkt - name: Vertragsbeginn type: DATE - name: Vertragsende type: DATE The data source for the [Supermarkt] select control should be loaded from the relative URL: "/SupermarktService/supermarkt" (HTTP-GET) The data source for the [Handelskette] select control should be loaded from the relative URL: "/LandService/handelskette" (HTTP-GET) An existing Franchisevertrag entity should be loaded from the relative URL: "/KasseService/franchisevertrag/{id}" (HTTP-GET) If a new Franchisevertrag entity has been created, the new entity should be posted to the relative URL: "/KasseService/franchisevertrag" (HTTP-POST) If an existing Franchisevertrag entity has been updated, the modified entity should be sent to the relative URL: "/KasseService/franchisevertrag/{id}" (HTTP-PUT) If an existing Franchisevertrag entity has to be deleted, the following relative URL should be called: "/KasseService/franchisevertrag/{id}" (HTTP-DELETE) 2. The KasseView must contain the following fields: - name: HatWaage type: BOOL - name: IstSelbstbedienung type: BOOL - name: Kassenart type: STRING - name: Nummer type: INT - 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 Kasse entity should be loaded from the relative URL: "/KasseService/kasse/{id}" (HTTP-GET) If a new Kasse entity has been created, the new entity should be posted to the relative URL: "/KasseService/kasse" (HTTP-POST) If an existing Kasse entity has been updated, the modified entity should be sent to the relative URL: "/KasseService/kasse/{id}" (HTTP-PUT) If an existing Kasse entity has to be deleted, the following relative URL should be called: "/KasseService/kasse/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Selbstbedienungskasse columns: - column: Kasse - column: Zahlart - column: HatMitarbeiterunterstuetzung The table should have the title "Selbstbedienungskasses" und the data must be loaded from the server with the following relative URL: "/KasseService/selbstbedienungskasse/kasse/{id}" 3. The SelbstbedienungskasseView must contain the following fields: - name: HatMitarbeiterunterstuetzung type: BOOL - name: Kasse type: Kasse - name: Zahlart type: STRING The data source for the [Kasse] select control should be loaded from the relative URL: "/KasseService/kasse" (HTTP-GET) An existing Selbstbedienungskasse entity should be loaded from the relative URL: "/KasseService/selbstbedienungskasse/{id}" (HTTP-GET) If a new Selbstbedienungskasse entity has been created, the new entity should be posted to the relative URL: "/KasseService/selbstbedienungskasse" (HTTP-POST) If an existing Selbstbedienungskasse entity has been updated, the modified entity should be sent to the relative URL: "/KasseService/selbstbedienungskasse/{id}" (HTTP-PUT) If an existing Selbstbedienungskasse entity has to be deleted, the following relative URL should be called: "/KasseService/selbstbedienungskasse/{id}" (HTTP-DELETE) 4. The UmweltbilanzView must contain the following fields: - name: Co2ProKundeKg type: STRING - name: Jahr type: INT - name: OeffiAnteilProzent type: STRING - name: PkwAnteilProzent 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 Umweltbilanz entity should be loaded from the relative URL: "/KasseService/umweltbilanz/{id}" (HTTP-GET) If a new Umweltbilanz entity has been created, the new entity should be posted to the relative URL: "/KasseService/umweltbilanz" (HTTP-POST) If an existing Umweltbilanz entity has been updated, the modified entity should be sent to the relative URL: "/KasseService/umweltbilanz/{id}" (HTTP-PUT) If an existing Umweltbilanz entity has to be deleted, the following relative URL should be called: "/KasseService/umweltbilanz/{id}" (HTTP-DELETE)
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum