//---------------------------------------------------------------------------

#ifndef PrintInspectionResult_Ajanta_FormH
#define PrintInspectionResult_Ajanta_FormH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include <QRCtrls.hpp>
#include <QuickRpt.hpp>
#include "TntForms.hpp"
#include "SelectDefectImage_Form.h"  

#include "Common_PC.h"
#include <Graphics.hpp>
#include "TntExtCtrls.hpp"
#include "TntStdCtrls.hpp"
#include <ComCtrls.hpp>
#include <Chart.hpp>
#include <DbChart.hpp>
#include <QRTEE.hpp>
#include <TeEngine.hpp>
#include <TeeProcs.hpp>
#include <Series.hpp>

#define ETC_MAX_LIST_NUMBER 20
//---------------------------------------------------------------------------
class TPrintInspectionResult_Ajanta_Form : public TTntForm
{
__published:	// IDE-managed Components
	TTntPanel *Panel1;
	TTntPanel *Panel3;
	TTntButton *PrintPreviewButton;
    TTntButton *CancelButton;
    TTntButton *PrintButton;
    TTntButton *PrinterSetupButton;
	TTntGroupBox *GroupBox1;
	TTntRadioButton *PrintGradeOnlyRadioButton;
	TTntRadioButton *PrintGradeAndSizeRadioButton;
  TTntPanel *ReportPanel3;
  TQuickRep *QuickRep3;
  TQRBand *QRBand5;
  TQRShape *QRShape20;
  TQRLabel *QRLabel94;
  TQRLabel *QRLabel95;
  TQRLabel *QRLabel96;
  TQRLabel *QRLabel98;
  TQRLabel *QRLabel100;
  TQRLabel *QRLabel102;
  TQRLabel *QRLabel103;
  TQRLabel *QRLabel104;
  TQRLabel *QRLabel105;
  TQRShape *QRShape30;
  TQRShape *QRShape31;
  TQRShape *QRShape70;
  TQRLabel *FrontNormalDirtyGradeQRLabel3;
  TQRLabel *FrontPrintDirtyGradeQRLabel3;
  TQRLabel *FrontEdgeDirtyGradeQRLabel3;
  TQRLabel *FrontStainGradeQRLabel3;
  TQRLabel *OptionBreakingGradeQRLabel3;
  TQRLabel *SideDirtyGradeQRLabel3;
  TQRLabel *SideStainGradeQRLabel3;
  TQRLabel *QRLabel113;
  TQRLabel *QRLabel114;
  TQRLabel *OptionFrontStickingGradeType1QRLabel3;
  TQRLabel *QRLabel116;
  TQRLabel *OptionPrintMarkGradeQRLabel3;
  TQRLabel *QRLabel119;
  TQRLabel *FrontColorDirtyGradeQRLabel3;
  TQRLabel *QRLabel121;
  TQRLabel *FrontEdgeStainGradeQRLabel3;
  TQRLabel *PrintEraseGradeQRLabel3;
  TQRLabel *QRLabel124;
  TQRLabel *ColorGradeQRLabel3;
  TQRLabel *QRLabel138;
  TQRLabel *QRLabel139;
  TQRLabel *QRLabel140;
  TQRLabel *QRLabel141;
  TQRShape *R3VerShape1;
  TQRShape *R3VerShape2;
  TQRShape *QRShape102;
  TQRShape *R3VerShape3;
  TQRShape *R3VerShape4;
  TQRShape *R3VerShape5;
  TQRShape *R3VerShape7;
  TQRShape *R3VerShape8;
  TQRShape *R3VerShape9;
  TQRShape *R3VerShape10;
  TQRLabel *QRLabel144;
  TQRLabel *SideColorDirtyGradeQRLabel3;
  TQRLabel *ThreeDHeightMinusLimitQRLabel3;
  TQRLabel *ThreeDHeightPlusLimitQRLabel3;
  TQRLabel *ThreeDHeightGradeQRLabel3;
  TQRShape *QRShape115;
  TTntPanel *ReportPanel4;
  TQuickRep *QuickRep4;
  TQRBand *QRBand7;
  TQRShape *SideGradeLabel12222;
  TQRLabel *QRLabel174;
  TQRLabel *QRLabel178;
  TQRLabel *QRLabel179;
  TQRLabel *QRLabel180;
  TQRLabel *QRLabel181;
  TQRLabel *QRLabel182;
  TQRLabel *QRLabel183;
  TQRLabel *QRLabel184;
  TQRLabel *QRLabel185;
  TQRLabel *QRLabel186;
  TQRLabel *QRLabel187;
  TQRLabel *QRLabel188;
  TQRLabel *QRLabel189;
  TQRShape *QRShape131;
  TQRShape *QRShape132;
  TQRShape *QRShape133;
  TQRShape *QRShape134;
  TQRShape *QRShape135;
  TQRShape *QRShape136;
  TQRShape *QRShape137;
  TQRShape *QRShape138;
  TQRShape *QRShape139;
  TQRShape *QRShape140;
  TQRShape *QRShape141;
  TQRShape *QRShape142;
  TQRShape *QRShape143;
  TQRLabel *FrontNormalDirtyGradeQRLabel4;
  TQRLabel *FrontPrintDirtyGradeQRLabel4;
  TQRLabel *FrontEdgeDirtyGradeQRLabel4;
  TQRLabel *FrontStainGradeQRLabel4;
  TQRLabel *OptionBreakingGradeQRLabel4;
  TQRLabel *SideDirtyGradeQRLabel4;
  TQRLabel *SideStainGradeQRLabel4;
  TQRLabel *ThreeDHeightGradeQRLabel4;
  TQRShape *QRShape144;
  TQRShape *QRShape145;
  TQRLabel *QRLabel200;
  TQRLabel *QRLabel201;
  TQRLabel *OptionFrontStickingGradeType1QRLabel4;
  TQRLabel *QRLabel203;
  TQRLabel *OptionPrintMarkGradeQRLabel4;
  TQRShape *QRShape147;
  TQRLabel *QRLabel206;
  TQRLabel *FrontColorDirtyGradeQRLabel4;
  TQRLabel *QRLabel208;
  TQRLabel *FrontEdgeStainGradeQRLabel4;
  TQRLabel *PrintEraseGradeQRLabel4;
  TQRShape *QRShape148;
  TQRShape *QRShape149;
  TQRLabel *QRLabel211;
  TQRLabel *ColorGradeQRLabel4;
  TQRShape *QRShape150;
  TQRLabel *FrontNormalDirtySizeQRLabel4;
  TQRLabel *FrontEdgeDirtySizeQRLabel4;
  TQRLabel *FrontStainSizeQRLabel4;
  TQRLabel *FrontEdgeSizeQRLabel4;
  TQRLabel *FrontColorDirtySizeQRLabel4;
  TQRShape *QRShape151;
  TQRShape *QRShape152;
  TQRShape *QRShape153;
  TQRLabel *SideDirtySizeQRLabel4;
  TQRLabel *SideStainSizeQRLabel4;
  TQRLabel *ThreeDHeightPlusLimitQRLabel4;
  TQRLabel *OptionFrontStickingSizeType1QRLabel4;
  TQRShape *QRShape154;
  TQRLabel *QRLabel224;
  TQRLabel *SideColorDirtyGradeQRLabel4;
  TQRLabel *SideColorDirtySizeQRLabel4;
  TQRLabel *ThreeDHeightMinusLimitQRLabel4;
  TQRLabel *OptionBreakingSizeQRLabel4;
  TQRShape *QRShape155;
  TQRShape *DefectSeriease;
  TQRLabel *QRLLABEL11;
  TQRLabel *SideGradeLabel1;
  TCheckBox *PrintDefectSeriesCheckBox;
      
  TGroupBox *GroupBox3;
  TPanel *Panel2;
  TStaticText *StaticText2;
  TStaticText *ReportPageLabel;
  TUpDown *UpDown1;
        TTntGroupBox *GroupBox4;
        TTntButton *SelectDefectImageButton;
        TTntPanel *ReportPanel5;
        TQuickRep *QuickRep5;
        TQRBand *QRBand9;
        TQRLabel *QRLabel122;
        TQRBand *QRBand10;
        TQRShape *QRImageFrame2;
        TQRShape *QRImageFrame3;
        TQRShape *QRImageFrame4;
        TQRShape *QRImageFrame5;
        TQRShape *QRImageFrame6;
        TQRShape *QRImageFrame7;
        TQRShape *QRImageFrame10;
        TQRShape *QRImageFrame1;
        TQRShape *QRImageFrame8;
        TQRShape *QRImageFrame9;
        TQRShape *QRImageFrame11;
        TQRShape *QRImageFrame12;
        TQRShape *QRImageFrame13;
        TQRShape *QRImageFrame14;
        TQRShape *QRImageFrame15;
        TQRShape *QRImageFrame16;
        TQRLabel *QRDefectNameLabel1;
        TQRLabel *QRDefectSizeLabel1;
        TQRLabel *QRDefectNameContent1;
        TQRLabel *QRDefectSizeContent1;
        TQRImage *QRImage1;
        TQRImage *QRImage2;
        TQRImage *QRImage3;
        TQRImage *QRImage4;
        TQRImage *QRImage5;
        TQRImage *QRImage6;
        TQRLabel *QRDefectNameLabel2;
        TQRLabel *QRDefectSizeLabel2;
        TQRLabel *QRDefectNameContent2;
        TQRLabel *QRDefectSizeContent2;
        TQRLabel *QRDefectNameLabel3;
        TQRLabel *QRDefectSizeLabel3;
        TQRLabel *QRDefectNameContent3;
        TQRLabel *QRDefectSizeContent3;
        TQRLabel *QRDefectNameLabel4;
        TQRLabel *QRDefectSizeLabel4;
        TQRLabel *QRDefectNameContent4;
        TQRLabel *QRDefectSizeContent4;
        TQRLabel *QRDefectNameLabel5;
        TQRLabel *QRDefectSizeLabel5;
        TQRLabel *QRDefectNameContent5;
        TQRLabel *QRDefectSizeContent5;
        TQRLabel *QRDefectNameLabel6;
        TQRLabel *QRDefectSizeLabel6;
        TQRLabel *QRDefectNameContent6;
        TQRLabel *QRDefectSizeContent6;
        TCheckBox *DefectImagePrintCheckBox;
        TQRCompositeReport *QRCompositeReport1;
  TTntPanel *ReportPanel6;
  TQuickRep *QuickRep6;
  TQRBand *QRBand11;
  TQRBand *QRBand12;
  TQRShape *QRDefectInfoShape1;
  TQRShape *QRDefectInfoShape7;
  TQRShape *QRDefectInfoShape8;
  TQRShape *QRDefectInfoShape9;
  TQRShape *QRDefectInfoShape10;
  TQRShape *QRDefectInfoShape2;
  TQRShape *QRDefectInfoShape11;
  TQRShape *QRDefectInfoShape12;
  TQRShape *QRDefectInfoShape6;
  TQRLabel *QRItemLabelTitle1;
  TQRLabel *QRQuantityLabelTitle1;
  TQRShape *QRDefectInfoShape4;
  TQRShape *QRDefectInfoShape5;
  TQRShape *QRDefectInfoShape3;
  TQRLabel *QRRateLabelTitle1;
  TQRLabel *QRItemLabelTitle2;
  TQRLabel *QRQuantityLabelTitle2;
  TQRLabel *QRRateLabelTitle2;
  TQRShape *QRDefectInfoShape13;
  TQRShape *QRDefectInfoShape14;
  TQRShape *QRDefectInfoShape15;
  TQRShape *QRDefectInfoShape16;
  TQRShape *QRDefectInfoShape21;
  TQRChart *QRInspectionChart;
  TQRDBChart *QRInspectionChartDB;
  TBarSeries *Series1;
  TQRLabel *QRItemLabel1;
  TQRLabel *QRQuantityLabel1;
  TQRLabel *QRRateLabel1;
  TQRLabel *QRItemLabel14;
  TQRLabel *QRQuantityLabel14;
  TQRLabel *QRRateLabel14;
  TQRLabel *QRItemLabel2;
  TQRLabel *QRItemLabel3;
  TQRLabel *QRItemLabel4;
  TQRLabel *QRItemLabel5;
  TQRLabel *QRItemLabel6;
  TQRLabel *QRItemLabel7;
  TQRLabel *QRItemLabel8;
  TQRLabel *QRItemLabel9;
  TQRLabel *QRItemLabel10;
  TQRLabel *QRItemLabel11;
  TQRLabel *QRItemLabel12;
  TQRLabel *QRItemLabel13;
  TQRLabel *QRItemLabel15;
  TQRLabel *QRItemLabel16;
  TQRLabel *QRItemLabel17;
  TQRLabel *QRItemLabel18;
  TQRLabel *QRItemLabel19;
  TQRLabel *QRItemLabel20;
  TQRLabel *QRItemLabelTotal;
  TQRLabel *QRQuantityLabel2;
  TQRLabel *QRQuantityLabel3;
  TQRLabel *QRQuantityLabel4;
  TQRLabel *QRQuantityLabel5;
  TQRLabel *QRQuantityLabel6;
  TQRLabel *QRQuantityLabel7;
  TQRLabel *QRQuantityLabel8;
  TQRLabel *QRQuantityLabel9;
  TQRLabel *QRQuantityLabel10;
  TQRLabel *QRQuantityLabel11;
  TQRLabel *QRQuantityLabel12;
  TQRLabel *QRQuantityLabel13;
  TQRLabel *QRQuantityLabel15;
  TQRLabel *QRQuantityLabel16;
  TQRLabel *QRQuantityLabel17;
  TQRLabel *QRQuantityLabel18;
  TQRLabel *QRQuantityLabel19;
  TQRLabel *QRQuantityLabel20;
  TQRLabel *QRQuantityLabelTotal;
  TQRLabel *QRRateLabel2;
  TQRLabel *QRRateLabel3;
  TQRLabel *QRRateLabel4;
  TQRLabel *QRRateLabel5;
  TQRLabel *QRRateLabel6;
  TQRLabel *QRRateLabel7;
  TQRLabel *QRRateLabel8;
  TQRLabel *QRRateLabel9;
  TQRLabel *QRRateLabel10;
  TQRLabel *QRRateLabel11;
  TQRLabel *QRRateLabel12;
  TQRLabel *QRRateLabel13;
  TQRLabel *QRRateLabel15;
  TQRLabel *QRRateLabel16;
  TQRLabel *QRRateLabel17;
  TQRLabel *QRRateLabel18;
  TQRLabel *QRRateLabel19;
  TQRLabel *QRRateLabel20;
  TQRLabel *QRRateLabelTotal;
  TQRLabel *QRPage2Title;
  TQRLabel *QRChartLabel;
  TQRLabel *QRInspectionSpeedLabel;
  TQRChart *ThroughputChart;
  TQRDBChart *ThroughputChartDB;
  TLineSeries *Series2;
  TQRShape *QRShape168;
  TQRShape *QRShape169;
  TQRShape *QRShape170;
  TQRShape *QRShape171;
  TQRLabel *QRLabel107;
  TQRLabel *QRLabel108;
  TQRLabel *AvgSpeedLabel;
  TQRLabel *MaxSpeedLabel;
  TCheckBox *CalGoodRateOptionBox;
  TCheckBox *RemoveGradeInfoOptionBox;
  TQRBand *QRBand18;
  TQRLabel *DefectSeriesLabel1;
  TQRLabel *DefectSeriesLabel2;
  TQRLabel *DefectNameLabel1;
  TQRLabel *DefectNameLabel2;
  TQRLabel *DefectNameLabel3;
  TQRLabel *DefectNameLabel4;
  TQRLabel *DefectNameLabel5;
  TQRLabel *DefectCountLabel5;
  TQRLabel *DefectCountLabel4;
  TQRLabel *DefectCountLabel3;
  TQRLabel *DefectCountLabel2;
  TQRLabel *DefectCountLabel1;
  TQRLabel *DefectRatioLabel1;
  TQRLabel *DefectRatioLabel2;
  TQRLabel *DefectRatioLabel3;
  TQRLabel *DefectRatioLabel4;
  TQRLabel *DefectRatioLabel5;
  TQRLabel *DefectNameLabel10;
  TQRShape *DefectSeriesShape1;
  TQRLabel *DefectNameLabel9;
  TQRLabel *DefectNameLabel8;
  TQRLabel *DefectNameLabel7;
  TQRLabel *DefectNameLabel6;
  TQRLabel *DefectSeriesLabel5;
  TQRLabel *DefectSeriesLabel6;
  TQRLabel *DefectCountLabel6;
  TQRLabel *DefectCountLabel7;
  TQRLabel *DefectCountLabel8;
  TQRLabel *DefectCountLabel9;
  TQRLabel *DefectCountLabel10;
  TQRLabel *DefectRatioLabel10;
  TQRLabel *DefectRatioLabel9;
  TQRLabel *DefectRatioLabel8;
  TQRLabel *DefectRatioLabel7;
  TQRLabel *DefectRatioLabel6;
  TQRLabel *DefectSeriesLabel7;
  TQRLabel *DefectSeriesLabel3;
  TQRLabel *DefectSeriesLabel4;
  TQRShape *DefectSeriesShape2;
  TQRShape *DefectSeriesShape3;
  TQRShape *DefectSeriesShape8;
  TQRShape *DefectSeriesShape4;
  TQRShape *DefectSeriesShape5;
  TQRShape *DefectSeriesShape9;
  TQRShape *DefectSeriesShape6;
  TQRShape *DefectSeriesShape7;
  TQRShape *DefectSeriesShape10;
  TQRShape *DefectSeriesShape11;
  TQRBand *QRBand22;
  TQRShape *QRShape87;
  TQRLabel *QRLabel128;
  TQRLabel *QRLabel135;
  TQRLabel *QRLabel137;
  TQRLabel *TotalCntQRLabel3;
  TQRLabel *PassCntQRLabel3;
  TQRLabel *DefectCntQRLabel3;
  TQRLabel *RDefectCntQRLabel3;
  TQRLabel *RPassCntQRLabel3;
  TQRLabel *QRLabel136;
  TQRLabel *QRLabel142;
  TQRLabel *QRLabel130;
  TQRLabel *QRLabel129;
  TQRShape *QRShape97;
  TQRShape *QRShape96;
  TQRShape *QRShape93;
  TQRShape *QRShape94;
  TQRShape *QRShape91;
  TQRShape *QRShape95;
  TQRLabel *DefectSeriesLabel11;
  TQRLabel *DefectSeriesLabel22;
  TQRLabel *bDefectNameLabel1;
  TQRLabel *bDefectNameLabel2;
  TQRLabel *bDefectNameLabel3;
  TQRLabel *bDefectNameLabel4;
  TQRLabel *bDefectNameLabel5;
  TQRLabel *bDefectCountLabel5;
  TQRLabel *bDefectCountLabel4;
  TQRLabel *bDefectCountLabel3;
  TQRLabel *bDefectCountLabel2;
  TQRLabel *bDefectCountLabel1;
  TQRLabel *DefectSeriesLabel33;
  TQRLabel *DefectSeriesLabel44;
  TQRLabel *bDefectRatioLabel1;
  TQRLabel *bDefectRatioLabel3;
  TQRLabel *bDefectRatioLabel2;
  TQRLabel *bDefectRatioLabel4;
  TQRLabel *bDefectRatioLabel5;
  TQRLabel *bDefectNameLabel9;
  TQRLabel *bDefectNameLabel10;
  TQRLabel *bDefectNameLabel8;
  TQRLabel *bDefectNameLabel7;
  TQRLabel *bDefectNameLabel6;
  TQRLabel *DefectSeriesLabel55;
  TQRLabel *DefectSeriesLabel66;
  TQRLabel *DefectSeriesLabel77;
  TQRLabel *bDefectCountLabel6;
  TQRLabel *bDefectRatioLabel6;
  TQRLabel *bDefectRatioLabel7;
  TQRLabel *bDefectCountLabel7;
  TQRLabel *bDefectCountLabel8;
  TQRLabel *bDefectRatioLabel8;
  TQRLabel *bDefectRatioLabel9;
  TQRLabel *bDefectCountLabel9;
  TQRLabel *bDefectCountLabel10;
  TQRLabel *bDefectRatioLabel10;
  TQRShape *QRShape156;
  TQRShape *QRShape167;
  TQRShape *QRShape166;
  TQRShape *QRShape165;
  TQRShape *QRShape164;
  TQRShape *QRShape163;
  TQRShape *QRShape162;
  TQRShape *QRShape161;
  TQRShape *QRShape160;
  TQRShape *QRShape159;
  TQRShape *QRShape158;
  TQRShape *QRShape157;
  TQRLabel *TotalCntQRLabel4;
  TQRLabel *RPassCntQRLabel4;
  TQRLabel *RDefectCntQRLabel4;
  TQRShape *QRShape129;
  TQRShape *QRShape128;
  TQRShape *QRShape127;
  TQRShape *QRShape124;
  TQRShape *QRShape123;
  TQRShape *QRShape118;
  TQRShape *QRShape117;
  TQRLabel *QRLabel198;
  TQRLabel *QRLabel173;
  TQRLabel *QRLabel171;
  TQRLabel *QRLabel170;
  TQRLabel *QRLabel158;
  TQRLabel *QRLabel157;
  TQRLabel *QRLabel156;
  TQRLabel *PassCntQRLabel4;
  TQRLabel *DefectCntQRLabel4;
  TQuickRep *QuickRep1;
  TQRBand *QRBand19;
  TQRShape *QRShape172;
  TQRShape *QRShape173;
  TQRShape *QRShape174;
  TQRShape *QRShape175;
  TQRShape *QRShape176;
  TQRLabel *QRLabel77;
  TQRLabel *RepGenPageValueLabel1;
  TQRLabel *QRLabel82;
  TQRLabel *QRLabel84;
  TQRLabel *QRLabel89;
  TQRLabel *QRLabel92;
  TQRLabel *QRLabel99;
  TQRLabel *QRLabel106;
  TQRLabel *QRLabel109;
  TQRLabel *RepGenDateValueLabel1;
  TQRShape *QRShape177;
  TQRLabel *QRLabel111;
  TQRLabel *QRLabel112;
  TQRShape *QRShape178;
  TQRShape *QRShape179;
  TQRLabel *QRLabel115;
  TQRShape *QRShape181;
  TQRLabel *QRLabel120;
  TQRShape *QRShape182;
  TQRLabel *QRLabel123;
  TQRShape *QRShape183;
  TQRLabel *QRLabel125;
  TQRShape *QRShape184;
  TQRLabel *QRLabel126;
  TQRShape *QRShape185;
  TQRLabel *QRLabel127;
  TQRShape *QRShape186;
  TQRLabel *QRLabel131;
  TQRShape *QRShape187;
  TQRLabel *InsStartTimeLabel;
  TQRShape *QRShape188;
  TQRLabel *QRLabel133;
  TQRLabel *QRLabel134;
  TQRLabel *QRLabel143;
  TQRLabel *InsEndTimeLabel;
  TQRBand *QRBand21;
  TQRLabel *PrintCompanyLabel1;
  TQRLabel *PrintTitleLabel;
  TQRLabel *RepGenPageValueLabel2;
  TQRLabel *QRLabel5;
  TQRLabel *QRLabel6;
  TQRLabel *QRLabel7;
  TQRLabel *RepGenDateValueLabel2;
  TQRLabel *QRLabel2;
  TQRLabel *QRLabel3;
  TQRLabel *RepGenDateValueLabel3;
  TQRLabel *QRLabel9;
  TQRLabel *RepGenPageValueLabel3;
  TQRLabel *QRLabel11;
  TQRLabel *QRLabel12;
  TQRLabel *RepGenDateValueLabel5;
  TQRLabel *QRLabel14;
  TQRLabel *QRPageDfImage0;
  TQRLabel *QRLabel16;
  TQRLabel *QRLabel17;
  TQRLabel *RepGenDateValueLabel4;
  TQRLabel *QRLabel19;
  TQRLabel *RepGenPageValueLabel4;
  TQRLabel *RepGenUserNameValueLabel5;
  TQRLabel *RepGenUserNameValueLabel1;
  TQRLabel *RepGenUserNameValueLabel2;
  TQRLabel *RepGenUserNameValueLabel3;
  TQRLabel *RepGenUserNameValueLabel4;
  TQRLabel *QRProductName;
  TQRLabel *QRBatchNum;
  TQRLabel *QRBatchSizeInfo;
  TQRLabel *QRStartOper;
  TQRLabel *QREndOper;
  TQRLabel *MachineSpeedLabel;
  TTntPanel *ReportPanel1;
  TQRShape *R3VerShape11;
  TQRShape *R3VerShape12;
  TQRLabel *SideGradeLabel5;
  TQRLabel *SideEdgeDarkIntensityLabel2;
  TQRLabel *SideGradeLabel6;
  TQRLabel *SideEdgeBreakIntensityLabel2;
  TQRShape *QRShape3;
  TQRShape *QRShape4;
  TQRLabel *SideEdgeDarkIntensityLabel1;
  TQRLabel *SideEdgeDarkSizeLabel1;
  TQRLabel *SideEdgeBreakIntensityLabel1;
  TQRLabel *SideEdgeBreakSizeLabel1;
  TQRLabel *SideEdgeNeighborIntensityLabel2;
  TQRLabel *SideEdgeBrightIntensityLabel2;
  TQRLabel *SideEdgeNeighborIntensityLabel1;
  TQRLabel *SideEdgeNeighborSizeLabel1;
  TQRLabel *SideGradeLabel3;
  TQRLabel *SideGradeLabel2;
  TQRLabel *SideEdgeBrightIntensityLabel1;
  TQRLabel *SideEdgeBrightSizeLabel1;
  TQRLabel *SideGradeLabel4;
  TQRLabel *QRNameofmachine;
  TQRLabel *QRMachineID;
  TTimer *Timer1;
  TQRLabel *OptionFrontStickingGradeType2QRLabel4;
  TQRLabel *OptionFrontStickingSizeType2QRLabel4;
  TQRLabel *OptionFrontStickingGradeType2QRLabel3;
  TQRShape *R3VerShape6;
  TQRShape *QRShape1;
  TQRLabel *QRLabel301;
  TQRLabel *UninsCntQRLabel3;
  TQRShape *QRShape2;
  TQRLabel *QRLabel302;
  TQRLabel *UninsCntQRLabel4;
	void __fastcall FormCreate(TObject *Sender);
	void __fastcall PrintPreviewButtonClick(TObject *Sender);
    void __fastcall CancelButtonClick(TObject *Sender);
    void __fastcall PrintButtonClick(TObject *Sender);
    void __fastcall PrinterSetupButtonClick(TObject *Sender);
	void __fastcall PrintGradeOnlyRadioButtonClick(TObject *Sender);
	void __fastcall PrintGradeAndSizeRadioButtonClick(TObject *Sender);
  void __fastcall PrintDefectSeriesCheckBoxClick(TObject *Sender);
  void __fastcall UpDown1Click(TObject *Sender, TUDBtnType Button);
  void __fastcall RefreshDefectsInfo(int totalDefectCount);
        void __fastcall SelectDefectImageButtonClick(TObject *Sender);
        void __fastcall DefectImagePrintCheckBoxClick(TObject *Sender);
        void __fastcall QRCompositeReport1AddReports(TObject *Sender);
  void __fastcall TntFormActivate(TObject *Sender);
  void __fastcall CalGoodRateOptionBoxClick(TObject *Sender);
  void __fastcall GroupBox1DblClick(TObject *Sender);
  void __fastcall RemoveGradeInfoOptionBoxClick(TObject *Sender);
  void __fastcall TntFormClose(TObject *Sender, TCloseAction &Action);
  void __fastcall TntFormShow(TObject *Sender);
  void __fastcall Timer1Timer(TObject *Sender);

private:	// User declarations
  void __fastcall SetThroughtputChart(AnsiString productName, AnsiString lotName);
  
	AnsiString ProductName;
	AnsiString LOTName;
  
  /*
	TTabletInspectReport TabletInspectReport;
	TTabletInspectGradeData TabletInspectGradeData;
  TTabletInspectReportSub TabletInspectReportSub;
  */NFA_INSPECTION_REPORT_STRUCT Report;


	bool PrintSize;
  bool bYuhanOption;

  int DefectSeriesCount[MAX_DEFECT_SERIES_COUNT + 1];
  TPrintDefectImageInfo PrintImageIndex;

  TTntStringList *PageList;

  void __fastcall UpdateTotalReportPages(int option);
  void __fastcall PrintImageIndexLoad();
  void __fastcall CreateNewDefectImagePage();
  void __fastcall FillDefectImageReport(AnsiString productName, AnsiString lotName, int displayCnt);
  AnsiString __fastcall GetDefectContainerFileName(int defectIndex, AnsiString productName, AnsiString lotName);
public:		// User declarations

  int newImagePageIndex;
	__fastcall TPrintInspectionResult_Ajanta_Form(TComponent* Owner);
    void __fastcall SetReport(AnsiString productName, AnsiString lotName,NFA_INSPECTION_REPORT_STRUCT REPORT,
  bool isPrintedTablet,int printModeOption, int threeDHeightOption, bool hIprogram);
  void __fastcall SaveRefDefectIndex(int *Index);
  void __fastcall SetDefectInfoPage2();
  void __fastcall SetDetailReportOption(bool On , int TotalRP);
  void __fastcall SetDetailReportOptionGridShape(bool On);
  void __fastcall ControlInspectionResultChart();  
  int Zorder;
};
//---------------------------------------------------------------------------
extern PACKAGE TPrintInspectionResult_Ajanta_Form *PrintInspectionResult_Ajanta_Form;
//---------------------------------------------------------------------------
#endif

