Exemplo n.º 1
0
        public virtual void Clone(Student cloneObj)
        {
            base.Clone(cloneObj);

            cloneObj.Code = this.Code;

            cloneObj.Name = this.Name;

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

            cloneObj.Birthday = this.Birthday;

            cloneObj.Email = this.Email;

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

            cloneObj.Tel = this.Tel;

            cloneObj.Address = this.Address;

            cloneObj.University = this.University;

            cloneObj.Major = this.Major;
        }
Exemplo n.º 2
0
 private static Student Create(bool inList)
 {
     Student entity = new Student();
     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;
 }
Exemplo n.º 3
0
 public override NHExt.Runtime.Model.BaseEntity Clone()
 {
     Student cloneObj = new Student();
     this.Clone(cloneObj);
     return cloneObj;
 }