8da07d4ccf46e4c3c8ce649660e086a81c155c14.svn-base 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. $(function(){
  2. var url = $.pathname() + '/ws/scoreGrade/ScoreService/getOuterStatisticsScore';
  3. var params = {
  4. eventId : fd_id,
  5. sysId : sys_id
  6. };
  7. $.request.query(url,params,function(data){
  8. console.log(data);
  9. //console.log(JSON.stringify(data.projectResult[0]));
  10. $(".titleShow").html(data.projectResult[0].NAME+"得分情况");
  11. var grid = $("#dataBasic").quiGrid({
  12. columns:[
  13. { display: '序号', name: 'OBJ_STRIPE',align: 'center', width: "5%"},
  14. { display: '建设项目', name: 'NAME', align: 'center', width: "8%",isSort:false},
  15. { display: '标准分', name: 'STA_SCORE', align: 'center', width: "4%",isSort:false},
  16. { display: '建设内容', name: 'SUGGESTION',align: 'left', width:"27%",isSort:false} ,
  17. { display: '评估方法', name: 'CHECK_INSTRUCTION',align: 'left', width:"8%",isSort:false} ,
  18. { display: '评估标准', name: 'standards',align: 'left', width:"20%",isSort:false,render:renderStandards} ,
  19. { display: '主要问题', name: 'questions',align: 'left', width:"12%",isSort:false,render:renderQuestions} ,
  20. { display: '修改建议', name: 'suggestions',align: 'left', width:"12%",isSort:false,render:renderSuggestions} ,
  21. { display: '实得分', name: 'SCORE',align: 'center', width:"4%",render:renderScore}
  22. ],
  23. /*usePager:false,
  24. pageSize :5,
  25. percentWidthMode : true,
  26. height: 'auto',
  27. width:"100%",
  28. minColumnWidth:60,
  29. headerRowHeight:45,
  30. minRowHeight:38,
  31. rowHeight:"auto",
  32. headFixMode:true,*/
  33. usePager:false,
  34. pageSize: 5,
  35. fixedCellHeight:false,
  36. percentWidthMode : true,
  37. showPageSize:false,
  38. minColumnWidth:60,
  39. rownumbers:false,
  40. checkbox:false,
  41. height: 'auto',
  42. width:"100%",
  43. isScroll:true,
  44. headerRowHeight:50,
  45. data:{rows:data.rowsResult}
  46. //onLoaded:setPageHeight
  47. });
  48. setPageHeight();
  49. });
  50. $('.go_img').hover(function(){
  51. $('.go_img img').attr('src','/nwyj/images/temp/back_hover.png');
  52. },function(){
  53. $('.go_img img').attr('src','/nwyj/images/temp/back.png');
  54. });
  55. });
  56. function renderStandards(rowdata, rowindex, value, column){
  57. value = value || "";
  58. var valueArr = value.split("|standards|");
  59. var result = "";
  60. for(var i=0;i<valueArr.length;i++){
  61. if(valueArr[i]!=null && valueArr[i]!="") result += (i+1)+") ";
  62. result += valueArr[i]+"<br/>";
  63. };
  64. return result;
  65. }
  66. function renderQuestions(rowdata, rowindex, value, column){
  67. value = value || "";
  68. var valueArr = value.split("|questions|");
  69. var result = "";
  70. for(var i=0;i<valueArr.length;i++){
  71. if(valueArr[i]!=null && valueArr[i]!="") result += (i+1)+") ";
  72. result += valueArr[i]+"<br/>";
  73. };
  74. return result;
  75. }
  76. function renderSuggestions(rowdata, rowindex, value, column){
  77. value = value || "";
  78. var valueArr = value.split("|suggestions|");
  79. var result = "";
  80. for(var i=0;i<valueArr.length;i++){
  81. if(valueArr[i]!=null && valueArr[i]!="") result += (i+1)+") ";
  82. result += valueArr[i]+"<br/>";
  83. };
  84. return result;
  85. }
  86. function renderScore(rowdata, rowindex, value, column){
  87. /*console.log(rowdata);
  88. console.log(value);*/
  89. var result = value || "";
  90. if(".".indexOf(value)<0){
  91. result = parseInt(value);
  92. }
  93. //console.log(result);
  94. return result.toString();
  95. }
  96. function setPageHeight(){
  97. $(parent.document.body).find("#frmright").css("height",$(window.document.body).height()+30);
  98. }
  99. function goback(){
  100. top.$.removeFrameTabs();
  101. top.$.indexOpenSelfWindow($.pathname()+"/page/business/em/evaluate/grade/Grade.jsp");
  102. };