zoukankan      html  css  js  c++  java
  • 设置表格字段背景色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

  • 相关阅读:
    Eclipse Mac OS 安装 Subversion插件subclipse 缺失JavaHL解决方案
    Eclipse Mac OS 安装 最新版 Subversion插件subclipse
    mac OS 安装 Homebrew软件包管理器
    Ribbon 框架简介及搭建
    Ribbon 框架简介及搭建
    TinyMCE下载及使用
    努力啊。
    逃离
    怎么学习
    烂代码
  • 原文地址:https://www.cnblogs.com/perock/p/2352525.html
Copyright © 2011-2022 走看看