|
FUNCTION SetAdditionalFields(tmpIOL$, tmpRec$) |
Stub method. Override to pass additional fields to distribution ui.
|
| Parameter | Description |
| tmpIOL$ |
[input, string] Iolist of fields |
| tmpRec$ |
[input, string] field values in a record |
|
| Returns |
Always returns retSUCCESS(1) |
|
|
FUNCTION SetDisplayFields(curKey$, item$, whse$, uom$) |
|
FUNCTION SetDisplayFields(curKey$, item$, whse$, uom$, refDate$, refDateDesc$) |
Common method used to set variables to display in lot/serial distribution window.
|
| Parameter | Description |
| curKey$ |
[input, string] current key of the detail line |
| item$ |
[input, string] item code that is being distributed |
| whse$ |
[input, string] warehouse code that is being distributed from |
| uom$ |
[input, string] unit of measure being used for distribution |
| refDate$ |
{optional} [input, date] Transaction date for the current distribution, used in lot/serial expiration date feature |
| refDateDesc$ |
{optional} [input, string] Description of transaction date to be displayed on distribution window |
|
| Returns |
Always returns retSUCCESS(1) |
|
|
FUNCTION SetMessageType(msgType) |
|
FUNCTION LOCAL BT_AddSerial() |
|
FUNCTION LOCAL BT_Cancel() |
|
FUNCTION LOCAL BT_Distr() |
|
FUNCTION LOCAL BT_HideZeroLots() |
|
FUNCTION LOCAL BT_NextLot() |
Creates distribution record with next lot number.
|
| Returns |
returns retSUCCESS(1) or retFAILURE(0) |
|
|
FUNCTION LOCAL BT_Ok() |
|
FUNCTION LOCAL BT_Range() |
Launches the Select Serial Number by Range dialog.
|
| Returns |
Always returns retSUCCESS(1) |
|
|
FUNCTION LOCAL BT_RowDel() |
In dDistribute, deletes grid row.
In dDistRange, deletes serial numbers from list box.
|
| Returns |
retSUCCESS(1) or retFAILURE(0) |
|
|
FUNCTION LOCAL BT_RowReset() |
|
FUNCTION LOCAL BT_RowResetAll() |
|
FUNCTION LOCAL BT_Select() |
In dDistribute, launches the Select Serial Number dialog.
In dDistSelect, selects all serial numbers up to distribution balance.
In dDistRange, selects serial numbers in range entered.
|
| Returns |
Always returns retSUCCESS(1) |
|
|
FUNCTION LOCAL BT_ShowLots() |
|
FUNCTION LOCAL BT_UnSelect() |
Clears selected serial numbers.
|
| Returns |
Always returns retSUCCESS(1) |
|
|
FUNCTION LOCAL ChangeCB_AllSerialNo() |
Executes when the All Serial Numbers check box is changed.
|
| Returns |
Always returns retSUCCESS(1) |
|
|
FUNCTION LOCAL ChangeCB_AllTiers() |
Re-displays contents of list box in dDistSelect to show all tiers or to only include valid tiers.
|
| Returns |
Always returns retSUCCESS(1) |
|
|
FUNCTION LOCAL ChangeCB_AutoIncr() |
|
FUNCTION LOCAL ChangeLB_Select() |
Executes when user clicks a record in the serial number selection list box.
|
|
|
|
FUNCTION LOCAL ChangeLotSerialExpirationDate(gridCtl) |
Executes when the LotSerialExpirationDate is changed in the dDistribute grid
|
| Parameter | Description |
| gridCtl |
[input, numeric] Control number of the grid that contains the LotSerialExpirationDate column |
|
|
|
| Value | Description |
| retFAILURE(0) |
Date was not accepted or invalidated |
| retSUCCESS(1) |
Date was valid |
|
|
FUNCTION LOCAL ChangeLotSerialNo(gridCtl) |
|
FUNCTION LOCAL ChangeML_BeginningSerialNo() |
Executes when the Beginning Serial Number is changed.
|
|
|
|
FUNCTION LOCAL ChangeML_EndingSerialNo() |
Executes when the Ending Serial Number is changed.
|
|
|
|
FUNCTION LOCAL ChangeML_ExpirationDate() |
Checks entered expiration date to be a valid date
|
| Returns |
retSUCCESS(1) if a valid date, or retFAILURE(0) If not a valid date |
|
|
FUNCTION LOCAL ChangeML_StartingSerialNo() |
|
FUNCTION LOCAL ClassOnFocusGrid(gridCtl) |
|
FUNCTION LOCAL EnableDisableAddSerial() |
Enables or disables the Add Serial button and the Next Lot button
|
| Returns |
Always returns retSUCCESS(1) |
|
|
FUNCTION LOCAL EnableDisableBTSelect() |
Enables or disables the Select button in dDistRange based on the begining and ending serial numbers
|
| Returns |
Always returns retSUCCESS(1) |
|
|
FUNCTION LOCAL EnableExpirationDate(lotSerNo$) |
|
FUNCTION LOCAL EnableExpirationDate(lotSerNo$, rowNo) |
Function determines whether the Lot/Serial expiration date will be enabled for entry or not. This will actually enable the grid cell if the rowNo and GD_Grid.ctl exists.
|
| Parameter | Description |
| lotSerNo$ |
[input, string] LotSerialNo$ that is being tested. |
| rowNo |
[input, integer] {optional} row number of the grid that contains the LotSerialExpirationDate |
|
|
|
| Value | Description |
| isTRUE |
if LotSerialExpirationDate should be enabled |
| isFALSE |
if LotSerialExpirationDate should be disabled |
|
|
FUNCTION LOCAL GotoFirstMissingDate() |
Locates the first missing date in the grid and puts focus on the lot/serial expiration date column
|
| Returns |
Always returns retSUCCESS(1) |
|
|
FUNCTION LOCAL LoadDistSelectListBox(item$, whse$, type$) |
Method loads the serial select list box in the dDistSelect dialogue, and also maintains companion memory table
|
| Parameter | Description |
| item$ |
[input, string] Item Code currently being distributed used to filter data in IM_ItemCost |
| whse$ |
[input, string] Warehouse Code currently being distributed used to filter data in IM_ItemCost |
| type$ |
[input, string] Tier type currently being distributed used to filter data in IM_ItemCost |
|
| Returns |
Always returns retSUCCESS(1) |
|
|
FUNCTION LOCAL LoadRow(gridCtl, rowno) |
|
FUNCTION LOCAL LoadSelectedSerialNumbers() |
Loads serial numbers selected in dDistSelect and dDistRange to the distribution grid.
|
| Returns |
Always returns retSUCCESS(1) |
|
|
FUNCTION LOCAL NotFullyDistributed() |
|
FUNCTION LOCAL OnExit() |
|
FUNCTION LOCAL OnFocusML_ExpirationDate() |
Method executes when the ML_ExpirationDate field in the dAddSerial dialogue has focus, this is used to save off the existing date
|
| Returns |
Always returns retSUCCESS(1) |
|
|
FUNCTION LOCAL PostLoad() |
|
FUNCTION LOCAL PreLoad() |
|
FUNCTION LOCAL ResetGrid() |
|
FUNCTION LOCAL ResetGrid(row) |
|
FUNCTION LOCAL RowMods(gridCtl, row) |
|
FUNCTION LOCAL SaveRow(gridCtl, row) |
|
FUNCTION LOCAL SelectSerialNumbers(quantityToSelect, begSerialNo$, endSerialNo$) |
Selects serial numbers when user clicks the BT_Select button in dDistSelect and dDistRange. Writes selected records to memory table.
|
| Parameter | Description |
| quantityToSelect |
[input, numeric] Distribution quantity |
| begSerialNo$ |
[input, string] Beginning serial number if select by range |
| endSerialNo$ |
[input, string] Ending serial number if select by range |
|
| Returns |
[numeric] total quantity selected |
|
|
FUNCTION LOCAL SetButtonState(gridCtl) |