Class TPanelRow
Unit
Declaration
type TPanelRow = class(TPanel)
Description
A panel comprising components for displaying and entering data relating to a commercial route. By default, the panel has the Visible field set to False.
Hierarchy
- TPanel
- TPanelRow
Overview
Fields
![]() |
SpinEditGroupID: TSpinEdit; |
![]() |
ComboBoxLoadingStation: TComboBox; |
![]() |
ComboBoxUnloadingStation: TComboBox; |
![]() |
ComboBoxCommodities: TComboBox; |
![]() |
SpinEditSCU: TSpinEdit; |
![]() |
ComboBoxSCUMaxSize: TComboBox; |
![]() |
CheckBoxDone: TCheckBox; |
![]() |
CheckBoxShowHideRow: TCheckBox; |
![]() |
Edit32: TEdit; |
![]() |
Edit24: TEdit; |
![]() |
Edit16: TEdit; |
![]() |
Edit08: TEdit; |
![]() |
Edit04: TEdit; |
![]() |
Edit02: TEdit; |
![]() |
Edit01: TEdit; |
Methods
![]() |
procedure SpinEditGroupIDChange(Sender: TObject); |
![]() |
procedure ComboBoxLoadingStationChange(Sender: TObject); |
![]() |
procedure ComboBoxLoadingStationKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState); |
![]() |
procedure ComboBoxLoadingStationExit(Sender: TObject); |
![]() |
procedure ComboBoxUnloadingStationChange(Sender: TObject); |
![]() |
procedure ComboBoxUnloadingStationKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState); |
![]() |
procedure ComboBoxUnloadingStationExit(Sender: TObject); |
![]() |
procedure ComboBoxCommoditiesChange(Sender: TObject); |
![]() |
procedure ComboBoxCommoditiesKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState); |
![]() |
procedure ComboBoxCommoditiesExit(Sender: TObject); |
![]() |
procedure SpinEditSCUChange(Sender: TObject); |
![]() |
procedure ComboBoxSCUMaxSizeChange(Sender: TObject); |
![]() |
procedure CheckBoxDoneChange(Sender: TObject); |
![]() |
procedure CheckBoxShowHideRowChange(Sender: TObject); |
![]() |
procedure PanelLegNotify(const Sender: TObject; const PanelID: Integer; const AItem: TTradeRouteLegItem; const ATradeRouteLeg: TTradeRouteLeg); |
![]() |
procedure PanelContractNotify(const Sender: TObject; const GroupID: Integer; const AContract: TContract); |
![]() |
procedure RegisterPanel(AContractDB: TContractDB); |
![]() |
procedure UnregisterPanel; |
![]() |
procedure ReloadDataListAndSetComboBox(AStringListRecord: TItemsStringListRecord); |
![]() |
procedure TradeRouteLegReload(ATradeRouteLeg: TTradeRouteLeg); |
![]() |
procedure Clear; |
![]() |
procedure ChangeAnchorComponent(AAnchorComponent: TControl); |
![]() |
procedure SetValue(const AItem: TTradeRouteLegItem; const ATradeRouteLeg: TTradeRouteLeg); |
![]() |
function HasNoData: Boolean; |
![]() |
constructor Create(AOwner: TComponent; ACallback: TTradeRouteLegChanged; AAnchorComponent: TControl; AStringListRecord: TItemsStringListRecord; AConsoleServer: TConsoleReaderThread); reintroduce; |
![]() |
destructor Destroy; override; |
Properties
![]() |
property GroupId: Integer read GetGroupId; |
![]() |
property LoadingStationName: String read GetLoadingStationName; |
![]() |
property UnloadingStationName: String read GetUnloadingStationName; |
![]() |
property Commodity: String read GetCommodity; |
![]() |
property SCU: Integer read GetSCU; |
![]() |
property SCUMaxSize: TSCUSize read GetSCUMaxSize; |
![]() |
property Done: Boolean read GetDone; |
![]() |
property Hide: Boolean read GetHide; |
![]() |
property SCUxSize: TSCUxSizeRecord read GetSCUxSize; |
![]() |
property TradeRouteLeg: TTradeRouteLeg read GetTradeRouteLeg; |
![]() |
property ID: Integer read FID; |
![]() |
property ContractDB: TContractDB read FContractDB; |
Description
Fields
![]() |
SpinEditGroupID: TSpinEdit; |
|
Generic grouping identifier. | |
![]() |
ComboBoxLoadingStation: TComboBox; |
|
Crate loading station name. | |
![]() |
ComboBoxUnloadingStation: TComboBox; |
|
Crate unloading station name. | |
![]() |
ComboBoxCommodities: TComboBox; |
|
Name of the goods. | |
![]() |
SpinEditSCU: TSpinEdit; |
|
Total number of SCUs to be delivered. | |
![]() |
ComboBoxSCUMaxSize: TComboBox; |
|
Maximum container size. | |
![]() |
CheckBoxDone: TCheckBox; |
|
Route completion flag. | |
![]() |
CheckBoxShowHideRow: TCheckBox; |
|
Route visibility flag. | |
![]() |
Edit32: TEdit; |
|
Number of 32-size crates. | |
![]() |
Edit24: TEdit; |
|
Number of 24-size crates. | |
![]() |
Edit16: TEdit; |
|
Number of 16-size crates. | |
![]() |
Edit08: TEdit; |
|
Number of 08-size crates. | |
![]() |
Edit04: TEdit; |
|
Number of 04-size crates. | |
![]() |
Edit02: TEdit; |
|
Number of 02-size crates. | |
![]() |
Edit01: TEdit; |
|
Number of 01-size crates. | |
Methods
![]() |
procedure SpinEditGroupIDChange(Sender: TObject); |
|
Callback of the | |
![]() |
procedure ComboBoxLoadingStationChange(Sender: TObject); |
|
Callback of the | |
![]() |
procedure ComboBoxLoadingStationKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState); |
|
Callback of the | |
![]() |
procedure ComboBoxLoadingStationExit(Sender: TObject); |
|
Callback of the | |
![]() |
procedure ComboBoxUnloadingStationChange(Sender: TObject); |
|
Callback of the | |
![]() |
procedure ComboBoxUnloadingStationKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState); |
|
Callback of the | |
![]() |
procedure ComboBoxUnloadingStationExit(Sender: TObject); |
|
Callback of the | |
![]() |
procedure ComboBoxCommoditiesChange(Sender: TObject); |
|
Callback of the | |
![]() |
procedure ComboBoxCommoditiesKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState); |
|
Callback of the | |
![]() |
procedure ComboBoxCommoditiesExit(Sender: TObject); |
|
Callback of the | |
![]() |
procedure SpinEditSCUChange(Sender: TObject); |
|
Callback of the | |
![]() |
procedure ComboBoxSCUMaxSizeChange(Sender: TObject); |
|
Callback of the | |
![]() |
procedure CheckBoxDoneChange(Sender: TObject); |
|
Callback of the | |
![]() |
procedure CheckBoxShowHideRowChange(Sender: TObject); |
|
Callback of the | |
![]() |
procedure PanelLegNotify(const Sender: TObject; const PanelID: Integer; const AItem: TTradeRouteLegItem; const ATradeRouteLeg: TTradeRouteLeg); |
|
Notification when a single panel/leg changes. Sender = TContractDB. Parameters
| |
![]() |
procedure PanelContractNotify(const Sender: TObject; const GroupID: Integer; const AContract: TContract); |
|
Notification when a contract changes. Sender = TContractDB. Parameters
| |
![]() |
procedure RegisterPanel(AContractDB: TContractDB); |
|
Register this panel in | |
![]() |
procedure UnregisterPanel; |
|
Unregister this panel from | |
![]() |
procedure ReloadDataListAndSetComboBox(AStringListRecord: TItemsStringListRecord); |
|
Reset | |
![]() |
procedure TradeRouteLegReload(ATradeRouteLeg: TTradeRouteLeg); |
|
Reassign the contents of visual components. | |
![]() |
procedure Clear; |
|
Delete the contents of the visual components. | |
![]() |
procedure ChangeAnchorComponent(AAnchorComponent: TControl); |
|
Change the anchor component. | |
![]() |
procedure SetValue(const AItem: TTradeRouteLegItem; const ATradeRouteLeg: TTradeRouteLeg); |
|
Set the contents of the visual components and notify the ContractDB. | |
![]() |
function HasNoData: Boolean; |
|
Check if the contents of the visual components are empty. | |
![]() |
constructor Create(AOwner: TComponent; ACallback: TTradeRouteLegChanged; AAnchorComponent: TControl; AStringListRecord: TItemsStringListRecord; AConsoleServer: TConsoleReaderThread); reintroduce; |
|
Create an instance of TPanelRow
Parameters
| |
![]() |
destructor Destroy; override; |
|
Destroy the instance. | |
Properties
![]() |
property GroupId: Integer read GetGroupId; |
|
Generic record grouping identifier. Panels with the same GroupId belong to the same contract leg. | |
![]() |
property LoadingStationName: String read GetLoadingStationName; |
|
Crate loading station name. | |
![]() |
property UnloadingStationName: String read GetUnloadingStationName; |
|
Crate unloading station name. | |
![]() |
property Commodity: String read GetCommodity; |
|
Name of the goods. | |
![]() |
property SCU: Integer read GetSCU; |
|
Total number of SCUs to be delivered. | |
![]() |
property SCUMaxSize: TSCUSize read GetSCUMaxSize; |
|
Maximum container size. | |
![]() |
property Done: Boolean read GetDone; |
|
Route completion flag. | |
![]() |
property Hide: Boolean read GetHide; |
|
Route visibility flag. | |
![]() |
property SCUxSize: TSCUxSizeRecord read GetSCUxSize; |
|
Record to keep track of the number of boxes for each SCU size. | |
![]() |
property TradeRouteLeg: TTradeRouteLeg read GetTradeRouteLeg; |
|
Leg of Trade Route | |
![]() |
property ID: Integer read FID; |
|
Unique identifier. | |
![]() |
property ContractDB: TContractDB read FContractDB; |
|
Pointer to the Contract Database. | |
