示例#1
0
 internal void SetBO(Indico.DAL.SupplierDetailsView obj)
 {
     // set the Indico.BusinessObjects.SupplierDetailsViewBO properties
     this.Supplier  = obj.Supplier;
     this.Name      = obj.Name;
     this.CountryID = obj.CountryID;
     this.Country   = obj.Country;
     this.IsAccessoriesWherethisSupplier = obj.IsAccessoriesWherethisSupplier;
     this.IsFabricCodesWherethisSupplier = obj.IsFabricCodesWherethisSupplier;
 }
示例#2
0
 /// <summary>
 /// Creates an instance of the SupplierDetailsViewBO class using the supplied Indico.DAL.SupplierDetailsView.
 /// </summary>
 /// <param name="obj">a Indico.DAL.SupplierDetailsView whose properties will be used to initialise the SupplierDetailsViewBO</param>
 internal SupplierDetailsViewBO(Indico.DAL.SupplierDetailsView obj)
 {
     // set the properties from the Indico.DAL.SupplierDetailsView
     this.Supplier  = obj.Supplier;
     this.Name      = obj.Name;
     this.CountryID = obj.CountryID;
     this.Country   = obj.Country;
     this.IsAccessoriesWherethisSupplier = obj.IsAccessoriesWherethisSupplier;
     this.IsFabricCodesWherethisSupplier = obj.IsFabricCodesWherethisSupplier;
 }
示例#3
0
 internal void SetDAL(Indico.DAL.SupplierDetailsView obj, IndicoEntities context)
 {
     // set the Indico.DAL.SupplierDetailsView properties
     obj.Supplier  = Convert.ToInt32(Supplier);
     obj.Name      = Name;
     obj.CountryID = Convert.ToInt32(CountryID);
     obj.Country   = Country;
     obj.IsAccessoriesWherethisSupplier = Convert.ToBoolean(IsAccessoriesWherethisSupplier);
     obj.IsFabricCodesWherethisSupplier = Convert.ToBoolean(IsFabricCodesWherethisSupplier);
 }