当前位置: 首页 > news >正文

Teamcenter AWC/RCP 根据流程 节点配置对应节点 需要展示的属性和关系 - 张永全

1.定义运行时属性,根据当前对象中我的工作任务节点名称,返回节点名称

2.通过visiableWhen显示和隐藏各节点的section

visiableWhen 仅支持 page和seciton

3.每个节点创建一个 xml数据集,配置节点的展示界面。

4.中文 需要通过工具转为 UTF-8字符

 

5.配置xml的样例:

<?xml version="1.0" encoding="UTF-8"?>
<!--
// @<COPYRIGHT>@
// ==================================================
// Copyright 2016.
// Siemens Product Lifecycle Management Software Inc.
// All Rights Reserved.
// ==================================================
// @<COPYRIGHT>@
-->
<!-- Default style sheet for displaying part rev summary. -->
<rendering>
<header>
<image source="type"/>
<property name="owning_user"/>
<inject type="dataset" src="Ads1OwningProgram"/>
<property name="last_mod_date"/>
<property name="release_status_list" renderingHint="overflow"/>
<property name="object_type"/>
</header>
//我的工作任务
<page titleKey="&#25105;&#30340;&#24037;&#20316;&#27969;&#20220;&#21153;">
<content visibleWhen="v9MyCurrentTaskNodeName == DO" >
<section title="&#20013;&#25991;">
<section title="&#23646;&#24615;">
<content>
<property name="v9MyCurrentTaskNodeName" renderingHint="label"/>
<property name="item_id" renderingHint="label" required="true"/>
<property name="item_revision_id" renderingHint="label"/>
<property name="object_name"/>
<property name="object_desc"/>
<property name="object_type"/>
</content>
</section>
<section title="&#25991;&#20214;">
<content>
<column width="33.3%">
<section title="&#25991;&#20214;1">
<objectSet source="Fnd0IsDescribedByDocument.DocumentRevision" defaultdisplay="thumbnailDisplay" sortby="object_string" sortdirection="ascending">
<thumbnailDisplay/>
<command actionKey="newBusinessObjectContextualAction" commandId="com.teamcenter.rac.common.AddNew" renderingHint="commandbutton"/>
</objectSet>
</section>
</column>
<column width="33.3%">
<section title="&#25991;&#20214;2">
<objectSet source="Fnd0IsDescribedByDocument.DocumentRevision" defaultdisplay="thumbnailDisplay" sortby="object_string" sortdirection="ascending">
<thumbnailDisplay/>
<command actionKey="newBusinessObjectContextualAction" commandId="com.teamcenter.rac.common.AddNew" renderingHint="commandbutton"/>
</objectSet>

</section>
</column>
<column width="33.4%">
<section title="&#25991;&#20214;3">
<objectSet source="Fnd0IsDescribedByDocument.DocumentRevision" defaultdisplay="thumbnailDisplay" sortby="object_string" sortdirection="ascending">
<thumbnailDisplay/>
<command actionKey="newBusinessObjectContextualAction" commandId="com.teamcenter.rac.common.AddNew" renderingHint="commandbutton"/>
</objectSet>
</section>
</column>
</content>
</section>
</section>
</content>

<content visibleWhen="v9MyCurrentTaskNodeName == &#26657;&#23545;" >
<section title="&#26657;&#23545;">
<section title="&#23646;&#24615;">
<content>
<property name="v9MyCurrentTaskNodeName" renderingHint="label"/>
<property name="item_id" renderingHint="label" required="true"/>
<property name="item_revision_id" renderingHint="label"/>
<property name="object_name"/>
<property name="object_desc"/>
<property name="object_type"/>
</content>
</section>
<section title="&#25991;&#20214;">
<content>
<column width="33.3%">
<section title="&#25991;&#20214;1">
<objectSet source="Fnd0IsDescribedByDocument.DocumentRevision" defaultdisplay="thumbnailDisplay" sortby="object_string" sortdirection="ascending">
<thumbnailDisplay/>
<command actionKey="newBusinessObjectContextualAction" commandId="com.teamcenter.rac.common.AddNew" renderingHint="commandbutton"/>
</objectSet>
</section>
</column>
<column width="33.3%">
<section title="&#25991;&#20214;2">
<objectSet source="Fnd0IsDescribedByDocument.DocumentRevision" defaultdisplay="thumbnailDisplay" sortby="object_string" sortdirection="ascending">
<thumbnailDisplay/>
<command actionKey="newBusinessObjectContextualAction" commandId="com.teamcenter.rac.common.AddNew" renderingHint="commandbutton"/>
</objectSet>

</section>
</column>
<column width="33.4%">
<section title="&#25991;&#20214;3">
<objectSet source="Fnd0IsDescribedByDocument.DocumentRevision" defaultdisplay="thumbnailDisplay" sortby="object_string" sortdirection="ascending">
<thumbnailDisplay/>
<command actionKey="newBusinessObjectContextualAction" commandId="com.teamcenter.rac.common.AddNew" renderingHint="commandbutton"/>
</objectSet>
</section>
</column>
</content>
</section>
</section>
</content>
</page>
<page titleKey="tc_xrt_Overview" visibleWhen="ActiveWorkspace:SubLocation != com.siemens.splm.client.occmgmt:OccurrenceManagementSubLocation and ActiveWorkspace:SubLocation != com.siemens.splm.client.cba.CADBOMAlignment:CBASublocation and {pref:EnterpriseBOM_feature_installed}!=true">

<column width="40%">
<section titleKey="tc_xrt_properties" >
<property name="item_id" renderingHint="label"/>
<property name="item_revision_id" renderingHint="label"/>
<property name="object_name"/>
<property name="object_desc"/>
<property name="object_type"/>
<content visibleWhen="REF(items_tag,Part).fnd0AssemblyIndicator==Configurable Assembly">
<inject type="dataset" src="Smc1VariantConfigContextOnItemRevision"/>
</content>
<content visibleWhen="REF(items_tag,Part).fnd0AssemblyIndicator==Generic Part">
<inject type="dataset" src="Smc1VariantConfigContextOnItemRevision"/>
</content>
<property name="release_status_list" renderingHint="label"/>
<property name="date_released" renderingHint="label"/>
<property name="effectivity_text" renderingHint="label"/>
<inject type="dataset" src="Pma1PartRevSummary"/>
<break/>
<property name="owning_user" renderingHint="objectlink" modifiable="false"/>
<property name="owning_group" renderingHint="objectlink" modifiable="false"/>
<property name="last_mod_user"/>
<property name="checked_out" renderingHint="label"/>
<property name="checked_out_user"/>
<break/>
<property name="fnd0CurrentLocationCode"/>
<inject type="dataset" src="Vm1OriginalLocationCode"/>
<property name="REF(items_tag,Item).GRM(IMAN_reference,PartLogisticsForm).isSerialized" />
<break/>
<command commandId="com.teamcenter.rac.properties" titleKey="tc_xrt_moreProperties"/>
</section>
<inject type="dataset" src="Sci0ItemOverviewPropOnItemRev"/>
<inject type="dataset" src="Sci0ImdsSemiComponent"/>
<inject type="dataset" src="S2clScalarRatingOverview"/>
<content visibleWhen="Cls0ClassifiedBy != null" >
<!-- advanced Classification -->
<inject type="dataset" src="Fnd0ClassificationSummary"/>
</content>
<content visibleWhen="ics_classified != null and Cls0ClassifiedBy == null" >
<!-- traditional Classification -->
<inject type="dataset" src="Fnd0ClassificationSummary"/>
</content>
<content visibleWhen="REFBY(lbr0LibraryObject,Lbr0LibraryElement).lbr0ElementId != null" >
<inject type="dataset" src="Lbr1LibraryInformation"/>
</content>
<inject type="dataset" src="ProjectListInfo"/>
<inject type="dataset" src="LicenseListInfo"/>
</column>
<column width="60%">
<section titleKey="tc_xrt_Preview">
<inject type="dataset" src="Awp0GalleryViewer" module="js/aw-include.directive"/>
</section>
</column>
<column width="100%">
<inject type="dataset" src="Fnd0AlignedDesignsProvider"/>
<inject type="dataset" src="Awp0GlobalAlternatesProvider"/>
<content visibleWhen="REF(items_tag,Part).fnd0AssemblyIndicator==Configurable Assembly">
<inject type="dataset" src="SolutionVariants"/>
</content>
<content visibleWhen="REF(items_tag,Part).fnd0AssemblyIndicator==Generic Part">
<inject type="dataset" src="SolutionVariants"/>
</content>
</column>
</page>
<page titleKey="tc_xrt_Overview" visibleWhen="ActiveWorkspace:SubLocation != com.siemens.splm.client.occmgmt:OccurrenceManagementSubLocation and ActiveWorkspace:SubLocation != com.siemens.splm.client.cba.CADBOMAlignment:CBASublocation and {pref:EnterpriseBOM_feature_installed}==true">
<column width="55%">
<section titleKey="tc_xrt_partProperties">
<property name="item_id" renderingHint="label"/>
<property name="item_revision_id" renderingHint="label"/>
<property name="object_name"/>
<property name="object_desc"/>
<content visibleWhen="REF(items_tag,Part).fnd0AssemblyIndicator==Configurable Assembly">
<inject type="dataset" src="Smc1VariantConfigContextOnItemRevision"/>
</content>
<content visibleWhen="REF(items_tag,Part).fnd0AssemblyIndicator==Generic Part">
<inject type="dataset" src="Smc1VariantConfigContextOnItemRevision"/>
</content>
<property name="object_type"/>
<property name="release_status_list" renderingHint="label"/>
<property name="effectivity_text" renderingHint="label"/>
<inject type="dataset" src="Pma1PartRevSummary"/>
<inject type="dataset" src="Ebm1PartRevSummary"/>
<break/>
<property name="owning_user" renderingHint="objectlink" modifiable="false"/>
<property name="owning_group" renderingHint="objectlink" modifiable="false"/>
<property name="last_mod_user"/>
</section>
<inject type="dataset" src="S2clScalarRatingOverview"/>
<content visibleWhen="Cls0ClassifiedBy != null" >
<!-- advanced Classification -->
<inject type="dataset" src="Fnd0ClassificationSummary"/>
</content>
<content visibleWhen="ics_classified != null and Cls0ClassifiedBy == null" >
<!-- traditional Classification -->
<inject type="dataset" src="Fnd0ClassificationSummary"/>
</content>
<content visibleWhen="REFBY(lbr0LibraryObject,Lbr0LibraryElement).lbr0ElementId != null" >
<inject type="dataset" src="Lbr1LibraryInformation"/>
</content>
</column>
<column width="45%">
<section titleKey="tc_xrt_Preview">
<image source="thumbnail"/>
</section>
</column>
<column width="100%">
<inject type="dataset" src="Fnd0AlignedDesignsProvider"/>
<content visibleWhen="REF(items_tag,Part).fnd0AssemblyIndicator!=Configurable Assembly and REF(items_tag,Part).fnd0AssemblyIndicator!=Generic Part">
<inject type="dataset" src="Ebm1GlobalAlternatesProvider"/>
</content>
<content visibleWhen="REF(items_tag,Part).fnd0AssemblyIndicator==Configurable Assembly">
<inject type="dataset" src="SolutionVariants"/>
</content>
<content visibleWhen="REF(items_tag,Part).fnd0AssemblyIndicator==Generic Part">
<inject type="dataset" src="SolutionVariants"/>
</content>
</column>
</page>
<content visibleWhen="REF(items_tag,Part).fnd0AssemblyIndicator!=Configurable Assembly and REF(items_tag,Part).fnd0AssemblyIndicator!=Generic Part">
<inject type="dataset" src="Vm1PartnerContracts"/>
<inject type="dataset" src="Vm1VendorParts"/>
</content>
<inject type="dataset" src="Fsh1FinishesSection"/>
<inject type="dataset" src="Ads1NotesSection"/>
<inject type="dataset" src="Sm1MadeFromSection"/>
<inject type="preference" src="ClassificationStylesheetTab"/>
<page titleKey="tc_xrt_jt_viewer" visibleWhen="IMAN_Rendering!=null and ActiveWorkspace:SubLocation != com.siemens.splm.client.occmgmt:OccurrenceManagementSubLocation and ActiveWorkspace:SubLocation != com.siemens.splm.client.cba.CADBOMAlignment:CBASublocation">
<image source="preview"/>
</page>
<page titleKey="tc_xrt_jt_viewer" visibleWhen="IMAN_Rendering==null and TC_Primary_Design_Representation!=null and ActiveWorkspace:SubLocation != com.siemens.splm.client.occmgmt:OccurrenceManagementSubLocation and ActiveWorkspace:SubLocation != com.siemens.splm.client.cba.CADBOMAlignment:CBASublocation">
<image source="preview"/>
</page>
<inject type="dataset" src="Smc1JTViewerForPartRevision"/>
<page titleKey="web_whereused">
<column width="100%">
<section titleKey="tc_xrt_UsedInStructures">
<inject type="dataset" src="UsedInStructures"/>
</section>
<content visibleWhen="{pref:QSEARCH_filter_queries_by_product_path}==true and {pref:PSEEnableUOMModifiableOnItem}!=NULL">
<section titleKey="tc_xrt_UsedInStructuresTopLevel">
<inject type="dataset" src="UsedInStructuresTopLevel"/>
</section>
</content>
<htmlPanel declarativeKey="partUsagesTableFullScreen"/>
<!--
// ====================================================================================================
// The following column defines the display for when Active Workspace Structure solution is installed.
// If you have not installed this option, this column should be removed.
// ====================================================================================================
-->
<inject type="dataset" src="Awb0Contexts" />
<inject type="dataset" src="Awp0RelatedDrawings" />
<!--
// ====================================================================================================
// The following column defines the display for when Active Workspace Structure solution is installed.
// If you have not installed this option, this column should be removed.
// ====================================================================================================
-->
<section titleKey="tc_xrt_References">
<objectSet source="Awp0ReferencesProvider.WorkspaceObject" sortdirection="ascending" sortby="object_string" defaultdisplay="tableDisplay">
<thumbnailDisplay/>
<tableDisplay>
<property name="object_string"/>
<property name="object_type"/>
<property name="release_status_list"/>
<property name="date_released"/>
<property name="owning_user"/>
</tableDisplay>
<listDisplay/>
</objectSet>
</section>
</column>
</page>
<page titleKey="attachments">
<section titleKey="tc_xrt_Files">
<objectSet source="IMAN_specification.Dataset,IMAN_reference.Dataset,IMAN_manifestation.Dataset,IMAN_Rendering.Dataset,TC_Attaches.Dataset,IMAN_UG_altrep.Dataset,IMAN_UG_scenario.Dataset,IMAN_Simulation.Dataset,Mci0PMIXmlRel.Dataset" defaultdisplay="listDisplay" sortby="object_string" sortdirection="ascending">
<tableDisplay>
<property name="object_string"/>
<property name="object_type"/>
<property name="relation" modifiable="true"/>
<property name="release_status_list"/>
<property name="date_released"/>
<property name="owning_user"/>
<inject type="dataset" src="Xc1TransactionRecordSummary" />
</tableDisplay>
<thumbnailDisplay/>
<treeDisplay>
<property name="object_string"/>
<property name="object_type"/>
<property name="release_status_list"/>
<property name="date_released"/>
<property name="owning_user"/>
<inject type="dataset" src="Xc1TransactionRecordSummary" />
</treeDisplay>
<listDisplay/>
<command actionKey="newBusinessObjectContextualAction" commandId="com.teamcenter.rac.common.AddNew" renderingHint="commandbutton"/>
<command actionKey="pasteAction" commandId="com.teamcenter.rac.viewer.pastewithContext" renderingHint="commandbutton"/>
<command actionKey="cutAction" commandId="org.eclipse.ui.edit.cut" renderingHint="commandbutton">
<parameter name="localSelection" value="true"/>
</command>
</objectSet>
</section>
<section titleKey="tc_xrt_Documents">
<objectSet source="IMAN_specification.DocumentRevision" sortdirection="ascending" sortby="object_string" defaultdisplay="listDisplay">
<tableDisplay>
<property name="object_string"/>
<property name="object_type"/>
<property name="release_status_list"/>
<property name="date_released"/>
<property name="owning_user"/>
</tableDisplay>
<thumbnailDisplay/>
<treeDisplay>
<property name="object_string"/>
<property name="object_type"/>
<property name="release_status_list"/>
<property name="date_released"/>
<property name="owning_user"/>
</treeDisplay>
<listDisplay/>
<command actionKey="newBusinessObjectContextualAction" commandId="com.teamcenter.rac.common.AddNew" renderingHint="commandbutton"/>
<command actionKey="pasteAction" commandId="com.teamcenter.rac.viewer.pastewithContext" renderingHint="commandbutton"/>
<command actionKey="cutAction" commandId="org.eclipse.ui.edit.cut" renderingHint="commandbutton">
<parameter name="localSelection" value="true"/>
</command>
</objectSet>
</section>
<inject type="dataset" src="Awn0ValidationResultsSummary"/>
<inject type="dataset" src="Cm1PartRevSummaryPrimaryToPrimaryDocRel"/>
</page>
<inject type="dataset" src="Cm1ChangeRelationSummary"/>
<inject type="dataset" src="Ase0SystemRequirementsSubLocation"/>
<inject type="dataset" src="Sci1IMDSTabSummary"/>
<inject type="dataset" src="Sci0Materials"/>
<inject type="dataset" src="Mtw0CompositionTabForItemRevSummary"/>
<inject type="dataset" src="Scw0ComplianceCategoriesSummary"/>
<inject type="dataset" src="Scw0ComplianceInfo"/>
<page titleKey="tc_xrt_History">
<section titleKey="tc_xrt_RevisionHistory">
<objectSet source="revision_list.ItemRevision" sortdirection="descending" sortby="last_mod_date" defaultdisplay="tableDisplay">
<tableDisplay>
<property name="object_string"/>
<property name="release_status_list"/>
<property name="date_released"/>
<property name="fnd0IsRevisionDiscontinued"/>
<content visibleWhen="{pref:Pma0IsReleaseAtLeast143}==true">
<property name="fnd0IsCancelled"/>
</content>
<property name="owning_user"/>
<property name="last_mod_date"/>
</tableDisplay>
<thumbnailDisplay/>
<treeDisplay>
<property name="object_string"/>
<property name="release_status_list"/>
<property name="date_released"/>
<property name="fnd0IsRevisionDiscontinued"/>
<content visibleWhen="{pref:Pma0IsReleaseAtLeast143}==true">
<property name="fnd0IsCancelled"/>
</content>
<property name="owning_user"/>
<property name="last_mod_date"/>
</treeDisplay>
<listDisplay/>
</objectSet>
</section>
<inject type="dataset" src="Cm1ChangeHistorySummary" />
</page>
<inject type="dataset" src="WorkflowSummary" />
<inject type="dataset" src="RelationsSummary" />
<inject type="dataset" src="S2clItemRevSummary"/>
<inject type="dataset" src="Cae1ItemRevSummary"/>
<inject type="dataset" src="Awn0ItemRevSummary"/>
<inject type="preference" src="InContextAnalyticsPref"/>
<inject type="dataset" src="Rb0InContextReportsSubLocation" />
<inject type="dataset" src="AuditLogForItemRev"/>
</rendering>

http://www.jsqmd.com/news/698649/

相关文章:

  • 跪求各位学长学姐用血泪教训推荐几款不坑人的AI论文生成器!
  • 网页内容一键归档:用MarkDownload打造个人知识库
  • 思源黑体TTF:免费商用的多语言字体终极指南
  • 告别配置迷茫!Vivado里SRIO IP核的Buffer深度和流控到底怎么选?
  • Path of Building终极指南:5分钟掌握流放之路最强Build规划神器
  • Kindle Comic Converter终极指南:如何将漫画完美适配电子阅读器?
  • 告别混乱!Qt信号槽连接5种方式保姆级对比(含Qt5/6兼容性指南)
  • MathJax 4.0 核心架构深度解析:数学渲染引擎的三大机制与实战应用
  • ClickHouse安装后必做的5件事:改数据目录、设密码、开远程,让你的数据库更安全好用
  • fre:ac音频转换器:完全免费的开源音频处理工具终极指南
  • 5个理由告诉你:为什么JD-GUI是Java开发者必备的反编译神器
  • IndexedDB实战:构建离线优先Web应用的数据基石
  • 继续教育学生写论文,有哪些好用的 AI 写作工具?真实体验测评
  • 3分钟搞定!GetQzonehistory免费备份QQ空间说说的终极方案
  • 解决NVMe性能波动?一个脚本搞定FIO绑核与NUMA节点自动匹配
  • 抖音无水印下载工具:3分钟快速掌握批量下载技巧
  • 保姆级教程:用Canvas和Web Audio API给个人音乐播放器加个酷炫波形图
  • GetQzonehistory:3分钟一键备份QQ空间所有历史说说的终极指南
  • 通用人工智能(AGI)安全 Harness 前瞻
  • 3步轻松掌握:通达信缠论可视化插件ChanlunX终极使用指南
  • C++26反射特性实战解析:5道大厂真题拆解,30分钟掌握编译期类型自省核心逻辑
  • 操作系统——408考研初试/复试——第一章计算机系统概述疑难问题(二)
  • 从投稿到接收:我的Elsevier Knowledge-Based Systems完整时间线与状态解读
  • 用Cesium for UE5打造你的第一个数字孪生场景:从在线地图到自定义3D Tiles
  • NGA论坛深度用户如何通过模块化脚本重构浏览体验?
  • 保姆级教程:在RK3568开发板上用Nginx-1.20.0搭建RTMP直播服务器(含FFmpeg推流)
  • 终极视频下载助手:三步搞定网页视频离线保存
  • 2026年北京口碑好的装修公司排名,推荐品牌授权材料的三好同创 - 工业推荐榜
  • COCO数据集实战:从零开始的下载、解析与可视化全流程指南
  • Vivado FFT IP核配置避坑指南:从数据格式到AXI时序的实战经验分享