selModel: {
//键盘导航, false则键盘操作无效
enableKeyNav: true,
//选择模式 SINGLE, SIMPLE, 和 MULTI
mode: 'MULTI',
//点击checkBox框选中
checkOnly: false,
//在表头显示全选checkBox框
showHeaderCheckBox: true,
//复选框选择模式Ext.selection.CheckBoxModel
selType: 'checkBoxmodel',
allowdeselect: true
},
{
text: bizI18n_hr.hrProdAccidentItem.effectUnit,
width: 110,
align: 'center',
dataIndex: 'effectUnit',
editor: {
xtype: 'comboSearchUtil',
table: '(select * from sadp_md_common_types t where t.type_id<>\'HR_EFFECT_UNIT\' start with t.type_id=\'HR_EFFECT_UNIT\' connect by prior t.sid = t.parent_sid) sadp_md_common_types',
tableKey: 'type_id',
tableValue: 'type_name',
orderField: 'type_seq',
filterName: 'type_id',
emptyText: translations.pleaseInput,
msgTarget: 'under',
listeners: {
change: function (combo, nV, oV) {
combo.up('grid').getSelectionModel().getSelection()[0].set("accidentCode", "");
}
}
}
},
{
text: bizI18n_hr.hrProdAccidentItem.accidentCode,
width: 120,
align: 'center',
dataIndex: 'accidentCode',
editor: {
xtype: 'comboSearchUtil',
table: '(select * from sadp_md_common_types t where t.type_id<>\'HR_ACCIDENT_CODE\' start with t.type_id=\'HR_ACCIDENT_CODE\' connect by prior t.sid = t.parent_sid) sadp_md_common_types',
tableKey: 'type_id',
tableValue: 'type_name',
orderField: 'type_seq',
filterName: 'type_desc',
emptyText: translations.pleaseInput,
msgTarget: 'under',
listeners: {
focus: function (combo) {
var effectUnit = combo.up('grid').getSelectionModel().getSelection()[0].data.effectUnit;
var store = combo.getStore();
var params = store.proxy.extraParams;
params['qm.filterValue'] = effectUnit;
store.load();
}
}
},
renderer:function (v) {
return getCommonTypeItemName('HR_ACCIDENT_CODE',v);
}
},
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。