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

            foreach (Indico.DAL.LabelPatternPriceLevelCostView o in oList)
            {
                Indico.BusinessObjects.LabelPatternPriceLevelCostViewBO obj = new Indico.BusinessObjects.LabelPatternPriceLevelCostViewBO(o);
                rList.Add(obj);
            }
            return(rList);
        }
 internal void SetBO(Indico.BusinessObjects.LabelPatternPriceLevelCostViewBO obj)
 {
     // set this Indico.BusinessObjects.LabelPatternPriceLevelCostViewBO properties
     this.ID             = obj.ID;
     this.Price          = obj.Price;
     this.PriceLevel     = obj.PriceLevel;
     this.FactoryCost    = obj.FactoryCost;
     this.IndimanCost    = obj.IndimanCost;
     this.Label          = obj.Label;
     this.Markup         = obj.Markup;
     this.EditedCIFPrice = obj.EditedCIFPrice;
     this.EditedFOBPrice = obj.EditedFOBPrice;
     this.ModifiedDate   = obj.ModifiedDate;
 }
        /// <summary>
        /// Deserializes Indico.BusinessObjects.LabelPatternPriceLevelCostViewBO object from an XML representation
        /// </summary>
        /// <param name="strXML">a XML string serialized representation</param>
        public Indico.BusinessObjects.LabelPatternPriceLevelCostViewBO DeserializeObject(string strXML)
        {
            Indico.BusinessObjects.LabelPatternPriceLevelCostViewBO 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.LabelPatternPriceLevelCostViewBO)x.Deserialize(objStream);
            objStream.Close();
            return(objTemp);
        }