00197198-02_XML-Import-SetupCenter-5.1 - 第16页
Setup Center 5. 1 - X ML Import 16 of 22 3.3 Examples The following exam ple shows a f ile, which create s a new packaging unit in the database. <? xml v ersion ="1.0" encoding ="utf- 8" ?> <…
Setup Center 5.1 - XML Import
15 of 22
At least one of the two fields "Quantity" and "OriginalQuantity" must be defined during creation of a
packaging unit.The following combinations are possible: 4
Only "OriginalQuantity"
The same value is entered in the packaging unit for “OriginalQuantity” and “Quantity”.
Only "Quantity"
The same value is entered in the packaging unit for “OriginalQuantity” and “Quantity”.
"OriginalQuantity" and "Quantity":
The values are entered accordingly in the fields, provided that the “Quantity” is less than the
“OriginalQuantity”. Otherwise the “OriginalQuantity” will be adjusted to the value of the
“Quantity”. If the “Quantity” will be adjusted, the XML import informs the user via notification
window.
MsdLevel/MsdOpenDate:
Default MSD level is "1".
Setup Center sets the open date (MsdOpenDate) during set, refill, activate of a packaging
unit. The MsdOpenDate is only actualized, if the field is set to date 1.1.1900 00:00:00 or
lower.
Setup Center checks the MSD during set, refill, activate and filling level change at the
station.
The process of the MSD check:
MSD Open Date + MSD Level time <= Current System Time
If the open date + level time is lower than or equal to the current system time, Setup Center
does nothing. If the open date + level time is greater than the current system time, Setup
Center sends an error message and don’t allow to finish the action set/refill or tear down
the packaging unit from the feeder.
Setup Center 5.1 - XML Import
16 of 22
3.3 Examples
The following example shows a file, which creates a new packaging unit in the database.
<?xml version="1.0" encoding="utf-8" ?>
<PackagingList ImportVersion="1.0.1.1">
<Packaging
IdPackaging="X0000001"
ComponentName="Component01"
ComponentBarcode=""
OriginalQuantity="100"
Quantity="100"
Manufacturer="Manufacturer01"
ManufactureDate="2004-01-01T14:44:56+01:00"
ExpiryDate="2010-12-31T14:44:56+01:00"
Supplier="Supplier01"
BatchId="Batch01"
DeliveryNote="Serial01"
MsdLevel="1"
MsdOpenDate="1900-01-01T00:00:00+01:00"
Extra1="Extra01"
Extra2="Extra02"
Extra3="Extra03"
Comment="Creates a new packaging unit in the Setup Center database" />
</PackagingList>
The following example shows a file, which updates the quantity of an existing packaging unit in the
database.
<?xml version="1.0" encoding="utf-8" ?>
<PackagingList ImportVersion="1.0.2.1">
<Packaging
IdPackaging="X0000001"
ComponentName="Component01"
ComponentBarcode=""
Quantity="55" />
</PackagingList>
Setup Center 5.1 - XML Import
17 of 22
The following example shows a file, which updates the MSD open date of an existing packaging
unit in the database.
<?xml version="1.0" encoding="utf-8" ?>
<PackagingList ImportVersion="1.0.3.1">
<Packaging
IdPackaging="X0000001"
ComponentName="Component01"
ComponentBarcode=""
MsdOpenDate="2007-12-01T09:00:00+01:00"
</PackagingList>