meeting.js 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634
  1. meeting_parameter = {
  2. first : '(0)',
  3. last : '(0)',
  4. count : 20
  5. };
  6. function meeting_list_next(id) {
  7. $('#result').html('');
  8. var id = (id ? id : meeting_parameter.last);
  9. $.ajax({
  10. type : 'get',
  11. dataType : 'json',
  12. url : '../jaxrs/meeting/list/' + id + '/next/' + meeting_parameter.count,
  13. xhrFields : {
  14. 'withCredentials' : true
  15. },
  16. crossDomain : true
  17. }).done(function(json) {
  18. $('#result').html(JSON.stringify(json, null, 4));
  19. if (json.type == 'success') {
  20. if (json.data.length > 0) {
  21. meeting_parameter.first = json.data[0].id;
  22. meeting_parameter.last = json.data[json.data.length - 1].id;
  23. } else {
  24. meeting_parameter.first = '(0)';
  25. }
  26. meeting_grid(json.data);
  27. } else {
  28. failure(data);
  29. }
  30. });
  31. }
  32. function meeting_list_prev(id) {
  33. $('#result').html('');
  34. var id = (id ? id : meeting_parameter.first);
  35. $.ajax({
  36. type : 'get',
  37. dataType : 'json',
  38. url : '../jaxrs/meeting/list/' + id + '/prev/' + meeting_parameter.count,
  39. xhrFields : {
  40. 'withCredentials' : true
  41. },
  42. crossDomain : true
  43. }).done(function(json) {
  44. $('#result').html(JSON.stringify(json, null, 4));
  45. if (json.type == 'success') {
  46. if (json.data.length > 0) {
  47. meeting_parameter.first = json.data[0].id;
  48. meeting_parameter.last = json.data[json.data.length - 1].id;
  49. } else {
  50. meeting_parameter.last = '(0)';
  51. }
  52. meeting_grid(json.data);
  53. } else {
  54. failure(data);
  55. }
  56. });
  57. }
  58. function meeting_grid(items) {
  59. var str = '<table border="1" width="100%"><tobdy>';
  60. str += '<tr><th>rank</th><th>id</th><th>subject</th><th>confirmStatus</th><th>manualCompleted</th></tr>';
  61. if (items) {
  62. $.each(items, function(index, item) {
  63. str += '<tr>';
  64. str += '<td>' + item.rank + '</td>';
  65. str += '<td>' + item.id + '</td>';
  66. str += '<td>' + item.subject + '</td>';
  67. str += '<td>' + item.confirmStatus + '</td>';
  68. str += '<td>' + item.manualCompleted + '</td>';
  69. str += '</tr>';
  70. });
  71. }
  72. str += '</tobdy></table>';
  73. $('#content').html(str);
  74. }
  75. function meeting_list_waitConfirm() {
  76. $('#result').html('');
  77. $.ajax({
  78. type : 'get',
  79. dataType : 'json',
  80. url : '../jaxrs/meeting/list/wait/confirm',
  81. xhrFields : {
  82. 'withCredentials' : true
  83. },
  84. crossDomain : true
  85. }).done(function(json) {
  86. $('#result').html(JSON.stringify(json, null, 4));
  87. meeting_grid(json.data);
  88. });
  89. }
  90. function meeting_listOnMonth_select() {
  91. $('#result').html('');
  92. var str = '<table border="1" width="100%">';
  93. str += '<tr><td colspan="2"> <a href="#" id="list">list</a></td></tr>';
  94. str += '<tr><td>year:</td><td><input type="text" id="year" style="width:95%"/></td></tr>';
  95. str += '<tr><td>month:</td><td><input type="text" id="month" style="width:95%"/></td></tr>';
  96. str += '</table>';
  97. $('#content').html(str);
  98. $('#list').click(function() {
  99. meeting_listOnMonth($('#year').val(), $('#month').val());
  100. });
  101. }
  102. function meeting_listOnMonth(year, month) {
  103. $('#result').html('');
  104. $.ajax({
  105. type : 'get',
  106. dataType : 'json',
  107. url : '../jaxrs/meeting/list/year/' + year + '/month/' + month,
  108. xhrFields : {
  109. 'withCredentials' : true
  110. },
  111. crossDomain : true
  112. }).done(function(json) {
  113. $('#result').html(JSON.stringify(json, null, 4));
  114. meeting_grid(json.data);
  115. });
  116. }
  117. function meeting_listOnDay_select() {
  118. $('#result').html('');
  119. var str = '<table border="1" width="100%">';
  120. str += '<tr><td colspan="2"> <a href="#" id="list">list</a></td></tr>';
  121. str += '<tr><td>year:</td><td><input type="text" id="year" style="width:95%"/></td></tr>';
  122. str += '<tr><td>month:</td><td><input type="text" id="month" style="width:95%"/></td></tr>';
  123. str += '<tr><td>day:</td><td><input type="text" id="day" style="width:95%"/></td></tr>';
  124. str += '</table>';
  125. $('#content').html(str);
  126. $('#list').click(function() {
  127. meeting_listOnDay($('#year').val(), $('#month').val(), $('#day').val());
  128. });
  129. }
  130. function meeting_listOnDay(year, month, day) {
  131. $('#result').html('');
  132. $.ajax({
  133. type : 'get',
  134. dataType : 'json',
  135. url : '../jaxrs/meeting/list/year/' + year + '/month/' + month + '/day/' + day,
  136. xhrFields : {
  137. 'withCredentials' : true
  138. },
  139. crossDomain : true
  140. }).done(function(json) {
  141. $('#result').html(JSON.stringify(json, null, 4));
  142. meeting_grid(json.data);
  143. });
  144. }
  145. function meeting_get_select() {
  146. $('#result').html('');
  147. var str = '<table border="1" width="100%">';
  148. str += '<tr><td colspan="2"> <a href="#" id="get">get</a></td></tr>';
  149. str += '<tr><td>id:</td><td><input type="text" id="id" style="width:95%"/></td></tr>';
  150. str += '</table>';
  151. $('#content').html(str);
  152. $('#get').click(function() {
  153. meeting_get($('#id').val());
  154. });
  155. }
  156. function meeting_get(id) {
  157. $('#result').html('');
  158. $.ajax({
  159. type : 'get',
  160. dataType : 'json',
  161. url : '../jaxrs/meeting/' + id,
  162. xhrFields : {
  163. 'withCredentials' : true
  164. },
  165. crossDomain : true
  166. }).done(function(json) {
  167. $('#result').html(JSON.stringify(json, null, 4));
  168. });
  169. }
  170. function meeting_post_select() {
  171. $('#result').html('');
  172. var str = '<table border="1" width="100%">';
  173. str += '<tr><td colspan="2"><a href="#" id="post">post</a></td></tr>';
  174. str += '<tr><td>room:</td><td><input type="text" id="room" style="width:95%"/></td></tr>';
  175. str += '<tr><td>subject:</td><td><input type="text" id="subject" style="width:95%"/></td></tr>';
  176. str += '<tr><td>description:</td><td><input type="text" id="description" style="width:95%"/></td></tr>';
  177. str += '<tr><td>startTime:</td><td><input type="text" id="startTime" style="width:95%"/></td></tr>';
  178. str += '<tr><td>completedTime:</td><td><input type="text" id="completedTime" style="width:95%"/></td></tr>';
  179. str += '<tr><td>invitePersonList:</td><td><textarea id="invitePersonList" style="width:95%"/></td></tr>';
  180. str += '<tr><td>memo:</td><td><textarea id="memo" style="width:95%"/></td></tr>';
  181. str += '</table>';
  182. $('#content').html(str);
  183. $('#post').click(function() {
  184. meeting_post();
  185. });
  186. }
  187. function meeting_post() {
  188. $('#result').html('');
  189. $.ajax({
  190. type : 'post',
  191. dataType : 'json',
  192. url : '../jaxrs/meeting',
  193. contentType : 'application/json; charset=utf-8',
  194. data : JSON.stringify({
  195. room : $('#room').val(),
  196. subject : $('#subject').val(),
  197. description : $('#description').val(),
  198. startTime : $('#startTime').val(),
  199. completedTime : $('#completedTime').val(),
  200. memo : $('#memo').val(),
  201. invitePersonList : splitValue($('#invitePersonList').val())
  202. }),
  203. xhrFields : {
  204. 'withCredentials' : true
  205. },
  206. crossDomain : true
  207. }).done(function(json) {
  208. $('#result').html(JSON.stringify(json, null, 4));
  209. });
  210. }
  211. function meeting_put_select() {
  212. $('#result').html('');
  213. var str = '<table border="1" width="100%">';
  214. str += '<tr><td colspan="2"> <a href="#" id="put">put</a></td></tr>';
  215. str += '<tr><td>id:</td><td><input type="text" id="id" style="width:95%"/></td></tr>';
  216. str += '</table>';
  217. $('#content').html(str);
  218. $('#put').click(function() {
  219. meeting_put_init($('#id').val());
  220. });
  221. }
  222. function meeting_put_init(id) {
  223. $('#result').html('');
  224. var str = '<table border="1" width="100%">';
  225. str += '<tr><td colspan="2"><a href="#" id="put">put</a></td></tr>';
  226. str += '<tr><td>id:</td><td id="id"></td></tr>';
  227. str += '<tr><td>applicant:</td><td id="applicant"></td></tr>';
  228. str += '<tr><td>room:</td><td><input type="text" id="room" style="width:95%"/></td></tr>';
  229. str += '<tr><td>subject:</td><td><input type="text" id="subject" style="width:95%"/></td></tr>';
  230. str += '<tr><td>description:</td><td><input type="text" id="description" style="width:95%"/></td></tr>';
  231. str += '<tr><td>startTime:</td><td><input type="text" id="startTime" style="width:95%"/></td></tr>';
  232. str += '<tr><td>completedTime:</td><td><input type="text" id="completedTime" style="width:95%"/></td></tr>';
  233. str += '<tr><td>invitePersonList:</td><td><textarea id="invitePersonList" style="width:95%"/></td></tr>';
  234. str += '<tr><td>acceptPersonList:</td><td><textarea id="acceptPersonList" style="width:95%"/></td></tr>';
  235. str += '<tr><td>rejectPersonList:</td><td><textarea id="rejectPersonList" style="width:95%"/></td></tr>';
  236. str += '<tr><td>memo:</td><td><textarea id="memo" style="width:95%"/></td></tr>';
  237. str += '<tr><td>confirmStatus:</td><td><select id="confirmStatus"><option value="wait">wait</option><option value="allow">allow</option><option value="deny">deny</option></select></td></tr>';
  238. str += '<tr><td>manualCompleted:</td><td><select id="manualCompleted"><option value="true">true</option><option value="false">false</option></select></td></tr>';
  239. str += '</table>';
  240. $('#content').html(str);
  241. $('#put').click(function() {
  242. meeting_put(id);
  243. });
  244. $.ajax({
  245. type : 'get',
  246. dataType : 'json',
  247. url : '../jaxrs/meeting/' + id,
  248. xhrFields : {
  249. 'withCredentials' : true
  250. },
  251. crossDomain : true
  252. }).done(function(json) {
  253. $('#result').html(JSON.stringify(json, null, 4));
  254. if (json.type == 'success') {
  255. $('#id').html(json.data.id);
  256. $('#applicant').html(json.data.applicant);
  257. $('#room').val(json.data.room);
  258. $('#subject').val(json.data.subject);
  259. $('#description').val(json.data.description);
  260. $('#startTime').val(json.data.startTime);
  261. $('#completedTime').val(json.data.completedTime);
  262. $('#invitePersonList').val(joinValue(json.data.invitePersonList));
  263. $('#acceptPersonList').val(joinValue(json.data.acceptPersonList));
  264. $('#rejectPersonList').val(joinValue(json.data.rejectPersonList));
  265. $('#memo').val(joinValue(json.data.memo));
  266. $('#confirmStatus').val(json.data.confirmStatus);
  267. $('#manualCompleted').val(json.data.manualCompleted + '');
  268. }
  269. });
  270. }
  271. function meeting_put(id) {
  272. $('#result').html('');
  273. $.ajax({
  274. type : 'put',
  275. dataType : 'json',
  276. url : '../jaxrs/room/' + id,
  277. contentType : 'application/json; charset=utf-8',
  278. data : JSON.stringify({
  279. room : $('#room').val(),
  280. subject : $('#subject').val(),
  281. description : $('#description').val(),
  282. startTime : $('#startTime').val(),
  283. completedTime : $('#completedTime').val(),
  284. invitePersonList : splitValue($('#invitePersonList').val()),
  285. acceptPersonList : splitValue($('#acceptPersonList').val()),
  286. rejectPersonList : splitValue($('#rejectPersonList').val()),
  287. memo : $('#memo').val(),
  288. confirmStatus : $('#confirmStatus').val(),
  289. manualCompleted : $('#manualCompleted').val()
  290. }),
  291. xhrFields : {
  292. 'withCredentials' : true
  293. },
  294. crossDomain : true
  295. }).done(function(json) {
  296. $('#result').html(JSON.stringify(json, null, 4));
  297. });
  298. }
  299. function meeting_delete_select() {
  300. $('#result').html('');
  301. var str = '<table border="1" width="100%">';
  302. str += '<tr><td colspan="2"> <a href="#" id="delete">delete</a></td></tr>';
  303. str += '<tr><td>delete id:</td><td><input type="text" id="id" style="width:95%"/></td></tr>';
  304. str += '</table>';
  305. $('#content').html(str);
  306. $('#delete').click(function() {
  307. meeting_delete($('#id').val());
  308. });
  309. }
  310. function meeting_delete(id) {
  311. $('#result').html('');
  312. $.ajax({
  313. type : 'delete',
  314. dataType : 'json',
  315. url : '../jaxrs/meeting/' + id,
  316. xhrFields : {
  317. 'withCredentials' : true
  318. },
  319. crossDomain : true
  320. }).done(function(json) {
  321. $('#result').html(JSON.stringify(json, null, 4));
  322. });
  323. }
  324. function meeting_confirm_allow_select() {
  325. $('#result').html('');
  326. var str = '<table border="1" width="100%">';
  327. str += '<tr><td colspan="2"> <a href="#" id="allow">allow</a></td></tr>';
  328. str += '<tr><td>id:</td><td><input type="text" id="id" style="width:95%"/></td></tr>';
  329. str += '</table>';
  330. $('#content').html(str);
  331. $('#allow').click(function() {
  332. meeting_confirm_allow($('#id').val());
  333. });
  334. }
  335. function meeting_confirm_allow(id) {
  336. $('#result').html('');
  337. $.ajax({
  338. type : 'get',
  339. dataType : 'json',
  340. url : '../jaxrs/meeting/' + id + '/confirm/allow',
  341. xhrFields : {
  342. 'withCredentials' : true
  343. },
  344. crossDomain : true
  345. }).done(function(json) {
  346. $('#result').html(JSON.stringify(json, null, 4));
  347. });
  348. }
  349. function meeting_confirm_deny_select() {
  350. $('#result').html('');
  351. var str = '<table border="1" width="100%">';
  352. str += '<tr><td colspan="2"> <a href="#" id="deny">deny</a></td></tr>';
  353. str += '<tr><td>id:</td><td><input type="text" id="id" style="width:95%"/></td></tr>';
  354. str += '</table>';
  355. $('#content').html(str);
  356. $('#deny').click(function() {
  357. meeting_confirm_deny($('#id').val());
  358. });
  359. }
  360. function meeting_confirm_deny(id) {
  361. $('#result').html('');
  362. $.ajax({
  363. type : 'get',
  364. dataType : 'json',
  365. url : '../jaxrs/meeting/' + id + '/confirm/deny',
  366. xhrFields : {
  367. 'withCredentials' : true
  368. },
  369. crossDomain : true
  370. }).done(function(json) {
  371. $('#result').html(JSON.stringify(json, null, 4));
  372. });
  373. }
  374. function meeting_accept_select() {
  375. $('#result').html('');
  376. var str = '<table border="1" width="100%">';
  377. str += '<tr><td colspan="2"> <a href="#" id="accept">accept</a></td></tr>';
  378. str += '<tr><td>id:</td><td><input type="text" id="id" style="width:95%"/></td></tr>';
  379. str += '</table>';
  380. $('#content').html(str);
  381. $('#accept').click(function() {
  382. meeting_accept($('#id').val());
  383. });
  384. }
  385. function meeting_accept(id) {
  386. $('#result').html('');
  387. $.ajax({
  388. type : 'get',
  389. dataType : 'json',
  390. url : '../jaxrs/meeting/' + id + '/accept',
  391. xhrFields : {
  392. 'withCredentials' : true
  393. },
  394. crossDomain : true
  395. }).done(function(json) {
  396. $('#result').html(JSON.stringify(json, null, 4));
  397. });
  398. }
  399. function meeting_reject_select() {
  400. $('#result').html('');
  401. var str = '<table border="1" width="100%">';
  402. str += '<tr><td colspan="2"> <a href="#" id="reject">reject</a></td></tr>';
  403. str += '<tr><td>id:</td><td><input type="text" id="id" style="width:95%"/></td></tr>';
  404. str += '</table>';
  405. $('#content').html(str);
  406. $('#reject').click(function() {
  407. meeting_reject($('#id').val());
  408. });
  409. }
  410. function meeting_reject(id) {
  411. $('#result').html('');
  412. $.ajax({
  413. type : 'get',
  414. dataType : 'json',
  415. url : '../jaxrs/meeting/' + id + '/reject',
  416. xhrFields : {
  417. 'withCredentials' : true
  418. },
  419. crossDomain : true
  420. }).done(function(json) {
  421. $('#result').html(JSON.stringify(json, null, 4));
  422. });
  423. }
  424. function meeting_manualCompleted_select() {
  425. $('#result').html('');
  426. var str = '<table border="1" width="100%">';
  427. str += '<tr><td colspan="2"> <a href="#" id="completed">completed</a></td></tr>';
  428. str += '<tr><td>id:</td><td><input type="text" id="id" style="width:95%"/></td></tr>';
  429. str += '</table>';
  430. $('#content').html(str);
  431. $('#completed').click(function() {
  432. meeting_manualCompleted($('#id').val());
  433. });
  434. }
  435. function meeting_manualCompleted(id) {
  436. $('#result').html('');
  437. $.ajax({
  438. type : 'get',
  439. dataType : 'json',
  440. url : '../jaxrs/meeting/' + id + '/manual/completed',
  441. xhrFields : {
  442. 'withCredentials' : true
  443. },
  444. crossDomain : true
  445. }).done(function(json) {
  446. $('#result').html(JSON.stringify(json, null, 4));
  447. });
  448. }
  449. function meeting_addInvite_select() {
  450. $('#result').html('');
  451. var str = '<table border="1" width="100%">';
  452. str += '<tr><td colspan="2"> <a href="#" id="add">add</a></td></tr>';
  453. str += '<tr><td>id:</td><td><input type="text" id="id" style="width:95%"/></td></tr>';
  454. str += '<tr><td>invitePersonList:</td><td><textarea type="text" id="id" style="width:95%"/></td></tr>';
  455. str += '</table>';
  456. $('#content').html(str);
  457. $('#add').click(function() {
  458. meeting_addInvite($('#id').val());
  459. });
  460. }
  461. function meeting_addInvite(id) {
  462. $('#result').html('');
  463. $.ajax({
  464. type : 'put',
  465. dataType : 'json',
  466. url : '../jaxrs/meeting/' + id + '/add/invite',
  467. xhrFields : {
  468. 'withCredentials' : true
  469. },
  470. data : JSON.stringify({
  471. invitePersonList : splitValue($('#invitePersonList').val())
  472. }),
  473. crossDomain : true
  474. }).done(function(json) {
  475. $('#result').html(JSON.stringify(json, null, 4));
  476. });
  477. }
  478. function meeting_listComingMonth_select() {
  479. $('#result').html('');
  480. var str = '<table border="1" width="100%">';
  481. str += '<tr><td colspan="2"> <a href="#" id="list">list</a></td></tr>';
  482. str += '<tr><td>count:</td><td><input type="count" id="id" style="width:95%"/></td></tr>';
  483. str += '</table>';
  484. $('#content').html(str);
  485. $('#list').click(function() {
  486. meeting_listComingMonth($('#count').val());
  487. });
  488. }
  489. function meeting_listComingMonth(count) {
  490. $('#result').html('');
  491. $.ajax({
  492. type : 'get',
  493. dataType : 'json',
  494. url : '../jaxrs/meeting/list/coming/month/' + count,
  495. xhrFields : {
  496. 'withCredentials' : true
  497. },
  498. crossDomain : true
  499. }).done(function(json) {
  500. $('#result').html(JSON.stringify(json, null, 4));
  501. meeting_grid(json.data);
  502. });
  503. }
  504. function meeting_listComingDay_select() {
  505. $('#result').html('');
  506. var str = '<table border="1" width="100%">';
  507. str += '<tr><td colspan="2"> <a href="#" id="list">list</a></td></tr>';
  508. str += '<tr><td>count:</td><td><input type="count" id="id" style="width:95%"/></td></tr>';
  509. str += '</table>';
  510. $('#content').html(str);
  511. $('#list').click(function() {
  512. meeting_listComingDay($('#count').val());
  513. });
  514. }
  515. function meeting_listComingDay(count) {
  516. $('#result').html('');
  517. $.ajax({
  518. type : 'get',
  519. dataType : 'json',
  520. url : '../jaxrs/meeting/list/coming/day/' + count,
  521. xhrFields : {
  522. 'withCredentials' : true
  523. },
  524. crossDomain : true
  525. }).done(function(json) {
  526. $('#result').html(JSON.stringify(json, null, 4));
  527. meeting_grid(json.data);
  528. });
  529. }
  530. function meeting_search_select() {
  531. $('#result').html('');
  532. var str = '<table border="1" width="100%">';
  533. str += '<tr><td colspan="2">';
  534. str += '<a href="#" id="listPinyinInitial">listPinyinInitial</a>';
  535. str += '&nbsp;';
  536. str += '<a href="#" id="listLike">listLike</a>';
  537. str += '&nbsp;';
  538. str += '<a href="#" id="listLikePinyin">listLikePinyin</a>';
  539. str += '</td></tr>';
  540. str += '<tr><td>key:</td><td><input type="text" id="key" style="width:95%"/></td></tr>';
  541. str += '</table>';
  542. $('#content').html(str);
  543. $('#listPinyinInitial').click(function() {
  544. meeting_listPinyinInitial($('#key').val());
  545. });
  546. $('#listLike').click(function() {
  547. meeting_listLike($('#key').val());
  548. });
  549. $('#listLikePinyin').click(function() {
  550. meeting_listLikePinyin($('#key').val());
  551. });
  552. }
  553. function meeting_listPinyinInitial(key) {
  554. $('#result').html('');
  555. $.ajax({
  556. type : 'get',
  557. dataType : 'json',
  558. url : '../jaxrs/meeting/list/pinyininitial/' + key,
  559. xhrFields : {
  560. 'withCredentials' : true
  561. },
  562. crossDomain : true
  563. }).done(function(json) {
  564. $('#result').html(JSON.stringify(json, null, 4));
  565. meeting_grid(json.data);
  566. });
  567. }
  568. function meeting_listLike(key) {
  569. $('#result').html('');
  570. $.ajax({
  571. type : 'get',
  572. dataType : 'json',
  573. url : '../jaxrs/meeting/list/like/' + key,
  574. xhrFields : {
  575. 'withCredentials' : true
  576. },
  577. crossDomain : true
  578. }).done(function(json) {
  579. $('#result').html(JSON.stringify(json, null, 4));
  580. meeting_grid(json.data);
  581. });
  582. }
  583. function meeting_listLikePinyin(key) {
  584. $('#result').html('');
  585. $.ajax({
  586. type : 'get',
  587. dataType : 'json',
  588. url : '../jaxrs/meeting/list/like/pinyin/' + key,
  589. xhrFields : {
  590. 'withCredentials' : true
  591. },
  592. crossDomain : true
  593. }).done(function(json) {
  594. $('#result').html(JSON.stringify(json, null, 4));
  595. meeting_grid(json.data);
  596. });
  597. }