9757e5f97a04700c391475a62f3ea8040fd23a3e.svn-base 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. $(function(){
  2. var gridData={
  3. "rows":[
  4. {"number":"1",
  5. "project":"2",
  6. "assess":"3",
  7. "suit":"4",
  8. "unsuit":"5",
  9. "deduct":"6",
  10. "suit_rate":"7",
  11. "ques_num":"8",
  12. "key_ques_num":"9",
  13. "standard_score":"10",
  14. "deserve_score":"11",
  15. "real_score":"12",
  16. "score_rate":"13",
  17. }
  18. ]};
  19. grid = $("#dataBasic").quiGrid({
  20. columns:[
  21. { display: '序号', name: 'number',align: 'center', width: "7%"},
  22. { display: '项目', name: 'project', align: 'center', width: "17%"},
  23. { display: '评价项', name: 'assess', align: 'center', width: "7%"},
  24. { display: '适用项', name: 'suit',align: 'center', width:"7%"} ,
  25. { display: '不适用项', name: 'unsuit',align: 'center', width:"7%"} ,
  26. { display: '扣分项', name: 'deduct',align: 'center', width:"7%"} ,
  27. { display: '占适用项比%', name: 'suit_rate',align: 'center', width:"7%"} ,
  28. { display: '发现问题条数', name: 'ques_num',align: 'center', width:"7%"} ,
  29. { display: '重点问题数', name: 'key_ques_num',align: 'center', width:"7%"},
  30. { display: '标准分', name: 'standard_score',align: 'center', width:"7%"},
  31. { display: '应得分', name: 'deserve_score',align: 'center', width:"7%"},
  32. { display: '实得分', name: 'real_score',align: 'center', width:"7%"},
  33. { display: '得分率', name: 'score_rate',align: 'center', width:"7%"},
  34. ],
  35. usePager:true,
  36. pageSize : 10,
  37. percentWidthMode : true,
  38. height: 'auto',
  39. width:"99%",
  40. headerRowHeight:45,
  41. minRowHeight:40,
  42. rowHeight:"auto",
  43. headFixMode:true,
  44. data:gridData,
  45. });
  46. setPageHeight();
  47. $('.go_img').hover(function(){
  48. $('.go_img img').attr('src','/nwyj/images/temp/back_hover.png');
  49. },function(){
  50. $('.go_img img').attr('src','/nwyj/images/temp/back.png');
  51. });
  52. });
  53. function goback(){
  54. top.$.removeFrameTabs();
  55. top.$.indexOpenSelfWindow($.pathname()+"/page/business/em/evaluate/grade/Grade.jsp");
  56. };
  57. function setPageHeight(){
  58. $(parent.document.body).find("#frmright").css("height",$(window.document.body).height()+30);
  59. }