public override void Initialize() { base.Initialize(); this._StartWorkDate = ""; this._EndWorkDate = ""; this._IconStream = new byte[1]; this._CoPosition = new OrgPosition(); this._Restrictions = new WorkerRestrictions(); this._CoPerson = new WFPerson(); this._Accessrights = new WorkerAccessrights(); this._IsActive = SbnBoolean.OutOfValue; this._WorkerJob = new BasicInfoDetail(); this._CoRoles = new WFRoles(); }
public override SbnObject Clone(string sNodeName) { OrgPosition retObject = new OrgPosition(); retObject.ID = this.ID; if (this._DefinitionDate != null) { retObject.DefinitionDate = (string)this._DefinitionDate.Clone(); } if (this._ExpireDate != null) { retObject.ExpireDate = (string)this._ExpireDate.Clone(); } if (!object.ReferenceEquals(this.CoOrgUnit, null)) { retObject.CoOrgUnit = (OrgUnit)this.CoOrgUnit.Clone(sNodeName); } if (!object.ReferenceEquals(this.Workers, null)) { retObject.Workers = (Workers)this.Workers.Clone(sNodeName); } retObject.IsExpired = this.IsExpired; return(retObject); }