Overview
Summary
Contact
Donate
Imprint
Prompt for the
PortView
Please create a React-JS view called "PortView" for the fields of the Port entity. The PortView must contain the following fields: - name: Country type: Country - name: Latitude type: STRING - name: Longitude type: STRING - name: Name type: STRING - name: PortType type: STRING - name: TimeZone type: STRING - name: Unlocode type: STRING The data source for the [Country] select control should be loaded from the relative URL: "/UserAccountService/country" (HTTP-GET) An existing Port entity should be loaded from the relative URL: "/PortService/port/{id}" (HTTP-GET) If a new Port entity has been created, the new entity should be posted to the relative URL: "/PortService/port" (HTTP-POST) If an existing Port entity has been updated, the modified entity should be sent to the relative URL: "/PortService/port/{id}" (HTTP-PUT) If an existing Port entity has to be deleted, the following relative URL should be called: "/PortService/port/{id}" (HTTP-DELETE) Add a HTML table to the view with the following PortCall columns: - column: DepartureActualUtc - column: BerthName - column: Vessel - column: DepartureEstimatedUtc - column: ArrivalEstimatedUtc - column: ArrivalActualUtc - column: Route - column: DraftDeparture - column: DraftArrival - column: Port - column: Reason The table should have the title "PortCalls" und the data must be loaded from the server with the following relative URL: "/SubscriptionPlanService/portcall/port/{id}" Add a HTML table to the view with the following AlertRule columns: - column: AlertType - column: UserAccount - column: ThresholdSpeed - column: Name - column: CreatedUtc - column: GeographicalArea - column: Vessel - column: Description - column: Port - column: IsActive The table should have the title "AlertRules" und the data must be loaded from the server with the following relative URL: "/PortService/alertrule/port/{id}" Add a HTML table to the view with the following AlertEvent columns: - column: Vessel - column: GeographicalArea - column: PositionReport - column: AlertRule - column: EventDescription - column: TriggeredUtc - column: Port The table should have the title "AlertEvents" und the data must be loaded from the server with the following relative URL: "/PortService/alertevent/port/{id}" Add a HTML table to the view with the following Route columns: - column: Status - column: DistanceNm - column: ActualArrivalUtc - column: Name - column: PlannedDepartureUtc - column: PlannedArrivalUtc - column: Vessel - column: EndPort - column: StartPort - column: ActualDepartureUtc The table should have the title "Routes" und the data must be loaded from the server with the following relative URL: "/PortService/route/endport/{id}" Add a HTML table to the view with the following Route columns: - column: Status - column: DistanceNm - column: ActualArrivalUtc - column: Name - column: PlannedDepartureUtc - column: PlannedArrivalUtc - column: Vessel - column: EndPort - column: StartPort - column: ActualDepartureUtc The table should have the title "Routes" und the data must be loaded from the server with the following relative URL: "/PortService/route/startport/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint