Исправил обработку события для кода НС

This commit is contained in:
Александр Ряйсянен 2017-01-19 16:44:15 +10:00
parent 699066d019
commit f458792980

View File

@ -16,15 +16,15 @@
<DeviceModel>0</DeviceModel>
<Template>
&lt;XtraReportsLayoutSerializer SerializerVersion="16.2.3.0" Ref="1" ControlType="DevExpress.XtraReports.UI.XtraReport, DevExpress.XtraReports.v16.2, Version=16.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Name="BaseReport" ScriptsSource="private void ReplaceDecimalSeparator(object sender, DevExpress.XtraReports.UI.PrintOnPageEventArgs e) &amp;#xD;&amp;#xA;{&amp;#xD;&amp;#xA; XRLabel label = ((XRLabel)sender);&amp;#xD;&amp;#xA;&amp;#xD;&amp;#xA; label.Text = label.Text.Replace(&amp;quot;,&amp;quot;, &amp;quot;.&amp;quot;);&amp;#xD;&amp;#xA;}&amp;#xD;&amp;#xA;&amp;#xD;&amp;#xA;private void tableCell_HC_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e) &amp;#xD;&amp;#xA;{&amp;#xD;&amp;#xA;&amp;#x9;XRLabel label = ((XRLabel)sender);&amp;#xD;&amp;#xA;&amp;#x9;if (label.Text.Trim() != &amp;quot;&amp;quot;)&amp;#xD;&amp;#xA;&amp;#x9;&amp;#x9;label.Text = &amp;quot;*&amp;quot;;&amp;#xD;&amp;#xA;}&amp;#xD;&amp;#xA;" SnapGridSize="15.875" ReportUnit="TenthsOfAMillimeter" Margins="153, 98, 99, 53" PaperKind="A4" PageWidth="2100" PageHeight="2970" Version="16.2" RequestParameters="false" DataMember="ArchiveParent" DataSource="#Ref-0" Dpi="254" Font="Microsoft Sans Serif, 8.25pt" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="9|28676"&gt;
&lt;XtraReportsLayoutSerializer SerializerVersion="16.2.3.0" Ref="1" ControlType="DevExpress.XtraReports.UI.XtraReport, DevExpress.XtraReports.v16.2, Version=16.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Name="BaseReport" ScriptsSource="private void ReplaceDecimalSeparator(object sender, DevExpress.XtraReports.UI.PrintOnPageEventArgs e) &amp;#xD;&amp;#xA;{&amp;#xD;&amp;#xA; XRLabel label = ((XRLabel)sender);&amp;#xD;&amp;#xA;&amp;#xD;&amp;#xA; label.Text = label.Text.Replace(&amp;quot;,&amp;quot;, &amp;quot;.&amp;quot;);&amp;#xD;&amp;#xA;}&amp;#xD;&amp;#xA;&amp;#xD;&amp;#xA;private void tableCell_HC_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e) &amp;#xD;&amp;#xA;{&amp;#xD;&amp;#xA;&amp;#x9;XRTableCell cell = ((XRTableCell)sender);&amp;#xD;&amp;#xA;&amp;#x9;if (cell.Text.Trim() != &amp;quot;&amp;quot;)&amp;#xD;&amp;#xA;&amp;#x9;&amp;#x9;cell.Text = &amp;quot;*&amp;quot;;&amp;#xD;&amp;#xA;}&amp;#xD;&amp;#xA;" SnapGridSize="15.875" ReportUnit="TenthsOfAMillimeter" Margins="153, 98, 99, 53" PaperKind="A4" PageWidth="2100" PageHeight="2970" Version="16.2" RequestParameters="false" DataMember="ArchiveParent" DataSource="#Ref-0" Dpi="254" Font="Microsoft Sans Serif, 8.25pt" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="9|28676"&gt;
&lt;FormattingRuleSheet&gt;
&lt;Item1 Ref="2" Name="HourFormat" DataMember="Потребление" Condition="[Parameters.DATA_TYPE] == 128"&gt;
&lt;Formatting Ref="3" BorderStyle="Inset" StringFormat="Near;Near;0;None;Character;Default" /&gt;
&lt;/Item1&gt;
&lt;/FormattingRuleSheet&gt;
&lt;Parameters&gt;
&lt;Item1 Ref="5" Description="Дата начала отчетного периода" ValueInfo="2017-01-18" Name="DATE_START" Type="#Ref-4" /&gt;
&lt;Item2 Ref="6" Description="Дата окончания отчетного периода" ValueInfo="2017-01-18" Name="DATE_END" Type="#Ref-4" /&gt;
&lt;Item1 Ref="5" Description="Дата начала отчетного периода" ValueInfo="2017-01-19" Name="DATE_START" Type="#Ref-4" /&gt;
&lt;Item2 Ref="6" Description="Дата окончания отчетного периода" ValueInfo="2017-01-19" Name="DATE_END" Type="#Ref-4" /&gt;
&lt;Item3 Ref="8" Description="Идентификатор учетной записи" ValueInfo="0" Name="ACCOUNT_ID" Type="#Ref-7" /&gt;
&lt;Item4 Ref="9" Description="Тип данных" ValueInfo="0" Name="DATA_TYPE" Type="#Ref-7" /&gt;
&lt;Item5 Ref="11" Description="Параметр отчета задаваемый пользователем при формировании отчета." Name="USER_PARAMETER" /&gt;