• 设置表格字段背景色displayOption


    public void displayOption(Common _record, FormRowDisplayOption _options)
    {
        GridColours  gridColoursLocal = _record;
        ;

        super(_record, _options);

        // If highlight flag is set, then give the entire row a black background/white text
        if (gridColoursLocal.Highlight)
        {
            _options.backColor(WinApi::RGB2int(255,255,0)); // Yellow
        }
        else
        {
            if (gridColoursLocal.RequestedDate < systemDateGet() || gridColoursLocal.ConfirmedDate > gridColoursLocal.RequestedDate)
            {
                _options.backColor(WinApi::RGB2int(255,0,0)); // Red
                _options.textColor(WinApi::RGB2int(255,255,255)); // White text

                if (gridColoursLocal.RequestedDate < systemDateGet())
                {
                    // Applies only to the RequestedDate field on the grid
                    _options.affectedElementsByControl(Grid_RequestedDate.id());
                }

                if (gridColoursLocal.ConfirmedDate > gridColoursLocal.RequestedDate)
                {
                    // Applies only to the RequestedDate field on the grid
                    _options.affectedElementsByControl(Grid_ConfirmedDate.id());
                }
            }
        }
    }

    image

  • 相关阅读:
    linux centos6.4 php连接sql server2008
    Windows下连接php5.3+sql server2008
    解决:安装SQl 2008为SQL Server代理服务提供的凭据无效
    Linux下查看文件夹或目录大小
    Sql 子查询
    Linux 删除空行
    shell中的IFS详解
    Linux 文件名匹配
    Linux Shell逻辑运算符和表达式详解
    转:shell 经典, shell 十三问
  • 原文地址:https://www.cnblogs.com/perock/p/2352525.html
Copyright © 2020-2023  润新知