Exemple #1
0
 internal void SetBO(Indico.BusinessObjects.GetMeasureLocForPatternSizeViewBO obj)
 {
     // set this Indico.BusinessObjects.GetMeasureLocForPatternSizeViewBO properties
     this.Pattern  = obj.Pattern;
     this.Size     = obj.Size;
     this.SizeName = obj.SizeName;
     this.SeqNo    = obj.SeqNo;
     this.Key      = obj.Key;
     this.Name     = obj.Name;
     this.Val      = obj.Val;
 }
Exemple #2
0
        private static List <Indico.BusinessObjects.GetMeasureLocForPatternSizeViewBO> IQueryableToList(IQueryable <Indico.DAL.GetMeasureLocForPatternSizeView> oQuery)
        {
            List <Indico.DAL.GetMeasureLocForPatternSizeView> oList = oQuery.ToList();
            List <Indico.BusinessObjects.GetMeasureLocForPatternSizeViewBO> rList = new List <Indico.BusinessObjects.GetMeasureLocForPatternSizeViewBO>(oList.Count);

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