OTSReport_criterion.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. using DevExpress.XtraReports.UI;
  2. using OTSIncAReportApp.OTSSampleReportInfo;
  3. using OTSIncAReportApp.OTSTemplateDesigner;
  4. using OTSIncAReportApp.ReportTemplate;
  5. using System;
  6. using System.Collections.Generic;
  7. using System.ComponentModel;
  8. using System.Data;
  9. using System.Drawing;
  10. using System.Linq;
  11. using System.Text;
  12. using System.Threading.Tasks;
  13. using System.Windows.Forms;
  14. namespace OTSIncAReportApp._1_UI.OTSTemplateDesigner
  15. {
  16. public partial class OTSReport_criterion : Form
  17. {
  18. Export_ReportTemplate export_Report;
  19. GBReport GB_Report;
  20. OTSReport_Export in_export;
  21. public int Sample_order { set; get; }
  22. public DataTable Language_dt { set; get; }
  23. public OTSReport_criterion(Export_ReportTemplate Export_Report, GBReport gb_Report, OTSReport_Export In_export)
  24. {
  25. GB_Report = gb_Report;
  26. in_export = In_export;
  27. export_Report = Export_Report;
  28. InitializeComponent();
  29. }
  30. private void button1_Click(object sender, EventArgs e)
  31. {
  32. Cursor.Current = Cursors.WaitCursor;
  33. export_Report.criterion_out(GB_Report, in_export, Sample_order, Language_dt, GB_cb_1.Checked, GB_cb_2.Checked,false,false);
  34. Cursor.Current = Cursors.WaitCursor;
  35. this.Close();
  36. }
  37. }
  38. }