Esempio n. 1
0
 /// <summary>
 /// Поучить штампы в порядке их сортировки
 /// </summary>
 private IResultAppCollection <IStamp> GetStampsInOrder(IList <TableStampType> tablesStamp, ConvertingSettingsApp convertingSettings) =>
 StampCreating.GetMainStamp(tablesStamp[0].StampType, tablesStamp[0].TableWord,
                            StampCreating.GetStampSettingsWord(0, convertingSettings, PaperSize, OrientationType),
                            ApplicationOffice.ResourcesWord.SignaturesSearching, Tables).
 Map(mainStamp => new ResultAppCollection <IStamp>(new List <IStamp>()
 {
     mainStamp
 }).
     ConcatResult(GetShortStamps(tablesStamp.Where(tableStamp => tableStamp.StampType == StampType.Shortened).
                                 Select(tableStamp => tableStamp.TableWord),
                                 mainStamp, convertingSettings)));
Esempio n. 2
0
 /// <summary>
 /// Получить сокращенные штампы
 /// </summary>
 private IResultAppCollection <IStamp> GetShortStamps(IEnumerable <ITableElementWord> tablesStamp, IStamp fullStamp, ConvertingSettingsApp convertingSettings) =>
 StampCreating.GetShortStamps(fullStamp, tablesStamp,
                              StampCreating.GetStampSettingsWord(1, convertingSettings, PaperSize, OrientationType),
                              ApplicationOffice.ResourcesWord.SignaturesSearching);