コード例 #1
0
ファイル: ContactStudent.cs プロジェクト: AllanHao/WebSystem
        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
ファイル: ContactStudent.cs プロジェクト: AllanHao/WebSystem
 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
ファイル: ContactStudent.cs プロジェクト: AllanHao/WebSystem
 public override NHExt.Runtime.Model.BaseEntity Clone()
 {
     ContactStudent cloneObj = new ContactStudent();
     this.Clone(cloneObj);
     return cloneObj;
 }