QueryPanelController.js 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. },'employeeDbfindTrigger[name=creatorName]':{
  41. beforerender:function(f){
  42. Ext.apply(f,{
  43. dbfinds:[{
  44. from:'em_code',to:'em_code'
  45. },{
  46. from:'em_name',to:'creatorName'
  47. }],
  48. }) ;
  49. }
  50. },'employeeDbfindTrigger[name=pi_auditman]':{
  51. beforerender:function(f){
  52. Ext.apply(f,{
  53. dbfinds:[{
  54. from:'em_code',to:'em_code'
  55. },{
  56. from:'em_name',to:'pi_auditman',
  57. }],
  58. }) ;
  59. }
  60. }
  61. });
  62. }
  63. });