ITPub博客

首页 > Linux操作系统 > Linux操作系统 > windchill中Doc與Part的Name與Number的擴展(1)

windchill中Doc與Part的Name與Number的擴展(1)

原创 Linux操作系统 作者:wgf19830218 时间:2010-04-21 10:50:10 0 删除 编辑
Normal 0 0 2 false false false MicrosoftInternetExplorer4 擴展的前題是必須安裝了Info molder

 

1.     Doc長度的擴展

        a.通過運行infoReport wt.doc.WTDocumentMaster命令來獲取當前Doc的name和   number和長度,文件輸出在/temp目錄下,如D:\ptc\windchill\temp下,名稱為doc.WTDocumentMaster.out

Name的長度設定於下:

{

      getPropertyType()                           : class java.lang.String

    getReadMethod()                             : public java.lang.String wt.doc.WTDocumentMaster.getName()

    getWriteMethod()                            : public void wt.doc.WTDocumentMaster.setName(java.lang.String) throws wt.util.WTPropertyVetoException

    getValue( WTIntrospector.STEREOTYPE )       : null

    getValue( WTIntrospector.DERIVED )          : false

    getValue( WTIntrospector.PERSISTENT )       : true

    getValue( WTIntrospector.QUERY_NAME )       : name

    getValue( WTIntrospector.STRING_CASE )      : null

    getValue( WTIntrospector.INITIAL_VALUE )    : null

    getValue( WTIntrospector.REQUIRED )         : true

    getValue( WTIntrospector.LOWER_LIMIT )      : null

    getValue( WTIntrospector.UPPER_LIMIT )      : 150(長度)

    getValue( WTIntrospector.UPDATEABLE )       : false

    getValue( WTIntrospector.CHANGEABLE )       : ViaOtherMeans

    getValue( WTIntrospector.VALUE_SET_METHOD ) : null

}


Number的長度設定於下:

{

getPropertyType()                           : class java.lang.String

    getReadMethod()                             : public java.lang.String wt.doc.WTDocumentMaster.getNumber()

    getWriteMethod()                            : public void wt.doc.WTDocumentMaster.setNumber(java.lang.String) throws wt.util.WTPropertyVetoException

    getValue( WTIntrospector.STEREOTYPE )       : null

    getValue( WTIntrospector.DERIVED )          : false

    getValue( WTIntrospector.PERSISTENT )       : true

    getValue( WTIntrospector.QUERY_NAME )       : number

    getValue( WTIntrospector.STRING_CASE )      : UpperCase

    getValue( WTIntrospector.INITIAL_VALUE )    : null

    getValue( WTIntrospector.REQUIRED )         : true

    getValue( WTIntrospector.LOWER_LIMIT )      : null

    getValue( WTIntrospector.UPPER_LIMIT )      : 150

    getValue( WTIntrospector.UPDATEABLE )       : false

    getValue( WTIntrospector.CHANGEABLE )       : ViaOtherMeans

    getValue( WTIntrospector.VALUE_SET_METHOD ) : null

    getValue( WTIntrospector.CONSTRAINED_TYPE ) : null

}

       b.修改\wtCustom\wt\doc\ docModel.properties中相應的數值,如果沒有    這些資料夾與屬性文件,需在手動建立

        WTDocumentMaster.number.UpperLimit=150(設定number的長度)

           WTDocument.number.UpperLimit=150(設定number的長度)

           WTDocumentMaster.name.UpperLimit=150(設定name的長度)

           WTDocument.name.UpperLimit=150(設定name的長度)

        c.在Windchill Shell中運行

      ant -f \bin\tools.xml custom_column -Dgen.input=wt.doc.*來使相應的設置生效

      d.重新生成doc.WTDocumentMaster.out,並檢查其中的       getDescendentInfos():下的內容,如

         getDescendentInfos():

            ClassInfo wt.build.buildtest.SourceMaster

            ClassInfo wt.federation.ProxyDocumentMaster

   則需在要在Windchill Shell中運行下面的內容

        ant -f \bin\tools.xml custom_column    -Dgen.input=wt.build.buildtest.SourceMaster

    

     ant -f \bin\tools.xml     custom_column-Dgen.input=wt.federation.ProxyDocumentMaster

     e.重新生成doc.WTDocumentMaster.out,然后查看其中的 upper_limit是否有改變成之前設置的數值,確認  \codebase\wt\doc下的內容是否是當天更新的

   f.在DB上修改下面欄位字段的長度

   WTDocumentMaster的NAME和WTDOCUMENTNUMBER的Data Type改 為VARCHAR2 (450 Byte)

  g.重啟應用,則可以建立number不超過150的WTDocument檔案了

2.      Part長度的擴展

        Part長度的擴展與Doc的類似,需在修改的是\wtCustom\wt\part\ partModel.properties中相應的數值,如果沒有這些資料夾與屬性文件,需在手動建立


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/22453766/viewspace-660301/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2009-09-01

  • 博文量
    38
  • 访问量
    52773