Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
LichtquellenTypApp
Please create a React-JS application for the LichtquellenTypModule. The application has to offer the following views for the user interface: 1. LampeView 2. LeuchteView 3. LichtquellenTypView 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 LampeView must contain the following fields: - name: AusbauDatum type: DATE - name: Installationsdatum type: DATE - name: IstPrimaer type: BOOL - name: LeistungWatt type: STRING - name: Leuchteninstallation type: Leuchteninstallation - name: LichtquellenTyp type: LichtquellenTyp The data source for the [LichtquellenTyp] select control should be loaded from the relative URL: "/LichtquellenTypService/lichtquellentyp" (HTTP-GET) The data source for the [Leuchteninstallation] select control should be loaded from the relative URL: "/LeuchteninstallationService/leuchteninstallation" (HTTP-GET) An existing Lampe entity should be loaded from the relative URL: "/LichtquellenTypService/lampe/{id}" (HTTP-GET) If a new Lampe entity has been created, the new entity should be posted to the relative URL: "/LichtquellenTypService/lampe" (HTTP-POST) If an existing Lampe entity has been updated, the modified entity should be sent to the relative URL: "/LichtquellenTypService/lampe/{id}" (HTTP-PUT) If an existing Lampe entity has to be deleted, the following relative URL should be called: "/LichtquellenTypService/lampe/{id}" (HTTP-DELETE) 2. The LeuchteView must contain the following fields: - name: Code type: STRING - name: GehaeuseMaterial type: STRING - name: HatSekundaersystem type: BOOL - name: Hersteller type: STRING - name: IpSchutz type: STRING - name: IstDimmbar type: BOOL - name: IstLed type: BOOL - name: Modell type: STRING - name: Montageart type: STRING - name: OptikTyp type: STRING An existing Leuchte entity should be loaded from the relative URL: "/LichtquellenTypService/leuchte/{id}" (HTTP-GET) If a new Leuchte entity has been created, the new entity should be posted to the relative URL: "/LichtquellenTypService/leuchte" (HTTP-POST) If an existing Leuchte entity has been updated, the modified entity should be sent to the relative URL: "/LichtquellenTypService/leuchte/{id}" (HTTP-PUT) If an existing Leuchte entity has to be deleted, the following relative URL should be called: "/LichtquellenTypService/leuchte/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Leuchteninstallation columns: - column: Montagehoehe - column: IstAnGebaeude - column: Leuchte - column: Strassenbeleuchtungsanlage - column: Mast - column: IstAnBruecke - column: PositionUeberFahrbahn - column: AbstandMeter - column: Stromkreis - column: IstAnSeil The table should have the title "Leuchteninstallations" und the data must be loaded from the server with the following relative URL: "/LeuchteninstallationService/leuchteninstallation/leuchte/{id}" 3. The LichtquellenTypView must contain the following fields: - name: FarbwiedergabeIndex type: STRING - name: IstVeraltet type: BOOL - name: LebensdauerStunden type: INT - name: LeistungsbereichMax type: STRING - name: LeistungsbereichMin type: STRING - name: LichtausbeuteTypisch type: STRING - name: Name type: STRING - name: TechnologieGruppe type: STRING An existing LichtquellenTyp entity should be loaded from the relative URL: "/LichtquellenTypService/lichtquellentyp/{id}" (HTTP-GET) If a new LichtquellenTyp entity has been created, the new entity should be posted to the relative URL: "/LichtquellenTypService/lichtquellentyp" (HTTP-POST) If an existing LichtquellenTyp entity has been updated, the modified entity should be sent to the relative URL: "/LichtquellenTypService/lichtquellentyp/{id}" (HTTP-PUT) If an existing LichtquellenTyp entity has to be deleted, the following relative URL should be called: "/LichtquellenTypService/lichtquellentyp/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Lampe columns: - column: LeistungWatt - column: Installationsdatum - column: Leuchteninstallation - column: LichtquellenTyp - column: AusbauDatum - column: IstPrimaer The table should have the title "Lampes" und the data must be loaded from the server with the following relative URL: "/LichtquellenTypService/lampe/lichtquellentyp/{id}"
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum