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

#ifndef VMSEDT0MFH
#define VMSEDT0MFH
//---------------------------------------------------------------------------
#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 <Dialogs.hpp>
#include <ExtDlgs.hpp>
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
#include "WindowMsgF.h"
#include "cxButtons.hpp"
#include "cxCalendar.hpp"
#include "cxContainer.hpp"
#include "cxControls.hpp"
#include "cxDropDownEdit.hpp"
#include "cxEdit.hpp"
#include "cxGraphics.hpp"
#include "cxGroupBox.hpp"
#include "cxLabel.hpp"
#include "cxLookAndFeelPainters.hpp"
#include "cxLookAndFeels.hpp"
#include "cxMaskEdit.hpp"
#include "cxPC.hpp"
#include "cxPCdxBarPopupMenu.hpp"
#include "cxSpinEdit.hpp"
#include "cxSplitter.hpp"
#include "cxTextEdit.hpp"
#include "cxTimeEdit.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 "cxRadioGroup.hpp"
#include "cxClasses.hpp"
#include "cxCustomData.hpp"
#include "cxData.hpp"
#include "cxDataStorage.hpp"
#include "cxDBData.hpp"
#include "cxFilter.hpp"
#include "cxGrid.hpp"
#include "cxGridCustomTableView.hpp"
#include "cxGridCustomView.hpp"
#include "cxGridDBTableView.hpp"
#include "cxGridLevel.hpp"
#include "cxGridTableView.hpp"
#include "cxStyles.hpp"
#include "cxCheckBox.hpp"
#include "cxImage.hpp"
#include "cxButtonEdit.hpp"
#include "cxBlobEdit.hpp"

//---------------------------------------------------------------------------
#include "cxColorComboBox.hpp"
#include "CDSVmsObjTypeF.h"
#include "cxCalc.hpp"
//---------------------------------------------------------------------------

class TVMSEDT0M : public TForm
{
__published:	// IDE-managed Components
    TTimer *TmrShow;
    TShape *ShpTitle;
    TcxButton *BtnClose;
    TLabel *LblCaption;
    TShape *ShpList;
    TEdit *EdFocus;
    TPanel *PanelBack;
    TcxButton *BtnSearch;
    TcxMaskEdit *EdObjId;
    TcxTextEdit *EdFormId;
    TPanel *PnlEdit;
    TcxButton *BtnAllDel;
    TcxButton *BtnAllEdt;
    TcxGroupBox *cxGroupBox1;
    TPanel *PnlCmd;
    TPanel *Panel2;
    TcxGroupBox *GrpObj;
    TcxGrid *CxForm;
    TcxGridTableView *TvForm;
    TcxGridColumn *ColFrm001;
    TcxGridColumn *ColFrm002;
    TcxGridColumn *ColFrm003;
    TcxGridColumn *ColFrm004;
    TcxGridColumn *ColFrm005;
    TcxGridColumn *ColFrm006;
    TcxGridColumn *ColFrm007;
    TcxGridColumn *ColFrm008;
    TcxGridColumn *ColFrm009;
    TcxGridLevel *GlForm;
    TcxGrid *CxList;
    TcxGridTableView *TvList;
    TcxGridColumn *Col01;
    TcxGridColumn *Col02;
    TcxGridColumn *Col03;
    TcxGridColumn *Col04;
    TcxGridColumn *Col05;
    TcxGridColumn *Col06;
    TcxGridColumn *Col07;
    TcxGridColumn *Col08;
    TcxGridColumn *ColumnSel;
    TcxGridColumn *Col09;
    TcxGridColumn *TvListColumn4;
    TcxGridLevel *GlList;
    TPanel *PnlTop;
    TcxButton *BtnAllSelect;
    TcxButton *BtnReverse;
    TcxButton *BtnAllClear;
    TPanel *PnlForm;
    TImage *ImgDesc11;
    TImage *ImgDesc01;
    TLabel *Label1;
    TImage *ImgDesc02;
    TLabel *Label2;
    TImage *ImgDesc04;
    TLabel *Label3;
    TLabel *Label4;
    TcxComboBox *CbUse;
    TcxComboBox *CbCycle;
    TDateTimePicker *DtEndDate;
    TDateTimePicker *DtStrDate;
    TDateTimePicker *DtStrTime;
    TDateTimePicker *DtEndTime;
    TcxButton *BtnAllAdd;
    TcxGridColumn *Col00;
    TcxLabel *cxLabel1;
    TcxLabel *cxLabel2;
    TcxLabel *lblText1;
    TcxLabel *lblText2;
    TcxLabel *lblText4;
    TcxLabel *lblText3;
    TcxLabel *lblText8;
    TcxLabel *lblText7;
    TcxLabel *lblText6;
    TcxLabel *lblText5;
    TcxLabel *lblText9;
    TcxLabel *lblText10;
    TcxLabel *lblText11;
    TcxLabel *lblText12;
    TcxLabel *lblText13;
    void __fastcall FormShow(TObject *Sender);
    void __fastcall TmrShowTimer(TObject *Sender);
    void __fastcall BtnCloseClick(TObject *Sender);
    void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
    void __fastcall BtnSearchClick(TObject *Sender);
    void __fastcall FormCreate(TObject *Sender);
    void __fastcall BtnAllSelectClick(TObject *Sender);
    void __fastcall TvListCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo,
          TMouseButton AButton, TShiftState AShift,
          bool &AHandled);
    void __fastcall BtnAllAddClick(TObject *Sender);
    void __fastcall BtnAllDelClick(TObject *Sender);
    void __fastcall BtnAllEdtClick(TObject *Sender);



private:	// User declarations
    void __fastcall CommClose();

    String  FTitle;
    bool    FUpdate;
    bool    FNewDb;
    bool    EditMode;

public:
    String  FStrTime;
    String  FEndTime;
    bool    FSelected;

    String  FVmsTypeCd;
    String  FFormId;
    String  FVmsNmbr;
    String  FScheType;
    String  FScheFormType;
    String  FMode;

    String  FSymbLibNmbr;
    String  FStreamAddr;

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

    void __fastcall FormInit();
    void __fastcall FormObjectInit();
    void __fastcall RefreshData();

    void __fastcall DisplayInfo();

    void __fastcall ChangeEditMode(int AEdit);

    void __fastcall FormClear();

    void __fastcall DisplayFormInfo(int AIdx);
    void __fastcall DisplayVmsInfo(int AIdx);

    bool __fastcall CheckData(bool ACheckData);

    void __fastcall UpdateEditData();

    bool __fastcall DeleteVmsSchedule();
    bool __fastcall UpdateVmsSchedule();
    bool __fastcall InsertVmsSchedule();
    bool __fastcall InsertVmsScheduleWeek();
};
//---------------------------------------------------------------------------
extern PACKAGE TVMSEDT0M *VMSEDT0M;
//---------------------------------------------------------------------------

#endif

