zoukankan      html  css  js  c++  java
  • AX2012单元格显示颜色 displayOption

    public void displayOption(HV_WMSLocationStatusHistory _record, FormRowDisplayOption _options)
    {
        #define.Yellow(255,255,0)
        #define.Green(0,255,0)
        #define.Red(255, 0, 0)

        //Onhand
        if(_record.PdsCWInventQtyOnHand > 0)
        {
            _options.backColor(WinAPI::RGB2int(#Yellow));
            _options.affectedElementsByControl(HV_WMSLocationStatusHistory_PdsCWInventQtyOnHand.id());
        }
        if(_record.InventQtyOnHand > 0)
        {
            _options.backColor(WinAPI::RGB2int(#Yellow));
            _options.affectedElementsByControl(HV_WMSLocationStatusHistory_InventQtyOnHand.id());
        }

        //Receipt
        if(_record.dispPeriodTTLReceiptPdsCWQty() > 0)
        {
            _options.backColor(WinAPI::RGB2int(#Green));
            _options.affectedElementsByControl(dispPeriodTTLReceiptPdsCWQty.id());
        }

        if(_record.dispPeriodTTLReceiptQty() > 0)
        {
            _options.backColor(WinAPI::RGB2int(#Green));
            _options.affectedElementsByControl(dispPeriodTTLReceiptQty.id());
        }
        //Issue
        if(_record.dispPeriodTTLIssuePdsCWQty() < 0)
        {
            _options.backColor(WinAPI::RGB2int(#red));
            _options.affectedElementsByControl(dispPeriodTTLIssuePdsCWQty.id());
        }

        if(_record.dispPeriodTTLIssueQty() < 0)
        {
            _options.backColor(WinAPI::RGB2int(#red));
            _options.affectedElementsByControl(dispPeriodTTLIssueQty.id());
        }
        super(_record, _options);
    }

  • 相关阅读:
    Charles的基本功能使用
    模拟器的代理功能
    LoadRunner参数包含逗号
    MySQL 与 [charlist]% 通配符
    MySQL 删除重复项并保留其中一个
    Selenium grid 分布式测试搭建(二)
    Selenium grid 分布式测试搭建(一)
    chromedriver与chrome版本映射表 与chromedriver 下载地址
    Selenium 打开 Chrome 链接框只有 Data;
    Xpath 小结
  • 原文地址:https://www.cnblogs.com/cnaxuser/p/5763876.html
Copyright © 2011-2022 走看看