- function GetInvoices(record, expander, callback) {
- Ext.Ajax.request( {
- url : 'getDetailInvoices.json',
- params : {
- 'chkNo' : record.data.chkNo,
- 'vendorNo' : record.data.vendNo
- },
- success : function(response) {
- var data = Ext.decode(response.responseText);
- if (!data.success) {
- showError(data.message, checkBooks);
- return true;
- }
- // 设置模板中所需要的record数据,并展开该行
- record.data.checkSignerInvoicess = data.records;
- record.commit();
- if (callback) {
- callback(expander);// 一定要回调该函数,否则不能展开
- }
- },
- failure : function() {
- if (callback) {
- callback(expander);
- }
- }
- })
- }
- ;
exxt demo
最新推荐文章于 2022-02-27 21:48:33 发布