Ejemplo n.º 1
0
        public virtual void Clone(HandleQuanDetail cloneObj)
        {
            base.Clone(cloneObj);

            if(this.Contract != null){
            cloneObj.Contract = new IWEHAVE.ERP.CenterBE.Contract();
            cloneObj.Contract.ID = this.Contract.ID;
            }else{
            cloneObj.Contract = null;
            }

            if(this.School != null){
            cloneObj.School = new IWEHAVE.ERP.CenterBE.ContractSchool();
            cloneObj.School.ID = this.School.ID;
            }else{
            cloneObj.School = null;
            }

            if(this.Online != null){
            cloneObj.Online = new IWEHAVE.ERP.CenterBE.OnlineEnum();
            cloneObj.Online.EnumValue = this.Online.EnumValue;
            cloneObj.Online.Code = this.Online.Code;
            cloneObj.Online.Name = this.Online.Name;
            }else{
            cloneObj.Online = null;
            }

            if(this.Ps != null){
            cloneObj.Ps = new IWEHAVE.ERP.CenterBE.PsEnum();
            cloneObj.Ps.EnumValue = this.Ps.EnumValue;
            cloneObj.Ps.Code = this.Ps.Code;
            cloneObj.Ps.Name = this.Ps.Name;
            }else{
            cloneObj.Ps = null;
            }
        }
Ejemplo n.º 2
0
 private static HandleQuanDetail Create(bool inList)
 {
     HandleQuanDetail entity = new HandleQuanDetail();
     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;
 }
Ejemplo n.º 3
0
 public override NHExt.Runtime.Model.BaseEntity Clone()
 {
     HandleQuanDetail cloneObj = new HandleQuanDetail();
     this.Clone(cloneObj);
     return cloneObj;
 }