internal void SetBO(Indico.BusinessObjects.ReturnProductionCapacitiesViewBO obj)
 {
     // set this Indico.BusinessObjects.ReturnProductionCapacitiesViewBO properties
     this.Firms            = obj.Firms;
     this.ResevationOrders = obj.ResevationOrders;
     this.Resevations      = obj.Resevations;
     this.Holds            = obj.Holds;
     this.Less5Items       = obj.Less5Items;
     this.Samples          = obj.Samples;
 }
        private static List <Indico.BusinessObjects.ReturnProductionCapacitiesViewBO> IQueryableToList(IQueryable <Indico.DAL.ReturnProductionCapacitiesView> oQuery)
        {
            List <Indico.DAL.ReturnProductionCapacitiesView> oList = oQuery.ToList();
            List <Indico.BusinessObjects.ReturnProductionCapacitiesViewBO> rList = new List <Indico.BusinessObjects.ReturnProductionCapacitiesViewBO>(oList.Count);

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