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

#ifndef FRAME_CctvStateListFH
#define FRAME_CctvStateListFH
//---------------------------------------------------------------------------
#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 "CDSCctvCtlrF.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 "cxGridBandedTableView.hpp"
#include "cxGridCustomTableView.hpp"
#include "cxGridCustomView.hpp"
#include "cxGridLevel.hpp"
#include "cxGridTableView.hpp"
#include "cxLabel.hpp"
#include "cxLookAndFeelPainters.hpp"
#include "cxLookAndFeels.hpp"
#include "cxSpinEdit.hpp"
#include "cxStyles.hpp"
#include "cxTextEdit.hpp"
#include "dxSkinBlue.hpp"
#include "dxSkinsCore.hpp"
#include "dxSkinscxPCPainter.hpp"
#include "dxSkinBlack.hpp"
#include "dxSkinMcSkin.hpp"
#include "cxDropDownEdit.hpp"
#include "cxMaskEdit.hpp"
#include "cxPC.hpp"
#include "cxPCdxBarPopupMenu.hpp"
//---------------------------------------------------------------------------

class TFRAMECctvStateList : public TFrame
{
__published:	// IDE-managed Components
    TPanel *PnlTop;
    TPanel *PnlBottom;
    TcxButton *BtnExlSave;
    TcxButton *BtnAllSelect;
    TcxButton *BtnReverse;
    TcxButton *BtnAllClear;
    TLabel *LblRecords;
    TLabel *LbDef;
    TcxLabel *lblTitle;
    TcxComboBox *CbLc;
    TcxComboBox *CbType;
    TcxPageControl *cxPageControl1;
    TcxTabSheet *TabLc1;
    TcxTabSheet *TabLc2;
    TcxGrid *CxList;
    TcxGridBandedTableView *TvList;
    TcxGridBandedColumn *ColumnSel;
    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;
    TcxGridBandedColumn *Col31;
    TcxGridBandedColumn *Col32;
    TcxGridBandedColumn *Col33;
    TcxGridLevel *GlList;
    TcxGrid *CxList2;
    TcxGridBandedTableView *TvList2;
    TcxGridBandedColumn *ColumnSel2;
    TcxGridBandedColumn *ColNmbr;
    TcxGridBandedColumn *ColId;
    TcxGridBandedColumn *ColNm;
    TcxGridBandedColumn *ColType;
    TcxGridBandedColumn *cxGridBandedColumn6;
    TcxGridBandedColumn *cxGridBandedColumn7;
    TcxGridBandedColumn *cxGridBandedColumn8;
    TcxGridBandedColumn *cxGridBandedColumn9;
    TcxGridBandedColumn *cxGridBandedColumn10;
    TcxGridBandedColumn *ColStat;
    TcxGridBandedColumn *ColIp;
    TcxGridBandedColumn *cxGridBandedColumn13;
    TcxGridBandedColumn *cxGridBandedColumn14;
    TcxGridBandedColumn *cxGridBandedColumn15;
    TcxGridBandedColumn *cxGridBandedColumn16;
    TcxGridBandedColumn *cxGridBandedColumn17;
    TcxGridBandedColumn *cxGridBandedColumn18;
    TcxGridBandedColumn *cxGridBandedColumn19;
    TcxGridBandedColumn *cxGridBandedColumn20;
    TcxGridBandedColumn *cxGridBandedColumn21;
    TcxGridBandedColumn *cxGridBandedColumn22;
    TcxGridBandedColumn *cxGridBandedColumn23;
    TcxGridBandedColumn *cxGridBandedColumn24;
    TcxGridBandedColumn *cxGridBandedColumn25;
    TcxGridBandedColumn *cxGridBandedColumn26;
    TcxGridBandedColumn *cxGridBandedColumn27;
    TcxGridBandedColumn *cxGridBandedColumn28;
    TcxGridBandedColumn *Column99;
    TcxGridBandedColumn *cxGridBandedColumn30;
    TcxGridBandedColumn *cxGridBandedColumn31;
    TcxGridBandedColumn *cxGridBandedColumn32;
    TcxGridBandedColumn *cxGridBandedColumn33;
    TcxGridBandedColumn *cxGridBandedColumn34;
    TcxGridBandedColumn *cxGridBandedColumn35;
    TcxGridLevel *GlList2;
    void __fastcall BtnAllSelectClick(TObject *Sender);
    void __fastcall TvListDataControllerFilterChanged(TObject *Sender);
    void __fastcall BtnExlSaveClick(TObject *Sender);
    void __fastcall Col10CustomDrawCell(TcxCustomGridTableView *Sender, TcxCanvas *ACanvas,
          TcxGridTableDataCellViewInfo *AViewInfo, bool &ADone);
    void __fastcall ColStatCustomDrawCell(TcxCustomGridTableView *Sender, TcxCanvas *ACanvas, TcxGridTableDataCellViewInfo *AViewInfo,
          bool &ADone);

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

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

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

    int  __fastcall GetSelIds(String &ALinkIds);
    int  __fastcall GetSelIds(TStringList *AStringList);
    String APP_FillCode(TcxComboBox *ACombo, String ACode);
};
//---------------------------------------------------------------------------
//extern PACKAGE TFRAMEWCamStateList *FRAMEWCamStateList;
//---------------------------------------------------------------------------
#endif

