private static List <Indico.BusinessObjects.QuotesDetailsViewBO> IQueryableToList(IQueryable <Indico.DAL.QuotesDetailsView> oQuery) { List <Indico.DAL.QuotesDetailsView> oList = oQuery.ToList(); List <Indico.BusinessObjects.QuotesDetailsViewBO> rList = new List <Indico.BusinessObjects.QuotesDetailsViewBO>(oList.Count); foreach (Indico.DAL.QuotesDetailsView o in oList) { Indico.BusinessObjects.QuotesDetailsViewBO obj = new Indico.BusinessObjects.QuotesDetailsViewBO(o); rList.Add(obj); } return(rList); }
internal void SetBO(Indico.BusinessObjects.QuotesDetailsViewBO obj) { // set this Indico.BusinessObjects.QuotesDetailsViewBO properties this.Quote = obj.Quote; this.DateQuoted = obj.DateQuoted; this.QuoteExpiryDate = obj.QuoteExpiryDate; this.ClietEMail = obj.ClietEMail; this.JobName = obj.JobName; this.Status = obj.Status; this.ContactName = obj.ContactName; this.Creator = obj.Creator; this.CreatorID = obj.CreatorID; this.Distributor = obj.Distributor; }
/// <summary> /// Deserializes Indico.BusinessObjects.QuotesDetailsViewBO object from an XML representation /// </summary> /// <param name="strXML">a XML string serialized representation</param> public Indico.BusinessObjects.QuotesDetailsViewBO DeserializeObject(string strXML) { Indico.BusinessObjects.QuotesDetailsViewBO 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.QuotesDetailsViewBO)x.Deserialize(objStream); objStream.Close(); return(objTemp); }