Class CI_UnitOfMeasure_svc

This class creates purchase orders based on the user selections on the screen This class reads the item file for source data. When an item is selected further data is gathered and the result is written to a selection file which is then used for a report and the creation of the purchase orders

Constructor

Sets precision of 4 for object. Passes in SY_Session object handle.

Inherits

SY_Service

Properties

LOCAL cMainTable$="CI_UnitOfMeasure"  
[constant, string] Used by service object. Sets the main table name that will be opened on cFH
LOCAL cIsSysDB=isFALSE  
[constant, boolean] Used by service object. Set to false because this is not a system database

Methods

FUNCTION Convert(fromUM$, toUM$, fromQty, toQty)  

Converts a number (usually a quantity) from one unit of mesure to another

ParameterDescription
fromUM$ [input, string] From unit of measure
toUM$ [input, string] To unit of measure
fromQty [input, float] Number to convert
toQty [output, float] Result number after conversion
Returns [boolean] Success/failure and sets error messages
FUNCTION GetConversionFactor(fromUM$, toUM$, factor)  

Returns the conversion factor between two units of measure

ParameterDescription
fromUM$ [input, string] From unit of measure
toUM$ [input, string] To unit of measure
factor [output, float] conversion factor
Returns [boolean] Success/failure and sets error messages

Properties inherited from: SY_Service

BOF, CurrentBrowseIndex$, CurrentIndex$, EOF, SecurityAccess

Methods inherited from: SY_Service

BindVariable(), CheckMainTable(), Clear(), Find(), FindById(), GetChildHandle(), GetChildKeyReference$(), GetColumns$(), GetDataSources$(), GetDataSourcesAddl$(), GetJson$(), GetKey$(), GetKeyColumns$(), GetKeyPadded$(), GetPartialRecord(), GetRecord(), GetRecordCount(), GetRecordEx(), GetResultSets(), GetTable$(), GetTablePath$(), GetValue(), GetValues(), IsValid(), MoveFirst(), MoveLast(), MoveNext(), MovePrevious(), ReadAdditional(), SetBrowseFilter(), SetBrowseIndex(), SetCacheMode(), SetIndex(), SetKeyValue(), SetParentColumns(), SetParentHandle(), SetUIHandle(), PERFORM ClearEditRcd(), FormatJson$(), GetAddlDataSources(), GetDateColumns$(), InitChildCollection(), MoveFirstLast(), MoveNextPrevious(), OpenMainTable(), ParseKeyDef(), PrepareKeyDef(), ReadRec(), ResolveColumnList$(), SetControls(), SetCurrentKey(), UseKeyColl()