getValueReal method
dynamic
getValueReal(
- dynamic result,
- dynamic col
Implementation
getValueReal(result, col) {
myLogAll('getValueReal');
dynamic inputType = col[gInputType];
dynamic type = col[gType];
if (inputType == gDatetime) {
return fromLocalTime(result);
} else if (type == gTip || inputType == gMoney) {
var aMoney = fromMoney(result);
return aMoney;
}
dynamic dplist = getDPidfromItem(col);
if (!isNull(dplist)) {
if (!_dpList.containsKey(dplist)) {
var tableinfo = _tableList[dplist];
if (tableinfo != null) {
List tableData = tableinfo[gData];
if (tableData.isNotEmpty) {
for (int i = 0; i < tableData.length; i++) {
dpListInsert(dplist, tableData[i], null);
}
}
}
}
bool isLabel = false;
if (inputType == gAddress) {
isLabel = true;
}
if (isLabel) {
return result;
}
return getSCurrent(result);
}
if (result == gNull) {
return '';
}
return result;
}