QueryPanelController.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. Ext.define('saas.view.money.recBalance.QueryPanelController', {
  2. extend: 'saas.view.core.query.QueryPanelController',
  3. alias: 'controller.money-recbalance-querypanel',
  4. init: function (form) {
  5. var me = this;
  6. this.control({
  7. 'customerDbfindTrigger[name=rb_custname]':{
  8. beforerender: function (f) {
  9. Ext.apply(f, {
  10. dbfinds: [{
  11. from: 'cu_code', to: 'cu_code'
  12. },{
  13. from: 'cu_name', to: 'rb_custname'
  14. }],
  15. });
  16. }
  17. },'employeeDbfindTrigger[name=creatorName]':{
  18. beforerender: function (f) {
  19. Ext.apply(f, {
  20. dbfinds: [{
  21. from: 'em_name',
  22. to: 'creatorName'
  23. }],
  24. });
  25. }
  26. },'employeeDbfindTrigger[name=rb_auditman]':{
  27. beforerender: function (f) {
  28. Ext.apply(f, {
  29. dbfinds: [{
  30. from: 'em_name',
  31. to: 'rb_auditman'
  32. }],
  33. });
  34. }
  35. }
  36. });
  37. }
  38. });