internal void SetBO(Indico.BusinessObjects.ReturnDistributorDetailsViewBO obj) { // set this Indico.BusinessObjects.ReturnDistributorDetailsViewBO properties this.Distributor = obj.Distributor; this.Type = obj.Type; this.IsDistributor = obj.IsDistributor; this.Name = obj.Name; this.Number = obj.Number; this.Address1 = obj.Address1; this.Address2 = obj.Address2; this.City = obj.City; this.State = obj.State; this.PostCode = obj.PostCode; this.Country = obj.Country; this.Phone1 = obj.Phone1; this.Phone2 = obj.Phone2; this.Fax = obj.Fax; this.NickName = obj.NickName; this.PrimaryCoordinator = obj.PrimaryCoordinator; this.Owner = obj.Owner; this.Creator = obj.Creator; this.CreatedDate = obj.CreatedDate; this.Modifier = obj.Modifier; this.ModifiedDate = obj.ModifiedDate; this.SecondaryCoordinator = obj.SecondaryCoordinator; this.IsActive = obj.IsActive; this.IsDelete = obj.IsDelete; this.Clients = obj.Clients; this.DistributorLabels = obj.DistributorLabels; this.DistributorPriceLevelCosts = obj.DistributorPriceLevelCosts; this.DistributorPriceMarkups = obj.DistributorPriceMarkups; this.DespatchTo = obj.DespatchTo; this.Order = obj.Order; this.ShipTo = obj.ShipTo; }
private static List <Indico.BusinessObjects.ReturnDistributorDetailsViewBO> IQueryableToList(IQueryable <Indico.DAL.ReturnDistributorDetailsView> oQuery) { List <Indico.DAL.ReturnDistributorDetailsView> oList = oQuery.ToList(); List <Indico.BusinessObjects.ReturnDistributorDetailsViewBO> rList = new List <Indico.BusinessObjects.ReturnDistributorDetailsViewBO>(oList.Count); foreach (Indico.DAL.ReturnDistributorDetailsView o in oList) { Indico.BusinessObjects.ReturnDistributorDetailsViewBO obj = new Indico.BusinessObjects.ReturnDistributorDetailsViewBO(o); rList.Add(obj); } return(rList); }
/// <summary> /// Deserializes Indico.BusinessObjects.ReturnDistributorDetailsViewBO object from an XML representation /// </summary> /// <param name="strXML">a XML string serialized representation</param> public Indico.BusinessObjects.ReturnDistributorDetailsViewBO DeserializeObject(string strXML) { Indico.BusinessObjects.ReturnDistributorDetailsViewBO 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.ReturnDistributorDetailsViewBO)x.Deserialize(objStream); objStream.Close(); return(objTemp); }