Exemplo n.º 1
0
        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;
            }
        }
Exemplo n.º 2
0
 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;
 }
Exemplo n.º 3
0
 public override NHExt.Runtime.Model.BaseEntity Clone()
 {
     Referee cloneObj = new Referee();
     this.Clone(cloneObj);
     return cloneObj;
 }