Esempio n. 1
0
        public virtual void Clone(Brand cloneObj)
        {
            base.Clone(cloneObj);

            cloneObj.Code = this.Code;

            cloneObj.Name = this.Name;

            cloneObj.Logo = this.Logo;

            cloneObj.IsSync = this.IsSync;

            cloneObj.Tag = this.Tag;

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

            cloneObj.SrcDate = this.SrcDate;

            cloneObj.SrcIP = this.SrcIP;

            cloneObj.SrcUser = this.SrcUser;

            cloneObj.SrcOrg = this.SrcOrg;

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

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

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

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