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

#ifndef ITS0040MFH
#define ITS0040MFH
//---------------------------------------------------------------------------
#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 "CDSCodeF.h"
#include "CDSLinkF.h"
#include "CDSRepeatCongestF.h"
#include "cxButtonEdit.hpp"
#include "cxButtons.hpp"
#include "cxCalc.hpp"
#include "cxClasses.hpp"
#include "cxContainer.hpp"
#include "cxControls.hpp"
#include "cxCustomData.hpp"
#include "cxData.hpp"
#include "cxDataStorage.hpp"
#include "cxDropDownEdit.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 "cxGroupBox.hpp"
#include "cxLabel.hpp"
#include "cxLookAndFeelPainters.hpp"
#include "cxLookAndFeels.hpp"
#include "cxMaskEdit.hpp"
#include "cxSpinEdit.hpp"
#include "cxSplitter.hpp"
#include "cxStyles.hpp"
#include "cxTextEdit.hpp"
#include "dxSkinBlack.hpp"
#include "dxSkinBlue.hpp"
#include "dxSkinsCore.hpp"
#include "dxSkinscxPCPainter.hpp"
#include "dxSkinMcSkin.hpp"

class TITS0040M : public TForm
{
__published:	// IDE-managed Components
    TShape *ShpTitle;
    TcxButton *BtnSearch;
    TcxButton *BtnClose;
    TLabel *LblCaption;
    TEdit *EdFocus;
    TShape *ShpList;
    TTimer *TmrShow;
    TPanel *Panel1;
    TcxGroupBox *cxGroupBox1;
    TcxGrid *CxList1;
    TcxGridTableView *TvList1;
    TcxGridColumn *AColumn01;
    TcxGridColumn *AColumn02;
    TcxGridColumn *AColumn03;
    TcxGridColumn *AColumn04;
    TcxGridColumn *AColumn05;
    TcxGridColumn *AColumn06;
    TcxGridColumn *AColumn07;
    TcxGridColumn *AColumn08;
    TcxGridColumn *AColumn09;
    TcxGridColumn *AColumn10;
    TcxGridColumn *AColumn99;
    TcxGridLevel *GlList1;
    TcxGroupBox *cxGroupBox3;
    TcxButton *BtnApply;
    TcxGroupBox *cxGroupBox2;
    TcxGrid *CxList2;
    TcxGridTableView *TvList2;
    TcxGridColumn *BColumn01;
    TcxGridColumn *BColumn02;
    TcxGridColumn *BColumn03;
    TcxGridColumn *BColumn04;
    TcxGridColumn *BColumn05;
    TcxGridColumn *BColumn06;
    TcxGridColumn *BColumn07;
    TcxGridColumn *BColumn08;
    TcxGridColumn *BColumn09;
    TcxGridColumn *BColumn10;
    TcxGridColumn *BColumn99;
    TcxGridLevel *GlList2;
    TcxGroupBox *cxGroupBox4;
    TcxButton *BtnCnfmCancel;
    TcxButton *BtnOperatorInput;
    TcxGroupBox *GrpOperatroInput;
    TcxLabel *cxLabel1;
    TcxLabel *cxLabel2;
    TcxLabel *cxLabel3;
    TcxLabel *cxLabel4;
    TcxLabel *cxLabel5;
    TcxLabel *cxLabel6;
    TcxButton *BtnSave;
    TcxButton *BtnCancel;
    TcxComboBox *CbDayType;
    TcxSpinEdit *SpSpeed;
    TcxSpinEdit *SpAvgTm;
    TcxSplitter *cxSplitter1;
    TcxGridColumn *AColumn11;
    TcxGridColumn *AColumn12;
    TcxGridColumn *AColumn13;
    TcxGridColumn *AColumn14;
    TcxGridColumn *BColumn11;
    TcxGridColumn *BColumn12;
    TcxGridColumn *BColumn13;
    TcxGridColumn *BColumn14;
    TDateTimePicker *DtStTime;
    TDateTimePicker *DtEdTime;
    TcxButtonEdit *EdLinkId;
    TImage *ImgDesc01;
    TImage *ImgDesc02;
    TImage *ImgDesc03;
    TImage *ImgDesc04;
    TImage *ImgDesc05;
    TImage *ImgDesc06;
    TPopupMenu *PopupAddLink;
    TMenuItem *MnuListList;
    TMenuItem *MnuGisAdd;
    TcxButton *BtnAppCancel;
    TcxLabel *lblSelErr;
    TcxLabel *lblGss1;
    TcxLabel *lblGss2;
    TcxLabel *lblCancel;
    TcxLabel *lblSelErr2;
    TcxLabel *lblCancel2;
    TcxLabel *lblCancel3;
    TcxLabel *lblCnfm;
    TcxLabel *lblOpr;
    TcxLabel *lblQry1;
    TcxLabel *lblQry2;
    TcxLabel *lblQry3;
    TcxLabel *lblQry4;
    void __fastcall FormShow(TObject *Sender);
    void __fastcall TmrShowTimer(TObject *Sender);
    void __fastcall BtnSearchClick(TObject *Sender);
    void __fastcall BtnCloseClick(TObject *Sender);
    void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
    void __fastcall BtnOperatorInputClick(TObject *Sender);
    void __fastcall MnuListListClick(TObject *Sender);
    void __fastcall EdLinkIdPropertiesButtonClick(TObject *Sender, int AButtonIndex);
    void __fastcall MnuGisAddClick(TObject *Sender);
    void __fastcall BtnCnfmCancelClick(TObject *Sender);
    void __fastcall BtnAppCancelClick(TObject *Sender);
    void __fastcall BtnApplyClick(TObject *Sender);
    void __fastcall BtnSaveClick(TObject *Sender);
    void __fastcall TvList1DataControllerFilterChanged(TObject *Sender);
private:	// User declarations
    void __fastcall CommClose();
    String              FTitle;
    TcxDataController  *m_pGDC1;
    TcxDataController  *m_pGDC2;

public:
    TItsCode   *FCodeRCS;
    TItsCode   *FCodeDTW;
    TItsCode   *FCodeLTC;
    TItsCode   *FCodeIFD;

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

    void __fastcall FormInit();
    void __fastcall RefreshData();
    void __fastcall SelConfirmList();
    void __fastcall SelUnConfirmList();
    void __fastcall UnconfirmData(bool AConfirm);
};
//---------------------------------------------------------------------------
extern PACKAGE TITS0040M *ITS0040M;
//---------------------------------------------------------------------------

#endif

