範例 XML 檔案
以下 XML 檔案範本將說明如何在 Windchill Supplier Management 中載入所需的物件類型。
用於匯入廠商零件的 XML 檔案
本 XML 檔案可用來載入廠商零件 (suma_vendor_part_1)。
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE VendorPart SYSTEM "standardX10.dtd">
<VendorPart>
<ObjectID/>
<number>SUMA_VP_000001</number>
<name>suma_vendor_part_1</name>
<defaultUnit>ea</defaultUnit>
<endItem>false</endItem>
<defaultTraceCode>0</defaultTraceCode>
<genericType>standard</genericType>
<partType>separable</partType>
<partSource>buy</partSource>
<domainName>/Default</domainName>
<folderPath>/Default</folderPath>
<view>((null))</view>
<versionInfo>
<versionId>A</versionId>
<iterationId>1</iterationId>
<versionLevel>1</versionLevel>
<series>wt.series.HarvardSeries</series>
</versionInfo>
<lifecycleInfo>
<lifecycleTemplateName>Default</lifecycleTemplateName>
<lifecycleState>INWORK</lifecycleState>
</lifecycleInfo>
<teamIdentity>Default</teamIdentity>
<externalTypeId>WCTYPE|com.ptc.windchill.suma.part.ManufacturerPart</externalTypeId>
<supplierName>My Vendor A</supplierName>
</VendorPart>
用於匯入製造商零件的 XML 檔案
本 XML 檔案可用來載入製造商零件 (suma_manuf_part_1)。
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE ManufacturerPart SYSTEM "standardX10.dtd">
<ManufacturerPart>
<ObjectID/>
<number>SUMA_MP_000001</number>
<name>suma_manuf_part_1</name>
<defaultUnit>ea</defaultUnit>
<endItem>false</endItem>
<defaultTraceCode>0</defaultTraceCode>
<genericType>standard</genericType>
<partType>separable</partType>
<partSource>buy</partSource>
<domainName>/Default</domainName>
<folderPath>/Default</folderPath>
<view>((null))</view>
<versionInfo>
<versionId>A</versionId>
<iterationId>1</iterationId>
<versionLevel>1</versionLevel>
<series>wt.series.HarvardSeries</series>
</versionInfo>
<lifecycleInfo>
<lifecycleTemplateName>Default</lifecycleTemplateName>
<lifecycleState>INWORK</lifecycleState>
</lifecycleInfo>
<teamIdentity>Default</teamIdentity>
<externalTypeId>WCTYPE|com.ptc.windchill.suma.part.ManufacturerPart</externalTypeId>
<supplierName>My Manufacturer A</supplierName>
</ManufacturerPart>
用於匯入 Sourcing 前後關聯的 XML 檔案
本 XML 檔案範本可用來載入 sourcing 前後關聯 (此範例中為 context_x10)。
|
AXLContext 元素代表可由貴組織使用的 sourcing 前後關聯。
|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE AXLContext SYSTEM "standardX10.dtd">
<AXLContext>
<ObjectID/>
<name>context_x10</name>
<description>context_x10 in My Organization</description>
<objectContainerPath>/wt.inf.container.OrgContainer=My Organization</objectContainerPath>
</AXLContext>
用於匯入 AML 和 AVL 內項目的 XML 檔案
本 XML 檔案範本可用來載入 sourcing 前後關聯 "context_x10" 中所定義的 OEM 零件 (此範例中為 suma_oem_part_1)、製造商零件 (此範例中為 SUMA_MP_000001) 和廠商零件 (此範例中為 SUMA_VP_000001) 間的關係。
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE AXLEntry SYSTEM "standardX10.dtd">
<AXLEntry>
<ObjectID/>
<OEMPartAXLInfo>
<WTPartRef>
<ObjectID/>
<objectContainerPath>/wt.inf.container.OrgContainer=
My Organization/wt.inf.library.WTLibrary=MyProduct
</objectContainerPath>
<number>SUMA_OEM_0000001</number>
<name>suma_oem_part_1</name>
<endItem>false</endItem>
<defaultTraceCode>0</defaultTraceCode>
<genericType>standard</genericType>
<partType>separable</partType>
<partSource>make</partSource>
<versionInfo>
<versionId>A</versionId>
<iterationId>1</iterationId>
<versionLevel>1</versionLevel>
<series>wt.series.HarvardSeries</series>
</versionInfo>
</WTPartRef>
</OEMPartAXLInfo>
<AXLContextRef>
<ObjectID/>
<name>context_x10</name>
<objectContainerPath>/wt.inf.container.OrgContainer=My Organization</objectContainerPath>
</AXLContextRef>
<ManufacturerPartAXLInfo>
<WTPartMasterRef>
<ObjectID/>
<className>com.ptc.windchill.suma.part.ManufacturerPartMaster</className>
<number>SUMA_MP_000001</number>
<objectContainerPath>/wt.inf.container.OrgContainer=
My Organization/wt.inf.library.WTLibrary
=MyLibrary</objectContainerPath>
</WTPartMasterRef>
<AXLPreferenceValue>20</AXLPreferenceValue>
</ManufacturerPartAXLInfo>
<VendorPartAXLInfo>
<WTPartMasterRef>
<ObjectID/>
<className>com.ptc.windchill.suma.part.VendorPartMaster</className>
<number>SUMA_VP_000001</number>
<objectContainerPath>/wt.inf.container.OrgContainer=
My Organization/wt.inf.library.WTLibrary=MyLibrary</objectContainerPath>
</WTPartMasterRef>
<AXLPreferenceValue>20</AXLPreferenceValue>
</VendorPartAXLInfo>
</AXLEntry>
用於匯入 AVL 內項目的 XML 檔案
本 XML 檔案範本可用來載入在定義的前後關聯中 (此範例中為 context_x10),OEM 零件 (此範例中為 SUMA_OEM_0000001) 和廠商零件 (此範例中為 SUMA_VP_000001) 間的關係 (由 AXLEntry 元素定義)。
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE AXLEntry SYSTEM "standardX10.dtd">
<AXLEntry>
<ObjectID/>
<OEMPartAXLInfo>
<WTPartRef>
<ObjectID/>
<objectContainerPath>/wt.inf.container.OrgContainer=My Organization/wt.inf.library.WTLibrary=MyProduct</objectContainerPath>
<number>SUMA_OEM_0000001</number>
<name>suma_oem_part_1</name>
<endItem>false</endItem>
<defaultTraceCode>0</defaultTraceCode>
<genericType>standard</genericType>
<partType>separable</partType>
<partSource>make</partSource>
<versionInfo>
<versionId>A</versionId>
<iterationId>1</iterationId>
<versionLevel>1</versionLevel>
<series>wt.series.HarvardSeries</series>
</versionInfo>
</WTPartRef>
</OEMPartAXLInfo>
<AXLContextRef>
<ObjectID/>
<name>context_x10</name>
<objectContainerPath>/wt.inf.container.OrgContainer=My Organization</objectContainerPath>
</AXLContextRef>
<VendorPartAXLInfo>
<WTPartMasterRef>
<ObjectID/>
<className>com.ptc.windchill.suma.part.VendorPartMaster</className>
<number>SUMA_VP_000001</number>
<objectContainerPath>/wt.inf.container.OrgContainer=My Organization/wt.inf.library.WTLibrary=MyLibrary</objectContainerPath>
</WTPartMasterRef>
<AXLPreferenceValue>20</AXLPreferenceValue>
</VendorPartAXLInfo>
</AXLEntry>