varparserdoc.jsp 65.2 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
<%@ 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">ids</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">typeid</td>
                                <td class="p_required">[必须]</td>
                                <td class="p_type">int</td>
                                <td class="p_explain">字段详细类型(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:相关产品 161:自定义单选 162:自定义多选 256:自定义树形单选 257:自定义树形多选)</td>
                            </tr>
                            <tr>
                                <td class="p_name">fielddbtype</td>
                                <td class="p_required">[必须]</td>
                                <td class="p_type">(string)</td>
                                <td class="p_explain">字段数据库类型  <strong>注意:参数为string类型在传参时需要加双引号</strong></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">
				                <div style="position:relative;">
				                	代码生成:
					                <div class="field" style="display:none;">
					                	<label>浏览框值:</label>
					                	<input id="browservalue" type="text" placeholder="请输入浏览框值"/>
					                </div>
					                <div class="field" style="position:relative;">
					                	<label>浏览框类型:</label>
					                	<select id="browsertype" name="browsertype"></select>
					                	
					                </div>
					                <div class="field">
					                	<input id="_browsername" type="hidden" readonly="readonly"/>
					                	<input id="browsername" type="text" readonly="readonly"/>
					    				<button type="button" onclick="openBrowserChoose()" class="browserBtn"></button>
					    			</div>
					    			<div class="field result">
					    				<label>结果:</label>
					    				<code>$m.getBrowserText("请输入要替换的字段值", -1, "");</code>
					    			</div>
				                </div>
			                	表达式必须以<strong>$m.</strong>开头,<strong>分号 ; </strong>结尾,如下示例所示:
				                <div>获取人力资源浏览框值:</div><div><code>$m.getBrowserText("1", 1, "");</code></div>
				                <div>获取人力资源浏览框值(变量方式):</div><div><code>$m.getBrowserText("{id}", 1, "");</code></div>
				                <div>获取多人力资源浏览框值:</div><div><code>$m.getBrowserText("1,2,3", 1, "");</code></div>
				                <div>获取自定义单选浏览框值:</div><div><code>$m.getBrowserText("1", 161, "browser.test");</code></div>
				                <div>获取自定义树形单选浏览框值:</div><div><code>$m.getBrowserText("1_1", 256, "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>
                        </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>
                        </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
                        </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">ids</td>
                                <td class="p_required">[Required]</td>
                                <td class="p_type">(string)</td>
                                <td class="p_explain">Browser 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">typeid</td>
                                <td class="p_required">[Required]</td>
                                <td class="p_type">int</td>
                                <td class="p_explain">Field details type (1: Human resources 2: Date 3: Meeting room contact sheet 4: Department 5: Warehouse 6: Cost center 7: Customer 8: Project 9: Document 10: Storage method 11: Delivery method 12: Currency 13: Asset Type 14: Account - All 15: Account - Detail 16: Request 17: Multiple Human Resources 18: Multiple Customers 19: Time 20: Plan Type 21: Plan Type 22: Reimbursement Cost Type 23: Asset 24: Job 25: Asset Group 26: Vehicles 27: Candidates 28: Session 29: Rewards and Punishment Category 30: Education 31: Employment Nature 32: Training Arrangement 33: Overtime Type 34: Leave Type 35: Business Contract 36: Contract Nature 37: Multiple Documents 38: Relevant Product 161: Custom Radio 162: Custom Multi-Select 256: Custom Tree Radio 257: Custom Tree Multi-Select)</td>
                            </tr>
                            <tr>
                                <td class="p_name">fielddbtype</td>
                                <td class="p_required">[Required]</td>
                                <td class="p_type">(string)</td>
                                <td class="p_explain">Field database type.<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">Display text of corresponding browser.</div>
                    </td></tr>
                <tr class="noborder">
                    <td class="label">Example:</td>
                    <td>                    
                        <div>
			                <div class="codeContainer">
				                <div style="position:relative;">
				                	Code generation:
					                <div class="field" style="display:none;">
					                	<label>Browser value:</label>
					                	<input id="browservalue" type="text" placeholder="Please enter the browser value"/>
					                </div>
					                <div class="field" style="position:relative;">
					                	<label>Browser type:</label>
					                	<select id="browsertype" name="browsertype"></select>
					                	
					                </div>
					                <div class="field">
					                	<input id="_browsername" type="hidden" readonly="readonly"/>
					                	<input id="browsername" type="text" readonly="readonly"/>
					    				<button type="button" onclick="openBrowserChoose()" class="browserBtn"></button>
					    			</div>
					    			<div class="field result">
					    				<label>Result:</label>
					    				<code>$m.getBrowserText("Please enter the field value to replace", -1, "");</code>
					    			</div>
				                </div>
			                	The expression must start with <strong>$m.</strong> and end with a <strong>semicolon ; </strong>as shown in the following example:
				                <div>Get HR browser value:</div><div><code>$m.getBrowserText("1", 1, "");</code></div>
				                <div>Get HR browser value(variable mode):</div><div><code>$m.getBrowserText("{id}", 1, "");</code></div>
				                <div>Get multiple HR browser values:</div><div><code>$m.getBrowserText("1,2,3", 1, "");</code></div>
				                <div>Get custom radio browser value:</div><div><code>$m.getBrowserText("1", 161, "browser.test");</code></div>
				                <div>Get custom tree radio browser value:</div><div><code>$m.getBrowserText("1_1", 256, "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>
                        </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>
                        </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">ids</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">typeid</td>
                                <td class="p_required">[必須]</td>
                                <td class="p_type">int</td>
                                <td class="p_explain">字段詳細類型(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:相關產品 161:自定義單選 162:自定義多選 256:自定義樹形單選 257:自定義樹形多選)</td>
                            </tr>
                            <tr>
                                <td class="p_name">fielddbtype</td>
                                <td class="p_required">[必須]</td>
                                <td class="p_type">(string)</td>
                                <td class="p_explain">字段數據庫類型  <strong>註意:參數為string類型在傳參時需要加雙引號</strong></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">
				                <div style="position:relative;">
				                	代碼生成:
					                <div class="field" style="display:none;">
					                	<label>瀏覽框值:</label>
					                	<input id="browservalue" type="text" placeholder="請輸入瀏覽框值"/>
					                </div>
					                <div class="field" style="position:relative;">
					                	<label>瀏覽框類型:</label>
					                	<select id="browsertype" name="browsertype"></select>
					                	
					                </div>
					                <div class="field">
					                	<input id="_browsername" type="hidden" readonly="readonly"/>
					                	<input id="browsername" type="text" readonly="readonly"/>
					    				<button type="button" onclick="openBrowserChoose()" class="browserBtn"></button>
					    			</div>
					    			<div class="field result">
					    				<label>結果:</label>
					    				<code>$m.getBrowserText("請輸入要替換的字段值", -1, "");</code>
					    			</div>
				                </div>
			                	表達式必須以<strong>$m.</strong>開頭,<strong>分號 ; </strong>結尾,如下示例所示:
				                <div>獲取人力資源瀏覽框值:</div><div><code>$m.getBrowserText("1", 1, "");</code></div>
				                <div>獲取人力資源瀏覽框值(變量方式):</div><div><code>$m.getBrowserText("{id}", 1, "");</code></div>
				                <div>獲取多人力資源瀏覽框值:</div><div><code>$m.getBrowserText("1,2,3", 1, "");</code></div>
				                <div>獲取自定義單選瀏覽框值:</div><div><code>$m.getBrowserText("1", 161, "browser.test");</code></div>
				                <div>獲取自定義樹形單選瀏覽框值:</div><div><code>$m.getBrowserText("1_1", 256, "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>
                        </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>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    </dd>
</dl>
<%} %>
<script type="text/javascript">
$(function(){
	var url = jionActionUrl("com.weaver.formmodel.mobile.mec.servlet.MECAdminAction", "action=getBrowserType");
	$.ajax({
	 	type: "GET",
	 	contentType: "application/json",
	 	url: encodeURI(url),
	 	data: "{}",
	 	success: function(responseText, textStatus) 
	 	{
	 		var result = $.parseJSON(responseText);
	 		var status = result.status;
			if(status == "1"){
				var data = result.data;
				var optionHtml = "<option></option>";
				for(var i = 0; i < data.length; i++){
					var match = data[i]["match"];
					var value = data[i]["value"];
					var text = data[i]["text"];
					optionHtml+= "<option value=\""+value+"\">"+text+"</option>";
				}
				var $fieldObj = $("#browsertype");
				$fieldObj.empty().append(optionHtml);
			}
	 	},
	    error: function(){
	    }
	});
	$("#browsertype").bind("change", function(){
		var browsertype = $(this).val();
		var browsername = $("#_browsername").val();
		if(browsertype == "161" || browsertype == "162" || browsertype == "256" || browsertype == "257"){
			$(".field:eq(2)").show();
		}else{
			$(".field:eq(2)").hide();
		}
		$("#_browsername").val("");
		$("#browsername").val("");
		setResult();
	});
});
function openBrowserChoose(){
	var browsertype = $("#browsertype").val();
	var url = "";
	if(browsertype == "161" || browsertype == "162"){
		url = "/systeminfo/BrowserMain.jsp?url=/workflow/field/UserDefinedBrowserTypeBrowser.jsp";
	}else if(browsertype == "256" || browsertype == "257"){
		url = "/systeminfo/BrowserMain.jsp?url=/formmode/tree/treebrowser/TreeBrowser.jsp";
	}
	var dlg = top.createTopDialog();//获取Dialog对象
	dlg.Model = true;
	dlg.Width = 550;//定义长度
	dlg.Height = 650;
	dlg.URL = url;
	dlg.Title = "<%=SystemEnv.getHtmlLabelName(128937,user.getLanguage())%>";//请选择;
	dlg.show();
	dlg.callback = function(result){
		var v = result.id;
		if(v == "browser."){
			v = "";
		}
		$("#_browsername").val(v);
		var n = result.name;
		if(n){
			var reStripTags = /<\/?.*?>/g;
			n = n.replace(reStripTags, ''); //只有文字的结果
		}else{
			n = v;
		}
		$("#browsername").val(n);
		setResult();
	};
}
function setResult(){
	var browsertype = $("#browsertype").val();
	var browsername = $("#_browsername").val();
	$(".field.result code").text("$m.getBrowserText(\"<%=SystemEnv.getHtmlLabelName(383250,user.getLanguage())%>\", "+browsertype+", \""+browsername+"\");");//请输入要替换的字段值
}
</script>
</body>
</html>