EnvelopeC4Report.frx 13.2 KB
<?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" ReferencedAssemblies="System.dll&#13;&#10;System.Core.dll&#13;&#10;System.Drawing.dll&#13;&#10;System.Windows.Forms.dll&#13;&#10;System.Data.dll&#13;&#10;System.Xml.dll&#13;&#10;Sungero.Domain.Shared&#13;&#10;Sungero.CoreEntities.Shared&#13;&#10;Sungero.Reporting.Shared&#13;&#10;CommonLibrary&#13;&#10;Sungero.Content&#13;&#10;Sungero.Domain&#13;&#10;Sungero.Content.Shared&#13;&#10;Sungero.Domain.Interfaces&#13;&#10;Sungero.Workflow.Interfaces&#13;&#10;Sungero.Docflow.Shared&#13;&#10;Sungero.Docflow.Server" ReportInfo.CreatorVersion="2020.2.12.0">
  <ScriptText>using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text.RegularExpressions;
using System.Windows.Forms;
using FastReport;
using FastReport.Data;
using FastReport.Dialog;
using FastReport.Barcode;
using FastReport.Table;
using FastReport.Utils;
using Sungero.Docflow;
using Sungero.Domain.Shared;
using Sungero.CoreEntities;
using Sungero.Core;
using Resources = Sungero.Docflow.Reports.Resources;


namespace FastReport
{
  public class ReportScript
  {
  }
}
  </ScriptText>
  <Dictionary>
    <SungeroSqlDataConnection Name="Sungero_Connection" Restrictions="DontModify, DontEdit, DontDelete, HideAllProperties" ConnectionStringExpression="[SungeroConnectionString]">
      <TableDataSource Name="Table" Alias="LetterRequisites" DataType="System.Int32" Enabled="true" CanEdit="true" SelectCommand="${DataSource}">
        <Column Name="Id" DataType="System.Int32" PropName="Column"/>
        <Column Name="ToName" DataType="System.String" PropName="Column"/>
        <Column Name="FromName" DataType="System.String" PropName="Column"/>
        <Column Name="ToZipCode" DataType="System.String" PropName="Column"/>
        <Column Name="FromZipCode" DataType="System.String" PropName="Column"/>
        <Column Name="ToPlace" DataType="System.String" PropName="Column"/>
        <Column Name="FromPlace" DataType="System.String" PropName="Column"/>
        <CommandParameter Name="ReportSessionId" DataType="16" IsDbType="true" Expression="[ReportSessionId]"/>
      </TableDataSource>
    </SungeroSqlDataConnection>
    <SungeroParameter Name="SungeroConnectionString" Restrictions="DontModify, DontEdit, DontDelete, HideAllProperties, DontShow" Id="770ac42f-f924-4d0c-8b98-2fddca65166c" IsRequired="false" IsCollection="false" InternalDataType="System.String" IsSimpleDataType="false" EntityTypeId="00000000-0000-0000-0000-000000000000"/>
    <SungeroParameter Name="ReportSessionId" Id="e5985b53-b0ff-43b3-b0c8-00fcd6ce3100" IsRequired="false" IsCollection="false" InternalDataType="System.String" IsSimpleDataType="false" EntityTypeId="00000000-0000-0000-0000-000000000000"/>
    <SungeroParameter Name="PrintSender" Id="f0a14e76-edf7-4f76-a789-004e3c02ef32" IsRequired="false" IsCollection="false" InternalDataType="System.Boolean" IsSimpleDataType="true" EntityTypeId="00000000-0000-0000-0000-000000000000"/>
    <SungeroParameter Name="OutgoingDocuments" Id="c054f027-af71-43e6-a987-10c6ed3eb71d" IsRequired="false" IsCollection="true" InternalDataType="Sungero.Docflow.IOutgoingDocumentBase, Sungero.Domain.Interfaces" IsSimpleDataType="false" EntityTypeId="f5f104fb-52e4-422b-9de1-a36937d85a2d"/>
    <SungeroParameter Name="ContractualDocuments" Id="41e6dbbd-2a8d-434d-a2a4-f0b000087fd0" IsRequired="false" IsCollection="true" InternalDataType="Sungero.Docflow.IContractualDocumentBase, Sungero.Domain.Interfaces" IsSimpleDataType="false" EntityTypeId="454df3c6-b850-47cf-897f-a10d767baa77"/>
    <SungeroParameter Name="AccountingDocuments" Id="362ee363-8fb4-49a5-b6c6-5f67aea21ed4" IsRequired="false" IsCollection="true" InternalDataType="Sungero.Docflow.IAccountingDocumentBase, Sungero.Domain.Interfaces" IsSimpleDataType="false" EntityTypeId="96c4f4f3-dc74-497a-b347-e8faf4afe320"/>
  </Dictionary>
  <ReportPage Name="Page1" Landscape="true" PaperWidth="324" PaperHeight="229" RawPaperSize="0" LeftMargin="0" TopMargin="0" RightMargin="0" BottomMargin="0" FirstPageSource="15" OtherPagesSource="15" Watermark.Font="Arial, 60pt">
    <DataBand Name="Data1" Width="1224.72" Height="865.62" DataSource="Table">
      <TextObject Name="FromLines" Left="37.8" Top="124.74" Width="453.6" Height="132.3" Font="Arial, 10pt" LineHeight="24.57">
        <Highlight>
          <Condition Expression="![PrintSender]" Visible="false" Font="Arial, 10pt" ApplyTextFill="false"/>
        </Highlight>
      </TextObject>
      <TextObject Name="ToLines" Left="680.4" Top="627.48" Width="453.6" Height="151.2" Font="Arial, 10pt" LineHeight="24.57"/>
      <ZipCodeObject Name="ZipCode" Left="37.8" Top="774.9" Width="238.14" Height="55.92" Expression="[LetterRequisites.ToZipCode]" Text="      "/>
      <TextObject Name="ImagePlaceholder" Left="37.8" Top="289.17" Width="585.9" Height="466.83" Fill.Color="Gainsboro" Text="(Зона иллюстрации)" HorzAlign="Center" VertAlign="Center" Font="Arial, 10pt">
        <Highlight>
          <Condition Expression="0 == 0" Visible="false" Font="Arial, 10pt" ApplyTextFill="false"/>
        </Highlight>
      </TextObject>
      <TextObject Name="ZipCodeTo" Left="680.4" Top="774.9" Width="189" Height="37.8" Border.Lines="All" Text="[LetterRequisites.ToZipCode]" HorzAlign="Center" VertAlign="Bottom" Font="Arial, 14pt"/>
      <TextObject Name="ZipCodeToPlaceholder" Left="680.4" Top="769.23" Width="189" Height="18.9" Text="Индекс места назначения" HorzAlign="Center" VertAlign="Center" Font="Arial, 6.75pt, style=Italic"/>
      <TextObject Name="ZipCodeFrom" Left="302.4" Top="247.59" Width="189" Height="37.8" Border.Lines="All" Text="[LetterRequisites.FromZipCode]" HorzAlign="Center" VertAlign="Bottom" Font="Arial, 11.25pt">
        <Highlight>
          <Condition Expression="![PrintSender]" Visible="false" Font="Arial, 10pt" ApplyTextFill="false"/>
        </Highlight>
      </TextObject>
      <TextObject Name="StampsCorner" Left="1077.3" Top="94.5" Width="56.7" Height="56.7" Border.Lines="Right, Top" HorzAlign="Center" VertAlign="Center" Font="Arial, 10pt"/>
      <TextObject Name="ZipCodeFromPlaceholder" Left="302.4" Top="241.92" Width="189" Height="18.9" Text="Индекс места отправления" HorzAlign="Center" VertAlign="Center" Font="Arial, 6pt, style=Italic">
        <Highlight>
          <Condition Expression="![PrintSender]" Visible="false" Font="Arial, 10pt" ApplyTextFill="false"/>
        </Highlight>
      </TextObject>
      <TextObject Name="ToPlaceLabel" Left="680.4" Top="678.51" Width="47.25" Height="24.57" Fill.Color="White" Text="Куда" Padding="0, 0, 0, 0" VertAlign="Bottom" Font="Arial, 10pt, style=Italic"/>
      <TextObject Name="ToNameLabel" Left="680.4" Top="628.24" Width="47.25" Height="24.57" Fill.Color="White" Text="Кому" Padding="0, 0, 0, 0" VertAlign="Bottom" Font="Arial, 10pt, style=Italic"/>
      <TextObject Name="FromNameField1" Left="105.08" Top="124.74" Width="498.96" Height="24.57" BreakTo="FromNameField2" Text="[LetterRequisites.FromName]" Padding="0, 0, 0, 0" VertAlign="Bottom" Font="Arial, 10pt" FirstTabOffset="52.92">
        <Highlight>
          <Condition Expression="![PrintSender]" Visible="false" Font="Arial, 10pt" ApplyTextFill="false"/>
          <Condition Expression="Length([LetterRequisites.FromName]) &gt; 210" Font="Arial, 6.75pt" ApplyTextFill="false" ApplyFont="true"/>
          <Condition Expression="Length([LetterRequisites.FromName]) &gt; 110 &amp; Length([LetterRequisites.FromName]) &lt;= 210" Font="Arial, 8.25pt" ApplyTextFill="false" ApplyFont="true"/>
        </Highlight>
      </TextObject>
      <TextObject Name="FromPlaceField1" Left="105.08" Top="173.88" Width="385.56" Height="24.57" Border.Lines="Bottom" Border.Width="0.5" BreakTo="FromPlaceField2" Text="[LetterRequisites.FromPlace]" Padding="0, 0, 0, 0" VertAlign="Bottom" Font="Arial, 10pt" FirstTabOffset="52.92">
        <Highlight>
          <Condition Expression="![PrintSender]" Visible="false" Font="Arial, 10pt" ApplyTextFill="false"/>
        </Highlight>
      </TextObject>
      <TextObject Name="FromPlaceField2" Left="37.8" Top="198.45" Width="453.6" Height="24.57" Border.Lines="Bottom" Border.Width="0.5" BreakTo="FromPlaceField3" Padding="0, 0, 0, 0" VertAlign="Bottom" Font="Arial, 10pt" FirstTabOffset="52.92">
        <Highlight>
          <Condition Expression="![PrintSender]" Visible="false" Font="Arial, 10pt" ApplyTextFill="false"/>
        </Highlight>
      </TextObject>
      <TextObject Name="FromNameLabel" Left="37.04" Top="126.63" Width="67.28" Height="24.57" Fill.Color="White" Text="От кого" Padding="0, 0, 0, 0" VertAlign="Bottom" Font="Arial, 10pt, style=Italic">
        <Highlight>
          <Condition Expression="![PrintSender]" Visible="false" Font="Arial, 10pt" ApplyTextFill="false"/>
        </Highlight>
      </TextObject>
      <TextObject Name="FromPlaceLabel" Left="37.04" Top="175.77" Width="67.28" Height="24.57" Fill.Color="White" Text="Откуда" Padding="0, 0, 0, 0" VertAlign="Bottom" Font="Arial, 10pt, style=Italic">
        <Highlight>
          <Condition Expression="![PrintSender]" Visible="false" Font="Arial, 10pt" ApplyTextFill="false"/>
        </Highlight>
      </TextObject>
      <TextObject Name="ToNameField1" Left="727.65" Top="627.48" Width="406.35" Height="24.57" Border.Lines="Bottom" Border.Width="0.5" BreakTo="ToNameField2" Text="[LetterRequisites.ToName]" Padding="0, 0, 0, 0" VertAlign="Bottom" Font="Arial, 10pt" FirstTabOffset="47.25"/>
      <TextObject Name="ToNameField2" Left="680.4" Top="652.05" Width="453.6" Height="24.57" Padding="0, 0, 0, 0" AutoWidth="true" VertAlign="Bottom" Font="Arial, 10pt" FirstTabOffset="47.25"/>
      <TextObject Name="ToPlaceField1" Left="727.65" Top="676.62" Width="406.35" Height="24.57" Border.Lines="Bottom" Border.Width="0.5" BreakTo="ToPlaceField2" Text="[LetterRequisites.ToPlace]" VertAlign="Bottom" Font="Arial, 10pt" FirstTabOffset="47.25"/>
      <TextObject Name="ToPlaceField2" Left="680.4" Top="701.19" Width="453.6" Height="24.57" Border.Lines="Bottom" Border.Width="0.5" BreakTo="ToPlaceField3" VertAlign="Bottom" Font="Arial, 10pt" FirstTabOffset="47.25"/>
      <TextObject Name="ToPlaceField3" Left="680.4" Top="725.76" Width="453.6" Height="24.57" Border.Lines="Bottom" Border.Width="0.5" BreakTo="ToPlaceField4" VertAlign="Bottom" Font="Arial, 10pt" FirstTabOffset="47.25"/>
      <TextObject Name="ToPlaceField4" Left="680.4" Top="750.33" Width="453.6" Height="24.57" AutoWidth="true" VertAlign="Bottom" Font="Arial, 10pt" FirstTabOffset="47.25"/>
      <TextObject Name="FromPlaceField3" Left="37.8" Top="198.45" Width="453.6" Height="24.57" Padding="0, 0, 0, 0" AutoWidth="true" VertAlign="Bottom" Font="Arial, 10pt" FirstTabOffset="52.92">
        <Highlight>
          <Condition Expression="![PrintSender]" Visible="false" Font="Arial, 10pt" ApplyTextFill="false"/>
        </Highlight>
      </TextObject>
      <TextObject Name="Text1" Left="105.08" Top="124.74" Width="385.56" Height="24.57" Border.Lines="Bottom" Border.Width="0.5" Padding="0, 0, 0, 0" VertAlign="Bottom" Font="Arial, 10pt" FirstTabOffset="52.92">
        <Highlight>
          <Condition Expression="![PrintSender]" Visible="false" Font="Arial, 10pt" ApplyTextFill="false"/>
        </Highlight>
      </TextObject>
      <TextObject Name="Text2" Left="37.8" Top="223.02" Width="453.6" Height="24.57" Border.Lines="Bottom" Border.Width="0.5" Padding="0, 0, 0, 0" VertAlign="Bottom" Font="Arial, 10pt" FirstTabOffset="52.92">
        <Highlight>
          <Condition Expression="![PrintSender]" Visible="false" Font="Arial, 10pt" ApplyTextFill="false"/>
        </Highlight>
      </TextObject>
      <TextObject Name="Text3" Left="680.4" Top="652.05" Width="453.6" Height="24.57" Border.Lines="Bottom" Border.Width="0.5" Padding="0, 0, 0, 0" VertAlign="Bottom" Font="Arial, 10pt" FirstTabOffset="47.25"/>
      <TextObject Name="Text4" Left="680.4" Top="750.33" Width="453.6" Height="24.57" Border.Lines="Bottom" Border.Width="0.5" VertAlign="Bottom" Font="Arial, 10pt" FirstTabOffset="47.25"/>
      <TextObject Name="Text5" Left="37.8" Top="149.31" Width="451.71" Height="24.57" Border.Lines="Bottom" Border.Width="0.5" Padding="0, 0, 0, 0" VertAlign="Bottom" Font="Arial, 10pt" FirstTabOffset="52.92">
        <Highlight>
          <Condition Expression="![PrintSender]" Visible="false" Font="Arial, 10pt" ApplyTextFill="false"/>
        </Highlight>
      </TextObject>
      <TextObject Name="FromNameField2" Left="37.8" Top="150.82" Width="566.24" Height="24.57" Padding="0, 0, 0, 0" VertAlign="Bottom" Font="Arial, 10pt">
        <Highlight>
          <Condition Expression="![PrintSender]" Visible="false" Font="Arial, 10pt" ApplyTextFill="false"/>
          <Condition Expression="Length([LetterRequisites.FromName]) &gt; 210" Font="Arial, 6.75pt" ApplyTextFill="false" ApplyFont="true"/>
          <Condition Expression="Length([LetterRequisites.FromName]) &gt; 110 &amp; Length([LetterRequisites.FromName]) &lt;= 210" Font="Arial, 8.25pt" ApplyTextFill="false" ApplyFont="true"/>
        </Highlight>
      </TextObject>
    </DataBand>
  </ReportPage>
</Report>