getValueGUI method
dynamic
getValueGUI(
- dynamic result,
- dynamic col
Implementation
getValueGUI(result, col) {
myLogAll('getValueGUI');
if (isNull(col)) {
return result;
}
dynamic inputType = col[gInputType];
if (inputType == gDatetime) {
return toLocalTime(result);
} else if (inputType == gMoney) {
return toMoney(result);
}
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;
}