Find,Display Method's
Find:
public static VendTable find(
VendAccount _vendAccount ,
boolean _forupdate = false,
ConcurrencyModel _concurrencyModel = ConcurrencyModel::Auto)
{
VendTable vendTable;
vendTable.selectForUpdate(_forupdate);
if (_forupdate && _concurrencyModel != ConcurrencyModel::Auto)
{
vendTable.concurrencyModel(_concurrencyModel);
}
if (_vendAccount != '')
{
select firstonly vendTable
where vendTable.AccountNum == _vendAccount;
}
return vendTable;
}
Display:
display public locality locality()
{
return VendTable::find(this.OrderAccount).Locality;
}
Find:
public static VendTable find(
VendAccount _vendAccount ,
boolean _forupdate = false,
ConcurrencyModel _concurrencyModel = ConcurrencyModel::Auto)
{
VendTable vendTable;
vendTable.selectForUpdate(_forupdate);
if (_forupdate && _concurrencyModel != ConcurrencyModel::Auto)
{
vendTable.concurrencyModel(_concurrencyModel);
}
if (_vendAccount != '')
{
select firstonly vendTable
where vendTable.AccountNum == _vendAccount;
}
return vendTable;
}
Display:
display public locality locality()
{
return VendTable::find(this.OrderAccount).Locality;
}
No comments:
Post a Comment