| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- Ext.define('saas.view.money.report.AccountBalanceController', {
- extend: 'saas.view.core.report.ReportPanelController',
- alias: 'controller.money-report-accountbalance',
- init: function (form) {
- this.control({
- //账户资料
- 'dbfindtrigger[name=bankname]':{
- beforerender:function(f){
- Ext.apply(f,{
- dataUrl:'/api/document/bankinformation/list',
- addXtype: 'other-bankinformation',
- addTitle: '资金账户',
- dbfinds:[
- {
- from:'bk_bankname',to:'bankname'
- }],
- dbtpls:[{
- field:'bk_bankcode',width:100
- },{
- field:'bk_bankname',width:100
- }],
- dbSearchFields: [{
- emptyText: '查找资金账户',
- xtype: "textfield",
- name: "search",
- getCondition: function (v) {
- return "(upper(bk_bankcode) like '%"+v.toUpperCase()+"%' or upper(bk_bankname) like '%"+v.toUpperCase()+"%')";
- },
- allowBlank: true,
- columnWidth: 0.25
- }],
- dbColumns: [{
- "text": "账户ID",
- "flex": 0,
- "dataIndex": "id",
- "width": 0,
- "xtype": ""
- }, {
- "text": "资金账户",
- "flex": 1,
- "dataIndex": "bk_bankcode",
- "width": 120,
- "xtype": ""
- }, {
- "text": "账户名称",
- "flex": 1,
- "dataIndex": "bk_bankname",
- "width": 150,
- "xtype": ""
- }, {
- "text": "账户类别",
- "flex": 1,
- "dataIndex": "bk_type",
- "width": 120,
- "xtype": ""
- }, {
- "text": "账户余额",
- "flex": 1,
- "dataIndex": "bk_thisamount",
- "width": 120,
- xtype: 'numbercolumn',
- }, {
- "text": "建帐日期",
- "flex": 1,
- "dataIndex": "bk_date",
- "width": 120,
- "xtype": "datecolumn"
- }]
- }) ;
- }
- }
- });
- }
- });
|