internal void SetBO(Indico.DAL.CostSheetDetailsView obj)
 {
     // set the 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;
 }
 internal void SetDAL(Indico.DAL.CostSheetDetailsView obj, IndicoEntities context)
 {
     // set the Indico.DAL.CostSheetDetailsView properties
     obj.CostSheet            = Convert.ToInt32(CostSheet);
     obj.Pattern              = Pattern;
     obj.Fabric               = Fabric;
     obj.QuotedFOBCost        = Convert.ToDecimal(QuotedFOBCost);
     obj.QuotedCIF            = Convert.ToDecimal(QuotedCIF);
     obj.QuotedMP             = Convert.ToDecimal(QuotedMP);
     obj.ExchangeRate         = Convert.ToDecimal(ExchangeRate);
     obj.Category             = Category;
     obj.SMV                  = Convert.ToDecimal(SMV);
     obj.SMVRate              = Convert.ToDecimal(SMVRate);
     obj.CalculateCM          = Convert.ToDecimal(CalculateCM);
     obj.TotalFabricCost      = Convert.ToDecimal(TotalFabricCost);
     obj.TotalAccessoriesCost = Convert.ToDecimal(TotalAccessoriesCost);
     obj.HPCost               = Convert.ToDecimal(HPCost);
     obj.LabelCost            = Convert.ToDecimal(LabelCost);
     obj.CM           = Convert.ToDecimal(CM);
     obj.JKFOBCost    = Convert.ToDecimal(JKFOBCost);
     obj.Roundup      = Convert.ToDecimal(Roundup);
     obj.DutyRate     = Convert.ToDecimal(DutyRate);
     obj.SubCons      = Convert.ToDecimal(SubCons);
     obj.MarginRate   = Convert.ToDecimal(MarginRate);
     obj.Duty         = Convert.ToDecimal(Duty);
     obj.FOBAUD       = Convert.ToDecimal(FOBAUD);
     obj.AirFregiht   = Convert.ToDecimal(AirFregiht);
     obj.ImpCharges   = Convert.ToDecimal(ImpCharges);
     obj.Landed       = Convert.ToDecimal(Landed);
     obj.MGTOH        = Convert.ToDecimal(MGTOH);
     obj.IndicoOH     = Convert.ToDecimal(IndicoOH);
     obj.InkCost      = Convert.ToDecimal(InkCost);
     obj.PaperCost    = Convert.ToDecimal(PaperCost);
     obj.ShowToIndico = Convert.ToBoolean(ShowToIndico);
 }