//--------------------------------------------------------------------------- #ifndef CDSUtisFH #define CDSUtisFH //--------------------------------------------------------------------------- #include #include #include #include "cxCustomData.hpp" #include "ITSLibF.h" //--------------------------------------------------------------------------- /* * Utis class */ class TItsUtis { public: TItsUtis(); virtual ~TItsUtis(); void Clear(); private: bool FModified; bool FCompleted; public: int FGridIndex; // ¸ÞÀÎÆû¿¡ »Ñ·ÁÁö´Â ±×¸®µå À妽º void SetValue(String &AOrgValue, String AValue); protected: public: __property bool Modified = {read = FModified}; __property bool Completed = {read = FCompleted, write = FCompleted}; __property int GridIndex = {read = FGridIndex, write = FGridIndex }; }; //--------------------------------------------------------------------------- #define MAX_UTIS_RUN 3 typedef struct { String Status[MAX_UTIS_RUN]; int TotCnt[MAX_UTIS_RUN]; int RunCnt[MAX_UTIS_RUN]; String LastTime[MAX_UTIS_RUN]; } UTIS_RUN; /* * Utis Manager */ class TItsUtisManager { public: TItsUtisManager(); virtual ~TItsUtisManager(); public: String CenterId; UTIS_RUN UtisRun; int FTotCctvCnt; int RseRun[MAX_UTIS_RUN]; TItsMap FLists; public: void SetCenterId(String ACenterId); bool LoadFromDb(TADOConnection *ADbConn=NULL); bool LoadUtisMaster(TADOConnection *ADbConn=NULL); bool LoadUtisStatusFromDb(TADOConnection *ADbConn=NULL); bool LoadUtisStatusUtisRun(TADOConnection *ADbConn=NULL); bool LoadUtisStatusRseRun(TADOConnection *ADbConn=NULL); }; //--------------------------------------------------------------------------- extern TItsUtisManager *ItsUtisManager; //--------------------------------------------------------------------------- #endif