internal void SetBO(Indico.DAL.FabricCodeDetailsView obj)
 {
     // set the Indico.BusinessObjects.FabricCodeDetailsViewBO properties
     this.Fabric         = obj.Fabric;
     this.Code           = obj.Code;
     this.Name           = obj.Name;
     this.Material       = obj.Material;
     this.GSM            = obj.GSM;
     this.SupplierID     = obj.SupplierID;
     this.Supplier       = obj.Supplier;
     this.CountryID      = obj.CountryID;
     this.Country        = obj.Country;
     this.DenierCount    = obj.DenierCount;
     this.Filaments      = obj.Filaments;
     this.NickName       = obj.NickName;
     this.SerialOrder    = obj.SerialOrder;
     this.FabricPrice    = obj.FabricPrice;
     this.LandedCurrency = obj.LandedCurrency;
     this.FabricWidth    = obj.FabricWidth;
     this.UnitID         = obj.UnitID;
     this.Unit           = obj.Unit;
     this.FabricColorID  = obj.FabricColorID;
     this.FabricColor    = obj.FabricColor;
     this.ColorCode      = obj.ColorCode;
     this.IsActive       = obj.IsActive;
     this.IsPure         = obj.IsPure;
     this.IsLiningFabric = obj.IsLiningFabric;
     this.IsCostSheetWherethisFabricCode            = obj.IsCostSheetWherethisFabricCode;
     this.IsPriceWherethisFabricCode                = obj.IsPriceWherethisFabricCode;
     this.IsQuoteWherethisFabricCode                = obj.IsQuoteWherethisFabricCode;
     this.IsVisualLayoutWherethisFabricCode         = obj.IsVisualLayoutWherethisFabricCode;
     this.IsPatternSupportFabricWherethisFabricCode = obj.IsPatternSupportFabricWherethisFabricCode;
 }
 internal void SetDAL(Indico.DAL.FabricCodeDetailsView obj, IndicoEntities context)
 {
     // set the Indico.DAL.FabricCodeDetailsView properties
     obj.Fabric         = Convert.ToInt32(Fabric);
     obj.Code           = Code;
     obj.Name           = Name;
     obj.Material       = Material;
     obj.GSM            = GSM;
     obj.SupplierID     = Convert.ToInt32(SupplierID);
     obj.Supplier       = Supplier;
     obj.CountryID      = Convert.ToInt32(CountryID);
     obj.Country        = Country;
     obj.DenierCount    = DenierCount;
     obj.Filaments      = Filaments;
     obj.NickName       = NickName;
     obj.SerialOrder    = SerialOrder;
     obj.FabricPrice    = Convert.ToDecimal(FabricPrice);
     obj.LandedCurrency = Convert.ToInt32(LandedCurrency);
     obj.FabricWidth    = FabricWidth;
     obj.UnitID         = Convert.ToInt32(UnitID);
     obj.Unit           = Unit;
     obj.FabricColorID  = Convert.ToInt32(FabricColorID);
     obj.FabricColor    = FabricColor;
     obj.ColorCode      = ColorCode;
     obj.IsActive       = Convert.ToBoolean(IsActive);
     obj.IsPure         = Convert.ToBoolean(IsPure);
     obj.IsLiningFabric = Convert.ToBoolean(IsLiningFabric);
     obj.IsCostSheetWherethisFabricCode            = Convert.ToBoolean(IsCostSheetWherethisFabricCode);
     obj.IsPriceWherethisFabricCode                = Convert.ToBoolean(IsPriceWherethisFabricCode);
     obj.IsQuoteWherethisFabricCode                = Convert.ToBoolean(IsQuoteWherethisFabricCode);
     obj.IsVisualLayoutWherethisFabricCode         = Convert.ToBoolean(IsVisualLayoutWherethisFabricCode);
     obj.IsPatternSupportFabricWherethisFabricCode = Convert.ToBoolean(IsPatternSupportFabricWherethisFabricCode);
 }