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

#ifndef FrmVmsFontColorFH
#define FrmVmsFontColorFH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include <Graphics.hpp>
#include <Menus.hpp>
#include <ImgList.hpp>
#include <ComCtrls.hpp>
#include <jpeg.hpp>
#include <AppEvnts.hpp>
//---------------------------------------------------------------------------
#include <windows.h>
#include <ADODB.hpp>
#include <DB.hpp>
#include "ITSUtilF.h"
#include "AppGlobalF.h"
#include "cxClasses.hpp"
#include "cxContainer.hpp"
#include "cxControls.hpp"
#include "cxEdit.hpp"
#include "cxGraphics.hpp"
#include "cxHint.hpp"
#include "cxLabel.hpp"
#include "cxLookAndFeelPainters.hpp"
#include "cxLookAndFeels.hpp"
#include "cxMaskEdit.hpp"
#include "cxPC.hpp"
#include "cxPCdxBarPopupMenu.hpp"
#include "cxSpinEdit.hpp"
#include "cxTextEdit.hpp"
#include "dxBar.hpp"
#include "dxCustomHint.hpp"
#include "dxRibbon.hpp"
#include "dxRibbonGallery.hpp"
#include "dxRibbonSkins.hpp"
#include "dxRibbonStatusBar.hpp"
#include "dxScreenTip.hpp"
#include "dxSkinBlack.hpp"
#include "dxSkinBlue.hpp"
#include "dxSkinCaramel.hpp"
#include "dxSkinChooserGallery.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 "dxSkinsdxBarPainter.hpp"
#include "dxSkinsdxRibbonPainter.hpp"
#include "dxSkinSeven.hpp"
#include "dxSkinsForm.hpp"
#include "dxSkinSharp.hpp"
#include "dxSkinSilver.hpp"
#include "dxSkinStardust.hpp"
#include "dxStatusBar.hpp"
#include "dxTabbedMDI.hpp"
#include <GIFImg.hpp>
#include <OleCtnrs.hpp>
#include "cxButtons.hpp"
#include "cxCalendar.hpp"
#include "cxDropDownEdit.hpp"
#include "cxGroupBox.hpp"
#include "cxSplitter.hpp"
#include "cxTimeEdit.hpp"
#include "cxCalc.hpp"
#include "cxCheckBox.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 "cxStyles.hpp"
#include <Dialogs.hpp>
//---------------------------------------------------------------------------
#include "CDSVmsColorF.h"

//---------------------------------------------------------------------------
class TFrmIfscTraf : public TForm//TdxCustomRibbonForm//TForm
{
__published:	// IDE-managed Components
    TcxHintStyleController *cxHintStyleController1;
    TdxSkinController *dxSkinController1;
    TShape *ShpTitle;
    TLabel *LblCaption;
    TShape *ShpList;
    TcxButton *BtnClose;
    TEdit *EdFocus;
    TPanel *PnlBack;
    TcxButton *BtnSearch;
    TcxButton *BtnSave;
    TcxButton *BtnEdit;
    TcxButton *BtnInsert;
    TcxButton *BtnDelete;
    TcxButton *BtnApply;
    TcxLabel *LblRecords;
    TTimer *TmrShow;
    TColorDialog *ColorDialog;
    TcxGrid *CxList;
    TcxGridTableView *TvList;
    TcxGridColumn *ColumnSel;
    TcxGridColumn *Column00;
    TcxGridColumn *Column01;
    TcxGridColumn *Column02;
    TcxGridColumn *Column03;
    TcxGridColumn *Column04;
    TcxGridColumn *Column13;
    TcxGridColumn *Column14;
    TcxGridColumn *Column12;
    TcxGridColumn *Column99;
    TcxGridLevel *GlList;
    TLabel *Label17;
    TcxGridColumn *Column88;
    TLabel *Label1;
    void __fastcall FormCreate(TObject *Sender);
    void __fastcall FormShow(TObject *Sender);
    void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
    void __fastcall BtnCloseClick(TObject *Sender);
    void __fastcall TmrShowTimer(TObject *Sender);
    void __fastcall BtnSearchClick(TObject *Sender);
    void __fastcall Column13CustomDrawCell(TcxCustomGridTableView *Sender, TcxCanvas *ACanvas, TcxGridTableDataCellViewInfo *AViewInfo,
          bool &ADone);
    void __fastcall BtnEditClick(TObject *Sender);
    void __fastcall TvListMouseMove(TObject *Sender, TShiftState Shift, int X, int Y);
    void __fastcall BtnApplyClick(TObject *Sender);
    void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
    void __fastcall BtnInsertClick(TObject *Sender);
    void __fastcall TvListCellClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo, TMouseButton AButton,
          TShiftState AShift, bool &AHandled);
    void __fastcall TvListCustomDrawCell(TcxCustomGridTableView *Sender, TcxCanvas *ACanvas, TcxGridTableDataCellViewInfo *AViewInfo,
          bool &ADone);
    void __fastcall ColumnPropertiesValidate(TObject *Sender, Variant &DisplayValue, TCaption &ErrorText, bool &Error);


private:	// User declarations
    String              FTitle;
    bool                FUpdate;
    bool                FEditMode;
    TcxDataController  *m_pGDC;
public:
    void __fastcall SetColorScheme(String ASkinName);
    bool __fastcall AddObjectItem(TCDSVmsColor *pObj, String AMode);

public:		// User declarations
    __fastcall TFrmIfscTraf(TComponent* Owner);

	void __fastcall CommClose();
    void __fastcall FormInit();
    void __fastcall RefreshData();
    void __fastcall SelListData();

    void __fastcall ChangeEditMode(bool AEdit);
    bool __fastcall IsUpdate();
    void __fastcall SaveData();
    void __fastcall RollbackListData();
};
//---------------------------------------------------------------------------
extern PACKAGE TFrmIfscTraf *FrmIfscTraf;
//---------------------------------------------------------------------------
#endif

