Example #1
0
        public virtual void Clone(BrandQuality cloneObj)
        {
            base.Clone(cloneObj);

            cloneObj.Code = this.Code;

            cloneObj.Name = this.Name;

            cloneObj.Mark = this.Mark;

            if(this.Variety != null){
            cloneObj.Variety = new IWEHAVE.ERP.CenterBE.Variety();
            cloneObj.Variety.ID = this.Variety.ID;
            }else{
            cloneObj.Variety = null;
            }
        }
Example #2
0
 private static BrandQuality Create(bool inList)
 {
     BrandQuality entity = new BrandQuality();
     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;
 }
Example #3
0
 public override NHExt.Runtime.Model.BaseEntity Clone()
 {
     BrandQuality cloneObj = new BrandQuality();
     this.Clone(cloneObj);
     return cloneObj;
 }