Overview
Summary
Contact
Donate
Imprint
Prompt for the
PersonApp
Please create a React-JS application for the PersonModule. The application has to offer the following views for the user interface: 1. CompanyRoleView 2. FinancialStatementView 3. PersonView 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 CompanyRoleView must contain the following fields: - name: Company type: Company - name: EndDate type: DATE - name: Person type: Person - name: RoleType type: STRING - name: StartDate type: DATE - name: Title 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 [Person] select control should be loaded from the relative URL: "/PersonService/person" (HTTP-GET) An existing CompanyRole entity should be loaded from the relative URL: "/PersonService/companyrole/{id}" (HTTP-GET) If a new CompanyRole entity has been created, the new entity should be posted to the relative URL: "/PersonService/companyrole" (HTTP-POST) If an existing CompanyRole entity has been updated, the modified entity should be sent to the relative URL: "/PersonService/companyrole/{id}" (HTTP-PUT) If an existing CompanyRole entity has to be deleted, the following relative URL should be called: "/PersonService/companyrole/{id}" (HTTP-DELETE) 2. The FinancialStatementView must contain the following fields: - name: Company type: Company - name: Employees type: INT - name: FiscalYear type: INT - name: NetIncome type: DOUBLE - name: OperatingIncome type: DOUBLE - name: Revenue type: DOUBLE - name: TotalAssets type: DOUBLE - name: TotalEquity type: DOUBLE The data source for the [Company] select control should be loaded from the relative URL: "/CompanyService/company" (HTTP-GET) An existing FinancialStatement entity should be loaded from the relative URL: "/PersonService/financialstatement/{id}" (HTTP-GET) If a new FinancialStatement entity has been created, the new entity should be posted to the relative URL: "/PersonService/financialstatement" (HTTP-POST) If an existing FinancialStatement entity has been updated, the modified entity should be sent to the relative URL: "/PersonService/financialstatement/{id}" (HTTP-PUT) If an existing FinancialStatement entity has to be deleted, the following relative URL should be called: "/PersonService/financialstatement/{id}" (HTTP-DELETE) 3. The PersonView must contain the following fields: - name: Biography type: STRING - name: BirthDate type: DATE - name: FullName type: STRING - name: Nationality type: STRING An existing Person entity should be loaded from the relative URL: "/PersonService/person/{id}" (HTTP-GET) If a new Person entity has been created, the new entity should be posted to the relative URL: "/PersonService/person" (HTTP-POST) If an existing Person entity has been updated, the modified entity should be sent to the relative URL: "/PersonService/person/{id}" (HTTP-PUT) If an existing Person entity has to be deleted, the following relative URL should be called: "/PersonService/person/{id}" (HTTP-DELETE) Add a HTML table to the view with the following CompanyRole columns: - column: RoleType - column: Title - column: StartDate - column: Company - column: EndDate - column: Person The table should have the title "CompanyRoles" und the data must be loaded from the server with the following relative URL: "/PersonService/companyrole/person/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint