QueryPanelController.js 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. from:'pr_orispeccode',to:'pr_orispeccode'
  17. }]
  18. }) ;
  19. }
  20. },
  21. 'warehouseDbfindTrigger[name=pd_whname]':{
  22. beforerender:function(f){
  23. Ext.apply(f,{
  24. dbfinds:[{
  25. from:'wh_code',to:'wh_code'
  26. },{
  27. from:'wh_description',to:'pd_whname'
  28. }]
  29. }) ;
  30. }
  31. },
  32. 'warehouseDbfindTrigger[name=pd_inwhname]':{
  33. beforerender:function(f){
  34. Ext.apply(f,{
  35. dbfinds:[{
  36. from:'wh_code',to:'wh_code'
  37. },{
  38. from:'wh_description',to:'pd_inwhname'
  39. }]
  40. }) ;
  41. }
  42. },'accountDbfindTrigger[name=creatorName]':{
  43. beforerender:function(f){
  44. Ext.apply(f,{
  45. dbfinds:[{
  46. from:'realname',to:'creatorName'
  47. }],
  48. }) ;
  49. }
  50. },'accountDbfindTrigger[name=pi_auditman]':{
  51. beforerender:function(f){
  52. Ext.apply(f,{
  53. dbfinds:[{
  54. from:'realname',to:'pi_auditman',
  55. }],
  56. }) ;
  57. }
  58. }
  59. });
  60. }
  61. });