Ejemplo n.º 1
0
        public virtual void Clone(BrandVariety cloneObj)
        {
            base.Clone(cloneObj);

            if(this.Variety != null){
            cloneObj.Variety = new IWEHAVE.ERP.CenterBE.Variety();
            cloneObj.Variety.ID = this.Variety.ID;
            }else{
            cloneObj.Variety = null;
            }

            if(this.PBrand != null){
            cloneObj.PBrand = new IWEHAVE.ERP.CenterBE.Brand();
            cloneObj.PBrand.ID = this.PBrand.ID;
            }else{
            cloneObj.PBrand = null;
            }

            cloneObj.RootVariety = this.RootVariety;

            if(this.Quality != null){
            cloneObj.Quality = new IWEHAVE.ERP.CenterBE.BrandQuality();
            cloneObj.Quality.ID = this.Quality.ID;
            }else{
            cloneObj.Quality = null;
            }

            cloneObj.IsDefault = this.IsDefault;
        }
Ejemplo n.º 2
0
 private static BrandVariety Create(bool inList)
 {
     BrandVariety entity = new BrandVariety();
     entity.ID = NHExt.Runtime.Util.EntityGuidHelper.New();
     entity.EntityState = NHExt.Runtime.Enums.EntityState.Add;
     if(inList){
     if(Session.Current != null){
     Session.Current.InList(entity);
     }
     }
     return entity;
 }
Ejemplo n.º 3
0
 public override NHExt.Runtime.Model.BaseEntity Clone()
 {
     BrandVariety cloneObj = new BrandVariety();
     this.Clone(cloneObj);
     return cloneObj;
 }