User Guide: Bulk Event Update
1. Purpose
This guide explains how to use the Bulk Event Update screen (bulk-event-update.component.html) to apply the same container event (like "ONHIRE", "OFFHIRE", "SHIPPER PICKUP EMPTY") to multiple containers simultaneously. This involves defining the event details and then selecting the containers using a popup (bulk-pickcontainers-popup.component.html).
2. Accessing the Feature
Navigate to the Bulk Event Update page through the application's menu system (likely under a "Box Control" or similar section).
3. Screen Overview: Bulk Event Update (bulk-event-update.component.html)
The main screen is divided into several sections:
Toolbar
Located at the top right, it contains standard action buttons:
- Home (
home
): Navigates back to the main dashboard. - New (
add
): Clears the current form and table to start a new bulk update process. - Save (
save
): Saves the event details for the selected containers in the table below. Becomes disabled during the save process (isSaving==1
). - (Other icons like Delete
delete_outline
, PDFpicture_as_pdf
, Spreadsheetsave_alt
, Clear Allclear_all
are currently disabled).
Page Header
Displays the page title ("Bulk Event Update") and an Info icon (info
) to view help information if available.
Event Details Form
This section requires you to define the event that will be applied to the containers.
- Event Date*: (Required) Select the date when the event occurred using the date picker.
- Event Code*: (Required) Select the type of event from the dropdown list (e.g., "SHIPPER PICKUP EMPTY", "POL PICKUP EMPTY", "ONHIRE", "OFFHIRE").
- (Conditional Fields - Appear for ONHIRE/OFFHIRE when
canShow==1
):- Agent: Select the relevant agent from the dropdown list (searches as you type).
- Location*: (Required for ONHIRE/OFFHIRE) Enter or select the port code where the event occurred (autocomplete suggestions appear).
- Release / Return Ref.*: (Required for ONHIRE/OFFHIRE) Enter the associated release or return reference number.
- Release / Return Depot*: (Required for ONHIRE/OFFHIRE) Enter or select the depot code associated with the event (autocomplete suggestions appear).
Action Buttons
- Pick Containers (
playlist_add_check
icon): Opens a popup window (viewPickContainerList1()
function) to input and select the containers for this bulk update. - View ExlCopy Uploaded Data (
visibility
icon): Navigates to a separate screen (viewExcelCopyData()
function) to view data potentially uploaded via a different Excel copy/paste mechanism.
Container List Table
This table displays the containers selected for the bulk update.
- Select Checkbox: Allows selecting/deselecting individual containers or all containers using the header checkbox (
select_all
). Only selected containers will be processed when you click Save. - Columns: Shows details for each container: Event Code, Event Date, Container No., Order No., Location, Reference, Depot.
- Container No.: This is a clickable link (
viewContainerHistoryList()
function). Clicking it will open a popup showing the historical movements for that specific container. After saving, status icons appear next to the container number:check
(Green): Indicates the event was successfully saved for this container (element.status==1
).error
(Red): Indicates an error occurred while saving the event for this container (element.status==0
). Hover over the icon for the error message (element.msg
).
4. Step-by-Step Workflow
- Define the Event Details
- Go to the Event Details Form.
- Select the Event Date*.
- Select the Event Code* from the dropdown.
- If the selected
Event Code
is "ONHIRE" or "OFFHIRE":- Fill in the Agent (optional, but recommended).
- Fill in the Location* (required).
- Fill in the Release / Return Ref.* (required).
- Fill in the Release / Return Depot* (required).
- Ensure all required fields (*) are filled correctly.
- Pick Containers
- Click the Pick Containers button (
playlist_add_check
icon). This calls theviewPickContainerList1()
function. - The "Pick Containers" popup will open, but only if the required fields in the main form (Step 1) are valid (
this.eveupd.valid
check). - Note: If the event has already been saved (
isEdit==1
), you cannot pick new containers and must click New first.
- Click the Pick Containers button (
- Use the Pick Containers Popup (bulk-pickcontainers-popup.component.html)
This popup allows you to input a list of containers.
- Input Data: In the large text area on the left labeled Input Data, paste your list of container numbers. You can often include other details like Order Number on the same line, separated by a space or tab.
- Extract Data: Click the Extract Inputted Data button (
get_app
icon, callsextractData()
). The system processes the text and displays recognized containers in the table on the right. - Review Extracted Data: Check the table on the right (columns: Container No, Order No, No. of Pkgs, Pkg Type) to ensure containers were extracted correctly.
- (Optional) Refresh Data: Click the Refresh Data button (
refresh
icon, callsrefreshData()
) to clear the input and the extracted list. - (Optional) Excel Download: Click the Excel Download Inputted Data... button (
save_alt
icon, callsexcelDownloadData()
) to download the list. - Upload Data: Once satisfied, click the Upload Extracted Data button (
playlist_add_check
icon, callsuploadData()
). This closes the popup and transfers the container list to the main screen's table.
- Review and Select Containers on Main Screen
- Back on the main Bulk Event Update screen, the Container List Table (
dataSource
) is populated. - The event details from Step 1 are automatically associated with each container row.
- Review the list. Use the checkboxes in the first column (
element.selected
) to select/deselect containers. - Use the header checkbox (
select_all
) to Select All or Deselect All.
- Back on the main Bulk Event Update screen, the Container List Table (
- Save the Bulk Event Update
- Ensure correct containers are selected.
- Click the Save button (
save
icon, callssave1()
which checksisEdit
before callingsave()
). - The system attempts to save the event for each selected container. The Save button is disabled (
isSaving=1
), and a "Saving..." message appears. - After processing, observe the status icons (
check
orerror
) in the Container List Table. - A summary message (toast notification) indicates success/failure counts.
- The screen state is updated (
isEdit=1
) to prevent re-saving the same batch without clicking New.
- Start a New Bulk Update (If Needed)
- Click the New button (
add
icon) in the toolbar. This reloads the component/clears the form and table.
- Click the New button (
5. Additional Actions
- View Container History: Click any underlined Container No. in the table to open the ContainerHistoryPopupComponent.
- Go Home: Click the Home icon (
home
) to return to the application dashboard.