public virtual void Clone(SchoolCourse cloneObj) { base.Clone(cloneObj); if(this.School != null){ cloneObj.School = new IWEHAVE.ERP.CenterBE.School(); cloneObj.School.ID = this.School.ID; }else{ cloneObj.School = null; } if(this.PContract != null){ cloneObj.PContract = new IWEHAVE.ERP.CenterBE.Contract(); cloneObj.PContract.ID = this.PContract.ID; }else{ cloneObj.PContract = null; } if(this.PsInfo != null){ cloneObj.PsInfo = new IWEHAVE.ERP.CenterBE.PsInfoEnum(); cloneObj.PsInfo.EnumValue = this.PsInfo.EnumValue; cloneObj.PsInfo.Code = this.PsInfo.Code; cloneObj.PsInfo.Name = this.PsInfo.Name; }else{ cloneObj.PsInfo = null; } cloneObj.SendTime = this.SendTime; cloneObj.Status = this.Status; cloneObj.Language = this.Language; }
private static SchoolCourse Create(bool inList) { SchoolCourse entity = new SchoolCourse(); 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() { SchoolCourse cloneObj = new SchoolCourse(); this.Clone(cloneObj); return cloneObj; }