| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- Ext.define('saas.view.document.customer.BasePanelController', {
- extend: 'saas.view.core.base.BasePanelController',
- alias: 'controller.document-customer-basepanel',
- init: function (form) {
- var me = this;
- this.control({
- // 主表-客户编号
- 'customerDbfindTrigger[name=cu_code]':{
- beforerender:function(f){
- Ext.apply(f,{
- //赋值
- dbfinds:[{
- from:'id',to:'cu_id',ignore:true
- },{
- from:'cu_code',to:'cu_code'
- },{
- from:'cu_name',to:'cu_name'
- },{
- from:'cu_sellername',to:'cu_sellername'
- },{
- from:'cu_promisedays',to:'cu_promisedays'
- },{
- from:'cu_credit',to:'cu_credit'
- },{
- from:'cu_statuscode',to:'cu_statuscode'
- }],
- }) ;
- }
- },'employeeDbfindTrigger[name=cu_sellername]':{
- beforerender:function(f){
- Ext.apply(f,{
- dbfinds:[{
- from:'em_name',to:'cu_sellername'
- }],
- }) ;
- }
- }
- });
- }
- });
|