internal void SetBO(Indico.BusinessObjects.ReturnOrderDetailsIndicoPriceViewBO obj)
 {
     // set this Indico.BusinessObjects.ReturnOrderDetailsIndicoPriceViewBO properties
     this.OrderDetail        = obj.OrderDetail;
     this.OrderType          = obj.OrderType;
     this.VisualLayout       = obj.VisualLayout;
     this.VisualLayoutID     = obj.VisualLayoutID;
     this.ArtWorkID          = obj.ArtWorkID;
     this.Pattern            = obj.Pattern;
     this.PatternID          = obj.PatternID;
     this.FabricID           = obj.FabricID;
     this.Distributor        = obj.Distributor;
     this.Fabric             = obj.Fabric;
     this.VisualLayoutNotes  = obj.VisualLayoutNotes;
     this.Order              = obj.Order;
     this.Label              = obj.Label;
     this.Status             = obj.Status;
     this.StatusID           = obj.StatusID;
     this.ShipmentDate       = obj.ShipmentDate;
     this.SheduledDate       = obj.SheduledDate;
     this.IsRepeat           = obj.IsRepeat;
     this.RequestedDate      = obj.RequestedDate;
     this.EditedPrice        = obj.EditedPrice;
     this.EditedPriceRemarks = obj.EditedPriceRemarks;
     this.Quantity           = obj.Quantity;
     this.EditedIndicoPrice  = obj.EditedIndicoPrice;
     this.TotalIndicoPrice   = obj.TotalIndicoPrice;
     this.Surcharge          = obj.Surcharge;
 }
        private static List <Indico.BusinessObjects.ReturnOrderDetailsIndicoPriceViewBO> IQueryableToList(IQueryable <Indico.DAL.ReturnOrderDetailsIndicoPriceView> oQuery)
        {
            List <Indico.DAL.ReturnOrderDetailsIndicoPriceView> oList = oQuery.ToList();
            List <Indico.BusinessObjects.ReturnOrderDetailsIndicoPriceViewBO> rList = new List <Indico.BusinessObjects.ReturnOrderDetailsIndicoPriceViewBO>(oList.Count);

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