MAXIMO 列表顯示資料的顏色設定

來源:互聯網
上載者:User

效果:

需求:

把工單頁面中父子工單用不同的顏色區分出來?

解決方案:

想到2種解決辦法,一是:修改頁面顯示的控制項(二次開發過程中修改系統的東西顯然不是一種好的解決方案,所以在這就不寫了);第二想到的是用maximo內建的displayrule。下面說明下該功能如何配置(其實IBM官網的配置,我抄下來,呵呵)。

It is possible to change the colors for the records that display in the Assignment Manager application.Using Application Designer, you can export the WORKMAN.XML file and see the following section in the XML:<displayrule dataattribute="calcpriority" id="displayrule1"><range classname="rowcolor_calcpriority_2" id="range1" lower="0" upper="2"/><range classname="rowcolor_calcpriority_4" id="range2" lower="3" upper="4"/><range classname="rowcolor_calcpriority_6" id="range3" lower="5" upper="6"/><range classname="rowcolor_calcpriority_8" id="range4" lower="7" upper="8"/><range classname="rowcolor_calcpriority_9" id="range5" lower="9" upper="9"/></displayrule>These values correspond to the following lines in the maximo.css file:Define specialized range colors here *//* workman */.rowcolor_calcpriority_0 {color:RGB(226, 29, 64);}.rowcolor_calcpriority_2 {color:RGB(226, 29, 64);}.rowcolor_calcpriority_4 {color:RGB(255, 190, 0);}.rowcolor_calcpriority_6{color:RGB(0, 150, 112);}.rowcolor_calcpriority_8{color:RGB(0, 0, 255);}.rowcolor_calcpriority_9{color:RGB(183, 128, 191);}.rowcolor_percentalloc_0_50{color:RGB(226, 29, 64);}.rowcolor_percentalloc_51_80{color:RGB(255, 190, 0);}.rowcolor_percentalloc_81_100{color:RGB(0, 150, 112)You can change the hexidecimal values for the range you wish to change to the value you want them to display as.Note:For the classic skin the file path to the maximo.css is:C:\maximo\applicaions\maximo\maximouiweb\maxmodule\webclient\cssFor the tivoli09 skin the path to the maximo.css file is:C:\maximo\applicaions\maximo\maximouiweb\maxmodule\webclient\skins\tivoli09\cssOnce the changes have been made, save the file and rebuild and deploy the Maximo EAR files.You may need to delete the browser cache for the changes to take effect.

上面寫的很清楚,就不翻譯了,呵呵。

<displayrule dataattribute="calcpriority" id="displayrule1">
<range classname="rowcolor_calcpriority_2" id="range1" lower="0" upper="2"/>

----------------------------------------------------------------

dataattribute="calcpriority" 設定使用區分的欄位值, lower="0" upper="2"根據這個範圍判斷,我稱之為‘範圍’。

根據以上說明,我們可以設定工單的顯示,這裡我們可能需要建立個虛擬欄位來進行範圍的判斷,然後根據父子工單在列表初始化的時候(init方法執行)對虛擬欄位進行賦值。

搞定,呵呵,可以思考下,以後可以用到別的用途


聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.