intersection.esp 80.9 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674
<!DOCTYPE html>
<html>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link href="../../../css/frame.css" rel="stylesheet" />
    <link href="../../../scripts/easyui/themes/default/easyui.css" rel="stylesheet" />
    <link href="../../../scripts/easyui/themes/icon.css" rel="stylesheet" />
    <link rel="stylesheet" href="../../../css/timeSpans.css">
    <style type="text/css">
        body,
        .panel-body {
            background-color: #F3F5F6;
        }

        .settingGroups {
            width: 100%;
        }

        .settingGroup {
            background-color: white;
            margin-top: 5px;
            border: 1px solid #99A1AD;
        }

        .settingGroup .groupTitle {
            height: 30px;
            line-height: 30px;
            background-color: #DBDFE5;

            text-align: center;
            font-weight: bold;
        }

        .settingItem {
            /*height: 30px;*/
            line-height: 21px;
        }

        .itemTitle {
            display: block;
            padding: 8px;
            background-color: #DBDFE5;
            border-bottom: 1px solid #99A1AD;
            border-top: 1px solid #99A1AD;
        }

        .itemTitle:hover {
            background-color: #BD0000;
        }

        .itemContent {
            display: block;
            padding: 4px;
            display: none;
        }

        .itemContent table {
            border: 0;
            border-collapse: collapse;
            width: 100%;
        }

        .itemContent table td {
            padding: 4px;
        }

        .itemContent table td.title,
        td.title {
            width: 240px;
            text-align: left;
        }

        .itemContent table td.content,
        td.content {
            padding: 3px;
            position: relative;
        }

        .title1 {
            width: 78px;
        }

        .content1 {
            margin-left: 13px;
        }

        .settingElement1 {
            width: 87px;
            height: 21px;
            border: 1px solid #99A1AD;
        }

        .itemContent table td.btn {
            padding: 3px;
        }

        .settingElement {
            width: 180px;
            height: 21px;
            border: 1px solid #99A1AD;
        }

        select.settingElement {
            height: 23px;
        }

        a.settingBtn {
            display: block;
            height: 23px;
            width: 98px;
            border: 0;
            background: url(../../../images/btn_bg.png) no-repeat 0 0;
            float: right;
            margin-right: 0;
            text-align: center;
            cursor: pointer;
        }

        .bottomArea .settingBtn {
            position: fixed;
            left: 5px;
            bottom: 5px;
        }

        a.settingBtn:active {
            background-position: 0 -23px;
        }

        .subTitle {
            width: 120px;
        }

        /*红灯设置*/

        table.redLight tr td.title {
            width: 300px;
        }

        .redLightSource1,
        .redLightSource2,
        .redLightSource3 {
            display: none;
        }

        .ocxOperateContainer {
            width: 100%;
            height: 100%;
            border-collapse: collapse;
        }

        /*抓拍解发条件*/

        .option_position {
            display: none;
        }

        /*----主页面布局------*/

        .mainDiv {
            background-color: #f3f5f6;
            overflow: hidden;
            width: 1256px;
        }

        #intersectionInfo {
            width: 100%;
            height: 100%;
        }

        .leftArea {
            width: 566px;
            padding: 0 4px;
            float: left;
            overflow: hidden;
        }

        .rightArea {
            position: relative;
            width: 670px;
            height: 1062px;
            max-height: 100%;
            overflow: hidden;
            float: right;
        }

        .rightArea .rightUpper {
            width: 100%;
            height: 600px;
        }

        .rightArea .rightLower {
            width: 650px;
            height: 462px;
            position: absolute;
            bottom: 0;
            right: 0;
            padding: 8px;
            border: 1px solid #7C8895;
        }

        .bottomArea {
            height: 42px;
            padding: 10px;
            clear: both;
        }
    </style>
</head>

<body>
    <div class="mainDiv">
        <form id="intersectionInfo">
            <div class="leftArea">
                <ul class="settingGroups">
                    <li class="settingGroup">
                        <div class="groupTitle">
                            违法监测
                        </div>
                        <ul class="settingItem">
                            <li class="itemTitle">
                                <input class="checkboxAlign showTrigger" id="redLight" type="checkbox" />闯红灯
                            </li>
                            <li class="itemContent" style="display: block;">
                                <table>
                                    <tr>
                                        <td class="title">开启时间段</td>
                                        <td class="content" style="position: relative">
                                            <input type="text" class="settingElement timeSpans" id="221" name="221" readonly="true" />
                                            <div class="timeSelector">
                                                <ul class='timeSpanContainer'>
                                                </ul>
                                                <a class="timeSelectorAdd settingBtn">添加时间段</a>
                                                <a class="timeSelectorSave settingBtn">保存</a>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="title">抓拍类型</td>
                                        <td class="content">
                                            <input class="checkboxAlign relativeToTrigger" type="checkbox" name="222" id="222" />左转闯红灯
                                            <input class="checkboxAlign relativeToTrigger" type="checkbox" name="223" id="223" />直行闯红灯
                                            <input class="checkboxAlign relativeToTrigger" type="checkbox" name="224" id="224" />右转闯红灯
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="title">
                                            第2张过停止线多少个车身(-0.5-2):
                                        </td>
                                        <td class="content">
                                            <input type="text" class="settingElement" id="225" name="225" value="" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2" class="">
                                            <input type="checkbox" class="checkboxAlign" id="227" name="227" />第3张限制线之前前抓
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2" class="">
                                            <input type="checkbox" class="checkboxAlign" id="229" name="229" />输出4张全景 &nbsp;&nbsp;第4张延时间隔(1-1000毫秒)
                                            <input type="text" id="230" name="230" class="settingElement1 validatebox" data-validate="type:'number',min:1,max:1000" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2">
                                            <input type="checkbox" class="checkboxAlign" id="226" name="226" />左转闯红灯需左转红灯和直行红灯同时亮起 &nbsp;&nbsp;
                                            <input type="checkbox" class="checkboxAlign" id="228" name="228" />过滤压线车辆
                                        </td>
                                    </tr>
                                </table>
                            </li>
                        </ul>
                        <ul class="settingItem">
                            <li class="itemTitle">
                                <input class="checkboxAlign showTrigger" type="checkbox" id="illegalDriv" />不按导向行驶
                            </li>
                            <li class="itemContent">
                                <table>
                                    <tr>
                                        <td class="title">开启时间段</td>
                                        <td class="content">
                                            <input class="settingElement timeSpans" readonly="true" id="231" name="231" type="text" />
                                            <div class="timeSelector">
                                                <ul class='timeSpanContainer'>
                                                </ul>
                                                <a class="timeSelectorAdd settingBtn">添加时间段</a>
                                                <a class="timeSelectorSave settingBtn">保存</a>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2">
                                            抓拍类型:
                                            <input type="checkbox" class="checkboxAlign relativeToTrigger" name="232" id="232" />非法左转
                                            <input type="checkbox" class="checkboxAlign relativeToTrigger" name="233" id="233" />非法直行
                                            <input type="checkbox" class="checkboxAlign relativeToTrigger" name="234" id="234" />非法右转
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2">
                                            <input type="checkbox" class="checkboxAlign" name="239" id="239" />过滤压线车辆
                                        </td>
                                    </tr>
                                </table>
                            </li>
                        </ul>
                        <ul class="settingItem">
                            <li class="itemTitle">
                                <input class="checkboxAlign showTrigger" name="251" id="251" type="checkbox" />压线
                            </li>
                            <li class="itemContent">
                                <table>
                                    <tr>
                                        <td class="title">开启时间段</td>
                                        <td class="content">
                                            <input class="settingElement timeSpans" readonly="true" id="250" name="250" type="text" />
                                            <div class="timeSelector">
                                                <ul class='timeSpanContainer'>
                                                </ul>
                                                <a class="timeSelectorAdd settingBtn">添加时间段</a>
                                                <a class="timeSelectorSave settingBtn">保存</a>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="title">
                                            灵敏度(1-100):
                                        </td>
                                        <td class="content">
                                            <input class="settingElement" id="252" name="252" type="text" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2">
                                            <input type="checkbox" class="checkboxAlign" id="253" name="253" />取图规则与闯红灯相同
                                        </td>
                                    </tr>
                                </table>
                            </li>
                        </ul>
                        <ul class="settingItem">
                            <li class="itemTitle">
                                <input class="checkboxAlign showTrigger" id="260" name="260" type="checkbox" />跨线变道
                            </li>
                            <li class="itemContent">
                                <table>
                                    <tr>
                                        <td class="title">
                                            开启时间段:
                                        </td>
                                        <td class="content">
                                            <input class="settingElement timeSpans" readonly="true" id="259" name="259" type="text" />
                                            <div class="timeSelector">
                                                <ul class='timeSpanContainer'>
                                                </ul>
                                                <a class="timeSelectorAdd settingBtn">添加时间段</a>
                                                <a class="timeSelectorSave settingBtn">保存</a>
                                            </div>
                                        </td>
                                    </tr>
                                </table>
                            </li>
                        </ul>
                        <ul class="settingItem">
                            <li class="itemTitle">
                                <input class="checkboxAlign showTrigger" type="checkbox" name="297" id="297" />禁止左转
                            </li>
                            <li class="itemContent">
                                <table>
                                    <tr>
                                        <td class="title">开启时间段</td>
                                        <td class="content">
                                            <input class="settingElement timeSpans" readonly="true" name="298" id="298" type="text" />
                                            <div class="timeSelector">
                                                <ul class='timeSpanContainer'>
                                                </ul>
                                                <a class="timeSelectorAdd settingBtn">添加时间段</a>
                                                <a class="timeSelectorSave settingBtn">保存</a>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="title">检测车辆类型:</td>
                                        <td class="content">
                                            <input type="checkbox" name="304" id="304" class="checkboxAlign" /> 黄牌
                                            <input type="checkbox" name="305" id="305" class="checkboxAlign" /> 白牌
                                            <input type="checkbox" name="306" id="306" class="checkboxAlign" /> 黑牌
                                            <input type="checkbox" name="307" id="307" class="checkboxAlign" /> 蓝牌
                                        </td>
                                    </tr>
                                </table>
                            </li>
                        </ul>
                        <ul class="settingItem">
                            <li class="itemTitle">
                                <input class="checkboxAlign showTrigger" type="checkbox" name="310" id="310" />禁止右转
                            </li>
                            <li class="itemContent">
                                <table>
                                    <tr>
                                        <td class="title">开启时间段</td>
                                        <td class="content">
                                            <input class="settingElement timeSpans" readonly="true" name="311" id="311" type="text" />
                                            <div class="timeSelector">
                                                <ul class='timeSpanContainer'>
                                                </ul>
                                                <a class="timeSelectorAdd settingBtn">添加时间段</a>
                                                <a class="timeSelectorSave settingBtn">保存</a>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="title">检测车辆类型:</td>
                                        <td class="content">
                                            <input type="checkbox" name="317" id="317" class="checkboxAlign" /> 黄牌
                                            <input type="checkbox" name="318" id="318" class="checkboxAlign" /> 白牌
                                            <input type="checkbox" name="319" id="319" class="checkboxAlign" /> 黑牌
                                            <input type="checkbox" name="320" id="320" class="checkboxAlign" /> 蓝牌
                                        </td>
                                    </tr>
                                </table>
                            </li>
                        </ul>
                        <ul class="settingItem">
                            <li class="itemTitle">
                                <input class="checkboxAlign showTrigger" type="checkbox" name="330" id="330" />占用公交车道
                            </li>
                            <li class="itemContent">
                                <table>
                                    <tr>
                                        <td class="title">开启时间段</td>
                                        <td class="content">
                                            <input class="settingElement timeSpans" readonly="true" name="331" id="331" type="text" />
                                            <div class="timeSelector">
                                                <ul class='timeSpanContainer'>
                                                </ul>
                                                <a class="timeSelectorAdd settingBtn">添加时间段</a>
                                                <a class="timeSelectorSave settingBtn">保存</a>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2" class="title">
                                            <input class="checkboxAlign" type="checkbox" name="330001" id="330001" /> 是否检测左转
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2" class="title">
                                            <input class="checkboxAlign" type="checkbox" name="330002" id="330002" /> 是否检测右转
                                        </td>
                                    </tr>
                                </table>
                            </li>
                        </ul>
                        <ul class="settingItem">
                            <li class="itemTitle">
                                <input class="checkboxAlign showTrigger" type="checkbox" name="335" id="335" />占用非机动车道
                            </li>
                            <li class="itemContent">
                                <table>
                                    <tr>
                                        <td class="title">开启时间段</td>
                                        <td class="content">
                                            <input class="settingElement timeSpans" readonly="true" name="336" id="336" type="text" />
                                            <div class="timeSelector">
                                                <ul class='timeSpanContainer'>
                                                </ul>
                                                <a class="timeSelectorAdd settingBtn">添加时间段</a>
                                                <a class="timeSelectorSave settingBtn">保存</a>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="title">置信度(0-100):</td>
                                        <td class="content">
                                            <input type="text" class="settingElement" name="341" id="341" />
                                        </td>
                                    </tr>
                                </table>
                            </li>
                        </ul>
                        <ul class="settingItem">
                            <li class="itemTitle">
                                <input class="checkboxAlign showTrigger" type="checkbox" name="342" id="342" />占用紧急车道
                            </li>
                            <li class="itemContent">
                                <table>
                                    <tr>
                                        <td class="title">开启时间段</td>
                                        <td class="content">
                                            <input class="settingElement timeSpans" readonly="true" name="343" id="343" type="text" />
                                            <div class="timeSelector">
                                                <ul class='timeSpanContainer'>
                                                </ul>
                                                <a class="timeSelectorAdd settingBtn">添加时间段</a>
                                                <a class="timeSelectorSave settingBtn">保存</a>
                                            </div>
                                        </td>
                                    </tr>
                                </table>
                            </li>
                        </ul>
                        <ul class="settingItem">
                            <li class="itemTitle">
                                <input class="checkboxAlign showTrigger" type="checkbox" name="344" id="344" />非法掉头
                            </li>
                            <li class="itemContent">
                                <table>
                                    <tr>
                                        <td class="title">开启时间段</td>
                                        <td class="content">
                                            <input class="settingElement timeSpans" readonly="true" name="345" id="345" type="text" />
                                            <div class="timeSelector">
                                                <ul class='timeSpanContainer'>
                                                </ul>
                                                <a class="timeSelectorAdd settingBtn">添加时间段</a>
                                                <a class="timeSelectorSave settingBtn">保存</a>
                                            </div>
                                        </td>
                                    </tr>
                                </table>
                            </li>
                        </ul>
                        <ul class="settingItem">
                            <li class="itemTitle">
                                <input class="checkboxAlign showTrigger" type="checkbox" name="400001" id="400001" />左转转小弯
                            </li>
                        </ul>
                        <ul class="settingItem">
                            <li class="itemTitle">
                                <input class="checkboxAlign showTrigger" type="checkbox" name="400003" id="400003" />左转不让直行
                            </li>
                            <li class="itemContent">
                                <table>
                                    <tr>
                                        <td class="title">灵敏度</td>
                                        <td>
                                            <input type="text" class="settingElement" name="400004" id="400004">
                                        </td>
                                    </tr>
                                </table>
                            </li>
                        </ul>
                        <ul class="settingItem">
                            <li class="itemTitle">
                                <input class="checkboxAlign showTrigger" type="checkbox" name="350" id="350" />大货车禁行
                            </li>
                            <li class="itemContent">
                                <table>
                                    <tr>
                                        <td class="title">开启时间段</td>
                                        <td class="content">
                                            <input class="settingElement timeSpans" readonly="true" name="351" id="351" type="text" />
                                            <div class="timeSelector">
                                                <ul class='timeSpanContainer'>
                                                </ul>
                                                <a class="timeSelectorAdd settingBtn">添加时间段</a>
                                                <a class="timeSelectorSave settingBtn">保存</a>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2">
                                            <input type="checkbox" class="checkboxAlign" id="352" name="352" />黄牌即认为是大货车
                                        </td>
                                    </tr>
                                </table>
                            </li>
                        </ul>
                        <ul class="settingItem">
                            <li class="itemTitle">
                                <input class="checkboxAlign showTrigger needReboot" type="checkbox" name="262" id="262" />
                                <span class="needRebootHint" title="需重启生效">逆行</span>
                            </li>
                            <li class="itemContent">
                                <table>
                                    <tr>
                                        <td class="title">开启时间段</td>
                                        <td class="content">
                                            <input class="settingElement timeSpans" readonly="true" name="261" id="261" type="text" />
                                            <div class="timeSelector">
                                                <ul class='timeSpanContainer'>
                                                </ul>
                                                <a class="timeSelectorAdd settingBtn">添加时间段</a>
                                                <a class="timeSelectorSave settingBtn">保存</a>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="title">
                                            抓拍位移(1-30米):
                                            <!--抓拍延时(100-10000毫秒): <input type="text" class="settingElement1" name="265" id="265"/>-->
                                        </td>
                                        <td class="content">
                                            <input type="text" class="settingElement1" name="264" id="264" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2">
                                            <input type="checkbox" class="checkboxAlign" name="263" id="263" /> 输出为限时单行
                                        </td>
                                    </tr>
                                </table>
                            </li>
                        </ul>
                        <ul class="settingItem">
                            <li class="itemTitle">
                                <input class="checkboxAlign showTrigger" type="checkbox" name="346" id="346" />非法停车
                            </li>
                            <li class="itemContent">
                                <table>
                                    <tr>
                                        <td class="title">开启时间段</td>
                                        <td class="content">
                                            <input class="settingElement timeSpans" readonly="true" name="347" id="347" type="text" />
                                            <div class="timeSelector">
                                                <ul class='timeSpanContainer'>
                                                </ul>
                                                <a class="timeSelectorAdd settingBtn">添加时间段</a>
                                                <a class="timeSelectorSave settingBtn">保存</a>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="title">
                                            非法停车时间(1-3600秒):
                                        </td>
                                        <td class="content">
                                            <input class="settingElement1" name="348" id="348" type="text" />
                                        </td>
                                    </tr>
                                </table>
                            </li>
                        </ul>
                        <ul class="settingItem">
                            <li class="itemTitle">
                                <input class="checkboxAlign showTrigger" type="checkbox" name="353" id="353" />不礼让行人
                            </li>
                            <li class="itemContent">
                                <table>
                                    <tr>
                                        <td class="title">开启时间段</td>
                                        <td class="content">
                                            <input class="settingElement timeSpans" readonly="true" name="354" id="354" type="text" />
                                            <div class="timeSelector">
                                                <ul class='timeSpanContainer'>
                                                </ul>
                                                <a class="timeSelectorAdd settingBtn">添加时间段</a>
                                                <a class="timeSelectorSave settingBtn">保存</a>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="title">
                                            <span>横向检测范围(0-20米):</span>
                                        </td>
                                        <td class="content">
                                            <input class="settingElement1" name="356" id="356" type="text" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="title">纵向检测范围(0-20米):</td>
                                        <td class="content">
                                            <input class="settingElement1" name="355" id="355" type="text" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="title">
                                            速度上限(0-20米/秒):
                                        </td>
                                        <td class="content">
                                            <input class="settingElement1" name="357" id="357" type="text" />
                                        </td>
                                    </tr>
                                </table>
                            </li>
                        </ul>
                        <!--<ul class="settingItem">
                            <li class="itemTitle">
                                <input class="checkboxAlign showTrigger" type="checkbox" name="271" id="271" />倒车
                            </li>
                            <li class="itemContent">
                                <table>
                                    <tr>
                                        <td class="title">开启时间段</td>
                                        <td class="content">
                                            <input class="settingElement timeSpans"  readonly="true" name="270" id="270" type="text" />
                                            <div class="timeSelector">
                                                <ul class='timeSpanContainer'>
                                                </ul>
                                                <a class="timeSelectorAdd settingBtn">添加时间段</a>
                                                <a class="timeSelectorSave settingBtn">保存</a>
                                            </div>
                                        </td>                               
                                    </tr>
                                </table>
                            </li>
                        </ul>-->
                        <ul class="settingItem">
                            <li class="itemTitle">
                                <input class="checkboxAlign showTrigger" type="checkbox" name="278" id="278" />越线停车
                            </li>
                            <li class="itemContent">
                                <table>
                                    <tr>
                                        <td class="title">开启时间段</td>
                                        <td class="content">
                                            <input class="settingElement timeSpans" readonly="true" name="277" id="277" type="text" />
                                            <div class="timeSelector">
                                                <ul class='timeSpanContainer'>
                                                </ul>
                                                <a class="timeSelectorAdd settingBtn">添加时间段</a>
                                                <a class="timeSelectorSave settingBtn">保存</a>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="title">
                                            判定停车时间(1-3600秒):
                                        </td>
                                        <td class="content">
                                            <input class="settingElement1" name="279" id="279" type="text" />
                                        </td>
                                    </tr>
                                </table>
                            </li>
                        </ul>
                        <ul class="settingItem">
                            <li class="itemTitle">
                                <input class="checkboxAlign showTrigger" type="checkbox" name="280" id="280" />路口滞留
                            </li>
                            <li class="itemContent">
                                <table>
                                    <tr>
                                        <td class="title">开启时间段</td>
                                        <td class="content">
                                            <input class="settingElement timeSpans" readonly="true" name="283" id="283" type="text" />
                                            <div class="timeSelector">
                                                <ul class='timeSpanContainer'>
                                                </ul>
                                                <a class="timeSelectorAdd settingBtn">添加时间段</a>
                                                <a class="timeSelectorSave settingBtn">保存</a>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="title">
                                            绿灯拥堵锁定时长(0-3600秒):
                                        </td>
                                        <td class="content">
                                            <input class="settingElement1" name="288" id="288" type="text" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="title">
                                            绿灯不拥堵锁定时长(0-3600秒):
                                        </td>
                                        <td class="content">
                                            <input class="settingElement1" name="290" id="290" type="text" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="title">
                                            红灯锁定时长(0-3600秒):
                                        </td>
                                        <td>
                                            <input class="settingElement1" name="289" id="289" type="text" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2">
                                            <input type="checkbox" class="checkboxAlign" name="281" id="281" />
                                            是否检测左转 &nbsp;&nbsp;
                                            <input type="checkbox" class="checkboxAlign" name="282" id="282" />
                                            是否检测右转
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="1">
                                            <input type="checkbox" class="checkboxAlign" name="284" id="284" />
                                            是否向大屏发送消息
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="title">
                                            传输协议选择:
                                        </td>
                                        <td class="content">
                                            <select name="285" id="285" class="settingElement">
                                                <option selected="selected" value="0">无反馈,无数据转义</option>
                                                <option value="1">无反馈,有数据转义</option>
                                                <option value="2">有反馈,无数据转义</option>
                                                <option value="3">有反馈,有数据转义</option>
                                            </select>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="title">
                                            模拟控制屏:
                                        </td>
                                        <td class="content">
                                            <select name="291" id="291" class="settingElement">
                                                <option selected="selected" value="0">关闭模拟红灯状态控制屏</option>
                                                <option value="1">模拟红灯状态控制屏</option>
                                                <option value="2">模拟绿灯拥堵控制屏</option>
                                                <option value="3">模拟绿灯不拥堵控制屏</option>
                                            </select>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="title">
                                            IP地址:
                                        </td>
                                        <td class="content">
                                            <input type="text" class="settingElement" name="286" id="286" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="title">
                                            端口号(0-65535):
                                        </td>
                                        <td class="content">
                                            <input type="text" class="settingElement" name="287" id="287" />
                                        </td>
                                    </tr>
                                </table>
                            </li>
                        </ul>
                        <ul class="settingItem">
                            <li class="itemTitle">
                                <input class="checkboxAlign showTrigger" name="2011001" id="2011001" type="checkbox" />按车牌限行
                            </li>
                            <li class="itemContent">
                                <table>
                                    <tr>
                                        <td class="title">开启时间段</td>
                                        <td class="content">
                                            <input class="settingElement timeSpans" readonly="true" id="2011004" name="2011004" type="text" />
                                            <div class="timeSelector">
                                                <ul class='timeSpanContainer'>
                                                </ul>
                                                <a class="timeSelectorAdd settingBtn">添加时间段</a>
                                                <a class="timeSelectorSave settingBtn">保存</a>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="title">
                                            车牌包含以下字符串的不报
                                        </td>
                                        <td class="content">
                                            <input class="settingElement" id="2011002" name="2011002" type="text" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="title">
                                            车牌汉字最小置信度
                                        </td>
                                        <td class="content">
                                            <input class="settingElement" id="2011003" name="2011003" type="text" />
                                        </td>
                                    </tr>
                                </table>
                            </li>
                        </ul>
                    </li>

                    <li class="settingGroup">
                        <div class="groupTitle">
                            事件监测
                        </div>
                        <ul class="settingItem">
                            <li class="itemTitle">
                                <input class="checkboxAlign showTrigger" type="checkbox" name="360" id="360" />流量统计
                            </li>
                            <li class="itemContent">
                                <table>
                                    <tr>
                                        <td class="title">流量统计时间(1-3600秒)</td>
                                        <td class="content">
                                            <input class="settingElement1" name="361" id="361" type="text" />
                                        </td>
                                    </tr>
                                </table>
                            </li>
                        </ul>
                        <ul class="settingItem">
                            <li class="itemTitle">
                                <input class="checkboxAlign showTrigger" name="362" id="362" type="checkbox" />行人检测
                            </li>
                            <li class="itemContent">
                                <table>
                                    <tr>
                                        <td class="title">检测灵敏度(0-100)</td>
                                        <td class="content">
                                            <input class="settingElement1" name="363" id="363" type="text" />
                                        </td>
                                    </tr>
                                </table>
                            </li>

                        </ul>
                        <ul class="settingItem">
                            <li class="itemTitle">
                                <input type="checkbox" class="checkboxAlign showTrigger" name="364" id="364" />占有率超限
                            </li>
                            <li class="itemContent">
                                <table>
                                    <tr>
                                        <td class="title">占有率超限阈值(0-100(%))</td>
                                        <td class="content">
                                            <input class="settingElement1" name="365" id="365" type="text" />
                                        </td>
                                    </tr>
                                </table>
                            </li>

                        </ul>
                        <ul class="settingItem">
                            <li class="itemTitle">
                                <input class="checkboxAlign showTrigger" type="checkbox" name="366" id="366" />车辆慢行
                            </li>
                            <li class="itemContent">
                                <table>
                                    <tr>
                                        <td class="title">车辆速度阈值(0-100 KM/H)</td>
                                        <td class="content">
                                            <input class="settingElement1" type="text" name="367" id="367" />
                                        </td>
                                    </tr>
                                </table>
                            </li>

                        </ul>
                        <ul class="settingItem">
                            <li class="itemTitle">
                                <input class="checkboxAlign showTrigger" type="checkbox" name="368" id="368" />异常停车
                            </li>
                            <li class="itemContent">
                                <table>
                                    <tr>
                                        <td class="title">判定停车时长(0-360秒):</td>
                                        <td class="content">
                                            <input class="settingElement1" type="text" name="369" id="369" />
                                        </td>
                                    </tr>
                                </table>
                            </li>
                        </ul>
                        <ul class="settingItem">
                            <li class="itemTitle">
                                <input class="checkboxAlign showTrigger" type="checkbox" name="370" id="370" />拥堵检测
                            </li>
                            <li class="itemContent">
                                <table>
                                    <tr>
                                        <td class="title">拥堵车辆阈值(1-30辆):</td>
                                        <td class="content">
                                            <input class="settingElement1" type="text" name="371" id="371" />
                                        </td>

                                    </tr>
                                    <tr>
                                        <td class="title">拥堵速度阈值(1-30 KM/H)</td>
                                        <td class="content">
                                            <input class="settingElement1" type="text" name="372" id="372" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="title">缓行车辆阈值(1-30辆)</td>
                                        <td class="content">
                                            <input class="settingElement1" type="text" name="373" id="373" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="title">缓行速度阈值(1-30 KM/H)</td>
                                        <td class="content">
                                            <input class="settingElement1" type="text" name="374" id="374" />
                                        </td>
                                    </tr>
                                </table>
                            </li>
                        </ul>
                        <ul class="settingItem">
                            <li class="itemTitle">
                                <input type="checkbox" class="checkboxAlign showTrigger" id="virtualCoil" />虚拟线圈
                            </li>
                            <li class="itemContent">
                                <table>
                                    <tr>
                                        <td colspan="3">
                                            <input class="checkboxAlign" type="checkbox" name="380" id="380" />显示虚拟线圈框
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="3">
                                            <input class="checkboxAlign" type="checkbox" name="380001" id="380001" />显示距离  字体大小(10-25): 
                                            <input type="text" class="settingElement1" id="380002" name="380002" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="3">
                                            <input class="checkboxAlign relativeToTrigger" type="checkbox" name="381" id="381" />虚拟线圈1 位置(1-100米):
                                            <input type="text" class="settingElement1" id="382" name="382" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="3">
                                            <input class="checkboxAlign relativeToTrigger" type="checkbox" name="383" id="383" />虚拟线圈2 位置(1-100米):
                                            <input type="text" class="settingElement1" id="384" name="384" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="3">
                                            <input class="checkboxAlign relativeToTrigger" type="checkbox" name="385" id="385" />虚拟线圈3 位置(1-100米):
                                            <input type="text" class="settingElement1" id="386" name="386" />
                                        </td>
                                    </tr>
                                    <!--tr>
                                        <td>
                                            传输协议选择
                                        </td>
                                        <td colspan="2">
                                            <select name="388" id="388">
                                                <option value="0">XML型传输协议</option>
                                                <option value="1">二进制型传输协议</option>
                                            </select>
                                        </td>
                                    </tr-->
                                    <tr>
                                        <td>接收服务器IP</td>
                                        <td>
                                            <input type="text" class="settingElement" name="389" id="389" />
                                        </td>
                                        <td>
&nbsp;&nbsp;&nbsp;&nbsp;
                                            <input type="text" class="settingElement1" name="390" id="390" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>备用接收服务器IP</td>
                                        <td>
                                            <input type="text" class="settingElement" name="391" id="391" />
                                        </td>
                                        <td>
                                            备用端口
                                            <input type="text" class="settingElement1" name="392" id="392" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            第一通道:
                                        </td>
                                        <td>
                                            通道号:
                                            <input type="text" class="settingElement1" name="393" id="393" />
                                        </td>
                                        <td>
                                            车道号:
                                            <input type="text" class="settingElement1" name="394" id="394" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            第二通道:
                                        </td>
                                        <td>
                                            通道号:
                                            <input type="text" class="settingElement1" name="395" id="395" />
                                        </td>
                                        <td>
                                            车道号:
                                            <input type="text" class="settingElement1" name="396" id="396" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            第三通道:
                                        </td>
                                        <td>
                                            通道号:
                                            <input type="text" class="settingElement1" name="397" id="397" />
                                        </td>
                                        <td>
                                            车道号:
                                            <input type="text" class="settingElement1" name="398" id="398" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            第四通道:
                                        </td>
                                        <td>
                                            通道号:
                                            <input type="text" class="settingElement1" name="399" id="399" />
                                        </td>
                                        <td>
                                            车道号:
                                            <input type="text" class="settingElement1" name="400" id="400" />
                                        </td>
                                    </tr>
                                </table>
                            </li>
                        </ul>
                    </li>
                </ul>
            </div>
            <div class="rightArea">
                <div class="rightUpper">
                    <object id="roiOcxObject" classid="clsid:7E4DB96E-7A82-48DD-8376-7552E2D09170" style="height: 530px; width: 100%;">
                    </object>

                    <div style="height:30px;">
                        <a class="settingBtn" style="float: left;" id="capturePicture">抓图</a>
                    </div>

                </div>

                <div class="rightLower">
                    <table class="redLight">
                        <tr>
                            <td class="title">
                                红灯最短时长(0-100秒)
                            </td>
                            <td class="title">
                                <input type="text" class="settingElement" name="401" id="401" />
                            </td>
                        </tr>
                        <tr>
                            <td class="title">
                                持续状态多长时间报警(秒)
                            </td>
                            <td class="title">
                                <input type="text" class="settingElement" name="402" id="402" />
                            </td>
                        </tr>
                        <tr>
                            <td class="title">红灯开始后无效时长(秒)</td>
                            <td class="content">
                                <input class="settingElement" name="403" id="403" type="text" />
                            </td>
                        </tr>
                        <tr>
                            <td class="title">红灯结束前无效时长(秒)</td>
                            <td class="content">
                                <input class="settingElement" name="404" id="404" type="text" />
                            </td>
                        </tr>

                        <tr>
                            <td colspan="2">
                                <input class="checkboxAlign" name="405" id="405" type="checkbox" />红灯校正
                            </td>
                        </tr>
                        <tr>
                            <td class="title">校正灵敏度(1-100)</td>
                            <td class="content">
                                <input class="settingElement" name="406" id="406" type="text" />
                            </td>
                        </tr>
                        <tr>
                            <td class="title">开始时间1</td>
                            <td class="content">
                                <input type="text" name="407" id="407" class="Wdate" onclick="WdatePicker({ dateFmt: 'HH:mm:ss', maxDate: '#F{$dp.$D(\'4071\')||\'23:59:59\'}'});"
                                />
                            </td>
                        </tr>
                        <tr>
                            <td class="title">结束时间1</td>
                            <td class="content">
                                <input type="text" name="4071" id="4071" class="Wdate" onclick="WdatePicker({ dateFmt: 'HH:mm:ss', minDate: '#F{$dp.$D(\'407\')||\'00:00:00\'}' });"
                                />
                            </td>
                        </tr>
                        <tr>
                            <td class="title">开始时间2</td>
                            <td class="content">
                                <input type="text" name="4072" id="4072" class="Wdate" onclick="WdatePicker({ dateFmt: 'HH:mm:ss', maxDate: '#F{$dp.$D(\'4073\')||\'23:59:59\'}' });"
                                />
                            </td>
                        </tr>
                        <tr>
                            <td class="title">结束时间2</td>
                            <td class="content">
                                <input type="text" name="4073" id="4073" class="Wdate" onclick="WdatePicker({ dateFmt: 'HH:mm:ss', minDate: '#F{$dp.$D(\'4072\')||\'00:00:00\'}' });"
                                />
                            </td>
                        </tr>
                        <tr>
                            <td class="title">红灯信号源</td>
                            <td class="content">
                                <select class="settingElement" name="408" id="408">
                                    <option value="0">视频识别</option>
                                    <option value="1" disabled="disabled">IO信号识别</option>
                                    <option value="2">网络信号识别</option>
                                    <option value="3" disabled="disabled">串口信号识别</option>
                                </select>
                            </td>
                        </tr>
                        <tr class="redLightSource0">
                            <td class="title">灯色最小饱和度(1-100)</td>
                            <td class="content">
                                <input class="settingElement" name="409" id="409" type="text" />
                            </td>
                        </tr>
                        <tr class="redLightSource1">
                            <td class="title">红灯检测器有效电平</td>
                            <td class="content">
                                <select class="settingElement" name="413" id="413">
                                    <option value="0">高电平</option>
                                    <option value="1">低电平</option>
                                </select>
                            </td>
                        </tr>
                        <tr class="redLightSource2">
                            <td class="title">左转灯通道</td>
                            <td class="content">
                                <input class="settingElement" name="410" id="410" type="text" />
                            </td>
                        </tr>
                        <tr class="redLightSource2">
                            <td class="title">右转灯通道</td>
                            <td class="content">
                                <input class="settingElement" name="411" id="411" type="text" />
                            </td>
                        </tr>
                        <tr class="redLightSource2">
                            <td class="title">直行灯通道</td>
                            <td class="content">
                                <input class="settingElement" name="412" id="412" type="text" />
                            </td>
                        </tr>
                        <tr class="redLightSource3">
                            <td class="title">协议</td>
                            <td class="content">
                                <select class="settingElement" name="414" id="414">
                                    <option value="0">协议1</option>
                                    <option value="1">协议2</option>
                                    <option value="2">协议3</option>
                                    <option value="3">协议4</option>
                                </select>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            <div class="bottomArea">
                <a class="settingBtn" id="btnSave" style="float: left;">保存</a>
            </div>
            <% inputSecurityToken(); %>
        </form>
    </div>
    <script src="../../../scripts/jquery-1.11.1.js"></script>
    <script src="../../../scripts/easyui/jquery.easyui.min.js"></script>
    <script src="../../../scripts/easyui/locale/easyui-lang-zh_CN.js"></script>
    <script src="../../../scripts/utilities.js"></script>
    <script src="../../../scripts/jquery.form.js"></script>
    <script src="../../../scripts/jquery.validate.min.js"></script>
    <script src="../../../scripts/jquery.validate.extend.js"></script>
    <script src="../../../scripts/My97DatePicker/WdatePicker.js"></script>
    <script src="captureSettingsCommon.js"></script>
    <script type="text/javascript">

        var ocxController;
        var showedDatepicker;//已经显示的
        //参数加载适配器        
        var parameterAdaptor = new ParameterAdaptor();
        var triggerBuffer = new Array();

        $().ready(function () {
            var ip = window.location.hostname;
            var roiOcxObject = document.getElementById("roiOcxObject");

            ocxController = new ROIOcxController(roiOcxObject);
            try {
                var timestamp = new Date().getTime();
                ocxController.showPage();
                ocxController.loadUrlPage("http://" + ip + "/do/trafficController/roiOcxRequestEvent?EventType=1&t=" + timestamp);
                ocxController.loadUrlXml("http://" + ip + "/do/trafficController/roiOcxRequestEvent?EventType=2&t=" + timestamp);
            } catch (err) {
                if (console)
                    console.error("ROI:" + err.name + "->" + err.message);
            }

            //加载参数
            setTimeout(loadCaptureSettings, 200);
            //保存参数
            $("#btnSave").click(saveParametersToServer);

            $("#capturePicture").click(exportPicture);//导出参数

            //红灯信号源
            $("#408").change(redLightHandler);

            $("#intersectionInfo input:checkbox").click(onCheckboxClicked);
            $(".itemTitle").click(showOrHidenSettingItem);

            //验证表单
            validateForm();
        });

        function validateForm() {
            var rules = {
                225: {
                    range: [-0.5, 2],
                    validMinusZero: true
                },
                230: {
                    range: [1, 1000],
                    digits: true
                },
                252: {
                    range: [1, 100],
                    digits: true
                },
                341: {
                    range: [0, 100],
                    digits: true
                },
                264: {
                    range: [1, 30],
                    digits: true
                },
                265: {
                    range: [100, 10000]
                },
                348: {
                    range: [1, 3600],
                    digits: true
                },
                355: {
                    range: [0, 20],
                    validMinusZero: true
                },
                356: {
                    range: [0, 20],
                    validMinusZero: true
                },
                357: {
                    range: [0, 20],
                    validMinusZero: true
                },
                279: {
                    range: [1, 3600],
                    digits: true
                },
                287: {
                    range: [0, 65535],
                    digits: true
                },
                288: {
                    range: [0, 3600],
                    digits: true
                },
                289: {
                    range: [0, 3600],
                    digits: true
                },
                290: {
                    range: [0, 3600],
                    digits: true
                },
                361: {
                    range: [1, 3600],
                    digits: true
                },
                363: {
                    range: [0, 100],
                    digits: true
                },
                365: {
                    range: [0, 100],
                    digits: true
                },
                367: {
                    range: [0, 100],
                    digits: true
                },
                369: {
                    range: [0, 360],
                    digits: true
                },
                371: {
                    range: [1, 30],
                    digits: true
                },
                372: {
                    range: [1, 30],
                    digits: true
                },
                373: {
                    range: [1, 30],
                    digits: true
                },
                374: {
                    range: [1, 30],
                    digits: true
                },
                380002: {
                    range: [10, 28],
                    digits: true
                },
                382: {
                    range: [1, 100],
                    validMinusZero: true
                },
                384: {
                    range: [1, 100],
                    validMinusZero: true
                },
                386: {
                    range: [1, 100],
                    validMinusZero: true
                },
                390: {
                    required: "#389:filled",
                    range: [0, 65535],
                    digits: true
                },
                392: {
                    required: "#391:filled",
                    range: [0, 65535],
                    digits: true
                },
                401: {
                    range: [0, 100],
                    digits: true
                },
                402: {
                    range: [30, 86400],
                    digits: true
                },
                403: {
                    range: [0, 10],
                    digits: true
                },
                404: {
                    range: [0, 10],
                    digits: true
                },
                406: {
                    range: [1, 100],
                    digits: true
                },
                409: {
                    range: [1, 100],
                    digits: true
                },
                400004: {
                    digits: true,
                    range: [0, 65535]
                }
            };
            rules[394] = rules[396] = rules[398] = rules[400]
                = { number:true };
            rules[393] = rules[395] = rules[397] = rules[399] = {
            	range: [-1, 32],
            	validMinusZero: true
            };
            rules[410] = rules[411] = rules[412] = {
                range: [1, 12],
                digits: true
            };
            rules[286] = rules[389] = rules[391] = { ip: true };
            $("#intersectionInfo").validate({
                rules: rules
            });
        }

        //红灯信号源监听事件
        function redLightHandler(event) {
            var selectedValue = $("#408").val();

            var s0 = $(".redLightSource0");
            var s1 = $(".redLightSource1");
            var s2 = $(".redLightSource2");
            var s3 = $(".redLightSource3");

            switch (selectedValue) {
                case "0":
                    s0.show();
                    s1.hide();
                    s2.hide();
                    s3.hide();
                    break;
                case "1":
                    s0.hide();
                    s1.show();
                    s2.hide();
                    s3.hide();
                    break;
                case "2":
                    s0.hide();
                    s1.hide();
                    s2.show();
                    s3.hide();
                    break;
                case "3":
                    s0.hide();
                    s1.hide();
                    s2.hide();
                    s3.show();
                    break;
                default:
                    break;
            }
        }
        //checkbox点击事件
        function onCheckboxClicked(event) {
            var self = $(event.currentTarget);

            var panel;
            //更改Value
            self.val(this.checked + 0 + "");

            if (self.hasClass("relativeToTrigger")) {
                var parent = $(event.currentTarget).parents(".settingItem");
                var checkedCount = parent.find(".relativeToTrigger:checked").length;
                panel = self.parents(".itemContent");
                var switchCheckbox = self.parents(".itemContent").siblings(".itemTitle").find("input:checkbox");
                switchCheckbox.prop("checked", !(checkedCount == 0)).val(checkedCount == 0 ? "0" : "1");
            }

            if (self.hasClass("showTrigger")) {
                //显示对应详细设置项
                panel = self.parent().siblings(".itemContent");

                panel.find(".relativeToTrigger").prop("checked", this.checked).val(this.checked + 0 + "");
            }
            event.stopPropagation();
        }

        function showOrHidenSettingItem(event) {
            var self = $(event.currentTarget);
            self.siblings(".itemContent").toggle();
        }

        //更新设置项的UI(主要是是否展开详细设置)
        function updateSettingItemUI() {

            var itemTriggers = $(".showTrigger");
            var currentObj;
            var isOpen = false;
            itemTriggers.each(function (index) {
                isOpen = false;
                currentObj = $(this);
                var isChecked = currentObj.is(":checked");
                if (isChecked) {
                    isOpen = true;
                } else {
                    //有一种情况是要根据底下的选项来决定是否选中
                    var relativeTriggers = currentObj.parents(".settingItem").find(".relativeToTrigger:checked");
                    isOpen = relativeTriggers.length > 0;
                    if (isOpen) {
                        currentObj.prop("checked", "checked");
                    }
                }

                if (isOpen) {
                    currentObj.parent().siblings(".itemContent").show();
                }
            });
            //更新右下角红灯
            redLightHandler();
        }

        function exportPicture() {
            var url = "/do/trafficController/capturePicture";
            window.open(url);
        }

        //加载抓拍参数信息
        function loadCaptureSettings() {
            var refererInfo = "intersection";
            parameterAdaptor.getParameters(refererInfo, function (data) {
                //性能太烂,自己绑定值
                //$("#intersectionInfo").form("load", data.feedback);
                bindFormData($("#intersectionInfo"), data.feedback);
                //更新UI
                updateSettingItemUI();
            });
        }

        function bindFormData(formObj, data) {
            var element;
            var elementType;
            for (var key in data) {
                element = formObj.find("#" + key);
                //如果使用id没有找到,则改为使用name来查找对象,增加容错性
                if (element.length == 0) {
                    element = formObj.find("[name='" + key + "']");
                }
                elementType = element.attr("type");
                if (elementType == "checkbox") {
                    element.prop("checked", data[key] == "on" ? "checked" : "");
                } else {
                    element.val(data[key]);
                }
            }
        }

        //显示已更改的值
        function showChangedValue(newValue, oldValue) {
            var id = $(this).attr("id").split("_")[1];
            $("#" + id).val(newValue);
        }

        //提交参数到服务器保存
        function saveParametersToServer() {
            var formObj = $("#intersectionInfo");
            //验证参数
            if (!formObj.valid()) {
                $("#roiOcxObject").hide();

                $.messager.alert("提示", "参数验证有误,请修改后再提交!", "error", function () {
                    $("#roiOcxObject").show();
                });
                return;
            }
            parameterAdaptor.saveParameters(formObj);
        }

    </script>

    <!-- 捕获ocx控件roiOcxObject抛出的事件 -->
    <script type="text/javascript" for="roiOcxObject" event="roiRequestEvent(EventType, szParam1, nParam2)">
        //var roiRequestUrl = "/do/trafficController/roiOcxRequestEvent?EventType=" + EventType;
        if (ocxController != null) {
            var ip = window.location.hostname;
            if (EventType == 1) {
                ocxController.loadUrlPage("http://" + ip + "/do/trafficController/roiOcxRequestEvent?EventType=1");
            } else if (EventType == 2) {
                ocxController.loadUrlXml("http://" + ip + "/do/trafficController/roiOcxRequestEvent?EventType=2");
            }
        }     
    </script>

    <script type="text/javascript" for="roiOcxObject" event="roiResponseEvent(EventType, szParam1, szParam2, nParam3)">
        var roiRequestUrl = "/do/trafficController/roiOcxResponseEvent?EventType=" + EventType;
        //var roiRequestUrl = "/do/trafficController/importRoiXml";
        var szJson = {};
        szJson["paramXml"] = szParam2;

        //添加securityToken
        var securityToken = document.getElementsByName("-xsrf-");
        if (securityToken.length > 0) {
            szJson["-xsrf-"] = securityToken[0].value;
        } else {
            alert("securityToken为空!不能提交!");
        }

        $.post(roiRequestUrl, szJson, function (data) {
            if (!data.error) {
                $.messager.show({
                    title: '结果',
                    msg: 'roiResponseEvent:' + 'Event=' + EventType + ' 事件提交失败!原因:' + data.feedback.Msg,
                    timeout: 0,
                    showType: 'slide'
                });
            } else {
                $.messager.show({
                    title: '结果',
                    msg: 'roiResponseEvent:' + 'Event=' + EventType + '事件提交成功!',
                    timeout: 3000,
                    showType: 'slide'
                });
            }
        }, "json");
    </script>

</body>

</html>