示例#1
0
        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;
            }
        }
示例#2
0
 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;
 }
示例#3
0
 public override NHExt.Runtime.Model.BaseEntity Clone()
 {
     CompanyContact cloneObj = new CompanyContact();
     this.Clone(cloneObj);
     return cloneObj;
 }