private static List <Indico.BusinessObjects.ReturnIndimanPriceListDataViewBO> IQueryableToList(IQueryable <Indico.DAL.ReturnIndimanPriceListDataView> oQuery) { List <Indico.DAL.ReturnIndimanPriceListDataView> oList = oQuery.ToList(); List <Indico.BusinessObjects.ReturnIndimanPriceListDataViewBO> rList = new List <Indico.BusinessObjects.ReturnIndimanPriceListDataViewBO>(oList.Count); foreach (Indico.DAL.ReturnIndimanPriceListDataView o in oList) { Indico.BusinessObjects.ReturnIndimanPriceListDataViewBO obj = new Indico.BusinessObjects.ReturnIndimanPriceListDataViewBO(o); rList.Add(obj); } return(rList); }
/// <summary> /// Deserializes Indico.BusinessObjects.ReturnIndimanPriceListDataViewBO object from an XML representation /// </summary> /// <param name="strXML">a XML string serialized representation</param> public Indico.BusinessObjects.ReturnIndimanPriceListDataViewBO DeserializeObject(string strXML) { Indico.BusinessObjects.ReturnIndimanPriceListDataViewBO 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.ReturnIndimanPriceListDataViewBO)x.Deserialize(objStream); objStream.Close(); return(objTemp); }
internal void SetBO(Indico.BusinessObjects.ReturnIndimanPriceListDataViewBO obj) { // set this Indico.BusinessObjects.ReturnIndimanPriceListDataViewBO properties this.SportsCategory = obj.SportsCategory; this.OtherCategories = obj.OtherCategories; this.PatternID = obj.PatternID; this.ItemSubCategoris = obj.ItemSubCategoris; this.NickName = obj.NickName; this.FabricName = obj.FabricName; this.FabricCodenNickName = obj.FabricCodenNickName; this.Number = obj.Number; this.ConvertionFactor = obj.ConvertionFactor; this.Price = obj.Price; this.PriceLevelCost = obj.PriceLevelCost; this.PriceLevel = obj.PriceLevel; this.FactoryCost = obj.FactoryCost; this.IndimanCost = obj.IndimanCost; this.Distribuotor = obj.Distribuotor; this.Markup = obj.Markup; this.EditedCIFPrice = obj.EditedCIFPrice; this.EditedFOBPrice = obj.EditedFOBPrice; this.ModifiedDate = obj.ModifiedDate; }