private static List <Indico.BusinessObjects.ReturnCartonsDetailsViewBO> IQueryableToList(IQueryable <Indico.DAL.ReturnCartonsDetailsView> oQuery)
        {
            List <Indico.DAL.ReturnCartonsDetailsView> oList = oQuery.ToList();
            List <Indico.BusinessObjects.ReturnCartonsDetailsViewBO> rList = new List <Indico.BusinessObjects.ReturnCartonsDetailsViewBO>(oList.Count);

            foreach (Indico.DAL.ReturnCartonsDetailsView o in oList)
            {
                Indico.BusinessObjects.ReturnCartonsDetailsViewBO obj = new Indico.BusinessObjects.ReturnCartonsDetailsViewBO(o);
                rList.Add(obj);
            }
            return(rList);
        }
 internal void SetBO(Indico.BusinessObjects.ReturnCartonsDetailsViewBO obj)
 {
     // set this Indico.BusinessObjects.ReturnCartonsDetailsViewBO properties
     this.Carton        = obj.Carton;
     this.FillQty       = obj.FillQty;
     this.TotalQty      = obj.TotalQty;
     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.ShimentModeID = obj.ShimentModeID;
     this.ShipmentMode  = obj.ShipmentMode;
     this.ShipTo        = obj.ShipTo;
 }
        /// <summary>
        /// Deserializes Indico.BusinessObjects.ReturnCartonsDetailsViewBO object from an XML representation
        /// </summary>
        /// <param name="strXML">a XML string serialized representation</param>
        public Indico.BusinessObjects.ReturnCartonsDetailsViewBO DeserializeObject(string strXML)
        {
            Indico.BusinessObjects.ReturnCartonsDetailsViewBO 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.ReturnCartonsDetailsViewBO)x.Deserialize(objStream);
            objStream.Close();
            return(objTemp);
        }