public override bool CanAddChildEntity(Sungero.Domain.Client.CanExecuteChildCollectionActionArgs e) { var root = Counterparties.As(e.RootEntity); return((root != null && _all == root.ExchangeBoxes) ? false : base.CanAddChildEntity(e)); }
public override bool CanDeleteChildEntity(Sungero.Domain.Client.CanExecuteChildCollectionActionArgs e) { // Дизейбл грида абонентских ящиков. var root = Counterparties.As(e.RootEntity); return((root != null && _all == root.ExchangeBoxes) ? false : base.CanDeleteChildEntity(e)); }
public override bool CanAddChildEntity(Sungero.Domain.Client.CanExecuteChildCollectionActionArgs e) { // Дизейбл грида при резервировании номера/регистрации. var entity = OutgoingDocumentBases.As(e.RootEntity); return(entity != null && _all == entity.Addressees && Functions.OutgoingDocumentBase.DisableAddresseesOnRegistration(entity, e) ? false : base.CanAddChildEntity(e)); }
public override bool CanEditVersion(Sungero.Domain.Client.CanExecuteChildCollectionActionArgs e) { return(false); }
public override bool CanChartConfigCondition(Sungero.Domain.Client.CanExecuteChildCollectionActionArgs e) { return(base.CanChartConfigCondition(e)); }
public virtual bool CanOpenOriginal(Sungero.Domain.Client.CanExecuteChildCollectionActionArgs e) { return(_obj.PublicBody.Size != 0); }
public virtual bool CanShowReturnAssignments(Sungero.Domain.Client.CanExecuteChildCollectionActionArgs e) { return(_obj.ReturnTask != null); }
public static bool CanSaveToDistributionList(Sungero.Domain.Client.CanExecuteChildCollectionActionArgs e) { var obj = OutgoingDocumentBases.As(e.Entity); return(obj.IsManyAddressees == true && DistributionLists.AccessRights.CanCreate()); }
public static bool CanFillFromDistributionList(Sungero.Domain.Client.CanExecuteChildCollectionActionArgs e) { var obj = OutgoingDocumentBases.As(e.Entity); return(obj.IsManyAddressees == true && !Functions.OutgoingDocumentBase.DisableAddresseesOnRegistration(obj, e)); }
public virtual bool CanChartDeleteCondition(Sungero.Domain.Client.CanExecuteChildCollectionActionArgs e) { return(true); }
public static bool CanPrintDistributionSheetChild(Sungero.Domain.Client.CanExecuteChildCollectionActionArgs e) { var obj = OutgoingDocumentBases.As(e.Entity); return(!obj.State.IsInserted && !obj.State.IsChanged && obj.IsManyAddressees == true); }
public virtual bool CanRejectInvitation(Sungero.Domain.Client.CanExecuteChildCollectionActionArgs e) { return(_obj.Status != CounterpartyExchangeBoxes.Status.Closed && _obj.Counterparty.AccessRights.CanUpdate() && _obj.Counterparty.AccessRights.CanSetExchange()); }
public virtual bool CanChartDeleteStage(Sungero.Domain.Client.CanExecuteChildCollectionActionArgs e) { bool canEditSchema; return(e.Params.TryGetValue(Constants.ApprovalRuleBase.CanEditSchema, out canEditSchema) ? canEditSchema : true); }
public virtual bool CanChartConfigStage(Sungero.Domain.Client.CanExecuteChildCollectionActionArgs e) { return(_obj.Stage != null); }
public override bool CanShowReturnAssignments(Sungero.Domain.Client.CanExecuteChildCollectionActionArgs e) { return(false); }
public override bool CanAddChildEntity(Sungero.Domain.Client.CanExecuteChildCollectionActionArgs e) { return(false); }
public override bool CanCreateVersion(Sungero.Domain.Client.CanExecuteChildCollectionActionArgs e) { var accountDocument = AccountingDocumentBases.As(_obj.ElectronicDocument); return(base.CanCreateVersion(e) && accountDocument.IsFormalized != true); }