//--------------------------------------------------------------------------- #ifndef CDSDsrcSectFH #define CDSDsrcSectFH //--------------------------------------------------------------------------- #include #include #include #include "cxCustomData.hpp" #include "ITSLibF.h" //--------------------------------------------------------------------------- /* * TItsDsrcSectLink class */ class TItsDsrcSectLink { public: TItsDsrcSectLink(); virtual ~TItsDsrcSectLink(); void Clear(); private: bool FCompleted; int FEditMode; int FGridIndex; public: String RSE_SECT_ID; // N VARCHAR2(3) N RSE ±¸°£ ¾ÆÀ̵ð String LINK_ID; // N NUMBER(10) N ¸µÅ©ID String LINK_ORD; // N NUMBER(2) Y ¸µÅ© ¼ø¼­ String DEL_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 }; }; //--------------------------------------------------------------------------- /* * DsrcSect class */ class TItsDsrcSect { public: TItsDsrcSect(); virtual ~TItsDsrcSect(); void Clear(); private: bool FCompleted; int FEditMode; int FGridIndex; public: String RSE_SECT_ID; //VARCHAR2(8) N RSE ±¸°£ ¾ÆÀ̵ð String DSTC; //NUMBER(5) Y °Å¸® String RSE_SECT_NM; //VARCHAR2(30) Y RSE ±¸°£ ¸í String STRT_SPOT_NM; //VARCHAR2(30) Y ½ÃÀÛ ÁöÁ¡ ¸í String END_SPOT_NM; //VARCHAR2(30) Y Á¾·á ÁöÁ¡ ¸í String DEL_YN; //CHAR(1) Y 'N' »èÁ¦ ¿©ºÎ String STRT_ID; //VARCHAR2(3); N ½ÃÀÛ ¾ÆÀ̵ð String END_ID; //VARCHAR2(3) N Á¾·á ¾ÆÀ̵ð String MEM_DEL; TItsMap FLinkLists; public: __property bool Completed = {read = FCompleted, write = FCompleted}; __property int EditMode = {read = FEditMode, write = FEditMode }; __property int GridIndex = {read = FGridIndex, write = FGridIndex }; }; //--------------------------------------------------------------------------- /* * DsrcSect Manager */ class TItsDsrcSectManager { public: TItsDsrcSectManager(); virtual ~TItsDsrcSectManager(); public: TItsMap FLists; public: bool LoadFromDb(TADOConnection *ADbConn=NULL); bool LoadSectMstr(TADOConnection *ADbConn=NULL); bool LoadSectLink(TADOConnection *ADbConn=NULL); bool GetNextSectId(String &ANewId, TADOConnection *ADbConn=NULL); bool DeleteSect(String ASectId, TADOConnection *ADbConn=NULL); bool SaveSect(TItsDsrcSect *AObj, TADOConnection *ADbConn=NULL); }; //--------------------------------------------------------------------------- extern TItsDsrcSectManager *ItsDsrcSectManager; //--------------------------------------------------------------------------- #endif