varparserdoc.jsp
114 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
<%@ page contentType="text/html; charset=UTF-8"%>
<%@ include file="/mobilemode/init.jsp"%>
<html>
<head>
<head>
<title></title>
<script type="text/javascript" src="/formmode/js/jquery/nicescroll/jquery.nicescroll.min_wev8.js"></script>
<style type="text/css">
*{
font-family: 'Microsoft YaHei', Arial;
margin: 0;
padding: 0;
}
html,body{
height: 100%;
margin: 0px;
padding: 0px;
overflow: auto;
box-sizing: border-box;
}
body{
padding: 10px 10px 20px 10px;
}
table{
FONT-SIZE: 9pt;
}
.mainTable{
width: 100%;
border-collapse: collapse;
display: none;
}
.mainTable td{
border-bottom: 1px dotted #ccc;
padding: 5px 2px;
vertical-align: top;
color: #666;
}
.mainTable td.label{
font-weight: bold;
text-align: right;
color: #333;
}
.mainTable td .content div{
line-height: 20px;
}
.mainTable tr.noborder td{
border-bottom: none;
}
.p_table{
width: 100%;
border-collapse: collapse;
}
.p_table td{
padding: 0px;
padding-bottom: 10px;
border-bottom: none;
padding-right: 5px;
}
.p_table tr:last-child td{
padding-bottom: 5px;
}
.p_table td.p_required{
color: #bbb;
white-space: nowrap;
}
.p_table td.p_type{
color: #bbb;
}
.resurnContent{
line-height: 20px;
margin-top: -2px;
}
.codeContainer{
width: 99%;
font-size: 12px;
color:#666;
line-height:23px;
resize: none;
overflow-x: hidden;
background-color: #f7f7f7;
border: solid 1px #e8e8e8;
border-radius: 5px;
padding: 5px;
}
.e8_data_list strong{
color:red;
}
.e8_data_list code{
color:#0464bb;
}
.e8_data_label{
font-size: 14px;
color: #000;
border-bottom: 1px solid #aaa;
}
.e8_data_list dd{
padding: 5px 10px;
padding-left: 15px;
border-bottom: 1px dashed #ddd;
}
.e8_data_list dd{
background: url("/mobilemode/images/member-collapsed.gif") no-repeat 0px 15px;
}
.e8_data_list dd:hover{
background: url("/mobilemode/images/member-hover.gif") no-repeat 0px 15px;
}
.e8_data_list .item_label{
font-size: 12px;
color: #000;
line-height: 20px;
}
.e8_data_list .item_desc{
color: #aaa;
font-size: 11px;
}
.browserBtn{
width: 16px;
height: 22px;
background-image: url("/wui/theme/ecology8/skins/default/general/browser_wev8.png");
background-color: rgba(0,0,0,0);
background-position: 0 50%;
background-repeat: no-repeat;
position: absolute;
top:2px;
}
select{
border: 1px solid #ccc;
height: 25px;
width: 135px;
}
input{
width: 200px;
border: 1px solid #ccc;
height: 23px;
padding-left: 5px;
font: 12px Microsoft YaHei;
}
.codeContainer .field{
margin-bottom:5px;
}
.codeContainer .field label{
width:75px;
display:block;
float:left;
}
div.field:nth-child(3){
position:relative;
margin-left:75px;
display:none;
}
div.field:nth-child(2) div:nth-child(3){
position:absolute;
left:215px;
top:2px;
color: #017afd;
cursor: pointer;
}
</style>
<script>
$(function(){
//$("html").niceScroll();
$(".e8_data_list dd").toggle(function(){
var $that = $(this);
$that.css("background-image", "url('/mobilemode/images/member-expanded.gif')");
$(".mainTable", $that).show();
}, function(){
var $that = $(this);
$that.css("background-image", "");
$(".mainTable", $that).hide();
});
$(".e8_data_list .item_detail").bind("click", function(e){
e.stopPropagation();
});
});
</script>
</head>
<body>
<%if(user.getLanguage() == 7){ %>
<div class="e8_data_label">
用户类
</div>
<dl class="e8_data_list">
<dd>
<div class="item_header">
<div class="item_label">$m.getUser();</div>
<div class="item_desc">通过此方法可以获取用户相关信息</div>
</div>
<div class="item_detail">
<table class="mainTable">
<colgroup>
<col width="45px"/>
<col width="*"/>
</colgroup>
<tr>
<td class="label">参数:</td>
<td>
<table class="p_table">
<tr>
<td class="p_name">id</td>
<td class="p_required">[可选]</td>
<td class="p_type">(string)</td>
<td class="p_explain">用户id,如果不传参数,则默认返回当前登录用户,参数ID支持变量。<strong>注意:参数为string类型在传参时需要加双引号</strong></td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="label">返回:</td>
<td>
<div class="resurnContent">
用户相关信息
</div>
</td></tr>
<tr class="noborder">
<td class="label">示例:</td>
<td>
<div>
<div class="codeContainer">该方法默认返回的是一个用户对象,如需直接返回该对象的某个属性,可以通过".属性"的方式返回,表达式必须以<strong>$m.</strong>开头,<strong>分号 ; </strong>结尾,如下示例所示:
<div>当前用户的登录ID:</div><div><code>$m.getUser().loginid;</code></div>
<div>当前用户的登录ID:</div><div><code>$m.getUser("{CURRUSER}").loginid;</code></div>
<div>指定用户的登录ID:</div><div><code>$m.getUser("{id}").loginid;</code>(括号中的ID可以是url传递变量,也可以是数据集变量{t.id}形式)</div>
<div>ID为3的用户姓名:</div><div><code>$m.getUser("3").lastname;</code></div>
<div>ID为3的用户邮箱:</div><div><code>$m.getUser("3").email;</code></div>
<div>ID为3的用户手机:</div><div><code>$m.getUser("3").mobile;</code></div>
<div>ID为3的姓:</div><div><code>$m.getUser("3").firstname;</code></div>
<div>ID为3的名:</div><div><code>$m.getUser("3").lastname;</code></div>
<div>ID为3的昵称:</div><div><code>$m.getUser("3").aliasname;</code></div>
<div>ID为3的收货地址:</div><div><code>$m.getUser("3").receiveaddress;</code></div>
</div>
</div>
</td>
</tr>
</table>
</div>
</dd>
<dd>
<div class="item_header">
<div class="item_label">$m.getAvatar();</div>
<div class="item_desc">通过此方法可以获取用户头像</div>
</div>
<div class="item_detail">
<table class="mainTable">
<colgroup>
<col width="45px"/>
<col width="*"/>
</colgroup>
<tr>
<td class="label">参数:</td>
<td>
<table class="p_table">
<tr>
<td class="p_name">ids</td>
<td class="p_required">[必需]</td>
<td class="p_type">(string)</td>
<td class="p_explain">用户id,如果需要获取多个用户的头像,传入用逗号分隔的参数即可,参数支持变量。<strong>注意:参数为string类型在传参时需要加双引号</strong></td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="label">返回:</td>
<td>
<div class="resurnContent">
包含头像信息的html标签,如果用户未设置头像,则显示系统设置的默认头像信息。
</div>
</td></tr>
<tr class="noborder">
<td class="label">示例:</td>
<td>
<div>
<div class="codeContainer">
表达式必须以<strong>$m.</strong>开头,<strong>分号 ; </strong>结尾,如下示例所示:
<div>当前用户头像:</div><div><code>$m.getAvatar("{CURRUSER}");</code></div>
<div>指定用户的头像:</div><div><code>$m.getAvatar("{id}");</code>(括号中的ID可以是url传递变量,也可以是数据集变量{t.id}形式)</div>
<div>ID为3的用户头像:</div><div><code>$m.getAvatar("3");</code></div>
<div>ID为3,4的用户头像:</div><div><code>$m.getAvatar("3,4");</code></div>
</div>
</div>
</td>
</tr>
</table>
</div>
</dd>
<dd>
<div class="item_header">
<div class="item_label">$m.getDepartment();</div>
<div class="item_desc">通过此方法可以获取用户部门</div>
</div>
<div class="item_detail">
<table class="mainTable">
<colgroup>
<col width="45px"/>
<col width="*"/>
</colgroup>
<tr>
<td class="label">参数:</td>
<td>
<table class="p_table">
<tr>
<td class="p_name">id</td>
<td class="p_required">[可选]</td>
<td class="p_type">(string)</td>
<td class="p_explain">用户id,如果不传参,则默认获取当前用户部门,参数支持变量。<strong>注意:参数为string类型在传参时需要加双引号</strong></td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="label">返回:</td>
<td>
<div class="resurnContent">
用户部门名称
</div>
</td></tr>
<tr class="noborder">
<td class="label">示例:</td>
<td>
<div>
<div class="codeContainer">
表达式必须以<strong>$m.</strong>开头,<strong>分号 ; </strong>结尾,如下示例所示:
<div>当前用户部门:</div><div><code>$m.getDepartment();</code></div>
<div>当前用户部门:</div><div><code>$m.getDepartment("{CURRUSER}");</code></div>
<div>指定用户部门:</div><div><code>$m.getDepartment("{id}");</code>(括号中的ID可以是url传递变量,也可以是数据集变量{t.id}形式)</div>
<div>ID为4的用户部门:</div><div><code>$m.getDepartment("4");</code></div>
</div>
</div>
</td>
</tr>
</table>
</div>
</dd>
<dd>
<div class="item_header">
<div class="item_label">$m.getManager();</div>
<div class="item_desc">通过此方法可以获取用户上级</div>
</div>
<div class="item_detail">
<table class="mainTable">
<colgroup>
<col width="45px"/>
<col width="*"/>
</colgroup>
<tr>
<td class="label">参数:</td>
<td>
<table class="p_table">
<tr>
<td class="p_name">id</td>
<td class="p_required">[可选]</td>
<td class="p_type">(string)</td>
<td class="p_explain">用户id,如果不传参,则默认获取当前用户上级,参数支持变量。<strong>注意:参数为string类型在传参时需要加双引号</strong></td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="label">返回:</td>
<td>
<div class="resurnContent">
用户上级名称
</div>
</td></tr>
<tr class="noborder">
<td class="label">示例:</td>
<td>
<div>
<div class="codeContainer">
表达式必须以<strong>$m.</strong>开头,<strong>分号 ; </strong>结尾,如下示例所示:
<div>当前用户上级:</div><div><code>$m.getManager();</code></div>
<div>当前用户上级:</div><div><code>$m.getManager("{CURRUSER}");</code></div>
<div>指定用户上级:</div><div><code>$m.getManager("{id}");</code>(括号中的ID可以是url传递变量,也可以是数据集变量{t.id}形式)</div>
<div>ID为4的用户上级:</div><div><code>$m.getManager("4");</code></div>
</div>
</div>
</td>
</tr>
</table>
</div>
</dd>
</dl>
<div class="e8_data_label" style="margin-top:15px;">
浏览框类
</div>
<dl class="e8_data_list">
<dd>
<div class="item_header">
<div class="item_label">$m.getBrowserText();</div>
<div class="item_desc">通过此方法可以获取浏览框的显示文本</div>
</div>
<div class="item_detail">
<table class="mainTable">
<colgroup>
<col width="45px"/>
<col width="*"/>
</colgroup>
<tr>
<td class="label">参数:</td>
<td>
<table class="p_table">
<tr>
<td class="p_name">value</td>
<td class="p_required">[必需]</td>
<td class="p_type">(string)</td>
<td class="p_explain">浏览框字段值,多个值以逗号分隔,参数支持变量。<strong>注意:参数为string类型在传参时需要加双引号</strong></td>
</tr>
<tr>
<td class="p_name">fieldid</td>
<td class="p_required">[必需]</td>
<td class="p_type">int</td>
<td class="p_explain">浏览框字段id</td>
</tr>
<tr>
<td class="p_name">modeid</td>
<td class="p_required">[可选]</td>
<td class="p_type">(int)</td>
<td class="p_explain">对应数据的模块id,表单建模数据关联授权使用。</td>
</tr>
<tr>
<td class="p_name">billid</td>
<td class="p_required">[可选]</td>
<td class="p_type">(string)</td>
<td class="p_explain">数据id,表单建模数据关联授权使用(此参数需和modeid一起使用)。</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="label">返回:</td>
<td>
<div class="resurnContent">浏览框对应ID的显示文本</div>
</td></tr>
<tr class="noborder">
<td class="label">示例:</td>
<td>
<div>
<div class="codeContainer">
表达式必须以<strong>$m.</strong>开头,<strong>分号 ; </strong>结尾,如下示例所示:
<div>如在列表插件中使用:</div>
<div>获取浏览框字段值:</div><div><code>$m.getBrowserText("{字段名称}", 1); //字段id为1</code></div>
<div>获取浏览框字段值(关联授权):</div><div><code>$m.getBrowserText("{字段名称}", 1, 1, "1"); //字段id为1,模块id为1,数据id为1</code></div>
</div>
</div>
</td>
</tr>
</table>
</div>
</dd>
</dl>
<div class="e8_data_label" style="margin-top:15px;">
下拉框类
</div>
<dl class="e8_data_list">
<dd>
<div class="item_header">
<div class="item_label">$m.getSelectText();</div>
<div class="item_desc">通过此方法可以获取下拉框的显示文本</div>
</div>
<div class="item_detail">
<table class="mainTable">
<colgroup>
<col width="45px"/>
<col width="*"/>
</colgroup>
<tr>
<td class="label">参数:</td>
<td>
<table class="p_table">
<tr>
<td class="p_name">value</td>
<td class="p_required">[必需]</td>
<td class="p_type">(string)</td>
<td class="p_explain">下拉框的真实值,一般是id。参数支持变量。<strong>注意:参数为string类型在传参时需要加双引号</strong></td>
</tr>
<tr>
<td class="p_name">idOrName</td>
<td class="p_required">[必需]</td>
<td class="p_type">String</td>
<td class="p_explain">可以是 (1)建模表字段id,如19661 或 (2)表名称.字段名称,如tableA.name</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="label">返回:</td>
<td>
<div class="resurnContent">下拉框对应value的显示文本 </div>
</td></tr>
<tr class="noborder">
<td class="label">示例:</td>
<td>
<div>
<div class="codeContainer">
表达式必须以<strong>$m.</strong>开头,<strong>分号 ; </strong>结尾,如下示例所示:
<div>字段id作为参数:</div><div><code>$m.getSelectText("1","19661");</code></div>
<div>表名字段名作为参数:</div><div><code>$m.getSelectText("1","uf_cc_test.xb");</code></div>
</div>
</div>
</td>
</tr>
</table>
</div>
</dd>
</dl>
<div class="e8_data_label" style="margin-top:15px;">
显示转换类
</div>
<dl class="e8_data_list">
<dd>
<div class="item_header">
<div class="item_label">$m.convertToStar();</div>
<div class="item_desc">通过此方法可以将星级评分插件存储在数据库中的值转换为星级显示</div>
</div>
<div class="item_detail">
<table class="mainTable">
<colgroup>
<col width="45px"/>
<col width="*"/>
</colgroup>
<tr>
<td class="label">参数:</td>
<td>
<table class="p_table">
<tr>
<td class="p_name">value</td>
<td class="p_required">[必需]</td>
<td class="p_type">(string)</td>
<td class="p_explain">星级评分插件存储在数据库中的值。<strong>注意:参数为string类型在传参时需要加双引号</strong></td>
</tr>
<tr>
<td class="p_name">max</td>
<td class="p_required">[可选]</td>
<td class="p_type">(int)</td>
<td class="p_explain">评分满分值,默认为5。</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="label">返回:</td>
<td>
<div class="resurnContent">显示星级的html,可直接用于在页面上显示 </div>
</td></tr>
<tr class="noborder">
<td class="label">示例:</td>
<td>
<div>
<div class="codeContainer">
表达式必须以<strong>$m.</strong>开头,<strong>分号 ; </strong>结尾,如下示例所示:
<div>如在列表插件中使用:</div>
<div><code>$m.convertToStar("{星级评分插件对应的字段名称}");</code></div>
<div><code>$m.convertToStar("{星级评分插件对应的字段名称}",8);</code></div>
</div>
</div>
</td>
</tr>
</table>
</div>
</dd>
<dd>
<div class="item_header">
<div class="item_label">$m.convertToImage();</div>
<div class="item_desc">通过此方法可以将docids转成图片显示</div>
</div>
<div class="item_detail">
<table class="mainTable">
<colgroup>
<col width="45px"/>
<col width="*"/>
</colgroup>
<tr>
<td class="label">参数:</td>
<td>
<table class="p_table">
<tr>
<td class="p_name">docids</td>
<td class="p_required">[必需]</td>
<td class="p_type">(string)</td>
<td class="p_explain">文档id,如果需要获取多个文档id的图片,传入用逗号分隔的参数即可,参数支持变量。<strong>注意:参数为string类型在传参时需要加双引号</strong></td>
</tr>
<tr>
<td class="p_name">modeid</td>
<td class="p_required">[可选]</td>
<td class="p_type">(int)</td>
<td class="p_explain">对应数据的模块id,表单建模临时赋权使用。</td>
</tr>
<tr>
<td class="p_name">billid</td>
<td class="p_required">[可选]</td>
<td class="p_type">(string)</td>
<td class="p_explain">数据id,表单建模临时赋权使用(此参数需和modeid一起使用)。</td>
</tr>
<tr>
<td class="p_name">isDisplayWithGrid</td>
<td class="p_required">[可选]</td>
<td class="p_type">(boolean)</td>
<td class="p_explain">是否使用九宫格格式显示图片,默认为false,如需要使用九宫格格式显示图片,将此参数设置为true即可</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="label">返回:</td>
<td>
<div class="resurnContent">图片html,可直接用于在页面上显示 </div>
</td></tr>
<tr class="noborder">
<td class="label">示例:</td>
<td>
<div>
<div class="codeContainer">
表达式必须以<strong>$m.</strong>开头,<strong>分号 ; </strong>结尾,如下示例所示:
<div>如在列表插件中使用:</div><div><code>$m.convertToImage("{图片对应的字段名称}");</code></div>
<div><code>$m.convertToImage("{图片对应的字段名称}", true); //九宫格格式展示</code></div>
<div><code>$m.convertToImage("{图片对应的字段名称}", 1, "1"); //模块id为1、数据id为1</code></div>
<div><code>$m.convertToImage("{图片对应的字段名称}", 1, "1", true); //模块id为1、数据id为1,九宫格格式展示</code></div>
</div>
</div>
</td>
</tr>
</table>
</div>
</dd>
<dd>
<div class="item_header">
<div class="item_label">$m.convertToFile();</div>
<div class="item_desc">通过此方法可以将docids转成附件显示</div>
</div>
<div class="item_detail">
<table class="mainTable">
<colgroup>
<col width="45px"/>
<col width="*"/>
</colgroup>
<tr>
<td class="label">参数:</td>
<td>
<table class="p_table">
<tr>
<td class="p_name">docids</td>
<td class="p_required">[必需]</td>
<td class="p_type">(string)</td>
<td class="p_explain">文档id,如果需要获取多个文档id的附件,传入用逗号分隔的参数即可,参数支持变量。<strong>注意:参数为string类型在传参时需要加双引号</strong></td>
</tr>
<tr>
<td class="p_name">modeid</td>
<td class="p_required">[可选]</td>
<td class="p_type">(int)</td>
<td class="p_explain">对应数据的模块id,表单建模临时赋权使用。</td>
</tr>
<tr>
<td class="p_name">billid</td>
<td class="p_required">[可选]</td>
<td class="p_type">(string)</td>
<td class="p_explain">数据id,表单建模临时赋权使用(此参数需和modeid一起使用)。</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="label">返回:</td>
<td>
<div class="resurnContent">附件html,可直接用于在页面上显示 </div>
</td></tr>
<tr class="noborder">
<td class="label">示例:</td>
<td>
<div>
<div class="codeContainer">
表达式必须以<strong>$m.</strong>开头,<strong>分号 ; </strong>结尾,如下示例所示:
<div>如在列表插件中使用:</div><div><code>$m.convertToFile("{附件对应的字段名称}");</code></div>
<div><code>$m.convertToFile("{附件对应的字段名称}", 1, "1");</code></div>
</div>
</div>
</td>
</tr>
</table>
</div>
</dd>
<dd>
<div class="item_header">
<div class="item_label">$m.convertToAudio();</div>
<div class="item_desc">通过此方法可以将docids或资源路径转成语音显示</div>
</div>
<div class="item_detail">
<table class="mainTable">
<colgroup>
<col width="45px"/>
<col width="*"/>
</colgroup>
<tr>
<td class="label">参数:</td>
<td>
<table class="p_table">
<tr>
<td class="p_name">docids</td>
<td class="p_required">[必需]</td>
<td class="p_type">(string)</td>
<td class="p_explain">文档id或路径,如果需要获取多个文档id或路径的语音,传入用逗号分隔的参数即可,参数支持变量。<strong>注意:参数为string类型在传参时需要加双引号</strong></td>
</tr>
<tr>
<td class="p_name">modeid</td>
<td class="p_required">[可选]</td>
<td class="p_type">(int)</td>
<td class="p_explain">对应数据的模块id,表单建模临时赋权使用。</td>
</tr>
<tr>
<td class="p_name">billid</td>
<td class="p_required">[可选]</td>
<td class="p_type">(string)</td>
<td class="p_explain">数据id,表单建模临时赋权使用(此参数需和modeid一起使用)。</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="label">返回:</td>
<td>
<div class="resurnContent">语音html,可直接用于在页面上显示 </div>
</td></tr>
<tr class="noborder">
<td class="label">示例:</td>
<td>
<div>
<div class="codeContainer">
表达式必须以<strong>$m.</strong>开头,<strong>分号 ; </strong>结尾,如下示例所示:
<div>如在列表插件中使用:</div><div><code>$m.convertToAudio("{附件对应的字段名称}");</code></div>
<div><code>$m.convertToAudio("{附件对应的字段名称}", 1, "1");</code></div>
<div><code>$m.convertToAudio("/mobilemode/apps/song.mp3");</code></div>
</div>
</div>
</td>
</tr>
</table>
</div>
</dd>
<dd>
<div class="item_header">
<div class="item_label">$m.convertToProgressBar();</div>
<div class="item_desc">通过此方法可以将一个数值转成进度条显示</div>
</div>
<div class="item_detail">
<table class="mainTable">
<colgroup>
<col width="45px"/>
<col width="*"/>
</colgroup>
<tr>
<td class="label">参数:</td>
<td>
<table class="p_table">
<tr>
<td class="p_name">value</td>
<td class="p_required">[必需]</td>
<td class="p_type">(string)</td>
<td class="p_explain">数值,如80。参数支持变量。<strong>注意:参数为string类型在传参时需要加双引号</strong></td>
</tr>
<tr>
<td class="p_name">color</td>
<td class="p_required">[可选]</td>
<td class="p_type">(string)</td>
<td class="p_explain">颜色,可以是一个固定的颜色,如red。也可以按照数值区间进行设置,如0-60:red,61-100:blue。</td>
</tr>
<tr>
<td class="p_name">isSmall</td>
<td class="p_required">[可选]</td>
<td class="p_type">(boolean)</td>
<td class="p_explain">是否使用简易模式的滚动条,默认false。</td>
</tr>
<tr>
<td class="p_name">max</td>
<td class="p_required">[可选]</td>
<td class="p_type">(double)</td>
<td class="p_explain">最大值,默认100.0。比如你的值是0.87,预期显示的是87%,此时可将max值指定为1.0即可。<strong>注意:参数为double类型在传参时请带上小数位,如1.0</strong></td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="label">返回:</td>
<td>
<div class="resurnContent">进度条html,可直接用于在页面上显示 </div>
</td></tr>
<tr class="noborder">
<td class="label">示例:</td>
<td>
<div>
<div class="codeContainer">
表达式必须以<strong>$m.</strong>开头,<strong>分号 ; </strong>结尾,如下示例所示:
<div><code>$m.convertToProgressBar("80");</code></div>
<div>指定进度条颜色:</div><div><code>$m.convertToProgressBar("80", "red");</code></div>
<div>按照数值区间指定进度条颜色:</div><div><code>$m.convertToProgressBar("80", "0-60:red,61-100:blue");</code></div>
<div>使用简易模式的滚动条:</div><div><div><code>$m.convertToProgressBar("80", true);</code></div>
<div>指定最大值:</div><div><div><code>$m.convertToProgressBar("0.87", 1.0);</code></div>
<div>指定进度条颜色,同时使用简易模式,并指定最大值:</div><div><code>$m.convertToProgressBar("0.87", "red", true, 1.0);</code></div>
<div>如在列表或数据明细插件中使用:</div><div><code>$m.convertToProgressBar("{字段名称}");</code></div>
</div>
</div>
</td>
</tr>
</table>
</div>
</dd>
<dd>
<div class="item_header">
<div class="item_label">$m.convertToCircleProgressBar();</div>
<div class="item_desc">通过此方法可以将一个数值转成环形进度条显示</div>
</div>
<div class="item_detail">
<table class="mainTable">
<colgroup>
<col width="45px"/>
<col width="*"/>
</colgroup>
<tr>
<td class="label">参数:</td>
<td>
<table class="p_table">
<tr>
<td class="p_name">value</td>
<td class="p_required">[必需]</td>
<td class="p_type">(string)</td>
<td class="p_explain">数值,如80。参数支持变量。<strong>注意:参数为string类型在传参时需要加双引号</strong></td>
</tr>
<tr>
<td class="p_name">color</td>
<td class="p_required">[可选]</td>
<td class="p_type">(string)</td>
<td class="p_explain">颜色,可以是一个固定的颜色,如red。也可以按照数值区间进行设置,如0-60:red,61-100:blue。</td>
</tr>
<tr>
<td class="p_name">diameter</td>
<td class="p_required">[可选]</td>
<td class="p_type">(int)</td>
<td class="p_explain">环形进度条直径大小,默认44。</td>
</tr>
<tr>
<td class="p_name">max</td>
<td class="p_required">[可选]</td>
<td class="p_type">(double)</td>
<td class="p_explain">最大值,默认100.0。比如你的值是0.87,预期显示的是87%,此时可将max值指定为1.0即可。<strong>注意:参数为double类型在传参时请带上小数位,如1.0</strong></td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="label">返回:</td>
<td>
<div class="resurnContent">环形进度条html,可直接用于在页面上显示 </div>
</td></tr>
<tr class="noborder">
<td class="label">示例:</td>
<td>
<div>
<div class="codeContainer">
表达式必须以<strong>$m.</strong>开头,<strong>分号 ; </strong>结尾,如下示例所示:
<div><code>$m.convertToCircleProgressBar("80");</code></div>
<div>指定进度条颜色:</div><div><code>$m.convertToCircleProgressBar("80", "red");</code></div>
<div>按照数值区间指定进度条颜色:</div><div><code>$m.convertToCircleProgressBar("80", "0-60:red,61-100:blue");</code></div>
<div>指定环形直径大小:</div><div><div><code>$m.convertToCircleProgressBar("80", 60);</code></div>
<div>指定最大值:</div><div><div><code>$m.convertToCircleProgressBar("0.87", 1.0);</code></div>
<div>指定进度条颜色,同时指定环形直径大小 和 最大值:</div><div><code>$m.convertToCircleProgressBar("0.87", "red", 60, 1.0);</code></div>
<div>如在列表或数据明细插件中使用:</div><div><code>$m.convertToCircleProgressBar("{字段名称}");</code></div>
</div>
</div>
</td>
</tr>
</table>
</div>
</dd>
</dl>
<%}else if(user.getLanguage() == 8){ %>
<div class="e8_data_label">
User
</div>
<dl class="e8_data_list">
<dd>
<div class="item_header">
<div class="item_label">$m.getUser();</div>
<div class="item_desc">Use this method to get information about the user.</div>
</div>
<div class="item_detail">
<table class="mainTable">
<colgroup>
<col width="45px"/>
<col width="*"/>
</colgroup>
<tr>
<td class="label">Parameter:</td>
<td>
<table class="p_table">
<tr>
<td class="p_name">id</td>
<td class="p_required">[Optional]</td>
<td class="p_type">(string)</td>
<td class="p_explain">User id, if no parameter is passed, the current login user is returned by default, parameter ID supports variables.<strong>Note: when parameters are passed string type argument requires double quotes.</strong></td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="label">Return:</td>
<td>
<div class="resurnContent">
User related information
</div>
</td></tr>
<tr class="noborder">
<td class="label">Example:</td>
<td>
<div>
<div class="codeContainer">This method returns a user object by default. If you want to directly return a property of the object, you can return it by using ".property". The expression must start with <strong>$m.</strong> and end with a <strong>semicolon ; </strong>as shown in the following example:
<div>Login ID of current user:</div><div><code>$m.getUser().loginid;</code></div>
<div>Login ID of current user:</div><div><code>$m.getUser("{CURRUSER}").loginid;</code></div>
<div>Login ID of specified user:</div><div><code>$m.getUser("{id}").loginid;</code>(The ID in parentheses can be a url pass variable, or it can be a data set variable {t.id})</div>
<div>User name of ID 3:</div><div><code>$m.getUser("3").lastname;</code></div>
<div>User email of ID 3:</div><div><code>$m.getUser("3").email;</code></div>
<div>User phone of ID 3:</div><div><code>$m.getUser("3").mobile;</code></div>
<div>Last name of ID 3:</div><div><code>$m.getUser("3").firstname;</code></div>
<div>First name of ID 3:</div><div><code>$m.getUser("3").lastname;</code></div>
<div>Nickname of ID 3:</div><div><code>$m.getUser("3").aliasname;</code></div>
<div>Receiving address of ID 3:</div><div><code>$m.getUser("3").receiveaddress;</code></div>
</div>
</div>
</td>
</tr>
</table>
</div>
</dd>
<dd>
<div class="item_header">
<div class="item_label">$m.getAvatar();</div>
<div class="item_desc">Use this method to get the user's avatar.</div>
</div>
<div class="item_detail">
<table class="mainTable">
<colgroup>
<col width="45px"/>
<col width="*"/>
</colgroup>
<tr>
<td class="label">Parameter:</td>
<td>
<table class="p_table">
<tr>
<td class="p_name">ids</td>
<td class="p_required">[Required]</td>
<td class="p_type">(string)</td>
<td class="p_explain">User id, if you need to obtain multiple user avatars, pass in comma-separated parameters, and the parameters support variables.<strong>Note: when parameters are passed string type argument requires double quotes.</strong></td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="label">Return:</td>
<td>
<div class="resurnContent">
Html tag with avatar information. If the user does not set the head image, the default head image information set by the system will be displayed.
</div>
</td></tr>
<tr class="noborder">
<td class="label">Example:</td>
<td>
<div>
<div class="codeContainer">
The expression must start with <strong>$m.</strong> and end with a <strong>semicolon ; </strong>as shown in the following example:
<div>Avatar of current user:</div><div><code>$m.getAvatar("{CURRUSER}");</code></div>
<div>Avatar of specified user:</div><div><code>$m.getAvatar("{id}");</code>(The ID in parentheses can be a url pass variable, or it can be a data set variable {t.id})</div>
<div>Avatar of ID 3:</div><div><code>$m.getAvatar("3");</code></div>
<div>Avatar of ID 3 and ID 4:</div><div><code>$m.getAvatar("3,4");</code></div>
</div>
</div>
</td>
</tr>
</table>
</div>
</dd>
<dd>
<div class="item_header">
<div class="item_label">$m.getDepartment();</div>
<div class="item_desc">Use this method to get the user's department.</div>
</div>
<div class="item_detail">
<table class="mainTable">
<colgroup>
<col width="45px"/>
<col width="*"/>
</colgroup>
<tr>
<td class="label">Parameter:</td>
<td>
<table class="p_table">
<tr>
<td class="p_name">id</td>
<td class="p_required">[Optional]</td>
<td class="p_type">(string)</td>
<td class="p_explain">User id, if no parameter is passed, the department of current user is returned by default, parameter ID supports variables.<strong>Note: when parameters are passed string type argument requires double quotes.</strong></td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="label">Return:</td>
<td>
<div class="resurnContent">
Department name of user
</div>
</td></tr>
<tr class="noborder">
<td class="label">Example:</td>
<td>
<div>
<div class="codeContainer">
The expression must start with <strong>$m.</strong> and end with a <strong>semicolon ; </strong>as shown in the following example:
<div>Department of current user:</div><div><code>$m.getDepartment();</code></div>
<div>Department of current user:</div><div><code>$m.getDepartment("{CURRUSER}");</code></div>
<div>Department of specified user:</div><div><code>$m.getDepartment("{id}");</code>(The ID in parentheses can be a url pass variable, or it can be a data set variable {t.id})</div>
<div>Department of ID 4:</div><div><code>$m.getDepartment("4");</code></div>
</div>
</div>
</td>
</tr>
</table>
</div>
</dd>
<dd>
<div class="item_header">
<div class="item_label">$m.getManager();</div>
<div class="item_desc">Use this method to get the user's superior.</div>
</div>
<div class="item_detail">
<table class="mainTable">
<colgroup>
<col width="45px"/>
<col width="*"/>
</colgroup>
<tr>
<td class="label">Parameter:</td>
<td>
<table class="p_table">
<tr>
<td class="p_name">id</td>
<td class="p_required">[Optional]</td>
<td class="p_type">(string)</td>
<td class="p_explain">User id, if no parameter is passed, the superior of current user is returned by default, parameter ID supports variables.<strong>Note: when parameters are passed string type argument requires double quotes.</strong></td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="label">Return:</td>
<td>
<div class="resurnContent">
Superior name of user
</div>
</td></tr>
<tr class="noborder">
<td class="label">Example:</td>
<td>
<div>
<div class="codeContainer">
The expression must start with <strong>$m.</strong> and end with a <strong>semicolon ; </strong>as shown in the following example:
<div>Superior of current user:</div><div><code>$m.getManager();</code></div>
<div>Superior of current user:</div><div><code>$m.getManager("{CURRUSER}");</code></div>
<div>Superior of specified user:</div><div><code>$m.getManager("{id}");</code>(The ID in parentheses can be a url pass variable, or it can be a data set variable {t.id})</div>
<div>Superior of ID 4</div><div><code>$m.getManager("4");</code></div>
</div>
</div>
</td>
</tr>
</table>
</div>
</dd>
</dl>
<div class="e8_data_label" style="margin-top:15px;">
Browser
</div>
<dl class="e8_data_list">
<dd>
<div class="item_header">
<div class="item_label">$m.getBrowserText();</div>
<div class="item_desc">Use this method to get the display text of the browser.</div>
</div>
<div class="item_detail">
<table class="mainTable">
<colgroup>
<col width="45px"/>
<col width="*"/>
</colgroup>
<tr>
<td class="label">Parameter:</td>
<td>
<table class="p_table">
<tr>
<td class="p_name">value</td>
<td class="p_required">[Required]</td>
<td class="p_type">(string)</td>
<td class="p_explain">Browser value id, multiple ids separated by commas, parameters support variables.<strong>Note: when parameters are passed string type argument requires double quotes.</strong></td>
</tr>
<tr>
<td class="p_name">fieldid</td>
<td class="p_required">[Required]</td>
<td class="p_type">int</td>
<td class="p_explain">Browser field id</td>
</tr>
<tr>
<td class="p_name">modeid</td>
<td class="p_required">[Optional]</td>
<td class="p_type">(int)</td>
<td class="p_explain">Cube mode id, user for cube data association authorization</td>
</tr>
<tr>
<td class="p_name">billid</td>
<td class="p_required">[Optional]</td>
<td class="p_type">(string)</td>
<td class="p_explain">Data id,user for cube data association authorization(This parameter needs to be used with modeid)。</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="label">Return:</td>
<td>
<div class="resurnContent">Display text of corresponding browser.</div>
</td></tr>
<tr class="noborder">
<td class="label">Example:</td>
<td>
<div>
<div class="codeContainer">
The expression must start with <strong>$m.</strong> and end with a <strong>semicolon ; </strong>as shown in the following example:
<div>Use in list plugins:</div><div>
<div>Get browser text value:</div><div><code>$m.getBrowserText("{fieldname}", 1); //The field ID is 1</code></div>
<div>Get browser text value with cube data association authorization:</div><div><code>$m.getBrowserText("{fieldname}", 1, 1, "1"); //Field ID is 1, module ID is 1, and data ID is 1</code></div>
</div>
</div>
</td>
</tr>
</table>
</div>
</dd>
</dl>
<div class="e8_data_label" style="margin-top:15px;">
Select
</div>
<dl class="e8_data_list">
<dd>
<div class="item_header">
<div class="item_label">$m.getSelectText();</div>
<div class="item_desc">Use this method to get the display text of drop-down box.</div>
</div>
<div class="item_detail">
<table class="mainTable">
<colgroup>
<col width="45px"/>
<col width="*"/>
</colgroup>
<tr>
<td class="label">Parameter:</td>
<td>
<table class="p_table">
<tr>
<td class="p_name">value</td>
<td class="p_required">[Required]</td>
<td class="p_type">(string)</td>
<td class="p_explain">The actual value of the drop-down box, general is id, parameters support variables.<strong>Note: when parameters are passed string type argument requires double quotes.</strong></td>
</tr>
<tr>
<td class="p_name">idOrName</td>
<td class="p_required">[Required]</td>
<td class="p_type">String</td>
<td class="p_explain">Can be (1) Modeling table field id, such as 19661 or (2) Table-name.Field-name, such as tableA.name</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="label">Return:</td>
<td>
<div class="resurnContent">The display text of drop-down box.</div>
</td></tr>
<tr class="noborder">
<td class="label">Example:</td>
<td>
<div>
<div class="codeContainer">
The expression must start with <strong>$m.</strong> and end with a <strong>semicolon ; </strong>as shown in the following example:
<div>Field id as a parameter:</div><div><code>$m.getSelectText("1","19661");</code></div>
<div>Table field name as a parameter:</div><div><code>$m.getSelectText("1","uf_cc_test.xb");</code></div>
</div>
</div>
</td>
</tr>
</table>
</div>
</dd>
</dl>
<div class="e8_data_label" style="margin-top:15px;">
Display conversion
</div>
<dl class="e8_data_list">
<dd>
<div class="item_header">
<div class="item_label">$m.convertToStar();</div>
<div class="item_desc">Use this method to convert the value of the star rating plug-in stored in the database to a star display.</div>
</div>
<div class="item_detail">
<table class="mainTable">
<colgroup>
<col width="45px"/>
<col width="*"/>
</colgroup>
<tr>
<td class="label">Parameter:</td>
<td>
<table class="p_table">
<tr>
<td class="p_name">value</td>
<td class="p_required">[Required]</td>
<td class="p_type">(string)</td>
<td class="p_explain">The value of the star rating plug-in stored in the database.<strong>Note: when parameters are passed string type argument requires double quotes.</strong></td>
</tr>
<tr>
<td class="p_name">max</td>
<td class="p_required">[Required]</td>
<td class="p_type">(int)</td>
<td class="p_explain">The full score of the score is 5 by default.</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="label">Return:</td>
<td>
<div class="resurnContent">Html of display star, can be directly used to display on the page.</div>
</td></tr>
<tr class="noborder">
<td class="label">Example:</td>
<td>
<div>
<div class="codeContainer">
The expression must start with <strong>$m.</strong> and end with a <strong>semicolon ; </strong>as shown in the following example:
<div>Use in list plugins:</div>
<div><code>$m.convertToStar("{Corresponding field name of star rating plug-in}");</code></div>
<div><code>$m.convertToStar("{Corresponding field name of star rating plug-in}",8);</code></div>
</div>
</div>
</td>
</tr>
</table>
</div>
</dd>
<dd>
<div class="item_header">
<div class="item_label">$m.convertToImage();</div>
<div class="item_desc">Through this method, docids can be converted to picture display.</div>
</div>
<div class="item_detail">
<table class="mainTable">
<colgroup>
<col width="45px"/>
<col width="*"/>
</colgroup>
<tr>
<td class="label">Parameter:</td>
<td>
<table class="p_table">
<tr>
<td class="p_name">docids</td>
<td class="p_required">[Required]</td>
<td class="p_type">(string)</td>
<td class="p_explain">Document ID. If you need to get pictures of multiple document ids, you can pass in comma-separated parameters, which support variables.<strong>Note: when parameters are passed string type argument requires double quotes.</strong></td>
</tr>
<tr>
<td class="p_name">modeid</td>
<td class="p_required">[Optional]</td>
<td class="p_type">(int)</td>
<td class="p_explain">Cube mode id, user for cube temporary empowerment</td>
</tr>
<tr>
<td class="p_name">billid</td>
<td class="p_required">[Optional]</td>
<td class="p_type">(string)</td>
<td class="p_explain">Data id,user for cube temporary empowerment(This parameter needs to be used with modeid)。</td>
</tr>
<tr>
<td class="p_name">isDisplayWithGrid</td>
<td class="p_required">[Optional]</td>
<td class="p_type">(boolean)</td>
<td class="p_explain">Whether to use the nine-pane format to display pictures, the default is false. If you need to use the nine-pane format to display pictures, you can set this parameter to true</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="label">Return:</td>
<td>
<div class="resurnContent">Picture html, can be used directly on the page.</div>
</td></tr>
<tr class="noborder">
<td class="label">Example:</td>
<td>
<div>
<div class="codeContainer">
The expression must start with <strong>$m.</strong> and end with a <strong>semicolon ; </strong>as shown in the following example:
<div>Use in list plugins:</div><div><code>$m.convertToImage("{Corresponding field name of the picture plug-in}");</code></div>
<div><code>$m.convertToImage("{Corresponding field name of the picture plug-in}", true); //nine-pane format to display pictures</code></div>
<div><code>$m.convertToImage("{Corresponding field name of the picture plug-in}", 1, "1"); //modeid is 1 and billid is 1</code></div>
<div><code>$m.convertToImage("{Corresponding field name of the picture plug-in}", 1, "1", true); //modeid is 1 and billid is 1, nine-pane format to display pictures</code></div>
</div>
</div>
</td>
</tr>
</table>
</div>
</dd>
<dd>
<div class="item_header">
<div class="item_label">$m.convertToFile();</div>
<div class="item_desc">Through this method, docids can be converted to files display.</div>
</div>
<div class="item_detail">
<table class="mainTable">
<colgroup>
<col width="45px"/>
<col width="*"/>
</colgroup>
<tr>
<td class="label">Parameter:</td>
<td>
<table class="p_table">
<tr>
<td class="p_name">docids</td>
<td class="p_required">[Required]</td>
<td class="p_type">(string)</td>
<td class="p_explain">Document ID. If you need to get files of multiple document ids, you can pass in comma-separated parameters, which support variables.<strong>Note: when parameters are passed string type argument requires double quotes.</strong></td>
</tr>
<tr>
<td class="p_name">modeid</td>
<td class="p_required">[Optional]</td>
<td class="p_type">(int)</td>
<td class="p_explain">Cube mode id, user for cube temporary empowerment</td>
</tr>
<tr>
<td class="p_name">billid</td>
<td class="p_required">[Optional]</td>
<td class="p_type">(string)</td>
<td class="p_explain">Data id,user for cube temporary empowerment(This parameter needs to be used with modeid)。</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="label">Return:</td>
<td>
<div class="resurnContent">Files html, can be used directly on the page.</div>
</td></tr>
<tr class="noborder">
<td class="label">Example:</td>
<td>
<div>
<div class="codeContainer">
The expression must start with <strong>$m.</strong> and end with a <strong>semicolon ; </strong>as shown in the following example:
<div>Use in list plugins:</div><div><code>$m.convertToFile("{Corresponding field name of the files plug-in}");</code></div>
<div><code>$m.convertToFile("{Corresponding field name of the files plug-in}", 1, "1");</code></div>
</div>
</div>
</td>
</tr>
</table>
</div>
</dd>
<dd>
<div class="item_header">
<div class="item_label">$m.convertToAudio();</div>
<div class="item_desc">Through this method, docids or urls can be converted to audios display.</div>
</div>
<div class="item_detail">
<table class="mainTable">
<colgroup>
<col width="45px"/>
<col width="*"/>
</colgroup>
<tr>
<td class="label">Parameter:</td>
<td>
<table class="p_table">
<tr>
<td class="p_name">docids</td>
<td class="p_required">[Required]</td>
<td class="p_type">(string)</td>
<td class="p_explain">Document ID or urls. If you need to get audios of multiple document ids or urls, you can pass in comma-separated parameters, which support variables.<strong>Note: when parameters are passed string type argument requires double quotes.</strong></td>
</tr>
<tr>
<td class="p_name">modeid</td>
<td class="p_required">[Optional]</td>
<td class="p_type">(int)</td>
<td class="p_explain">Cube mode id, user for cube temporary empowerment</td>
</tr>
<tr>
<td class="p_name">billid</td>
<td class="p_required">[Optional]</td>
<td class="p_type">(string)</td>
<td class="p_explain">Data id,user for cube temporary empowerment(This parameter needs to be used with modeid)。</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="label">Return:</td>
<td>
<div class="resurnContent">Audios html, can be used directly on the page.</div>
</td></tr>
<tr class="noborder">
<td class="label">Example:</td>
<td>
<div>
<div class="codeContainer">
The expression must start with <strong>$m.</strong> and end with a <strong>semicolon ; </strong>as shown in the following example:
<div>Use in list plugins:</div><div><code>$m.convertToAudio("{Corresponding field name of the files plug-in}");</code></div>
<div><code>$m.convertToAudio("{Corresponding field name of the files plug-in}", 1, "1");</code></div>
<div><code>$m.convertToAudio("/mobilemode/apps/song.mp3");</code></div>
</div>
</div>
</td>
</tr>
</table>
</div>
</dd>
<dd>
<div class="item_header">
<div class="item_label">$m.convertToProgressBar();</div>
<div class="item_desc">With this method, a value can be converted to a progress bar display</div>
</div>
<div class="item_detail">
<table class="mainTable">
<colgroup>
<col width="45px"/>
<col width="*"/>
</colgroup>
<tr>
<td class="label">Parameter:</td>
<td>
<table class="p_table">
<tr>
<td class="p_name">value</td>
<td class="p_required">[Required]</td>
<td class="p_type">(string)</td>
<td class="p_explain">Numbers, such as 80. Parameters support variables.<strong>Note: when parameters are passed string type argument requires double quotes.</strong></td>
</tr>
<tr>
<td class="p_name">color</td>
<td class="p_required">[Optional]</td>
<td class="p_type">(string)</td>
<td class="p_explain">The color can be a fixed color, such as red. It can also be set according to the numerical range, such as 0-60:red, 61-100:blue.</td>
</tr>
<tr>
<td class="p_name">isSmall</td>
<td class="p_required">[Optional]</td>
<td class="p_type">(boolean)</td>
<td class="p_explain">Whether to use simple mode scrollbar, default false.</td>
</tr>
<tr>
<td class="p_name">max</td>
<td class="p_required">[Optional]</td>
<td class="p_type">(double)</td>
<td class="p_explain">Maximum, default 100.0. For example, if your value is 0.87 and the expected value is 87%, you can specify a max value of 1.0.<strong>Note: The parameter is double type. When passing parameters, please bring decimal digits, such as 1.0.</strong></td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="label">Return:</td>
<td>
<div class="resurnContent">ProgressBar html, which can be directly used to display on the page</div>
</td></tr>
<tr class="noborder">
<td class="label">Example:</td>
<td>
<div>
<div class="codeContainer">
The expression must start with <strong>$m.</strong> and end with a <strong>semicolon ; </strong>as shown in the following example:
<div><code>$m.convertToProgressBar("80");</code></div>
<div>Specify the progress bar color:</div><div><code>$m.convertToProgressBar("80", "red");</code></div>
<div>Specify the progress bar color according to the numerical range:</div><div><code>$m.convertToProgressBar("80", "0-60:red,61-100:blue");</code></div>
<div>Scroll bars in simple mode:</div><div><div><code>$m.convertToProgressBar("80", true);</code></div>
<div>Specify the progress bar Maximum:</div><div><code>$m.convertToProgressBar("0.87", 1.0);</code></div>
<div>Specify the color and maximum of the progress bar and display it in simple mode:</div><div><code>$m.convertToProgressBar("0.87", "red", true, 1.0);</code></div>
<div>For example, in a list or data detail plug-in:</div><div><code>$m.convertToProgressBar("{field name}");</code></div>
</div>
</div>
</td>
</tr>
</table>
</div>
</dd>
<dd>
<div class="item_header">
<div class="item_label">$m.convertToCircleProgressBar();</div>
<div class="item_desc">With this method, a value can be converted to a circle progress bar display</div>
</div>
<div class="item_detail">
<table class="mainTable">
<colgroup>
<col width="45px"/>
<col width="*"/>
</colgroup>
<tr>
<td class="label">Parameter:</td>
<td>
<table class="p_table">
<tr>
<td class="p_name">value</td>
<td class="p_required">[Required]</td>
<td class="p_type">(string)</td>
<td class="p_explain">Numbers, such as 80. Parameters support variables.<strong>Note: when parameters are passed string type argument requires double quotes.</strong></td>
</tr>
<tr>
<td class="p_name">color</td>
<td class="p_required">[Optional]</td>
<td class="p_type">(string)</td>
<td class="p_explain">The color can be a fixed color, such as red. It can also be set according to the numerical range, such as 0-60:red, 61-100:blue.</td>
</tr>
<tr>
<td class="p_name">diameter</td>
<td class="p_required">[Optional]</td>
<td class="p_type">(int)</td>
<td class="p_explain">Ring Progress Bar Diameter, default 44.</td>
</tr>
<tr>
<td class="p_name">max</td>
<td class="p_required">[Optional]</td>
<td class="p_type">(double)</td>
<td class="p_explain">Maximum, default 100.0. For example, if your value is 0.87 and the expected value is 87%, you can specify a max value of 1.0.<strong>Note: The parameter is double type. When passing parameters, please bring decimal digits, such as 1.0.</strong></td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="label">Return:</td>
<td>
<div class="resurnContent">Circle ProgressBar html, which can be directly used to display on the page</div>
</td></tr>
<tr class="noborder">
<td class="label">Example:</td>
<td>
<div>
<div class="codeContainer">
The expression must start with <strong>$m.</strong> and end with a <strong>semicolon ; </strong>as shown in the following example:
<div><code>$m.convertToCircleProgressBar("80");</code></div>
<div>Specify the progress bar color:</div><div><code>$m.convertToCircleProgressBar("80", "red");</code></div>
<div>Specify the progress bar color according to the numerical range:</div><div><code>$m.convertToCircleProgressBar("80", "0-60:red,61-100:blue");</code></div>
<div>Specify Circle diameter:</div><div><div><code>$m.convertToCircleProgressBar("80", 60);</code></div>
<div>Specify the progress bar maximum:</div><div><code>$m.convertToCircleProgressBar("0.87", 1.0);</code></div>
<div>Specify the color and diameter and maximum of the progress bar:</div><div><code>$m.convertToCircleProgressBar("0.87", "red", 60, 1.0);</code></div>
<div>For example, in a list or data detail plug-in:</div><div><code>$m.convertToCircleProgressBar("{field name}");</code></div>
</div>
</div>
</td>
</tr>
</table>
</div>
</dd>
</dl>
<%}else if(user.getLanguage() == 9){ %>
<div class="e8_data_label">
用戶類
</div>
<dl class="e8_data_list">
<dd>
<div class="item_header">
<div class="item_label">$m.getUser();</div>
<div class="item_desc">通過此方法可以獲取用戶相關信息</div>
</div>
<div class="item_detail">
<table class="mainTable">
<colgroup>
<col width="45px"/>
<col width="*"/>
</colgroup>
<tr>
<td class="label">參數:</td>
<td>
<table class="p_table">
<tr>
<td class="p_name">id</td>
<td class="p_required">[可選]</td>
<td class="p_type">(string)</td>
<td class="p_explain">用戶id,如果不傳參數,則默認返回當前登錄用戶,參數ID支持變量。<strong>註意:參數為string類型在傳參時需要加雙引號</strong></td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="label">返回:</td>
<td>
<div class="resurnContent">
用戶相關信息
</div>
</td></tr>
<tr class="noborder">
<td class="label">示例:</td>
<td>
<div>
<div class="codeContainer">該方法默認返回的是壹個用戶對象,如需直接返回該對象的某個屬性,可以通過".屬性"的方式返回,表達式必須以<strong>$m.</strong>開頭,<strong>分號 ; </strong>結尾,如下示例所示:
<div>當前用戶的登錄ID:</div><div><code>$m.getUser().loginid;</code></div>
<div>當前用戶的登錄ID:</div><div><code>$m.getUser("{CURRUSER}").loginid;</code></div>
<div>指定用戶的登錄ID:</div><div><code>$m.getUser("{id}").loginid;</code>(括號中的ID可以是url傳遞變量,也可以是數據集變量{t.id}形式)</div>
<div>ID為3的用戶姓名:</div><div><code>$m.getUser("3").lastname;</code></div>
<div>ID為3的用戶郵箱:</div><div><code>$m.getUser("3").email;</code></div>
<div>ID為3的用戶手機:</div><div><code>$m.getUser("3").mobile;</code></div>
<div>ID為3的姓:</div><div><code>$m.getUser("3").firstname;</code></div>
<div>ID為3的名:</div><div><code>$m.getUser("3").lastname;</code></div>
<div>ID為3的昵稱:</div><div><code>$m.getUser("3").aliasname;</code></div>
<div>ID為3的收貨地址:</div><div><code>$m.getUser("3").receiveaddress;</code></div>
</div>
</div>
</td>
</tr>
</table>
</div>
</dd>
<dd>
<div class="item_header">
<div class="item_label">$m.getAvatar();</div>
<div class="item_desc">通過此方法可以獲取用戶頭像</div>
</div>
<div class="item_detail">
<table class="mainTable">
<colgroup>
<col width="45px"/>
<col width="*"/>
</colgroup>
<tr>
<td class="label">參數:</td>
<td>
<table class="p_table">
<tr>
<td class="p_name">ids</td>
<td class="p_required">[必需]</td>
<td class="p_type">(string)</td>
<td class="p_explain">用戶id,如果需要獲取多個用戶的頭像,傳入用逗號分隔的參數即可,參數支持變量。<strong>註意:參數為string類型在傳參時需要加雙引號</strong></td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="label">返回:</td>
<td>
<div class="resurnContent">
包含頭像信息的html標簽,如果用戶未設定頭像,則顯示系統設置的默認頭像資訊。
</div>
</td></tr>
<tr class="noborder">
<td class="label">示例:</td>
<td>
<div>
<div class="codeContainer">
表達式必須以<strong>$m.</strong>開頭,<strong>分號 ; </strong>結尾,如下示例所示:
<div>當前用戶頭像:</div><div><code>$m.getAvatar("{CURRUSER}");</code></div>
<div>指定用戶的頭像:</div><div><code>$m.getAvatar("{id}");</code>(括號中的ID可以是url傳遞變量,也可以是數據集變量{t.id}形式)</div>
<div>ID為3的用戶頭像:</div><div><code>$m.getAvatar("3");</code></div>
<div>ID為3,4的用戶頭像:</div><div><code>$m.getAvatar("3,4");</code></div>
</div>
</div>
</td>
</tr>
</table>
</div>
</dd>
<dd>
<div class="item_header">
<div class="item_label">$m.getDepartment();</div>
<div class="item_desc">通過此方法可以獲取用戶部門</div>
</div>
<div class="item_detail">
<table class="mainTable">
<colgroup>
<col width="45px"/>
<col width="*"/>
</colgroup>
<tr>
<td class="label">參數:</td>
<td>
<table class="p_table">
<tr>
<td class="p_name">id</td>
<td class="p_required">[可選]</td>
<td class="p_type">(string)</td>
<td class="p_explain">用戶id,如果不傳參,則默認獲取當前用戶部門,參數支持變量。<strong>註意:參數為string類型在傳參時需要加雙引號</strong></td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="label">返回:</td>
<td>
<div class="resurnContent">
用戶部門名稱
</div>
</td></tr>
<tr class="noborder">
<td class="label">示例:</td>
<td>
<div>
<div class="codeContainer">
表達式必須以<strong>$m.</strong>開頭,<strong>分號 ; </strong>結尾,如下示例所示:
<div>當前用戶部門:</div><div><code>$m.getDepartment();</code></div>
<div>當前用戶部門:</div><div><code>$m.getDepartment("{CURRUSER}");</code></div>
<div>指定用戶部門:</div><div><code>$m.getDepartment("{id}");</code>(括號中的ID可以是url傳遞變量,也可以是數據集變量{t.id}形式)</div>
<div>ID為4的用戶部門:</div><div><code>$m.getDepartment("4");</code></div>
</div>
</div>
</td>
</tr>
</table>
</div>
</dd>
<dd>
<div class="item_header">
<div class="item_label">$m.getManager();</div>
<div class="item_desc">通過此方法可以獲取用戶上級</div>
</div>
<div class="item_detail">
<table class="mainTable">
<colgroup>
<col width="45px"/>
<col width="*"/>
</colgroup>
<tr>
<td class="label">參數:</td>
<td>
<table class="p_table">
<tr>
<td class="p_name">id</td>
<td class="p_required">[可選]</td>
<td class="p_type">(string)</td>
<td class="p_explain">用戶id,如果不傳參,則默認獲取當前用戶上級,參數支持變量。<strong>註意:參數為string類型在傳參時需要加雙引號</strong></td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="label">返回:</td>
<td>
<div class="resurnContent">
用戶上級名稱
</div>
</td></tr>
<tr class="noborder">
<td class="label">示例:</td>
<td>
<div>
<div class="codeContainer">
表達式必須以<strong>$m.</strong>開頭,<strong>分號 ; </strong>結尾,如下示例所示:
<div>當前用戶上級:</div><div><code>$m.getManager();</code></div>
<div>當前用戶上級:</div><div><code>$m.getManager("{CURRUSER}");</code></div>
<div>指定用戶上級:</div><div><code>$m.getManager("{id}");</code>(括號中的ID可以是url傳遞變量,也可以是數據集變量{t.id}形式)</div>
<div>ID為4的用戶上級:</div><div><code>$m.getManager("4");</code></div>
</div>
</div>
</td>
</tr>
</table>
</div>
</dd>
</dl>
<div class="e8_data_label" style="margin-top:15px;">
瀏覽框類
</div>
<dl class="e8_data_list">
<dd>
<div class="item_header">
<div class="item_label">$m.getBrowserText();</div>
<div class="item_desc">通過此方法可以獲取瀏覽框的顯示文本</div>
</div>
<div class="item_detail">
<table class="mainTable">
<colgroup>
<col width="45px"/>
<col width="*"/>
</colgroup>
<tr>
<td class="label">參數:</td>
<td>
<table class="p_table">
<tr>
<td class="p_name">value</td>
<td class="p_required">[必需]</td>
<td class="p_type">(string)</td>
<td class="p_explain">瀏覽框字段值id,多個id以逗號分隔,參數支持變量。<strong>註意:參數為string類型在傳參時需要加雙引號</strong></td>
</tr>
<tr>
<td class="p_name">fieldid</td>
<td class="p_required">[必需]</td>
<td class="p_type">int</td>
<td class="p_explain">瀏覽框字段id</td>
</tr>
<tr>
<td class="p_name">modeid</td>
<td class="p_required">[可選]</td>
<td class="p_type">(int)</td>
<td class="p_explain">對應數據的模塊id,表單建模數據關聯授權使用。</td>
</tr>
<tr>
<td class="p_name">billid</td>
<td class="p_required">[可選]</td>
<td class="p_type">(string)</td>
<td class="p_explain">數據id,表單建模數據關聯授權使用(此參數需和modeid一起使用)。</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="label">返回:</td>
<td>
<div class="resurnContent">瀏覽框對應ID的顯示文本 </div>
</td></tr>
<tr class="noborder">
<td class="label">示例:</td>
<td>
<div>
<div class="codeContainer">
表達式必須以<strong>$m.</strong>開頭,<strong>分號 ; </strong>結尾,如下示例所示:
<div>如在列表插件中使用:</div>
<div>獲取瀏覽框字段值:</div><div><code>$m.getBrowserText("{字段名稱}", 1); //字段id為1</code></div>
<div>獲取瀏覽框字段值(關聯授權):</div><div><code>$m.getBrowserText("{字段名稱}", 1, 1, "1"); //字段id為1,模塊id為1,數據id為1</code></div>
</div>
</div>
</td>
</tr>
</table>
</div>
</dd>
</dl>
<div class="e8_data_label" style="margin-top:15px;">
下拉框類
</div>
<dl class="e8_data_list">
<dd>
<div class="item_header">
<div class="item_label">$m.getSelectText();</div>
<div class="item_desc">通過此方法可以獲取下拉框的顯示文本</div>
</div>
<div class="item_detail">
<table class="mainTable">
<colgroup>
<col width="45px"/>
<col width="*"/>
</colgroup>
<tr>
<td class="label">參數:</td>
<td>
<table class="p_table">
<tr>
<td class="p_name">value</td>
<td class="p_required">[必需]</td>
<td class="p_type">(string)</td>
<td class="p_explain">下拉框的真實值,壹般是id。參數支持變量。<strong>註意:參數為string類型在傳參時需要加雙引號</strong></td>
</tr>
<tr>
<td class="p_name">idOrName</td>
<td class="p_required">[必需]</td>
<td class="p_type">String</td>
<td class="p_explain">可以是 (1)建模表字段id,如19661 或 (2)表名稱.字段名稱,如tableA.name</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="label">返回:</td>
<td>
<div class="resurnContent">下拉框對應value的顯示文本 </div>
</td></tr>
<tr class="noborder">
<td class="label">示例:</td>
<td>
<div>
<div class="codeContainer">
表達式必須以<strong>$m.</strong>開頭,<strong>分號 ; </strong>結尾,如下示例所示:
<div>字段id作為參數:</div><div><code>$m.getSelectText("1","19661");</code></div>
<div>表名字段名作為參數:</div><div><code>$m.getSelectText("1","uf_cc_test.xb");</code></div>
</div>
</div>
</td>
</tr>
</table>
</div>
</dd>
</dl>
<div class="e8_data_label" style="margin-top:15px;">
顯示轉換類
</div>
<dl class="e8_data_list">
<dd>
<div class="item_header">
<div class="item_label">$m.convertToStar();</div>
<div class="item_desc">通過此方法可以將星級評分插件存儲在數據庫中的值轉換為星級顯示</div>
</div>
<div class="item_detail">
<table class="mainTable">
<colgroup>
<col width="45px"/>
<col width="*"/>
</colgroup>
<tr>
<td class="label">參數:</td>
<td>
<table class="p_table">
<tr>
<td class="p_name">value</td>
<td class="p_required">[必需]</td>
<td class="p_type">(string)</td>
<td class="p_explain">星級評分插件存儲在數據庫中的值。<strong>註意:參數為string類型在傳參時需要加雙引號</strong></td>
</tr>
<tr>
<td class="p_name">max</td>
<td class="p_required">[可選]</td>
<td class="p_type">(int)</td>
<td class="p_explain">評分滿分值,默認為5。</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="label">返回:</td>
<td>
<div class="resurnContent">顯示星級的html,可直接用於在頁面上顯示 </div>
</td></tr>
<tr class="noborder">
<td class="label">示例:</td>
<td>
<div>
<div class="codeContainer">
表達式必須以<strong>$m.</strong>開頭,<strong>分號 ; </strong>結尾,如下示例所示:
<div>如在列表插件中使用:</div>
<div><code>$m.convertToStar("{星級評分插件對應的字段名稱}");</code></div>
<div><code>$m.convertToStar("{星級評分插件對應的字段名稱}",8);</code></div>
</div>
</div>
</td>
</tr>
</table>
</div>
</dd>
<dd>
<div class="item_header">
<div class="item_label">$m.convertToImage();</div>
<div class="item_desc">通過此方法可以將docids轉成圖片显示</div>
</div>
<div class="item_detail">
<table class="mainTable">
<colgroup>
<col width="45px"/>
<col width="*"/>
</colgroup>
<tr>
<td class="label">參數:</td>
<td>
<table class="p_table">
<tr>
<td class="p_name">docids</td>
<td class="p_required">[必需]</td>
<td class="p_type">(string)</td>
<td class="p_explain">文檔id,如果需要獲取多個文檔id的圖片,傳入用逗號分隔的參數即可,參數支持變量。<strong>註意:參數為string類型在傳參時需要加雙引號</strong></td>
</tr>
<tr>
<td class="p_name">modeid</td>
<td class="p_required">[可選]</td>
<td class="p_type">(int)</td>
<td class="p_explain">對應數據的模塊id,表單建模臨時賦權使用。</td>
</tr>
<tr>
<td class="p_name">billid</td>
<td class="p_required">[可選]</td>
<td class="p_type">(string)</td>
<td class="p_explain">數據id,表單建模臨時賦權使用(此參數需和modeid一起使用)。</td>
</tr>
<tr>
<td class="p_name">isDisplayWithGrid</td>
<td class="p_required">[可選]</td>
<td class="p_type">(boolean)</td>
<td class="p_explain">是否使用九宮格格式顯示圖片,默認為false,如需要使用九宮格格式顯示圖片,將此參數設置為true即可</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="label">返回:</td>
<td>
<div class="resurnContent">圖片html,可直接用於在頁面上显示 </div>
</td></tr>
<tr class="noborder">
<td class="label">示例:</td>
<td>
<div>
<div class="codeContainer">
表達式必須以<strong>$m.</strong>開頭,<strong>分號 ; </strong>結尾,如下示例所示:
<div>如在列表插件中使用:</div><div><code>$m.convertToImage("{圖片對應的字段名稱}");</code></div>
<div><code>$m.convertToImage("{圖片對應的字段名稱}", true); //九宮格格式展示</code></div>
<div><code>$m.convertToImage("{圖片對應的字段名稱}", 1, 1); //模塊id為1、數據id為1</code></div>
<div><code>$m.convertToImage("{圖片對應的字段名稱}", 1, 1, true); //模塊id為1、數據id為1,九宮格格式展示</code></div>
</div>
</div>
</td>
</tr>
</table>
</div>
</dd>
<dd>
<div class="item_header">
<div class="item_label">$m.convertToFile();</div>
<div class="item_desc">通過此方法可以將docids轉成附件显示</div>
</div>
<div class="item_detail">
<table class="mainTable">
<colgroup>
<col width="45px"/>
<col width="*"/>
</colgroup>
<tr>
<td class="label">參數:</td>
<td>
<table class="p_table">
<tr>
<td class="p_name">docids</td>
<td class="p_required">[必需]</td>
<td class="p_type">(string)</td>
<td class="p_explain">文檔id,如果需要獲取多個文檔id的附件,傳入用逗號分隔的參數即可,參數支持變量。<strong>註意:參數為string類型在傳參時需要加雙引號</strong></td>
</tr>
<tr>
<td class="p_name">modeid</td>
<td class="p_required">[可選]</td>
<td class="p_type">(int)</td>
<td class="p_explain">對應數據的模塊id,表單建模臨時賦權使用。</td>
</tr>
<tr>
<td class="p_name">billid</td>
<td class="p_required">[可選]</td>
<td class="p_type">(string)</td>
<td class="p_explain">數據id,表單建模臨時賦權使用(此參數需和modeid一起使用)。</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="label">返回:</td>
<td>
<div class="resurnContent">附件html,可直接用於在頁面上显示 </div>
</td></tr>
<tr class="noborder">
<td class="label">示例:</td>
<td>
<div>
<div class="codeContainer">
表達式必須以<strong>$m.</strong>開頭,<strong>分號 ; </strong>結尾,如下示例所示:
<div>如在列表插件中使用:</div><div><code>$m.convertToFile("{附件對應的字段名稱}");</code></div>
<div><code>$m.convertToFile("{附件對應的字段名稱}", 1, "1");</code></div>
</div>
</div>
</td>
</tr>
</table>
</div>
</dd>
<dd>
<div class="item_header">
<div class="item_label">$m.convertToAudio();</div>
<div class="item_desc">通過此方法可以將docids或資源路徑轉成語音显示</div>
</div>
<div class="item_detail">
<table class="mainTable">
<colgroup>
<col width="45px"/>
<col width="*"/>
</colgroup>
<tr>
<td class="label">參數:</td>
<td>
<table class="p_table">
<tr>
<td class="p_name">docids</td>
<td class="p_required">[必需]</td>
<td class="p_type">(string)</td>
<td class="p_explain">文檔id或路徑,如果需要獲取多個文檔id或路徑的語音,傳入用逗號分隔的參數即可,參數支持變量。<strong>註意:參數為string類型在傳參時需要加雙引號</strong></td>
</tr>
<tr>
<td class="p_name">modeid</td>
<td class="p_required">[可選]</td>
<td class="p_type">(int)</td>
<td class="p_explain">對應數據的模塊id,表單建模臨時賦權使用。</td>
</tr>
<tr>
<td class="p_name">billid</td>
<td class="p_required">[可選]</td>
<td class="p_type">(string)</td>
<td class="p_explain">數據id,表單建模臨時賦權使用(此參數需和modeid一起使用)。</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="label">返回:</td>
<td>
<div class="resurnContent">語音html,可直接用於在頁面上显示 </div>
</td></tr>
<tr class="noborder">
<td class="label">示例:</td>
<td>
<div>
<div class="codeContainer">
表達式必須以<strong>$m.</strong>開頭,<strong>分號 ; </strong>結尾,如下示例所示:
<div>如在列表插件中使用:</div><div><code>$m.convertToAudio("{附件對應的字段名稱}");</code></div>
<div><code>$m.convertToAudio("{附件對應的字段名稱}", 1, "1");</code></div>
<div><code>$m.convertToAudio("/mobilemode/apps/song.mp3");</code></div>
</div>
</div>
</td>
</tr>
</table>
</div>
</dd>
<dd>
<div class="item_header">
<div class="item_label">$m.convertToProgressBar();</div>
<div class="item_desc">通過此方法可以將一個數值轉成進度條顯示</div>
</div>
<div class="item_detail">
<table class="mainTable">
<colgroup>
<col width="45px"/>
<col width="*"/>
</colgroup>
<tr>
<td class="label">參數:</td>
<td>
<table class="p_table">
<tr>
<td class="p_name">value</td>
<td class="p_required">[必需]</td>
<td class="p_type">(string)</td>
<td class="p_explain">數值,如80。參數支持變量。<strong>註意:參數為string類型在傳參時需要加雙引號</strong></td>
</tr>
<tr>
<td class="p_name">color</td>
<td class="p_required">[可選]</td>
<td class="p_type">(string)</td>
<td class="p_explain">顏色,可以是一個固定的顏色,如red。也可以按照數值區間進行設定,如0-60:red,61-100:blue。</td>
</tr>
<tr>
<td class="p_name">isSmall</td>
<td class="p_required">[可選]</td>
<td class="p_type">(boolean)</td>
<td class="p_explain">是否使用簡易模式的滾動條,默認false。</td>
</tr>
<tr>
<td class="p_name">max</td>
<td class="p_required">[可選]</td>
<td class="p_type">(double)</td>
<td class="p_explain">最大值,默認100.0。比如你的值是0.87,預期顯示的是87%,此時可將max值指定為1.0即可。<strong>注意:參數為double類型在傳參時請帶上小數位,如1.0</strong></td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="label">返回:</td>
<td>
<div class="resurnContent">進度條html,可直接用於在頁面上顯示 </div>
</td></tr>
<tr class="noborder">
<td class="label">示例:</td>
<td>
<div>
<div class="codeContainer">
表達式必須以<strong>$m.</strong>開頭,<strong>分號 ; </strong>結尾,如下示例所示:
<div><code>$m.convertToProgressBar("80");</code></div>
<div>指定進度條顏色:</div><div><code>$m.convertToProgressBar("80", "red");</code></div>
<div>按照數值區間指定進度條顏色:</div><div><code>$m.convertToProgressBar("80", "0-60:red,61-100:blue");</code></div>
<div>使用簡易模式的滾動條:</div><div><div><code>$m.convertToProgressBar("80", true);</code></div>
<div>指定進度最大值:</div><div><div><code>$m.convertToProgressBar("0.87", 1.0);</code></div>
<div>指定進度條顏色和最大值,同時使用簡易模式顯示:</div><div><code>$m.convertToProgressBar("0.87", "red", true, 1.0);</code></div>
<div>如在列表或數據明細挿件中使用:</div><div><code>$m.convertToProgressBar("{字段名稱}");</code></div>
</div>
</div>
</td>
</tr>
</table>
</div>
</dd>
<dd>
<div class="item_header">
<div class="item_label">$m.convertToCircleProgressBar();</div>
<div class="item_desc">通過此方法可以將一個數值轉成環形進度條顯示</div>
</div>
<div class="item_detail">
<table class="mainTable">
<colgroup>
<col width="45px"/>
<col width="*"/>
</colgroup>
<tr>
<td class="label">參數:</td>
<td>
<table class="p_table">
<tr>
<td class="p_name">value</td>
<td class="p_required">[必需]</td>
<td class="p_type">(string)</td>
<td class="p_explain">數值,如80。參數支持變量。<strong>註意:參數為string類型在傳參時需要加雙引號</strong></td>
</tr>
<tr>
<td class="p_name">color</td>
<td class="p_required">[可選]</td>
<td class="p_type">(string)</td>
<td class="p_explain">顏色,可以是一個固定的顏色,如red。也可以按照數值區間進行設定,如0-60:red,61-100:blue。</td>
</tr>
<tr>
<td class="p_name">diameter</td>
<td class="p_required">[可選]</td>
<td class="p_type">(int)</td>
<td class="p_explain">環形進度條直徑大小,默認44。</td>
</tr>
<tr>
<td class="p_name">max</td>
<td class="p_required">[可選]</td>
<td class="p_type">(double)</td>
<td class="p_explain">最大值,默認100.0。比如你的值是0.87,預期顯示的是87%,此時可將max值指定為1.0即可。<strong>注意:參數為double類型在傳參時請帶上小數位,如1.0</strong></td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="label">返回:</td>
<td>
<div class="resurnContent">環形進度條html,可直接用於在頁面上顯示 </div>
</td></tr>
<tr class="noborder">
<td class="label">示例:</td>
<td>
<div>
<div class="codeContainer">
表達式必須以<strong>$m.</strong>開頭,<strong>分號 ; </strong>結尾,如下示例所示:
<div><code>$m.convertToCircleProgressBar("80");</code></div>
<div>指定進度條顏色:</div><div><code>$m.convertToCircleProgressBar("80", "red");</code></div>
<div>按照數值區間指定進度條顏色:</div><div><code>$m.convertToCircleProgressBar("80", "0-60:red,61-100:blue");</code></div>
<div>指定環形進度條直徑大小:</div><div><div><code>$m.convertToCircleProgressBar("80", 60);</code></div>
<div>指定進度最大值:</div><div><div><code>$m.convertToCircleProgressBar("0.87", 1.0);</code></div>
<div>指定進度條顏色,同時指定環形進度條直徑大小 和 最大值:</div><div><code>$m.convertToCircleProgressBar("0.87", "red", 60, 1.0);</code></div>
<div>如在列表或數據明細挿件中使用:</div><div><code>$m.convertToCircleProgressBar("{字段名稱}");</code></div>
</div>
</div>
</td>
</tr>
</table>
</div>
</dd>
</dl>
<%} %>
</body>
</html>