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

#ifndef VMSM800MF_OLDH
#define VMSM800MF_OLDH
//---------------------------------------------------------------------------
#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 "cxCalc.hpp"

//---------------------------------------------------------------------------
#include "CDSVmsCtlrF.h"
#include "CDSVmsObjTypeF.h"
#include "VmsDesignerF.h"
#include "FRAME_VmsSchListF.h"
//---------------------------------------------------------------------------

class TVMSM800M_OLD : public TForm
{
__published:	// IDE-managed Components
    TTimer *TmrShow;
    TShape *ShpTitle;
    TcxButton *BtnClose;
    TLabel *LblCaption;
    TShape *ShpList;
    TEdit *EdFocus;
    TPanel *PanelBack;
    TPanel *PnlLeft;
    TcxSplitter *cxSplitter1;
    TcxGroupBox *GrpList;
    TPanel *Panel1;
    TPanel *Panel3;
    TcxGroupBox *GrpSchedule;
    TPanel *PnlMenu;
    TcxButton *BtnDelete;
    TcxButton *BtnSave;
    TPanel *Panel4;
    TImage *ImgDesc01;
    TcxLabel *cxLabel18;
    TcxComboBox *CbSizeType;
    TcxButton *BtnSearch;
    TcxTextEdit *EdVmsNmbr;
    TcxPageControl *PgVmsSch;
    TcxTabSheet *TabFixed;
    TPanel *PnlFixed;
    TcxGroupBox *cxGroupBox8;
    TcxGrid *CxGrid6;
    TcxGridTableView *TvGrid6;
    TcxGridColumn *cxGridColumn37;
    TcxGridColumn *cxGridColumn38;
    TcxGridColumn *cxGridColumn39;
    TcxGridColumn *cxGridColumn40;
    TcxGridColumn *cxGridColumn41;
    TcxGridColumn *cxGridColumn42;
    TcxGridColumn *cxGridColumn43;
    TcxGridColumn *cxGridColumn44;
    TcxGridColumn *cxGridColumn45;
    TcxGridLevel *GlGrid6;
    TPanel *Panel7;
    TcxButton *BtnListAdd6;
    TcxButton *cxButton6;
    TcxGroupBox *cxGroupBox9;
    TcxGrid *CxForm6;
    TcxGridTableView *TvForm6;
    TcxGridColumn *cxGridColumn46;
    TcxGridColumn *cxGridColumn47;
    TcxGridColumn *cxGridColumn48;
    TcxGridColumn *cxGridColumn49;
    TcxGridColumn *cxGridColumn50;
    TcxGridColumn *cxGridColumn51;
    TcxGridColumn *cxGridColumn52;
    TcxGridColumn *cxGridColumn53;
    TcxGridColumn *cxGridColumn54;
    TcxGridLevel *GlForm6;
    TcxGridColumn *TvGrid6Column1;
    TcxGridColumn *TvGrid6Column2;
    TcxGridColumn *TvGrid6Column3;
    TcxGridColumn *TvGrid6Column4;
    TcxButton *BtnAllEdit;
    TcxButton *BtnAllAdd;
    TcxGridColumn *TvGrid6Column5;
    TcxLabel *cxLabel1;
    TcxGridColumn *TvGrid6Column6;
    TcxGridColumn *TvGrid6Column7;
    VmsDesigner *VmsDesigner1;
    TFRAMEVmsSchList *FRAMEVmsSchList1;
    TLabel *LblInfo1;
    TcxLabel *lblTitle;
    TcxLabel *lblErr2;
    TcxLabel *lblErr3;
    TcxLabel *lblErr4;
    TcxTabSheet *TabVideo;
    TcxTabSheet *TabStream;
    TPanel *PnlVideo;
    TcxGroupBox *cxGroupBox15;
    TcxGrid *CxGrid9;
    TcxGridTableView *TvGrid9;
    TcxGridColumn *cxGridColumn127;
    TcxGridColumn *cxGridColumn128;
    TcxGridColumn *cxGridColumn129;
    TcxGridColumn *cxGridColumn130;
    TcxGridColumn *cxGridColumn131;
    TcxGridColumn *cxGridColumn132;
    TcxGridColumn *cxGridColumn133;
    TcxGridColumn *cxGridColumn134;
    TcxGridColumn *cxGridColumn135;
    TcxGridColumn *cxGridColumn136;
    TcxGridColumn *cxGridColumn137;
    TcxGridColumn *cxGridColumn138;
    TcxGridColumn *cxGridColumn139;
    TcxGridColumn *cxGridColumn140;
    TcxGridColumn *cxGridColumn141;
    TcxGridColumn *cxGridColumn142;
    TcxGridColumn *cxGridColumn143;
    TcxGridColumn *cxGridColumn144;
    TcxGridColumn *cxGridColumn145;
    TcxGridColumn *cxGridColumn146;
    TcxGridLevel *GlGrid9;
    TPanel *Panel11;
    TcxButton *BtnListAdd9;
    TcxButton *BtnListDelete9;
    TcxGroupBox *cxGroupBox16;
    TcxGrid *CxForm9;
    TcxGridTableView *TvForm9;
    TcxGridColumn *cxGridColumn147;
    TcxGridColumn *cxGridColumn148;
    TcxGridColumn *cxGridColumn149;
    TcxGridColumn *cxGridColumn150;
    TcxGridColumn *cxGridColumn151;
    TcxGridColumn *cxGridColumn152;
    TcxGridColumn *cxGridColumn153;
    TcxGridColumn *cxGridColumn154;
    TcxGridColumn *cxGridColumn155;
    TcxGridLevel *GlForm9;
    TPanel *PnlStream;
    TcxGroupBox *cxGroupBox17;
    TcxGrid *CxGrid10;
    TcxGridTableView *TvGrid10;
    TcxGridColumn *cxGridColumn156;
    TcxGridColumn *cxGridColumn157;
    TcxGridColumn *cxGridColumn158;
    TcxGridColumn *cxGridColumn159;
    TcxGridColumn *cxGridColumn160;
    TcxGridColumn *cxGridColumn161;
    TcxGridColumn *cxGridColumn162;
    TcxGridColumn *cxGridColumn163;
    TcxGridColumn *cxGridColumn164;
    TcxGridColumn *cxGridColumn165;
    TcxGridColumn *cxGridColumn166;
    TcxGridColumn *cxGridColumn167;
    TcxGridColumn *cxGridColumn168;
    TcxGridColumn *cxGridColumn169;
    TcxGridColumn *cxGridColumn170;
    TcxGridColumn *cxGridColumn171;
    TcxGridColumn *cxGridColumn172;
    TcxGridColumn *cxGridColumn173;
    TcxGridColumn *cxGridColumn174;
    TcxGridColumn *cxGridColumn175;
    TcxGridLevel *GlGrid10;
    TPanel *Panel13;
    TcxButton *BtnListAdd10;
    TcxButton *BtnListDelete10;
    TcxGroupBox *cxGroupBox18;
    TcxGrid *CxForm10;
    TcxGridTableView *TvForm10;
    TcxGridColumn *cxGridColumn176;
    TcxGridColumn *cxGridColumn177;
    TcxGridColumn *cxGridColumn178;
    TcxGridColumn *cxGridColumn179;
    TcxGridColumn *cxGridColumn180;
    TcxGridColumn *cxGridColumn181;
    TcxGridColumn *cxGridColumn182;
    TcxGridColumn *cxGridColumn183;
    TcxGridColumn *cxGridColumn184;
    TcxGridLevel *GlForm10;
    void __fastcall FormShow(TObject *Sender);
    void __fastcall TmrShowTimer(TObject *Sender);
    void __fastcall BtnCloseClick(TObject *Sender);
    void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
    void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
    void __fastcall CbSizeTypePropertiesChange(TObject *Sender);
    void __fastcall BtnSearchClick(TObject *Sender);
    void __fastcall FormCreate(TObject *Sender);
    void __fastcall BtnListAddClick(TObject *Sender);
    void __fastcall BtnListDeleteClick(TObject *Sender);
    void __fastcall TvGridCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo,
          TMouseButton AButton, TShiftState AShift,
          bool &AHandled);
    void __fastcall TvFormCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo,
          TMouseButton AButton, TShiftState AShift,
          bool &AHandled);
    void __fastcall BtnAllEditClick(TObject *Sender);
    void __fastcall BtnSaveClick(TObject *Sender);
    void __fastcall FRAMEVmsSchList1TvListCellDblClick(TcxCustomGridTableView *Sender,
          TcxGridTableDataCellViewInfo *ACellViewInfo, TMouseButton AButton,
          TShiftState AShift, bool &AHandled);
    void __fastcall FRAMEVmsSchList1TvListFocusedRecordChanged(TcxCustomGridTableView *Sender,
          TcxCustomGridRecord *APrevFocusedRecord, TcxCustomGridRecord *AFocusedRecord,
          bool ANewItemRecordFocusingChanged);




private:	// User declarations
    void __fastcall CommClose();
    TcxDataController *m_pGDC;
    String          FTitle;
    bool            FUpdate;
    bool            FNewDb;
    bool            EditMode;
	TList          *FListSymb;

    int             FSelIdx;
    String          FVmsTypeCd;
    int             FVmsWidth;
    int             FVmsHeight;

public:
    TcxGridTableView *FListSch[MAX_FORM_SCHED];
    TcxGridTableView *FListFrm[MAX_FORM_SCHED];

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

    void __fastcall InitTcxList(TcxGridTableView *AView);
    void __fastcall FormInit();
    void __fastcall RefreshData();

    void __fastcall ClearSymbloList();

    void __fastcall DisplayInfo();
    bool __fastcall SaveVmsForm();

    void __fastcall ChangeEditMode(int AEdit);

    void __fastcall FormClear();

    void __fastcall LoadVmsScheduleInfo(String AVmsNmbr);

    bool __fastcall CheckVmsFormUse(String AFormId);

    bool __fastcall LoadVmsFormList(String AFormSizeCd);

    bool __fastcall SaveVmsFixedScenario(String AVmsNmbr, TcxGridTableView *AListSch);
    bool __fastcall DeleteVmsFixedScenario(String AVmsNmbr);
};
//---------------------------------------------------------------------------
extern PACKAGE TVMSM800M_OLD *VMSM800M_OLD;
//---------------------------------------------------------------------------

#endif

