Tuesday, 22 March 2016

displayOption

public void displayOption(Common _record, FormRowDisplayOption _options)
{
    MTPSU           _mTPSU;
    date            _poDate;


    super(_record, _options);

    _mTPSU =_record;

    _poDate = _mTPSU.PODate;

    if(/*_poDate > today() &&*/ _poDate < today() - 30 )
        {
            _options.textColor(WinAPI::RGB2int(255,0,0));
            _options.affectedElementsByControl(MTPSU_PODate.id());
        }


    MTPSU_ds.reread();
    MTPSU_ds.refresh();
}



*************************************************
public void executeQuery()
{

    Table1_1_ds.query().dataSourceNo(1).sortClear();
    Table1_1_ds.query().dataSourceNo(1).addSortField(fieldNum(Table1, IndentNumberToUnit),
    SortOrder::Descending);
    super();
}


No comments:

Post a Comment