| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- Ext.define('saas.view.stock.otherIn.FormPanelController', {
- extend: 'saas.view.core.form.FormPanelController',
- alias: 'controller.stock-otherin-formpanel',
- init: function (form) {
- var me = this;
- this.control({
- //放大镜赋值关系 以及 tpl模板
- 'dbfindtrigger[name=pi_vendname]':{
- beforerender:function(f){
- Ext.apply(f,{
- dbfinds:[{
- from:'id',to:'pi_vendid',ignore:true
- },{
- from:'ve_code',to:'pi_vendcode'
- },{
- from:'ve_name',to:'pi_vendname'
- }],
- }) ;
- }
- },
- //放大镜赋值关系 以及 tpl模板
- 'dbfindtrigger[name=pi_custname]': {
- beforerender: function (f) {
- Ext.apply(f, {
- dbfinds: [{
- from: 'id',to: 'pi_custid',ignore:true
- }, {
- from: 'cu_code',to: 'pi_custcode'
- }, {
- from: 'cu_name',to: 'pi_custname'
- }],
- });
- }
- },
- //放大镜赋值关系 以及 tpl模板
- 'multidbfindtrigger[name=pd_prodcode]': {
- beforerender: function (f) {
- Ext.apply(f, {
- dbfinds: [{
- from: 'id',
- to: 'pd_prodid',ignore:true
- }, {
- from: 'pr_code',
- to: 'pd_prodcode'
- }, {
- from: 'pr_detail',
- to: 'pr_detail'
- }, {
- from: 'pr_spec',
- to: 'pr_spec'
- },{
- from:'pr_whid',to:'pd_whid'
- },{
- from:'pr_whcode',to:'pd_whcode'
- },{
- from:'pr_whname',to:'pd_whname'
- },{
- from:'pr_purcprice',to:'pd_orderprice'
- }],
- });
- }
- },
- //放大镜赋值关系 以及 tpl模板
- 'dbfindtrigger[name=pd_whname]': {
- beforerender: function (f) {
- Ext.apply(f, {
- dbfinds: [{
- from: 'id',
- to: 'pd_whid',ignore:true
- }, {
- from: 'wh_code',
- to: 'pd_whcode'
- }, {
- from: 'wh_description',
- to: 'pd_whname'
- }],
- });
- },
- },
- });
- }
- });
|