public bool DisableAddresseesOnRegistration(Sungero.Domain.Shared.BaseEventArgs e)
        {
            bool repeatRegister;
            var  changeRegistrationRequisits = e.Params.TryGetValue(Sungero.Docflow.Constants.OfficialDocument.RepeatRegister, out repeatRegister) && repeatRegister;
            var  isRegistered = _obj != null && _obj.RegistrationState != RegistrationState.NotRegistered;

            return(isRegistered && !changeRegistrationRequisits);
        }
Exemple #2
0
        public virtual void ShowProjectRightsNotifyOnce(Sungero.Domain.Shared.BaseEventArgs e, string message)
        {
            bool showProjectDocumentRightsNotify;

            if (!e.Params.TryGetValue(Constants.Project.ShowProjectRightsNotify, out showProjectDocumentRightsNotify))
            {
                Dialogs.NotifyMessage(message);
                e.Params.AddOrUpdate(Constants.Project.ShowProjectRightsNotify, false);
            }
        }