EnvelopeC5Report.frx
13.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" ReferencedAssemblies="System.dll System.Core.dll System.Drawing.dll System.Windows.Forms.dll System.Data.dll System.Xml.dll Sungero.Domain.Shared Sungero.CoreEntities.Shared Sungero.Reporting.Shared CommonLibrary Sungero.Content Sungero.Domain Sungero.Content.Shared Sungero.Domain.Interfaces Sungero.Workflow.Interfaces Sungero.Docflow.Shared 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="a76f6239-2fac-4687-9977-b62ab28a3711" 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="229.1" PaperHeight="162.1" RawPaperSize="28" LeftMargin="0" TopMargin="0" RightMargin="0" BottomMargin="0" FirstPageSource="15" OtherPagesSource="15" Watermark.Font="Arial, 60pt">
<DataBand Name="Data1" Width="866" Height="612.36" DataSource="Table">
<TextObject Name="FromLines" Left="37.8" Top="79.38" Width="321.3" Height="126.63" Font="Arial, 10pt" LineHeight="24.57">
<Highlight>
<Condition Expression="![PrintSender]" Visible="false" Font="Arial, 10pt" ApplyTextFill="false"/>
</Highlight>
</TextObject>
<TextObject Name="ToLines" Left="415.8" Top="372.33" Width="378" Height="151.2" Font="Arial, 10pt" LineHeight="24.57"/>
<ZipCodeObject Name="ZipCode" Left="37.8" Top="519.75" Width="238.14" Height="55.92" Expression="[LetterRequisites.ToZipCode]" Text=" "/>
<TextObject Name="ImagePlaceholder" Left="37.8" Top="236.25" Width="321.3" Height="255.15" 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="415.8" Top="519.75" Width="151.2" Height="30.24" Border.Lines="All" Text="[LetterRequisites.ToZipCode]" HorzAlign="Center" VertAlign="Bottom" Font="Arial, 14pt"/>
<TextObject Name="ZipCodeToPlaceholder" Left="415.8" Top="514.08" Width="151.2" Height="18.9" Text="Индекс места назначения" HorzAlign="Center" VertAlign="Center" Font="Arial, 6.75pt, style=Italic"/>
<TextObject Name="ZipCodeFrom" Left="226.8" Top="202.23" Width="132.3" Height="30.24" 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="752.22" Top="66.15" Width="56.7" Height="56.7" Border.Lines="Right, Top" HorzAlign="Center" VertAlign="Center" Font="Arial, 10pt"/>
<TextObject Name="ZipCodeFromPlaceholder" Left="226.8" Top="196.56" Width="132.3" 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="415.8" Top="423.36" 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="415.8" Top="374.22" 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="79.38" Width="481.95" 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]) > 210" Font="Arial, 6.75pt" ApplyTextFill="false" ApplyFont="true"/>
<Condition Expression="Length([LetterRequisites.FromName]) > 110 & Length([LetterRequisites.FromName]) <= 210" Font="Arial, 8.25pt" ApplyTextFill="false" ApplyFont="true"/>
</Highlight>
</TextObject>
<TextObject Name="FromPlaceField1" Left="105.08" Top="128.52" Width="255.15" 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="153.09" Width="321.3" 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="81.27" 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="130.41" 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="463.05" Top="372.33" Width="330.75" 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="415.8" Top="396.9" Width="378" Height="24.57" Padding="0, 0, 0, 0" AutoWidth="true" VertAlign="Bottom" Font="Arial, 10pt" FirstTabOffset="47.25"/>
<TextObject Name="ToPlaceField1" Left="463.05" Top="421.47" Width="330.75" 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="415.8" Top="446.04" Width="378" Height="24.57" Border.Lines="Bottom" Border.Width="0.5" BreakTo="ToPlaceField3" VertAlign="Bottom" Font="Arial, 10pt" FirstTabOffset="47.25"/>
<TextObject Name="ToPlaceField3" Left="415.8" Top="470.61" Width="378" Height="24.57" Border.Lines="Bottom" Border.Width="0.5" BreakTo="ToPlaceField4" VertAlign="Bottom" Font="Arial, 10pt" FirstTabOffset="47.25"/>
<TextObject Name="ToPlaceField4" Left="415.8" Top="495.18" Width="378" Height="24.57" AutoWidth="true" VertAlign="Bottom" Font="Arial, 10pt" FirstTabOffset="47.25"/>
<TextObject Name="FromPlaceField3" Left="37.8" Top="153.09" Width="321.3" 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="79.38" Width="255.15" 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="177.66" Width="321.3" 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="415.8" Top="396.9" Width="378" 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="415.8" Top="495.18" Width="378" 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="103.95" Width="321.3" 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="104.71" Width="549.23" 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]) > 210" Font="Arial, 6.75pt" ApplyTextFill="false" ApplyFont="true"/>
<Condition Expression="Length([LetterRequisites.FromName]) > 110 & Length([LetterRequisites.FromName]) <= 210" Font="Arial, 8.25pt" ApplyTextFill="false" ApplyFont="true"/>
</Highlight>
</TextObject>
</DataBand>
</ReportPage>
</Report>