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

#ifndef SMS0010MFH
#define SMS0010MFH
//---------------------------------------------------------------------------
#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 "cxButtons.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 "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 "cxCalc.hpp"
#include "cxButtonEdit.hpp"
#include "cxCheckBox.hpp"
#include "cxMemo.hpp"

class TSMS0010M : 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 *ColumnSel;
    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;
    TcxButton *BtnAppCancel;
    TcxGroupBox *cxGroupBox2;
    TImage *ImgDesc01;
    TcxLabel *cxLabel1;
    TcxButton *BtnOperatorInput;
    TcxButton *BtnCnfmCancel;
    TcxMemo *memoSMS;
    TADOQuery *ADOQry;
    TcxButton *BtnAllSelect;
    TcxButton *BtnAllClear;
    TcxButton *BtnReverse;
    TLabel *Label6;
    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 TvList1MouseMove(TObject *Sender, TShiftState Shift, int X, int Y);
    void __fastcall BtnAllSelectClick(TObject *Sender);
    void __fastcall BtnCnfmCancelClick(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;

    bool __fastcall DbConnect(TADOConnection *AConnection, String AConnString);
    void __fastcall DbClose(TADOConnection *AConnection);

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

    void __fastcall FormInit();
    void __fastcall RefreshData();
    void __fastcall SelSmsUserList();

    bool __fastcall CheckField();
    void __fastcall SaveSmsSendMsg(TADOConnection *ADbCon=NULL, bool ALocal=true);
    bool __fastcall GetMsgNewId(int &ANewId);
};
//---------------------------------------------------------------------------
extern PACKAGE TSMS0010M *SMS0010M;
//---------------------------------------------------------------------------

#endif

