Class SY_LineEntryTier_ui

Inherits

SY_LineEntry_UI

Properties

LOCAL cDistItemCode$="ItemCode$"  

Defined in the inheriting class as the variables used for ItemCode,WarehouseCode and UnitOfMeasure$

LOCAL cDistMessageNo=1  
LOCAL cDistWarehouseCode$="WarehouseCode$"  
LOCAL cDistUnitOfMeasure$="UnitOfMeasure$"  

Methods

0 - indicates user wishes to save line, but distribution is unbalanced, 1 - distribution is balanced.

FUNCTION GetLineRecord(gridCtl, row)  
FUNCTION LOCAL BT_Distribute()  

Button method that launches distribution window

FUNCTION LOCAL BT_RowReset()  

Row Reset button that is used in line entry programs.

FUNCTION LOCAL BT_RowResetAll()  
FUNCTION LOCAL ClearLotSerTIers(dateDesc$)  

Function will check if tiers have to be cleared due to a date change, and if so prompt the user and clear the distributions if requested.

ParameterDescription
dateDesc$ [input, string] Description of the document date to be used in messaging
Returns Always returns retSUCCESS(1)
FUNCTION LOCAL DistributionPostSaveRow(gridCtl, rowNo, balanced)  

Method executed only if distributed line, to re-read saved key to put it in an editable state for use with the distribution logic. This method will only be called if the SaveRow() method succeeds AND the row requires distribution

ParameterDescription
gridCtl grid ID for grid that row is being saved in
rowNo row number that was saved
balanced boolean indicating that the distribution for this row is balanced or not
Returns retFAILURE if distribution of line fails
Returns retSUCCESS if distribution is balanced
FUNCTION LOCAL DistributionStatus(status$)  

Checks status coming out of the distribution dialogue, to see if line needs to be deleted, saved with LotSerialFullyDistributed set to "Y" or "N"

FUNCTION LOCAL PostLoadLines(primCtl, secGrid, initVar$)  
FUNCTION LOCAL RecalcLotSerExpDates(newDate$, dateDesc$)  

Function handles changing of lot/serial expiration dates. This function will check to see if changes are necessary and then ask the user whether they want to recalculate expiration dates, only if Lot/Serial Expiration dates are being used.

ParameterDescription
newDate$ [input, date] Date after being changed.
dateDesc$ [input, string] Description of the type of date (ie Transaction Date)
Returns Always returns retSUCCESS(1)
FUNCTION LOCAL SaveRow(gridCtl, rowNo)  

Override of SY_LineEntry_ui's function, that includes the call to BT_Distribute if line is unbalanced.

ParameterDescription
status$ Status of distribution, -1 indicates user wishes to delete row
Returns retSUCCESS
FUNCTION LOCAL SetDistributionState()  
FUNCTION LOCAL SetFullyDistributed(gridCtl, rowNo)  

Sets icon for BT_Distribute button, as well as displaying the out-of-balance marker on the appropriate row header.

ParameterDescription
gridCtl control value of grid to mark
rowNo rowNo to mark with out-of-balance marker if appropriate
Returns retSUCCESS

Properties inherited from: SY_LineEntry_ui

cGridLoadThreshold, cGridThresholdOption, cGridViewExpanded, cGridViewPanelExpandBitmap$, cGridViewPanelNormalBitmap$, cLeavingProgram, cLineEntry, cHasRightsModifySet, HasModifyRights, MainGridCtl, SecGridCtl, User$, Comp$, G1IOL$, G2IOL$

Methods inherited from: SY_LineEntry_ui

Bt_Cancel(), Bt_Delete(), Bt_First(), Bt_Last(), Bt_Next(), Bt_Prev(), BT_Print(), Bt_RowDel(), Bt_RowDown(), Bt_RowIns(), Bt_RowOK(), Bt_RowReset(), Bt_RowResetAll(), Bt_RowUndo(), Bt_RowUp(), Bt_View(), ClassChangeAddlGrid(), ClassChangeGrid(), ClassOnFocusAddlGrid(), ClassOnFocusGrid(), ConfirmWrite(), GetLineRecord(), GotoSecondaryGrid(), LoadRow(), MoveColumnToPrimaryGrid(), MoveColumnToSecondaryGrid(), MovePrimaryRow(), MoveSecondaryRow(), OnExitFolder(), OnExitFormView(), OnExitGridView(), OnFocusBt_Accept(), PostLoadLines(), PostReadRec(), PROCESS(), RowMods(), SaveRow(), SetupGrid(), ShowRow(), SwapRows(), Browse(), ClassDragAddlGridClassDropAddlGrid$(), ClassDragAddlGridClassDropGrid$(), ClassDragGridClassDropAddlGrid$(), ClassDragGridClassDropGrid$(), ClassPushExpand(), ClearGrid(), DisplayMemoButton(), DoColumnChange(), FindValidRow(), GetRowForColumn(), HideColumn(), InitDefaultRowState(), IsColumnMoveable(), MoveRow(), PostResize(), PreLoadPTotals(), PreLoadPTotalsW(), RemoveInsertRow(), ReturnToField(), SetButtonState(), SetButtonStateFirstRow(), SetButtonStateInsertRow(), SetButtonStateLastRow(), SetButtonStateOtherRow(), SetColumnState(), SetFolderState(), SetFormDisplay(), SetGridSize(), SetLineFormState(), SetStartingRow(), ShowColumn(), ShowSearchResult(), WriteRowInGrid()