|
FUNCTION ClassChangeGrid(gridCtl) |
Overrides base class to reformat start date/end date in the closures grid when an invalid value is entered in the grid.
|
| Parameter | Description |
| gridCtl |
[input, numeric] Grid control ID |
|
| Returns |
[boolean] retSUCCESS (1) or retFAILURE (0) |
|
|
FUNCTION ClassOnFocusGrid(gridCtl) |
Calls the appropriate base class methods for the 2 grids.
|
| Parameter | Description |
| gridCtl |
[input, numeric] Grid control ID |
|
| Returns |
[boolean] retSUCCESS (1) or retFAILURE (0) |
|
|
FUNCTION ShowRow(gridCtl, row) |
Reformats date fields when closure grid row is redisplayed.
|
| Parameter | Description |
| gridCtl |
[input, numeric] Grid control ID |
| row |
[input, numeric] Row number |
|
| Returns |
[boolean] retSUCCESS (1) |
|
|
FUNCTION LOCAL BT_Apply() |
Launches 'Apply' dialog.
|
| Returns |
[boolean] retSUCCESS (1) or retFAILURE (0) |
|
|
FUNCTION LOCAL BT_Cancel() |
dMain: Cancels changes and clears screen.
dCopy: Cancels copy and closes dialog.
|
| Returns |
[boolean] retSUCCESS (1) or retFAILURE (0) |
|
|
FUNCTION LOCAL BT_CopyFrom() |
Launches 'Copy From' dialog.
|
| Returns |
[boolean] retSUCCESS (1) or retFAILURE (0) |
|
|
FUNCTION LOCAL BT_Listing() |
Launches listing print dialog. Overrides base class to use a different screen library.
|
| Returns |
[boolean] retSUCCESS (1) or retFAILURE (0) |
|
|
FUNCTION LOCAL BT_Memo() |
Launches memo dialog.
|
| Returns |
[boolean] retSUCCESS (1) |
|
|
FUNCTION LOCAL BT_OK() |
dCopy: Closes 'Copy From' dialog and passes options back to 'Main' dialog.
|
| Returns |
[boolean] retSUCCESS (1) |
|
|
FUNCTION LOCAL BT_OKView() |
dMain: Clears screen when in view-only mode.
|
| Returns |
[boolean] retSUCCESS (1) |
|
|
FUNCTION LOCAL BT_RowDel() |
Deletes a grid row.
|
| Returns |
[boolean] retSUCCESS (1) or retFAILURE (0) |
|
|
FUNCTION LOCAL BT_RowResetAll() |
Resets all grid rows to state initially instantiated in this session
|
| Returns |
[boolean] retSUCCESS (1) |
|
|
FUNCTION LOCAL BT_RowResetHours() |
Resets available hours to original values.
|
| Returns |
[boolean] retSUCCESS (1) |
|
|
FUNCTION LOCAL BT_SelectAll() |
Sets all 'Close' check boxes in the closures grid to selected.
|
| Returns |
[boolean] retSUCCESS (1) OR retFAILURE (0) |
|
|
FUNCTION LOCAL BT_UnselectAll() |
Sets all 'Close' check boxes in the closures grid to unselected.
|
| Returns |
[boolean] retSUCCESS (1) OR retFAILURE (0) |
|
|
FUNCTION LOCAL ChangeCB_Close(gridCtl) |
Sets 'IsClosed$' column.
|
| Parameter | Description |
| gridCtl |
[input, numeric] Grid control ID |
|
| Returns |
[boolean] retSUCCESS (1) or retFAILURE (0) |
|
|
FUNCTION LOCAL ChangeCB_CopyMemos() |
Empty method stub.
|
| Returns |
[boolean] retSUCCESS (1) |
|
|
FUNCTION LOCAL ChangeDB_CopyClosures() |
Empty method stub.
|
| Returns |
[boolean] retSUCCESS (1) |
|
|
FUNCTION LOCAL ChangeEndDate(gridCtl) |
Validates closure end date and sets closure record key if both start date and end date are filled in.
|
| Parameter | Description |
| gridCtl |
[input, numeric] Grid control ID |
|
| Returns |
[boolean] retSUCCESS (1) or retFAILURE (0) |
|
|
FUNCTION LOCAL ChangeML_AvailableHoursFriday(gridCtl) |
Sets 'AvailableHoursFriday' column.
|
| Parameter | Description |
| gridCtl |
[input, numeric] Grid control ID |
|
| Returns |
[boolean] retSUCCESS (1) or retFAILURE (0) |
|
|
FUNCTION LOCAL ChangeML_AvailableHoursMonday(gridCtl) |
Sets 'AvailableHoursMonday' column.
|
| Parameter | Description |
| gridCtl |
[input, numeric] Grid control ID |
|
| Returns |
[boolean] retSUCCESS (1) or retFAILURE (0) |
|
|
FUNCTION LOCAL ChangeML_AvailableHoursSaturday(gridCtl) |
Sets 'AvailableHoursSaturday' column.
|
| Parameter | Description |
| gridCtl |
[input, numeric] Grid control ID |
|
| Returns |
[boolean] retSUCCESS (1) or retFAILURE (0) |
|
|
FUNCTION LOCAL ChangeML_AvailableHoursSunday(gridCtl) |
Sets 'AvailableHoursSunday' column.
|
| Parameter | Description |
| gridCtl |
[input, numeric] Grid control ID |
|
| Returns |
[boolean] retSUCCESS (1) or retFAILURE (0) |
|
|
FUNCTION LOCAL ChangeML_AvailableHoursThursday(gridCtl) |
Sets 'AvailableHoursThursday' column.
|
| Parameter | Description |
| gridCtl |
[input, numeric] Grid control ID |
|
| Returns |
[boolean] retSUCCESS (1) or retFAILURE (0) |
|
|
FUNCTION LOCAL ChangeML_AvailableHoursTuesday(gridCtl) |
Sets 'AvailableHoursTuesday' column.
|
| Parameter | Description |
| gridCtl |
[input, numeric] Grid control ID |
|
| Returns |
[boolean] retSUCCESS (1) or retFAILURE (0) |
|
|
FUNCTION LOCAL ChangeML_AvailableHoursWednesday(gridCtl) |
Sets 'AvailableHoursWednesday' column.
|
| Parameter | Description |
| gridCtl |
[input, numeric] Grid control ID |
|
| Returns |
[boolean] retSUCCESS (1) or retFAILURE (0) |
|
|
FUNCTION LOCAL ChangeML_CopyFromWorkCenter() |
Validates that the 'Copy From' work center is on file.
|
| Returns |
[boolean] retSUCCESS (1) or retFAILURE (0) |
|
|
FUNCTION LOCAL ChangeStartDate(gridCtl) |
Validates closure start date and sets closure record key if both start date and end date are filled in.
|
| Parameter | Description |
| gridCtl |
[input, numeric] Grid control ID |
|
| Returns |
[boolean] retSUCCESS (1) or retFAILURE (0) |
|
|
FUNCTION LOCAL ChangeWorkCenter() |
Logic to execute on change of work center.
|
| Returns |
[boolean] retSUCCESS (1) or retFAILURE (0) |
|
|
FUNCTION LOCAL CopyClosures(copyFrom$, copyClosures$) |
Copies work center closures from another work center.
|
| Parameter | Description |
| copyFrom$ |
[input, string] Work center to copy. |
| copyClosure$ |
[input, string] Option to indicate what types of closures to copy. |
|
| Returns |
[boolean] retSUCCESS (1) or retFAILURE (0) |
|
|
FUNCTION LOCAL CopyWorkCenter(copyFrom$, copyClosures$, copyMemos$) |
Copies work center settings from another work center.
|
| Parameter | Description |
| copyFrom$ |
[input, string] Work center to copy. |
| copyClosure$ |
[input, string] Option to indicate what types of closures to copy. |
| copyMemos$ |
[input, string] Y/N flag to copy memos. |
|
| Returns |
[boolean] retSUCCESS (1) or retFAILURE (0) |
|
|
FUNCTION LOCAL GetEditableColumns() |
Gets non-key grid columns in the closures grid and sets cClosuresGridColumns$.
|
| Returns |
[boolean] retSUCCESS (1) |
|
|
FUNCTION LOCAL ImpliedWrite() |
Saves current record before switching to another dialog.
|
| Returns |
[boolean] retSUCCESS (1) or retFAILURE (0) |
|
|
FUNCTION LOCAL KeySelect() |
Sets closure record key.
|
| Returns |
[boolean] retSUCCESS (1) or retFAILURE (0) |
|
|
FUNCTION LOCAL LoadClosuresGrid() |
Loads closure records into grid.
|
| Returns |
[boolean] retSUCCESS (1) |
|
|
FUNCTION LOCAL LoadGrid(gridCtl) |
Loads data into grids.
|
| Parameter | Description |
| gridCtl |
[input, numeric] Grid control ID |
|
| Returns |
[boolean] retSUCCESS (1) or retFAILURE (0) |
|
|
FUNCTION LOCAL LoadRowGD_AvailableHours(gridCtl, currentRow) |
Loads data into available hours grid row.
|
| Parameter | Description |
| gridCtl |
[input, numeric] Grid control ID |
| currentRow |
[input, numeric] Row number |
|
| Returns |
[boolean] retSUCCESS (1) or retFAILURE (0) |
|
|
FUNCTION LOCAL OnExit() |
Logic to execute on exit of work center dialog
|
| Returns |
[boolean] retSUCCESS (1) |
|
|
FUNCTION LOCAL OnFocusStartDate(gridCtl) |
| Returns |
[boolean] retSUCCESS (1) |
|
|
FUNCTION LOCAL PERFORM PaintCell() |
Overrides base class to skip logic for the available hours grid.
|
|
FUNCTION LOCAL PostLoad() |
Logic to execute after work center dialog is loaded.
|
| Returns |
[boolean] retSUCCESS (1) |
|
|
FUNCTION LOCAL PostReadRec() |
Loads grids and initializes properties after a record is read.
|
| Returns |
[boolean] retSUCCESS (1) |
|
|
FUNCTION LOCAL PERFORM ResolveFormatters() |
Overrides base class to skip logic for the available hours grid.
|
|
FUNCTION LOCAL RowModsGD_Closures(gridCtl, currentRow) |
Stores record key in grid and locks start date and end date columns.
|
| Parameter | Description |
| gridCtl |
[input, numeric] Grid control ID |
| currentRow |
[input, numeric] Row number |
|
| Returns |
[boolean] retSUCCESS (1) |
|
|
FUNCTION LOCAL SaveRowGD_AvailableHours(gridCtl, currentRow) |
Skips SaveRow() logic for the available hours grid.
|
| Parameter | Description |
| gridCtl |
[input, numeric] Grid control ID |
| currentRow |
[input, numeric] Row number |
|
| Returns |
[boolean] retSUCCESS (1) |
|
|
FUNCTION LOCAL SaveRowGD_Closures(gridCtl, currentRow) |
Validates that start date and end date are filled in when user leaves a row.
|
| Parameter | Description |
| gridCtl |
[input, numeric] Grid control ID |
| currentRow |
[input, numeric] Row number |
|
| Returns |
[boolean] retSUCCESS (1) or retFAILURE (0) |
|
|
FUNCTION LOCAL SetGridColumnsLockStatus(rowNo, lockStatus) |
Locks/unlocks non-key grid columns in the closures grid.
|
| Parameter | Description |
| rowNo |
[input, numeric] Row number |
| lockStatus |
[input, boolean] 0 = unlock, 1 = lock |
|
| Returns |
[boolean] retSUCCESS (1) |
|
|
FUNCTION LOCAL TranslateColumns() |
Translates check box values in grid.
|
| Returns |
[boolean] retSUCCESS (1) |
|