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

#ifndef FRAME_IncidentRegistFH
#define FRAME_IncidentRegistFH
//---------------------------------------------------------------------------
#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"
//---------------------------------------------------------------------------
class TFRAMEIncidentRegist : public TFrame
{
__published:	// IDE-managed Components
    TcxGroupBox *cxGroupBox1;
    TcxGroupBox *cxGroupBox2;
    TcxSplitter *cxSplitter1;
    TcxGrid *CxList;
    TcxGridTableView *TvList;
    TcxGridColumn *Column01;
    TcxGridColumn *Column02;
    TcxGridColumn *Column17;
    TcxGridColumn *Column18;
    TcxGridColumn *Column03;
    TcxGridColumn *Column04;
    TcxGridColumn *Column05;
    TcxGridColumn *Column12;
    TcxGridColumn *Column09;
    TcxGridColumn *Column14;
    TcxGridColumn *Column15;
    TcxGridColumn *Column16;
    TcxGridColumn *Column13;
    TcxGridColumn *Column06;
    TcxGridColumn *Column10;
    TcxGridColumn *Column07;
    TcxGridColumn *Column08;
    TcxGridColumn *Column11;
    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 *Column35;
    TcxGridLevel *GlList;
    TPanel *PnlBottom;
    TLabel *LblRecords;
    TcxButton *BtnExlSave;
    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;
    TImage *ImgDesc07;
    TImage *ImgDesc08;
    TImage *ImgDesc09;
    TcxLabel *cxLabel7;
    TcxLabel *cxLabel8;
    TcxLabel *cxLabel9;
    TcxLabel *cxLabel10;
    TcxLabel *cxLabel11;
    TcxLabel *cxLabel12;
    TcxLabel *cxLabel13;
    TcxTextEdit *EdIFMR_NM;
    TcxComboBox *CbINCD_CNFM_MTHD_CD;
    TcxComboBox *CbINCD_SERN_CD;
    TcxLabel *cxLabel14;
    TImage *ImgDesc10;
    TcxLabel *cxLabel15;
    TImage *ImgDesc11;
    TcxComboBox *CbINCD_TYPE_CLSF_CD;
    TcxComboBox *CbINCD_TYPE_CD;
    TcxGridColumn *Column99;
    TImage *ImgDesc12;
    TImage *ImgDesc13;
    TImage *ImgDesc14;
    TcxLabel *cxLabel16;
    TcxLabel *cxLabel17;
    TcxLabel *cxLabel18;
    TcxDateEdit *DtINCD_CNFM_DT;
    TcxDateEdit *DtINCD_STRT_DT;
    TcxDateEdit *DtINCD_END_PRAR_DT;
    TcxLabel *cxLabel19;
    TLabel *LbDef;
    void __fastcall TvListDataControllerFilterChanged(TObject *Sender);
    void __fastcall BtnExlSaveClick(TObject *Sender);
    void __fastcall CbINCD_TYPE_CLSF_CDClick(TObject *Sender);
    void __fastcall BtnSaveClick(TObject *Sender);
    void __fastcall TvListCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo, TMouseButton AButton,
          TShiftState AShift, bool &AHandled);
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 UpdateList();
    bool __fastcall InsertToDb(String AINCD_OCRR_ID,      //돌발ID
                               String AINCD_ORGN_CD,      //돌발상황 원본 코드 : IST
                               String AOCRR_LCTN_NM,      //발생 위치 명
                               String AINCD_EXPL,         //돌발상황 설명
                               String ACMTR_GRAD_CD,      //소통 등급 코드 : LTCU
                               String AIFMR_NM,           //제보자 명
                               String AINCD_CNFM_MTHD_CD, //돌발상황 확인 방법 코드 : ICM
                               String AINCD_SERN_CD,      //돌발상황 심각도 코드 : SRLU
                               String AINCD_TYPE_CLSF_CD, //돌발상황 유형 분류 코드 : IDTU
                               String AINCD_TYPE_CD,      //돌발상황 유형 코드 : ACTU, CRTU, EVTU, WETU 중 하나
                               String AINCD_CNFM_DT,      //돌발상황 확인 일시
                               String AINCD_STRT_DT,      //돌발상황 시작 일시
                               String AINCD_END_PRAR_DT); //돌발상황 종료 예정 일시

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

