public RQKosBranch.RQKosBranchStatus IsValid() { SubjClassBranch editCB = this.Find(this._mEditClassID); bool retValue = false; if (editCB.IsValid()) { retValue = true; } if (retValue = this.IsCompatible() ? retValue && true : false) { return _mEditStatus = new RQKosBranch.RQKosBranchStatus() { isSuccess = true, message = "Class mapping is consistent!", hints = RQLib.EditGlobals.ReadHints() } } ; else { return _mEditStatus = new RQKosBranch.RQKosBranchStatus() { isSuccess = false, message = "Consistency errors in class mapping!", hints = RQLib.EditGlobals.ReadHints() } }; }
public bool Update() { bool retValue = false; SubjClassBranch editCB = this.Find(this._mEditClassID); retValue = editCB.IsValid(); if (retValue = retValue && (this.IsCompatible() ? retValue && true : false)) { retValue = retValue && editCB.Update(); } if (!retValue) { _mEditStatus = new RQKosBranch.RQKosBranchStatus() { isSuccess = false, message = "Bei der Aktualisierung der Unterklassen ist ein Fehler aufgetreten.", hints = RQLib.EditGlobals.ReadHints() } } ; return(retValue); }
public bool Delete() { bool retValue = false; SubjClassBranch editCB = this.Find(this._mEditClassID); if (retValue = editCB.Delete()) { this._mEditClassID = editCB.MajorClass.ParentClassID; } else { _mEditStatus = new RQKosBranch.RQKosBranchStatus() { isSuccess = false, message = "Beim Löschen der Unterklassen ist ein Fehler aufgetreten.", hints = RQLib.EditGlobals.ReadHints() } }; return(retValue); } #endregion }