Ext.define('erp.view.fa.fix.CheckFIXAccount',{ extend: 'Ext.Viewport', layout: 'anchor', hideBorders: true, initComponent : function(){ var me = this; Ext.apply(me, { items: [{ xtype: 'grid', id: 'account-check', anchor: '100% 100%', tbar: [{ xtype: 'tbtext', text: '当前期间:', margin: '0 0 0 20' },{ xtype: 'tbtext', id: 'yearmonth', text: '201305', margin: '0 0 0 2' },'->'], columns: [{ text: '', dataIndex: 'check', flex: 1, renderer: function(val, meta, record) { meta.tdCls = val; return ''; } },{ text: '检测项', dataIndex: 'value', flex: 10, renderer: function(val, meta, record) { if(record.get('check') == 'error') { meta.style = 'color: gray'; } return val; } },{ text: '', dataIndex: 'link', flex: 1, renderer: function(val, meta, record) { if(record.get('check') == 'error') { meta.tdCls = 'detail'; return '详细情况'; } return ''; } }], columnLines: true, store: Ext.create('Ext.data.Store',{ fields: [{name: 'action', type: 'string'}, {name: 'type', type: 'string'}, {name: 'value', type: 'string'}], data: [{ action: 'fa/fix/chk_a.action', type: 'fix_chk_a', value: '固定资产期间与总账期间是否一致' },{ action: 'fa/fix/chk_b.action', type: 'fix_chk_b', value: '当月是否计提折旧' },{ action: 'fa/fix/chk_c.action', type: 'fix_chk_c', value: '所有卡片是否已审核' },{ action: 'fa/fix/chk_d.action', type: 'fix_chk_d', value: '当月的卡片变更单是否已审核' },{ action: 'fa/fix/chk_e.action', type: 'fix_chk_e', value: '当月的资产增加单、资产减少单是否过账' },{ action: 'fa/fix/chk_f.action', type: 'fix_chk_f', value: '当月新增的已审核卡片是否已经生成凭证' },{ action: 'fa/fix/chk_g.action', type: 'fix_chk_g', value: '当月的折旧单、资产增加单、资产减少单是否已经生成凭证' },{ action: 'fa/fix/chk_h.action', type: 'fix_chk_h', value: '固定资产所有卡片的原值金额合计与总账固定资产科目的本期余额是否一致' },{ action: 'fa/fix/chk_i.action', type: 'fix_chk_i', value: '固定资产所有卡片的累计折旧金额合计与总账累计折旧科目的本期余额是否一致' }] }), bbar: [{ xtype: 'checkbox', boxLabel: '知道错误了,我要继续结账', id : 'allow', hidden : true, margin: '0 5 0 20' },'->',{ cls: 'x-btn-blue', id: 'check', text: '结账检查', width: 80, margin: '0 0 0 50' },{ cls: 'x-btn-blue', id: 'accoutover', text: '结 账', width: 80, disabled : true, margin: '0 0 0 5' },{ cls: 'x-btn-blue', id: 'resaccoutover', text: '反结账', width: 80, margin: '0 0 0 5' },{ cls: 'x-btn-blue', id: 'close', text: $I18N.common.button.erpCloseButton, width: 80, margin: '0 175 0 5' }] }] }); me.callParent(arguments); } });