复制代码代码如下所示:
功能showtestsubjectgrid(){
$(# testsubjectgrid)。JqGrid({
网址:
Datatype:JSON
身高:215,
宽度:480,
描述:测试主题
Autoheight:真的,
Autowidth:真的,
scrollrows:假, / /是否
显示滚动条的线
多选:真的, / /是否显示一个复选框
Hidegrid:假 / /
取消网格收缩
发布资料:{
StrJson:testsubjectdata
},
ColNames:{、考试科目,开始时间、结束时间,比赛},
colmodel:{
{
名称:数据,
指数:数据,
隐藏:真
{ }。
名称:'display_content,
Index:'display_content',
宽度:100,
可
编辑的:真的,
右对齐:
{ }。
名称:'exam_starttime,
指数:'exam_starttime,
宽度:110,
可编辑的:真的,
对齐:'center
{ }。
名称:'exam_endtime,
指数:'exam_endtime,
宽度:110,
可编辑的:真的,
对齐:'center
{ }。
名称:'exam_turn,
指数:'exam_turn,
宽度:110,
可编辑的:真的,
对齐:'center
} },
JsonReader:{
根:行
repeatitems:假,
身份证:数据
},
功能gridcomplete:(){
无功testids = $(# testsubjectgrid)。JqGrid(getdataids );
对于(var i = 0;i < testids.length;i++){
var CID = testids {我};
无功exam_begintime = ;
无功exam_endtime = ;
无功exam_turn = ;
jQuery(# testsubjectgrid)。JqGrid('setrowdata,CID,{ exam_starttime:exam_begintime });
jQuery(# testsubjectgrid)。JqGrid('setrowdata,CID,{ exam_endtime:exam_endtime });
jQuery(# testsubjectgrid)。JqGrid('setrowdata,CID,{ exam_turn:exam_turn });
$(# exam_begintime_ + testids {我}({ Datepicker)。
译文:按钮,
选择按钮上显示的
文本:
});
$(# exam_endtime_ + testids {我}({ Datepicker)。
译文:按钮,
选择按钮上显示的文本:
});
}
}
});
};