You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
2.4 KiB

1 month ago
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Report ScriptLanguage="CSharp" ReportInfo.Created="08/23/2023 09:29:26" ReportInfo.Modified="05/03/2024 17:43:30" ReportInfo.CreatorVersion="2018.3.13.0">
  3. <ScriptText>using System;
  4. using System.Collections;
  5. using System.Collections.Generic;
  6. using System.ComponentModel;
  7. using System.Windows.Forms;
  8. using System.Drawing;
  9. using System.Data;
  10. using FastReport;
  11. using FastReport.Data;
  12. using FastReport.Dialog;
  13. using FastReport.Barcode;
  14. using FastReport.Table;
  15. using FastReport.Utils;
  16. using System.IO;
  17. namespace FastReport
  18. {
  19. public class ReportScript
  20. {
  21. private void Barcode1_BeforePrint(object sender, EventArgs e)
  22. {
  23. Barcode1.Barcode=new Barcode128();
  24. Barcode1.Text=((String)Report.GetColumnValue(&quot;exam.checkRequestNo&quot;));
  25. }
  26. }
  27. }
  28. </ScriptText>
  29. <Dictionary>
  30. <TableDataSource Name="exam" ReferenceName="Data.exam" DataType="System.Int32" Enabled="true">
  31. <Column Name="patientName" DataType="System.String"/>
  32. <Column Name="sexName" DataType="System.String"/>
  33. <Column Name="age" DataType="System.String"/>
  34. <Column Name="checkRequestNo" DataType="System.String"/>
  35. <Column Name="patientRegisterNo" DataType="System.String"/>
  36. <Column Name="asbitemName" DataType="System.String"/>
  37. <Column Name="customerOrgName" DataType="System.String"/>
  38. <Column Name="departmentName" DataType="System.String"/>
  39. <Column Name="barcodeImg" DataType="System.String"/>
  40. </TableDataSource>
  41. <Parameter Name="printer" DataType="System.String"/>
  42. <Parameter Name="hisLog" DataType="System.String"/>
  43. </Dictionary>
  44. <ReportPage Name="Page1" PaperWidth="40" PaperHeight="30" LeftMargin="3" TopMargin="1" RightMargin="3" BottomMargin="1">
  45. <DataBand Name="Data1" Width="128.52" Height="103.95" DataSource="exam">
  46. <TextObject Name="Text1" Left="-1.35" Top="6" Width="151.2" Height="18.9" Text="[exam.patientName] [exam.sexName] [exam.age]岁"/>
  47. <TextObject Name="Text10" Left="2.45" Top="81.6" Width="141.75" Height="18.9" Text="[exam.asbitemName]"/>
  48. <BarcodeObject Name="Barcode1" Left="-5.1" Top="25.35" Width="126.25" Height="37.8" BeforePrintEvent="Barcode1_BeforePrint" Text="123456780" ShowText="false" Barcode="Code128" Barcode.AutoEncode="true"/>
  49. <TextObject Name="Text2" Left="3" Top="66.15" Width="141.75" Height="18.9" Text="[exam.checkRequestNo]" HorzAlign="Center"/>
  50. </DataBand>
  51. </ReportPage>
  52. </Report>