日期:2014-05-16 浏览次数:21044 次
<script language="javascript">
$(function() {
$('#pxxm').datagrid({
title:'请填写培训项目',
iconCls: 'icon-edit',
singleSelect: true,
idField:'id',
//fit:true,
toolbar: '#tb',
onClickRow: onClickRow,
fitColumns:true,
columns:[[ {field:'id',width:50,title:'id',hidden:true}, {field:'pxlb',width:80,align:'centre',formatter:function(value,row){
return row.productname;
},
editor:{
type:'combobox',
options:{ valueField:'peixunid', textField:'peixunleibie', url:'peixunleibie.asp', required:true
}
},title:'培训类别'},
{field:'ksrq',width:80,align:'centre',editor:{type:'datebox'},title:'开始日期'},
{field:'jsrq',width:80,align:'centre',editor:{type:'datebox'},title:'结束日期'},
{field:'pxkm',width:250,align:'centre',editor:'text',title:'培训科目'},
{field:'pxks',width:80,align:'centre',editor:'numberbox',title:'培训课时'},
{field:'skls',width:80,align:'centre',editor:'text',title:'授课老师'},
{field:'pxcj',width:80,align:'centre',editor:'numberbox',title:'培训成绩'},
{field:'zsmc',width:80,align:'centre',editor:'text',title:'证书名称'},
{field:'fzrq',width:80,align:'centre',editor:'datebox',title:'发证日期'},
{field:'bzhu',width:100,align:'centre',editor:'text',title:'备注'}
]]
});
append();
});
</script>