VMS0000MF.cpp 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616
  1. /****************************************************************************
  2. * @source :
  3. * @description :
  4. ****************************************************************************
  5. * DATE AUTHOR DESCRIPTION
  6. * --------------------------------------------------------------------------
  7. * 2016/07/24 정승호 최초작성
  8. *
  9. ****************************************************************************/
  10. //---------------------------------------------------------------------------
  11. #include <vcl.h>
  12. #include "AppGlobalF.h"
  13. #include "ITSSkinF.h"
  14. #include "ITSUtilF.h"
  15. #include "CommFlashF.h"
  16. #include "CDSVmsIfscF.h"
  17. #include "CDSIfscF.h"
  18. #include "FrmVmsOprMainF.h"
  19. #pragma hdrstop
  20. #include "VMS0000MF.h"
  21. //---------------------------------------------------------------------------
  22. #pragma package(smart_init)
  23. #pragma link "cxContainer"
  24. #pragma link "cxControls"
  25. #pragma link "cxEdit"
  26. #pragma link "cxGraphics"
  27. #pragma link "cxGroupBox"
  28. #pragma link "cxLabel"
  29. #pragma link "cxLookAndFeelPainters"
  30. #pragma link "cxLookAndFeels"
  31. #pragma link "cxPC"
  32. #pragma link "cxPCdxBarPopupMenu"
  33. #pragma link "cxSplitter"
  34. #pragma link "dxSkinBlack"
  35. #pragma link "dxSkinBlue"
  36. #pragma link "dxSkinCaramel"
  37. #pragma link "dxSkinCoffee"
  38. #pragma link "dxSkinDarkRoom"
  39. #pragma link "dxSkinDarkSide"
  40. #pragma link "dxSkinFoggy"
  41. #pragma link "dxSkinGlassOceans"
  42. #pragma link "dxSkiniMaginary"
  43. #pragma link "dxSkinLilian"
  44. #pragma link "dxSkinLiquidSky"
  45. #pragma link "dxSkinLondonLiquidSky"
  46. #pragma link "dxSkinMcSkin"
  47. #pragma link "dxSkinMoneyTwins"
  48. #pragma link "dxSkinOffice2007Black"
  49. #pragma link "dxSkinOffice2007Blue"
  50. #pragma link "dxSkinOffice2007Green"
  51. #pragma link "dxSkinOffice2007Pink"
  52. #pragma link "dxSkinOffice2007Silver"
  53. #pragma link "dxSkinOffice2010Black"
  54. #pragma link "dxSkinOffice2010Blue"
  55. #pragma link "dxSkinOffice2010Silver"
  56. #pragma link "dxSkinsCore"
  57. #pragma link "dxSkinscxPCPainter"
  58. #pragma link "dxSkinSeven"
  59. #pragma link "dxSkinSharp"
  60. #pragma link "dxSkinSilver"
  61. #pragma link "dxSkinStardust"
  62. #pragma link "cxClasses"
  63. #pragma link "cxCustomData"
  64. #pragma link "cxData"
  65. #pragma link "cxDataStorage"
  66. #pragma link "cxFilter"
  67. #pragma link "cxGrid"
  68. #pragma link "cxGridCustomTableView"
  69. #pragma link "cxGridCustomView"
  70. #pragma link "cxGridLevel"
  71. #pragma link "cxGridTableView"
  72. #pragma link "cxStyles"
  73. #pragma link "cxTextEdit"
  74. #pragma link "cxGridCardView"
  75. #pragma link "cxGridCustomLayoutView"
  76. #pragma link "cxCheckBox"
  77. #pragma link "FRAME_VmsStateF"
  78. #pragma link "cxCalc"
  79. #pragma link "cxGridBandedTableView"
  80. #pragma link "FRAME_FacilityStatusListF"
  81. #pragma resource "*.dfm"
  82. TVMS0000M *VMS0000M = NULL;
  83. //---------------------------------------------------------------------------
  84. __fastcall TVMS0000M::TVMS0000M(TComponent* Owner)
  85. : TForm(Owner)
  86. {
  87. ITSSkin_Load(this);
  88. LoadLocalSkin();
  89. //if (FormStyle != fsMDIChild)
  90. CMM_LoadForm(g_sFormsDir, this);
  91. PgVmsMonitoring->Properties->ActivePage = TabVmsString;
  92. //FrmVmsOprMain->dxStatusBar->Panels->Items[isbGisPos]->Visible = true;
  93. VMS00MAP = new TVMS00MAP(PnlMapBack, (TForm*)this);
  94. PnlInfoLeft->Width = VmsManager->FMaxWidth + 12/*폼여백*/ + 34/*기타여백*/;
  95. FListForm = new TList;
  96. FSelVmsObj= NULL;
  97. FSelForm = NULL;
  98. FReady = false;
  99. FMonitoringType = enMonitoringPhase;
  100. }
  101. //---------------------------------------------------------------------------
  102. void __fastcall TVMS0000M::CommClose()
  103. {
  104. try
  105. {
  106. if (FrmVmsOprMain->dxStatusBar->Panels->Items[isbGisPos]->Visible)
  107. FrmVmsOprMain->dxStatusBar->Panels->Items[isbGisPos]->Visible = false;
  108. SAFE_DELETE(VMS00MAP);
  109. ClearFormList();
  110. SAFE_DELETE(FListForm);
  111. //if (FormStyle != fsMDIChild)
  112. CMM_SaveForm(g_sFormsDir, this);
  113. }
  114. catch(...)
  115. {
  116. }
  117. }
  118. //---------------------------------------------------------------------------
  119. void __fastcall TVMS0000M::ClearFormList()
  120. {
  121. try
  122. {
  123. LockWindowUpdate(Handle);
  124. for(int ii = 0; ii < FListForm->Count; ii++)
  125. {
  126. TVMSBACKM *pForm = (TVMSBACKM*)FListForm->Items[ii];
  127. pForm->Hide();
  128. SAFE_DELETE(pForm);
  129. }
  130. FListForm->Clear();
  131. }
  132. __finally
  133. {
  134. LockWindowUpdate(0);
  135. }
  136. }
  137. //---------------------------------------------------------------------------
  138. void __fastcall TVMS0000M::FormCreate(TObject *Sender)
  139. {
  140. if (VMS00MAP)
  141. {
  142. VMS00MAP->Parent = PnlMapBack;
  143. VMS00MAP->Show();
  144. }
  145. CreateVmsMsgForm(VmsManager->FMaxWidth);
  146. FRAMEFacilityStatusList1->UpdateList();
  147. }
  148. //---------------------------------------------------------------------------
  149. void __fastcall TVMS0000M::ChkWidthClick(TObject *Sender)
  150. {
  151. int nStringW(0), nStringH(0), nFigureW(0), nFigureH(0);
  152. int nWidth, nPnlWidth;
  153. if (ChkWidth->Checked)
  154. {
  155. nWidth = VmsManager->FMinWidth;
  156. }
  157. else
  158. {
  159. nWidth = VmsManager->FMaxWidth;
  160. }
  161. nPnlWidth = nWidth;
  162. try
  163. {
  164. LockWindowUpdate(Handle);
  165. for(int ii = 0; ii < FListForm->Count; ii++)
  166. {
  167. TVMSBACKM *pForm = (TVMSBACKM*)FListForm->Items[ii];
  168. pForm->SetFormSize(nWidth);
  169. nPnlWidth = pForm->FViewWidth;
  170. }
  171. }
  172. __finally
  173. {
  174. PnlInfoLeft->Width = nPnlWidth + 12/*폼여백*/ + 14/*기타여백*/;
  175. LockWindowUpdate(0);
  176. }
  177. }
  178. //---------------------------------------------------------------------------
  179. void __fastcall TVMS0000M::CreateVmsMsgForm(int AWidth)
  180. {
  181. FReady = false;
  182. ClearFormList();
  183. TVMSBACKM *pStringForm = NULL;
  184. TVMSBACKM *pFigureForm = NULL;
  185. try
  186. {
  187. LockWindowUpdate(Handle);
  188. TVMSFORM0 *pForm = NULL;
  189. VmsManager->FLists.Lock();
  190. FOR_STL(TVmsCtlr*, pObj, VmsManager->FLists)
  191. {
  192. if (pObj->DEL_YN == "Y") continue;
  193. pForm = NULL;
  194. if (pObj->VMS_USAG_TYPE_CD == "VUTN") //문자식
  195. {
  196. if (!pStringForm)
  197. {
  198. pStringForm = new TVMSBACKM(this, Handle, TabVmsString->Caption.Trim(), 1);
  199. pStringForm->FMonitoringType = FMonitoringType;
  200. pStringForm->Parent = TabVmsString;
  201. pStringForm->Show();
  202. FListForm->Add(pStringForm);
  203. }
  204. if (pStringForm) pStringForm->AddVmsForm(String(pObj->VMS_CTLR_NMBR));
  205. }
  206. else
  207. if (pObj->VMS_USAG_TYPE_CD == "VUTP") //도형식
  208. {
  209. if (!pFigureForm)
  210. {
  211. pFigureForm = new TVMSBACKM(this, Handle, TabVmsFigure->Caption.Trim(), 1);
  212. pFigureForm->FMonitoringType = FMonitoringType;
  213. pFigureForm->Parent = TabVmsFigure;
  214. pFigureForm->Show();
  215. FListForm->Add(pFigureForm);
  216. }
  217. if (pFigureForm) pFigureForm->AddVmsForm(String(pObj->VMS_CTLR_NMBR));
  218. }
  219. }
  220. }
  221. __finally
  222. {
  223. VmsManager->FLists.UnLock();
  224. PnlInfoLeft->Width = AWidth + 12/*폼여백*/ + 34/*기타여백*/;
  225. LockWindowUpdate(0);
  226. ChkWidthClick((TObject*)ChkWidth);
  227. }
  228. FReady = true;
  229. }
  230. //---------------------------------------------------------------------------
  231. void __fastcall TVMS0000M::FormShow(TObject *Sender)
  232. {
  233. Refresh();
  234. Application->ProcessMessages();
  235. TmrShow->Enabled = true;
  236. }
  237. //---------------------------------------------------------------------------
  238. void __fastcall TVMS0000M::FormActivate(TObject *Sender)
  239. {
  240. ActivateForm(true);
  241. }
  242. //---------------------------------------------------------------------------
  243. void __fastcall TVMS0000M::FormDeactivate(TObject *Sender)
  244. {
  245. ActivateForm(false);
  246. }
  247. //---------------------------------------------------------------------------
  248. void __fastcall TVMS0000M::LoadLocalSkin()
  249. {
  250. }
  251. //---------------------------------------------------------------------------
  252. void __fastcall TVMS0000M::TmrShowTimer(TObject *Sender)
  253. {
  254. TmrShow->Enabled = false;
  255. }
  256. //---------------------------------------------------------------------------
  257. void __fastcall TVMS0000M::FormClose(TObject *Sender, TCloseAction &Action)
  258. {
  259. try {
  260. CommClose();
  261. VMS0000M = NULL;
  262. Action = caFree;
  263. } catch(...) {}
  264. }
  265. //---------------------------------------------------------------------------
  266. void __fastcall TVMS0000M::OnMainFormMessage(TMessage &Msg)
  267. {
  268. }
  269. //---------------------------------------------------------------------------
  270. void __fastcall TVMS0000M::OnVmsStateRefreshMessage(TMessage &Msg)
  271. {
  272. FRAMEFacilityStatusList1->RefreshList();
  273. for(int ii = 0; ii < FListForm->Count; ii++)
  274. {
  275. TVMSBACKM *pForm = (TVMSBACKM*)FListForm->Items[ii];
  276. pForm->RefreshVmsStatus();
  277. }
  278. FRAMEVmsState1->SelVmsObj = FSelVmsObj;
  279. if (VMS00MAP) VMS00MAP->UpdateFacilityStatus();
  280. }
  281. //---------------------------------------------------------------------------
  282. void __fastcall TVMS0000M::OnVmsFormRefreshMessage(TMessage &Msg)
  283. {
  284. for(int ii = 0; ii < FListForm->Count; ii++)
  285. {
  286. TVMSBACKM *pForm = (TVMSBACKM*)FListForm->Items[ii];
  287. pForm->RefreshVmsMessage();
  288. }
  289. }
  290. //---------------------------------------------------------------------------
  291. void __fastcall TVMS0000M::OnVmsIncidentRefreshMessage(TMessage &Msg)
  292. {
  293. if (VMS00MAP) VMS00MAP->UpdateIncidentStatus();
  294. }
  295. //---------------------------------------------------------------------------
  296. void __fastcall TVMS0000M::OnVmsSelectMessage(TMessage &Msg)
  297. {
  298. try {
  299. FSelVmsObj = (TVmsCtlr*)Msg.WParam;
  300. FRAMEVmsState1->SelVmsObj = FSelVmsObj;
  301. if (!FSelVmsObj) return;
  302. TVMSFORM0 *pSelForm = (TVMSFORM0*)Msg.LParam;
  303. if (pSelForm == FSelForm) return;
  304. if (FSelForm) FSelForm->SelectForm(false);
  305. FSelForm = pSelForm;
  306. if (FSelForm) FSelForm->SelectForm(true);
  307. //VMS정보제공구간 소통정보 업데이트
  308. LoadVmsIfscInfo(String(FSelVmsObj->VMS_CTLR_NMBR));
  309. } catch(...) {};
  310. }
  311. //---------------------------------------------------------------------------
  312. void __fastcall TVMS0000M::OnVmsSelectDblClickMessage(TMessage &Msg)
  313. {
  314. try {
  315. FSelVmsObj = (TVmsCtlr*)Msg.WParam;
  316. FRAMEVmsState1->SelVmsObj = FSelVmsObj;
  317. if (!FSelVmsObj) return;
  318. TVMSFORM0 *pSelForm = (TVMSFORM0*)Msg.LParam;
  319. if (FSelForm) FSelForm->SelectForm(false);
  320. FSelForm = pSelForm;
  321. if (FSelForm) FSelForm->SelectForm(true);
  322. //VMS정보제공구간 소통정보 업데이트
  323. LoadVmsIfscInfo(String(FSelVmsObj->VMS_CTLR_NMBR));
  324. if (VMS00MAP) VMS00MAP->SelectObjectByPos(FSelVmsObj->X_CRDN, FSelVmsObj->Y_CRDN, true);
  325. } catch(...) {};
  326. }
  327. //---------------------------------------------------------------------------
  328. void __fastcall TVMS0000M::FRAMEFacilityStatusList1TvListCellDblClick(TcxCustomGridTableView *Sender,
  329. TcxGridTableDataCellViewInfo *ACellViewInfo, TMouseButton AButton,
  330. TShiftState AShift, bool &AHandled)
  331. {
  332. if (!ACellViewInfo) return;
  333. try {
  334. TcxDataController *pGDC = FRAMEFacilityStatusList1->TvList->DataController;
  335. int nRow = pGDC->FocusedRecordIndex;
  336. if (nRow < 0) return;
  337. int nMemIdx = pGDC->Values[nRow][FRAMEFacilityStatusList1->Column99->Index];
  338. TVmsCtlr *pObj = (TVmsCtlr*)nMemIdx;
  339. if (!pObj) return;
  340. FSelVmsObj = pObj;
  341. FRAMEVmsState1->SelVmsObj = FSelVmsObj;
  342. LoadVmsIfscInfo(String(FSelVmsObj->VMS_CTLR_NMBR));
  343. if (VMS00MAP) VMS00MAP->SelectObjectByPos(pObj->X_CRDN, pObj->Y_CRDN, true);
  344. } catch(...) {}
  345. }
  346. //---------------------------------------------------------------------------
  347. void __fastcall TVMS0000M::LoadVmsIfscInfo(String AVmsNmbr)
  348. {
  349. CMM_ClearGridTableView(TvList);
  350. CMM_ClearGridTableView(TvIfsc);
  351. TcxDataController *pGDC = TvList->DataController;
  352. TVmsCtlr *pObj = VmsManager->FLists.Find(AVmsNmbr);
  353. if (!pObj) return;
  354. try
  355. {
  356. int nRow;
  357. TvList->BeginUpdate();
  358. pGDC->BeginUpdate();
  359. FOR_STL(TVmsIfscRltn*, pIfscRltn, pObj->FIfscRltn)
  360. {
  361. TVmsIfsc *pVmsIfsc = VmsIfscManager->FLists.Find(pIfscRltn->VMS_IFSC_ID);
  362. if (!pVmsIfsc) continue;
  363. nRow = pGDC->AppendRecord();
  364. String sDsplPrrt = String(pIfscRltn->DSPL_PRRT);
  365. pGDC->Values[nRow][Column01->Index] = sDsplPrrt;
  366. pGDC->Values[nRow][Column02->Index] = String(pIfscRltn->VMS_IFSC_ID);
  367. pGDC->Values[nRow][Column03->Index] = pVmsIfsc->VMS_IFSC_NM;
  368. pGDC->Values[nRow][Column04->Index] = pVmsIfsc->DSPL_STRT_NODE_NM + " -> " + pVmsIfsc->DSPL_END_NODE_NM;
  369. pGDC->Values[nRow][Column05->Index] = ITSUtil_FormatStr(pVmsIfsc->RGST_DT, STR_DATETIME);
  370. String sVmsGrad = pVmsIfsc->CMTR_GRAD_CD;
  371. if (sVmsGrad == "1") sVmsGrad = "원활";
  372. else if (sVmsGrad == "2") sVmsGrad = "지체";
  373. else if (sVmsGrad == "3") sVmsGrad = "정체";
  374. else sVmsGrad = "정보없음";
  375. pGDC->Values[nRow][Column06->Index] = sVmsGrad;
  376. pGDC->Values[nRow][Column07->Index] = String(pVmsIfsc->SPED);
  377. pGDC->Values[nRow][Column08->Index] = String(pVmsIfsc->TRVL_HH);
  378. pGDC->Values[nRow][Column99->Index] = (int)pVmsIfsc;
  379. }
  380. }
  381. __finally
  382. {
  383. pGDC->EndUpdate();
  384. TvList->EndUpdate();
  385. }
  386. }
  387. //---------------------------------------------------------------------------
  388. void __fastcall TVMS0000M::LoadIfscInfo()
  389. {
  390. CMM_ClearGridTableView(TvIfsc);
  391. TcxDataController *pGDC = TvIfsc->DataController;
  392. int nSelIdx = CMM_GetRecordIndex(TvList);
  393. if (nSelIdx < 0) return;
  394. pGDC = TvList->DataController;
  395. int nMemPtr = pGDC->Values[nSelIdx][Column99->Index];
  396. TVmsIfsc *pVmsIfsc = (TVmsIfsc*)nMemPtr;
  397. if (!pVmsIfsc) return;
  398. pGDC = TvIfsc->DataController;
  399. try
  400. {
  401. int nRow;
  402. TvIfsc->BeginUpdate();
  403. pGDC->BeginUpdate();
  404. FOR_STL(TVmsLinkIfsc*, pLinkIfsc, pVmsIfsc->FLists)
  405. {
  406. nRow = pGDC->AppendRecord();
  407. TIfsc *pIfsc = IfscManager->FLists.Find(pLinkIfsc->IFSC_ID);
  408. if (!pIfsc) continue;
  409. pGDC->Values[nRow][cxGridColumn1->Index] = String(pLinkIfsc->ORD);
  410. pGDC->Values[nRow][cxGridColumn2->Index] = pIfsc->IFSC_ID;
  411. pGDC->Values[nRow][cxGridColumn3->Index] = pIfsc->IFSC_NM;
  412. pGDC->Values[nRow][cxGridColumn4->Index] = pIfsc->STRT_NM + " -> " + pIfsc->END_NM;
  413. pGDC->Values[nRow][cxGridColumn5->Index] = ITSUtil_FormatStr(pIfsc->PRCN_DT, STR_DATETIME);
  414. String sGrad = pIfsc->CMTR_GRAD_CD;
  415. if (sGrad == "1") sGrad = "원활";
  416. else if (sGrad == "2") sGrad = "지체";
  417. else if (sGrad == "3") sGrad = "정체";
  418. else sGrad = "정보없음";
  419. pGDC->Values[nRow][cxGridColumn6->Index] = sGrad;
  420. pGDC->Values[nRow][cxGridColumn7->Index] = String(pIfsc->SPED);
  421. pGDC->Values[nRow][cxGridColumn8->Index] = String(pIfsc->TRVL_HH);
  422. pGDC->Values[nRow][cxGridColumn9->Index] = String(pIfsc->SECT_LNGT);
  423. }
  424. }
  425. __finally
  426. {
  427. pGDC->EndUpdate();
  428. TvIfsc->EndUpdate();
  429. }
  430. }
  431. //---------------------------------------------------------------------------
  432. void __fastcall TVMS0000M::TvListFocusedRecordChanged(TcxCustomGridTableView *Sender,
  433. TcxCustomGridRecord *APrevFocusedRecord, TcxCustomGridRecord *AFocusedRecord,
  434. bool ANewItemRecordFocusingChanged)
  435. {
  436. if (!AFocusedRecord) return;
  437. LoadIfscInfo();
  438. }
  439. //---------------------------------------------------------------------------
  440. void __fastcall TVMS0000M::cxGridColumn6CustomDrawCell(TcxCustomGridTableView *Sender,
  441. TcxCanvas *ACanvas, TcxGridTableDataCellViewInfo *AViewInfo,
  442. bool &ADone)
  443. {
  444. try
  445. {
  446. TColor tColor = ACanvas->Brush->Color;
  447. String sGrade = AViewInfo->GridRecord->DisplayTexts[AViewInfo->Item->Index];
  448. if (sGrade.Pos("원활")) tColor = clLime;
  449. else if (sGrade.Pos("지체")) tColor = clYellow;
  450. else if (sGrade.Pos("정체")) tColor = clRed;
  451. else tColor = clGray;
  452. ACanvas->SetBrushColor(tColor);
  453. }
  454. catch(Exception &e)
  455. {
  456. }
  457. }
  458. //---------------------------------------------------------------------------
  459. void __fastcall TVMS0000M::MoveGisFacility(String AType, String AId)
  460. {
  461. }
  462. //---------------------------------------------------------------------------
  463. void __fastcall TVMS0000M::ScrollBoxMouseWheel(TObject *Sender, TShiftState Shift,
  464. int WheelDelta, TPoint &MousePos, bool &Handled)
  465. {
  466. TScrollBox *pScrollBox = (TScrollBox*)Sender;
  467. pScrollBox->VertScrollBar->Position -= WheelDelta;
  468. }
  469. //---------------------------------------------------------------------------
  470. void __fastcall TVMS0000M::ActivateForm(bool AActivate)
  471. {
  472. try
  473. {
  474. int nTabIndex = PgVmsMonitoring->ActivePageIndex;
  475. for(int ii = 0; ii < FListForm->Count; ii++)
  476. {
  477. TVMSBACKM *pForm = (TVMSBACKM*)FListForm->Items[ii];
  478. if (AActivate)
  479. {
  480. if (nTabIndex == ii) pForm->Play = true;
  481. else pForm->Play = false;
  482. }
  483. else
  484. pForm->Play = false;
  485. }
  486. }
  487. catch(Exception &e)
  488. {
  489. }
  490. }
  491. //---------------------------------------------------------------------------
  492. void __fastcall TVMS0000M::PgVmsMonitoringPageChanging(TObject *Sender, TcxTabSheet *NewPage,
  493. bool &AllowChange)
  494. {
  495. if (!FReady) return;
  496. try
  497. {
  498. int nTabIndex = NewPage->TabIndex;
  499. for(int ii = 0; ii < FListForm->Count; ii++)
  500. {
  501. TVMSBACKM *pForm = (TVMSBACKM*)FListForm->Items[ii];
  502. if (nTabIndex == ii) pForm->Play = true;
  503. else pForm->Play = false;
  504. }
  505. }
  506. catch(Exception &e)
  507. {
  508. }
  509. }
  510. //---------------------------------------------------------------------------
  511. void __fastcall TVMS0000M::TvIfscCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo,
  512. TMouseButton AButton, TShiftState AShift,
  513. bool &AHandled)
  514. {
  515. if (!ACellViewInfo) return;
  516. TcxGridDataController *pDc = TvIfsc->DataController;
  517. int nRow = pDc->FocusedRecordIndex;
  518. if( nRow <= -1 )
  519. return;
  520. String sIfscIf = VarToStr(pDc->Values[nRow][cxGridColumn2->Index]);
  521. if (VMS00MAP) VMS00MAP->SelectLinkById(2, sIfscIf, true);
  522. }
  523. //---------------------------------------------------------------------------