Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
PflegevertragApp
Please create a React-JS application for the PflegevertragModule. The application has to offer the following views for the user interface: 1. PflegevertragView 2. PflegevertragEintragView The views have to be reachable for the user via a menu list at the left side of each view. The requirements for the 2 views are defined below. 1. The PflegevertragView must contain the following fields: - name: Bemerkung type: STRING - name: Enddatum type: DATE - name: Klient type: Klient - name: Kuendigungsdatum type: DATE - name: Kuendigungsgrund type: STRING - name: Pflegedienst type: Pflegedienst - name: Startdatum type: DATE - name: Status type: STRING - name: Vertragstyp type: STRING The data source for the [Pflegedienst] select control should be loaded from the relative URL: "/PflegedienstService/pflegedienst" (HTTP-GET) The data source for the [Klient] select control should be loaded from the relative URL: "/KlientService/klient" (HTTP-GET) An existing Pflegevertrag entity should be loaded from the relative URL: "/PflegevertragService/pflegevertrag/{id}" (HTTP-GET) If a new Pflegevertrag entity has been created, the new entity should be posted to the relative URL: "/PflegevertragService/pflegevertrag" (HTTP-POST) If an existing Pflegevertrag entity has been updated, the modified entity should be sent to the relative URL: "/PflegevertragService/pflegevertrag/{id}" (HTTP-PUT) If an existing Pflegevertrag entity has to be deleted, the following relative URL should be called: "/PflegevertragService/pflegevertrag/{id}" (HTTP-DELETE) Add a HTML table to the view with the following PflegevertragEintrag columns: - column: GeplanteDauerMinuten - column: LeistungskatalogEintrag - column: Pflegevertrag - column: IstOptional - column: Frequenzmuster The table should have the title "PflegevertragEintrags" und the data must be loaded from the server with the following relative URL: "/PflegevertragService/pflegevertrageintrag/pflegevertrag/{id}" 2. The PflegevertragEintragView must contain the following fields: - name: Frequenzmuster type: STRING - name: GeplanteDauerMinuten type: LONG - name: IstOptional type: BOOL - name: LeistungskatalogEintrag type: LeistungskatalogEintrag - name: Pflegevertrag type: Pflegevertrag The data source for the [LeistungskatalogEintrag] select control should be loaded from the relative URL: "/PflegedienstService/leistungskatalogeintrag" (HTTP-GET) The data source for the [Pflegevertrag] select control should be loaded from the relative URL: "/PflegevertragService/pflegevertrag" (HTTP-GET) An existing PflegevertragEintrag entity should be loaded from the relative URL: "/PflegevertragService/pflegevertrageintrag/{id}" (HTTP-GET) If a new PflegevertragEintrag entity has been created, the new entity should be posted to the relative URL: "/PflegevertragService/pflegevertrageintrag" (HTTP-POST) If an existing PflegevertragEintrag entity has been updated, the modified entity should be sent to the relative URL: "/PflegevertragService/pflegevertrageintrag/{id}" (HTTP-PUT) If an existing PflegevertragEintrag entity has to be deleted, the following relative URL should be called: "/PflegevertragService/pflegevertrageintrag/{id}" (HTTP-DELETE)
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum