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

#ifndef ITSSEL5MFH
#define ITSSEL5MFH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <DB.hpp>
#include <DBClient.hpp>
#include <FMTBcd.hpp>
#include <Provider.hpp>
#include <SqlExpr.hpp>
#include <Menus.hpp>
#include <ExtCtrls.hpp>
#include <Graphics.hpp>
#include <ComCtrls.hpp>
#include <ADODB.hpp>
#include "cxButtons.hpp"
#include "cxContainer.hpp"
#include "cxControls.hpp"
#include "cxEdit.hpp"
#include "cxGraphics.hpp"
#include "cxGroupBox.hpp"
#include "cxLookAndFeelPainters.hpp"
#include "cxLookAndFeels.hpp"
#include "dxSkinBlack.hpp"
#include "dxSkinBlue.hpp"
#include "dxSkinsCore.hpp"
#include "cxCalc.hpp"
#include "cxCheckBox.hpp"
#include "cxClasses.hpp"
#include "cxCustomData.hpp"
#include "cxData.hpp"
#include "cxDataStorage.hpp"
#include "cxFilter.hpp"
#include "cxGrid.hpp"
#include "cxGridCustomTableView.hpp"
#include "cxGridCustomView.hpp"
#include "cxGridLevel.hpp"
#include "cxGridTableView.hpp"
#include "cxLabel.hpp"
#include "cxStyles.hpp"
#include "cxTextEdit.hpp"
#include "dxSkinscxPCPainter.hpp"
//---------------------------------------------------------------------------
#include "CDSVdsCtlrF.h"
//---------------------------------------------------------------------------

class TITSSEL5M : public TForm
{
__published:	// IDE-managed Components
    TTimer *TmrShow;
    TcxButton *BtnSearch;
    TcxButton *BtnClose;
    TEdit *EdFocus;
    TcxButton *BtnSelect;
    TcxGroupBox *cxGroupBox1;
    TShape *ShpList;
    TListBox *SelList;
    TcxGrid *CxList;
    TcxGridTableView *TvList;
    TcxGridColumn *ColumnSel;
    TcxGridColumn *Column01;
    TcxGridColumn *Column02;
    TcxGridColumn *Column03;
    TcxGridColumn *Column04;
    TcxGridColumn *Column05;
    TcxGridColumn *Column06;
    TcxGridColumn *Column08;
    TcxGridColumn *Column09;
    TcxGridColumn *Column10;
    TcxGridColumn *Column11;
    TcxGridColumn *Column12;
    TcxGridColumn *Column18;
    TcxGridColumn *Column07;
    TcxGridLevel *GlList;
    TPanel *PnlTop;
    TcxButton *BtnAllSelect;
    TcxButton *BtnReverse;
    TcxButton *BtnAllClear;
    TcxLabel *lblFileName;
    void __fastcall FormShow(TObject *Sender);
    void __fastcall TmrShowTimer(TObject *Sender);
    void __fastcall BtnSearchClick(TObject *Sender);
    void __fastcall BtnCloseClick(TObject *Sender);
    void __fastcall BtnSelectClick(TObject *Sender);
    void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
    void __fastcall BtnAllSelectClick(TObject *Sender);
private:	// User declarations
    void __fastcall CommClose();
    void __fastcall SetMultiSelect(bool AMultiSelect);
    bool __fastcall GetMultiSelect();
    bool            FMultiSelect;

public:
    TcxDataController *m_pGDC;
    TVdsCtlrManager   *MyVdsCtlrManager;
    bool    m_bSelected;
    String  m_sSelLinkId;
    String  FIdList;

public:		// User declarations
    __fastcall TITSSEL5M(TComponent* Owner, TVdsCtlrManager* AVdsCtlrManager);

    void __fastcall RefreshData();
    void __fastcall SelListData();

    __property bool MultiSelect = {read = GetMultiSelect, write=SetMultiSelect };
};
//---------------------------------------------------------------------------
extern PACKAGE TITSSEL5M *ITSSEL5M;
//---------------------------------------------------------------------------

#endif

