Overview
Summary
Contact
Donate
Imprint
Prompt for the
PolicyApp
Please create a React-JS application for the PolicyModule. The application has to offer the following views for the user interface: 1. FinancialMetricYearView 2. PolicyView 3. PolicyChangeView 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 FinancialMetricYearView must contain the following fields: - name: Company type: Company - name: EmployeesCount type: LONG - name: FiscalYear type: LONG - name: NetIncomeUsdBillions type: STRING - name: OperatingIncomeUsdBillions type: STRING - name: RevenueUsdBillions type: STRING - name: TotalAssetsUsdBillions type: STRING - name: TotalEquityUsdBillions type: STRING The data source for the [Company] select control should be loaded from the relative URL: "/CompanyService/company" (HTTP-GET) An existing FinancialMetricYear entity should be loaded from the relative URL: "/PolicyService/financialmetricyear/{id}" (HTTP-GET) If a new FinancialMetricYear entity has been created, the new entity should be posted to the relative URL: "/PolicyService/financialmetricyear" (HTTP-POST) If an existing FinancialMetricYear entity has been updated, the modified entity should be sent to the relative URL: "/PolicyService/financialmetricyear/{id}" (HTTP-PUT) If an existing FinancialMetricYear entity has to be deleted, the following relative URL should be called: "/PolicyService/financialmetricyear/{id}" (HTTP-DELETE) 2. The PolicyView must contain the following fields: - name: Company type: Company - name: Description type: STRING - name: EffectiveDate type: DATE - name: Name type: STRING - name: RetiredDate type: DATE The data source for the [Company] select control should be loaded from the relative URL: "/CompanyService/company" (HTTP-GET) An existing Policy entity should be loaded from the relative URL: "/PolicyService/policy/{id}" (HTTP-GET) If a new Policy entity has been created, the new entity should be posted to the relative URL: "/PolicyService/policy" (HTTP-POST) If an existing Policy entity has been updated, the modified entity should be sent to the relative URL: "/PolicyService/policy/{id}" (HTTP-PUT) If an existing Policy entity has to be deleted, the following relative URL should be called: "/PolicyService/policy/{id}" (HTTP-DELETE) Add a HTML table to the view with the following PolicyChange columns: - column: Policy - column: Details - column: ChangeDate - column: ChangeSummary The table should have the title "PolicyChanges" und the data must be loaded from the server with the following relative URL: "/PolicyService/policychange/policy/{id}" 3. The PolicyChangeView must contain the following fields: - name: ChangeDate type: DATE - name: ChangeSummary type: STRING - name: Details type: STRING - name: Policy type: Policy The data source for the [Policy] select control should be loaded from the relative URL: "/PolicyService/policy" (HTTP-GET) An existing PolicyChange entity should be loaded from the relative URL: "/PolicyService/policychange/{id}" (HTTP-GET) If a new PolicyChange entity has been created, the new entity should be posted to the relative URL: "/PolicyService/policychange" (HTTP-POST) If an existing PolicyChange entity has been updated, the modified entity should be sent to the relative URL: "/PolicyService/policychange/{id}" (HTTP-PUT) If an existing PolicyChange entity has to be deleted, the following relative URL should be called: "/PolicyService/policychange/{id}" (HTTP-DELETE)
Copy prompt
Overview
Summary
Contact
Donate
Imprint