Сообщение от
mashaSi
edit integer emPercent(boolean _set, AL_TCSExecutives _executives, integer _val)
{
int tmp;
if (mapPercent == Null)
{
mapPercent = new map (types::integer, types::Integer);
}
if (_set)
{
tmp = _val;
if (_val)
mapPercent.insert(_executives.RecId, tmp);
else if (mapPercent.exists(_executives.RecId))
mapPercent.remove(tmp);
}
return str2int(mapPercent.definitionString());
}