Пример #1
0
        public virtual void Clone(ContactStudent cloneObj)
        {
            base.Clone(cloneObj);

            cloneObj.ContactNum = this.ContactNum;

            cloneObj.StudentName = this.StudentName;

            cloneObj.StudentSex = this.StudentSex;

            cloneObj.StudentBirthday = this.StudentBirthday;

            if(this.Country != null){
            cloneObj.Country = new IWEHAVE.ERP.CenterBE.CountryEnum();
            cloneObj.Country.EnumValue = this.Country.EnumValue;
            cloneObj.Country.Code = this.Country.Code;
            cloneObj.Country.Name = this.Country.Name;
            }else{
            cloneObj.Country = null;
            }

            cloneObj.Consultant = this.Consultant;

            cloneObj.BranchCompany = this.BranchCompany;
        }
Пример #2
0
 private static ContactStudent Create(bool inList)
 {
     ContactStudent entity = new ContactStudent();
     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()
 {
     ContactStudent cloneObj = new ContactStudent();
     this.Clone(cloneObj);
     return cloneObj;
 }