1. Doc長度的擴展
a.通過運行infoReport
wt.doc.WTDocumentMaster命令來獲取當前Doc的name和 number和長度,文件輸出在
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.修改
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
d.重新生成doc.WTDocumentMaster.out,並檢查其中的 getDescendentInfos():下的內容,如
getDescendentInfos():
ClassInfo wt.build.buildtest.SourceMaster
ClassInfo wt.federation.ProxyDocumentMaster
則需在要在Windchill Shell中運行下面的內容
ant -f
ant -f
e.重新生成doc.WTDocumentMaster.out,然后查看其中的 upper_limit是否有改變成之前設置的數值,確認
f.在DB上修改下面欄位字段的長度
WTDocumentMaster的NAME和WTDOCUMENTNUMBER的Data Type改 為VARCHAR2 (450 Byte)
g.重啟應用,則可以建立number不超過150的WTDocument檔案了
2. Part長度的擴展
Part長度的擴展與Doc的類似,需在修改的是
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/22453766/viewspace-660301/ ,如需转载,请注明出处,否则将追究法律责任。