Class CI_CommonTierDistribution_ui

Inherits

SY_MaintSetUI

Properties

LOCAL cAutoIncrement=isFALSE  
LOCAL cButtonEnabled=isFALSE  
LOCAL cCanAddSerialItems=isTRUE  
LOCAL cOrigQtyMask$="###, ###, ###.0000000-"  
LOCAL cUnbalancedMsgNum$="CI_DeleteLine.Y"  
LOCAL tierFIFO$="1"  
LOCAL tierLIFO$="2"  
LOCAL tierLOT$="3"  
LOCAL tierSERIAL$="4"  

Methods

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.

ParameterDescription
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_Ok()  
FUNCTION LOCAL BT_RowDel()  
FUNCTION LOCAL BT_RowReset()  
FUNCTION LOCAL BT_RowResetAll()  
FUNCTION LOCAL BT_Select()  
FUNCTION LOCAL BT_ShowLots()  
FUNCTION LOCAL BT_UnSelect()  
FUNCTION LOCAL ChangeCB_AllTiers()  

Executes when the check box to show all tiers or to only include valid tiers. This will re-display the contents of the listbox on the dDistSelect screen.

Returns Always returns retSUCCESS(1)
FUNCTION LOCAL ChangeCB_AutoIncr()  
FUNCTION LOCAL ChangeLB_Select()  
FUNCTION LOCAL ChangeLotSerialExpirationDate(gridCtl)  

Executes when the LotSerialExpirationDate is changed in the dDistribute grid

ParameterDescription
gridCtl [input, numeric] Control number of the grid that contains the LotSerialExpirationDate column
Returns [boolean]
ValueDescription
retFAILURE(0) Date was not accepted or invalidated
retSUCCESS(1) Date was valid
FUNCTION LOCAL ChangeLotSerialNo(gridCtl)  
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()  
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.

ParameterDescription
lotSerNo$ [input, string] LotSerialNo$ that is being tested.
rowNo [input, integer] {optional} row number of the grid that contains the LotSerialExpirationDate
Returns [boolean]
ValueDescription
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

ParameterDescription
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 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 SetButtonState(gridCtl)  

Methods inherited from: SY_MaintSetUI

ClassOnFocusGrid(), BT_OkView(), BT_RowDel(), BT_RowReset(), BT_RowResetAll(), ChangeKeyColumn(), LoadGrid(), LoadRow(), SaveRow()