• 解决 maximo7.X 设备树子节点显示不全


    在实施MAXIMO7.1.5版本时,客户某一位置下的定义的资产比较多超过50以上,由于MAXIMO7.1.5出于性能或其它原因的考虑,在默认的选择资产或位置对话框中,只能显示50个子节点,导致数据显示不全,解决方法如下:

      导出系统XML(LIBRARY.XML) 查找ID="drilldown"的节点,修改tree组件的属性,添加maxchildren属性,记录,此处有两个tree组件,为了完整,两个组件都添加为好!

    <dialog beanclass="psdi.webclient.beans.common.AssetLocDrilldownBean" id="drilldown" label="明细数据" relationship="DRILLDOWN">

            <helpgrid id="drilldown_help" innerhtml="选择 &amp;lt;IMG border=&amp;quot;0&amp;quot; SRC=&amp;quot;../webclient/images/node_collapsed.gif&amp;quot;/&amp;gt; 可显示子级。选择 &amp;lt;IMG border=&amp;quot;0&amp;quot; SRC=&amp;quot;../webclient/images/node_expanded.gif&amp;quot;/&amp;gt; 可隐藏子级。选择 &amp;lt;IMG border=&amp;quot;0&amp;quot; SRC=&amp;quot;../webclient/images/drill_select.gif&amp;quot;/&amp;gt; 可返回位置/资产。"/>
            
    <tabgroup id="drilldown_tabs" loadalltabs="true">
                
    <tab default="true" id="drilldown_locations" label="位置">
                    
    <section id="drilldown_tab_locations_main">
                        
    <sectionrow id="drilldown_tab_grid1_row1">
                            
    <sectioncol id="drilldown_tab_grid1_row1_col1">
                                
    <section id="drilldown_tab_grid1a">
                                    
    <multiparttextbox dataattribute="LOCVALUE" descdataattribute="locations.description" descinputmode="readonly" id="drilldown_tab_locations_main_1" inputmode="readonly"/>
                                    
    <multiparttextbox dataattribute="ASSETINLOC" descdataattribute="ASSETINLOC.description" descinputmode="readonly" id="drilldown_tab_locations_main_2" inputmode="readonly"/>
                                
    </section>
                            
    </sectioncol>
                            
    <sectioncol id="drilldown_tab_grid1_row1_col2">
                                
    <section id="drilldown_tab_grid2a">
                                    
    <textbox dataattribute="locations.status" id="drilldown_tab_locations_main_3" inputmode="readonly"/>
                                    
    <statictext align="left" dataattribute="ASSETMESSAGE" id="drilldown_equipment_message" span="left"/>
                                
    </section>
                            
    </sectioncol>
                            
    <sectioncol id="drilldown_tab_grid1_row1_col3">
                                
    <section id="drilldown_tab_grid3a">
                                    
    <textbox dataattribute="siteid" id="drilldown_tab_locations_main_5" lookup="site"/>
                                
    </section>
                            
    </sectioncol>
                        
    </sectionrow>
                    
    </section>
                    
    <section id="drilldown_tab_locations_main2">
                        
    <sectionrow id="drilldown_tab_locations_main2_1">
                            
    <sectioncol id="drilldown_tab_grid2_row1_col1">
                                
    <section id="drilldown_tab_grid1b">
                                    
    <listbox align="left" dataattribute="systemid" id="drilldown_listbox" title="变更系统" width="100"/>
                                    
    <buttongroup align="left" id="locations_tree_actions_btngroup_showallsys" show="true">
                                        
    <pushbutton id="locations_tree_actions_btn_99" label="显示所有系统" mxevent="showAllSystems" targetid="locations_tree"/>
                                    
    </buttongroup>
                                    
    <buttongroup align="left" id="locations_tree_actions_btngroup" show="true">
                                        
    <pushbutton id="locations_tree_actions_btn_1" label="显示到顶级的路径" mxevent="getpathtotop" targetid="locations_tree"/>
                                    
    </buttongroup>
                                    
    <buttongroup align="left" id="locations_tree_actions_btngroup_viewpmbtn1" show="true">
                                        
    <pushbutton id="drilldown_button_1_locations" label="查看工作详细信息" mxevent="wopms_byloc"/>
                                    
    </buttongroup>
                                
    </section>
                            
    </sectioncol>
                            
    <sectioncol id="locations_tree_grid">
                                
    <section id="locations_tree_actions">
                                    
    <tree beanclass="psdi.webclient.beans.common.DrilldownTreeBean" checkfornewnodes="true" height="150" id="locations_tree" ignorestructurechange="true" orderby="location asc" relationship="LOCATIONS" selectfirstnode="true" width="500" maxchildren="400">
                                        
    <treenode displaykeyattribute="false" displayobjectname="false" id="locations_tree_treenode1" keyattribute="locationsid" objectname="LOCATIONS">
                                            
    <treeattribute dataattribute="location" display="true" id="locations_tree_attribute1"/>
                                            
    <treeattribute dataattribute="description" display="true" id="locations_tree_attribute2"/>
                                        
    </treenode>
                                        
    <treenode displaykeyattribute="false" displayobjectname="false" enablereturn="false" id="locations_tree_treenode2" keyattribute="SITEUID" objectname="SITE">
                                            
    <treeattribute dataattribute="siteid" display="true" id="locations_tree_attribute3"/>
                                            
    <treeattribute dataattribute="description" display="true" id="locations_tree_attribute4"/>
                                        
    </treenode>
                                    
    </tree>
                                
    </section>
                            
    </sectioncol>
                        
    </sectionrow>
                    
    </section>
                
    </tab>
                
    <tab id="drilldown_asset" label="资产">
                    
    <section id="drilldown_tab_assets_main">
                        
    <sectionrow id="drilldown_tab_assets_main_r1">
                            
    <sectioncol id="drilldown_tab_assets_main_r1_c1">
                                
    <section id="drilldown_tab_assets_main_r1_c1_1">
                                    
    <multiparttextbox dataattribute="assetvalue" descdataattribute="asset_inloc.description" id="drilldown_tab_assets_main_2" inputmode="readonly"/>
                                    
    <multiparttextbox dataattribute="asset_inloc.location" descdataattribute="asset_inloc.location.description" descinputmode="readonly" id="drilldown_tab_assets_main_1" inputmode="readonly"/>
                                    
    <textbox dataattribute="asset_inloc.failurecode" id="drilldown_tab_assets_main_4" inputmode="readonly"/>
                                
    </section>
                            
    </sectioncol>
                            
    <sectioncol id="drilldown_tab_assets_main_r1_c2">
                                
    <section id="drilldown_tab_assets_main_r1_c2_1">
                                    
    <checkbox dataattribute="asset_inloc.isrunning" id="drilldown_tab_assets_main_3" inputmode="readonly"/>
                                    
    <textbox dataattribute="asset_inloc.itemnum" id="drilldown_tab_assets_main_6" inputmode="readonly"/>
                                
    </section>
                            
    </sectioncol>
                            
    <sectioncol id="drilldown_tab_assets_main_r1_c3">
                                
    <section id="drilldown_tab_assets_main_r1_c3_1">
                                    
    <textbox dataattribute="siteid" id="drilldown_tab_assets_main_8" lookup="site"/>
                                
    </section>
                            
    </sectioncol>
                        
    </sectionrow>
                    
    </section>
                    
    <section id="drilldown_tab_assets_main2">
                        
    <sectionrow id="drilldown_tab_assetss_main2_1">
                            
    <sectioncol id="drilldown_tab_assetss_main2_1_row1_col1">
                                
    <section id="drilldown_tab_assetss_main2_1_row1_col1_1">
                                    
    <buttongroup align="left" id="asset_tree_actions_btngroup" show="true">
                                        
    <pushbutton id="asset_tree_actions_btn_1" label="显示到顶级的路径" mxevent="getpathtotop" targetid="asset_tree"/>
                                    
    </buttongroup>
                                    
    <buttongroup align="left" id="asset_tree_actions_btngroup_viewpmbt2" show="true">
                                        
    <pushbutton id="drilldown_button_1_asset" label="查看工作详细信息" mxevent="wopms_byasset"/>
                                    
    </buttongroup>
                                
    </section>
                            
    </sectioncol>
                            
    <sectioncol id="drilldown_tab_assetss_main2_1_row1_col2">
                                
    <section id="drilldown_tab_assetss_main2_1_row1_col2_1">
                                    
    <tree beanclass="psdi.webclient.beans.common.DrilldownTreeBean" checkfornewnodes="true" height="150" id="asset_tree" ignorestructurechange="true" orderby="assetnum asc" relationship="ASSET" selectfirstnode="true" width="500" maxchildren="400">
                                        
    <treenode displaykeyattribute="false" displayobjectname="false" id="asset_tree_treenode1" keyattribute="ASSETUID" objectname="ASSET">
                                            
    <treeattribute dataattribute="assetnum" display="true" id="asset_tree_attribute1"/>
                                            
    <treeattribute dataattribute="description" display="true" id="asset_tree_attribute2"/>
                                        
    </treenode>
                                        
    <treenode displaykeyattribute="false" displayobjectname="false" enablereturn="false" id="asset_tree_treenode2" keyattribute="SITEUID" objectname="SITE">
                                            
    <treeattribute dataattribute="siteid" display="true" id="asset_tree_attribute3"/>
                                            
    <treeattribute dataattribute="description" display="true" id="asset_tree_attribute4"/>
                                        
    </treenode>
                                    
    </tree>
                                
    </section>
                            
    </sectioncol>
                        
    </sectionrow>
                    
    </section>
                
    </tab>
            
    </tabgroup>
            
    <buttongroup id="drilldown_btngroup" show="true">
                
    <pushbutton id="drilldown_button_3" label="取消" mxevent="dialogcancel"/>
            
    </buttongroup>
        
    </dialog>
  • 相关阅读:
    游戏中转轮抽奖的算法实现[转]
    前端的一份配置(备份)
    [转]Jquery通用开源框架之【ejq.js】
    【完整靠谱版】结合公司项目,仔细总结自己使用百度编辑器实现FTP上传的完整过程
    用Putty连接Linux
    使用Nginx的proxy_cache缓存功能取代Squid
    nginx for windows 配置多域名反向代理
    详细解析用Squid实现反向代理的方法
    用Squid和DNSPod打造自己的CDN详细教程
    WINDOWS下的squid
  • 原文地址:https://www.cnblogs.com/kevinhlj/p/2116909.html
Copyright © 2020-2023  润新知