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

#ifndef FRAME_IncidentEndFH
#define FRAME_IncidentEndFH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "CDSCodeF.h"
#include "CDSIncidentF.h"
#include "cxContainer.hpp"
#include "cxControls.hpp"
#include "cxEdit.hpp"
#include "cxGraphics.hpp"
#include "cxGroupBox.hpp"
#include "cxLookAndFeelPainters.hpp"
#include "cxLookAndFeels.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 "dxSkinSeven.hpp"
#include "dxSkinSharp.hpp"
#include "dxSkinSilver.hpp"
#include "dxSkinStardust.hpp"
#include "cxSplitter.hpp"
#include "cxClasses.hpp"
#include "cxCustomData.hpp"
#include "cxData.hpp"
#include "cxDataStorage.hpp"
#include "cxFilter.hpp"
#include "cxGrid.hpp"
#include "cxGridCustomTableView.hpp"
#include "cxGridCustomView.hpp"
#include "cxGridLevel.hpp"
#include "cxGridTableView.hpp"
#include "cxLabel.hpp"
#include "cxStyles.hpp"
#include "dxSkinscxPCPainter.hpp"
#include "cxButtons.hpp"
#include <ExtCtrls.hpp>
#include <Menus.hpp>
#include "cxTextEdit.hpp"
#include "cxDropDownEdit.hpp"
#include "cxMaskEdit.hpp"
#include "cxCalc.hpp"
#include "cxCalendar.hpp"
#include "cxCheckBox.hpp"
#include "dxGDIPlusClasses.hpp"
#include "cxSpinEdit.hpp"
#include "cxPC.hpp"
#include "cxPCdxBarPopupMenu.hpp"
//---------------------------------------------------------------------------
class TFRAMEIncidentEnd : public TFrame
{
__published:	// IDE-managed Components
    TcxGroupBox *cxGroupBox2;
    TcxSplitter *cxSplitter1;
    TPanel *PnlTitle;
    TcxGroupBox *cxGroupBox3;
    TPanel *Panel1;
    TcxButton *BtnSave;
    TcxGroupBox *cxGroupBox4;
    TImage *ImgDesc01;
    TcxLabel *cxLabel1;
    TcxTextEdit *EdINCD_OCRR_ID;
    TcxLabel *cxLabel2;
    TImage *ImgDesc02;
    TcxTextEdit *EdRGST_DT;
    TcxLabel *cxLabel3;
    TImage *ImgDesc03;
    TcxComboBox *CbINCD_ORGN_CD;
    TImage *ImgDesc04;
    TcxLabel *cxLabel4;
    TcxTextEdit *EdOCRR_LCTN_NM;
    TcxLabel *cxLabel5;
    TImage *ImgDesc05;
    TcxTextEdit *EdINCD_EXPL;
    TcxLabel *cxLabel6;
    TImage *ImgDesc06;
    TcxComboBox *CbCMTR_GRAD_CD;
    TcxGroupBox *cxGroupBox5;
    TcxLabel *cxLabel10;
    TcxLabel *cxLabel11;
    TcxLabel *cxLabel21;
    TImage *ImgDesc15;
    TcxTextEdit *EdLINK_ID;
    TImage *ImgDesc16;
    TcxLabel *cxLabel22;
    TcxLabel *cxLabel23;
    TPanel *Panel2;
    TcxGroupBox *cxGroupBox7;
    TcxGroupBox *cxGroupBox6;
    TcxCheckBox *ChkVMS_DSPL_YN;
    TPanel *PnlVms;
    TImage *Image1;
    TcxTextEdit *EdEND_LCTN_NM;
    TcxLabel *cxLabel_VMS_INCD_TYPE_CD;
    TcxTextEdit *EdSTRT_LCTN_NM;
    TcxComboBox *CbVMS_INCD_TYPE_CD;
    TcxComboBox *CbVMS_INCD_DETL_TYPE_CD;
    TImage *ImgDesc07;
    TImage *ImgDesc08;
    TImage *ImgDesc09;
    TImage *ImgDesc10;
    TImage *ImgDesc11;
    TImage *ImgDesc13;
    TImage *ImgDesc14;
    TcxLabel *cxLabel7;
    TcxLabel *cxLabel8;
    TcxLabel *cxLabel9;
    TcxTextEdit *EdIFMR_NM;
    TcxComboBox *CbINCD_CNFM_MTHD_CD;
    TcxComboBox *CbINCD_SERN_CD;
    TcxLabel *cxLabel14;
    TcxLabel *cxLabel15;
    TcxComboBox *CbINCD_TYPE_CLSF_CD;
    TcxComboBox *CbINCD_TYPE_CD;
    TcxLabel *cxLabel17;
    TcxLabel *cxLabel18;
    TcxDateEdit *DtINCD_STRT_DT;
    TcxDateEdit *DtINCD_END_PRAR_DT;
    TcxLabel *cxLabel27;
    TImage *ImgDesc17;
    TcxTextEdit *EdINCD_TITL;
    TcxLabel *cxLabel16;
    TImage *ImgDesc18;
    TImage *ImgDesc19;
    TcxLabel *cxLabel33;
    TcxLabel *cxLabel34;
    TcxLabel *cxLabel36;
    TcxLabel *cxLabel39;
    TImage *ImgDesc20;
    TcxLabel *cxLabel40;
    TcxLabel *cxLabel44;
    TImage *ImgDesc25;
    TPanel *Panel3;
    TcxGroupBox *cxGroupBox1;
    TPanel *PnlBottom;
    TLabel *LblRecords;
    TLabel *LbDef;
    TcxButton *BtnExlSave;
    TcxButton *BtnInfoCancel;
    TcxLabel *cxLabel46;
    TcxTextEdit *EdRegDt;
    TcxSpinEdit *SePosX;
    TcxSpinEdit *SePosY;
    TcxTextEdit *EdLinkId;
    TcxGrid *CxList;
    TcxGridTableView *TvList;
    TcxGridColumn *Column01;
    TcxGridColumn *Column02;
    TcxGridColumn *Column04;
    TcxGridColumn *Column05;
    TcxGridColumn *Column09;
    TcxGridColumn *Column10;
    TcxGridColumn *Column11;
    TcxGridColumn *Column12;
    TcxGridColumn *Column13;
    TcxGridColumn *Column15;
    TcxGridColumn *Column16;
    TcxGridColumn *Column35;
    TcxGridColumn *Column17;
    TcxGridColumn *Column18;
    TcxGridColumn *Column03;
    TcxGridColumn *Column14;
    TcxGridColumn *Column06;
    TcxGridColumn *Column07;
    TcxGridColumn *Column08;
    TcxGridColumn *Column19;
    TcxGridColumn *Column20;
    TcxGridColumn *Column21;
    TcxGridColumn *Column22;
    TcxGridColumn *Column23;
    TcxGridColumn *Column24;
    TcxGridColumn *Column25;
    TcxGridColumn *Column26;
    TcxGridColumn *Column27;
    TcxGridColumn *Column28;
    TcxGridColumn *Column29;
    TcxGridColumn *Column30;
    TcxGridColumn *Column31;
    TcxGridColumn *Column32;
    TcxGridColumn *Column33;
    TcxGridColumn *Column34;
    TcxGridColumn *Column99;
    TcxGridLevel *GlList;
    TcxGridColumn *Column36;
    TcxGridColumn *Column37;
    TcxGridColumn *Column38;
    TcxGridColumn *Column39;
    TcxGridColumn *Column40;
    TcxGridColumn *Column41;
    TcxCheckBox *ChkViewEnded;
    TImage *ImgDesc24;
    TcxLabel *cxLabel45;
    TcxCheckBox *ChkUTIS_CNCT_YN;
    TcxComboBox *CbINCD_END_CNFM_MTHD_CD;
    TcxDateEdit *DtINCD_END_DT;
    TcxTextEdit *EdMBLZ_EQPM_CONT;
    TcxSpinEdit *SeMBLZ_PNUM;
    TcxTextEdit *EdRECR_CONT;
    TcxSpinEdit *SeRECR_PERD;
    TcxLabel *cxLabel12;
    TcxLabel *cxLabel13;
    TcxComboBox *CbRESP_LVL_CD;
    TcxLabel *cxLabel19;
    TImage *ImgDesc40;
    void __fastcall TvListDataControllerFilterChanged(TObject *Sender);
    void __fastcall BtnExlSaveClick(TObject *Sender);
    void __fastcall BtnSaveClick(TObject *Sender);
    void __fastcall TvListCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo, TMouseButton AButton,
          TShiftState AShift, bool &AHandled);
    void __fastcall BtnInfoCancelClick(TObject *Sender);
    void __fastcall ChkViewEndedClick(TObject *Sender);
private:	// User declarations
    TcxDataController *m_pGDC;
    String             FTitle;

    TItsCode   *FCodeIST;	//돌발상황 원본 코드 : IST
    TItsCode   *FCodeLTCU;	//소통 등급 코드 : LTCU
    TItsCode   *FCodeICM;	//돌발상황 확인 방법 코드 : ICM
    TItsCode   *FCodeIDTU;	//돌발상황 유형 분류 코드 : IDTU

    TItsCode   *FCodeACTU;	//돌발상황 유형 코드 : ACTU, CRTU, EVTU, WETU 중 하나
    TItsCode   *FCodeCRTU;	//돌발상황 유형 코드 : ACTU, CRTU, EVTU, WETU 중 하나
    TItsCode   *FCodeEVTU;	//돌발상황 유형 코드 : ACTU, CRTU, EVTU, WETU 중 하나
    TItsCode   *FCodeWETU;	//돌발상황 유형 코드 : ACTU, CRTU, EVTU, WETU 중 하나

    TItsCode   *FCodeSRLU;	//돌발상황 심각도 코드 : SRLU
    TItsCode   *FCodePRTU;	//통행 제한 유형 코드 : PRTU
    TItsCode   *FCodeRSL;	//대응 수준 코드 : RSL
    TItsCode   *FCodeISS;	//돌발상황 진행 단계 코드 : ISS
    //TItsCode   *FCodeICM;	//돌발상황 종료 확인 방법 코드 : ICM
    TItsCode   *FCodeDFW;	//기상 코드 : DFW
    TItsCode   *FCodeVIT;	//VMS 돌발 유형 코드 : VIT
    TItsCode   *FCodeIDT;	//VMS 돌발 유형 세부 코드 : IDT
    TItsCode   *FCodeEDT;	//VMS 돌발 유형 세부 코드 : EDT

public:
    void __fastcall InitForm();
    void __fastcall InitScreen();
    void __fastcall UpdateList();

public:		// User declarations
    __fastcall TFRAMEIncidentEnd(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TFRAMEIncidentEnd *FRAMEIncidentEnd;
//---------------------------------------------------------------------------
#endif

