windchill

上传人:壹****1 文档编号:486354962 上传时间:2023-03-05 格式:DOCX 页数:23 大小:1.56MB
返回 下载 相关 举报
windchill_第1页
第1页 / 共23页
windchill_第2页
第2页 / 共23页
windchill_第3页
第3页 / 共23页
windchill_第4页
第4页 / 共23页
windchill_第5页
第5页 / 共23页
点击查看更多>>
资源描述

《windchill》由会员分享,可在线阅读,更多相关《windchill(23页珍藏版)》请在金锄头文库上搜索。

1、Windchill10 笔记本文档为个人所写,如果其中有错误地方还请谅解。并希望发送邮件支持,我会进一步改进。也希望大家多提供其他内容共同学习。邮件地址:张伟邵旭东第一章 URL 1. spring Dispatcher会有一个总的controller做分发,在windchill10中使用spring mvc。在web.xml中在这里MVCDispatcher是中央控制器。对应在WEB-INF下MVCDispatcher-servlet.xml。是这个中央控制器的分发配置。(其中包含了builder、mappings、controller等)classpath:/config/mvc/*-ur

2、lMappings.propertiesclasspath:/config/mvc/custom.properties在项目中,我们客制化后的builder配置是需要加在config/mvc/custom.xml中对应的mapping加在custom.properties中。2.上下文环境。在web.xml中如下,配置了整个项目的上下文环境。在windchill10中配置了dataSourceManager。 Location of Spring root web application context contextConfigLocation config/mvc/applicationC

3、ontext.xml 3URL的分类。在URL中app/用来加载。整个页面中的头,导航和内容区域空白。app/后面的#后面的url是页面内容的页面。这里会用ajax加载进来。(所以普通页面URL会用app/#)如上图,app显示蓝色,#后面的显示红色区域。从现在的url直接看#号后有遇到三种情况(现在认为,有可能有问题)1. ptc1/这种会找对应的action。例子:如product中的文件夹页面。2. ptc1/先对应jsp的地址。例子: 如自定义中工具codebasenetmarketsjspcarambolatools下list.jsp在页面url是app/#ptc1/carambol

4、a/tools/list(需要去掉.jsp)3. ptc1/comp 或 ptc1/tcomp 这个tcomp对应jcamvc component、comp对应的是mvc component。这个具体后面会具体说。4. 其他的在url中没有显示。如打开主页是的http:/ 。然后有个href调用其他url第二章 DEBUG1. Debug 现在windchill10 中Debug有两种,第一种,和过去一样。第二种,在url中的/app/?jcaDebug=1#ptc1这样加上。第二种好处是navigation也处于Debug模式,而且debug不会随着页面跳转而丢失。如上三个页面。在debug

5、中点击对已Action Model Report。出现如下页面然后点击要查看的action可以查看详细的xml文件2Mvc and jcamvc如图所示,现在鼠标移上去,会显示三个。一、componentId说明了对应的builder的id。二、componentconfigbuilder对应id的页面格式配置的java builder类。三、componentDataBuilder对应id的数据来源的java builder类。(二三可以用一个类、或分开写)3新的resource java 类如图,使用annotation RBUUID对应绑定的路径、=号后的对应原.rbinfo中的key、

6、RBEntry对应原来的value。5. resource-properties文件在codebase下action.properties 、action_zh_CN.properties 等一系列文件。资源文件可以在这里写。navigation.csc.icon=navigator_home.pngnavigation.csc.tooltip=CSCnavigation.csc.description=CSC写法通过去的rbinfo一样。第三章 Customize1. 更改页面的CSS(全局样式)1.1用firedebug或其他工具找的对应样式。如页面图标#logoNav.wncApplLo

7、gobackground-image:url(customLogo.png);1.2在codebase下custom文件下新建自己的css。如custom.css。并且这css中写上需要修改的样式。1.3在codebasepresentation.properties.xconf 中注册custom.css2详细页面客制化打开类型和属性管理器-克制的对象-操作-编辑再选择下面的布局-Part More Attributes把需要的显示的属性从左边拖到添加列就可以显示了。点击后面可以详细做克制(如是否已url显示、datautility等)2. Attribute Layouts其中包括新建类型

8、页面、编辑页面、详细信息页面、PSB(即document和part的结构页面类office菜单)克制化需要以下的(暂时没有做过相关内容). Registered JSP New layouts are avoided altogether In favor of a customization employing the olderdescribeTable / describeColumn tags. Registered MVC builder New style of customization where a custom MVC builder is used instead of

9、the defaultsprovided by the Type Manager. Type Manager Fallback when no customization is defined3软属性(4种)3.1标准属性(新的内容)创建之前必须执行相应命令在shell命令中 AddColumns =如AddColumns wt.doc.WTDocument String=10给wtdocument添加10列string类型(这个直接在数据库中添加了列)3.2全局属性(和过去建立软属性一样)打开管理全局属性(其他操作和过去一样)3.3别名属性(不太理解)Alias uses a combina

10、tion of external form and an equation syntax to determine the attribute name=namewt.part.WTPartnumber translates to “the number of the WTPart wherethe name of the part is equal to the name of my specification document.”When displaying the document, the server will look up the attribute on the relate

11、d object and draw it on the page.External Form: Operator takes an OBID attribute and gets the object it refers to Operator change the current object to another WCTYPE operator searches for an object that matches with an OBID parameter that matches the parent . operator Gets an attribute from a 1:1 n

12、avigable aggregation 3.4计算的软属性 String类型的 和java中一样可以用 变量+ string常量的形 如:name+”(”+number+”)” 这样页面会以 名字加number形式显示算数形式的 numA + numB 如写1+1 会显示24. 属性布局 4.1 JCA 客制化从JSP页面和AllClients.xml 移到了类型和属性管理器中5给布局添加新属性 5.1 在“布局”选项卡上选择“创建布局”(eg. New Part Wizard)。 5.2 查看添加的新属性是否在创建布局中。 5.3 如果创建的是“别名属性”或者“计算的属性”,那么从创建布局中移除添加的新属性,因为别名属性和计算属性在创建过程中不需要输入界面。5.4 选择 More Attributes 布局 (eg. Part More Attributes),确保新添加的属性出现在 Available Attributes 或者出现在表格中得默认group中。5.5 将新添加的属性,添加到Business group中,然后保存。那么在对应的详细信息页面就会看到新添加的属性。注:1.在布局中,选择不同的布局,属性会出现在不同的页面2.在布局中选择不同的group,

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 商业/管理/HR > 营销创新

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号