view.jsp 170 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 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@page import="weaver.fna.maintenance.FnaCostCenter"%>
<%@ page import="java.util.*" %>
<%@ page import="org.apache.commons.lang.StringUtils"%>
<%@ page import="weaver.general.* "%>
<%@ page import="weaver.hrm.*" %>
<%@ page import="weaver.systeminfo.*" %>
<%@ page import="weaver.mobile.plugin.ecology.RequestOperation"%>
<%@ page import="weaver.mobile.webservices.workflow.*" %>
<%@page import="weaver.conn.RecordSet"%>
<%@page import="weaver.mobile.webservices.common.HtmlUtil"%>
<%@page import="weaver.mobile.webservices.common.FIFOLinkedHashMap"%>
<%@page import="weaver.workflow.monitor.MonitorDTO"%>
<%@page import="org.json.JSONObject"%>
<%@ page import="java.util.regex.Matcher" %>
<%@ page import="java.util.regex.Pattern" %>
<%@ page import="weaver.workflow.request.WorkflowRequestMessage" %>
<%@ page import="weaver.workflow.html.FieldAttrManager" %>
<%@ page import="weaver.mobile.webservices.workflow.soa.RequestPreProcessing,weaver.workflow.request.todo.RequestUtil"%>
<%@ page import="java.io.*" %>
<%@page import="weaver.file.Prop" %>
<%@ page import="weaver.workflow.request.LockDTO" %>
<%@page import="weaver.formmode.ThreadLocalUser"%>
<%@ page import="weaver.workflow.request.RequestOperationMsgManager" %>
<%@ page import="com.cloudstore.dev.api.bean.MessageBean" %>
<%@ page import="com.cloudstore.dev.api.util.Util_Message" %>
<%@ page import="com.engine.workflow.service.RequestSecondAuthService" %>
<%@ page import="com.engine.common.util.ServiceUtil" %>
<%@ page import="com.engine.workflow.service.impl.RequestSecondAuthServiceImpl" %>
<%@ page import="weaver.workflow.msg.entity.RequestMsgEntity" %>
<%@ page import="weaver.workflow.msg.MsgPushUtil" %>


<jsp:useBean id="meetingSetInfo" class="weaver.meeting.Maint.MeetingSetInfo" scope="page"/>
<jsp:useBean id="WfFunctionManageUtil" class="weaver.workflow.workflow.WfFunctionManageUtil" scope="page"/><!--xwj for td3665 20060224-->
<jsp:useBean id="WfForceOver" class="weaver.workflow.workflow.WfForceOver" scope="page" /><!--xwj for td3665 20060224-->
<jsp:useBean id="WfForceDrawBack" class="weaver.workflow.workflow.WfForceDrawBack" scope="page" /><!--xwj for td3665 20060224-->
<jsp:useBean id="SysWFLMonitor" class="weaver.system.SysWFLMonitor" scope="page"/>
<jsp:useBean id="WFUrgerManager" class="weaver.workflow.request.WFUrgerManager" scope="page" />
<jsp:useBean id="Monitor" class="weaver.workflow.monitor.Monitor" scope="page" />
<jsp:useBean id="ResourceComInfo" class="weaver.hrm.resource.ResourceComInfo" scope="page"/>
<jsp:useBean id="LockUtil" class="weaver.workflow.request.LockUtil" scope="page"/>
<jsp:useBean id="WFManager" class="weaver.workflow.workflow.WFManager" scope="page" />
<jsp:useBean id="CptWfUtil" class="weaver.cpt.util.CptWfUtil" scope="page" />
<%
request.setCharacterEncoding("UTF-8");
response.setContentType("text/html;charset=UTF-8");
String isDetailRowShow = Util.null2String(Prop.getPropValue("Mobile","isDetailRowShow"));
//request message info start
String messageid = Util.null2String(request.getParameter("messageid"));
String resetoperator ="";
String systemwfInfo = "";
//request message info end

String detailid = Util.null2String(request.getParameter("detailid"));
String module = Util.null2String(request.getParameter("module"));
String scope = Util.null2String(request.getParameter("scope"));
String title = Util.null2String(request.getParameter("title"));
String clienttype = Util.null2String(request.getParameter("clienttype"));
String clientlevel = Util.null2String(request.getParameter("clientlevel"));
String clientVer = Util.null2String(request.getParameter("clientver"));
String serverVer = Util.null2String(request.getParameter("serverver"));
String type = Util.null2String(request.getParameter("type"));
String clientosver = Util.null2String(request.getParameter("clientosver"));
String ismonitor = Util.null2String(request.getParameter("ismonitor"));
String sessionkey = Util.null2String(request.getParameter("sessionkey"));

RecordSet cxbRs = new RecordSet();
cxbRs.writeLog("cxb============================================in view.jsp=========================detailid = " + detailid);
if("".equals(ismonitor) && module.equals("-1005")){
    ismonitor = "1";
}

int isurge1	= Util.getIntValue(request.getParameter("isurge"));
if(isurge1 <= 0 && module.equals("-1004")){
    isurge1 = 1;
}
String requestname="";      //请求名称
String requestlevel="";     //请求重要级别 0:正常 1:重要 2:紧急







String requestmark = "" ;   //请求编号
String isbill="0";          //是否单据 0:否 1:是







int creator=0;              //请求的创建人
int creatertype = 0;        //创建人类型 0: 内部用户 1: 外部用户
int deleted=0;              //请求是否删除  1:是 0或者其它 否







int billid=0 ;              //如果是单据,对应的单据表的id
String isModifyLog = "";		//是否记录表单日志 by cyril on 2008-07-09 for TD:8835





int formid=0;               //表单或者单据的id
int helpdocid = 0;          //帮助文档 id
String workflowname = "" ;         //工作流名称







String status = ""; //当前的操作类型







String docCategory="";//工作流目录








int lastOperator=0; //最后操作者id
String lastOperateDate="";//最后操作日期







String lastOperateTime="";//最后操作时间




boolean isurger=false;                  //督办人可查看
boolean wfmonitor=false;                //流程监控人


//ismonitor = "1";
boolean haveBackright=false;            //强制收回权限
boolean haveStopright = false;			//暂停权限
boolean haveCancelright = false;		//撤销权限
boolean haveRestartright = false;		//启用权限
boolean haveOverright=false;            //强制归档权限
int intervenorright = 0;   //流程干预




//2015/11/30 获取次账号信息 start
//User user = HrmUserVarify.getUser (request , response) ;

String f_weaver_belongto_userid=Util.null2String(request.getParameter("f_weaver_belongto_userid"));//需要增加的代码


String f_weaver_belongto_usertype=Util.null2String(request.getParameter("f_weaver_belongto_usertype"));//需要增加的代码
User user  = HrmUserVarify.getUser(request, response, f_weaver_belongto_userid, f_weaver_belongto_usertype) ;//需要增加的代码

String messagecontent = Util.null2String(session.getAttribute("msgcontent_"+user.getUID()+"_"+detailid));
String method = Util.null2String(request.getParameter("method"));


//2015/11/30 获取次账号信息 End
if(user == null)  return ;
ThreadLocalUser.setUser(user);
String logintype = user.getLogintype();     //当前用户类型  1: 类别用户  2:外部用户
int usertype = 0;
if(logintype.equals("1")) usertype = 0;
if(logintype.equals("2")) usertype = 1;
char flag=Util.getSeparator() ;
int userid=user.getUID();

boolean isPreProcessing = (1 == Util.getIntValue(request.getParameter("isPreProc")));
String buttonswitch = Util.null2String(Prop.getPropValue("WebchatSwitch","buttonswitch"));

if(StringUtils.isNotBlank(detailid) && !isPreProcessing){
    File file = new File(RequestPreProcessing.getSystemFilePath()+"/cachefile/"+detailid+"/"+user.getUID()+"_view.html");
    if(file.exists()){
      try {
			String filecachestr = "";
			BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(file),"UTF-8"));
	        while (br.ready()) {
                filecachestr += br.readLine() + "\n";
            }
			filecachestr +="<script>var js_sessionkey='"+sessionkey+"';var js_module='"+module+"';var js_scope='"+scope+"';jQuery(function(){jQuery('#type').val("+type+");jQuery('#method2').val("+method+");jQuery('#clientver').val("+clientVer+");jQuery('#serverver').val("+serverVer+");jQuery('#ismonitor').val("+ismonitor+");if('"+clienttype+"'=='Webclient'){jQuery('#view_header').show();}else{jQuery('#view_header').hide();}jQuery('#workflowfrm').attr('action','/mobile/plugin/1/RequestOperation.jsp?module="+module+"&scope="+scope+"&f_weaver_belongto_userid="+f_weaver_belongto_userid+"&f_weaver_belongto_usertype="+f_weaver_belongto_usertype+"');});</script>";
		    br.close();
            PrintWriter writer = response.getWriter();
			writer.write(filecachestr);
			writer.flush();
			writer.close();
		} catch (Exception e) {}
        return;
    }
}

//仅仅在创建流程时候,才从request.getParameter取workflowid值


String workflowid = Util.null2String(request.getParameter("workflowid"));
//判断当前客户端程序版本是否高于4.5
boolean flagClientVersion4_5 = RequestOperation.compareVersion(clientVer, RequestOperation.VERSION_45);
//判断当前Mobile程序版本是否高于4.5
boolean flagServerVersion4_5 = RequestOperation.compareVersion(serverVer, RequestOperation.VERSION_45);
WorkflowServiceUtil.mobileVersion45 = flagServerVersion4_5;
WorkflowServiceUtil.clientMobileVersion45 = flagClientVersion4_5;
WorkflowServiceUtil.androidclienttype = "android".equals(clienttype) ;
WorkflowServiceUtil.androidclientosver = clientosver.compareTo("4.1.1")>=0;

int requestid = 0;

String userSignRemark = "";
String forwardresourceids = "";
String forwardresourceids2 = "";
String forwardresourceids3 = "";
String clientip = "";
WorkflowRequestInfo workflowRequestInfo = null;
String workflowHtmlShow = "";
String fromWF = "";
HttpServletRequest req = request;

requestid = Util.getIntValue(req.getParameter("requestid"), 0);
if (requestid == 0) {
	requestid = Util.getIntValue(detailid,0);
}

//如果method值为空,且requestId值为0或-1则为创建流程
if("".equals(method) && requestid <= 0){
	method = "create";
	type = "create";
}

int fromRequestid = Util.getIntValue(req.getParameter("fromRequestid"), 0);
//------------异构系统跳转 start
RequestUtil ru = new RequestUtil();
if(ru.isOpenOtherSystemToDo() && requestid < 0){
	String openurl = ru.getShowUrl(requestid+"",userid+"","1");
	response.sendRedirect(openurl);
	return;
}
//------------异构系统跳转 end
if(requestid<=0&&Util.getIntValue(workflowid)<=0) {
	response.sendRedirect("/mobile/plugin/1/createlist.jsp?sessionkey="+sessionkey+"&module="+module+"&scope="+scope+"&clienttype="+clienttype+"&clientlevel="+clientlevel);
	return;
}
boolean canview = false ;               // 是否可以查看
isurger=WFUrgerManager.UrgerHaveWorkflowViewRight(requestid,userid,Util.getIntValue(logintype,1));

int isurge = 0;
if(isurger){
   isurge = 1;
}
if(!canview&&!isurger){
	if("1".equals(ismonitor)){
		wfmonitor=WFUrgerManager.getMonitorViewRight(requestid,userid);
	}
} 

//监控、督办群组

Map<String, Object> otherinfo = new HashMap<String, Object>();
otherinfo.put("ismonitor", ismonitor);
otherinfo.put("isurger", isurge);
//应155683要求,添加module属性

otherinfo.put("module", module);


WorkflowService workflowWebService = new WorkflowServiceImpl();
WorkflowServiceUtil workflowServiceUtil = new WorkflowServiceUtil();
boolean iscanedit = workflowServiceUtil.iscanEdit(userid,requestid);


String wfReqInfoKey = "";
boolean isCanEditRemark = true;
int intModule = 0;
try{
    intModule = Integer.valueOf(module);
}catch(Exception e){
    
}
if ("create".equals(method)) {
	workflowRequestInfo = workflowWebService.getCreateWorkflowRequestInfo(Util.getIntValue(workflowid), userid);

	wfReqInfoKey = sessionkey + "_"+ workflowid + "_"+ userid;
} else {
    //判断是否监控、督办

    if(module!= null && intModule < 0){
        workflowRequestInfo = workflowWebService.getWorkflowRequest4split(requestid, userid, fromRequestid, 5, false, otherinfo);

        //监控和督办的时候,表单内容不可编辑
        if(workflowRequestInfo != null){
            workflowRequestInfo.setCanEdit(false);
            iscanedit = false;
        }
    }else{
        workflowRequestInfo = workflowWebService.getWorkflowRequest4split(requestid, userid, fromRequestid, 5, false);
    }
    
	
	workflowWebService.writeWorkflowReadFlag(String.valueOf(requestid), String.valueOf(userid), workflowRequestInfo.getIsremark());
	//wfReqInfoKey = "REQUESTID" + requestid + "_USERID"+ userid;
	wfReqInfoKey = sessionkey + "_" + workflowid + "_" + requestid + "_"+ userid;
	
}

if (workflowRequestInfo != null ) {
	StaticObj staticObj = StaticObj.getInstance();
	synchronized(staticObj){
	    Map mapWfReqInfos = (Map)staticObj.getObject("MOBILE_WORKFLOWREQUESTINFO_CACHE");
		if(mapWfReqInfos == null){
			mapWfReqInfos = new FIFOLinkedHashMap(10000);
			staticObj.putObject("MOBILE_WORKFLOWREQUESTINFO_CACHE", mapWfReqInfos);	
		}
		mapWfReqInfos.put(wfReqInfoKey, workflowRequestInfo);
	}
}


if(workflowRequestInfo==null){
    %><span><%=SystemEnv.getHtmlLabelName(126572,user.getLanguage()) %></span><%
    return;
    //没有权限
}
canview = workflowRequestInfo.isCanView();
if (!"create".equals(method)) {
   isCanEditRemark =workflowRequestInfo.isCanEditRemark();
}
if(!workflowRequestInfo.isCanView() && intModule != -1004 && intModule != -1005) {
    //没有权限
    %><span><%=SystemEnv.getHtmlLabelName(126572,user.getLanguage()) %></span><%
    return;
}

if(workflowRequestInfo.getWorkflowHtmlShow()!=null){
	workflowHtmlShow = StringUtils.defaultIfEmpty(workflowRequestInfo.getWorkflowHtmlShow()[0],"");
} else {
	workflowHtmlShow = "";
}
workflowid = workflowRequestInfo.getWorkflowBaseInfo().getWorkflowId();
RecordSet rs_fna = new RecordSet();
rs_fna.executeQuery("select 1 from FnaInvoiceWfInfo where workflowid = ?", workflowid);
boolean isFna = rs_fna.next();
boolean isvalid = workflowServiceUtil.isValid(""+workflowid);
if(!isvalid){
    %><span><%=SystemEnv.getHtmlLabelName(126572,user.getLanguage()) %></span><%
    return;
    //没有权限
}

String nodeId = workflowRequestInfo.getCurrentNodeId();

String isBill = workflowRequestInfo.getWorkflowBaseInfo().getIsBill();
String formId = workflowRequestInfo.getWorkflowBaseInfo().getFormId();
String nownodeid = workflowRequestInfo.getNodeId();
String nodeid2 = "";

String nodeflag	= "";
RecordSet rs_nodeid = new RecordSet();
String nodeattrSql = "select a.nodeid from workflow_flownode a,workflow_nodebase b where a.nodeid=b.id and b.nodeattribute in ('2')  and a.workflowid="+workflowid+ " and a.nodeid = "+  nownodeid;
rs_nodeid.executeSql(nodeattrSql);
//判断当前节点为分叉中间点时才进去做判断
if(rs_nodeid.next()){
    nodeflag = "1";
}
if("1".equals(nodeflag)){
String sqlnodeid = "select * from workflow_currentoperator where requestid = "+ requestid + " and userid = " + userid + " and isremark = 0 order by id desc" ;

rs_nodeid.executeSql(sqlnodeid);
if(rs_nodeid.next()){
    nodeid2 = Util.null2String(rs_nodeid.getString("nodeid"));
}
if(!nodeid2.equals(nodeId)){
    nodeId =  nodeid2;
}
}

RecordSet prs = new RecordSet();
if( isBill.equals("1") ) {
    prs.executeProc("workflow_form_SByRequestid",requestid+"");
    if(prs.next()){
        billid= Util.getIntValue(prs.getString("billid"));
    }
}
int userLanguage = user.getLanguage();
userLanguage = (userLanguage == 0) ? 7:userLanguage;

String request_fieldShowValue = "";
String request_fieldShowIndex = "";
//标记是从微搜模块进入start
String fromES=Util.null2String((String)request.getParameter("fromES"));
//标记是从微搜模块进入end
//标记是从任务管理模块进入start
String fromTask=Util.null2String((String)request.getParameter("fromTask"));
//标记是从任务管理模块进入end
//自由流程相关信息
 weaver.workflow.request.WorkflowIsFreeStartNode stnode=new weaver.workflow.request.WorkflowIsFreeStartNode();
 String nodeidss= stnode.getIsFreeStartNode(""+nodeId);
 String freedis=stnode.getNodeid(nodeidss);
 String isornotFree=stnode.isornotFree(""+nodeId);
 //判断是不是创建保存



String isreject="";
 boolean iscreate=stnode.IScreateNode(""+requestid); 
 String nodetype="";
String 	isFree ="";
try{
	WFManager.setWfid(Util.getIntValue(""+workflowid));
	WFManager.getWfInfo();
	isFree = WFManager.getIsFree();
	prs.executeSql("select nodetype  from workflow_flownode where workflowid='"+workflowid+"' and nodeid='"+nodeId+"'");
	if(prs.next()){
			 nodetype = prs.getString("nodetype");
	}
}catch(Exception e){}        
 if(!isornotFree.equals("")&&!freedis.equals("")&&!iscreate&&(!"1".equals(isFree) || !"2".equals(nodetype))){
   isreject = "1";
 }
  String zjclNodeid=stnode.getIsFreeStart01Node(""+nodeId);
  int roomConflictChk=meetingSetInfo.getRoomConflictChk();
  int roomConflict= meetingSetInfo.getRoomConflict();
  int serviceConflictChk=meetingSetInfo.getServiceConflictChk();
  int serviceConflict=meetingSetInfo.getServiceConflict();
//是否是自由流程


boolean IsFreeWorkflow = false;
String freewftype = "";  //自由流程的类型,1:简易模式,2:高级模式
boolean isfreewfedit = false;
String freeNodeId = "";
String freeNodeName = "节点1";
String freeoperators = "";
String signtype = "";
//String currentNodeType = workflowRequestInfo.getCurrentNodeType();
String currentNodeType = Util.null2String(workflowRequestInfo.getCurrentNodeType());
if(workflowRequestInfo.getWorkflowBaseInfo().getIsFreeWorkflow().equals("1")){
	IsFreeWorkflow = true;
}
freewftype = workflowRequestInfo.getWorkflowBaseInfo().getFreewftype();
int testestesess = workflowRequestInfo.getIsremark();
boolean isfreeshow = false;
if(IsFreeWorkflow){
	if(requestid <= 0 || (currentNodeType.equals("0") && testestesess == 0)){
		isfreewfedit = true;
	}
	//只有手机端新建才能查看、编辑
    if(requestid <= 0){
    	isfreeshow = true;
    }
	freeNodeId = Util.null2String(workflowRequestInfo.getFreeNodeId());
	freeNodeName = Util.null2String(workflowRequestInfo.getFreeNodeName());
	freeoperators = Util.null2String(workflowRequestInfo.getOperators());
	signtype = Util.null2String(workflowRequestInfo.getSigntype());
}
if("".equals(signtype)){
	signtype = "2";
}
if(module.equals("-1005")){
	intervenorright=SysWFLMonitor.getWFInterventorRightBymonitor(userid,requestid);
}
if(intervenorright==2){
   // istoManagePage=false;
    canview=true;
    //nodeid=currentnodeid;
   // nodetype=currentnodetype;
}

//if(!canview) isurger=WFUrgerManager.UrgerHaveWorkflowViewRight(requestid,userid,Util.getIntValue(logintype,1));

//if("1".equals(ismonitor)){
 //   canview=false;
  //  intervenorright=0;	 //?
   //isurger=false;
//}



int isremark = workflowRequestInfo.getIsremark();
int takisremark = Util.getIntValue(workflowRequestInfo.getTakisremark()+"",0);
int preisremark=-1;//如果是流程参与人,该值会被赋予正确的值,在初始化时先设为错误值,以解决主流程参与人查看子流程时权限判断问题。TD10126
prs = new RecordSet();
prs.executeSql("select isremark,isreminded,preisremark,id,groupdetailid,nodeid,takisremark,(CASE WHEN isremark=9 THEN 7.5 ELSE isremark END) orderisremark from workflow_currentoperator where requestid="+requestid+" and userid="+userid+" and usertype="+usertype+" order by orderisremark,id ");
boolean istoManagePage=false;   //add by xhheng @20041217 for TD 1438
while(prs.next())	{
    preisremark=Util.getIntValue(prs.getString("preisremark"),0) ;   
}

//签字意见添加位置,

int isRemarkLocation = 0;
//存在位置字段
boolean includeLocation =  GPSLocationUtil.isInclude(isBill,formId);


int currentnodeid = 0;
int currentstatus = -1;//当前流程状态(对应流程暂停、撤销而言)
RecordSet crs = new RecordSet();
crs.executeProc("workflow_Requestbase_SByID",requestid+"");
if(requestid > 0){
    if(crs.next()){
        status  = Util.null2String(crs.getString("status")) ;
        requestname= Util.null2String(crs.getString("requestname")) ;
        requestlevel = Util.null2String(crs.getString("requestlevel"));
        requestmark = Util.null2String(crs.getString("requestmark")) ;
        creator = Util.getIntValue(crs.getString("creater"),0);
        
        creatertype = Util.getIntValue(crs.getString("creatertype"),0);
        deleted = Util.getIntValue(crs.getString("deleted"),0);
        //workflowid = Util.getIntValue(RecordSet.getString("workflowid"),0);
        currentnodeid = Util.getIntValue(crs.getString("currentnodeid"),0);
       // if(nodeId<1) nodeId = currentnodeid;
        //currentnodetype = Util.null2String(RecordSet.getString("currentnodetype"));
       //if(nodetype.equals("")) nodetype = currentnodetype;
        docCategory=Util.null2String(crs.getString("docCategory"));
        //workflowname = WorkflowComInfo.getWorkflowname(workflowid+"");
        //workflowtype = WorkflowComInfo.getWorkflowtype(workflowid+"");

        lastOperator = Util.getIntValue(crs.getString("lastOperator"),0);
        lastOperateDate=Util.null2String(crs.getString("lastOperateDate"));
        lastOperateTime=Util.null2String(crs.getString("lastOperateTime"));
        currentstatus = Util.getIntValue(crs.getString("currentstatus"),-1);
    }else{
        response.sendRedirect("/notice/Deleted.jsp?showtype=wf");
        return ;
    }
}


HashMap map = WfFunctionManageUtil.wfFunctionManageByNodeid(Util.getIntValue(workflowid,0),currentnodeid);
String rb = (String)map.get("rb");
String ov = (String)map.get("ov");//能否强制归档依据查看人所在节点是否有权限

if("1".equals(ismonitor)){
haveStopright = WfFunctionManageUtil.haveStopright(currentstatus,creator,user,currentNodeType,requestid,false);//流程不为暂停或者撤销状态,当前用户为流程发起人或者系统管理员,并且流程状态不为创建和归档
haveCancelright = WfFunctionManageUtil.haveCancelright(currentstatus,creator,user,currentNodeType,requestid,false);//流程不为撤销状态,当前用户为流程发起人,并且流程状态不为创建和归档
haveRestartright = WfFunctionManageUtil.haveRestartright(currentstatus,creator,user,currentNodeType,requestid,false);//流程为暂停或者撤销状态,当前用户为系统管理员,并且流程状态不为创建和归档
haveBackright=(preisremark!=1 && preisremark!=5 && preisremark!=8 && preisremark!=9 ) && !"0".equals(rb) && WfForceDrawBack.isHavePurview(requestid,userid,Integer.parseInt(logintype),-1,-1);
}
//haveOverright=(isremark != 1&&isremark != 9&&isremark != 5) && (("1".equals(ov) && "1".equals(ismonitor)) || WfForceOver.isNodeOperator(requestid,userid)) && !currentNodeType.equals("3");
if((isremark != 1&&isremark != 9&&isremark != 5) 
        && ("1".equals(ov) && "1".equals(ismonitor)) 
        && !currentNodeType.equals("3") ){
			if((WfFunctionManageUtil.haveOtherOperationRight(requestid)
            &&!WfForceOver.isOver(requestid) 
            && (WfForceOver.isNodeOperator(requestid, userid) 
                || WFUrgerManager.getMonitorViewRight(requestid, userid)))){
			       haveOverright = true;
			}

}
boolean haveDelright = false;
boolean monitorCanView = false;
//增加对流程当前所处节点类型的判断TD9023

if("1".equals(ismonitor)){
	MonitorDTO monitorInfo = Monitor.getMonitorInfo(userid+"", creator+"", workflowid);

//是否有删除权限
if(monitorInfo.getIsview()){
	monitorCanView = true;
}

        if(monitorInfo.getIsdelete() || monitorInfo.getIsforceover()) {
        	haveDelright = true;
		}

		}

String lastnodeid = ""; // 上一次退回操作的节点id
String isSubmitDirectNode = ""; // 上一次退回操作的节点是否启用退回后再提交直达本节点
int nodeid = -1; // 当前操作者所在节点id
crs.execute("select * from workflow_currentoperator where isremark = '0' and requestid=" + requestid + " and userid=" + userid + " and usertype=" + usertype + " order by id desc");
if(crs.next()) {
	nodeid = Util.getIntValue(Util.null2String(crs.getString("nodeid")), -1);
}
String sql_isreject = " select a.nodeid lastnodeid, a.logtype from workflow_requestlog a, workflow_nownode b where a.requestid = b.requestid and a.destnodeid = b.nownodeid "
	+ " and b.requestid=" + requestid + " and a.destnodeid=" + nodeid + " order by a.logid desc";
crs.executeSql(sql_isreject);
while(crs.next()) {
	String logtype = Util.null2String(crs.getString("logtype"));
	if("3".equals(logtype)) {
		lastnodeid = Util.null2String(crs.getString("lastnodeid"));
		break;
	}
	if("0".equals(logtype) || "2".equals(logtype) || "e".equals(logtype) || "i".equals(logtype) || "j".equals(logtype)){
		break;
	}
}
if(!"".equals(lastnodeid)) {
	crs.executeSql("select * from workflow_flownode where workflowid=" + workflowid + " and nodeid=" + lastnodeid);
	if(crs.next()) {
		isSubmitDirectNode = Util.null2String(crs.getString("isSubmitDirectNode"));
	}
}

boolean needcheckLock = workflowRequestInfo.isNeedCheckLock();
boolean islock = workflowRequestInfo.isLock();
LockDTO lockDTO = workflowRequestInfo.getLockDTO();
int lockscan = workflowRequestInfo.getLockscan();
String timestamp = System.currentTimeMillis() + "";
boolean islockInThisPage = false;


String carsql = "select isremind,remindtype from mode_carremindset WHERE isremind=1";
RecordSet carRs = new RecordSet();
carRs.executeSql(carsql);
boolean isCarFlow = false;
if(carRs.next()){
	if(formId.equals("163")){//用车申请系统表单
		isCarFlow = true;
	}else{
		carsql = "select 1 from carbasic where workflowid="+workflowid+" and isuse=1";
		carRs.executeSql(carsql);
		if(carRs.next()){
			isCarFlow = true;
		}
	}
}

//资产自定义流程类型
String cptwftype=CptWfUtil.getAllCptWftype(""+workflowid);
boolean isCptwf=false;
if(!"".equals(cptwftype)){
	isCptwf="fetch".equalsIgnoreCase(cptwftype)
			||"move".equalsIgnoreCase(cptwftype)
			||"lend".equalsIgnoreCase(cptwftype)
			||"discard".equalsIgnoreCase(cptwftype)
			||"back".equalsIgnoreCase(cptwftype)
			||"loss".equalsIgnoreCase(cptwftype)
			||"mend".equalsIgnoreCase(cptwftype)
			||"apply".equalsIgnoreCase(cptwftype)
			||"applyuse".equalsIgnoreCase(cptwftype);
}
//资产流程配置信息
String zicFieldId= "-1";//资产浏览框
int zcViewtype = 0;//主表/明细表示
String shulFieldId = "-1";//数量字段
int slViewtype = 0;//明细表
String lyslFieldId = "-1";
int lyslViewtype = 0 ;
String zczlFieldId = "-1";
int zczlViewtype = 0;
String zcbhFieldId = "-1";
int zcbhViewtype = 0;
String sqrFieldId = "-1";
int sqrViewtype = 0 ;
if(isCptwf){
	JSONObject jsonObject= CptWfUtil.getCptwfInfo(""+workflowid);
	zicFieldId= jsonObject.getString("zc"); //资
	zcViewtype=Util.getIntValue( ""+jsonObject.getInt("zctype"),0);//主表/明细表示
	shulFieldId = jsonObject.getString("sl");//数量字段
	slViewtype = Util.getIntValue( ""+jsonObject.getInt("sltype"),0);//明细表
	
	lyslFieldId = Util.null2s(jsonObject.getString("lysl"),"0");//领用数量
	lyslViewtype = Util.getIntValue( ""+jsonObject.getInt("lysltype"),0);//领用数量主表/明细表示
	zczlFieldId = Util.null2s(jsonObject.getString("zczl"),"0");//资产资料
	zczlViewtype = Util.getIntValue(""+jsonObject.getInt("zczltype"),0);//资产资料主表/明细表示
	zcbhFieldId = Util.null2s(jsonObject.getString("zcbh"),"0");//资产编号
	zcbhViewtype = Util.getIntValue(""+jsonObject.getInt("zcbhtype"),0);//资产编号主表/明细表示
	sqrFieldId = Util.null2s(jsonObject.getString("sqr"),"0");//申请人
	sqrViewtype = Util.getIntValue(""+jsonObject.getInt("sqrtype"),0);//申请人主表/明细表示
}

RequestSecondAuthService requestSecondAuthService = ServiceUtil.getService(RequestSecondAuthServiceImpl.class, user);
String checkSuccess = "";
Map<String,Object> secondAuthCheck = null;
if(requestid > 0){
	secondAuthCheck = requestSecondAuthService.checkProtectDatas(requestid, Util.getIntValue(workflowid), Util.getIntValue(formId), Util.getIntValue(isBill), nodeid);
	checkSuccess = (String)secondAuthCheck.get("success");//契约锁数据篡改校验  =2的时候,数据被篡改
}
%>
<html>
<head>
 <style type="text/css">
  .operatormessage {
		    border-top: #ccc solid 1px;
		    border-left: #ccc solid 1px;
		    border-right: #ccc solid 1px;
   }
  .requestIfons {
      border-bottom: #cdd2d8 solid 1px;
   }
   .message_before {
         content: "\00a0";
         width: 9px;
         height: 16px;
         left: -8px;
         position: absolute;
         background-image: url('/mobile/plugin/1/images/zuocezhijiao.png');
         background-size: 9px 16px;
         background-repeat: no-repeat;
         background-position: center left ;
         background-color:#fff;
    }
a{color:blue !important;}
.message-box{font-family:微软雅黑!important};


</style>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta name="author" content="Weaver E-Mobile Dev Group" />
	<meta name="description" content="Weaver E-mobile" />
	<meta name="keywords" content="weaver,e-mobile" />
	<%
     if(isFna){
     %>
         <meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, minimum-scale=1.0" />
     <%
     }else{
     %>
        <meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0" />
     <%  
     }
     %>
	<title></title>
	<script type='text/javascript' src='/mobile/plugin/1/js/jquery-1.6.2.min_wev8.js'></script>
	<link rel="stylesheet" href="/mobile/plugin/css/mobile_wev8.css" type="text/css">
	<!-- workflow 专用  -->
	<script type="text/javascript" src="/mobile/plugin/1/js/workflow_wev8.js"></script>
	<script type="text/javascript" src="/mobile/plugin/1/js/view_wev8.js?v=14"></script>
	<!--弹出框-->
	<script type="text/javascript" src="/js/mylibs/asyncbox/AsyncBox.v1.4_wev8.js"></script>
	<link rel="stylesheet" href="/js/mylibs/asyncbox/skins/ZCMS/asyncbox_wev8.css">
	<!--日期时间控件-->
	<link rel="stylesheet" href="/mobile/plugin/widget/mobiscroll/mobiscroll.min_wev8.css">
	<script type="text/javascript" src="/mobile/plugin/widget/mobiscroll/mobiscroll.min_wev8.js"></script>
	<!-- 富文本 -->
	<script type="text/javascript" src="/weaverEditor/kindeditor_wev8.js"></script>
	<script type="text/javascript" src="/mobile/plugin/1/js/wfUtil_wev8.js"></script>

	<!--客户自定义js-->
    <script type="text/javascript" src="/mobile/plugin/custom/custion_wev8.js"></script>
    
    <script src="/mobile/plugin/1/jqDialog/js/jqDialog.js"></script>
	<link rel="stylesheet" href="/mobile/plugin/1/jqDialog/css/jqDialog.css" type="text/css">

	<link rel="stylesheet" href="/mobile/plugin/1/css/r4_wev8.css" type="text/css">
	<link rel="stylesheet" href="/mobile/plugin/1/css/r6_wev8.css" type="text/css">
	<link rel="stylesheet" href="/mobile/plugin/1/css/client.css?v=2018032301" type="text/css">
	<link rel="stylesheet" href="/mobile/plugin/1/css/signstyle.css" type="text/css">
	<link rel="stylesheet" href="/css/crmcss/lanlv_wev8.css" type="text/css">
	<%if(IsFreeWorkflow){  %>
	<link rel="stylesheet" href="/mobile/plugin/1/css/freestyle_wev8.css" media="screen" type="text/css" />
	<%} %>
	<!-- onpropertychange事件支持 -->
	<script type="text/javascript">
	$.client = "mobile";
	$.browser = "mobile";
	</script>
	<script type="text/javascript" src="/wui/common/jquery/plugin/Listener_wev8.js"></script>
	<script type="text/javascript" src="/js/workflow/VCEventHandle_wev8.js"></script>
	<script type="text/javascript" src="/mobile/plugin/1/js/formatUtil_wev8.js"></script>
		
	<%if(includeLocation){%>
	<!-- 地图相关 -->
	<link rel="stylesheet" href="https://cache.amap.com/lbs/static/main.css?v=1.0" />
	<script src="https://cache.amap.com/lbs/static/es5.min.js"></script>
	<script src="https://webapi.amap.com/maps?v=1.3&key=ab13604106709a9ba50a95f8a59e6a4c&plugin=AMap.Geocoder"></script>
	<%} %>

	<script language="javascript">
function HideInter()
{
    $(".pageIntervaling").hide();
    //$("#tt2").hide();
}
</script>

	<SCRIPT LANGUAGE="JavaScript">

jQuery("#menu li").mouseover(function(){
jQuery(this).find("ul").css("display", "block");
});

jQuery("#menu li").mouseout(function(){
jQuery(this).find("ul").css("display", "none");
});

jQuery("#menu").bind("click", function(){
if(jQuery(this).attr("href") == "#"){
return false;
}
var txt_href = jQuery(this).attr("href");
jQuery.get(txt_href, function(result){
jQuery("#display").html(result);
});
return false;
});

</SCRIPT>

	<script type="text/javascript">
	
	var chromeOnPropListener = null;
	
    var f_weaver_belongto_userid = '<%=f_weaver_belongto_userid%>';
    var f_weaver_belongto_usertype = '<%=f_weaver_belongto_usertype%>';
    
	//加载监听器,页面打开调用一次;明细表添加调用一次,重置定时器监听的对象
	function loadListener(){
		if(chromeOnPropListener==null){
			chromeOnPropListener = new Listener();
		}else{
			chromeOnPropListener.stop();
		}
		chromeOnPropListener.load("[_listener][_listener!='']");
		chromeOnPropListener.start(500, "_listener");
	}
	</script>
	
	<script type="text/javascript">
	var promptWrod = "<%=SystemEnv.getHtmlLabelName(558, userLanguage)%>";
	var ectSignWrod = "<%=SystemEnv.getHtmlLabelName(30490, userLanguage)%>";
	var sureToDeleteWord = "<%=SystemEnv.getHtmlLabelName(23271, userLanguage)%>";
	var cj_mes_timeWord = "<%=SystemEnv.getHtmlLabelName(24569, userLanguage)%>!";
	var cj_bohaiLeave2_1 = "<%=SystemEnv.getHtmlLabelName(21721, userLanguage)%>";
	var cj_bohaiLeave2_2 = "<%=SystemEnv.getHtmlLabelName(21720, userLanguage)%>";
	var cj_bohaiLeave11_1 = "<%=SystemEnv.getHtmlLabelName(131656, userLanguage)%>";
	var cj_bohaiLeave11_2 = "<%=SystemEnv.getHtmlLabelName(131655, userLanguage)%>";
	var cj_bohaiLeave12_1 = "<%=SystemEnv.getHtmlLabelName(84604, userLanguage)%>";
	var cj_bohaiLeave12_2 = "<%=SystemEnv.getHtmlLabelName(82767, userLanguage)%>";
	var needremarklabel = "<%=SystemEnv.getHtmlLabelName(26013, userLanguage)%>";
	
	//带薪假标签拆成如下两种
	var cj_bohaiLeave100_1 = "<%=SystemEnv.getHtmlLabelName(382595, userLanguage)%>";
	var cj_bohaiLeave100_2 = "<%=SystemEnv.getHtmlLabelName(382588, userLanguage)%>";
	var cj_bohaiLeave100_3 = "<%=SystemEnv.getHtmlLabelName(127389, userLanguage)%>";
	
	var cj_bohaiLeave101_1 = "<%=SystemEnv.getHtmlLabelName(382589, userLanguage)%>";
	var cj_bohaiLeave101_2 = "<%=SystemEnv.getHtmlLabelName(382590, userLanguage)%>";
	var cj_bohaiLeave101_3 = "<%=SystemEnv.getHtmlLabelName(382591, userLanguage)+SystemEnv.getHtmlLabelName(127389,user.getLanguage())%>";
		
	var bodyScrollLeft = 0;
	var fieldIdRemindType;
	var fieldIdRemindBeforeStart;
	var fieldIdRemindBeforeEnd;
	var fieldIdRemindTimesBeforeStart;
	var fieldIdRemindTimesBeforeEnd;
	var clientVersion=0;
	var clienttype="<%=clienttype%>";
	
	var js_userid = "<%=userid%>";
	var js_sessionkey = "<%=sessionkey %>";
	var js_module = "<%=module %>";
	var js_scope = "<%=scope %>";
	var js_fromRequestid = "<%=fromRequestid %>";

	var js_requestid = "<%=requestid %>";
	var js_nodeid = "<%=nodeId %>";
	var js_clientlevel = "<%=clientlevel%>";
	var js_clientVer = "<%=clientVer %>";
	var js_workflowid = "<%=workflowid%>";
	var js_clienttype="<%=clienttype%>";
	var js_isBill = "<%=isBill %>";
	var js_formid = "<%=formId%>";
	var lastnodeid = "<%=lastnodeid %>";
	var isSubmitDirectNode = "<%=isSubmitDirectNode %>";
	
	var __needCheckPassword = true;//是否需要校验二次密码
	
	var js_fromES="<%=fromES%>";
	var isnewVersion = false;
	var js_fromTask = "<%=fromTask%>";
	var RoomConflictChk="<%=roomConflictChk%>";
	var RoomConflict="<%=roomConflict%>"
	var buttonswitch = "<%=buttonswitch%>";
	var ServiceConflictChk="<%=serviceConflictChk%>";
	var ServiceConflict="<%=serviceConflict%>";
	//字段属性联动依赖的全局对象
	var wf__info = {
		"requestid": js_requestid,
		"workflowid": js_workflowid,
		"nodeid": js_nodeid,
		"formid": js_formid,
		"isbill": js_isBill,
		"f_bel_userid": "<%=userid %>",
		"f_bel_usertype": "<%=usertype %>",
		"belmobile": true,
		"datassplit": "<%=FieldAttrManager.DATAS_SEPARATOR %>",
		"paramsplit": "<%=FieldAttrManager.PARAM_SEPARATOR %>",
		"valuesplit": "<%=FieldAttrManager.VALUE_SEPARATOR %>"
	};
</SCRIPT>
<!-- 抽出 -->
<script type="text/javascript" src="/mobile/plugin/1/js/view/1_wev8.js?v=2018032301"></script>

<%


if(currentstatus>-1&&!haveCancelright&&!haveRestartright)
{
    String tips = "";
    if(currentstatus==0)
    {
        tips = SystemEnv.getHtmlLabelName(26154,user.getLanguage());//流程已暂停,请与流程发起人或系统管理员联系!
    }
    else
    {
        tips = SystemEnv.getHtmlLabelName(26155,user.getLanguage());//流程已撤销,请与系统管理员联系!
    }
%>
    <script language="JavaScript">
        var tips = '<%=tips%>';
        if(tips!="")
        {
            alert(tips);
            goBack();
        }
        try
        {
            setTimeout('top.window.close()',1);
        }
        catch(e)
        {
            window.location.href="/notice/noright.jsp?isovertime=1";
        }
    </script>
<%
} %>
<script type="text/javascript" src="/mobile/plugin/1/js/view/htmlAttr_wev8.js"></script>
<%if(isremark!=2&&isremark!=4&&takisremark!=-2){%>
<script type="text/javascript" src="/workflow/exceldesign/js/fieldAttrOperate_wev8.js"></script>
<%}%>
<!--js 国际化-->
<script type="text/javascript" src="/js/ecology8/lang/weaver_lang_<%=user.getLanguage()%>_wev8.js"></script>
<script type="text/javascript" src="/mobile/plugin/1/js/workflowsign_wev8.js"></script>
<script type="text/javascript">
	window.onscroll = function(){
		bodyScrollLeft = document.body.scrollLeft;
	}
	window.onresize = winResize;
	var ckInterval = null;
	var fieldId =-1;
	var geolocation;
	$(document).ready(function () {
	//	HideInter();
		<%
		if (!"create".equals(method)) {
		%>
		var data ;
        var Resourcedata;
		//加载签字意见
		try{
		    isfirst = true;
		    remarksignloadClinet();
		}catch(e){}

		<%
		}
		%>
		setRedflag();
		initFormPage();
		ckInterval = setInterval("setRedflag()",1000);
		try {
	        clearInterval(ckInterval);
	    } catch (e){}
        setInterval("setRedflag()",1000);
		
		$("a[href='#'][data-rel='dialog']").attr("href","javascript:void(0);");
		if(clienttype=="android"||clienttype=="androidpad"){
			clientVersion=mobileInterface.getClientVersion();
		}
		
		var $viewMainTable = jQuery("table[class='ViewForm outertable']");
		if($viewMainTable != null){
			if($viewMainTable.width() > document.body.clientWidth){
				document.getElementById("view_header").style.width = $viewMainTable.width() + 10;
				document.getElementById("header").style.width = $viewMainTable.width() + 10;
			}
		} 
				            //调整表单中签字意见的样式
        jQuery(".td_edesign").find("a").each(function(){
            var clickEvent = jQuery(this).attr("onclick");
            //调整地图事件
            //从openMap(121.493072,31.243081,"上海市虹口区提篮桥街道武昌路58号") 调整为 signRowLocationTouchend("1461115406108,121.493072,31.243081,上海市虹口区提篮桥街道武昌路58号")
            if(clickEvent != undefined && clickEvent.indexOf("parent.openMap(") >= 0){
                try{
                    var tempclickEvent = clickEvent.substring(clickEvent.indexOf("parent.openMap("));
                    tempclickEvent = tempclickEvent.substring(0,tempclickEvent.indexOf(");") + 2);
	                var clickEventOpenmap = clickEvent.substring(clickEvent.indexOf("parent.openMap(") + 15);
	                clickEventOpenmap = clickEventOpenmap.substring(0,clickEventOpenmap.indexOf(");"));
                    clickEventOpenmap = clickEventOpenmap.replace("\"" , "");
                    clickEventOpenmap = clickEventOpenmap.replace("\"" , "");
	                clickEventOpenmap = "signRowLocationTouchend('1461115406108," + clickEventOpenmap + "');";
	                clickEvent = clickEvent.replace(tempclickEvent,clickEventOpenmap);
                    jQuery(this).removeAttr("href");
                    this.style.height = "auto";
	                jQuery(this).attr("onclick",clickEvent);
                }catch(e){}
            }
            //附件
            if(clickEvent != undefined && clickEvent.indexOf("openFullWindowHaveBar('/docs/docs/DocDsp.jsp?id=") >= 0){
                try{
                    var tempAttachid = clickEvent.substring(clickEvent.indexOf("openFullWindowHaveBar('/docs/docs/DocDsp.jsp?id=") + 48);
                    tempAttachid = tempAttachid.substring(0,tempAttachid.indexOf("&"));
                    var clickEvent = "toDocument(" + tempAttachid + ");";
                    jQuery(this).removeAttr("href");
                    jQuery(this).attr("onclick",clickEvent);
                }catch(e){}
            }
            var aHref = jQuery(this).attr("href");
            //文档
            if(aHref != undefined && aHref.indexOf("/docs/docs/DocDsp.jsp") >= 0){
                try{
                    var tempDocid = aHref.substring(aHref.indexOf("/docs/docs/DocDsp.jsp?id=") + 25);
                    tempDocid = tempDocid.substring(0,tempDocid.indexOf("&"));
                    var clickEvent = "toDocument(" + tempDocid + ");";
                    jQuery(this).removeAttr("href");
                    jQuery(this).attr("onclick",clickEvent);
                }catch(e){}
            }
            //流程
            if(aHref != undefined && aHref.indexOf("/workflow/request/ViewRequest.jsp") >= 0){
                try{
                    var tempReqid = aHref.substring(aHref.indexOf("requestid=") + 10);
                    tempReqid = tempReqid.substring(0,tempReqid.indexOf("&"));
                    var clickEvent = "toRequest(" + tempReqid + ");";
                    jQuery(this).removeAttr("href");
                    jQuery(this).attr("onclick",clickEvent);
                }catch(e){}
            }
        
        });

		<%if(includeLocation){
			if(module.equals("-1004") || module.equals("-1005")){
			    %>
			    try{
			        for (var i=0; i<window._autoLocateFields.length; i++) {
			           var autofield = window._autoLocateFields[i]; 
			           jQuery('#showInfo' + autofield ).val(jQuery("#module" + autofield).val());
			        }
			    }catch(e){
			    }
			    <%
			}else{
		%>
			createMap();
        	autoLocate();
		<%}}%>		<%if(needcheckLock && !islock){
			LockUtil.lockRequest(requestid+"",nodeid+"",userid+"",timestamp);
			islockInThisPage = true;
		%>
		var scanFrequency = parseInt('<%=lockscan%>',10) * 60000;
		var intval = setInterval(function(){
			jQuery.ajax({
			    url: "/mobile/plugin/checkLockAjax.jsp?type=updatelock&requestid=<%=requestid%>&userid=<%=userid%>&nodeid=<%=nodeid%>&timestamp=<%=timestamp%>",
			    dataType: "text", 
				type:"post",
				async:true,
			    contentType : "charset=gbk", 
			    error:function(ajaxrequest){}, 
			    success:function(data){
			    	data = jQuery.trim(data);
			    	if(data == 'false'){
			    		clearInterval(intval);
			    		//unEffictiveAlert();
			    	}
			    }  
		}); 
		},scanFrequency);

	<%}%>
        setTimeout(reloadAllSelectchange,500);
	});


	<%if (workflowHtmlShow != null && !"".equals(workflowHtmlShow)) {%>
    jQuery(document).ready(function(){
	<%if(isremark!=2&&isremark!=4&&takisremark!=-2){%>
	  try{
		$("tr[name^='trView_']").each(function(){
		      var trname=$(this).attr("name");
			  if(trname.indexOf("_")!=-1){
				   var trrowindex=trname.split("_")[2];
                   detailattrshow(trrowindex);
			  }
		});
		$("button[name^='addbutton']").click(function(){
		    var tableindex=$(this).attr("name").replace("addbutton","");
			var trrowindex = (new Number($("#nodenum"+tableindex).val())-1);
			detailattrshow(trrowindex);
		});
	  }catch(e){}
	 <%}%>
         try{
			  formuaAttrShow(0);
			  $("tr[name^='trView_']").each(function(){
				  var trname=$(this).attr("name");
				  if(trname.indexOf("_")!=-1){
					   var trrowindex=trname.split("_")[2];
					   formuaAttrShowDetail(trrowindex);
					  try{
							$("td[_cellattr]").each(function(){
								var _cellattr =  $(this).attr("_cellattr");
							    if(_cellattr.indexOf("$[")!=-1){
									var tdNameStr=$(this).parent().attr("name");
                                     var tdrowindexstr="";
                                      if(tdNameStr!=null&&tdNameStr!=undefined){
                                                tdrowindexstr=tdNameStr.split("_")[2];
                                       }
									 $(this).attr("_cellattr",_cellattr.replace("$[","").replace("]$","")+"_"+tdrowindexstr)
								}
								
							});

							$("td[_fieldid]").each(function(){
								var _fieldid =  $(this).attr("_fieldid");
								 if(_fieldid.indexOf("$[")!=-1){
									var tdNameStr=$(this).parent().attr("name");
                                       var tdrowindexstr="";
                                       if(tdNameStr!=null&&tdNameStr!=undefined){
                                             tdrowindexstr=tdNameStr.split("_")[2];
                                       }
									$(this).attr("_fieldid",_fieldid.replace("$[","").replace("]$","")+"_"+tdrowindexstr);
								}
							});

							  $("td[_formula]").each(function(){
								var _formula =  $(this).attr("_formula");
								 if(_formula.indexOf("$[")!=-1){
								   $(this).attr("_formula",_formula.replace("$[","").replace("]$",""));
								 }
							});
						}catch(e){
						}
				  }
			 });
			 $("button[name^='addbutton']").click(function(){
				 var tableindex=$(this).attr("name").replace("addbutton","");
				 var trrowindex = (new Number($("#nodenum"+tableindex).val())-1);
				 formuaAttrShowDetail(trrowindex);
			 });
		  }catch(e){}

	  	 try{
				if($("strong").parent("span").length>0){
					   $("strong").each(function(){
							if($(this).attr("style")==undefined){
								  if($(this).parent("span").attr("style")!=undefined||$(this).parent("span").attr("style")!=''){
									   $(this).attr("style",$(this).parent("span").attr("style"));
								  }
							}
					   });
				}
		   }catch(e){}
   });
<%}%>

    //重新加载页面上的选择框联动
    function reloadAllSelectchange(){
        jQuery("input[type='hidden'][id^='field'][id$='child'][value^='field']").each(function(){
            var fieldid = 0;
            try{
                fieldid = parseInt(this.id.substring(5).replace("child",""),10);
            }catch(e){}
            if(fieldid > 0){
                jQuery("#field" + fieldid).trigger("change");
            }
        });
    }

		    /**
     * 图片调整大小
     */
    function image_resize(_this) {
        var innerWidth = window.innerWidth;
        var imgWidth = $(_this).width();
        if (imgWidth >= innerWidth) {
            $(_this).width("100%");
            $(_this).removeAttr("height");
            $(_this).css("height", "");
        }
    }
    var touchmoveFlag = false;
    $(document).bind("touchmove",function(){
        touchmoveFlag = true;
    });
    $(document).bind("touchstart",function(){
        touchmoveFlag = false;
    });
    function signRowLocationTouchend(remarkLocationStr){
        if(touchmoveFlag){
            return;
        }
        if(remarkLocationStr!=""){
		    var infos = remarkLocationStr.split(",");
		    if(infos.length == 4){
		        var returnSre ="emobile:openaddress";
		        returnSre +=":" + infos[1];
		        returnSre +=":" + infos[2];
		        returnSre +=":" + infos[3];
		        location = returnSre;
		    }
	   }
    }
	function signRowUserTouchend(operatorUserid){
        if(touchmoveFlag){
            return;
        }
        //toURL("/mobile/plugin/1/clientInfo.jsp?userInfo=emoble:openUserinfo:" + operatorUserid,false);
    }
    //获取本周是一年中的第几周  
    function getWeekOfYear(date) {   
        var d1 = date;  
        var d2 = new Date(date.getFullYear(), 0, 1);  
        var d = Math.round((d1 - d2) / 86400000);   
        return Math.ceil((d + ((d2.getDay() + 1) - 1)) / 7);   
    }
    var weekday=new Array(7)
    weekday[0]="<%=SystemEnv.getHtmlLabelName(398, userLanguage)%>";
    weekday[1]="<%=SystemEnv.getHtmlLabelName(392, userLanguage)%>";
    weekday[2]="<%=SystemEnv.getHtmlLabelName(393, userLanguage)%>";
    weekday[3]="<%=SystemEnv.getHtmlLabelName(394, userLanguage)%>";
    weekday[4]="<%=SystemEnv.getHtmlLabelName(395, userLanguage)%>";
    weekday[5]="<%=SystemEnv.getHtmlLabelName(396, userLanguage)%>";
    weekday[6]="<%=SystemEnv.getHtmlLabelName(397, userLanguage)%>";
    var $autoFun;
    var remarkLoadingFlag = false;
    /**
     * 加载签字意见
    */
        var isfirst;
               function remarksignloadClinet(){
        //避免重复加载
        if(remarkLoadingFlag) return;
        remarkLoadingFlag = true;
        var paras = getUrlParam();
        //显示正在加载的旋转图片。

        if(paras.loadingTarget!=null) jQuery(paras.loadingTarget).showLoading();
        util.getData({
            "loadingTarget": document.body,
            "paras": paras,
            "callback": function(data) {
                if (data.error) {
                    //第一次加载删除加载图标

                    if (isfirst != undefined && isfirst != null && isfirst == true) {
                        $("#workflowrequestsignblock").hide();
                        
                        //第一次加载,如果没有数据,则隐藏  流转意见 标签
                        jQuery("#page_remarksign_Title_div").css("display","none");
                        jQuery("#workflowrequestsignblock").css("display","none");
                    } else {
                        $("#workflowsignmore").remove();
                    }
                } else {
                    var pageindex = data.pageindex;
                    var pagesize = data.pagesize;
                    var count = data.count;
                    var ishavepre = data.ishavepre;
                    var ishavenext = data.ishavenext
                    var pagecount = data.pagecount;
                    $("input[name='workflowsignid']").val(pageindex);
                    var viewsignHtml = "";
                    var currentPageDataCnt = new Date().getTime();
                    if (data.logs != undefined && data.logs != null && count != "0") {
                        $.each(data.logs, 
                        function(i, item) {
                            currentPageDataCnt++;
                            var annexDocHtmls = item.annexDocHtmls;
                            var id = item.id;
                            var nodeId = item.nodeId;
                            var nodeName = item.nodeName;
                            var operateDate = item.operateDate;
                            var operateTime = item.operateTime;
                            var operateType = item.operateType;
                            var operatorDept = item.operatorDept;
                            var operatorId = item.operatorId;
                            var operatorName = item.operatorName;
                            var operatorAgentorFrom = item.operatorAgentorFrom;
                            var operatorAgentorTo = item.operatorAgentorTo;
                            var operatorAgentLog = item.operatorAgentLog;
                            var operatorSign = item.operatorSign;
                            var customSign = item.customSign;
                            
                            var receivedPersons = item.receivedPersons;
                            var remark = item.remarkClient;
                            var remarkSign = item.remarkSign;
                            var signDocHtmls = item.signDocHtmls;
                            var signWorkFlowHtmls = item.signWorkFlowHtmls;
                            var operatorSignIcon = item.operatorSignIcon;
                            var nodeRowName = '节点';
                            var operationRowName = '操作';
                            var receivedRowName = '接收人';
                            var accessoryRowName = '相关附件';
                            var signDocHtmlsRowName = '相关文档';
                            var signWorkFlowHtmlsRowName = '相关流程';
                            viewsignHtml += "<div class='message_content'>";
                            
                            var operatorUser = <%=user.getUID()%>;
                            var leftoperatorName = operatorName;
                            if(!util.isNullOrEmpty(operatorAgentorTo)){
                                leftoperatorName = operatorAgentorTo;
                            }
                            if(!util.isNullOrEmpty(operatorAgentLog)){
                                operatorName = operatorAgentLog;
                            }
                            if(operatorSignIcon == "/messager/images/icon_w_wev8.jpg" || operatorSignIcon == "/messager/images/icon_m_wev8.jpg"){
                                operatorSignIcon = "";
                            }
                            if(!util.isNullOrEmpty(operatorSignIcon)){
                                viewsignHtml += "<div class='operatorface' onclick='signRowUserTouchend(\"" + operatorId + "\")'><img src=\"" + operatorSignIcon + "\"></div>";
                            }else{
                                viewsignHtml += "<div class='operatorface_noicon' onclick='signRowUserTouchend(\"" + operatorId + "\")'>" + leftoperatorName + "</div>";
                            }
                            viewsignHtml += "<div class='operatormessage'>" + "<div class='message_before'></div>";
                            
                            viewsignHtml += "  <div class=\"signRow_yijian\" key=\""+i+"\">";
                            var handWrittenSignSrc = new Array();
                            var SpeechDisplayHtmls = new Array();
                            if (remarkSign != null && remarkSign != undefined) {
                            } else {
                                if(operateType != "抄送"){
	                                $('#remarkTempDiv').html('');
	                                $('#remarkTempDiv').html(remark);
									var handWrittenSignStr="";
	                                $('#remarkTempDiv').find('[name="handWrittenSign"]').each(function(){
										if($(this).attr("src") != handWrittenSignStr){
											  handWrittenSignSrc.push($(this).attr("src"));
										}
									    handWrittenSignStr=$(this).attr("src");
                                        $(this).remove();
	                                });
                                    $('#remarkTempDiv').find('.divSpeechDisplay').each(function(){
                                        if($(this).find("audio").length > 0){
	                                       SpeechDisplayHtmls.push($(this).html());
	                                       $(this).remove();
                                        }
                                    });
	                                $('#remarkTempDiv').find("embed").remove();
	                                remark = $('#remarkTempDiv').html();
	                                //remark = remark.replace('<span style="font-size:11px;color:#666;">来自android客户端</span>','');
	                                
                                    $('#remarkTempDiv').html(remark);
                                    /*for(var brCnt = 0; brCnt < $('#remarkTempDiv').find('br').length; brCnt++){
                                        if($($('#remarkTempDiv').find('br')[brCnt]).next().length > 0 && $($('#remarkTempDiv').find('br')[brCnt]).next()[0].tagName == "BR"){
                                            $($('#remarkTempDiv').find('br')[brCnt]).next().remove();
                                            brCnt--;
                                        }
                                    }*/
                                    remark = $('#remarkTempDiv').html();
                                    viewsignHtml += remark;
                                }
                            }
                            viewsignHtml += "</div>";
                            if (remarkSign != null && remarkSign != undefined) {
                                viewsignHtml += "  <div class=\"signRow_yijian 2\">";
                                viewsignHtml += "<div style=\"width:100%;clear:both\">" + "    <img src=\"/weaver/weaver.file.FileDownload?fileid=" + remarkSign + "\" onload='image_resize(this);' onresize='image_resize(this);' onclick='javascript:imgCarousel(this);'>" + "</div>";
                                viewsignHtml += "</div>";
                            }
                            
                            var regExpCss = new RegExp(/text-decoration\:underline\;color\:blue\;cursor\:hand\;/g);
                            var regExpBr = new RegExp(/<br\/>/g);
                            if (!util.isNullOrEmpty(signDocHtmls)) {
                                signDocHtmls = signDocHtmls.replace(regExpCss,"display:block;");
                                signDocHtmls = signDocHtmls.replace(regExpBr,"");
                                viewsignHtml += "<div class=\"signRow 1\">" + signDocHtmls + "</div>";
                            }
                            if (!util.isNullOrEmpty(signWorkFlowHtmls)) {
                                signWorkFlowHtmls = signWorkFlowHtmls.replace(regExpCss,"display:block;");
                                signWorkFlowHtmls = signWorkFlowHtmls.replace(regExpBr,"");
                                viewsignHtml += "<div class=\"signRow 3\">" + signWorkFlowHtmls + "</div>";
                            }
                            
                            if(handWrittenSignSrc.length >0 ){
                                viewsignHtml += "  <div class=\"signRow_yijian\">";
                                var handWrittenSignHtml = "<div style='clear:both'>";
                                for(var imgCnt = 0 ; imgCnt < handWrittenSignSrc.length ; imgCnt++){
                                    var imageSrc = handWrittenSignSrc[imgCnt];
                                    if(imageSrc.indexOf("/download.do?fileid=/download.do") >= 0){
                                       imageSrc = imageSrc.replace("/download.do?fileid=/download.do","/download.do");
                                    }
									if(imageSrc.indexOf("/download.do") >= 0){
	                                       imageSrc = imageSrc.replace("/download.do","/weaver/weaver.file.FileDownload");
	                                }
                                    handWrittenSignHtml +="<div class='speechAttachment'>";
                                    handWrittenSignHtml +="<img src='" + imageSrc + "'";
                                    handWrittenSignHtml +="  onload='image_resize(this);' onresize='image_resize(this);' onclick='javascript:imgCarousel(this);'>";
                                    handWrittenSignHtml +="</div>";
                                }
                                handWrittenSignHtml +="</div>";
                                viewsignHtml += handWrittenSignHtml;
                                viewsignHtml += " </div>";
                            
                            }
                            var signRow_yijian1Html = "";
                            var imageSrcs = new Array();
                            if (!util.isNullOrEmpty(annexDocHtmls)) {
                                annexDocHtmls = annexDocHtmls.replace(regExpCss,"display:block;");
                                annexDocHtmls = annexDocHtmls.replace(regExpBr,"");
                                $('#remarkTempDiv').html('');
                                $('#remarkTempDiv').append($(annexDocHtmls));
                                var linkSrcs = new Array();
                                $('#remarkTempDiv').find("span").each(function(){
                                    var linksrc = $(this).attr("onclick");
                                    if(linksrc != "" && linksrc.indexOf("toURL('") >= 0){
                                        linksrc = linksrc.substring(linksrc.indexOf("toURL('") + 7);
                                        linksrc = linksrc.substring(0,linksrc.indexOf("'"));
                                        if(linksrc.length > 3 && (linksrc.substring(linksrc.length - 3)=="jpg"
                                                                  || linksrc.substring(linksrc.length - 3)=="png"
                                                                  || linksrc.substring(linksrc.length - 3)=="gif")){
                                            imageSrcs.push(linksrc);
                                        }else{
                                            linkSrcs.push(this.outerHTML);
                                        }
                                        $(this).remove();
                                    }
                                });
                                var tempannexDocHtmls = "";
                                if($('#remarkTempDiv').find("span").length > 0){
                                    tempannexDocHtmls = $('#remarkTempDiv').html();
                                }
                                if(linkSrcs.length > 0){
                                    for(var imgCnt = 0 ; imgCnt < linkSrcs.length ; imgCnt++){
                                        var linkSrc = linkSrcs[imgCnt];
                                        linkSrc = linkSrc.replace("/download.do?fileid=/download.do","/download.do");
                                        tempannexDocHtmls += linkSrc;
                                    }
                                }
	                            if(imageSrcs.length > 0){
	                                var attachfileHtml = "<div style='clear:both'>";
	                                for(var imgCnt = 0 ; imgCnt < imageSrcs.length ; imgCnt++){
	                                    var imageSrc = imageSrcs[imgCnt];
	                                    if(imageSrc.indexOf("/download.do?fileid=/download.do") >= 0){
	                                       imageSrc = imageSrc.replace("/download.do?fileid=/download.do","/download.do");
	                                    }
										if(imageSrc.indexOf("/download.do") >= 0){
	                                       imageSrc = imageSrc.replace("/download.do","/weaver/weaver.file.FileDownload");
	                                    }

	                                    attachfileHtml +="<div class='attachfileDiv'>";
	                                    attachfileHtml +="<img src='" + imageSrc + "'";
	                                    attachfileHtml +="  onload='image_resize(this);' onresize='image_resize(this);' onclick='javascript:imgCarousel(this);'>";
	                                    attachfileHtml +="</div>";
	                                }
	                                signRow_yijian1Html += attachfileHtml;
	                                signRow_yijian1Html += " </div>";
	                            }
                                if(tempannexDocHtmls != ""){
                                    var regExpCss = new RegExp(/text-decoration\:underline\;color\:blue\;cursor\:hand\;/g);
                                    var regExpBr = new RegExp(/<br\/>/g);
                                    tempannexDocHtmls = tempannexDocHtmls.replace(regExpBr,"");
                                    tempannexDocHtmls = tempannexDocHtmls.replace(regExpCss,"display:block;");
                                    signRow_yijian1Html += "<div class=\"signRow 2\" style=\"padding-left:0px;\">" + tempannexDocHtmls + "</div>";
                                }
                                
                            }
                            if(signRow_yijian1Html != ""){
	                            viewsignHtml += "  <div class=\"signRow_yijian 1\">";
                                viewsignHtml += signRow_yijian1Html;
	                            viewsignHtml += "</div>";
                            }
                            if(SpeechDisplayHtmls.length >0 ){
                                viewsignHtml += "  <div class=\"signRow_yijian\">";
                                var SpeechDisplayHtml = "<div class='divSpeechDisplay'>";
                                for(var audCnt = 0 ; audCnt < SpeechDisplayHtmls.length ; audCnt++){
                                    var audHtml = SpeechDisplayHtmls[audCnt];
                                    if(audHtml != ""){
	                                    SpeechDisplayHtml += audHtml;
                                    }
                                }
                                handWrittenSignHtml +="</div>";
                                viewsignHtml += SpeechDisplayHtml;
                                viewsignHtml += " </div>";
                            
                            }
							viewsignHtml += "  <div class=\"signRow_yijian 4\" key=\"4"+i+"\">";
                            viewsignHtml += "</div>";
                            if(!util.isNullOrEmpty(customSign)) {
                                viewsignHtml += "  <div class=\"signRow_yijian 3\">";
                                viewsignHtml += "<div class=\"operatorSign\"><img src=\"" + customSign +"\" onload='image_resize(this);' onresize='image_resize(this);' onclick='javascript:imgCarousel(this);' ></div>";
                                viewsignHtml += "</div>";
                            }
							
                            var remarkLocationStr = item.remarkLocation;
                            if(!util.isNullOrEmpty(remarkLocationStr)){
                                if(remarkLocationStr.lastIndexOf(",") >= 0){
                                    var locationStr = remarkLocationStr.substring(remarkLocationStr.lastIndexOf(",")+1);
                                    viewsignHtml += "<div class=\"signRowLocation\" ontouchend=\"signRowLocationTouchend('" + remarkLocationStr + "')\">" + locationStr + "</div>";
                                }
                            }
                            viewsignHtml += "<div class='signRow_operate'><div class=\"signRow_operatorname\">" + operatorName + "</div> <div class=\"signRow_operateTime\">" + operateType + "  " + operateDate + "&nbsp;" + operateTime + "" + "</div></div>";
                            viewsignHtml += "<div class=\"signRow_nodetotal\">";
                            viewsignHtml += "<div class=\"signRow_nodename\"><span>" + nodeRowName + ":</span>" + nodeName + "</div>"; 
                            viewsignHtml += "<div class=\"signRow_nodeTypename\"><span>" + operationRowName + ":</span>" + operateType + "</div>";
                            viewsignHtml += "<div class=\"signRow_receivedName\"><span>" + receivedRowName + ":</span>" + receivedPersons + "</div>";
                            viewsignHtml += "</div>";
                            
                            viewsignHtml += "</div>";
                            viewsignHtml += "</div>";
                        });
                    }
                    //第一次加载删除加载图标

                    if (isfirst != undefined && isfirst != null && isfirst == true) {
                        $("#workflowrequestsignblock").html("");
                        
                        //第一次加载,如果没有数据,则隐藏  流转意见 标签
                        if(data.logs == undefined || data.logs == null || count == "0"){
                            jQuery("#page_remarksign_Title_div").css("display","none");
                            jQuery("#workflowrequestsignblock").css("display","none");
                        }
                    }
                    $("#cleaboth").remove();
                    $("#workflowsignmore").remove();
                    $("#remarkShowMore").hide();
                    if (ishavenext == "1") {
                        var moreRowName = '展开全部';
                        $("#remarkShowMore").html("<%=SystemEnv.getHtmlLabelName(82720,user.getLanguage())%>");
                        $("#remarkShowMore").show();
                        jQuery(window).bind("scroll",autoScrollSign);
                    }else{
                        $("#remarkShowMore").hide();
                        jQuery(window).unbind("scroll",autoScrollSign);
                    }
                    $("#workflowrequestsignblock").append(viewsignHtml);
                    $("#workflowrequestsignblock").append("<div style='display:none' id='msgTool'></div>");
                    //在新加载的页面上,可能包含语音附件的播放按钮,则需要对其进行隐藏。

                    hiddenSpeechBtn();
                    $(".signRow_yijian").find("img").each(function(i,e) {
                       var imgsrc = $(e).attr("src");
                       if(imgsrc.indexOf("data:image/png;base64") == 0){
                            $(e).bind("touchend",function(){
                                //过滤滑动事件
                                if(touchmoveFlag){return;}
                                toURL(imgsrc,false);
                            });
                       }
                       if(imgsrc =="data:image/png;base64,null"){
                           $(e).attr("src","/mobile/plugin/1/images/blog_photo_failure.png");
                           $(e).css("height","77px");
                       }
                    });
                    //去掉地图链接
                    $(".signRow_yijian").find("a").each(function() {
                    
                        if($(this).attr("atsome") != undefined && $(this).parent().attr("contenteditable") != undefined){
                            $(this).parent().html($(this).html());
                        }else if($(this).attr("__noshow") !="undefined"){
                            $(this).remove();
                        }
                        
                    });
                    //去除空行
                    $(".signRow_yijian").children().each(function() {
                        if(this.tagName == "SPAN" && $(this).html() == "来自iPhone客户端"){
                           // $(this).remove();
                        }
                        if(this.tagName == "P" || this.tagName == "p"){
                            var innerHtml = $(this).html();
                            innerHtml = innerHtml.replace(/&nbsp;/ig, "");
                            if(innerHtml.trim() == "") {
                                $(this).remove();
                            }
                        }
                    });
                    //去除"来自iPhone客户端"
					var  signrowyijianHtml="";
                    $(".signRow_yijian").find("span").each(function() {
						 var htmlyijian=$(this).html();
                         if($(this).attr("style")=='font-size:11px;color:#666;'&&htmlyijian.indexOf("客户端")!=-1){
							$(this).hide();
							var key=$(this).parent().attr("key");
							 $("div[key='4"+key+"']").html("<span class=\"mobilesignMifxx\" style=\"font-size:11px;color:#666;\">"+$(this).html()+"</span>");
                             
                        }
                    });
					$(".mobilesignMifxx").each(function(){$(this).show();});
					
                    
                    $(".signRow_operate").unbind("click");
                    $(".signRow_operate").bind("click",function(){
                       //过滤滑动事件
                       if(touchmoveFlag){return;}
                       $(this).parent().find(".signRow_nodetotal").toggle();
                       $(this).toggleClass("signrow_endline");
                       $(this).find(".signRow_operateTime").toggleClass("signrow_endline");
                       $(this).find(".signRow_operatorname").toggleClass("signrow_endline");
                       $(this).find(".signRow_operateTime").toggleClass("signRow_operateTime_open");
                    });
                    var topHeight= $("#page_remarksign_Title_div").offset().top;
                    var windowHeight = document.body.clientHeight  + window.screen.height - window.screen.availHeight;
                    
                    $(".signRow").find("span").each(function(){
                        $(this).attr("style","display:block;");
                        var clickevent = $(this).attr("onclick");
                        if(clickevent.length > 10 && clickevent.substring(0,10) == "toDocument"){
                            $(this).addClass("signRow_Docspan");
                        }else if(clickevent.length > 9 && clickevent.substring(0,9) == "toRequest"){
                            $(this).addClass("signRow_WFspan");
                        }
                    });
                    if(isfirst && parseInt(topHeight) > parseInt(windowHeight) -36 ){
                       $("#page_remarksign_Title_div").addClass('<%="1".equals(buttonswitch)?"fixedBottomDivWeb":"fixedBottomDiv"%>');
                    }
                    $("#page_remarksign_Title_div").bind("touchend",function(){
                        if(touchmoveFlag){
                            return;
                        }
                        $("#page_remarksign_Title_div").removeClass('<%="1".equals(buttonswitch)?"fixedBottomDivWeb":"fixedBottomDiv"%>');
                        //防止此时触发加载更多
                        jQuery(window).unbind("scroll",autoScrollSign);
                        $(document).scrollTop(topHeight);
                        jQuery(window).bind("scroll",autoScrollSign);
                    });
                    $(".operatormessage").each(function(){
                        //$(this).width($(document).width() - ($(document).width()*0.22));
                    });
                    
                    //$(window).scroll(function() {
                    $(window).scroll(function() {
                        var currTop = $(window).scrollTop();
                        var scrollTopFlag = false;
                        if(currTop < prevTop){
                            scrollTopFlag = true;
                        }
                        <%
                        if("android".equals(clienttype)||"androidpad".equals(clienttype)||"Webclient".equals(clienttype)){%>
                        if(parseInt(topHeight) > parseInt($(document).scrollTop()) + windowHeight- $("#page_remarksign_Title_div").height() + window.screen.height - window.screen.availHeight - <%="1".equals(buttonswitch)?88:50%>){
                        <%}else{%>
                        if(parseInt(topHeight) > parseInt($(document).scrollTop()) + windowHeight  - $("#page_remarksign_Title_div").height() + window.screen.height - window.screen.availHeight - <%="1".equals(buttonswitch)?88:50%>){
                        <%}%>
                            if($("#page_remarksign_Title_div").attr("class") == undefined || $("#page_remarksign_Title_div").attr("class").indexOf('<%="1".equals(buttonswitch)?"fixedBottomDivWeb":"fixedBottomDiv"%>') == -1){
                                $("#page_remarksign_Title_div").addClass('<%="1".equals(buttonswitch)?"fixedBottomDivWeb":"fixedBottomDiv"%>');
                            }
                        }else{
                            $("#page_remarksign_Title_div").removeClass('<%="1".equals(buttonswitch)?"fixedBottomDivWeb":"fixedBottomDiv"%>');
                        }
                        prevTop = currTop;
					});
                    $(document).bind("touchmove",function(){
                        if(parseInt(topHeight) > parseInt($(document).scrollTop()) + windowHeight - $("#page_remarksign_Title_div").height() + window.screen.height - window.screen.availHeight - <%="1".equals(buttonswitch)?88:50%>){
                            if($("#page_remarksign_Title_div").attr("class").indexOf('<%="1".equals(buttonswitch)?"fixedBottomDivWeb":"fixedBottomDiv"%>') == -1){

                                $("#page_remarksign_Title_div").addClass('<%="1".equals(buttonswitch)?"fixedBottomDivWeb":"fixedBottomDiv"%>');
                            }
                        }else{
                            $("#page_remarksign_Title_div").removeClass('<%="1".equals(buttonswitch)?"fixedBottomDivWeb":"fixedBottomDiv"%>');
                        }
                    });
                    
                    //修改播放器样式
                    $(".divSpeechDisplay").find("audio").each(function(){
                       if($(this).parent().find(".audioPlaybutton").length> 0) {
                            return;
                       }
                       var audio = this;
                       var audioParent = $(this).parent();
                       var playHtml = "";
                       playHtml +="<div class='audioPlaybutton'>&nbsp;</div>";
                       playHtml +="<div class='audioDurationDiv'>&nbsp;</div>";
                       //playHtml +="<video src='" + audio.src + "' controls='true'></video>";
                       audio.style.display = "none";
                       audioParent.append($(playHtml));
                       audioParent.find(".audioPlaybutton").add(audioParent.find(".audioDurationDiv")).bind("touchend",function(){
					        if(touchmoveFlag){
					            return;
					        }
                            $audioDurationDiv = audioParent.find(".audioDurationDiv");
                            if(audioParent.find(".audioPlaybutton").attr("class").indexOf("audioPausebutton") >= 0){
                                audio.pause();
                            }else{
                                audioParent.find(".audioPlaybutton").addClass("audioPausebutton");
                                audio.play();
                            }
                       });
                       $(audio).bind("pause",function() {
                            $audioDurationDiv = audioParent.find(".audioDurationDiv");
                            clearAuto();
                        });
                       $(audio).bind("ended",function() {
                            $audioDurationDiv = audioParent.find(".audioDurationDiv");
                            clearAuto();
                        });
                       $(audio).bind("playing",function() {
                            $audioDurationDiv = audioParent.find(".audioDurationDiv");
                            autoSlide();
                        });
                       
                       
                    });
                    remarkLoadingFlag = false;
                }
            }
        })
    
    }

    function imgCarousel(touchobj) {
         toURL(jQuery(touchobj).attr("src"),false);
	}

    var prevTop = 0;
    var $audioDurationDiv;
    var Durationcount=0;
    function autoSlide(){
        Durationcount += 50;
        if(Durationcount == 10000){
            Durationcount = 0;
        }
        $audioDurationDiv.css("background-position","center left " + Durationcount + "px")
        $autoFun = setTimeout(autoSlide, 150);//
    }
    function clearAuto(){ 
       $audioDurationDiv.parent().find(".audioPlaybutton").removeClass("audioPausebutton");
       clearTimeout($autoFun); 
    } 
    //加载更多
    function doexpandRemark(){
	    $("#remarkShowMore").html("处理中...");
	    jQuery("#workflowsignmore").attr("onclick", "");
	    $("#workflowsignmore").css("background", "#A4A4A4");
	    $("#workflowsignmore").css("border", "1px solid #A4A4A4");
	    isfirst = false;
	    remarksignloadClinet();
	}
    function autoScrollSign(){
        if(document.body.scrollHeight < $(document).scrollTop() + window.screen.availHeight){
            doexpandRemark();
        }
        //过滤滑动事件
    }

	
	//各种浏览按钮通用
	function showDialog(url, data) {
	    data += "&f_weaver_belongto_userid=<%=f_weaver_belongto_userid%>&f_weaver_belongto_usertype=<%=f_weaver_belongto_usertype%>";
		data =joinFieldParams(data);
		<% //if(!"".equals(workflowHtmlShow)){ %>
		//如果是手机Html模式,需要对浏览按钮中的弹出框地址作修改。
			url = "/mobile/plugin/browser.jsp";
		<%// } %>

		try{
			
			var returnIdField = "";
			var returnShowField = "";
			var browserMethod = "";
			var browserTypeId = "";
			var customBrowType = "";
			var joinFieldParamsStr = "";
			var isMuti = "";
			var linkhref = "";
			
			var paramsArray = data.split("&");
			for (var i=0; i<paramsArray.length; i++) {
				var paramstr = paramsArray[i];
				
				var paramkv = paramstr.split("=");
				if (paramkv.length > 1) {
					if ("returnIdField" == paramkv[0]) {
						returnIdField = paramkv[1];
					}
					if ("returnShowField" == paramkv[0]) {
						returnShowField = paramkv[1];
					}
					
					if ("method" == paramkv[0]) {
						browserMethod = paramkv[1];
					}
					if ("isMuti" == paramkv[0]) {
						isMuti = paramkv[1];
					}
					if("joinFieldParams" == paramkv[0]){
					     joinFieldParamsStr = paramkv[1];
					}
					if("linkhref" == paramkv[0]){
						linkhref = paramkv[1];  
					}
				}
			}
			if(window._fna_fieldId_jsonObj_array){ //TODO 多明细表报销,科目浏览框
				try{
			    	var _indexno = "";
			    	var fieldIDArray = returnIdField.split("_");
			    	if(fieldIDArray!=null){
		                if(fieldIDArray.length>=2){
		                    _fieldID = fieldIDArray[0].replace("field","");
		                    _indexno = fieldIDArray[1];
		                }else{
		                    _fieldID = fieldIDArray[0].replace("field","");
						}
			    	}
					var fieldId_jsonObj_array_len = _fna_fieldId_jsonObj_array.length;
					for(var i00=0; i00<fieldId_jsonObj_array_len; i00++){
						var _fna_fieldId_jsonObj = _fna_fieldId_jsonObj_array[i00];
						var _fna_fieldIsDtl_jsonObj = _fna_fieldIsDtl_jsonObj_array[i00];
						
						var dt1_FkCdztlx_fieldId = _fna_fieldId_jsonObj.getFkCdztlx_fieldId;//承担主体类型 字段 fieldId
						var dt1_FkBxgr_fieldId = _fna_fieldId_jsonObj.getFkBxgr_fieldId;
						var dt1_FkBxbm_fieldId = _fna_fieldId_jsonObj.getFkBxbm_fieldId;
						var dt1_FkBxfb_fieldId = _fna_fieldId_jsonObj.getFkBxfb_fieldId;
						var dt1_FkBxcbzx_fieldId = _fna_fieldId_jsonObj.getFkBxcbzx_fieldId;
						var dt1_subject = _fna_fieldId_jsonObj.getFkBxkm_fieldId;
						//var dt1_budgetperiod = _fna_fieldId_jsonObj.getFkFyrq_fieldId;
						//var dt1_applyamount = _fna_fieldId_jsonObj.getFkBxje_fieldId;
				
						var dt1_FkCdztlx_isDtl = _fna_fieldIsDtl_jsonObj.getFkCdztlx_isDtl;//承担主体类型 字段 位置
						var dt1_FkBxgr_isDtl = _fna_fieldIsDtl_jsonObj.getFkBxgr_isDtl;
						var dt1_FkBxbm_isDtl = _fna_fieldIsDtl_jsonObj.getFkBxbm_isDtl;
						var dt1_FkBxfb_isDtl = _fna_fieldIsDtl_jsonObj.getFkBxfb_isDtl;
						var dt1_FkBxcbzx_isDtl = _fna_fieldIsDtl_jsonObj.getFkBxcbzx_isDtl;
						var dt1_subject_isDtl = _fna_fieldIsDtl_jsonObj.getFkBxkm_isDtl;
						//var dt1_budgetperiod_isDtl = _fna_fieldIsDtl_jsonObj.getFkFyrq_isDtl;
						//var dt1_applyamount_isDtl = _fna_fieldIsDtl_jsonObj.getFkBxje_isDtl;
						//alert("1810 _indexno="+_indexno);
						//alert("1810 dt1_subject="+dt1_subject+", _fieldID="+_fieldID);
						//alert("1810 dt1_subject="+(dt1_subject == _fieldID));
						//当前触发的字段 fieldid, 定位到了
						if(dt1_subject == _fieldID){
							//定位承担主体类型, 承担主体ID start
							var dt1_organizationid = -1;
							var dt1_organizationid_isDtl = -1;
							var orgtype = getWfMainAndDetailFieldValueForMobile(dt1_FkCdztlx_fieldId, dt1_FkCdztlx_isDtl, _indexno);
							if(orgtype=="0"){
								dt1_organizationid = dt1_FkBxgr_fieldId;
							    dt1_organizationid_isDtl = dt1_FkBxgr_isDtl;
 								orgtype = "3";
							}else if(orgtype=="1"){
								dt1_organizationid = dt1_FkBxbm_fieldId;
							    dt1_organizationid_isDtl = dt1_FkBxbm_isDtl;
 								orgtype = "2";
							}else if(orgtype=="2"){
								dt1_organizationid = dt1_FkBxfb_fieldId;
							    dt1_organizationid_isDtl = dt1_FkBxfb_isDtl;
 								orgtype = "1";
							}else if(orgtype=="3"){
								dt1_organizationid = dt1_FkBxcbzx_fieldId;
							    dt1_organizationid_isDtl = dt1_FkBxcbzx_isDtl;
 								orgtype = "<%=FnaCostCenter.ORGANIZATION_TYPE%>";
							}
							var orgid = getWfMainAndDetailFieldValueForMobile(dt1_organizationid, dt1_organizationid_isDtl, _indexno);
							//定位承担主体类型, 承担主体ID end
							//alert("1839 orgtype="+orgtype+",orgid="+orgid);
							//dialogurl = dialogurl + "orgType=" + orgtype+"%26orgId="+orgid+"%26fromFnaRequest=1";
							var _fnaUrlPara1 = "orgid="+orgid+"&orgtype="+orgtype+"&isFnaSubmitRequest4Mobile=1";
							data = data+"&"+_fnaUrlPara1;
							break ;
						 }//当前触发的字段 fieldid, 定位到了
					}//for end
				}catch(ex2){}
			}else if(window._isFnaSubmitRequestJs4MobileWf&&
    	            ((window.dt1_organizationtype&&window.dt1_organizationid)||(window.dt1_organizationtype2&&window.dt1_organizationid2))
			){
				var _browserMethod_old = browserMethod;
		    	var _fieldID = "";
		    	var _indexno = "";
		    	var fieldIDArray = returnIdField.split("_");
		    	if(fieldIDArray!=null){
	                if(fieldIDArray.length>=2){
	                    _fieldID = fieldIDArray[0].replace("field","");
	                    _indexno = fieldIDArray[1];
	                }else{
	                    _fieldID = fieldIDArray[0].replace("field","");
					}
		    	}
                if(_fieldID!=""&&(_fieldID==window.dt1_organizationid || _fieldID==window.dt1_organizationid2)){
	                var _dt1_organizationtype_isDtl = "1";
                    var orgtype = "";
                    if(_fieldID==window.dt1_organizationid){
	                    if(window.dt1_organizationtype_isDtl){
	                    	_dt1_organizationtype_isDtl = window.dt1_organizationtype_isDtl;
		                }
                    	orgtype = getWfMainAndDetailFieldValueForMobile(window.dt1_organizationtype, _dt1_organizationtype_isDtl, _indexno);
                    	
	                }else if(_fieldID==window.dt1_organizationid2){
	                    if(window.dt1_organizationtype2_isDtl){
	                    	_dt1_organizationtype_isDtl = window.dt1_organizationtype2_isDtl;
		                }
                    	orgtype = getWfMainAndDetailFieldValueForMobile(window.dt1_organizationtype2, _dt1_organizationtype_isDtl, _indexno);
                    	
	                }
                    
                    if(orgtype=="0"){
                        browserMethod="listUser";
                    }else if(orgtype=="1"){
                        browserMethod="listDepartment";
                    }else if(orgtype=="2"){
                        browserMethod="listSubCompany";
                    }else if(orgtype=="3"){
                        browserMethod="listFnaCostCenter";
                    }
                    try{
                        data=data.replace("&method="+_browserMethod_old+"&","&method="+browserMethod+"&");
                    }catch(ex2){}
                    
                }else if(_fieldID!=""&&(_fieldID==window.dt1_subject || _fieldID==window.dt1_subject2)){
	                var _dt1_organizationtype_isDtl = "1";
                    var orgtype = "";
	                var _dt1_organizationid_isDtl = "1";
                    var orgid = "";
                    if(_fieldID==window.dt1_subject){
	                    if(window.dt1_organizationtype_isDtl){
	                    	_dt1_organizationtype_isDtl = window.dt1_organizationtype_isDtl;
		                }
                    	orgtype = getWfMainAndDetailFieldValueForMobile(window.dt1_organizationtype, _dt1_organizationtype_isDtl, _indexno);
	                    if(window.dt1_organizationid_isDtl){
	                    	_dt1_organizationid_isDtl = window.dt1_organizationid_isDtl;
		                }
	                    orgid = getWfMainAndDetailFieldValueForMobile(window.dt1_organizationid, _dt1_organizationid_isDtl, _indexno);
	                    
	                }else if(_fieldID==window.dt1_subject2){
	                    if(window.dt1_organizationtype2_isDtl){
	                    	_dt1_organizationtype_isDtl = window.dt1_organizationtype2_isDtl;
		                }
                    	orgtype = getWfMainAndDetailFieldValueForMobile(window.dt1_organizationtype2, _dt1_organizationtype_isDtl, _indexno);
	                    if(window.dt1_organizationid2_isDtl){
	                    	_dt1_organizationid_isDtl = window.dt1_organizationid2_isDtl;
		                }
	                    orgid = getWfMainAndDetailFieldValueForMobile(window.dt1_organizationid2, _dt1_organizationid_isDtl, _indexno);
	                    
	                }

                    if(orgtype=="0"){
                        orgtype="3";
                    }else if(orgtype=="1"){
                        orgtype="2";
                    }else if(orgtype=="2"){
                        orgtype="1";
                    }else if(orgtype=="3"){
                        orgtype="<%=FnaCostCenter.ORGANIZATION_TYPE%>";
                    }
                    
                    try{
                        var _fnaUrlPara1 = "orgid="+orgid+"&orgtype="+orgtype+"&isFnaSubmitRequest4Mobile=1";
                        
                        if(window.dt1_subject == window.dt1_subject2){
                    		var _dt1_organizationtype2_isDtl = "1";
                    		var _dt1_organizationid2_isDtl = "1";
                       		var orgtype2 = "";
                       	 	var orgid = "";
                        	if(_fieldID==window.dt1_subject){
                        		if(window.dt1_organizationtype2_isDtl){
                        			_dt1_organizationtype2_isDtl = window.dt1_organizationtype2_isDtl;
        		                }
                            	orgtype2 = getWfMainAndDetailFieldValueForMobile(window.dt1_organizationtype2, _dt1_organizationtype2_isDtl, _indexno);
        	                    if(window.dt1_organizationid2_isDtl){
        	                    	_dt1_organizationid2_isDtl = window.dt1_organizationid2_isDtl;
        		                }
        	                    orgid2 = getWfMainAndDetailFieldValueForMobile(window.dt1_organizationid2, _dt1_organizationid2_isDtl, _indexno);
                        		
                        	}else if(_fieldID==window.dt1_subject2){
                        		if(window.dt1_organizationtype_isDtl){
                        			 _dt1_organizationtype2_isDtl = window.dt1_organizationtype_isDtl;
         		                }
                             	orgtype2 = getWfMainAndDetailFieldValueForMobile(window.dt1_organizationtype, _dt1_organizationtype2_isDtl, _indexno);
         	                    if(window.dt1_organizationid_isDtl){
         	                    	_dt1_organizationid2_isDtl = window.dt1_organizationid_isDtl;
         		                }
         	                    orgid2 = getWfMainAndDetailFieldValueForMobile(window.dt1_organizationid, _dt1_organizationid2_isDtl, _indexno);
                        	}

                       	 	if(orgtype2=="0"){
                                orgtype2="3";
                            }else if(orgtype2=="1"){
                           	 	orgtype2="2";
                            }else if(orgtype2=="2"){
                           	 	orgtype2="1";
                            }else if(orgtype=="3"){
                           	 	orgtype2="<%=FnaCostCenter.ORGANIZATION_TYPE%>";
                            }
                       	 	
                       	 	_fnaUrlPara1 += "&orgid2="+orgid2+"&orgtype2="+orgtype2+"&billid=<%=billid%>";
                        }
                        
                        data = data+"&"+_fnaUrlPara1;
                    }catch(ex2){}
                    
                }
			}
			if(window._FnaSubmitRequestJsRepayFlag || window._FnaSubmitRequestJsReimFlag){
				var _fieldID = "";
		    	var _indexno = "";
		    	var fieldIDArray = returnIdField.split("_");
		    	if(fieldIDArray!=null && fieldIDArray.length>=2){
		    		_fieldID = fieldIDArray[0].replace("field","");
		    		_indexno = fieldIDArray[1];
		    	}else{
		    		_fieldID = returnIdField.replace("field","");
		    	}
				if(_fieldID!=""&&_fieldID==window.dt2_fieldIdJklc){
					data = data+"&isFnaRepayRequest4Mobile=1&fnaWfRequestid="+js_requestid;
					if(window.main_fieldIdSqr_controlBorrowingWf && window.main_fieldIdSqr){
						data += "&main_fieldIdSqr_controlBorrowingWf="+window.main_fieldIdSqr_controlBorrowingWf+"&main_fieldIdSqr_val="+jQuery("#field"+window.main_fieldIdSqr).val();
					}
				}else if(_fieldID!=""&&_fieldID==window.main_fieldIdFysqlc && window._FnaSubmitRequestJsReimFlag){
					data = data+"&isFnaRequestApplication4Mobile=1&fnaWfRequestid="+js_requestid;
				}
			}
            if(browserMethod=='listFnaBudgetFeeType' || browserMethod=='listFnaCostCenter'){
                try{
                    var _UrlPara1 = "fnaworkflowid=<%=workflowid%>&fnafieldid="+returnIdField;
                    data = data+"&"+_UrlPara1;
                }catch(ex2){}
            }
            
		}catch(ex2){}
		if(data.indexOf("method=listFnaBudgetFeeType") === -1 ){
		  showDialog2(url, data);
		}else{
		  fnaBudgetfeetypeTreeBrowser(data);
		}
		//showDialog2(url, data);
	}
	
	function getTrack(fieldid){
		//弹出位置轨迹的窗口

		window.location.href="/mobile/plugin/1/showLocationTrack.jsp?title=<%=SystemEnv.getHtmlLabelName(22981,user.getLanguage()) %><%=SystemEnv.getHtmlLabelName(126093,user.getLanguage())%>"
				+"&wfid=<%=workflowid%>&requestId=<%=requestid%>&fieldId="+fieldid +"&clienttype=" + clienttype +"&module=<%=module%>&scope=<%=scope%>&clientlevel=<%=clientlevel%>" ;
	}	
	
	function isNeedAffirmance() {
		return <%=workflowRequestInfo.isNeedAffirmance() %>;
	}
	
	function getIsselectrejectnode() {
		return <%=workflowRequestInfo.getWorkflowBaseInfo().getIsselectrejectnode() %>;
	}
	
	function doLeftButton() {
		if(<%=fromRequestid%> > 0 || "<%=fromES%>"=="true"||"<%=fromTask%>"=="true"){
			goBack();
			return 1;
		}
	}
	
	function dataInput(parfield, strFieldName){
		if(<%=workflowRequestInfo.isCanEdit()%>){
		  var strData="id=<%=workflowid%>&node=<%=nodeId%>&trg="+parfield;
		  dataInput2(parfield, strFieldName, strData);
		}
	}
	
	function isNeedAffirmance() {
		return <%=workflowRequestInfo.isNeedAffirmance() %>;
	}
	
	function docheckreject(){
		return docheckreject2(<%="2".equals(workflowRequestInfo.getTempletStatus()) %>);
	}
		
	function doreject(_this){
		if(jQuery("#SubmitToNodeid").length > 0) {
			jQuery("#SubmitToNodeid").val("");
		}
		doreject2(_this, <%=1 <= workflowRequestInfo.getWorkflowBaseInfo().getIsselectrejectnode() %>);
	}
	function dorejectIsfree(_this){
		if(jQuery("#SubmitToNodeid").length > 0) {
			jQuery("#SubmitToNodeid").val("");
		}
		 if(remarksignCheck("reject")){
	<%
	if(freedis.equals("1")){%>
	 $('#src').val("reject");
	 $('#workflowfrm').submit();
	<%}else{
	%>
	 var url = "/mobile/plugin/browser.jsp";
	 var datas = encodeURI("&returnIdField=rejectToNodeid&returnShowField=rejectToNodeName&method=listBrowserData&browserTypeId=-100&customBrowType=<%=workflowid%>|<%=requestid%>|<%=nodeId%>&isMuti=0");
	 showDialog(url, datas);
	 <%}%>
		 }
	}
	
	//主表信息
	function getSignatureStatus() {
		return <%="1".equals(workflowRequestInfo.getSignatureStatus()) %>;
	}
	function getTempletStatus() {
		return <%="1".equals(workflowRequestInfo.getTempletStatus()) %>;
	}
	
	function isMustInputRemark(src) {
		if("reject" == src) {
			return <%=workflowRequestInfo.isRejectMustInputRemark() %>;
		}else {
		return <%=workflowRequestInfo.isMustInputRemark() %>;
		}
	}
	
	//为了能在custompage4Emoble中定义的jsp中重写提交事件此处,添加了一个流程生成的提交按钮的事件的入口函数
	function doSubmit_4Mobile(_object, _callBackFunType){
	
		var workflowid = '<%=workflowid%>';
	    var formId = '<%=formId%>';
	    if(<%=isCarFlow%>){
	    	if(_callBackFunType==1||_callBackFunType==2||_callBackFunType==3){
				var status = checkCarSubmit(workflowid,formId);
		    	if(!status){
		       		return ;
		    	}	
			}
	    }
	    if(<%=isCptwf%>){
            if(_callBackFunType==1||_callBackFunType==2||_callBackFunType==3){
                var status = checkCptSubmit();
                if(status){
                    return ;
                }  
            }
        }
        
		if(_callBackFunType==1){
			return dosubmit(_object);
		}else if(_callBackFunType==2){
			return dosubnoback(_object);
		}else if(_callBackFunType==3){
			return dosubback(_object);
		}
	}
	
	function checkCptSubmit(){
    	var cptwftype="<%=cptwftype%>";
    	var zcviewtype = '<%=zcViewtype %>';
    	var slviewtype = '<%=slViewtype %>';
    	var lyslviewtype = '<%=lyslViewtype %>';
        var zczlviewtype = '<%=zczlViewtype %>';
        var ret = false;
        if(cptwftype != "applyuse"&&cptwftype != "apply"){
	        if(zcviewtype!=slviewtype&&cptwftype != "change"){
	    		//主表、明细表配置问题
				alert("<%=SystemEnv.getHtmlLabelName(84466,user.getLanguage())%>");
				return true;
			}
	    	var temprequestid = '<%=requestid%>';
	    	var poststr = "";
	    	var check_flag = false;
	    	
	    	if(zcviewtype==0){//主字段
		    	var zcid = jQuery("input[name='field"+<%=zicFieldId %>+"']").val();//领用的资产id
		    	var cptnum = jQuery("input[name='field"+<%=shulFieldId %>+"']").val();//领用的数量
				if(zcid!=undefined && zcid!=""&&cptnum!=undefined && cptnum!=""){
                    poststr += "|"+zcid+","+ cptnum;
                }else if(zcid!=undefined&&zcid!=""&&(cptnum==undefined||cptnum=="")){
                	if(cptwftype != "change"){
                		check_flag = true;
                	}
			    }
			}else{
				var indexElement = zcviewtype*1.0-1 ;//明细
				var indexnum0 = jQuery("#nodenum"+indexElement).val(); //所有行的明细行号
				var delnum = jQuery("#deleteRowIndex"+indexElement).val(); //删除行的明细行号
				if(delnum!=undefined&&delnum!=""){
					delnum = ","+delnum;
				}
				for(var index=0;index<indexnum0;index++){
					//index,不在删除的index中,判断
					if(delnum.indexOf(","+index+",")<=-1){
						var zcid_d = jQuery("#field"+<%=zicFieldId%>+"_"+index+"_d").val();//领用的资产id
			    		var cptnum_d = jQuery("#field"+<%=shulFieldId%>+"_"+index+"_d").val();//领用的数量
						
						var zcid = jQuery("#field"+<%=zicFieldId%>+"_"+index).val();//领用的资产id
			    		var cptnum = jQuery("#field"+<%=shulFieldId%>+"_"+index).val();//领用的数量
						if(zcid_d!=undefined){
							zcid = zcid_d;
							cptnum = cptnum_d;
						}
			    	
					    if(cptnum==undefined||cptnum==""){
                         	if(zcid!=undefined&&zcid!=""){
                         		if(cptwftype != "change"){
	                				check_flag = true;
	                				}
                         		}
                         }else{
                         	if(zcid!=undefined&&zcid!=""){
                         		poststr += "|"+zcid+","+ cptnum;
                         	}
                         }
					}
				}
			}
			if(check_flag){
	            alert("<%=SystemEnv.getHtmlLabelNames("503026,82241",user.getLanguage())%>");
	            ret = true;
            }else{
            	if(poststr!=""){
					poststr =poststr.substr(1);
					jQuery.ajax({
						url : "/mobile/plugin/1/CptIfOverAjax.jsp",
						type : "get",
						async : false,
						data: {poststr:poststr,requestid:temprequestid,requestid:<%=requestid%>},
						dataType : "json",
						success: function do4Success(data){
							if(data&&data.msg && data.msg!=""){
								alert(data.msg);
								ret = true;
							}
						}
					});	
				}
            }
	        return ret;
        }else if(cptwftype == "apply"){
            if(zczlviewtype!=slviewtype){
                //主表、明细表配置问题
                alert("<%=SystemEnv.getHtmlLabelName(84466,user.getLanguage())%>");
                return ;
            }
            var markstr = "";
            if(zczlviewtype==0){//主字段
                var zczl = jQuery("input[name='field"+<%=zczlFieldId %>+"']").val();//资产资料
		    	var cptnum = jQuery("input[name='field"+<%=shulFieldId %>+"']").val();//入库数量
                var zcbh = jQuery("input[name='field"+<%=zcbhFieldId %>+"']").val();
                var sqr = jQuery("input[name='field"+<%=sqrFieldId %>+"']").val(); 
                if(zczl==undefined||zczl==""){ //如果资产资料未选择 流程继续
                    
                }else if(zcbh !="" && zcbh != null){
					markstr += "|sqr:"+sqr+",zczl:"+zczl+",zcbh:"+ zcbh+",cptnum:"+ cptnum;
				}
            }else{
            	var indexElement = zczlviewtype*1.0-1 ;//明细
				var indexnum0 = jQuery("#nodenum"+indexElement).val(); //所有行的明细行号
				var delnum = jQuery("#deleteRowIndex"+indexElement).val(); //删除行的明细行号
				if(delnum!=undefined&&delnum!=""){
					delnum = ","+delnum;
				}
				for(var index=0;index<indexnum0;index++){
					//index,不在删除的index中,判断
					if(delnum.indexOf(","+index+",")<=-1){
						var zczl_d = jQuery("#field"+<%=zczlFieldId%>+"_"+index+"_d").val();//资产资料:删除
			    		var cptnum_d = jQuery("#field"+<%=shulFieldId%>+"_"+index+"_d").val();//入库数量
						var zcbh_d = jQuery("#field"+<%=zcbhFieldId%>+"_"+index+"_d").val();//资产编码
			    		var sqr_d = jQuery("#field"+<%=sqrFieldId%>+"_"+index+"_d").val();//申请人
			    		
						var zczl = jQuery("#field"+<%=zczlFieldId%>+"_"+index).val();//资产资料
			    		var cptnum = jQuery("#field"+<%=shulFieldId%>+"_"+index).val();//入库数量
			    		var zcbh = jQuery("#field"+<%=zcbhFieldId%>+"_"+index).val();//资产编码
			    		var sqr = jQuery("#field"+<%=sqrFieldId%>+"_"+index).val();//申请人
			    		
						if(zczl_d!=undefined){
							zczl = zczl_d;
							cptnum = cptnum_d;
							zcbh = zcbh_d;
							sqr = sqr_d;
						}
			    	
			    		if(zczl==undefined||zczl==""||){ //如果资产资料未选择 流程继续
                                
                        }else if(zcbh !="" && zcbh != null){
                            markstr += "|sqr:"+sqr+",zczl:"+zczl+",zcbh:"+ zcbh+",cptnum:"+ cptnum;
                        }
					}
				}
            }
            if(markstr!=""){
                markstr = markstr.substr(1);
                jQuery.ajax({
	                url : "/mobile/plugin/1/CptCheckMark.jsp",
	                type : "post",
	                async : false,
	                processData : false,
	                data : "markstr="+markstr,
	                dataType : "json",
	                success: function do4Success(data){
	                    if(data&&data.msg && data.msg!=""){
	                        alert(data.msg);
	                        ret = true;
	                    }
	                }
	            });
            }
            return ret;
        }else if(cptwftype == "applyuse"){
            if(zczlviewtype!=slviewtype || zczlviewtype!=lyslviewtype){
                //主表、明细表配置问题
                alert("<%=SystemEnv.getHtmlLabelName(84466,user.getLanguage())%>");
                return ;
            }
            if(zczlviewtype==0){//主字段
                var zczl = jQuery("input[name='field"+<%=zczlFieldId %>+"']").val();//资产资料
		    	var cptnum = jQuery("input[name='field"+<%=shulFieldId %>+"']").val();//入库数量
		    	var lycptnum = jQuery("input[name='field"+<%=lyslFieldId %>+"']").val();
                var zcbh = jQuery("input[name='field"+<%=zcbhFieldId %>+"']").val();
                var sqr = jQuery("input[name='field"+<%=sqrFieldId %>+"']").val(); 
                
                var markstr = "sqr:"+sqr+",zczl:"+zczl+",zcbh:"+ zcbh+",cptnum:"+ cptnum;

                if(zczl==undefined||zczl==""){//如果资产资料未选择 流程继续
                }else{
                    if(cptnum==undefined||cptnum==""){//如果申购数量未填写 全都不校验
                    }else{//如果申购数量填了 校验领用数量是填写
                        if(lycptnum==undefined || lycptnum=="" ){//如果领用数量未填写  不校验
                        	if(parseInt(cptnum)>0&&zcbh !="" && zcbh != null){
                           		jQuery.ajax({
					                url : "/mobile/plugin/1/CptCheckMark.jsp",
					                type : "post",
					                async : false,
					                processData : false,
					                data : "markstr="+markstr,
					                dataType : "json",
					                success: function do4Success(data){
					                    if(data&&data.msg && data.msg!=""){
					                        alert(data.msg);
					                        ret = true;
					                    }
					                }
					            });
                           	}
                        }else{//如果领用数量填写了  校验领用数量是否大于申购数量
                            if(parseInt(lycptnum) > parseInt(cptnum)){
                                alert("<%=SystemEnv.getHtmlLabelName(500764,user.getLanguage())%>");
                                ret = true;
                            }else{
                            	if(zcbh !="" && zcbh != null){
	                            	jQuery.ajax({
						                url : "/mobile/plugin/1/CptCheckMark.jsp",
						                type : "post",
						                async : false,
						                processData : false,
						                data : "markstr="+markstr,
						                dataType : "json",
						                success: function do4Success(data){
						                    if(data&&data.msg && data.msg!=""){
						                        alert(data.msg);
						                        ret = true;
						                    }
						                }
						            });
                            	}
                            }
                        }
                    }
                }
            }else{
                var indexElement = zczlviewtype*1.0-1 ;//明细
				var indexnum0 = jQuery("#nodenum"+indexElement).val(); //所有行的明细行号
				var delnum = jQuery("#deleteRowIndex"+indexElement).val(); //删除行的明细行号
				if(delnum!=undefined&&delnum!=""){
					delnum = ","+delnum;
				}
				for(var index=0;index<indexnum0;index++){
					//index,不在删除的index中,判断
					if(delnum.indexOf(","+index+",")<=-1){
						var zczl_d = jQuery("#field"+<%=zczlFieldId%>+"_"+index+"_d").val();//资产资料:删除
			    		var cptnum_d = jQuery("#field"+<%=shulFieldId%>+"_"+index+"_d").val();//入库数量
			    		var lycptnum_d = jQuery("#field"+<%=lyslFieldId%>+"_"+index+"_d").val();//领用的数量
						var zcbh_d = jQuery("#field"+<%=zcbhFieldId%>+"_"+index+"_d").val();//资产编码
			    		var sqr_d = jQuery("#field"+<%=sqrFieldId%>+"_"+index+"_d").val();//申请人
			    		
						var zczl = jQuery("#field"+<%=zczlFieldId%>+"_"+index).val();//资产资料
			    		var cptnum = jQuery("#field"+<%=shulFieldId%>+"_"+index).val();//入库数量
			    		var lycptnum = jQuery("#field"+<%=lyslFieldId%>+"_"+index).val();//领用的数量
			    		var zcbh = jQuery("#field"+<%=zcbhFieldId%>+"_"+index).val();//资产编码
			    		var sqr = jQuery("#field"+<%=sqrFieldId%>+"_"+index).val();//申请人
			    		
						if(zczl_d!=undefined){
							zczl = zczl_d;
							cptnum = cptnum_d;
							lycptnum = lycptnum_d;
							zcbh = zcbh_d;
							sqr = sqr_d;
						}
			    	
			    		if(zczl==undefined||zczl==""){ //如果资产资料未选择 流程继续
                                //check_flag = true;
                        }else{
                              if(cptnum==undefined||cptnum==""){ //如果申购数量未填写 全都不校验
                                  //check_flag = true;
                              }else{//如果申购数量填了 校验领用数量是填写
                                  if(lycptnum==undefined || lycptnum=="" ){ //如果领用数量未填写  不校验
                                      if(parseInt(cptnum)>0){
                                    		if(zcbh !="" && zcbh != null){
				                                markstr += "|sqr:"+sqr+",zczl:"+zczl+",zcbh:"+ zcbh+",cptnum:"+ cptnum;
				                            }
                                    	}
                                  }else{//如果领用数量填写了  校验领用数量是否大于申购数量
	                                   	if(parseInt(cptnum)>0){
	                                   		if(zcbh !="" && zcbh != null){
				                                markstr += "|sqr:"+sqr+",zczl:"+zczl+",zcbh:"+ zcbh+",cptnum:"+ cptnum;
				                            }
	                                   	}
										if(parseInt(lycptnum) > parseInt(cptnum)){
	                                           check_flag = false;
										}
                                 	}
                            }
						}
					}
				}
				

				if(check_flag){
					if(markstr!=""){
		                markstr = markstr.substr(1);
		                jQuery.ajax({
			                url : "/mobile/plugin/1/CptCheckMark.jsp",
			                type : "post",
			                async : false,
			                processData : false,
			                data : "markstr="+markstr,
			                dataType : "json",
			                success: function do4Success(data){
			                    if(data&&data.msg && data.msg!=""){
			                        alert(data.msg);
			                        ret = true;
			                    }
			                }
			            });
		            }
				}else{
                    alert("<%=SystemEnv.getHtmlLabelName(500764,user.getLanguage())%>");
                    ret = true;
				}
            }
            return ret ;
		}
    }
    
	function checkCarSubmit(workflowid,formId){
		var flag = false;
		jQuery.ajax({
		    type:"get",
			url: "/cpt/car/CarSetDataOperation2.jsp?action=getDataSys",
			data: {workflowid:workflowid,formId:formId},
			async: false, 
			dataType: "json",
			success: function(returndata){
				if(returndata&&returndata.length>0){
					var iscontinue = returndata[0].iscontinue;
					var remindtype = returndata[0].remindtype; 
					if(iscontinue=='yes'){
						var carid = returndata[0].carid; //车辆
						var driver = returndata[0].driver; //司机
						var caruserid = returndata[0].caruserid; //用车人
						var startDate = returndata[0].startDate; //开始日期
						var startTime = returndata[0].startTime; //开始时间
						var endDate = returndata[0].endDate; //结束日期
						var endTime = returndata[0].endTime; //结束时间
						carid = jQuery("#field"+carid).val();
						startDate = jQuery("#field"+startDate).val();
						startTime = jQuery("#field"+startTime).val();
						endDate = jQuery("#field"+endDate).val();
						endTime = jQuery("#field"+endTime).val();
						jQuery.ajax({
						    type:"get",
							url: "/cpt/car/CarSetDataOperation2.jsp?action=checkData",
							data: {carid:carid,startDate:startDate,startTime:startTime,endDate:endDate,endTime:endTime,workflowid:workflowid,requestid:<%=requestid%>},
							async: false, 
							dataType: "json",
							success: function(returnjson){
								if(returnjson&&returnjson.length>0){
									iscontinue = returnjson[0].iscontinue;
									if(iscontinue=="no"){
										if(remindtype=="0"){ 
										    if(confirm("<%=SystemEnv.getHtmlLabelName(128307,user.getLanguage())%>")==true){
										        flag = true;
										    }else{
										        flag = false;
										    }
										}else{
											alert("<%=SystemEnv.getHtmlLabelName(128308,user.getLanguage())%>");
											flag = false;
										}
									}else{
										flag = true;
									}
								}
							}
						});
					}else{
						flag = true;
					}
				}
			}
		});
		return flag;
	}
	
	function createMap(){
		map = new AMap.Map("map", {
			keyboardEnable:false,
			level:11,
			resizeEnable:false,
		});	
   	
    	map.plugin('AMap.Geolocation', function() {
	        geolocation = new AMap.Geolocation({
	            enableHighAccuracy: true,//是否使用高精度定位,默认:true
	            timeout: 5000,          //超过10秒后停止定位,默认:无穷大

	            showButton: false, 
	            //buttonOffset: new AMap.Pixel(10, 20),//定位按钮与设置的停靠位置的偏移量,默认:Pixel(10, 20)
	            zoomToAccuracy: false,     // 定位成功后调整地图视野范围使定位位置及精度范围视野内可见,默认:false
				showMarker:false
	        });   
	        map.addControl(geolocation);	        
	        AMap.event.addListener(geolocation, 'complete', onComplete);//返回定位信息
	        AMap.event.addListener(geolocation, 'error', onError);      //返回定位出错信息
	    });	    	
  	} 
	
	function  getLoctionInfo(fieldid){
			//获取定位时间,经度,纬度
			fieldId = fieldid;
			geolocation.getCurrentPosition();
			jQuery('#clearLocationId' + fieldid).attr("disabled","disabled");
			jQuery('#clearLocationId' + fieldid).attr("onclick","");
	} 
  	
  	//解析定位结果
    function onComplete(data) {
		regeocoder(data.position.getLng(),data.position.getLat());
    } 
    
    //解析定位错误信息
    function onError(data) {
    	alert("请检查网络是否连接!");
    }
    
    //逆地理编码

  	function regeocoder(lng,lat) {  
  		var geocoder = new AMap.Geocoder({
            radius: 1000,
            extensions: "all"
        });  
        
        var lngLat = [lng,lat]      
        geocoder.getAddress(lngLat, function(status, result) {
            if (status === 'complete' && result.info === 'OK') {
                geocoder_CallBack(lng,lat,result);
            }
        });        
    }
    
    function geocoder_CallBack(lng,lat,result) {
        var address = result.regeocode.formattedAddress; //返回地址描述
        
  		curiPosi = {
  						lng:lng,
  						lat:lat,
  						addr:address
  					};
  		var timestamp = (new Date()).getTime();
  		var resultStr = timestamp +","+lng+","+lat+","+address;
  		var data = fieldId +","+"<%=nodeId%>"+"," +"<%=userid%>";
  		getGpsInfo(data, resultStr);
    }
    
    /* 获取签字意见是否添加位置信息,web端暂未处理, */	
	function getLocateStatus(wfid){
		return 0;
	}
	
</script>

<script type="text/javascript" src="/mobile/plugin/browsernew/js/zepto.min_wev8.js?2"></script>
<style>
#departChooseDiv{
    position:fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    z-index: 99999;
    transition:All 0.3s;
    -webkit-transition:All 0.3s;
    -webkit-transform: translate3d(100%, 0, 0);
    transform: translate3d(100%, 0, 0);
    visibility: hidden;
}
body.hrmshow #departChooseDiv{
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    visibility: visible;
}
#departChooseFrame{
    width: 100%;
    height: 100%;
}
.btnclass{
	color:white;
	background-color:#589FF0;
	border-radius:5px;
	border:solid 1px #589FF0;
}
#fnaBudgetfeetypeTreeChooseDiv{
    position:fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    z-index: 99999;
    transition:All 0.3s;
    -webkit-transition:All 0.3s;
    -webkit-transform: translate3d(100%, 0, 0);
    transform: translate3d(100%, 0, 0);
    visibility: hidden;
}
body.hrmshow #fnaBudgetfeetypeTreeChooseDiv{
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    visibility: visible;
}
#fnaBudgetfeetypeTreeChooseFrame{
    width: 100%;
    height: 100%;
}
</style>

		
</head>

<body >
<%--
<div id="departChooseDiv">
    <iframe id="departChooseFrame" src="/mobile/plugin/browsernew/departBrowser.jsp" frameborder="0" scrolling="auto">
    </iframe>
</div>
--%>


<div id="fnaBudgetfeetypeTreeChooseDiv">
    <iframe id="fnaBudgetfeetypeTreeChooseFrame" src="/mobile/plugin/browser/fna2/FnaBudgetfeetypeTreeBrowser.html" frameborder="0" scrolling="auto" style="display:none;">
    </iframe>
</div>
<%
String[] info = WorkflowRequestMessage.resolveSystemwfInfo(messagecontent);
systemwfInfo = info[0];
resetoperator = info[1];
%>
<!-- 异常选择人员提交 -->
<%if("y".equals(Util.null2String(request.getParameter("needChooseOperator")))|| "y".equals(resetoperator)){ %>
	<jsp:include page="/mobile/plugin/1/RequestChooseOperator.jsp" flush="true"></jsp:include>
<%} %>
<%if(includeLocation){%>
<div id='map' style='height:1px;width:1px;display:block;'></div>
<%} %>
<div id="view_page">
	<div id="view_header" style="<%if (clienttype.equals("Webclient")) {%>display:block;<%} else {%>display:none;<%}%>">
		<table class="webtoolbarTbl">
			<tr>
				<td width="10%" align="left" valign="middle" style="padding-left:5px;">
					<a href="javascript:goBack_before();">
						<div class="webtoolbarItem">
						返回
						</div>
					</a>
				</td>
				<td align="center" valign="middle">
					<div id="view_title"><%=workflowRequestInfo.getWorkflowBaseInfo().getWorkflowName() %></div>
				</td>
				<td width="10%" align="right" valign="middle" style="padding-right:5px;">
					<a href="javascript:logout_before();">
						<div class="webtoolbarItem">
						退出



						</div>
					</a>
				</td>
			</tr>
		</table>
	</div>


	<div data-role="page" class="page workFlowView">

<% 
//没有开启可查看表单内容的权限时,流程图流程状态不允许查看

//判断权限
String CurrentUser = Util.null2String((String)session.getAttribute("RequestViewResource")) ;
if("".equals(CurrentUser)){
    CurrentUser = String.valueOf(user.getUID());
}
//获取操作权限
Map<String,String> rightMap = new HashMap<String, String>();
if ("-1005".equals(module)) {
    rightMap = Monitor.getWorkflowRight(request,user,CurrentUser,requestid);
}
if (!canview) {
	String viewRight = rightMap.get("viewRight");
    canview = "true".equals(viewRight) || intModule >= 0 || "-1005".equals(module);
}
if(canview){%>
<div id="header" class="headToolbarDiv">
	<div class="toolbarDivClass">
		<div class="toolbarCurItem">
		
            <%-- 表单 --%>
            <%=SystemEnv.getHtmlLabelName(31923,user.getLanguage()) %>
		</div>
		<a href="javascript:goWfPic();">
		<div class="toolbarCenItem">
		<%-- 流程图 --%>
            <%=SystemEnv.getHtmlLabelName(18912,user.getLanguage()) %>



		</div>
		</a>
		<a href="javascript:goWfStatus();">
		<div class="toolbarRhtItem">
		
            <%-- 状态 --%>
            <%=SystemEnv.getHtmlLabelName(126034,user.getLanguage()) %>



		</div>
		</a>		


		
	</div>

</div>

<div id="msgsendSystemInfo" style="display:none;">
	<%=systemwfInfo %>
</div>

<%if("1".equals(ismonitor) && module.equals("-1005")){%>
    <%--流程信息--%>
    <div class="requestIfons" ontouchend="doShowDt(this)" >
        <div class="left">
            <%=SystemEnv.getHtmlLabelName(32210, userLanguage)%>
        </div>
        <div class="right">
            &nbsp;
        </div>
    </div>
<%}%>
</div>
    <!-- 流程 信息 --> 
    <%if("1".equals(ismonitor)){ %>
        <jsp:include page="/mobile/plugin/1/monitor/monitordtform.jsp" flush="true">
            <jsp:param name="requestid" value="<%=requestid%>"/>
            <jsp:param name="userLanguage" value="<%=userLanguage%>"/>
        </jsp:include>
    <%} %>
<%=WorkflowRequestMessage.getClientInfoHtml(messageid,messagecontent,user)%>	
<%}%>	

		<iframe id="selectChangeDetail" frameborder=0 scrolling=no src=""  style="display:none"></iframe>
        <iframe id="selectChange" frameborder=0 scrolling=no src=""  style="display:none"></iframe>
				<form id="workflowfrm" action="/mobile/plugin/1/RequestOperation.jsp?module=<%=module%>&scope=<%=scope%>&f_weaver_belongto_userid=<%=f_weaver_belongto_userid%>&f_weaver_belongto_usertype=<%=f_weaver_belongto_usertype%>" method="post" enctype="multipart/form-data" autocomplete="off">
							<%if("1".equals(ismonitor) && !monitorCanView){%>
<div style="font-size:14px;font-family:Microsoft YaHei;text-align:center;line-height:50px;"><%=SystemEnv.getHtmlLabelName(126351, userLanguage)%></div>
<div class="form_out_content" data-role="content" style="display:none;">
<%}else{%>
<div class="form_out_content" data-role="content" style="margin-left: 10px; margin-right: 10px; padding-top: 0px;" >
<%}%>
				
					<input type="hidden" id="type" name="type" value="<%=type %>" />
					<input type="hidden" id="method2" name="method2" value="<%=method %>" />
					<input type="hidden" id="src" name="src" value="<%=method %>" />
					<input type="hidden" id="markId" name="markId"/>
					<input type="hidden" id="userid" name="userid" value="<%=userid%>"/>
					<input type="hidden" id="clientver" name="clientver" value="<%=clientVer%>"/>
					<input type="hidden" id="serverver" name="serverver" value="<%=serverVer%>"/>
					<input type="hidden" id="forwardflag" name="forwardflag" value="0"/>
					<input type="hidden" id="ismonitor" name="ismonitor" value="<%=ismonitor%>"/>
					<input type="hidden" id="isurge" name="isurge" value="<%=isurge%>"/>
					<input type="hidden" id="intervenorright" name="intervenorright" value="<%=intervenorright%>"/>
                   	<input type="hidden" name="lastOperator"  id="lastOperator" value="<%=lastOperator%>"/>
					<input type="hidden" name="lastOperateDate"  id="lastOperateDate" value="<%=lastOperateDate%>"/>
					<input type="hidden" name="lastOperateTime"  id="lastOperateTime" value="<%=lastOperateTime%>"/>
					<input type="hidden" name="timestamp"  id="timestamp" value="<%=timestamp%>"/>
					<input type="hidden" name="nodeid"  id="nodeid" value="<%=nodeId%>"/>
					<input type="hidden" name="needCheckLock"  id="needCheckLock" value="<%=needcheckLock%>"/>
					<%if(isRemarkLocation>0) {%>
                    			<input type="hidden" id="remarkLocation" name="remarkLocation" value="">
                    			<%} %>
<div>


<%if("2".equals(checkSuccess)){ %>
	<br>
	<div style="font-size: 15px;text-align: center;">
		<img width="17px;" height="17px;" style="margin-bottom: -2px;" src="/mobile/plugin/1/images/error_icon.png" alt="" />&nbsp;保护数据被篡改!
		<a href="#" onclick="showData()">查看详情</a>
	</div>
<%}else if("0".equals(checkSuccess)){ %>
	<div style="font-size: 15px;text-align: center;">
		<img width="17px;" height="17px;" style="margin-bottom: -2px;" src="/mobile/plugin/1/images/error_icon.png" alt="" />&nbsp;<%=(String)secondAuthCheck.get("message") %>
	</div>
<%} %>

<% if(!canview){%>
    <div style="font-size:12pt;height:60px;line-height:60px;text-align:center;">
    <%-- 抱歉,您没有流程内容查看权限... --%>
    <%=SystemEnv.getHtmlLabelName(126351,user.getLanguage()) %>
    </div>
<%}else{ %>

<%
	String messageContent = "";
	String imagsrc = "";
	if(needcheckLock){
		if(islock){ 
			imagsrc = "/images/ecology8/workflow/lock_mobile_wev8.png";
			String lockuserid = lockDTO.getUserid();
   			if(!(userid + "").equals(lockuserid)){
   				if(user.getLanguage() == 7){
   					messageContent = "当前流程已被 <a style='color:blue;'  href=\"#\">"+ResourceComInfo.getResourcename(lockuserid)+"</a> 于" + lockDTO.getLockdate() + " " + lockDTO.getLocktime() + " 签出,您暂时不能对表单数据进行操作";
   				}else if(user.getLanguage() == 9){
   					messageContent = "當前流程已被 <a style='color:blue;'  href=\"#\">"+ResourceComInfo.getResourcename(lockuserid)+"</a> 於" + lockDTO.getLockdate() + " " + lockDTO.getLocktime() + " 簽出,您暫時不能對表單數據進行操作";
   				}else{
   					messageContent = "The request has been checked by <a style='color:blue;'  href=\"#\">"+ResourceComInfo.getResourcename(lockuserid)+"</a> at " + lockDTO.getLockdate() + " " + lockDTO.getLocktime() + ",you can not operate now";
   				}
   			}else{
   				if(user.getLanguage() == 7){
   					messageContent = "当前流程已被您于" + lockDTO.getLockdate() + " " + lockDTO.getLocktime() + "  签出,请在已打开的窗口继续操作,或 <input type='button' class='btnclass' onclick='dealSelfLock()' value='点击这里在当前窗口处理流程'/>(原打开窗口将失效)";
   				}else if(user.getLanguage() == 9){
   					messageContent = "當前流程已被您於" + lockDTO.getLockdate() + " " + lockDTO.getLocktime() + "  簽出,請在已打開的視窗繼續操作,或 <input type='button' class='btnclass' onclick='dealSelfLock()' value='點擊這裡在當前視窗處理流程'/>(原打開視窗將失效)";
   				}else{
   					messageContent = "The request has been checked by yourself at " + lockDTO.getLockdate() + " " + lockDTO.getLocktime() + ",you can operate now or you can <input type='button' class='btnclass' onclick='dealSelfLock()' value='click here to deal the request in current window'/> (the early window will be invalid)";
   				}
   			}
   		}else{
   			imagsrc = "/images/ecology8/workflow/lockinfo_mobile_wev8.png";
   			if(user.getLanguage() == 7){
				messageContent = "当前流程已被您签出,其他人目前不能对表单数据进行操作,如需取消签出,请 <input type='button' class='btnclass' onclick='doUnlock(this)' value='点击这里解锁'/>";
			}else if(user.getLanguage() == 9){
				messageContent = "當前流程已被您簽出,其他人現時不能對表單數據進行操作,如需取消簽出,請 <input type='button' class='btnclass' onclick='doUnlock(this)' value='點擊這裡解鎖'/>";
			}else{
				messageContent = "The request has been checked by yourself,if you want to checkout,please <input type='button' class='btnclass' onclick='doUnlock(this)' value='click here to unlock'/>";
			}
   		
	}%>


	<div class="tblBlock" style="width: 100%; background: #fff;margin-bottom:3px;" >
		<table width="100%">
			<tr style="height: 5px;"><td></td><td></td></tr>
			<tr>
				<td width="50px" align="center">
					<img src="<%=imagsrc %>" style="width: 25px;height: 25px;"  />
				</td>
				<td style="font-family:Microsoft YaHei!important; ">
					<%=messageContent %>
				</td>
			</tr>
			<tr style="height: 5px;"><td></td><td></td></tr>
		</table>
	</div>
<%} %>
					<%
					
					if (workflowHtmlShow != null && !"".equals(workflowHtmlShow)) {
						if(!"create".equals(method)){
							if(iscanedit){
								workflowHtmlShow=workflowHtmlShow;
							}else{
								workflowHtmlShow=workflowHtmlShow.replaceAll("&lt;","<").replaceAll("&gt;",">");
							}
						}
					%>

						<div class="ui-body ui-body-d ui-view-corner ui-view-opacity">
                    
						<%
						if(workflowRequestInfo.getVersion()==2){
						    request.setAttribute("workflowRequestInfo", workflowRequestInfo);
							request.setAttribute("user", user);

							request.setAttribute("workflowServiceUtil", workflowServiceUtil);
						%>
							<jsp:include page="/mobile/plugin/1/html/operDetail.jsp" flush="true">
								<jsp:param name="clienttype" value="<%=clienttype%>"/>
								<jsp:param name="isDetailRowShow" value="<%=isDetailRowShow%>"/>
								<jsp:param name="isremark" value="<%=isremark%>"/>
								<jsp:param name="takisremark" value="<%=takisremark%>"/>
							</jsp:include>
							<jsp:include page="/mobile/plugin/1/html/htmlcalculate.jsp" flush="true">
								<jsp:param name="formId" value="<%=formId%>"/>
								<jsp:param name="isBill" value="<%=isBill%>"/>
							</jsp:include>
						<%} %>
							<%=workflowHtmlShow %>
						</div>
					<%} else {
					    if(canview){
							request.setAttribute("user", user);
							request.setAttribute("workflowRequestInfo", workflowRequestInfo);
					%>
						<!-- 主表和明细表 -->
						<jsp:include page="/mobile/plugin/1/form.jsp" flush="true">
							<jsp:param name="userid" value="<%=userid%>"/>
							<jsp:param name="formId" value="<%=formId%>"/>
							<jsp:param name="isBill" value="<%=isBill%>"/>
							<jsp:param name="requestid" value="<%=requestid%>"/>
							<jsp:param name="type" value="<%=type%>"/>
							<jsp:param name="request_fieldShowValue" value="<%=request_fieldShowValue%>"/>
							<jsp:param name="sessionkey" value="<%=sessionkey%>"/>
							<jsp:param name="workflowid" value="<%=workflowid%>"/>
							<jsp:param name="nodeId" value="<%=nodeId%>"/>
							<jsp:param name="isDetailRowShow" value="<%=isDetailRowShow%>"/>
							<jsp:param name="clienttype" value="<%=clienttype%>"/>
							<jsp:param name="usertype" value="<%=usertype%>"/>
							<jsp:param name="method" value="<%=method%>"/>
						</jsp:include>
	<%
					    }
					} 
					%>
					
					<%if(IsFreeWorkflow){  %>

						<jsp:include page="/mobile/plugin/1/mobileformfree.jsp" flush="true">
							<jsp:param name="freewftype" value="<%=freewftype%>"/>
							<jsp:param name="isfreewfedit" value="<%=isfreewfedit%>"/>
							<jsp:param name="isfreeshow" value="<%=isfreeshow%>"/>
							<jsp:param name="workflowHtmlShow" value="<%=workflowHtmlShow%>"/>
							<jsp:param name="freeoperators" value="<%=freeoperators%>"/>
							<jsp:param name="requestid" value="<%=requestid%>"/>
							<jsp:param name="signtype" value="<%=signtype%>"/>
							<jsp:param name="freeNodeId" value="<%=freeNodeId%>"/>
							<jsp:param name="currentNodeType" value="<%=currentNodeType%>"/>
							<jsp:param name="freeNodeName" value="<%=freeNodeName%>"/>
						</jsp:include>
					<%}
					
	}%>

	

					<!-- 干预 提交 -->

<%

//流程干预按钮
String showInterventionBtn = rightMap.get("showInterventionBtn");
if("true".equals(showInterventionBtn) && module!= null && intModule == -1005 ){ %>

	<div style="height:10px;overflow:hidden;"></div>
	<div class="blockHead" style="margin-top:15px;">
	        <span class="m-l-14"><%=SystemEnv.getHtmlLabelName(18194,user.getLanguage()) %></span>
	</div>
	<jsp:include page="/mobile/plugin/1/monitor/RequestIntervenor.jsp" flush="true">
	<jsp:param name="workflowid" value="<%=workflowid%>"/>
	<jsp:param name="intervenorright" value="<%=intervenorright%>"/>
	<jsp:param name="userid" value="<%=userid%>"/>
	<jsp:param name="usertype" value="<%=usertype%>"/>
	<jsp:param name="isbill" value="<%=isBill%>"/>
    <jsp:param name="billid" value="<%=billid%>"/>
	<jsp:param name="nodeid" value="<%=nodeId%>"/>	
	<jsp:param name="requestid" value="<%=requestid%>"/>	
	<jsp:param name="formid" value="<%=formId%>"/>	
	<jsp:param name="nodetype" value="<%=currentNodeType%>"/>
	<jsp:param name="creater" value="<%=creator%>"/>
	<jsp:param name="creatertype" value="<%=creatertype%>"/>
	
	
	</jsp:include>
<%} %>
	
		<div style="height:10px;overflow:hidden;"></div>
			
			
			<input type="hidden" name="module2" value="<%=module %>">
			<input type="hidden" name="scope2" value="<%=scope %>">
			<input type="hidden" name="page.pageNo" value="1">
			<input type="hidden" name="requestid" value="<%=requestid %>">
			<input type="hidden" name="workflowid" value="<%=workflowid %>">
			<input type="hidden" name="workflowsignid" value='0'/>
			<table id="head" cellspacing="0" cellpadding="0" width="100%" style="table-layout:fixed;word-break:break-all" >
			<%
			int cntDisplayBtn = 0;
			if ((workflowRequestInfo.getSubmitButtonName() != null && !workflowRequestInfo.getSubmitButtonName().equals(""))
					||(workflowRequestInfo.getSubnobackButtonName()!=null&&!workflowRequestInfo.getSubnobackButtonName().equals(""))
					||(workflowRequestInfo.getSubbackButtonName()!=null&&!workflowRequestInfo.getSubbackButtonName().equals(""))
					||(workflowRequestInfo.getForwardButtonName()!=null&&!workflowRequestInfo.getForwardButtonName().equals(""))
					||(workflowRequestInfo.getGivingOpinionsbackName()!=null&&!workflowRequestInfo.getGivingOpinionsbackName().equals(""))
					||(workflowRequestInfo.getGivingOpinionsnobackName()!=null&&!workflowRequestInfo.getGivingOpinionsnobackName().equals(""))
					||(workflowRequestInfo.getGivingopinionsName()!=null&&!workflowRequestInfo.getGivingopinionsName().equals("")) 
                    ||(workflowRequestInfo.getSaveButtonName() != null && !workflowRequestInfo.getSaveButtonName().equals(""))
					|| isurger || (intervenorright>0)) {
				cntDisplayBtn++;
				if((workflowRequestInfo.getForwardButtonName()!=null&&!workflowRequestInfo.getForwardButtonName().equals("")) 
					|| isurger || (intervenorright>0)){ //加上督办权限
					isCanEditRemark = true;
				}
			%>
			<tr><td>

				<div class="remarkArea" style="display:none">
				<table style="width:100%;">
					
					<%-- Mobile4.5功能 --%>
					<tr style="<%=flagServerVersion4_5?"display:block":"display:none"%>">
						<td>
							<!-- 手写签批显示  和 语音附件播放使用 -->
							<div id="divHandWrittenSign" ></div>
							<br>
							<div id="divSpeechAttachment"></div>
							<br>
							<div style="display:none">
								<%-- 如下两个隐藏域 分别表示  语音附件 和 手写签章 --%>
								<input type="hidden" id="fieldSpeechAppend" name="fieldSpeechAppend" value=""/>
							</div>
							<div>
								<img id="markImg" src=""  style="display:none;" class="signatureStyle" />
							</div>
						</td>
					</tr>
					
				</table>
				</div>
			</td></tr>
			<%} %>
			</table>
		</div>
		<div style="height:10px;overflow:hidden;"></div>
	</div>
</div>
<%
		//如果非创建节点则显示
		if (!"create".equals(method) && canview) {
		%>
		<div sytle="height:26px;width:100%;">
	        <div id="page_remarksign_Title_div">
	            <div>
	                <%-- 流转意见 --%>
	                <%=SystemEnv.getHtmlLabelName(125734,user.getLanguage()) %>
	            </div>
	        </div>
	        <div style="width:1px;float:left;">&nbsp;</div>
        </div>
        <div id="workflowrequestsignblock">
            <div id="firstload" style="text-align: center; height: 18px;">
                <img src="/images/loading2_wev8.gif" style="vertical-align: middle;">
                <%-- 正在加载,请稍后... --%>
                <span
                    style="display: inline-block; height: 18px !important; line-height: 18px; vertical-align: middle;"><%=SystemEnv.getHtmlLabelName(81558,user.getLanguage())%></span>
            </div>
        </div>
        <div style='height: 20px; width: 100%; border-top: #d9d9d9 solid 1px; clear: both;'></div>
		<div id="remarkTempDiv" style='display:none; clear: both;'></div>
        <div id="remarkShowMore" onclick="javascript:doexpandRemark();"><%=SystemEnv.getHtmlLabelName(82720,user.getLanguage())%></div>
		<%}%>
		<div style="height:<%="1".equals(buttonswitch)?"60":"20"%>px;overflow:hidden;"></div>
	<%
			 cntDisplayBtn = 0;
			 boolean onlyforwardButton=true;
			if ((workflowRequestInfo.getSubmitButtonName() != null && !workflowRequestInfo.getSubmitButtonName().equals(""))
					||(workflowRequestInfo.getSubnobackButtonName()!=null&&!workflowRequestInfo.getSubnobackButtonName().equals(""))
					||(workflowRequestInfo.getSubbackButtonName()!=null&&!workflowRequestInfo.getSubbackButtonName().equals(""))
					||(workflowRequestInfo.getForwardButtonName()!=null&&!workflowRequestInfo.getForwardButtonName().equals(""))
					||(workflowRequestInfo.getGivingOpinionsbackName()!=null&&!workflowRequestInfo.getGivingOpinionsbackName().equals(""))
					||(workflowRequestInfo.getGivingOpinionsnobackName()!=null&&!workflowRequestInfo.getGivingOpinionsnobackName().equals(""))
					||(workflowRequestInfo.getGivingopinionsName()!=null&&!workflowRequestInfo.getGivingopinionsName().equals("")) 
				    ||(workflowRequestInfo.getRetractbackButtonName()!=null&&!workflowRequestInfo.getRetractbackButtonName().equals(""))
				    ||(workflowRequestInfo.getSaveButtonName() != null && !workflowRequestInfo.getSaveButtonName().equals(""))
					|| isurger || (intervenorright>0)) {
				cntDisplayBtn++;
				if((workflowRequestInfo.getForwardButtonName()!=null&&!workflowRequestInfo.getForwardButtonName().equals("")) 
					|| isurger || (intervenorright>0)){ //加上督办权限
					isCanEditRemark = true;
				  }
				  	if(isCanEditRemark){
					   if((workflowRequestInfo.getSubmitButtonName() != null &&!workflowRequestInfo.getSubmitButtonName().equals(""))){
					        onlyforwardButton =false;
				       }
					   if(workflowRequestInfo.getSubnobackButtonName()!=null&&!workflowRequestInfo.getSubnobackButtonName().equals("")){
                            onlyforwardButton =false;
					   }
					   if(workflowRequestInfo.getSubbackButtonName()!=null&&!workflowRequestInfo.getSubbackButtonName().equals("")){
					          onlyforwardButton =false;
					   }
					   if(workflowRequestInfo.getGivingOpinionsbackName()!=null&&!workflowRequestInfo.getGivingOpinionsbackName().equals("")){
                           onlyforwardButton =false;
					   }
					   if(workflowRequestInfo.getGivingOpinionsnobackName()!=null&&!workflowRequestInfo.getGivingOpinionsnobackName().equals("")){
                               onlyforwardButton =false;
					   }
					   if(workflowRequestInfo.getGivingopinionsName()!=null&&!workflowRequestInfo.getGivingopinionsName().equals("")){
                               onlyforwardButton =false;
					   }
					   if(workflowRequestInfo.getSaveButtonName()!=null&&!workflowRequestInfo.getSaveButtonName().equals("")){
                               onlyforwardButton =false;
					   }
					   if(workflowRequestInfo.getRetractbackButtonName()!=null&&!workflowRequestInfo.getRetractbackButtonName().equals("")){
                               onlyforwardButton =false;
					   }

				  }
%>
          <div id="signbuttonbg"></div>
		 <div class="signbuttonbox" style="display:none">
				   <ul class="ulbutton ulbtnlist">
				   </ul>
				    <ul class="ulbutton ulcancal" style="margin-top:6px;margin-bottom:6px;">
					  <li class="ullibutton"><%=SystemEnv.getHtmlLabelName(32694,user.getLanguage()) %></li>
				   </ul>
			
		 </div>
        <div id="signbg"></div>
		<div class="signbox" style="display:none">
		<%if(isCanEditRemark){%>
			<div class="signtitle">
				<table cellpadding="0" width="100%" height="100%" cellspacing="0px" border="0">
					<colgroup>
						<col width="35%" />
						<col width="*" />
						<col width="35%" />
					</colgroup>
					<tr style="height:100%">
				
						<td>
							<div class="signforwardimg">&nbsp;</div>
						</td>
						
						<td align="center">
							<div class="signnotationtitle">
								<%
									if (workflowRequestInfo.getWorkflowPhrases() != null) {
									%>
									<select id="phrase" onclick="(jQuery('#userSignRemark'))[0].style.display = ''"
										onchange="addToRemark2(this);resetselect();" >
										<option value="0" selected="selected" >
										<%=SystemEnv.getHtmlLabelName(22409,user.getLanguage())%>
										</option>
										<%
										for (int i=0; i<workflowRequestInfo.getWorkflowPhrases().length; i++) {
											String selectkey = workflowRequestInfo.getWorkflowPhrases()[i][1].replace("\"", "&quot;");
											String selectValue = workflowRequestInfo.getWorkflowPhrases()[i][0].replace("\"", "&quot;");
										%>
											<option value="<%=selectkey%>"><%=selectValue %></option>
										<%} %>
									</select>
								<%}%>
							</div>
						</td>
						<td style="text-align:right;padding-right:10px;">
						<%
						   String isFormSignature = workflowRequestInfo.getIsFormSignature();
						   //if(isCanEditRemark && flagServerVersion4_5||"1".equals(isFormSignature)){
						  // if(isCanEditRemark && flagServerVersion4_5&&!clienttype.equals("Webclient")){
						%>
							<div class="signaddmore" style="<%=isCanEditRemark ||"1".equals(isFormSignature)?"display:block":"display:none"%>">
							   <img src="/mobile/plugin/1/images/addmore.png"></img>
							    <div id="signaddmorebg" style="display:none">
									 <ul>
									    <li id="handWrittenSignLi">手写签批</li>
										<!--<li onclick="getSpeechAttachment();">语音附件</li>-->
									  <%if("1".equals(isFormSignature)){%>
										<li onclick="showDialogEletricSignature('/mobile/plugin/1/browserSignature.jsp','&userid=<%=userid%>');">电子签章</li>
									  <%}%>
									 </ul>
								</div>
							</div>
						 <% //}%>
						</td>
					</tr>
				</table>
			</div>
			<div class="signlist" style="margin:0; padding:0;">
				<div style="margin:0 10px;height:100%;">
			     <textarea  id="userSignRemark" name="userSignRemark" placeholder="请输入签字意见" ><%=workflowRequestInfo.getRemark() == null ? "" : workflowRequestInfo.getRemark()%></textarea>
			   <%if (workflowRequestInfo.isMustInputRemark()) {%>
					<div id="userSignRemark_ismandspan" class="ismand">!</div>
				<%} %>
				</div>
			</div>
			<%}%>
			<div class="signlistbtn">
              	<div class="signbtnopration">
			   </div>
			   <div class="signbtnforwardopration" style="display:none;">
			   </div>
              <% if (workflowRequestInfo.getRejectButtonName()!=null&&!workflowRequestInfo.getRejectButtonName().equals("")) { cntDisplayBtn++; }
				if((cntDisplayBtn > 0 || "1".equals(ismonitor))){ %>
							    <%
					if(!("-1005".equals(module) || "-1004".equals(module))){
						int isBack = 0; // 标识默认的提交按钮
					if (workflowRequestInfo.getSubmitButtonName()!=null&&!workflowRequestInfo.getSubmitButtonName().equals("")) {
						isBack = 1;
					%>
					<div class="listbtnhandler" onclick="doSubmit_4Mobile(this,1);">
					   <div class="listbtnimg"  style="background-image:url(/mobile/plugin/1/images/approval.png);background-size: contain;"></div>
				       <div class="listbtntext">
					      <%=workflowRequestInfo.getSubmitButtonName() %>
					   </div>
					 </div>
					<%} %>
					<%
					if (workflowRequestInfo.getSubnobackButtonName()!=null&&!workflowRequestInfo.getSubnobackButtonName().equals("")) {
						if(isBack != 1) {
							isBack = 2;
						}
					%>
					 <div class="listbtnhandler" onclick="doSubmit_4Mobile(this,2);">
					   <div class="listbtnimg"  style="background-image:url(/mobile/plugin/1/images/approval.png);background-size: contain;"></div>
				       <div class="listbtntext">
					        <%=workflowRequestInfo.getSubnobackButtonName()%>
					   </div>
					  </div>
					<%} %>
					<%
					if (workflowRequestInfo.getSubbackButtonName()!=null&&!workflowRequestInfo.getSubbackButtonName().equals("")) { 
						if(isBack != 1) {
							isBack = 3;
						}
					%>
					<div class="listbtnhandler" onclick="doSubmit_4Mobile(this,3);">
					   <div class="listbtnimg" style="background-image:url(/mobile/plugin/1/images/approval.png);background-size: contain;"></div>
				       <div class="listbtntext">
					        <%=workflowRequestInfo.getSubbackButtonName()%>
					  </div>
					 </div>
					<%
					}
					%>
					 <%if (workflowRequestInfo.getGivingopinionsName()!=null&&!workflowRequestInfo.getGivingopinionsName().equals("")) { %>
					<div class="listbtnhandler" onclick="doSubmit_4Mobile(this,1);">
						  <div class="listbtnimg"  style="background-image:url(/mobile/plugin/1/images/forwarding.png);background-size: contain;"></div>
						  <div class="listbtntext">
								<%=workflowRequestInfo.getGivingopinionsName() %>
						  </div>
					</div>
                  <%}%>	
                   <%if (workflowRequestInfo.getGivingOpinionsbackName()!=null&&!workflowRequestInfo.getGivingOpinionsbackName().equals("")) { %>
				     <div class="listbtnhandler" onclick="doSubmit_4Mobile(this,2);">
					   <div class="listbtnimg"  style="background-image:url(/mobile/plugin/1/images/forwarding.png);background-size: contain;"></div>
				       <div class="listbtntext">
					        <%=workflowRequestInfo.getGivingOpinionsbackName() %>
					   </div>
					  </div>
                  <%}%>
                   <%
					if (workflowRequestInfo.getGivingOpinionsnobackName()!=null&&!workflowRequestInfo.getGivingOpinionsnobackName().equals("")) { 
					%>
					  <div class="listbtnhandler" onclick="doSubmit_4Mobile(this,3);"> 
					   <div class="listbtnimg"  style="background-image:url(/mobile/plugin/1/images/forwarding.png);background-size: contain;"></div>
				       <div class="listbtntext">
					        <%=workflowRequestInfo.getGivingOpinionsnobackName() %>
					   </div>
					  </div>
                  <%}%>
					<%
					if (workflowRequestInfo.getSaveButtonName()!=null&&!workflowRequestInfo.getSaveButtonName().equals("")) { 
					%>
					<div class="listbtnhandler" onclick="dosave(this);">
					   <div class="listbtnimg" style="background-image:url(/mobile/plugin/1/images/approval.png);background-size: contain;"></div>
				       <div class="listbtntext">
					        <%=workflowRequestInfo.getSaveButtonName()%>
					  </div>
					 </div>
					<%
					}
					%>
					<%
						if(!"".equals(Util.null2String(workflowRequestInfo.getSubmitButtonName()))
							|| !"".equals(Util.null2String(workflowRequestInfo.getSubnobackButtonName()))
							|| !"".equals(Util.null2String(workflowRequestInfo.getSubbackButtonName()))
						) {
					%>
					<input type="hidden" id="SubmitToNodeid" name="SubmitToNodeid" value="" />
					<%	} %>
					<%	if(workflowRequestInfo.getSubmitDirectName() != null && !workflowRequestInfo.getSubmitDirectName().equals("")) { %>
					 <div class="listbtnhandler" onclick="doSubmitDirect(this, <%=isBack %>);">
					   <div class="listbtnimg"  style="background-image:url(/mobile/plugin/1/images/approval.png);background-size: contain;"></div>
				       <div class="listbtntext">
					        <%=workflowRequestInfo.getSubmitDirectName()%>
					   </div>
					  </div>
				     <%	} %>
				     <%if (workflowRequestInfo.getRejectButtonName()!=null&&!workflowRequestInfo.getRejectButtonName().equals("")) {
					  if(!"".equals(isornotFree)){
					    if(isreject.equals("1")){
					%>
						<div class="listbtnhandler" onclick="dorejectIsfree(this);">
							<div class="listbtnimg"  style="background-image:url(/mobile/plugin/1/images/refused.png);background-size: contain;"></div>
							<div class="listbtntext"><%=SystemEnv.getHtmlLabelName(236,user.getLanguage()) %></div>
						</div>
						<input type="hidden" id="rejectToNodeid" name="rejectToNodeid" value="<%=zjclNodeid %>">
					  <%}
					   }else{%>
						<div class="listbtnhandler" onclick="doreject(this);">
							<div class="listbtnimg"  style="background-image:url(/mobile/plugin/1/images/refused.png);background-size: contain;"></div>
							<div class="listbtntext">
								<%=workflowRequestInfo.getRejectButtonName() %>
							</div>
						</div>
						<input type="hidden" id="rejectToNodeid" name="rejectToNodeid" value="">
					   <%}%>
					   <input type="hidden" id="RejectToType" name="RejectToType" value="0" />
					<%
					}else {%>
					    <% if(isreject.equals("1")){%>
					    	<%if(iscanedit){ %>
					    	 <div class="listbtnhandler" onclick="dorejectIsfree(this);">
							    <div class="listbtnimg"  style="background-image:url(/mobile/plugin/1/images/refused.png);background-size: contain;"></div>
				                <div class="listbtntext"><%=SystemEnv.getHtmlLabelName(236,user.getLanguage()) %></div>
							  </div>
							   <input type="hidden" id="rejectToNodeid" name="rejectToNodeid" value="<%=zjclNodeid %>">
						   <%} %>
					    <%}%>
					<% }%>
				  <%
					if (workflowRequestInfo.getRetractbackButtonName()!=null&&!workflowRequestInfo.getRetractbackButtonName().equals("")) {
					%>
					 <div id="doretract" class="listbtnhandler" onclick="doRetract(this,'rb');">
					  <div class="listbtnimg"  style="background-image:url(/mobile/plugin/1/images/forwarding.png);background-size: contain;"></div>
					  <div class="listbtntext"><%=workflowRequestInfo.getRetractbackButtonName() %></div>
					 </div>
					<%}%>

					<%
					 if (workflowRequestInfo.getForwardButtonName()!=null&&!workflowRequestInfo.getForwardButtonName().equals("")) { 
					%>
						<div class="forwardbtn listbtnhandler" onclick="doforwardBtn()">
						  <img src="/mobile/plugin/1/images/forwarding_new.png"></img>
						  <div class="listbtntext" style="display:none;">
								<%=workflowRequestInfo.getForwardButtonName() %>
							</div>
						</div>
						<input type="hidden" id="forwardresourceids" name="forwardresourceids"/>
						<table style="display:none">
						   <tr>
						    <td id="forwardresources"  jsfn="1">
							</td>
						   </tr>
						</table>
                   <%}%>
					<%
					 if (workflowRequestInfo.getForwardButtonName()!=null&&!workflowRequestInfo.getForwardButtonName().equals("")) { 
					%>
					 <div id="doforward" class="listbtnhandler" onclick="doforwardhandler();">
					  <div class="listfordwardbtnimg"  style="background-image:url(/mobile/plugin/1/images/forwarding.png);background-size: contain;"></div>
					  <div class="listfordwardbtntext"><%=SystemEnv.getHtmlLabelName(6011,user.getLanguage())%><%=SystemEnv.getHtmlLabelName(725,user.getLanguage())%></div>
					 </div>
					<%}%>
				  <%if (workflowRequestInfo.getTakingOpsButtonName()!=null&&!workflowRequestInfo.getTakingOpsButtonName().equals("")) { %>
				       <div class="listbtnhandler" onclick="doforward2(this);">
						<div class="listbtnimg"  style="background-image:url(/mobile/plugin/1/images/forwarding.png);background-size: contain;"></div>
				        <div class="listbtntext">
					        <%=workflowRequestInfo.getTakingOpsButtonName() %>
						</div>
					  </div>
						<input type="hidden" id="forwardresourceids2" name="forwardresourceids2"/>
						<div id="forwardresources2" style="display:none" jsfn="1"></div>
                  <%}%>
                   <%if (workflowRequestInfo.getHandleForwardButtonName()!=null&&!workflowRequestInfo.getHandleForwardButtonName().equals("")) { %>
                       <div class="listbtnhandler" onclick="doforward3(this);">
						<div class="listbtnimg"  style="background-image:url(/mobile/plugin/1/images/forwarding.png);background-size: contain;"></div>
				        <div class="listbtntext">
					        <%=workflowRequestInfo.getHandleForwardButtonName() %>
						</div>
					   </div>
						<div id="forwardresources3" style="display:none" jsfn="1"></div>
                  <%}%>
                  <%if (workflowRequestInfo.getForhandbackButtonName()!=null&&!workflowRequestInfo.getForhandbackButtonName().equals("")) { %>
                     <div class="listbtnhandler" onclick="doforward3();">
						 <div class="listbtnimg"  style="background-image:url(/mobile/plugin/1/images/forwarding.png);background-size: contain;"></div>
							<div class="listbtntext"> 
								<%=workflowRequestInfo.getForhandbackButtonName() %>
							</div>
					  </div>
					 <div id="forwardresources3" style="display:none" jsfn="1"></div>
                  <%}%>
                   <%
					if (workflowRequestInfo.getForhandnobackButtonName()!=null&&!workflowRequestInfo.getForhandnobackButtonName().equals("")) { 
					%>
					<div class="listbtnhandler" onclick="doforward3();">
					  <div class="listbtnimg"  style="background-image:url(/mobile/plugin/1/images/forwarding.png);background-size: contain;"></div>
				      <div class="listbtntext">
					        <%=workflowRequestInfo.getForhandnobackButtonName() %>
					  </div>
					 </div>
					  <div id="forwardresources3" style="display:none" jsfn="1"></div>
                  <%}%>
                  <input type="hidden" id="forwardresourceids3" name="forwardresourceids3"/>
				  
				<%}%>
				 <%
					if ("-1004".equals(module)) { 
					%>
					<div class="listbtnhandler" onclick="dosupervise(this);">  
					  <div class="listbtnimg"  style="background-image:url(/mobile/plugin/1/images/duban.png);background-size: contain;"></div>
				      <div class="listbtntext">
					     <%=SystemEnv.getHtmlLabelName(126515,user.getLanguage())%>
					  </div>
					 </div>
                  <%}%>
<%

//删除按钮
String showDeleteBtn = rightMap.get("showDeleteBtn");
//暂停按钮
String showStopBtn = rightMap.get("showStopBtn");
//撤销按钮
String showCancelBtn = rightMap.get("showCancelBtn");
//启用按钮
String showRestartBtn = rightMap.get("showRestartBtn");
//强制归档按钮
String showOvmBtn = rightMap.get("showOvmBtn");
//强制收回按钮
String showRbmBtn = rightMap.get("showRbmBtn");
%>
				 <%if(module.equals("-1005")){%>
					<%if("true".equals(showDeleteBtn) ){%>
						<%--删除 --%>
						<div class="listbtnhandler" onclick="deleteWorkflowByRequestID(this);"> 
							<div class="listbtnimg"  style="background-image:url(/mobile/plugin/1/images/approval.png);background-size: contain;"></div>
							<div class="listbtntext"><%=SystemEnv.getHtmlLabelName(125426,user.getLanguage())%></div>
						</div>
					<%}if("true".equals(showStopBtn)){%>
						<%--暂停 --%>
						<div class="listbtnhandler" onclick="doStop(this);">
							<div class="listbtnimg"  style="background-image:url(/mobile/plugin/1/images/approval.png);background-size: contain;"></div>
							<div class="listbtntext"><%=SystemEnv.getHtmlLabelName(20387,user.getLanguage()) %></div>
						</div>
					<%}else if("true".equals(showRestartBtn)){%>
						<%--启用 --%>
						
						<div class="listbtnimg" onclick="doRestart(this);" style="background-image:url(/mobile/plugin/1/images/approval.png);background-size: contain;"></div>
				        <div class="listbtntext"><%=SystemEnv.getHtmlLabelName(31676,user.getLanguage()) %></div>
					<%}%>
					<%if("true".equals(showCancelBtn)){%>
					  <div class="listbtnhandler" onclick="doCancelw(this);"> 
						<div class="listbtnimg"  style="background-image:url(/mobile/plugin/1/images/approval.png);background-size: contain;"></div>
				        <div class="listbtntext"><%=SystemEnv.getHtmlLabelName(16210,user.getLanguage()) %></div>
					  </div>
					<%}%> 
					<%if("true".equals(showOvmBtn) && currentstatus != 1){%>
						<%--强制归档 --%>
					   <div class="listbtnhandler" onclick="doDrawBack(this);">	
						<div class="listbtnimg"  style="background-image:url(/mobile/plugin/1/images/approval.png);background-size: contain;"></div>
				        <div class="listbtntext"><%=SystemEnv.getHtmlLabelName(18360,user.getLanguage()) %></div>
					  </div>
					<%}%>
					<%if("true".equals(showRbmBtn)){%>
						<%--强制收回 --%>
						<div class="listbtnhandler" onclick="doRetract(this,'rbm');">	
							<div class="listbtnimg"  style="background-image:url(/mobile/plugin/1/images/approval.png);background-size: contain;"></div>
							<div class="listbtntext"><%=SystemEnv.getHtmlLabelName(18359,user.getLanguage()) %></div>
						</div>
					<%}%>
					<%if("true".equals(showInterventionBtn) && currentstatus != 1){%>
						<%--流程干预 --%>
						<div class="listbtnhandler" onclick="doConfirmIntervenor(this);">	
						  <div class="listbtnimg"  style="background-image:url(/mobile/plugin/1/images/ganyu.png);background-size: contain;"></div>
				          <div class="listbtntext"><%=SystemEnv.getHtmlLabelName(18913,user.getLanguage()) %></div>
						</div>
					<%}%>
				<%}%>
             <%}%>
			</div>
		</div>
		<input type="hidden" id="onlyforwardButton" value="<%=onlyforwardButton%>" />
		<div class="morebutton" style="display:none"></div>
		<div style="height:8px;"></div>
		<div class="signbtn3 signclearfix">
			<div class="signmenu">
				<div>
				   <div class="signcontent" >
					 <div class="signimg"><img src="/mobile/plugin/1/images/feedback_pen_icon.png"></div>
					  <div class="signflag"><%=SystemEnv.getHtmlLabelName(129987,user.getLanguage()) %></div>
					</div>
				  <div class="signbtn">
				      <div class="firstButton"></div>
				     <div class="firstImg"><img  src="/mobile/plugin/1/images/firstimg.png"></div> 
				  </div>
				</div>
			</div>
			<div class="signmenubtn">
			</div>
		</div>
	<%}%>
 </form>
</div>
<script type="text/javascript">
var flagHiddenSpeechBtn = false;

jQuery(function(){
<% if(flagServerVersion4_5){ %>
	//仅当 当前访问程序是WebClient而且不是创建流程时候,才对语音附件作隐藏处理。



 	flagHiddenSpeechBtn = <%=(clienttype.equalsIgnoreCase("Webclient") && !"create".equals(method))%>;

 	hiddenSpeechBtn();
<%} %>

	//如果当前表单不可编辑 或者 是非客户端登录方式,需对附件上传类型字段中各附件之后的删除按钮作删除。



	var flagDelAppendix = <%=(!workflowRequestInfo.isCanEdit() || clienttype.equalsIgnoreCase("Webclient"))%>;
	if(flagDelAppendix){
	    var $delAppend = jQuery("a[name='appendixDelField']");
	    $delAppend.each(
		    function(i){
				jQuery(this).remove();
		    })
	}
	
    jQuery("a[name='appendixDelField'][showdelbtn='1']").each(
	    function(i){
			jQuery(this).remove();
	    });
	
	//仅当非客户端登录方式,支持对附件上传字段的编辑操作



	var flagEditAppendix = <%=(clienttype.equalsIgnoreCase("Webclient"))%>;
	if(flagEditAppendix){
		var $editAppend = jQuery("td[name='appendixEditField']");
		$editAppend.each(
		    function(i){
		    	jQuery(this).remove();
		    })
	}
	
<%
if ("create".equals(method)) {
%>
<%  if("1".equals(isBill) && "180".equals(formId)){ %>
	//请假申请单的特殊处理,隐藏剩余年假、带薪病假信息。



	jQuery("select[nameBak='leaveType']").trigger("onchange");
<%  } %>

<%
}
%>

	jQuery('body,html').animate({scrollTop:0},1000);  
	if(clienttype=="android"||clienttype=="androidpad"){
		hiddenSubmitWaitInfo();
	}
	
	//去掉待办中 条件 点击这里连接
	<%if("14".equals(formId)){%>
		removeAdminSystemWfRemarkInfo();
	<%}%>
});

function doConfirmIntervenor(){
	var Intervenorid = jQuery("#Intervenorid").val();
	if(Intervenorid == null || Intervenorid == ""){
		alert("<%=SystemEnv.getHtmlLabelName(125403,user.getLanguage()) %>");
		return;
	}
	//jQuery("input#eh_setoperator").val("y");
	//jQuery("#userSignRemark").val(jQuery("#Intervenorremark").val());
    doIntervenor();
}

function hiddenSpeechBtn(){
	if(flagHiddenSpeechBtn){
		var divSpeechs = document.getElementsByName("divSpeechDisplay");
		if(divSpeechs != null && divSpeechs != undefined){
			for(var i = 0; i< divSpeechs.length; i++){
				divSpeechs[i].style.display = "none";
			}
		}
	}
}

function doStop(obj){
	//您确定要暂停当前流程吗?
	if(confirm("<%=SystemEnv.getHtmlLabelName(26156,user.getLanguage())%>?")){
		//enableAllmenu();
		//document.location.href="/mobile/plugin/1/wfFunctionManageLink.jsp?f_weaver_belongto_userid=<%=userid%>&f_weaver_belongto_usertype=<%=usertype%>&flag=stop&requestid=<%=requestid%>" //xwj for td3665 20060224
		jQuery.ajax({
            url:"/mobile/plugin/1/wfFunctionManageLink.jsp",
            type:"get",
            data:{
                f_weaver_belongto_userid:"<%=userid%>",
                f_weaver_belongto_usertype:"<%=usertype%>",
                flag:"stop",
                requestid:"<%=requestid%>"
            },
            success:function(data){
                goBack();
            }
        });
	}
	else
	{
	//	displayAllmenu();
		return false;
	}
}
function doCancelw(obj){
	//您确定要撤销当前流程吗?
	if(confirm("<%=SystemEnv.getHtmlLabelName(26157,user.getLanguage())%>?")){
		//enableAllmenu();
		//document.location.href="/mobile/plugin/1/wfFunctionManageLink.jsp?f_weaver_belongto_userid=<%=userid%>&f_weaver_belongto_usertype=<%=usertype%>&flag=cancel&requestid=<%=requestid%>" //xwj for td3665 20060224
		jQuery.ajax({
            url:"/mobile/plugin/1/wfFunctionManageLink.jsp",
            type:"get",
            data:{
                f_weaver_belongto_userid:"<%=userid%>",
                f_weaver_belongto_usertype:"<%=usertype%>",
                flag:"cancel",
                requestid:"<%=requestid%>"
            },
            success:function(data){
                goBack();
            }
        });
		goBack();
	}
	else
	{
		//displayAllmenu();
		return false;
	}
}
function doRestart(obj)
{
	//您确定要启用当前流程吗?
	if(confirm("<%=SystemEnv.getHtmlLabelName(26158,user.getLanguage())%>?")){
		//enableAllmenu();
		//document.location.href="/mobile/plugin/1/wfFunctionManageLink.jsp?f_weaver_belongto_userid=<%=userid%>&f_weaver_belongto_usertype=<%=usertype%>&flag=restart&requestid=<%=requestid%>" //xwj for td3665 20060224
		jQuery.ajax({
            url:"/mobile/plugin/1/wfFunctionManageLink.jsp",
            type:"get",
            data:{
                f_weaver_belongto_userid:"<%=userid%>",
                f_weaver_belongto_usertype:"<%=usertype%>",
                flag:"restart",
                requestid:"<%=requestid%>"
            },
            success:function(data){
                goBack();
            }
        });
	}
	else
	{
		//displayAllmenu();
		return false;
	}
}

<%
    String tips = "";
    if(currentstatus==0)
    {
        tips = SystemEnv.getHtmlLabelName(18567,user.getLanguage());//您对该流程已经失去强制收回权限!
    }
%>
function doRetract(obj,type){	 //强制收回
obj.disabled=true;
var tips = '<%=tips%>';
if(tips != ""){
    alert(tips);
    return false;
}
try{
setPageAllButtonDisabled();
var $btnRejectObj = jQuery("#doretract");
$btnRejectObj.attr("loadding", 1);
$btnRejectObj.html(""+SystemEnv.getHtmlNoteName(4641));
}catch(e){}

//enableAllmenu();

//document.location.href="/mobile/plugin/1/wfFunctionManageLink.jsp?f_weaver_belongto_userid=<%=userid%>&f_weaver_belongto_usertype=<%=usertype%>&flag=rb&requestid=<%=requestid%>" //xwj for td3665 20060224
    //您确定要强制回收当前流程吗

    //if(confirm("<%=SystemEnv.getHtmlLabelName(126273,user.getLanguage())%>")){
        jQuery.ajax({
            url:"/mobile/plugin/1/wfFunctionManageLink.jsp",
            type:"get",
            data:{
                f_weaver_belongto_userid:"<%=userid%>",
                f_weaver_belongto_usertype:"<%=usertype%>",
                flag:type,
                requestid:"<%=requestid%>"
            },
            success:function(data){
			  if(type=='rb'){
				 if(data.indexOf("infoKey=rbfail")!=-1){
					alert("<%=SystemEnv.getHtmlLabelName(18567,user.getLanguage())%>");
				 }
			   }
                goBack();
            }
        });
    //}
}


function doDrawBack(obj){	//强制归档
obj.disabled=true;
//document.location.href="/mobile/plugin/1/wfFunctionManageLink.jsp?flag=ov&requestid=<%=requestid%>" //xwj for td3665 20060224
	jQuery.ajax({
	            url:"/mobile/plugin/1/wfFunctionManageLink.jsp",
	            type:"get",
	            data:{
	                flag:"ovm",
	                requestid:"<%=requestid%>"
	            },
	            success:function(data){
	                goBack();
	            }
	        });
}

function doShowDt(obj){
jQuery(".requestinfo_making").toggle();
jQuery(obj).find(".right").toggleClass("requestIfons_open");
}

function doHideDt(obj){
jQuery(".requestinfo_making").hide();
}


<%if (intervenorright>0){%>	   // 干预
function showIntervenor(obj)
{
	 jQuery("#intervenor").bind("click", function(event) { jQuery(".pageIntervaling").show(); });

}
<%}%>
<%if (isurger){%>

//function doSupervise(obj){		//督办
//	alert("-doSupervise---");
//}
<%}%>



function deleteWorkflowByRequestID(){   //单个删除
	
	if(confirm("<%=SystemEnv.getHtmlLabelName(124824,user.getLanguage())%>")){	 
	var requestid = "<%=requestid%>"+",";
    	jQuery.ajax({
			url:"/mobile/plugin/1/monitor/MonitorOperation.jsp",
			type:"get",
			data:{
				operation:"deleteworkflow",
				multiRequestIds:requestid,
			},
			beforeSend:function(xhr){
				try{
				//	e8showAjaxTips("<%=SystemEnv.getHtmlLabelName(84024,user.getLanguage())%>",true);
				}catch(e){}
			},
			complete:function(xhr){
				//e8showAjaxTips("",false);
			},
			success:function(data){
				//window.location="WorkflowMonitorList.jsp?"+data;
				//_xtable_CleanCheckedCheckbox();
				//_table.reLoad();
                goBack();
			}
		});
    }
	
	 //requestid = requestid+",";
     //document.weaver.multiRequestIds.value = requestid;
     //document.weaver.operation.value='deleteworkflow';
     //document.weaver.action='/system/systemmonitor/MonitorOperation.jsp';
     //document.weaver.submit();
}

		//生成系统提醒流程
		function triggerSystemWorkflow(prefix,url,title,loginuserid,type){
			prefix = prefix.replace(/~0~/g,"<span class='importantInfo'>");
			prefix = prefix.replace(/~1~/g,"</span>");
			prefix = prefix.replace(/~2~/g,"<span class='importantDetailInfo'>");
			
			var botfix = "<%=SystemEnv.getHtmlLabelName(126558,user.getLanguage())%>";
			if("<%=SystemEnv.getHtmlLabelName(18913,user.getLanguage())%>" == title){
				botfix="<%=SystemEnv.getHtmlLabelName(126556,user.getLanguage())%>";
			}
			var messagedetail =jQuery('#msgsendSystemInfo').html()+'<span>'+prefix + ',<%=SystemEnv.getHtmlLabelName(126554,user.getLanguage())%><a id="wfSErrorResetBtn" style="color:#2b8ae2!important;" href="'+url+'" title="'+title+'" type="'+type+'"> <%=SystemEnv.getHtmlLabelName(126555,user.getLanguage())%> </a>'+botfix+'</span>';
			var ontouchendevent = jQuery('.message-button').attr('ontouchend');
			jQuery('.message-button').css('background-color','#aebdc9');
			jQuery('.message-button').removeAttr('ontouchend');
			jQuery.ajax({
				type:'get',
				url:'TriggerRemindWorkflow.jsp?_'+new Date().getTime()+"=1",
				data:{
					remark:messagedetail,
					loginuserid:loginuserid,
					requestid:'<%=requestid%>'
				},
				error:function (XMLHttpRequest, textStatus, errorThrown) {
			    	jQuery('.message-button').attr('ontouchend',ontouchendevent);
			    	jQuery('.message-button').css('background-color','#017bfd');
				} , 
			    success:function (data, textStatus) {
			    	alert("<%=SystemEnv.getHtmlLabelName(126317,user.getLanguage())%>");
			    }
			});
		}
		
		function opencondition(conditid){
			jQuery('#'+conditid).toggle();
		}
		
		
		function rechoseoperator(){
	    	jQuery('.showWin').show();
			jQuery('.pageMasking').show();
		}

		<% if("y".equals(resetoperator)){%>
			jQuery('.showWin').hide();;
			jQuery('.pageMasking').hide();;
		<%}%>

		
		<%if("y".equals(Util.null2String(request.getParameter("needChooseOperator")))){%>
		    	jQuery('.showWin').show();
				jQuery('.pageMasking').show();
		<%}%>
		
		jQuery(".message-box").live('touchend', function (e) {
			if(jQuery(e.target).is("a:contains('<%=SystemEnv.getHtmlLabelName(126542,user.getLanguage())%>')")){
				e.stopPropagation();
			}else if(jQuery(e.target).is("div[index='conditiondetail']")){
				jQuery(e.target).parent('div').hide();
				e.stopPropagation();
			}else{
				jQuery(".message-detail-condition").hide();
			}
		});
			
		function hiddenSubmitWaitInfo(){
			var url = "emobile:hiddenSubmitWaitInfo";	
			location = url;
		}
		
		function removeAdminSystemWfRemarkInfo(){
	        var msghtml = jQuery(".mainFormRowValueTDDIV span a:contains('<%=SystemEnv.getHtmlLabelName(126555,7)%>')").parent().html();
	        if(msghtml){
		        msghtml = msghtml.replace(/,<%=SystemEnv.getHtmlLabelName(126554,7)%>.*[<%=SystemEnv.getHtmlLabelName(126558,7)%>|<%=SystemEnv.getHtmlLabelName(126556,7)%>]$/g,'');
		        jQuery(".mainFormRowValueTDDIV span a:contains('<%=SystemEnv.getHtmlLabelName(126555,7)%>')").parent().html(msghtml);
	        }
	        jQuery(".mainFormRowValueTDDIV a:contains('<%=SystemEnv.getHtmlLabelName(126542,7)%>')").replaceWith('<%=SystemEnv.getHtmlLabelName(126542,7)%>');
	    
	    
	        msghtml = jQuery(".mainFormRowValueTDDIV span a:contains('<%=SystemEnv.getHtmlLabelName(126555,8)%>')").parent().html();
	        if(msghtml){
		        msghtml = msghtml.replace(/,<%=SystemEnv.getHtmlLabelName(126554,8)%>.*[<%=SystemEnv.getHtmlLabelName(126558,8)%>|<%=SystemEnv.getHtmlLabelName(126556,8)%>]$/g,'');
		        jQuery(".mainFormRowValueTDDIV span a:contains('<%=SystemEnv.getHtmlLabelName(126555,8)%>')").parent().html(msghtml);
	        }
	        jQuery(".mainFormRowValueTDDIV a:contains('<%=SystemEnv.getHtmlLabelName(126542,8)%>')").replaceWith('<%=SystemEnv.getHtmlLabelName(126542,8)%>');
	    
	    
	        msghtml = jQuery(".mainFormRowValueTDDIV span a:contains('<%=SystemEnv.getHtmlLabelName(126555,9)%>')").parent().html();
	        if(msghtml){
	        	msghtml = msghtml.replace(/,<%=SystemEnv.getHtmlLabelName(126554,9)%>.*[<%=SystemEnv.getHtmlLabelName(126558,9)%>|<%=SystemEnv.getHtmlLabelName(126556,9)%>]$/g,'');
		        jQuery(".mainFormRowValueTDDIV span a:contains('<%=SystemEnv.getHtmlLabelName(126555,9)%>')").parent().html(msghtml);
	        }
	        jQuery(".mainFormRowValueTDDIV a:contains('<%=SystemEnv.getHtmlLabelName(126542,9)%>')").replaceWith('<%=SystemEnv.getHtmlLabelName(126542,9)%>');
		}
			
//function deleteWorkflow(obj){	 //批量删除
   // if(_xtable_CheckedCheckboxId()!=""){
        //if(isdel()) {
        //    obj.disabled=true;
        //    document.weaver.multiRequestIds.value = _xtable_CheckedCheckboxId();
        //    document.weaver.operation.value='deleteworkflow';
       //     document.weaver.action='/system/systemmonitor/MonitorOperation.jsp';
       //     document.weaver.submit();
       // }
        
   /*     top.Dialog.confirm("<%=SystemEnv.getHtmlLabelName(15097,user.getLanguage())%>", function (){
        	jQuery.ajax({
				url:"/system/systemmonitor/MonitorOperation.jsp",
				type:"post",
				data:{
					operation:"deleteworkflow",
					multiRequestIds:_xtable_CheckedCheckboxId(),
				},
				beforeSend:function(xhr){
					try{
						e8showAjaxTips("正在删除数据,请稍候...",true);
					}catch(e){}
				},
				complete:function(xhr){
					e8showAjaxTips("",false);
				},
				success:function(data){
					//window.location="WorkflowMonitorList.jsp?"+data;
					_xtable_CleanCheckedCheckbox();
					_table.reLoad();
				}
			});
        }, function () {}, 320, 90,true);
        
	}else{
		top.Dialog.alert("<%=SystemEnv.getHtmlLabelName(20149,user.getLanguage())%>");
    }
}	 */

function dealSelfLock(){
	jQuery.ajax({
	    url: "/mobile/plugin/checkLockAjax.jsp?type=unlockRequest&requestid=<%=requestid%>&nodeid=<%=nodeid%>",
	    dataType: "text", 
		type:"post",
		async:true,
	    contentType : "charset=gbk", 
	    error:function(ajaxrequest){}, 
	    success:function(data){
	    	location.reload();
	    }  
	}); 
}


//如果开启锁定,则需先解锁
function goBack_before(){
	<%if(needcheckLock && islockInThisPage){%>
		jQuery.ajax({
		    url: "/mobile/plugin/checkLockAjax.jsp?type=unlockRequest&requestid=<%=requestid%>&nodeid=<%=nodeid%>",
		    dataType: "text", 
			type:"post",
			async:true,
		    contentType : "charset=gbk", 
		    error:function(ajaxrequest){}, 
		    success:function(data){
		    	goBack();
		    }  
		}); 
	<%}else{%>
		goBack();
	<%}%>
}

function logout_before(){
	<%if(needcheckLock){%>
		jQuery.ajax({
		    url: "/mobile/plugin/checkLockAjax.jsp?type=unlockRequest&requestid=<%=requestid%>&nodeid=<%=nodeid%>",
		    dataType: "text", 
			type:"post",
			async:true,
		    contentType : "charset=gbk", 
		    error:function(ajaxrequest){}, 
		    success:function(data){
		    	logout();
		    }  
		}); 
	<%}else{%>
		logout();
	<%}%>
}



function doUnlock(obj){
	var flag=confirm('<%=SystemEnv.getHtmlLabelName(128824,user.getLanguage())%>');
	
	jQuery.ajax({
	    url: "/mobile/plugin/checkLockAjax.jsp?type=unlockRequest&requestid=<%=requestid%>&nodeid=<%=nodeid%>",
	    dataType: "text", 
		type:"post",
		async:true,
	    contentType : "charset=gbk", 
	    error:function(ajaxrequest){}, 
	    success:function(data){
	    	if(flag){
	    		dosave(obj);
	    	}else{
	    		goBack();
	    	}
	    }  
	}); 
}

function showData(){
	var url = "/mobile/plugin/1/dataValidation.jsp?requestid=<%=requestid%>&workflowid=<%=workflowid%>&formid=<%=formId%>&isbill=<%=isBill%>&nodeid=<%=nodeid%>&t=/mobile/plugin/1/showLocationTrack.jsp";
	location.href = url;
}



</script>

<%
RecordSet rs_cus = new RecordSet();
String custompage4Emoble = "";
rs_cus.executeSql("select custompage4Emoble from workflow_base where id = "+Util.getIntValue(workflowid));
if(rs_cus.next()){
	custompage4Emoble = Util.null2String(rs_cus.getString("custompage4Emoble")).trim();
}
%>
<%
if(!"".equals(custompage4Emoble)){
%> 
<jsp:include page="<%=custompage4Emoble%>" flush="true">
	<jsp:param name="workflowid" value="<%=workflowid%>" />
	<jsp:param name="nodeid" value="<%=nodeId%>" />
	<jsp:param name="requestid" value="<%=requestid%>" />
	<jsp:param name="userid" value="<%=userid%>" />
	<jsp:param name="languageid" value="<%=user.getLanguage()%>" />
	<jsp:param name="module" value="<%=module%>" />
</jsp:include>
<%
}
    rs_cus.executeQuery("select isremark, preisremark from workflow_currentoperator where requestid = ? and userid = ? and nodeid=?",requestid,userid,nodeId);
    rs_cus.next();
    String _isremark = Util.null2String(rs_cus.getString("isremark"));
    String _preisremark = Util.null2String(rs_cus.getString("preisremark"));
    if("2".equals(_isremark) && "8".equals(_preisremark)){
        RequestOperationMsgManager romm = new RequestOperationMsgManager();
        RequestMsgEntity requestMsgEntity = romm.getRemarkReplyMsg(String.valueOf(requestid),String.valueOf(userid));
        new MsgPushUtil().pushMsg(requestMsgEntity);
    }
%>
<%
	rs_cus.executeQuery("select 1 from FnaInvoiceWfInfo where workflowid = ?", workflowid);
	if(rs_cus.next()){
%>
	<jsp:include page="invoiceScanning.jsp" flush="true">
	    <jsp:param name="requestid" value="<%=requestid%>" />
	    <jsp:param name="workflowid" value="<%=workflowid%>" />
	</jsp:include>
<%		
	}
%>
</body>
</html>