public override void LeadingDocumentValueInput(Sungero.Docflow.Client.OfficialDocumentLeadingDocumentValueInputEventArgs e) { base.LeadingDocumentValueInput(e); // Отобразить однократно нотифайку о выдаче прав на проектные документы. if (e.NewValue != null && !Equals(e.NewValue, e.OldValue) && e.NewValue.Project != null && Projects.Projects.Is(e.NewValue.Project)) { Projects.PublicFunctions.Module.ShowProjectRightsNotifyOnce(e, Projects.Projects.Resources.ProjectDocumentRightsNotifyMessage); } }
public override void LeadingDocumentValueInput(Sungero.Docflow.Client.OfficialDocumentLeadingDocumentValueInputEventArgs e) { base.LeadingDocumentValueInput(e); if (e.NewValue != null) { if (Functions.SupAgreement.HaveDuplicates(_obj, _obj.BusinessUnit, _obj.RegistrationNumber, _obj.RegistrationDate, _obj.Counterparty, e.NewValue)) { e.AddWarning(ContractualDocuments.Resources.DuplicatesDetected + ContractualDocuments.Resources.FindDuplicates, _obj.Info.Properties.Counterparty, _obj.Info.Properties.BusinessUnit, _obj.Info.Properties.RegistrationDate, _obj.Info.Properties.RegistrationNumber, _obj.Info.Properties.LeadingDocument); } } }
public override void LeadingDocumentValueInput(Sungero.Docflow.Client.OfficialDocumentLeadingDocumentValueInputEventArgs e) { base.LeadingDocumentValueInput(e); this._obj.State.Properties.BusinessUnit.HighlightColor = Sungero.Core.Colors.Empty; }