Commit 858a7430dc7cd79612eb7e24f6b4620e8822aeb4
1 parent
f06d9fa5
时刻表v2.4
1、修改添加进出场班次,每个车次链开头结尾都添加进出场,报到班次
Showing
1 changed file
with
58 additions
and
1 deletions
src/main/resources/static/pages/base/timesmodel/js/v2/core/InternalScheduleObj.js
| ... | ... | @@ -1418,7 +1418,7 @@ var InternalScheduleObj = function(paramObj, lpArray, factory) { |
| 1418 | 1418 | /** |
| 1419 | 1419 | * 补每个路牌的其他班次(进出场,例保班次)。 |
| 1420 | 1420 | */ |
| 1421 | - fnCalcuOtherBc: function() { | |
| 1421 | + fnCalcuOtherBc_: function() { | |
| 1422 | 1422 | var i; |
| 1423 | 1423 | var _lpObj; |
| 1424 | 1424 | var _minBcIndex; |
| ... | ... | @@ -1485,6 +1485,63 @@ var InternalScheduleObj = function(paramObj, lpArray, factory) { |
| 1485 | 1485 | }, |
| 1486 | 1486 | |
| 1487 | 1487 | /** |
| 1488 | + * 补每个路牌的其他班次(进出场,例保班次) | |
| 1489 | + * 所有的车次链前后都加进出场、报道班次 | |
| 1490 | + */ | |
| 1491 | + fnCalcuOtherBc: function() { | |
| 1492 | + var i; | |
| 1493 | + var j; | |
| 1494 | + var iBcChainCount; | |
| 1495 | + var oLp; | |
| 1496 | + var aOtherBc; | |
| 1497 | + var oStartBc; | |
| 1498 | + var oEndBc; | |
| 1499 | + | |
| 1500 | + for (i = 0; i < _internalLpArray.length; i++) { | |
| 1501 | + aOtherBc = []; | |
| 1502 | + oLp = _internalLpArray[i]; | |
| 1503 | + iBcChainCount = oLp.fnGetBcChainCount(); | |
| 1504 | + | |
| 1505 | + for (j = 0; j < iBcChainCount; j++) { | |
| 1506 | + oStartBc = oLp.getBc( | |
| 1507 | + oLp.fnGetBcChainInfo(j)["s_q"], | |
| 1508 | + oLp.fnGetBcChainInfo(j)["s_b"] | |
| 1509 | + ); | |
| 1510 | + oEndBc = oLp.getBc( | |
| 1511 | + oLp.fnGetBcChainInfo(j)["e_q"], | |
| 1512 | + oLp.fnGetBcChainInfo(j)["e_b"] | |
| 1513 | + ); | |
| 1514 | + | |
| 1515 | + // 车次链开头添加出场班次 | |
| 1516 | + aOtherBc.push(_factory.createBcObj( | |
| 1517 | + oLp, "bd", true, 1, | |
| 1518 | + oStartBc.getFcTimeObj(), | |
| 1519 | + _paramObj | |
| 1520 | + )); | |
| 1521 | + aOtherBc.push(_factory.createBcObj( | |
| 1522 | + oLp, "out", true, 1, | |
| 1523 | + oStartBc.getFcTimeObj(), | |
| 1524 | + _paramObj | |
| 1525 | + )); | |
| 1526 | + | |
| 1527 | + // 车次链结尾添加进场班次 | |
| 1528 | + aOtherBc.push(_factory.createBcObj( | |
| 1529 | + oLp, "in", true, 1, | |
| 1530 | + oEndBc.getArrTimeObj(), | |
| 1531 | + _paramObj | |
| 1532 | + )); | |
| 1533 | + aOtherBc.push(_factory.createBcObj( | |
| 1534 | + oLp, "lc", true, 1, | |
| 1535 | + oEndBc.getArrTimeObj(), | |
| 1536 | + _paramObj | |
| 1537 | + )); | |
| 1538 | + } | |
| 1539 | + | |
| 1540 | + oLp.addOtherBcArray(aOtherBc); | |
| 1541 | + } | |
| 1542 | + }, | |
| 1543 | + | |
| 1544 | + /** | |
| 1488 | 1545 | * 祛除上标线开头的删除标记的班次。 |
| 1489 | 1546 | */ |
| 1490 | 1547 | fnRemoveDelFirstFlagBc: function() { | ... | ... |