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

            cloneObj.Name = this.Name;

            if(this.Type != null){
            cloneObj.Type = new THU.LabSystemBE.DeviceTypeEnum();
            cloneObj.Type.EnumValue = this.Type.EnumValue;
            cloneObj.Type.Code = this.Type.Code;
            cloneObj.Type.Name = this.Type.Name;
            }else{
            cloneObj.Type = null;
            }

            cloneObj.Expression = this.Expression;

            cloneObj.Tag = this.Tag;

            cloneObj.Price = this.Price;

            cloneObj.IsDelete = this.IsDelete;
        }
Beispiel #2
0
 private static Device Create(bool inList)
 {
     Device entity = new Device();
     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()
 {
     Device cloneObj = new Device();
     this.Clone(cloneObj);
     return cloneObj;
 }