internal void SetBO(Indico.BusinessObjects.ReservationDetailsViewBO obj)
 {
     // set this Indico.BusinessObjects.ReservationDetailsViewBO properties
     this.ID             = obj.ID;
     this.ReservationNo  = obj.ReservationNo;
     this.OrderDate      = obj.OrderDate;
     this.PatternID      = obj.PatternID;
     this.Pattern        = obj.Pattern;
     this.CoordinatorID  = obj.CoordinatorID;
     this.Coordinator    = obj.Coordinator;
     this.DistributorID  = obj.DistributorID;
     this.Distributor    = obj.Distributor;
     this.Client         = obj.Client;
     this.ShipToID       = obj.ShipToID;
     this.ShipTo         = obj.ShipTo;
     this.ShipmentModeID = obj.ShipmentModeID;
     this.ShipmentMode   = obj.ShipmentMode;
     this.ShipmentDate   = obj.ShipmentDate;
     this.Qty            = obj.Qty;
     this.UsedQty        = obj.UsedQty;
     this.Balance        = obj.Balance;
     this.Notes          = obj.Notes;
     this.DateCreated    = obj.DateCreated;
     this.DateModified   = obj.DateModified;
     this.CreatorID      = obj.CreatorID;
     this.Creator        = obj.Creator;
     this.ModifierID     = obj.ModifierID;
     this.Modifier       = obj.Modifier;
     this.StatusID       = obj.StatusID;
     this.Status         = obj.Status;
 }
        private static List <Indico.BusinessObjects.ReservationDetailsViewBO> IQueryableToList(IQueryable <Indico.DAL.ReservationDetailsView> oQuery)
        {
            List <Indico.DAL.ReservationDetailsView> oList = oQuery.ToList();
            List <Indico.BusinessObjects.ReservationDetailsViewBO> rList = new List <Indico.BusinessObjects.ReservationDetailsViewBO>(oList.Count);

            foreach (Indico.DAL.ReservationDetailsView o in oList)
            {
                Indico.BusinessObjects.ReservationDetailsViewBO obj = new Indico.BusinessObjects.ReservationDetailsViewBO(o);
                rList.Add(obj);
            }
            return(rList);
        }
        /// <summary>
        /// Deserializes Indico.BusinessObjects.ReservationDetailsViewBO object from an XML representation
        /// </summary>
        /// <param name="strXML">a XML string serialized representation</param>
        public Indico.BusinessObjects.ReservationDetailsViewBO DeserializeObject(string strXML)
        {
            Indico.BusinessObjects.ReservationDetailsViewBO 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.ReservationDetailsViewBO)x.Deserialize(objStream);
            objStream.Close();
            return(objTemp);
        }