internal void SetBO(Indico.BusinessObjects.CostSheetDetailsViewBO obj)
 {
     // set this Indico.BusinessObjects.CostSheetDetailsViewBO properties
     this.CostSheet            = obj.CostSheet;
     this.Pattern              = obj.Pattern;
     this.Fabric               = obj.Fabric;
     this.QuotedFOBCost        = obj.QuotedFOBCost;
     this.QuotedCIF            = obj.QuotedCIF;
     this.QuotedMP             = obj.QuotedMP;
     this.ExchangeRate         = obj.ExchangeRate;
     this.Category             = obj.Category;
     this.SMV                  = obj.SMV;
     this.SMVRate              = obj.SMVRate;
     this.CalculateCM          = obj.CalculateCM;
     this.TotalFabricCost      = obj.TotalFabricCost;
     this.TotalAccessoriesCost = obj.TotalAccessoriesCost;
     this.HPCost               = obj.HPCost;
     this.LabelCost            = obj.LabelCost;
     this.CM           = obj.CM;
     this.JKFOBCost    = obj.JKFOBCost;
     this.Roundup      = obj.Roundup;
     this.DutyRate     = obj.DutyRate;
     this.SubCons      = obj.SubCons;
     this.MarginRate   = obj.MarginRate;
     this.Duty         = obj.Duty;
     this.FOBAUD       = obj.FOBAUD;
     this.AirFregiht   = obj.AirFregiht;
     this.ImpCharges   = obj.ImpCharges;
     this.Landed       = obj.Landed;
     this.MGTOH        = obj.MGTOH;
     this.IndicoOH     = obj.IndicoOH;
     this.InkCost      = obj.InkCost;
     this.PaperCost    = obj.PaperCost;
     this.ShowToIndico = obj.ShowToIndico;
 }
        private static List <Indico.BusinessObjects.CostSheetDetailsViewBO> IQueryableToList(IQueryable <Indico.DAL.CostSheetDetailsView> oQuery)
        {
            List <Indico.DAL.CostSheetDetailsView> oList = oQuery.ToList();
            List <Indico.BusinessObjects.CostSheetDetailsViewBO> rList = new List <Indico.BusinessObjects.CostSheetDetailsViewBO>(oList.Count);

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