在Extjs5中如何使用netbeans8.0将app模型,商店,控制器与视图集成...
Ext.define('Coplinsurance.view.aftermarket.AfterMarketComponent',{ extend:'Ext.panel.Panel', xtype:'售后', 标题:'克林特姓名:', 默认值:{ xtype:'form', // flex:2, // labelAlign:'top', 填充:5
},
layout: {
type: 'vbox'
},
items: [
{
defaults: {
xtype: 'textfield',
padding: 5
},
layout: {
type: 'hbox'
},
title: 'After Market',
items: [
{
allowBlank: false,
minLength: 3,
maxLength: 25,
msgTarget: 'side',
enableKeyEvents: true,
fieldLabel: 'Supplier',
name: 'supplier',
width: 250
},
{
allowBlank: true,
minLength: 3,
maxLength: 25,
msgTarget: 'side',
enableKeyEvents: true,
fieldLabel: 'Invoice Price',
name: 'invoiceprice',
width: 250
},
{
allowBlank: false,
minLength: 3,
maxLength: 25,
msgTarget: 'side',
enableKeyEvents: true,
fieldLabel: 'Commission',
name: 'commission',
width: 250
},
{
xtype: 'checkboxfield',
fieldLabel: 'excluding GST:',
boxLabel: 'Premium not financed'
}
]
}, {
defaults: {
xtype: 'textfield',
padding: 5
},
layout: {
type: 'hbox'
},
title: 'Other Insurance / Warranty',
items: [
{
allowBlank: false,
minLength: 3,
maxLength: 25,
msgTarget: 'side',
enableKeyEvents: true,
fieldLabel: 'Supplier',
name: 'supplier',
width: 250
},
{
allowBlank: true,
minLength: 3,
maxLength: 25,
msgTarget: 'side',
enableKeyEvents: true,
fieldLabel: 'Invoice Price',
name: 'invoiceprice',
width: 250
},
{
allowBlank: false,
minLength: 3,
maxLength: 25,
msgTarget: 'side',
enableKeyEvents: true,
fieldLabel: 'Commission',
name: 'commission',
width: 250
},
{
xtype: 'checkboxfield',
fieldLabel: 'excluding GST:',
boxLabel: 'Premium not financed'
}
]
}, {
defaults: {
xtype: 'textfield',
padding: 5
},
layout: {
type: 'hbox'
},
title: 'Other Insurance ',
items: [
{
allowBlank: false,
minLength: 3,
maxLength: 25,
msgTarget: 'side',
enableKeyEvents: true,
fieldLabel: 'Supplier',
name: 'supplier',
width: 250
},
{
allowBlank: true,
minLength: 3,
maxLength: 25,
msgTarget: 'side',
enableKeyEvents: true,
fieldLabel: 'Invoice Price',
name: 'invoiceprice',
width: 250
},
{
allowBlank: false,
minLength: 3,
maxLength: 25,
msgTarget: 'side',
enableKeyEvents: true,
fieldLabel: 'Commission',
name: 'commission',
width: 250
},
{
xtype: 'checkboxfield',
fieldLabel: 'excluding GST:',
boxLabel: 'Premium not financed'
}
]
},
{
defaults: {
xtype: 'textfield',
padding: 5,
align: 'center'
},
layout: {
type: 'hbox'
},
items: [
{
allowBlank: true,
minLength: 3,
maxLength: 25,
labelWidth: 120,
msgTarget: 'side',
enableKeyEvents: true,
fieldLabel: 'Total Invoice Price',
name: 'totalinvoiceprice',
width: 400
},
{
allowBlank: false,
minLength: 3,
maxLength: 25,
labelWidth: 120,
msgTarget: 'side',
enableKeyEvents: true,
fieldLabel: 'Total Commission',
name: 'totalcommission',
width: 400
}
]
}
]
});