public virtual void Clone(ProjectUser cloneObj) { base.Clone(cloneObj); cloneObj.UserCode = this.UserCode; cloneObj.Email = this.Email; cloneObj.Password = this.Password; cloneObj.Org = this.Org; cloneObj.OrgName = this.OrgName; cloneObj.Remark = this.Remark; cloneObj.UserName = this.UserName; cloneObj.IsAdmin = this.IsAdmin; if(this.PProject != null){ cloneObj.PProject = new IWEHAVE.ERP.CenterBE.Project(); cloneObj.PProject.ID = this.PProject.ID; }else{ cloneObj.PProject = null; } cloneObj.DefaultUrl = this.DefaultUrl; }
private static ProjectUser Create(bool inList) { ProjectUser entity = new ProjectUser(); 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() { ProjectUser cloneObj = new ProjectUser(); this.Clone(cloneObj); return cloneObj; }