123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- Ext.define('erp.view.common.init.Import',{
- extend: 'Ext.Viewport',
- layout: 'border',
- hideBorders: true,
- initComponent : function(){
- var me = this;
- Ext.apply(me, {
- items: [{
- xtype: 'panel',
- region: 'center',
- layout: 'anchor',
- items: [{
- anchor: "100% 5%",
- xtype: 'panel',
- bodyStyle: 'background: #f1f2f5;',
- layout: {
- type: 'hbox'
- },
- defaults: {
- cls: 'custom-button',
- margin: '1 0 0 1'
- },
- items: [{
- xtype: 'button',
- text: '导入历史',
- id: 'history'
- },{
- xtype: 'button',
- text: '导入配置',
- id: 'rule'
- },{
- xtype: 'button',
- text: '下载模板',
- id: 'export'
- },{
- xtype: 'upexcel',
- text: '导入数据',
- iconCls: 'upexcel',
- itemCls: 'up',
- id: 'upexcel',
- hidden: true,
- height: 23,
- width: 90
- },{
- xtype: 'button',
- text: '匹配料号',
- id: 'matchingcode',
- hidden: true
- },{
- xtype: 'button',
- text: '导出所有数据',
- id: 'alldownload',
- hidden: true
- },{
- xtype: 'button',
- text: '导出错误数据',
- id: 'errdownload',
- hidden: true
- },{
- xtype: 'button',
- text: '删除错误数据',
- id: 'errdelete',
- hidden: true
- },{
- xtype: 'button',
- text: '保存修改',
- id: 'saveupdates',
- hidden: true
- },{
- xtype: 'button',
- text: '导出错误数据',
- id: 'errdownload',
- hidden: true
- },{
- xtype: 'checkbox',
- baseBodyCls: 'style="padding-top: 0px;"',
- boxLabel: '只显示错误行',
- boxLabelCls:'style="font-size:11px;' +
- 'font-family:tahoma, arial, verdana, sans-serif;' +
- 'font-weight: normal;' +
- 'padding: 0 4px;"',
- id: 'onlyerror',
- hidden: true,
- height: 23,
- width: 100
- },{
- xtype: 'button',
- text: '校验数据',
- id: 'check',
- hidden: true
- },{
- xtype: 'button',
- text: '转入正式',
- id: 'toformal',
- hidden: true
- },{
- xtype: 'button',
- text: '保存到示例数据',
- id: 'todemo',
- hidden: true
- }]
- },{
- anchor: "100% 95%",
- xtype: 'panel',
- autoScroll: true,
- layout: 'border',
- items: [{
- title: title||'数据模板',
- xtype: 'panel',
- region: 'center',
- height: '100%',
- width: '100%',
- id: 'template',
- layout: 'anchor',
- autoScroll: true
- }]
- }]
- }]
- });
- me.callParent(arguments);
- }
- });
|