Overview
Summary
Contact
Donate
Imprint
Prompt for the
BatteryPackApp
Please create a React-JS application for the BatteryPackModule. The application has to offer the following views for the user interface: 1. AcquisitionView 2. BatteryCellFormatView 3. BatteryPackView 4. QuoteView 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 AcquisitionView must contain the following fields: - name: AnnouncementDate type: DATE - name: CloseDate type: DATE - name: Company type: Company - name: Description type: STRING - name: PurchasePriceMillionUsd type: DOUBLE - name: TargetCountry type: STRING - name: TargetName type: STRING The data source for the [Company] select control should be loaded from the relative URL: "/CompanyService/company" (HTTP-GET) An existing Acquisition entity should be loaded from the relative URL: "/BatteryPackService/acquisition/{id}" (HTTP-GET) If a new Acquisition entity has been created, the new entity should be posted to the relative URL: "/BatteryPackService/acquisition" (HTTP-POST) If an existing Acquisition entity has been updated, the modified entity should be sent to the relative URL: "/BatteryPackService/acquisition/{id}" (HTTP-PUT) If an existing Acquisition entity has to be deleted, the following relative URL should be called: "/BatteryPackService/acquisition/{id}" (HTTP-DELETE) 2. The BatteryCellFormatView must contain the following fields: - name: Description type: STRING - name: DiameterMm type: DOUBLE - name: FormatName type: STRING - name: LengthMm type: DOUBLE An existing BatteryCellFormat entity should be loaded from the relative URL: "/BatteryPackService/batterycellformat/{id}" (HTTP-GET) If a new BatteryCellFormat entity has been created, the new entity should be posted to the relative URL: "/BatteryPackService/batterycellformat" (HTTP-POST) If an existing BatteryCellFormat entity has been updated, the modified entity should be sent to the relative URL: "/BatteryPackService/batterycellformat/{id}" (HTTP-PUT) If an existing BatteryCellFormat entity has to be deleted, the following relative URL should be called: "/BatteryPackService/batterycellformat/{id}" (HTTP-DELETE) Add a HTML table to the view with the following BatteryPack columns: - column: NominalVoltageV - column: PackName - column: CoolingType - column: Description - column: BatteryCellFormat - column: CapacityKwh - column: CellCount The table should have the title "BatteryPacks" und the data must be loaded from the server with the following relative URL: "/BatteryPackService/batterypack/batterycellformat/{id}" 3. The BatteryPackView must contain the following fields: - name: BatteryCellFormat type: BatteryCellFormat - name: CapacityKwh type: DOUBLE - name: CellCount type: INT - name: CoolingType type: STRING - name: Description type: STRING - name: NominalVoltageV type: DOUBLE - name: PackName type: STRING The data source for the [BatteryCellFormat] select control should be loaded from the relative URL: "/BatteryPackService/batterycellformat" (HTTP-GET) An existing BatteryPack entity should be loaded from the relative URL: "/BatteryPackService/batterypack/{id}" (HTTP-GET) If a new BatteryPack entity has been created, the new entity should be posted to the relative URL: "/BatteryPackService/batterypack" (HTTP-POST) If an existing BatteryPack entity has been updated, the modified entity should be sent to the relative URL: "/BatteryPackService/batterypack/{id}" (HTTP-PUT) If an existing BatteryPack entity has to be deleted, the following relative URL should be called: "/BatteryPackService/batterypack/{id}" (HTTP-DELETE) Add a HTML table to the view with the following VehicleBatteryOption columns: - column: VehicleModel - column: EndYear - column: StartYear - column: IsPerformanceVariant - column: RangeKm - column: OptionName - column: BatteryPack The table should have the title "VehicleBatteryOptions" und the data must be loaded from the server with the following relative URL: "/VehicleModelService/vehiclebatteryoption/batterypack/{id}" 4. The QuoteView must contain the following fields: - name: ContextDescription type: STRING - name: Person type: Person - name: QuoteDate type: DATE - name: QuoteText type: STRING The data source for the [Person] select control should be loaded from the relative URL: "/CompanyService/person" (HTTP-GET) An existing Quote entity should be loaded from the relative URL: "/BatteryPackService/quote/{id}" (HTTP-GET) If a new Quote entity has been created, the new entity should be posted to the relative URL: "/BatteryPackService/quote" (HTTP-POST) If an existing Quote entity has been updated, the modified entity should be sent to the relative URL: "/BatteryPackService/quote/{id}" (HTTP-PUT) If an existing Quote entity has to be deleted, the following relative URL should be called: "/BatteryPackService/quote/{id}" (HTTP-DELETE)
Copy prompt
Overview
Summary
Contact
Donate
Imprint