Ejemplo n.º 1
0
        private static List <Indico.BusinessObjects.ExcelPriceLevelCostViewBO> IQueryableToList(IQueryable <Indico.DAL.ExcelPriceLevelCostView> oQuery)
        {
            List <Indico.DAL.ExcelPriceLevelCostView> oList = oQuery.ToList();
            List <Indico.BusinessObjects.ExcelPriceLevelCostViewBO> rList = new List <Indico.BusinessObjects.ExcelPriceLevelCostViewBO>(oList.Count);

            foreach (Indico.DAL.ExcelPriceLevelCostView o in oList)
            {
                Indico.BusinessObjects.ExcelPriceLevelCostViewBO obj = new Indico.BusinessObjects.ExcelPriceLevelCostViewBO(o);
                rList.Add(obj);
            }
            return(rList);
        }
Ejemplo n.º 2
0
 internal void SetBO(Indico.BusinessObjects.ExcelPriceLevelCostViewBO obj)
 {
     // set this Indico.BusinessObjects.ExcelPriceLevelCostViewBO properties
     this.PriceID             = obj.PriceID;
     this.SportsCategory      = obj.SportsCategory;
     this.OtherCategories     = obj.OtherCategories;
     this.PatternID           = obj.PatternID;
     this.ItemSubCategoris    = obj.ItemSubCategoris;
     this.NickName            = obj.NickName;
     this.FabricCodeName      = obj.FabricCodeName;
     this.FabricCodenNickName = obj.FabricCodenNickName;
     this.Number           = obj.Number;
     this.ConvertionFactor = obj.ConvertionFactor;
 }
Ejemplo n.º 3
0
        /// <summary>
        /// Deserializes Indico.BusinessObjects.ExcelPriceLevelCostViewBO object from an XML representation
        /// </summary>
        /// <param name="strXML">a XML string serialized representation</param>
        public Indico.BusinessObjects.ExcelPriceLevelCostViewBO DeserializeObject(string strXML)
        {
            Indico.BusinessObjects.ExcelPriceLevelCostViewBO 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.ExcelPriceLevelCostViewBO)x.Deserialize(objStream);
            objStream.Close();
            return(objTemp);
        }