Overview
Summary
Contact
Donate
Imprint
Prompt for the
AccidentApp
Please create a React-JS application for the AccidentModule. The application has to offer the following views for the user interface: 1. AccidentView 2. AccidentInvestigationView 3. RegulatoryPermitView 4. SimulationEnvironmentView 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 AccidentView must contain the following fields: - name: AccidentDate type: DATE - name: Company type: Company - name: Description type: STRING - name: FatalityCount type: INT - name: InjuryCount type: INT - name: Program type: Program - name: PropertyDamageFlag type: BOOL - name: ServiceArea type: ServiceArea - name: Severity type: STRING - name: SourceAgency type: STRING The data source for the [Company] select control should be loaded from the relative URL: "/CompanyService/company" (HTTP-GET) The data source for the [ServiceArea] select control should be loaded from the relative URL: "/CountryService/servicearea" (HTTP-GET) The data source for the [Program] select control should be loaded from the relative URL: "/ProgramService/program" (HTTP-GET) An existing Accident entity should be loaded from the relative URL: "/AccidentService/accident/{id}" (HTTP-GET) If a new Accident entity has been created, the new entity should be posted to the relative URL: "/AccidentService/accident" (HTTP-POST) If an existing Accident entity has been updated, the modified entity should be sent to the relative URL: "/AccidentService/accident/{id}" (HTTP-PUT) If an existing Accident entity has to be deleted, the following relative URL should be called: "/AccidentService/accident/{id}" (HTTP-DELETE) Add a HTML table to the view with the following AccidentInvestigation columns: - column: Accident - column: Investigation The table should have the title "AccidentInvestigations" und the data must be loaded from the server with the following relative URL: "/AccidentService/accidentinvestigation/accident/{id}" 2. The AccidentInvestigationView must contain the following fields: - name: Accident type: Accident - name: Investigation type: Investigation The data source for the [Accident] select control should be loaded from the relative URL: "/AccidentService/accident" (HTTP-GET) The data source for the [Investigation] select control should be loaded from the relative URL: "/CompanyService/investigation" (HTTP-GET) An existing AccidentInvestigation entity should be loaded from the relative URL: "/AccidentService/accidentinvestigation/{id}" (HTTP-GET) If a new AccidentInvestigation entity has been created, the new entity should be posted to the relative URL: "/AccidentService/accidentinvestigation" (HTTP-POST) If an existing AccidentInvestigation entity has been updated, the modified entity should be sent to the relative URL: "/AccidentService/accidentinvestigation/{id}" (HTTP-PUT) If an existing AccidentInvestigation entity has to be deleted, the following relative URL should be called: "/AccidentService/accidentinvestigation/{id}" (HTTP-DELETE) 3. The RegulatoryPermitView must contain the following fields: - name: Company type: Company - name: ExpiryDate type: DATE - name: IssueDate type: DATE - name: IssuingAuthority type: STRING - name: Jurisdiction type: STRING - name: Notes type: STRING - name: PermitType type: STRING - name: ScopeDescription type: STRING - name: ServiceArea type: INT The data source for the [Company] select control should be loaded from the relative URL: "/CompanyService/company" (HTTP-GET) An existing RegulatoryPermit entity should be loaded from the relative URL: "/AccidentService/regulatorypermit/{id}" (HTTP-GET) If a new RegulatoryPermit entity has been created, the new entity should be posted to the relative URL: "/AccidentService/regulatorypermit" (HTTP-POST) If an existing RegulatoryPermit entity has been updated, the modified entity should be sent to the relative URL: "/AccidentService/regulatorypermit/{id}" (HTTP-PUT) If an existing RegulatoryPermit entity has to be deleted, the following relative URL should be called: "/AccidentService/regulatorypermit/{id}" (HTTP-DELETE) 4. The SimulationEnvironmentView must contain the following fields: - name: CityModel type: STRING - name: Company type: Company - name: Description type: STRING - name: Name type: STRING - name: Notes type: STRING The data source for the [Company] select control should be loaded from the relative URL: "/CompanyService/company" (HTTP-GET) An existing SimulationEnvironment entity should be loaded from the relative URL: "/AccidentService/simulationenvironment/{id}" (HTTP-GET) If a new SimulationEnvironment entity has been created, the new entity should be posted to the relative URL: "/AccidentService/simulationenvironment" (HTTP-POST) If an existing SimulationEnvironment entity has been updated, the modified entity should be sent to the relative URL: "/AccidentService/simulationenvironment/{id}" (HTTP-PUT) If an existing SimulationEnvironment entity has to be deleted, the following relative URL should be called: "/AccidentService/simulationenvironment/{id}" (HTTP-DELETE)
Copy prompt
Overview
Summary
Contact
Donate
Imprint