| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- Ext.define('saas.view.money.othspendings.FormPanelController', {
- extend: 'saas.view.core.form.FormPanelController',
- alias: 'controller.money-othspendings-formpanel',
- init: function (form) {
- var me = this;
- this.control({
- //放大镜赋值关系 以及 tpl模板
- 'dbfindtrigger[name=os_vendname]':{
- beforerender:function(f){
- Ext.apply(f,{
- dataUrl:basePath+'document/vendor/getVendorsByCondition',
- dbfinds:[{
- from:'id',to:'os_vendid'
- },{
- from:'ve_code',to:'os_vendcode'
- },{
- from:'ve_name',to:'os_vendname'
- }],
- dbtpls:[{
- field:'ve_code',width:100
- },{
- field:'ve_name',width:100
- }],
- dbColumns:[{
- "text": "供应商ID",
- "flex": 0,
- "dataIndex": "id",
- "width": 100,
- "xtype": "numbercolumn"
- },{
- conditionCode:'ve_code',
- "text": "供应商编号",
- "flex": 1,
- "dataIndex": "ve_code",
- "width": 100
- }, {
- conditionCode:'ve_name',
- "text": "供应商名称",
- "flex": 1,
- "dataIndex": "ve_name",
- "width": 100
- }, {
- conditionCode:'cu_type',
- "text": "供应商类型",
- "flex": 0,
- "dataIndex": "ve_type",
- "width": 200,
- "items": null
- }]
- }) ;
- }
- },
- //放大镜赋值关系 以及 tpl模板
- 'dbfindtrigger[name=os_bankname]':{
- beforerender:function(f){
- Ext.apply(f,{
- conditionCode:'os_bankcode',
- dataUrl:basePath+'document/bankinformation/getAll',
- dbfinds:[{
- from:'bk_bankcode',to:'os_bankcode'
- },{
- from:'bk_bankname',to:'os_bankname'
- },{
- from:'bk_id',to:'os_bankid'
- }],
- dbtpls:[{
- field:'bk_bankcode',width:100
- },{
- field:'bk_bankname',width:100
- }],
- dbColumns:[{
- "text": "账户ID",
- "flex": 0,
- "dataIndex": "id",
- "width": 0,
- "xtype": "",
- "items": null
- },{
- "text": "账户编号",
- "flex": 1,
- "dataIndex": "bk_bankcode",
- "width": 100,
- "xtype": "",
- "items": null
- }, {
- "text": "账户名称",
- "flex": 1,
- "dataIndex": "bk_bankname",
- "xtype": "",
- "items": null
- }, {
- "text": "账户类型",
- "flex": 0,
- "dataIndex": "bk_type",
- "width": 200,
- "xtype": "",
- "items": null
- }]
- }) ;
- }
- }
- });
- }
- });
|