예제 #1
0
 internal void SetBO(Indico.BusinessObjects.PackingListViewBO obj)
 {
     // set this Indico.BusinessObjects.PackingListViewBO properties
     this.PackingList = obj.PackingList;
     this.WeeklyProductionCapacity = obj.WeeklyProductionCapacity;
     this.CartonNo            = obj.CartonNo;
     this.OrderNumber         = obj.OrderNumber;
     this.OrderDetail         = obj.OrderDetail;
     this.VLName              = obj.VLName;
     this.Pattern             = obj.Pattern;
     this.Distributor         = obj.Distributor;
     this.Client              = obj.Client;
     this.WeekendDate         = obj.WeekendDate;
     this.PackingTotal        = obj.PackingTotal;
     this.ScannedTotal        = obj.ScannedTotal;
     this.ShimentModeID       = obj.ShimentModeID;
     this.ShipmentMode        = obj.ShipmentMode;
     this.CompanyName         = obj.CompanyName;
     this.Address             = obj.Address;
     this.Suberb              = obj.Suberb;
     this.State               = obj.State;
     this.PostCode            = obj.PostCode;
     this.Country             = obj.Country;
     this.ContactDetails      = obj.ContactDetails;
     this.IsWeeklyShipment    = obj.IsWeeklyShipment;
     this.IsAdelaideWareHouse = obj.IsAdelaideWareHouse;
     this.ShipTo              = obj.ShipTo;
 }
예제 #2
0
        private static List <Indico.BusinessObjects.PackingListViewBO> IQueryableToList(IQueryable <Indico.DAL.PackingListView> oQuery)
        {
            List <Indico.DAL.PackingListView> oList = oQuery.ToList();
            List <Indico.BusinessObjects.PackingListViewBO> rList = new List <Indico.BusinessObjects.PackingListViewBO>(oList.Count);

            foreach (Indico.DAL.PackingListView o in oList)
            {
                Indico.BusinessObjects.PackingListViewBO obj = new Indico.BusinessObjects.PackingListViewBO(o);
                rList.Add(obj);
            }
            return(rList);
        }
예제 #3
0
        /// <summary>
        /// Deserializes Indico.BusinessObjects.PackingListViewBO object from an XML representation
        /// </summary>
        /// <param name="strXML">a XML string serialized representation</param>
        public Indico.BusinessObjects.PackingListViewBO DeserializeObject(string strXML)
        {
            Indico.BusinessObjects.PackingListViewBO objTemp = null;
            System.Xml.XmlDocument objXML = new System.Xml.XmlDocument();

            objXML.LoadXml(strXML);
            System.Text.Encoding encoding = System.Text.Encoding.UTF8;

            System.IO.MemoryStream objStream = new System.IO.MemoryStream();
            byte[] b = encoding.GetBytes(objXML.OuterXml);

            objStream.Write(b, 0, (int)b.Length);
            objStream.Position = 0;
            System.Xml.Serialization.XmlSerializer x = new System.Xml.Serialization.XmlSerializer(this.GetType());

            objTemp = (Indico.BusinessObjects.PackingListViewBO)x.Deserialize(objStream);
            objStream.Close();
            return(objTemp);
        }