日期:2014-05-16 浏览次数:20287 次
//通用 国家(地区)代码
Ext.define("Ext.common.crehqcode", {
alias: 'widget.mycombo',
extend: 'Ext.form.field.ComboBox',
store: new Ext.store.Common.FogurecodeStore(),
labelAlign: 'right',
selectOnFocus: true, // 字段获取焦点时自动选择字段既有文本
triggerAction: 'all', // 触发器被激活时执行的动作,使用'all'来运行由allQuery属性指定的查询
loadingText: '加载中……',
queryMode: 'local',
//typeAhead: true,
value: 'CHN',
displayField: 'fogurecodeName',
valueField: 'fogurecodeId',
initComponent: function () {
var me = this;
me.id = me._id;
me.name = me._name;
if (!Ext.isEmpty(me._hidden)) {
me.hidden = me._hidden;
} else {
me.hidden = false;
}
if (me._allowBlank) {
me.fieldLabel = me._label;
me.allowBlank = me._allowBlank;
} else {
me.allowBlank = false;
me.fieldLabel = '<font color="red">*</font>' + me._label;
me.blankText = me._label + '不能为空!';
}
me.callParent(arguments);
}
});
//通用 国家(地区)代码
Ext.define("Ext.common.crehqcode", {
alias: 'widget.mycombo',
extend: 'Ext.form.field.ComboBox',
store: new Ext.store.Common.FogurecodeStore(),
labelAlign: 'right',
selectOnFo