<?xml version="1.0" encoding="utf-8"?> <Report ScriptLanguage="CSharp" ReportInfo.Created="09/25/2019 13:45:10" ReportInfo.Modified="11/13/2019 10:12:56" ReportInfo.CreatorVersion="2018.4.2.0"> <ScriptText>using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Windows.Forms; using System.Drawing; using System.Data; using FastReport; using FastReport.Data; using FastReport.Dialog; using FastReport.Barcode; using FastReport.Table; using FastReport.Utils; namespace FastReport { public class ReportScript { private void Data1_AfterData(object sender, EventArgs e) { if(!(Boolean)Report.GetColumnValue("Labels.IsManualPrint")) { Shape1.Visible=false; } } } } </ScriptText> <Dictionary> <BusinessObjectDataSource Name="Labels" ReferenceName="Labels" DataType="null" Enabled="true"> <Column Name="SerialNumber" DataType="System.String"/> <Column Name="MaterialCode" DataType="System.String"/> <Column Name="MaterialName" DataType="System.String"/> <Column Name="CreateDate" DataType="System.DateTime"/> <Column Name="ShiftCode" DataType="System.String"/> <Column Name="MachineCode" DataType="System.String"/> <Column Name="ModelCode" DataType="System.String"/> <Column Name="IsManualPrint" DataType="System.Boolean" BindableControl="CheckBox"/> </BusinessObjectDataSource> </Dictionary> <ReportPage Name="Page1" PaperWidth="35" PaperHeight="15" LeftMargin="0" TopMargin="0" RightMargin="0" BottomMargin="0" FirstPageSource="15" OtherPagesSource="15"> <DataBand Name="Data1" Width="132.3" Height="56.26" AfterDataEvent="Data1_AfterData" DataSource="Labels"> <TextObject Name="Text1" Left="64.89" Top="4.54" Width="64.83" Height="14.24" Text="[Labels.MaterialName]" Font="黑体, 5pt, style=Bold"/> <TextObject Name="Text2" Left="16.02" Top="6.65" Width="10.47" Height="33.52" Text="[Labels.CreateDate]" Format="Custom" Format.Format="yy-MM-dd" AutoWidth="true" Angle="270" WordWrap="false" Font="黑体, 5pt"/> <TextObject Name="Text3" Left="27.91" Top="42.83" Width="34.27" Height="7.98" Text="[Labels.CreateDate]" Format="Custom" Format.Format="HH:mm:ss" AutoWidth="true" WordWrap="false" Font="黑体, 5pt"/> <TextObject Name="Text4" Left="16.96" Top="41.81" Width="10.92" Height="7.6" Text="[Replace([Labels.ShiftCode],"INJ_","")]" HorzAlign="Right" Font="黑体, 6pt, style=Bold"/> <TextObject Name="Text5" Left="64.89" Top="18.9" Width="61.6" Height="7.61" Text="[Labels.MaterialCode]" AutoWidth="true" WordWrap="false" Font="黑体, 5pt"/> <TextObject Name="Text6" Left="64.89" Top="26.46" Width="54.56" Height="15.19" Text="[Labels.SerialNumber]" Font="黑体, 5pt"/> <TextObject Name="Text7" Left="70.56" Top="42.34" Width="24.16" Height="8.57" Text="[Replace([Labels.MachineCode],"INJ_","")]" AutoWidth="true" WordWrap="false" Font="黑体, 5pt, style=Bold"/> <TextObject Name="Text8" Left="112.37" Top="42.34" Width="13.22" Height="8.57" Text="[Labels.ModelCode]" HorzAlign="Right" Font="黑体, 5pt, style=Bold"/> <ShapeObject Name="Shape1" Left="67.78" Top="43.85" Width="3.78" Height="3.78" Fill.Color="Black" Shape="Ellipse"/> <BarcodeObject Name="Barcode1" Left="26.11" Top="6.24" Width="36" Height="36" DataColumn="Labels.SerialNumber" Text="NCK000019092513450001" ShowText="false" Barcode="Datamatrix" Barcode.SymbolSize="Size18x18" Barcode.Encoding="Auto" Barcode.CodePage="1252" Barcode.PixelSize="2"/> </DataBand> </ReportPage> </Report>