Beispiel #1
0
        public static waybill Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient)
        {
            waybill _waybill = new waybill();

            _waybill.m_rocrailClient = rocrailClient;
            _waybill.m_cartype       = (string)xml.Attribute("cartype");
            _waybill.m_commodity     = (string)xml.Attribute("commodity");
            _waybill.m_consignee     = (string)xml.Attribute("consignee");
            _waybill.m_destination   = (string)xml.Attribute("destination");
            _waybill.m_id            = (string)xml.Attribute("id");
            _waybill.m_origin        = (string)xml.Attribute("origin");
            _waybill.m_routing       = (string)xml.Attribute("routing");
            _waybill.m_shipper       = (string)xml.Attribute("shipper");
            _waybill.m_status        = (string)xml.Attribute("status");
            return(_waybill);
        }
Beispiel #2
0
 public void Update(waybill element)
 {
     if (element.m_cartype != null)
     {
         this.cartype = element.cartype;
     }
     if (element.m_commodity != null)
     {
         this.commodity = element.commodity;
     }
     if (element.m_consignee != null)
     {
         this.consignee = element.consignee;
     }
     if (element.m_destination != null)
     {
         this.destination = element.destination;
     }
     if (element.m_id != null)
     {
         this.id = element.id;
     }
     if (element.m_origin != null)
     {
         this.origin = element.origin;
     }
     if (element.m_routing != null)
     {
         this.routing = element.routing;
     }
     if (element.m_shipper != null)
     {
         this.shipper = element.shipper;
     }
     if (element.m_status != null)
     {
         this.status = element.status;
     }
 }