QueryPanelController.js 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. Ext.define('saas.view.stock.appropriationInOut.QueryPanelController', {
  2. extend: 'saas.view.core.query.QueryPanelController',
  3. alias: 'controller.stock-appropriationinout-querypanel',
  4. init: function (form) {
  5. var me = this;
  6. this.control({
  7. //放大镜赋值关系 以及 tpl模板
  8. 'dbfindtrigger[name=pr_detail]':{
  9. beforerender:function(f){
  10. Ext.apply(f,{
  11. dbfinds:[{
  12. from:'pr_code',to:'pd_prodcode'
  13. },{
  14. from:'pr_detail',to:'pr_detail'
  15. }]
  16. }) ;
  17. }
  18. },
  19. 'warehouseDbfindTrigger[name=pd_whname]':{
  20. beforerender:function(f){
  21. Ext.apply(f,{
  22. dbfinds:[{
  23. from:'wh_code',to:'wh_code'
  24. },{
  25. from:'wh_description',to:'pd_whname'
  26. }]
  27. }) ;
  28. }
  29. },
  30. 'warehouseDbfindTrigger[name=pd_inwhname]':{
  31. beforerender:function(f){
  32. Ext.apply(f,{
  33. dbfinds:[{
  34. from:'wh_code',to:'wh_code'
  35. },{
  36. from:'wh_description',to:'pd_inwhname'
  37. }]
  38. }) ;
  39. }
  40. },'accountDbfindTrigger[name=creatorName]':{
  41. beforerender:function(f){
  42. Ext.apply(f,{
  43. dbfinds:[{
  44. from:'realname',to:'creatorName'
  45. }],
  46. }) ;
  47. }
  48. },'accountDbfindTrigger[name=pi_auditman]':{
  49. beforerender:function(f){
  50. Ext.apply(f,{
  51. dbfinds:[{
  52. from:'realname',to:'pi_auditman',
  53. }],
  54. }) ;
  55. }
  56. }
  57. });
  58. }
  59. });