8f06521bcbc14561c0a7fec166f2fd2a8906e56c.svn-base 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. var fileID;
  2. function init(fd_id,OBJ_FIRST,EDITTIME){
  3. fileID=fd_id;
  4. var condition="";
  5. if(OBJ_FIRST=="0"){
  6. condition = "FD_OBJECTID = '"+fd_id+"' ";
  7. }else{
  8. condition = " UPDATEDATE <= '"+EDITTIME+"' and ((COLUMN_1='0' AND FD_OBJECTID='"+ OBJ_FIRST+"') OR (COLUMN_1='"+ OBJ_FIRST+"')) ";
  9. }
  10. var loadParams = {
  11. "listId" : '231',
  12. "condition" : condition,
  13. direction:'DESC',
  14. sort: 'UPDATEDATE'
  15. };
  16. var roleCons = roleButtonArr();
  17. /** grid载入数据* */
  18. var toolBarOpt1 = {
  19. items : [
  20. // {text : '下载',click:"onDownLoad",iconClass: 'download_tem',id:"10007" }
  21. ],
  22. roleCons:roleCons
  23. };
  24. var grid_option1={
  25. columns : [
  26. {display : '文件标题',name : 'FILE_TITLE_231', align : 'center',width : '15%',isPrimaryKey:true,
  27. render : function(rowdata, value) {
  28. return '<a href="javascript:void(0)" '
  29. + 'onclick=jumpPage("'
  30. + rowdata.FD_OBJECTID231
  31. +'")>'+ rowdata.FILE_TITLE_231 +'</a>';
  32. }
  33. },
  34. {display : '发布单位',name : 'PUBLISH_COMP_ID_231_SHOW', align : 'center',width : '15%'},
  35. {display : '文件分类',name : 'FILE_CLASSIFY_231_SHOW', align : 'center',width : '10%'},
  36. {display : '发文日期',name : 'FILE_ADD_DATE_231', align : 'center',width : '10%'},
  37. {display : '归档人',name : 'PIGEONHOLE_MAN_ID_231_SHOW', align : 'center',width : '10%'},
  38. {display : '归档日期',name : 'PIGEONHOLE_DATE_231', align : 'center',width : '10%'},
  39. {display : '保密等级',name : 'COLUMN_2_231_SHOW', align : 'center',width : '10%'},
  40. {display : '变更类型',name : 'CHANGE_TYPE_231_SHOW', align : 'center',width : '10%'},
  41. {display : '文件版本',name : 'VERSION_ID_231', align : 'center',width : '10%'}
  42. ],
  43. detail: {
  44. //onShowDetail: showFlow,
  45. height: 'auto'
  46. },
  47. pageSize : 10,
  48. rownumbers : true,
  49. checkbox : true,
  50. percentWidthMode : true
  51. };
  52. var options1={
  53. url :'/nwyj/ws/crud/CRUDService/queryQui',
  54. params:loadParams,
  55. width:960,
  56. gridOptions:grid_option1,
  57. singleRecodeOptions:{a:"aa"},
  58. paperOpration:{showInput:"true"},
  59. toolBarOptions:toolBarOpt1
  60. };
  61. g=gridAndSingleRecode=$("#gridtable").quickgridAndSingleRecode(options1);
  62. }
  63. //单击跳转
  64. function jumpPage(fd_id){
  65. if(fileID==fd_id){
  66. top.Dialog.alert("您选择的是本条记录");
  67. return;
  68. }
  69. $('#frmright', window.parent.document).attr('src',$.pathname()+ "/page/business/am/PPSFile/FileEMInfo1.jsp?"+fd_id);
  70. }