//--------------------------------------------------------------------------- #ifndef FrmVmsMsgScheMngrFH #define FrmVmsMsgScheMngrFH //--------------------------------------------------------------------------- #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include //--------------------------------------------------------------------------- //--------------------------------------------------------------------------- #include "WindowMsgF.h" #include "cxButtons.hpp" #include "cxCalendar.hpp" #include "cxContainer.hpp" #include "cxControls.hpp" #include "cxDropDownEdit.hpp" #include "cxEdit.hpp" #include "cxGraphics.hpp" #include "cxGroupBox.hpp" #include "cxLabel.hpp" #include "cxLookAndFeelPainters.hpp" #include "cxLookAndFeels.hpp" #include "cxMaskEdit.hpp" #include "cxPC.hpp" #include "cxPCdxBarPopupMenu.hpp" #include "cxSpinEdit.hpp" #include "cxSplitter.hpp" #include "cxTextEdit.hpp" #include "cxTimeEdit.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 "dxSkinscxPCPainter.hpp" #include "dxSkinSeven.hpp" #include "dxSkinSharp.hpp" #include "dxSkinSilver.hpp" #include "dxSkinStardust.hpp" #include "cxRadioGroup.hpp" #include "cxClasses.hpp" #include "cxCustomData.hpp" #include "cxData.hpp" #include "cxDataStorage.hpp" #include "cxDBData.hpp" #include "cxFilter.hpp" #include "cxGrid.hpp" #include "cxGridCustomTableView.hpp" #include "cxGridCustomView.hpp" #include "cxGridDBTableView.hpp" #include "cxGridLevel.hpp" #include "cxGridTableView.hpp" #include "cxStyles.hpp" #include "cxCheckBox.hpp" #include "cxImage.hpp" #include "cxButtonEdit.hpp" #include "cxBlobEdit.hpp" #include "cxColorComboBox.hpp" #include "cxCalc.hpp" //--------------------------------------------------------------------------- #include "CDSVmsCtlrF.h" #include "CDSVmsObjTypeF.h" #include "VmsDesignerF.h" #include "FRAME_VmsSchListF.h" #include "cxHint.hpp" #include "dxCustomHint.hpp" #include "dxGDIPlusClasses.hpp" #include "dxScreenTip.hpp" #include "dxSkinsForm.hpp" //--------------------------------------------------------------------------- class TFormImage { public: TFormImage() {}; ~TFormImage(){}; public: String fromId; int memIdx; Graphics::TBitmap *bitmap; }; //--------------------------------------------------------------------------- class TVmsDsplCndt { public: TVmsDsplCndt() {}; ~TVmsDsplCndt(){}; public: String VMS_FORM_DSPL_CNDT_ID; // N VARCHAR2(10) N VMSÆûÇ¥ÃâÁ¶°ÇID String VMS_FORM_DSPL_CNDT; // N VARCHAR2(128) N VMSÆûÇ¥ÃâÁ¶°Ç String VMS_FORM_DSPL_CNDT_NM; // N VARCHAR2(64) Y VMSÆûÇ¥ÃâÁ¶°Ç¸í }; class TFrmVmsMsgScheMngr : public TForm { __published: // IDE-managed Components TTimer *TmrShow; TcxButton *BtnClose; TShape *ShpList; TEdit *EdFocus; TPanel *PanelBack; TPanel *PnlLeft; TcxSplitter *cxSplitter1; TcxGroupBox *GrpList; TPanel *Panel1; TPanel *Panel3; TcxGroupBox *GrpSchedule; TPanel *PnlMenu; TcxButton *BtnSaveX; TcxButton *BtnSearch; TcxButton *BtnAllEdit; TcxButton *BtnAllAdd; TPanel *PnlTemp; TPanel *PnlEdtBack; TPanel *PnlEditForm; TImage *ImgForm; VmsDesigner *VmsDesigner1; TcxButton *BtnSchWeek; TdxSkinController *dxSkinController1; TcxHintStyleController *cxHintStyleController1; TImage *ImgCaption; TImage *ImgCaptionLeft; TLabel *LblCaption; TcxGrid *CxVmsSche; TcxGridTableView *TvVmsSche; TcxGridColumn *ColScnrId; TcxGridColumn *ColScnrNm; TcxGridColumn *ColObj03; TcxGridColumn *ColObj04; TcxGridColumn *ColIfscId; TcxGridColumn *ColIfscNm; TcxGridColumn *ColIfscStr; TcxGridColumn *ColIfscEnd; TcxGridColumn *TvVmsScheColumn9; TcxGridColumn *TvVmsScheColumn10; TcxGridColumn *TvVmsScheColumn11; TcxGridColumn *ColMem; TcxGridColumn *ColObjType; TcxGridLevel *GlVmsSche; TPanel *Panel19; TImage *ImgDesc00; TcxLabel *cxLabel1; TcxComboBox *CbVms; TPanel *Panel20; TImage *ImgDesc02; TcxLabel *cxLabel2; TImage *ImgDesc03; TcxLabel *cxLabel3; TcxTextEdit *EdScnrId; TcxTextEdit *EdScnrNm; TcxPageControl *PgSchedule; TcxTabSheet *TsEdit; TcxTabSheet *TsPreview; TPanel *Panel21; TcxButton *BtnMonitoringMngr; TcxCheckBox *cxCheckBox1; TcxButton *cxButton1; TcxGrid *CxPreview; TcxGridTableView *TvPreview; TcxGridColumn *ColView00; TcxGridColumn *ColView03; TcxGridColumn *ColView01; TcxGridColumn *cxGridColumn23; TcxGridColumn *TvViewColumn40; TcxGridColumn *TvViewColumn41; TcxGridLevel *GlPreview; TPanel *Panel2; TcxGroupBox *cxGroupBox5; TPanel *PnlScnrEdit; TcxButton *BtnListAdd2; TcxButton *BtnListDelete2; TcxButton *BtnUp; TcxButton *BtnDown; TcxButton *BtnBestFit; TcxCheckBox *ChkAutoWidth; TcxGroupBox *cxGroupBox7; TcxGrid *CxForm; TcxGridTableView *TvForm; TcxGridColumn *ColFrm00; TcxGridColumn *ColFrm01; TcxGridColumn *ColFrm03; TcxGridColumn *ColFrm04; TcxGridColumn *ColFrm05; TcxGridColumn *ColFrm06; TcxGridColumn *ColFrm07; TcxGridColumn *ColFrm08; TcxGridColumn *ColFrm02; TcxGridColumn *ColFrm09; TcxGridLevel *GlForm; TcxGrid *CxSche; TcxGridTableView *TvSche; TcxGridColumn *Col00; TcxGridColumn *Col01; TcxGridColumn *Col02; TcxGridColumn *Col0003; TcxGridColumn *Col04; TcxGridColumn *Col05; TcxGridColumn *Col06; TcxGridColumn *Col07; TcxGridColumn *Col08; TcxGridColumn *Col03; TcxGridColumn *Col10; TcxGridColumn *Col11; TcxGridColumn *Col12; TcxGridColumn *Col13; TcxGridColumn *Col14; TcxGridColumn *Col15; TcxGridColumn *Col16; TcxGridColumn *Col17; TcxGridColumn *Col18; TcxGridColumn *Col19; TcxGridColumn *Col20; TcxGridColumn *Col21; TcxGridColumn *Col22; TcxGridColumn *Col23; TcxGridColumn *Col24; TcxGridColumn *ColWeek1; TcxGridColumn *ColWeek2; TcxGridColumn *ColWeek3; TcxGridColumn *ColWeek4; TcxGridColumn *ColWeek5; TcxGridColumn *ColWeek6; TcxGridColumn *ColWeek7; TcxGridColumn *Col25; TcxGridLevel *GlSche; TcxButton *BtnEdit; TcxButton *BtnInsert; TcxButton *BtnDelete; TcxButton *BtnSave; TcxGroupBox *GrpPreview; TScrollBox *ScrollBox2; TPanel *PnlPreview; TImage *ImgPreview; TcxSplitter *cxSplitter2; TLabel *Label1; TcxGridColumn *ColViewDslplCndtNm; TcxGridColumn *ColDsplCndtNm; TcxGridColumn *ColDsplCndtId; TcxComboBox *CbSizeType; void __fastcall FormShow(TObject *Sender); void __fastcall TmrShowTimer(TObject *Sender); void __fastcall BtnCloseClick(TObject *Sender); void __fastcall FormClose(TObject *Sender, TCloseAction &Action); void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose); void __fastcall CbSizeTypePropertiesChange(TObject *Sender); void __fastcall BtnSearchClick(TObject *Sender); void __fastcall FormCreate(TObject *Sender); void __fastcall BtnListAdd0Click(TObject *Sender); void __fastcall BtnListDelete0Click(TObject *Sender); void __fastcall TvScheCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo, TMouseButton AButton, TShiftState AShift, bool &AHandled); void __fastcall BtnSaveClick(TObject *Sender); void __fastcall BtnUpClick(TObject *Sender); void __fastcall BtnDownClick(TObject *Sender); void __fastcall ChkAutoWidthPropertiesChange(TObject *Sender); void __fastcall BtnBestFitClick(TObject *Sender); void __fastcall BtnSchWeekClick(TObject *Sender); void __fastcall Col05CustomDrawCell(TcxCustomGridTableView *Sender, TcxCanvas *ACanvas, TcxGridTableDataCellViewInfo *AViewInfo, bool &ADone); void __fastcall Col00CustomDrawCell(TcxCustomGridTableView *Sender, TcxCanvas *ACanvas, TcxGridTableDataCellViewInfo *AViewInfo, bool &ADone); void __fastcall Col06CustomDrawCell(TcxCustomGridTableView *Sender, TcxCanvas *ACanvas, TcxGridTableDataCellViewInfo *AViewInfo, bool &ADone); void __fastcall CbVmsPropertiesChange(TObject *Sender); void __fastcall BtnEditClick(TObject *Sender); void __fastcall BtnInsertClick(TObject *Sender); void __fastcall BtnDeleteClick(TObject *Sender); void __fastcall TvVmsScheFocusedRecordChanged(TcxCustomGridTableView *Sender, TcxCustomGridRecord *APrevFocusedRecord, TcxCustomGridRecord *AFocusedRecord, bool ANewItemRecordFocusingChanged); void __fastcall TvScheFocusedRecordChanged(TcxCustomGridTableView *Sender, TcxCustomGridRecord *APrevFocusedRecord, TcxCustomGridRecord *AFocusedRecord, bool ANewItemRecordFocusingChanged); void __fastcall TvFormFocusedRecordChanged(TcxCustomGridTableView *Sender, TcxCustomGridRecord *APrevFocusedRecord, TcxCustomGridRecord *AFocusedRecord, bool ANewItemRecordFocusingChanged); void __fastcall PgSchedulePageChanging(TObject *Sender, TcxTabSheet *NewPage, bool &AllowChange); private: // User declarations void __fastcall CommClose(); TcxDataController *m_pGDC; String FTitle; bool FUpdate; bool FNewDb; bool EditMode; TList *FListSymb; int FSelIdx; String FVmsTypeCd; int FVmsWidth; int FVmsHeight; String FSelVmsModlType; String FSelVmsCtlrId; public: TItsMap FVmsFormDsplCndtList; TItsMap FFormLists; public: String FVMS_SCH_TYPE; int FEN_DSPL_SCH_TYPE; //TcxGridTableView *FListSch[eSchTp_max]; TcxGridTableView *FListFrm[eSchTp_max]; TcxTabSheet *FTabSheet[eSchTp_max]; TcxLabel *FLabel[eSchTp_max]; TcxButton *FButtonAdd[eSchTp_max]; TcxButton *FButtonDel[eSchTp_max]; TVmsFormDesigner *m_pEdtDesigner; String FIfscId[10]; public: // User declarations __fastcall TFrmVmsMsgScheMngr(TComponent* Owner); void __fastcall InitTcxList(TcxGridTableView *AView); void __fastcall FormInit(); void __fastcall RefreshData(); void __fastcall SetColorScheme(String ASkinName); void __fastcall InitDbLoading(); void __fastcall FillVmsCombo(); bool __fastcall LoadVmsScenario(String AVMS_CTLR_ID); void __fastcall ClearSymbloList(); void __fastcall DisplayInfo(); void __fastcall DisplayScenarioInfo(); void __fastcall ChangeEditMode(int AEdit); void __fastcall FormClear(); void __fastcall ChangeEditFormPanel(); bool __fastcall LoadVmsFormDsplCndt(); String __fastcall GetNextVmsScnrId(String AVmsCtlrId); bool __fastcall LoadVmsScenarionForm(String AVmsCtlrId, String AScnrId); void __fastcall LoadPreviewForm(String AVmsFormId); bool __fastcall SaveVmsScnr(String AVmsCtlrId, String AScnrId, String AScnrNm); bool __fastcall CheckVmsFormUse(String AFormId); bool __fastcall LoadVmsFormList(String AVmsModlKind); bool __fastcall SaveVmsScenario(String AVmsNmbr, TcxGridTableView *AListSch); bool __fastcall DeleteVmsScenario(String AVmsNmbr); void __fastcall PreviewVmsScenarionForm(); void __fastcall DrawTrafficScenarioForm(); void __fastcall DrawAtmpScenarioForm(); bool __fastcall LoadTrafficFormObjectInfo(String AFormId, String ABkColor, TVmsFormDesigner *ADesigner); void __fastcall DrawVideoStreamScenarioForm(int AFormScheType); bool __fastcall LoadVideoStreamFormObjectInfo(String AFormId, String ABkColor, TVmsFormDesigner *ADesigner, String ASymbLibNmbr, String AStreamAddr); }; //--------------------------------------------------------------------------- extern PACKAGE TFrmVmsMsgScheMngr *FrmVmsMsgScheMngr; //--------------------------------------------------------------------------- #endif