Beispiel #1
0
        public virtual void Clone(ForbidUser cloneObj)
        {
            base.Clone(cloneObj);

            if(this.User != null){
            cloneObj.User = new THU.LabSystemBE.User();
            cloneObj.User.ID = this.User.ID;
            }else{
            cloneObj.User = null;
            }

            cloneObj.StartTime = this.StartTime;

            cloneObj.EndTime = this.EndTime;
        }
Beispiel #2
0
 private static ForbidUser Create(bool inList)
 {
     ForbidUser entity = new ForbidUser();
     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;
 }
Beispiel #3
0
 public override NHExt.Runtime.Model.BaseEntity Clone()
 {
     ForbidUser cloneObj = new ForbidUser();
     this.Clone(cloneObj);
     return cloneObj;
 }