ITeye博客

exxt demo

liujianeye · 2011-07-12 02:18 · ext · Web前端 · Markdown

  1. function GetInvoices(record, expander, callback) {
  2. Ext.Ajax.request( {
  3. url : 'getDetailInvoices.json',
  4. params : {
  5. 'chkNo' : record.data.chkNo,
  6. 'vendorNo' : record.data.vendNo
  7. },
  8. success : function(response) {
  9. var data = Ext.decode(response.responseText);
  10. if (!data.success) {
  11. showError(data.message, checkBooks);
  12. return true;
  13. }
  14. // 设置模板中所需要的record数据,并展开该行
  15. record.data.checkSignerInvoicess = data.records;
  16. record.commit();
  17. if (callback) {
  18. callback(expander);// 一定要回调该函数,否则不能展开
  19. }
  20. },
  21. failure : function() {
  22. if (callback) {
  23. callback(expander);
  24. }
  25. }
  26. })
  27. }
  28. ;

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。