internal void SetBO(Indico.BusinessObjects.ReturnShiipingDetailsViewBO obj)
 {
     // set this Indico.BusinessObjects.ReturnShiipingDetailsViewBO properties
     this.OrderDetail       = obj.OrderDetail;
     this.OrderType         = obj.OrderType;
     this.VisualLayout      = obj.VisualLayout;
     this.PatternID         = obj.PatternID;
     this.Pattern           = obj.Pattern;
     this.FabricID          = obj.FabricID;
     this.Fabric            = obj.Fabric;
     this.VisualLayoutNotes = obj.VisualLayoutNotes;
     this.Order             = obj.Order;
     this.OrderDetailStatus = obj.OrderDetailStatus;
     this.ShipmentDate      = obj.ShipmentDate;
     this.SheduledDate      = obj.SheduledDate;
     this.RequestedDate     = obj.RequestedDate;
     this.Quantity          = obj.Quantity;
     this.PurONo            = obj.PurONo;
     this.Distributor       = obj.Distributor;
     this.Coordinator       = obj.Coordinator;
     this.Client            = obj.Client;
     this.OrderStatus       = obj.OrderStatus;
     this.Item     = obj.Item;
     this.SubItem  = obj.SubItem;
     this.Category = obj.Category;
 }
        private static List <Indico.BusinessObjects.ReturnShiipingDetailsViewBO> IQueryableToList(IQueryable <Indico.DAL.ReturnShiipingDetailsView> oQuery)
        {
            List <Indico.DAL.ReturnShiipingDetailsView> oList = oQuery.ToList();
            List <Indico.BusinessObjects.ReturnShiipingDetailsViewBO> rList = new List <Indico.BusinessObjects.ReturnShiipingDetailsViewBO>(oList.Count);

            foreach (Indico.DAL.ReturnShiipingDetailsView o in oList)
            {
                Indico.BusinessObjects.ReturnShiipingDetailsViewBO obj = new Indico.BusinessObjects.ReturnShiipingDetailsViewBO(o);
                rList.Add(obj);
            }
            return(rList);
        }
        /// <summary>
        /// Deserializes Indico.BusinessObjects.ReturnShiipingDetailsViewBO object from an XML representation
        /// </summary>
        /// <param name="strXML">a XML string serialized representation</param>
        public Indico.BusinessObjects.ReturnShiipingDetailsViewBO DeserializeObject(string strXML)
        {
            Indico.BusinessObjects.ReturnShiipingDetailsViewBO 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.ReturnShiipingDetailsViewBO)x.Deserialize(objStream);
            objStream.Close();
            return(objTemp);
        }