/// <summary>
 /// Найти подпись в базе и вставить
 /// </summary>
 private IResultAppValue <IStampSignature> SearchSignatureToInsert(IStampSignature signature) =>
 SignaturesSearching.
 FindByIdOrFullNameOrRandom(signature.SignatureLibrary.PersonId,
                            signature.SignatureLibrary.PersonInformation.FullName, StampSettings.PersonId).
 ResultValueOk(signatureLibrary => new SignatureFileApp(signatureLibrary.PersonId, signatureLibrary.PersonInformation,
                                                        String.Empty, signature.IsVertical)).
 ResultValueOk(signature.InsertSignature);
Ejemplo n.º 2
0
 /// <summary>
 /// Сформировать строку с подписью согласования согласно идентификатору Microstation
 /// </summary>
 private IResultAppValue <IStampApproval> GetStampApprovalById(IStampTextFieldMicrostation responsiblePerson,
                                                               Func <ISignatureLibraryApp, IResultAppValue <IStampFieldMicrostation> > insertSignatureFunc,
                                                               IStampTextField actionType, IStampTextField dateSignature) =>
 SignaturesSearching.FindByIdOrFullNameOrRandom(responsiblePerson.ElementStamp.AttributePersonId,
                                                responsiblePerson.MaxLengthWord, PersonId).
 ResultValueOk(personSignature => new ApprovalSignatureMicrostation(personSignature, _stampIdentifier, insertSignatureFunc, actionType,
                                                                    responsiblePerson, dateSignature));