コード例 #1
0
ファイル: Referee.cs プロジェクト: AllanHao/WebSystem
        public virtual void Clone(Referee cloneObj)
        {
            base.Clone(cloneObj);

            cloneObj.Name = this.Name;

            cloneObj.Tel = this.Tel;

            cloneObj.Email = this.Email;

            cloneObj.Position = this.Position;

            cloneObj.Workplace = this.Workplace;

            cloneObj.Address = this.Address;

            if(this.PStudent != null){
            cloneObj.PStudent = new IWEHAVE.ERP.CenterBE.Student();
            cloneObj.PStudent.ID = this.PStudent.ID;
            }else{
            cloneObj.PStudent = null;
            }
        }
コード例 #2
0
ファイル: Referee.cs プロジェクト: AllanHao/WebSystem
 private static Referee Create(bool inList)
 {
     Referee entity = new Referee();
     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
ファイル: Referee.cs プロジェクト: AllanHao/WebSystem
 public override NHExt.Runtime.Model.BaseEntity Clone()
 {
     Referee cloneObj = new Referee();
     this.Clone(cloneObj);
     return cloneObj;
 }