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

#ifndef FRAME_VmsStateListFH
#define FRAME_VmsStateListFH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include <Menus.hpp>
#include <ADODB.hpp>
#include <DB.hpp>
//---------------------------------------------------------------------------
#include "CDSCodeF.h"
#include "CDSVmsCtlrF.h"
#include "cxButtons.hpp"
#include "cxCalc.hpp"
#include "cxCheckBox.hpp"
#include "cxClasses.hpp"
#include "cxContainer.hpp"
#include "cxControls.hpp"
#include "cxCustomData.hpp"
#include "cxData.hpp"
#include "cxDataStorage.hpp"
#include "cxEdit.hpp"
#include "cxFilter.hpp"
#include "cxGraphics.hpp"
#include "cxGrid.hpp"
#include "cxGridCustomTableView.hpp"
#include "cxGridCustomView.hpp"
#include "cxGridLevel.hpp"
#include "cxGridTableView.hpp"
#include "cxLookAndFeelPainters.hpp"
#include "cxLookAndFeels.hpp"
#include "cxStyles.hpp"
#include "cxTextEdit.hpp"
#include "dxSkinBlack.hpp"
#include "dxSkinBlue.hpp"
#include "dxSkinCaramel.hpp"
#include "dxSkinCoffee.hpp"
#include "dxSkinDarkRoom.hpp"
#include "dxSkinDarkSide.hpp"
#include "dxSkinFoggy.hpp"
#include "dxSkinGlassOceans.hpp"
#include "dxSkiniMaginary.hpp"
#include "dxSkinLilian.hpp"
#include "dxSkinLiquidSky.hpp"
#include "dxSkinLondonLiquidSky.hpp"
#include "dxSkinMcSkin.hpp"
#include "dxSkinMoneyTwins.hpp"
#include "dxSkinOffice2007Black.hpp"
#include "dxSkinOffice2007Blue.hpp"
#include "dxSkinOffice2007Green.hpp"
#include "dxSkinOffice2007Pink.hpp"
#include "dxSkinOffice2007Silver.hpp"
#include "dxSkinOffice2010Black.hpp"
#include "dxSkinOffice2010Blue.hpp"
#include "dxSkinOffice2010Silver.hpp"
#include "dxSkinsCore.hpp"
#include "dxSkinscxPCPainter.hpp"
#include "dxSkinSeven.hpp"
#include "dxSkinSharp.hpp"
#include "dxSkinSilver.hpp"
#include "dxSkinStardust.hpp"
#include "cxGridBandedTableView.hpp"
#include "cxSpinEdit.hpp"
#include "cxLabel.hpp"
//---------------------------------------------------------------------------

class TFRAMEVmsStateList : public TFrame
{
__published:	// IDE-managed Components
    TPanel *PnlTop;
    TPanel *PnlBottom;
    TcxButton *BtnExlSave;
    TcxButton *BtnAllSelect;
    TcxButton *BtnReverse;
    TcxButton *BtnAllClear;
    TLabel *LblRecords;
    TLabel *LbDef;
    TcxGrid *CxList;
    TcxGridBandedTableView *TvList;
    TcxGridBandedColumn *Col01;
    TcxGridBandedColumn *Col02;
    TcxGridBandedColumn *Col03;
    TcxGridBandedColumn *Col04;
    TcxGridBandedColumn *Col05;
    TcxGridBandedColumn *Col06;
    TcxGridBandedColumn *Col07;
    TcxGridBandedColumn *Col08;
    TcxGridBandedColumn *Col09;
    TcxGridBandedColumn *Col10;
    TcxGridBandedColumn *Col11;
    TcxGridBandedColumn *Col12;
    TcxGridBandedColumn *Col13;
    TcxGridBandedColumn *Col14;
    TcxGridBandedColumn *Col15;
    TcxGridBandedColumn *Col16;
    TcxGridBandedColumn *Col17;
    TcxGridBandedColumn *Col18;
    TcxGridBandedColumn *Col19;
    TcxGridBandedColumn *Col20;
    TcxGridBandedColumn *Col21;
    TcxGridBandedColumn *Col22;
    TcxGridBandedColumn *Col23;
    TcxGridBandedColumn *Col24;
    TcxGridBandedColumn *Col25;
    TcxGridBandedColumn *Col27;
    TcxGridBandedColumn *Col26;
    TcxGridBandedColumn *Col99;
    TcxGridBandedColumn *Col28;
    TcxGridBandedColumn *Col29;
    TcxGridBandedColumn *Col30;
    TcxGridLevel *GlList;
    TcxGridBandedColumn *ColumnSel;
    TcxGridBandedColumn *Col31;
    TcxGridBandedColumn *Col32;
    TcxGridBandedColumn *Col33;
    TcxLabel *lblTitle;
    void __fastcall BtnAllSelectClick(TObject *Sender);
    void __fastcall TvListDataControllerFilterChanged(TObject *Sender);
    void __fastcall BtnExlSaveClick(TObject *Sender);
    void __fastcall Col06CustomDrawCell(TcxCustomGridTableView *Sender, TcxCanvas *ACanvas,
          TcxGridTableDataCellViewInfo *AViewInfo, bool &ADone);
    void __fastcall Col07CustomDrawCell(TcxCustomGridTableView *Sender, TcxCanvas *ACanvas,
          TcxGridTableDataCellViewInfo *AViewInfo, bool &ADone);
    void __fastcall Col10CustomDrawCell(TcxCustomGridTableView *Sender, TcxCanvas *ACanvas,
          TcxGridTableDataCellViewInfo *AViewInfo, bool &ADone);
    void __fastcall Col12CustomDrawCell(TcxCustomGridTableView *Sender, TcxCanvas *ACanvas,
          TcxGridTableDataCellViewInfo *AViewInfo, bool &ADone);

private:	// User declarations
    TcxDataController *m_pGDC;
public:
    String             FTitle;

public:		// User declarations
    __fastcall TFRAMEVmsStateList(TComponent* Owner);
	void __fastcall OnCloseQuery(bool &CanClose);

    void __fastcall UpdateList();
    void __fastcall RefreshStatus();

    int  __fastcall GetSelIds(String &ALinkIds);
    int  __fastcall GetSelIds(TStringList *AStringList);
};
//---------------------------------------------------------------------------
//extern PACKAGE TFRAMEVmsStateList *FRAMEVmsStateList;
//---------------------------------------------------------------------------
#endif

