Ext.define('make.view.make.bom.BomCompareFormController', { extend: 'Ext.app.ViewController', alias: 'controller.make-bom-bomcompareform', init: function (form) { var me = this; this.control({ //从表多选放大镜赋值关系 以及 tpl模板 'dbfindtrigger[name=code1]': { beforerender: function (f) { Ext.apply(f, { //放大镜赋值设置 dbfinds: [{ from: 'id', to: 'bo_motherid', ignore: true }, { from: 'pr_code', to: 'code1' }, ], }); } }, 'dbfindtrigger[name=code2]': { beforerender: function (f) { Ext.apply(f, { //放大镜赋值设置 dbfinds: [{ from: 'id', to: 'bo_motherid', ignore: true }, { from: 'pr_code', to: 'code2' }, ], }); } }, 'dbfindtrigger[name=code3]': { beforerender: function (f) { Ext.apply(f, { //放大镜赋值设置 dbfinds: [{ from: 'id', to: 'bo_motherid', ignore: true }, { from: 'pr_code', to: 'code3' }, ], }); } }, 'dbfindtrigger[name=code4]': { beforerender: function (f) { Ext.apply(f, { //放大镜赋值设置 dbfinds: [{ from: 'id', to: 'bo_motherid', ignore: true }, { from: 'pr_code', to: 'code4' }, ], }); } }, 'dbfindtrigger[name=code5]': { beforerender: function (f) { Ext.apply(f, { //放大镜赋值设置 dbfinds: [{ from: 'id', to: 'bo_motherid', ignore: true }, { from: 'pr_code', to: 'code5' }, ], }); } }, }) }, });