public virtual void Clone(HandleQuan cloneObj) { base.Clone(cloneObj); cloneObj.InputDate = this.InputDate; if(this.Contract != null){ cloneObj.Contract = new IWEHAVE.ERP.CenterBE.Contract(); cloneObj.Contract.ID = this.Contract.ID; }else{ cloneObj.Contract = null; } if(this.ContractSchool != null){ cloneObj.ContractSchool = new IWEHAVE.ERP.CenterBE.ContractSchool(); cloneObj.ContractSchool.ID = this.ContractSchool.ID; }else{ cloneObj.ContractSchool = null; } cloneObj.Note = this.Note; }
private static HandleQuan Create(bool inList) { HandleQuan entity = new HandleQuan(); 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; }
public override NHExt.Runtime.Model.BaseEntity Clone() { HandleQuan cloneObj = new HandleQuan(); this.Clone(cloneObj); return cloneObj; }