Example #1
0
 /// <summary>
 /// Получить класс с ответственным лицом и подписью на основании полей Word для штампа согласования
 /// </summary>
 private static IStampApprovalChange GetStampApprovalChangeFromFields(IRowElementWord approvalChangeRow, ISignatureLibraryApp approvalChangeSignature,
                                                                      StampIdentifier stampIdentifier) =>
 new ApprovalChangeSignatureWord(approvalChangeSignature, stampIdentifier,
                                 new StampFieldWord(approvalChangeRow.CellsElement[ApprovalChangeRowIndexes.SIGNATURE], StampFieldType.ApprovalChangeSignature),
                                 new StampTextFieldWord(approvalChangeRow.CellsElement[ApprovalChangeRowIndexes.ACTION_TYPE], StampFieldType.ApprovalChangeSignature),
                                 new StampTextFieldWord(approvalChangeRow.CellsElement[ApprovalChangeRowIndexes.RESPONSIBLE_PERSON], StampFieldType.ApprovalChangeSignature),
                                 new StampTextFieldWord(approvalChangeRow.CellsElement[ApprovalChangeRowIndexes.DATE], StampFieldType.ApprovalChangeSignature));
 /// <summary>
 /// Получить класс с ответственным лицом и подписью на основании полей Word
 /// </summary>
 private static IStampPerson GetStampPersonFromFields(IRowElementWord personRow, ISignatureLibraryApp personSignature,
                                                      StampIdentifier stampIdentifier) =>
 new PersonSignatureWord(personSignature, stampIdentifier,
                         new StampFieldWord(personRow.CellsElement[PersonRowIndexes.SIGNATURE], StampFieldType.PersonSignature),
                         new StampTextFieldWord(personRow.CellsElement[PersonRowIndexes.ACTION_TYPE], StampFieldType.PersonSignature),
                         new StampTextFieldWord(personRow.CellsElement[PersonRowIndexes.RESPONSIBLE_PERSON], StampFieldType.PersonSignature),
                         new StampTextFieldWord(personRow.CellsElement[PersonRowIndexes.DATE], StampFieldType.PersonSignature));
Example #3
0
 public ApprovalChiefSignatureWord(ISignatureLibraryApp signatureLibrary, StampIdentifier stampIdentifier, IStampFieldWord signature,
                                   IStampTextField responsiblePerson, IStampTextField department)
     : base(signatureLibrary, stampIdentifier, signature)
 {
     ResponsiblePerson = responsiblePerson ?? throw new ArgumentNullException(nameof(responsiblePerson));
     Department        = department ?? throw new ArgumentNullException(nameof(department));
 }
Example #4
0
 public ApprovalSignatureMicrostation(ISignatureLibraryApp signatureLibrary, StampIdentifier stampIdentifier,
                                      Func <ISignatureLibraryApp, IResultAppValue <IStampFieldMicrostation> > insertSignatureFunc,
                                      IStampTextField departmentApproval, IStampTextField responsiblePerson, IStampTextField dateSignature)
     : this(signatureLibrary, stampIdentifier, GetNotInitializedSignature(responsiblePerson.MaxLengthWord), insertSignatureFunc,
            departmentApproval, responsiblePerson, dateSignature)
 {
 }
 public StampSettingsWord(StampIdentifier id, string personId, PdfNamingTypeApplication pdfNamingType,
                          StampPaperSizeType paperSize, StampOrientationType orientationType, bool useDefaultSignature)
     : base(id, personId, pdfNamingType, useDefaultSignature)
 {
     PaperSize   = paperSize;
     Orientation = orientationType;
 }
Example #6
0
 protected SignatureMicrostation(ISignatureLibraryApp signatureLibrary, StampIdentifier stampIdentifier,
                                 IResultAppValue <IStampFieldMicrostation> signature,
                                 Func <ISignatureLibraryApp, IResultAppValue <IStampFieldMicrostation> > insertSignatureFunc)
     : base(signatureLibrary, stampIdentifier)
 {
     _signature          = signature ?? throw new ArgumentNullException(nameof(signature));
     InsertSignatureFunc = insertSignatureFunc ?? throw new ArgumentNullException(nameof(insertSignatureFunc));
 }
Example #7
0
 public ApprovalChangeSignatureWord(ISignatureLibraryApp signatureLibrary, StampIdentifier stampIdentifier, IStampFieldWord signature, IStampTextField actionType,
                                    IStampTextField responsiblePerson, IStampTextField dateSignature)
     : base(signatureLibrary, stampIdentifier, signature)
 {
     ResponsiblePerson = responsiblePerson ?? throw new ArgumentNullException(nameof(responsiblePerson));
     ActionType        = actionType;
     DateSignature     = dateSignature;
 }
 public ChangeSignatureMicrostation(ISignatureLibraryApp signatureLibrary, StampIdentifier stampIdentifier,
                                    Func <ISignatureLibraryApp, IResultAppValue <IStampFieldMicrostation> > insertSignatureFunc,
                                    IStampTextField numberChange, IStampTextField numberOfPlots, IStampTextField typeOfChange,
                                    IStampTextField documentChange, IStampTextField dateChange)
     : this(signatureLibrary, stampIdentifier, GetNotInitializedSignature(signatureLibrary?.PersonInformation.Surname),
            insertSignatureFunc, numberChange, numberOfPlots, typeOfChange, documentChange, dateChange)
 {
 }
 public SignatureCreatingMicrostation(IStampFieldsMicrostation stampFields, StampIdentifier stampIdentifier,
                                      InsertSignatureFunc insertSignatureByFields, SignaturesSearching signaturesSearching,
                                      string personId, bool useDefaultSignature)
     : base(signaturesSearching, personId, useDefaultSignature)
 {
     _stampFields             = stampFields ?? throw new ArgumentNullException(nameof(stampFields));
     _stampIdentifier         = stampIdentifier;
     _insertSignatureByFields = insertSignatureByFields ?? throw new ArgumentNullException(nameof(insertSignatureByFields));
 }
 /// <summary>
 /// Получить класс с изменениями и подписью на основании полей Word
 /// </summary>
 private static IStampChange GetStampChangeFromFields(IRowElementWord changeRow, ISignatureLibraryApp personSignature,
                                                      StampIdentifier stampIdentifier) =>
 new ChangeSignatureWord(personSignature, stampIdentifier,
                         new StampFieldWord(changeRow.CellsElement[ChangeRowIndexes.SIGNATURE], StampFieldType.ChangeSignature),
                         new StampTextFieldWord(changeRow.CellsElement[ChangeRowIndexes.NUMBER_CHANGE], StampFieldType.ChangeSignature),
                         new StampTextFieldWord(changeRow.CellsElement[ChangeRowIndexes.NUMBER_PLOTS], StampFieldType.ChangeSignature),
                         new StampTextFieldWord(changeRow.CellsElement[ChangeRowIndexes.TYPE_OF_CHANGE], StampFieldType.ChangeSignature),
                         new StampTextFieldWord(changeRow.CellsElement[ChangeRowIndexes.DOCUMENT_CHANGE], StampFieldType.ChangeSignature),
                         new StampTextFieldWord(changeRow.CellsElement[ChangeRowIndexes.DATE_CHANGE], StampFieldType.ChangeSignature));
Example #11
0
 public ApprovalSignatureMicrostation(ISignatureLibraryApp signatureLibrary, StampIdentifier stampIdentifier, IResultAppValue <IStampFieldMicrostation> signature,
                                      Func <ISignatureLibraryApp, IResultAppValue <IStampFieldMicrostation> > insertSignatureFunc,
                                      IStampTextField departmentApproval, IStampTextField responsiblePerson, IStampTextField dateSignature)
     : base(signatureLibrary, stampIdentifier, signature, insertSignatureFunc)
 {
     ResponsiblePerson = responsiblePerson ?? throw new ArgumentNullException(nameof(responsiblePerson));
     Department        = departmentApproval;
     DateSignature     = dateSignature;
 }
 public ChangeSignatureMicrostation(ISignatureLibraryApp signatureLibrary, StampIdentifier stampIdentifier, IResultAppValue <IStampFieldMicrostation> signature,
                                    Func <ISignatureLibraryApp, IResultAppValue <IStampFieldMicrostation> > insertSignatureFunc,
                                    IStampTextField numberChange, IStampTextField numberOfPlots, IStampTextField typeOfChange,
                                    IStampTextField documentChange, IStampTextField dateChange)
     : base(signatureLibrary, stampIdentifier, signature, insertSignatureFunc)
 {
     NumberChange   = numberChange;
     NumberPlots    = numberOfPlots;
     TypeOfChange   = typeOfChange;
     DocumentChange = documentChange;
     DateChange     = dateChange;
 }
 public ChangeSignatureWord(ISignatureLibraryApp signatureLibrary, StampIdentifier stampIdentifier,
                            IStampFieldWord signature, IStampTextField numberChange,
                            IStampTextField numberPlots, IStampTextField typeOfChange, IStampTextField documentChange,
                            IStampTextField dateChange)
     : base(signatureLibrary, stampIdentifier, signature)
 {
     NumberChange   = numberChange;
     NumberPlots    = numberPlots;
     TypeOfChange   = typeOfChange;
     DocumentChange = documentChange;
     DateChange     = dateChange;
 }
 public SignatureCreatingWord(ITableElementWord tableStamp, StampIdentifier stampIdentifier, IResultAppValue <ITableElementWord> tableApprovalPerformers,
                              IResultAppValue <ITableElementWord> tableApprovalChief,
                              IStampFieldsWord stampFieldsWord, StampDocumentType stampDocumentType,
                              SignaturesSearching signaturesSearching, string personId, bool useDefaultSignature)
     : base(signaturesSearching, personId, useDefaultSignature)
 {
     _tableStamp              = tableStamp ?? throw new ArgumentNullException(nameof(tableStamp));
     _stampIdentifier         = stampIdentifier;
     _tableApprovalPerformers = tableApprovalPerformers ?? throw new ArgumentNullException(nameof(tableApprovalPerformers));
     _tableApprovalChief      = tableApprovalChief ?? throw new ArgumentNullException(nameof(tableApprovalChief));
     _stampFieldsWord         = stampFieldsWord ?? throw new ArgumentNullException(nameof(stampFieldsWord));
     _stampDocumentType       = stampDocumentType;
 }
Example #15
0
 protected StampSignature(ISignatureLibraryApp signatureLibrary, StampIdentifier stampIdentifier)
 {
     SignatureLibrary = signatureLibrary ?? throw new ArgumentNullException(nameof(signatureLibrary));
     StampIdentifier  = stampIdentifier;
 }
 /// <summary>
 /// Получить класс с изменениями и подписью по строке Word
 /// </summary>
 private static IResultAppValue <IStampChange> GetStampChangeFromRow(IRowElementWord changeRow, ISignatureLibraryApp signatureLibrary,
                                                                     StampIdentifier stampIdentifier) =>
 new ResultAppValue <ISignatureLibraryApp>(signatureLibrary, new ErrorApplication(ErrorApplicationType.SignatureNotFound,
                                                                                  "Не найден идентификатор основной подписи")).
 ResultValueOk(signature => GetStampChangeFromFields(changeRow, signature, stampIdentifier));
Example #17
0
 protected SignatureWord(ISignatureLibraryApp signatureLibrary, StampIdentifier stampIdentifier, IStampFieldWord signature)
     : base(signatureLibrary, stampIdentifier)
 {
     _signature = new ResultAppValue <IStampFieldWord>(signature, new ErrorApplication(ErrorApplicationType.SignatureNotFound,
                                                                                       "Подпись не инициализирована"));
 }
 /// <summary>
 /// Сформировать строку с подписью изменений согласно идентификатору Microstation
 /// </summary>
 private static IResultAppValue <IStampChange> GetStampChangeById(ISignatureLibraryApp personSignature, StampIdentifier stampIdentifier,
                                                                  Func <ISignatureLibraryApp, IResultAppValue <IStampFieldMicrostation> > insertSignatureFunc,
                                                                  IStampTextField numberChange, IStampTextField numberOfPlots, IStampTextField typeOfChange,
                                                                  IStampTextField documentChange, IStampTextField dateChange) =>
 new ChangeSignatureMicrostation(personSignature, stampIdentifier, insertSignatureFunc, numberChange, numberOfPlots,
                                 typeOfChange, documentChange, dateChange).
 Map(stampChange => new ResultAppValue <IStampChange>(stampChange));
Example #19
0
 /// <summary>
 /// Получить класс с ответственным лицом и подписью на основании полей Word для строк согласования тех требований с директорами
 /// </summary>
 private static IStampApprovalChief GetStampApprovalChiefFromFields(IRowElementWord approvalChiefRow, ISignatureLibraryApp approvalChiefSignature,
                                                                    StampIdentifier stampIdentifier) =>
 new ApprovalChiefSignatureWord(approvalChiefSignature, stampIdentifier,
                                new StampFieldWord(approvalChiefRow.CellsElement[ApprovalChiefRowIndexes.SIGNATURE], StampFieldType.ApprovalChiefSignature),
                                new StampTextFieldWord(approvalChiefRow.CellsElement[ApprovalChiefRowIndexes.RESPONSIBLE_PERSON], StampFieldType.ApprovalChiefSignature),
                                new StampTextFieldWord(approvalChiefRow.CellsElement[ApprovalChiefRowIndexes.DEPARTMENT], StampFieldType.ApprovalChiefSignature));