CustomerCheckController.js 771 B

1234567891011121314151617181920212223242526
  1. Ext.define('saas.view.money.report.CustomerCheckController', {
  2. extend: 'saas.view.core.report.ReportPanelController',
  3. alias: 'controller.money-report-customercheck',
  4. init: function (form) {
  5. this.control({
  6. 'dbfindtrigger[name=pi_custname]':{
  7. beforerender:function(f){
  8. Ext.apply(f,{
  9. //赋值
  10. dbfinds:[{
  11. from: 'cu_name', to: 'pi_custname'
  12. }],
  13. }) ;
  14. }
  15. }
  16. });
  17. },
  18. pi_custname_change: function(field, value) {
  19. var me = this,
  20. reportPanel = me.getView();
  21. reportPanel.reportTitle = '客户对账单(' + value + ')'
  22. }
  23. });