private static List <Indico.BusinessObjects.ReturnDetailReportContentBO> IQueryableToList(IQueryable <Indico.DAL.ReturnDetailReportContent> oQuery) { List <Indico.DAL.ReturnDetailReportContent> oList = oQuery.ToList(); List <Indico.BusinessObjects.ReturnDetailReportContentBO> rList = new List <Indico.BusinessObjects.ReturnDetailReportContentBO>(oList.Count); foreach (Indico.DAL.ReturnDetailReportContent o in oList) { Indico.BusinessObjects.ReturnDetailReportContentBO obj = new Indico.BusinessObjects.ReturnDetailReportContentBO(o); rList.Add(obj); } return(rList); }
internal void SetBO(Indico.BusinessObjects.ReturnDetailReportContentBO obj) { // set this Indico.BusinessObjects.ReturnDetailReportContentBO properties this.MonthAndYear = obj.MonthAndYear; this.DistributorName = obj.DistributorName; this.VLName = obj.VLName; this.SubItemName = obj.SubItemName; this.JobName = obj.JobName; this.Quantity = obj.Quantity; this.QuantityPercentage = obj.QuantityPercentage; this.Value = obj.Value; this.ValuePercentage = obj.ValuePercentage; this.AvgPrice = obj.AvgPrice; }
/// <summary> /// Deserializes Indico.BusinessObjects.ReturnDetailReportContentBO object from an XML representation /// </summary> /// <param name="strXML">a XML string serialized representation</param> public Indico.BusinessObjects.ReturnDetailReportContentBO DeserializeObject(string strXML) { Indico.BusinessObjects.ReturnDetailReportContentBO 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.ReturnDetailReportContentBO)x.Deserialize(objStream); objStream.Close(); return(objTemp); }