X++:
public void displayOption(Common _record, FormRowDisplayOption _options)
{
ImportInventLine importInventLine = _record.data();
;
switch( importInventLine.ImportInventStatus)
{
case ImportInventStatus::Error :
_options.backColor(WinAPI::rgb2int(255, 70, 70)); //Красный
break;
case ImportInventStatus::Checked :
_options.backColor(WinAPI::rgb2int(0, 240, 120)); //Зеленый
break;
case ImportInventStatus::Imported :
_options.backColor(WinAPI::rgb2int(110, 180, 255)); //Синий
break;
}
_options.affectedElementsByControl(ImportInventLine_ImportInventStatus.id());
super(_record, _options);
}