internal void SetBO(Indico.BusinessObjects.ClientOrderDetailsViewBO obj) { // set this Indico.BusinessObjects.ClientOrderDetailsViewBO properties this.OrderDetailId = obj.OrderDetailId; this.CompanyId = obj.CompanyId; this.CompanyName = obj.CompanyName; this.OrderId = obj.OrderId; this.Date = obj.Date; this.DesiredDeliveryDate = obj.DesiredDeliveryDate; this.OrderNumber = obj.OrderNumber; this.IsTemporary = obj.IsTemporary; this.ClientId = obj.ClientId; this.ClientName = obj.ClientName; this.OrderTypeId = obj.OrderTypeId; this.OrderType = obj.OrderType; this.VisualLayoutId = obj.VisualLayoutId; this.NamePrefix = obj.NamePrefix; this.NameSuffix = obj.NameSuffix; this.PatternId = obj.PatternId; this.PatternNumber = obj.PatternNumber; this.FabricId = obj.FabricId; this.Fabric = obj.Fabric; this.FabricNickName = obj.FabricNickName; this.StatusId = obj.StatusId; this.Status = obj.Status; }
private static List <Indico.BusinessObjects.ClientOrderDetailsViewBO> IQueryableToList(IQueryable <Indico.DAL.ClientOrderDetailsView> oQuery) { List <Indico.DAL.ClientOrderDetailsView> oList = oQuery.ToList(); List <Indico.BusinessObjects.ClientOrderDetailsViewBO> rList = new List <Indico.BusinessObjects.ClientOrderDetailsViewBO>(oList.Count); foreach (Indico.DAL.ClientOrderDetailsView o in oList) { Indico.BusinessObjects.ClientOrderDetailsViewBO obj = new Indico.BusinessObjects.ClientOrderDetailsViewBO(o); rList.Add(obj); } return(rList); }
/// <summary> /// Deserializes Indico.BusinessObjects.ClientOrderDetailsViewBO object from an XML representation /// </summary> /// <param name="strXML">a XML string serialized representation</param> public Indico.BusinessObjects.ClientOrderDetailsViewBO DeserializeObject(string strXML) { Indico.BusinessObjects.ClientOrderDetailsViewBO 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.ClientOrderDetailsViewBO)x.Deserialize(objStream); objStream.Close(); return(objTemp); }