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

#ifndef CDSColtSysFH
#define CDSColtSysFH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <ADODB.hpp>
#include <DB.hpp>
#include "cxCustomData.hpp"
#include "ITSLibF.h"
//---------------------------------------------------------------------------

/*
*  ColtSys class
*/
class TItsColtSys
{
public:
    TItsColtSys();
    virtual ~TItsColtSys();
    void Clear();
private:
    bool    FCompleted;
    int     FEditMode;
	int     FGridIndex;

public:
    String ORDSEQ; 
    String CLCT_SYST_CD; 
    String CLCT_SYST_NM;
    String USE_YN;

    String  MEM_DEL;
    
public:
    __property bool   Completed = {read = FCompleted, write = FCompleted};
	__property int    EditMode  = {read = FEditMode,  write = FEditMode };
	__property int    GridIndex = {read = FGridIndex, write = FGridIndex };
};
//---------------------------------------------------------------------------

/*
* ColtSys Manager
*/
class TItsColtSysManager
{
public:
    TItsColtSysManager();
    virtual ~TItsColtSysManager();

public:
    TItsMap<String, TItsColtSys>    FLists;

public:
    bool LoadFromDb(TADOConnection *ADbConn=NULL);
};
//---------------------------------------------------------------------------
extern TItsColtSysManager *ItsColtSysManager;
//---------------------------------------------------------------------------

#endif

