Overview
Summary
Contact
Donate
Imprint
Prompt for the
BusinessSegmentApp
Please create a React-JS application for the BusinessSegmentModule. The application has to offer the following views for the user interface: 1. BusinessSegmentView 2. ChargingLocationView 3. ChargingNetworkView 4. FinancialYearView 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 BusinessSegmentView must contain the following fields: - name: Company type: Company - name: EndYear type: INT - name: SegmentDescription type: STRING - name: SegmentName type: STRING - name: StartYear type: INT The data source for the [Company] select control should be loaded from the relative URL: "/CompanyService/company" (HTTP-GET) An existing BusinessSegment entity should be loaded from the relative URL: "/BusinessSegmentService/businesssegment/{id}" (HTTP-GET) If a new BusinessSegment entity has been created, the new entity should be posted to the relative URL: "/BusinessSegmentService/businesssegment" (HTTP-POST) If an existing BusinessSegment entity has been updated, the modified entity should be sent to the relative URL: "/BusinessSegmentService/businesssegment/{id}" (HTTP-PUT) If an existing BusinessSegment entity has to be deleted, the following relative URL should be called: "/BusinessSegmentService/businesssegment/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Product columns: - column: ProductName - column: ProductType - column: DiscontinuedYear - column: Company - column: BusinessSegment - column: Description - column: LaunchYear The table should have the title "Products" und the data must be loaded from the server with the following relative URL: "/CompanyService/product/businesssegment/{id}" 2. The ChargingLocationView must contain the following fields: - name: ChargingNetwork type: ChargingNetwork - name: City type: City - name: ConnectorCount type: INT - name: LocationName type: STRING - name: Notes type: STRING - name: OpeningYear type: INT - name: StationCount type: INT The data source for the [ChargingNetwork] select control should be loaded from the relative URL: "/BusinessSegmentService/chargingnetwork" (HTTP-GET) The data source for the [City] select control should be loaded from the relative URL: "/CityService/city" (HTTP-GET) An existing ChargingLocation entity should be loaded from the relative URL: "/BusinessSegmentService/charginglocation/{id}" (HTTP-GET) If a new ChargingLocation entity has been created, the new entity should be posted to the relative URL: "/BusinessSegmentService/charginglocation" (HTTP-POST) If an existing ChargingLocation entity has been updated, the modified entity should be sent to the relative URL: "/BusinessSegmentService/charginglocation/{id}" (HTTP-PUT) If an existing ChargingLocation entity has to be deleted, the following relative URL should be called: "/BusinessSegmentService/charginglocation/{id}" (HTTP-DELETE) 3. The ChargingNetworkView must contain the following fields: - name: Company type: Company - name: Description type: STRING - name: LaunchYear type: INT - name: NetworkName type: STRING - name: NetworkType type: STRING The data source for the [Company] select control should be loaded from the relative URL: "/CompanyService/company" (HTTP-GET) An existing ChargingNetwork entity should be loaded from the relative URL: "/BusinessSegmentService/chargingnetwork/{id}" (HTTP-GET) If a new ChargingNetwork entity has been created, the new entity should be posted to the relative URL: "/BusinessSegmentService/chargingnetwork" (HTTP-POST) If an existing ChargingNetwork entity has been updated, the modified entity should be sent to the relative URL: "/BusinessSegmentService/chargingnetwork/{id}" (HTTP-PUT) If an existing ChargingNetwork entity has to be deleted, the following relative URL should be called: "/BusinessSegmentService/chargingnetwork/{id}" (HTTP-DELETE) Add a HTML table to the view with the following ChargingLocation columns: - column: LocationName - column: ConnectorCount - column: Notes - column: ChargingNetwork - column: City - column: OpeningYear - column: StationCount The table should have the title "ChargingLocations" und the data must be loaded from the server with the following relative URL: "/BusinessSegmentService/charginglocation/chargingnetwork/{id}" 4. The FinancialYearView must contain the following fields: - name: BalanceSheetMillionUsd type: DOUBLE - name: Company type: Company - name: DeliveriesMillionVehicles type: DOUBLE - name: EmployeeCount type: INT - name: FiscalYear type: INT - name: ProfitMillionUsd type: DOUBLE - name: RevenueMillionUsd type: DOUBLE The data source for the [Company] select control should be loaded from the relative URL: "/CompanyService/company" (HTTP-GET) An existing FinancialYear entity should be loaded from the relative URL: "/BusinessSegmentService/financialyear/{id}" (HTTP-GET) If a new FinancialYear entity has been created, the new entity should be posted to the relative URL: "/BusinessSegmentService/financialyear" (HTTP-POST) If an existing FinancialYear entity has been updated, the modified entity should be sent to the relative URL: "/BusinessSegmentService/financialyear/{id}" (HTTP-PUT) If an existing FinancialYear entity has to be deleted, the following relative URL should be called: "/BusinessSegmentService/financialyear/{id}" (HTTP-DELETE)
Copy prompt
Overview
Summary
Contact
Donate
Imprint