Example #1
0
 //<?xml version="1.0" ?>  
 //<Transaction TxName="CarrierOut" Type="Request" MessageKey="3341"> 
 //  <Tool ToolID="FHT04" /> 
 //  <Carriers>
 //      <Carrier CarrierID="BSW50392" UnloadPortID="L01"></Carrier> 
 //  </Carriers> 
 //</Transaction>
 void ITxMessage.Parse(XElement txElm) {
     XElement carierElm = txElm.Element("Carriers").Element("Carrier");
     Carrier = new Carrier {
         Id = carierElm.Attribute("CarrierID").Value,
         LoadPortId = carierElm.Attribute("UnloadPortID").Value
     };
 }
Example #2
0
 //<?xml version="1.0" ?>  
 //<Transaction TxName="ProceedSlotMap" Type="Request" MessageKey="1213"> 
 //  <Tool ToolID="MAU01" /> 
 //  <Carriers>
 //      <Carrier CarrierID="ASR10483" LoadPurposeType="Process Lot" LoadPortID="L02">
 //          <SlotMap>
 //              <Slot SlotNo="1">BEP527-01</Slot>
 //              <Slot SlotNo="2">BEP527-02</Slot>
 //              <Slot SlotNo="23">BEP527-23</Slot>
 //              <Slot SlotNo="24">BEP527-24</Slot>
 //          </SlotMap> 
 //      </Carrier> 
 //  </Carriers> 
 //</Transaction>
 void ITxMessage.Parse(XElement txElm) {
     XElement carierElm = txElm.Element("Carriers").Element("Carrier");
     Carrier = new Carrier {
         Id = carierElm.Attribute("CarrierID").Value,
         LoadPurposeType = carierElm.Attribute("LoadPurposeType").Value,
         LoadPortId = carierElm.Attribute("LoadPortID").Value,
         SlotMap = from slotElm in carierElm.Element("SlotMap").Elements("Slot")
                   select new SlotInfo {
                       SlotNo = (byte)(int)slotElm.Attribute("SlotNo"),
                       WaferID = slotElm.Value
                   }
     };
 }