Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
SchaltanlageApp
Please create a React-JS application for the SchaltanlageModule. The application has to offer the following views for the user interface: 1. SchaltanlageView 2. SchaltfeldView 3. TransformatorView 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 SchaltanlageView must contain the following fields: - name: Areal type: Areal - name: Beschreibung type: STRING - name: Name type: STRING - name: Schaltanlagentyp type: STRING - name: Spannungsebene type: Spannungsebene - name: Umspannwerk type: Umspannwerk The data source for the [Spannungsebene] select control should be loaded from the relative URL: "/SpannungsebeneService/spannungsebene" (HTTP-GET) The data source for the [Areal] select control should be loaded from the relative URL: "/UmspannwerkService/areal" (HTTP-GET) The data source for the [Umspannwerk] select control should be loaded from the relative URL: "/UmspannwerkService/umspannwerk" (HTTP-GET) An existing Schaltanlage entity should be loaded from the relative URL: "/SchaltanlageService/schaltanlage/{id}" (HTTP-GET) If a new Schaltanlage entity has been created, the new entity should be posted to the relative URL: "/SchaltanlageService/schaltanlage" (HTTP-POST) If an existing Schaltanlage entity has been updated, the modified entity should be sent to the relative URL: "/SchaltanlageService/schaltanlage/{id}" (HTTP-PUT) If an existing Schaltanlage entity has to be deleted, the following relative URL should be called: "/SchaltanlageService/schaltanlage/{id}" (HTTP-DELETE) Add a HTML table to the view with the following PrimaertechnikKomponente columns: - column: Areal - column: Schaltanlage - column: Umspannwerk - column: Schaltfeld - column: Beschreibung - column: TechnischeDaten - column: Transformator - column: Name - column: Komponententyp The table should have the title "PrimaertechnikKomponentes" und the data must be loaded from the server with the following relative URL: "/UmspannwerkService/primaertechnikkomponente/schaltanlage/{id}" Add a HTML table to the view with the following Schaltfeld columns: - column: Schaltanlage - column: Beschreibung - column: Name - column: Funktion The table should have the title "Schaltfelds" und the data must be loaded from the server with the following relative URL: "/SchaltanlageService/schaltfeld/schaltanlage/{id}" 2. The SchaltfeldView must contain the following fields: - name: Beschreibung type: STRING - name: Funktion type: STRING - name: Name type: STRING - name: Schaltanlage type: Schaltanlage The data source for the [Schaltanlage] select control should be loaded from the relative URL: "/SchaltanlageService/schaltanlage" (HTTP-GET) An existing Schaltfeld entity should be loaded from the relative URL: "/SchaltanlageService/schaltfeld/{id}" (HTTP-GET) If a new Schaltfeld entity has been created, the new entity should be posted to the relative URL: "/SchaltanlageService/schaltfeld" (HTTP-POST) If an existing Schaltfeld entity has been updated, the modified entity should be sent to the relative URL: "/SchaltanlageService/schaltfeld/{id}" (HTTP-PUT) If an existing Schaltfeld entity has to be deleted, the following relative URL should be called: "/SchaltanlageService/schaltfeld/{id}" (HTTP-DELETE) Add a HTML table to the view with the following PrimaertechnikKomponente columns: - column: Areal - column: Schaltanlage - column: Umspannwerk - column: Schaltfeld - column: Beschreibung - column: TechnischeDaten - column: Transformator - column: Name - column: Komponententyp The table should have the title "PrimaertechnikKomponentes" und the data must be loaded from the server with the following relative URL: "/UmspannwerkService/primaertechnikkomponente/schaltfeld/{id}" 3. The TransformatorView must contain the following fields: - name: Areal type: Areal - name: Baujahr type: LONG - name: Beschreibung type: STRING - name: Hersteller type: STRING - name: MasseTonnen type: STRING - name: MitLaststufenschalter type: BOOL - name: Name type: STRING - name: NennleistungMva type: STRING - name: ObereSpannungsebene type: Spannungsebene - name: Umspannwerk type: Umspannwerk - name: UntereSpannungsebene type: Spannungsebene The data source for the [ObereSpannungsebene] select control should be loaded from the relative URL: "/SpannungsebeneService/spannungsebene" (HTTP-GET) The data source for the [Areal] select control should be loaded from the relative URL: "/UmspannwerkService/areal" (HTTP-GET) The data source for the [UntereSpannungsebene] select control should be loaded from the relative URL: "/SpannungsebeneService/spannungsebene" (HTTP-GET) The data source for the [Umspannwerk] select control should be loaded from the relative URL: "/UmspannwerkService/umspannwerk" (HTTP-GET) An existing Transformator entity should be loaded from the relative URL: "/SchaltanlageService/transformator/{id}" (HTTP-GET) If a new Transformator entity has been created, the new entity should be posted to the relative URL: "/SchaltanlageService/transformator" (HTTP-POST) If an existing Transformator entity has been updated, the modified entity should be sent to the relative URL: "/SchaltanlageService/transformator/{id}" (HTTP-PUT) If an existing Transformator entity has to be deleted, the following relative URL should be called: "/SchaltanlageService/transformator/{id}" (HTTP-DELETE) Add a HTML table to the view with the following PrimaertechnikKomponente columns: - column: Areal - column: Schaltanlage - column: Umspannwerk - column: Schaltfeld - column: Beschreibung - column: TechnischeDaten - column: Transformator - column: Name - column: Komponententyp The table should have the title "PrimaertechnikKomponentes" und the data must be loaded from the server with the following relative URL: "/UmspannwerkService/primaertechnikkomponente/transformator/{id}"
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum