花费大量时间在NetSuite中获取国家/地区列表的内部ID,找不到标准方法。如果有人知道更好的方法,请在评论中发布
import static net.almson.util.Regex.*;
String myCharclass = charclassUnion (LETTER, DIGIT, charclassRange ('\u00A0', '\uD7FF'), charclassRange ('\uF900', '\uFDCF'), charclassRange ('\uFDF0','\uFFEF'), charclass (' ', '-', '&', '*', '(', ')', '_', '+', '|', '~', '=', '`', '{', '}', '[', ']', ':', '"', ';', '\'', '<', '>', '?', ',', '.'));
if (condition)
myCharclass = charclassUnion (myCharclass, charclass ('/'));
regex = START_BOUNDARY + between (0, 900, myCharclass) + END_BOUNDARY;
答案 0 :(得分:0)
这是在Suite答案中,通常当我们看 设置>公司>国家/地区>打开任何国家/地区,然后检查网址中是否有ID,该ID仅显示字母ID。
在套件答案中,检查答案ID:71731和38434 或下面的链接 https://netsuite.custhelp.com/app/answers/detail/a_id/71731/kw/country%20internal%20id's
https://netsuite.custhelp.com/app/answers/detail/a_id/38434/kw/country%20internal%20id&/related/1
Country Name Country Code Internal ID
Afghanistan AF 3
Aland Islands AX 247
Albania AL 6
Algeria DZ 62
American Samoa AS 12
Andorra AD 1
Angola AO 9
Anguilla AI 5
Antarctica AQ 10
Antigua and Barbuda AG 4
Argentina AR 11
Armenia AM 7
Aruba AW 15
Australia AU 14
Austria AT 13
Azerbaijan AZ 16
Bahamas BS 31
Bahrain BH 23
Bangladesh BD 19
Barbados BB 18
Belarus BY 35
Belgium BE 20
Belize BZ 36
Benin BJ 25
Bermuda BM 27
Bhutan BT 32
Bolivia BO 29
Bonaire, Saint Eustatius and Saba BQ 250
Bosnia and Herzegovina BA 17
Botswana BW 34
Bouvet Island BV 33
Brazil BR 30
British Indian Ocean Territory IO 106
Brunei Darussalam BN 28
Bulgaria BG 22
Burkina Faso BF 21
Burundi BI 24
Cambodia KH 117
Cameroon CM 46
Canada CA 37
Canary Islands IC 249
Cape Verde CV 53
Cayman Islands KY 124
Central African Republic CF 40
Ceuta and Melilla EA 248
Chad TD 212
Chile CL 45
China CN 47
Christmas Island CX 54
Cocos (Keeling) Islands CC 38
Colombia CO 48
Comoros KM 119
Congo, Democratic Republic of CD 39
Congo, Republic of CG 41
Cook Islands CK 44
Costa Rica CR 49
Cote d\u0027Ivoire CI 43
Croatia/Hrvatska HR 98
Cuba CU 52
Curaçao CW 251
Cyprus CY 55
Czech Republic CZ 56
Denmark DK 59
Djibouti DJ 58
Dominica DM 60
Dominican Republic DO 61
East Timor TP 221
Ecuador EC 63
Egypt EG 65
El Salvador SV 208
Equatorial Guinea GQ 88
Eritrea ER 67
Estonia EE 64
Ethiopia ET 69
Falkland Islands FK 72
Faroe Islands FO 74
Fiji FJ 71
Finland FI 70
France FR 75
French Guiana GF 80
French Polynesia PF 175
French Southern Territories TF 213
Gabon GA 76
Gambia GM 85
Georgia GE 79
Germany DE 57
Ghana GH 82
Gibraltar GI 83
Greece GR 89
Greenland GL 84
Grenada GD 78
Guadeloupe GP 87
Guam GU 92
Guatemala GT 91
Guernsey GG 81
Guinea GN 86
Guinea-Bissau GW 93
Guyana GY 94
Haiti HT 99
Heard and McDonald Islands HM 96
Holy See (City Vatican State) VA 233
Honduras HN 97
Hong Kong HK 95
Hungary HU 100
Iceland IS 109
India IN 105
Indonesia ID 101
Iran (Islamic Republic of) IR 108
Iraq IQ 107
Ireland IE 102
Isle of Man IM 104
Israel IL 103
Italy IT 110
Jamaica JM 112
Japan JP 114
Jersey JE 111
Jordan JO 113
Kazakhstan KZ 125
Kenya KE 115
Kiribati KI 118
Korea, Democratic People\u0027s Republic KP 121
Korea, Republic of KR 122
Kosovo XK 254
Kuwait KW 123
Kyrgyzstan KG 116
Lao People\u0027s Democratic Republic LA 126
Latvia LV 135
Lebanon LB 127
Lesotho LS 132
Liberia LR 131
Libya LY 136
Liechtenstein LI 129
Lithuania LT 133
Luxembourg LU 134
Macau MO 148
Macedonia MK 144
Madagascar MG 142
Malawi MW 156
Malaysia MY 158
Maldives MV 155
Mali ML 145
Malta MT 153
Marshall Islands MH 143
Martinique MQ 150
Mauritania MR 151
Mauritius MU 154
Mayotte YT 243
Mexico MX 157
Micronesia, Federal State of FM 73
Moldova, Republic of MD 139
Monaco MC 138
Mongolia MN 147
Montenegro ME 140
Montserrat MS 152
Morocco MA 137
Mozambique MZ 159
Myanmar (Burma) MM 146
Namibia NA 160
Nauru NR 169
Nepal NP 168
Netherlands NL 166
Netherlands Antilles (Deprecated) 8
New Caledonia NC 161
New Zealand NZ 171
Nicaragua NI 165
Niger NE 162
Nigeria NG 164
Niue NU 170
Norfolk Island NF 163
Northern Mariana Islands MP 149
Norway NO 167
Oman OM 172
Pakistan PK 178
Palau PW 185
Panama PA 173
Papua New Guinea PG 176
Paraguay PY 186
Peru PE 174
Philippines PH 177
Pitcairn Island PN 181
Poland PL 179
Portugal PT 184
Puerto Rico PR 182
Qatar QA 187
Reunion Island RE 188
Romania RO 189
Russian Federation RU 190
Rwanda RW 191
Saint Barthélemy BL 26
Saint Helena SH 198
Saint Kitts and Nevis KN 120
Saint Lucia LC 128
Saint Martin MF 141
Saint Vincent and the Grenadines VC 234
Samoa WS 241
San Marino SM 203
Sao Tome and Principe ST 207
Saudi Arabia SA 192
Senegal SN 204
Serbia RS 50
Seychelles SC 194
Sierra Leone SL 202
Singapore SG 197
Sint Maarten SX 252
Slovak Republic SK 201
Slovenia SI 199
Solomon Islands SB 193
Somalia SO 205
South Africa ZA 244
South Georgia GS 90
South Sudan SS 253
Spain ES 68
Sri Lanka LK 130
St. Pierre and Miquelon PS 180
State of Palestine PM 183
Sudan SD 195
Suriname SR 206
Svalbard and Jan Mayen Islands SJ 200
Swaziland SZ 210
Sweden SE 196
Switzerland CH 42
Syrian Arab Republic SY 209
Taiwan TW 225
Tajikistan TJ 216
Tanzania TZ 226
Thailand TH 215
Togo TG 214
Tokelau TK 217
Tonga TO 220
Trinidad and Tobago TT 223
Tunisia TN 219
Turkey TR 222
Turkmenistan TM 218
Turks and Caicos Islands TC 211
Tuvalu TV 224
Uganda UG 228
Ukraine UA 227
United Arab Emirates AE 2
United Kingdom GB 77
United States US 230
Uruguay UY 231
US Minor Outlying Islands UM 229
Uzbekistan UZ 232
Vanuatu VU 239
Venezuela VE 235
Vietnam VN 238
Virgin Islands (British) VG 236
Virgin Islands (USA) VI 237
Wallis and Futuna WF 240
Western Sahara EH 66
Yemen YE 242
Zambia ZM 245
Zimbabwe ZW 246