コード例 #1
0
        private static List <Indico.BusinessObjects.ReturnVisualLayoutDetailsViewBO> IQueryableToList(IQueryable <Indico.DAL.ReturnVisualLayoutDetailsView> oQuery)
        {
            List <Indico.DAL.ReturnVisualLayoutDetailsView> oList = oQuery.ToList();
            List <Indico.BusinessObjects.ReturnVisualLayoutDetailsViewBO> rList = new List <Indico.BusinessObjects.ReturnVisualLayoutDetailsViewBO>(oList.Count);

            foreach (Indico.DAL.ReturnVisualLayoutDetailsView o in oList)
            {
                Indico.BusinessObjects.ReturnVisualLayoutDetailsViewBO obj = new Indico.BusinessObjects.ReturnVisualLayoutDetailsViewBO(o);
                rList.Add(obj);
            }
            return(rList);
        }
コード例 #2
0
        /// <summary>
        /// Deserializes Indico.BusinessObjects.ReturnVisualLayoutDetailsViewBO object from an XML representation
        /// </summary>
        /// <param name="strXML">a XML string serialized representation</param>
        public Indico.BusinessObjects.ReturnVisualLayoutDetailsViewBO DeserializeObject(string strXML)
        {
            Indico.BusinessObjects.ReturnVisualLayoutDetailsViewBO 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.ReturnVisualLayoutDetailsViewBO)x.Deserialize(objStream);
            objStream.Close();
            return(objTemp);
        }
コード例 #3
0
 internal void SetBO(Indico.BusinessObjects.ReturnVisualLayoutDetailsViewBO obj)
 {
     // set this Indico.BusinessObjects.ReturnVisualLayoutDetailsViewBO properties
     this.VisualLayout      = obj.VisualLayout;
     this.Name              = obj.Name;
     this.Description       = obj.Description;
     this.Pattern           = obj.Pattern;
     this.Fabric            = obj.Fabric;
     this.Client            = obj.Client;
     this.Distributor       = obj.Distributor;
     this.Coordinator       = obj.Coordinator;
     this.NNPFilePath       = obj.NNPFilePath;
     this.CreatedDate       = obj.CreatedDate;
     this.IsCommonProduct   = obj.IsCommonProduct;
     this.ResolutionProfile = obj.ResolutionProfile;
     this.Printer           = obj.Printer;
     this.SizeSet           = obj.SizeSet;
     this.OrderDetails      = obj.OrderDetails;
 }