Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
ProductApp
Please create a React-JS application for the ProductModule. The application has to offer the following views for the user interface: 1. BudgetPositionView 2. BudgetPositionItemView 3. ProductView 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 BudgetPositionView must contain the following fields: - name: PositionAgent type: Teacher - name: Budget type: Budget - name: PositionID type: STRING - name: ShortName type: STRING - name: Target type: DOUBLE The data source for the [PositionAgent] select control should be loaded from the relative URL: "/StudentService/teacher" (HTTP-GET) The data source for the [Budget] select control should be loaded from the relative URL: "/TimePeriodService/budget" (HTTP-GET) An existing BudgetPosition entity should be loaded from the relative URL: "/ProductService/budgetposition/{id}" (HTTP-GET) If a new BudgetPosition entity has been created, the new entity should be posted to the relative URL: "/ProductService/budgetposition" (HTTP-POST) If an existing BudgetPosition entity has been updated, the modified entity should be sent to the relative URL: "/ProductService/budgetposition/{id}" (HTTP-PUT) If an existing BudgetPosition entity has to be deleted, the following relative URL should be called: "/ProductService/budgetposition/{id}" (HTTP-DELETE) Add a HTML table to the view with the following BudgetPositionItem columns: - column: Sum - column: BudgetPosition - column: Product - column: Amount The table should have the title "BudgetPositionItems" und the data must be loaded from the server with the following relative URL: "/ProductService/budgetpositionitem/budgetposition/{id}" 2. The BudgetPositionItemView must contain the following fields: - name: BudgetPosition type: BudgetPosition - name: Amount type: DOUBLE - name: Product type: Product - name: Sum type: DOUBLE The data source for the [Product] select control should be loaded from the relative URL: "/ProductService/product" (HTTP-GET) The data source for the [BudgetPosition] select control should be loaded from the relative URL: "/ProductService/budgetposition" (HTTP-GET) An existing BudgetPositionItem entity should be loaded from the relative URL: "/ProductService/budgetpositionitem/{id}" (HTTP-GET) If a new BudgetPositionItem entity has been created, the new entity should be posted to the relative URL: "/ProductService/budgetpositionitem" (HTTP-POST) If an existing BudgetPositionItem entity has been updated, the modified entity should be sent to the relative URL: "/ProductService/budgetpositionitem/{id}" (HTTP-PUT) If an existing BudgetPositionItem entity has to be deleted, the following relative URL should be called: "/ProductService/budgetpositionitem/{id}" (HTTP-DELETE) 3. The ProductView must contain the following fields: - name: Article type: STRING - name: Description type: STRING An existing Product entity should be loaded from the relative URL: "/ProductService/product/{id}" (HTTP-GET) If a new Product entity has been created, the new entity should be posted to the relative URL: "/ProductService/product" (HTTP-POST) If an existing Product entity has been updated, the modified entity should be sent to the relative URL: "/ProductService/product/{id}" (HTTP-PUT) If an existing Product entity has to be deleted, the following relative URL should be called: "/ProductService/product/{id}" (HTTP-DELETE) Add a HTML table to the view with the following BudgetPositionItem columns: - column: Sum - column: BudgetPosition - column: Product - column: Amount The table should have the title "BudgetPositionItems" und the data must be loaded from the server with the following relative URL: "/ProductService/budgetpositionitem/product/{id}"
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum