TANKER SCHEDULE
🗓️ Technical Specification: Tanker Schedule
📋 Feature Overview
🛠️ Technical Implementation
A. Permissions & Access Control
Note: Access is controlled via
PermissionGuard and component-level checks.| Scope | Permission Code | Description & Page Usage |
|---|---|---|
| Menu Visibility | TANKER_BLOCK_DAY.MENU |
Sidebar menu visibility.
|
| Page Routing | TANKER_BLOCK_DAY.LISTING |
Access to listing route.\listing-tanker-garage-schedule |
| Page Routing | TANKER_BLOCK_DAY.VIEW |
Access to add/edit route.
|
| Create Action | TANKER_BLOCK_DAY.UPDATE |
Controls the + Add button on listing.\listing-tanker-garage-schedule |
| View Access | TANKER_BLOCK_DAY.VIEW |
Controls visibility of Edit icon.\listing-tanker-garage-schedule |
| Delete Action | TANKER_BLOCK_DAY.DELETE |
Visibility of the Delete 🗑️ icon.\listing-tanker-garage-schedule |
| Print Action | TANKER_BLOCK_DAY.REPORT.LISTING.VIEW |
Visibility of the Print 🖨️ icon.\listing-tanker-garage-schedule |
| Edit/Save Action | TANKER_BLOCK_DAY.UPDATE |
Ability to save changes on Add/Edit screen.\add-edit-tanker-garage-schedule |
B. API Interaction
Base URL:
${environment.baseApiUrl}1. Listing Tanker Schedule
\listing-tanker-garage-schedule/settings/getQuery
POSTFilter:
type='Block Type'/settings/getQuery
POSTFilter:
type='Status'/tankerBlockDays/getQuery
POSTFilter:
tanker.tankerNumber, blockType, status, blockEndDate (Date Range)/tankerBlockDay/delete
POSTPurpose: Delete Record
2. Add/Edit Tanker Schedule
\add-edit-tanker-garage-schedule/tankers/getQuery
POSTFilter:
isDeleted=0 (Active Tankers)/settings/getQuery
POSTFilter:
type='Block Type'/settings/getQuery
POSTFilter:
type='Status'/tankerBlockDays/getQuery
POSTFilter:
id (Fetch specific record)/tankerBlockDay/create
POSTPurpose: Create new record
/tankerBlockDay/update
POSTPurpose: Update existing record