public virtual void Clone(CompanyContact cloneObj) { base.Clone(cloneObj); cloneObj.Code = this.Code; cloneObj.Name = this.Name; cloneObj.Tel = this.Tel; cloneObj.Email = this.Email; if(this.PCompany != null){ cloneObj.PCompany = new IWEHAVE.ERP.CenterBE.Company(); cloneObj.PCompany.ID = this.PCompany.ID; }else{ cloneObj.PCompany = null; } }
private static CompanyContact Create(bool inList) { CompanyContact entity = new CompanyContact(); 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; }
public override NHExt.Runtime.Model.BaseEntity Clone() { CompanyContact cloneObj = new CompanyContact(); this.Clone(cloneObj); return cloneObj; }