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

            foreach (Indico.DAL.ReturnDownloadPriceListView o in oList)
            {
                Indico.BusinessObjects.ReturnDownloadPriceListViewBO obj = new Indico.BusinessObjects.ReturnDownloadPriceListViewBO(o);
                rList.Add(obj);
            }
            return(rList);
        }
Exemplo n.º 2
0
 internal void SetBO(Indico.BusinessObjects.ReturnDownloadPriceListViewBO obj)
 {
     // set this Indico.BusinessObjects.ReturnDownloadPriceListViewBO properties
     this.Distributor      = obj.Distributor;
     this.Label            = obj.Label;
     this.Name             = obj.Name;
     this.PriceTerm        = obj.PriceTerm;
     this.EditedPrice      = obj.EditedPrice;
     this.CreativeDesign   = obj.CreativeDesign;
     this.StudioDesign     = obj.StudioDesign;
     this.ThirdPartyDesign = obj.ThirdPartyDesign;
     this.Position1        = obj.Position1;
     this.Position2        = obj.Position2;
     this.Position3        = obj.Position3;
     this.FileName         = obj.FileName;
     this.CreatedDate      = obj.CreatedDate;
 }
Exemplo n.º 3
0
        /// <summary>
        /// Deserializes Indico.BusinessObjects.ReturnDownloadPriceListViewBO object from an XML representation
        /// </summary>
        /// <param name="strXML">a XML string serialized representation</param>
        public Indico.BusinessObjects.ReturnDownloadPriceListViewBO DeserializeObject(string strXML)
        {
            Indico.BusinessObjects.ReturnDownloadPriceListViewBO 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.ReturnDownloadPriceListViewBO)x.Deserialize(objStream);
            objStream.Close();
            return(objTemp);
        }