public override void BeforeDelete(Sungero.Domain.BeforeDeleteEventArgs e) { if (!Functions.Module.IsAllExternalEntityLinksDeleted(_obj)) { throw AppliedCodeException.Create(Commons.Resources.HasLinkedExternalEntities); } }
public override void BeforeDelete(Sungero.Domain.BeforeDeleteEventArgs e) { // Нельзя удалить вид документа МКДО, созданного инициализацией. if (Functions.DocumentKind.IsExchangeNativeDocumentKind(_obj)) { e.AddError(DocumentKinds.Resources.CantDelete); } }
public override void BeforeDelete(Sungero.Domain.BeforeDeleteEventArgs e) { // Запретить удаление организации в случае, если она зависит от нашей организации. if (_obj.IsCardReadOnly ?? false) { e.AddError(CompanyBases.Resources.ErrorCantDeleteDependentCompany); } base.BeforeDelete(e); }
public override void BeforeDelete(Sungero.Domain.BeforeDeleteEventArgs e) { base.BeforeDelete(e); }
public override void BeforeDelete(Sungero.Domain.BeforeDeleteEventArgs e) { throw AppliedCodeException.Create(Docflow.Resources.DeleteSettingsException); }
public override void BeforeDelete(Sungero.Domain.BeforeDeleteEventArgs e) { throw AppliedCodeException.Create(PersonalSettings.Resources.CantDeleteSetting); }
public override void BeforeDelete(Sungero.Domain.BeforeDeleteEventArgs e) { _obj.Department.RecipientLinks.Remove(_obj.Department.RecipientLinks.Where(d => d.Member == _obj).FirstOrDefault()); }
public override void BeforeDelete(Sungero.Domain.BeforeDeleteEventArgs e) { Functions.SignatureSetting.UpdateSigningRole(_obj, true); }