12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- var fileID;
- function init(fd_id,OBJ_FIRST,EDITTIME){
- fileID=fd_id;
- var condition="";
- if(OBJ_FIRST=="0"){
- condition = "FD_OBJECTID = '"+fd_id+"' ";
- }else{
- condition = " UPDATEDATE <= '"+EDITTIME+"' and ((COLUMN_1='0' AND FD_OBJECTID='"+ OBJ_FIRST+"') OR (COLUMN_1='"+ OBJ_FIRST+"')) ";
- }
- var loadParams = {
- "listId" : '231',
- "condition" : condition,
- direction:'DESC',
- sort: 'UPDATEDATE'
- };
-
- var roleCons = roleButtonArr();
- /** grid载入数据* */
- var toolBarOpt1 = {
- items : [
- // {text : '下载',click:"onDownLoad",iconClass: 'download_tem',id:"10007" }
- ],
- roleCons:roleCons
- };
-
- var grid_option1={
- columns : [
- {display : '文件标题',name : 'FILE_TITLE_231', align : 'center',width : '15%',isPrimaryKey:true,
- render : function(rowdata, value) {
- return '<a href="javascript:void(0)" '
- + 'onclick=jumpPage("'
- + rowdata.FD_OBJECTID231
- +'")>'+ rowdata.FILE_TITLE_231 +'</a>';
- }
- },
- {display : '发布单位',name : 'PUBLISH_COMP_ID_231_SHOW', align : 'center',width : '15%'},
- {display : '文件分类',name : 'FILE_CLASSIFY_231_SHOW', align : 'center',width : '10%'},
- {display : '发文日期',name : 'FILE_ADD_DATE_231', align : 'center',width : '10%'},
- {display : '归档人',name : 'PIGEONHOLE_MAN_ID_231_SHOW', align : 'center',width : '10%'},
- {display : '归档日期',name : 'PIGEONHOLE_DATE_231', align : 'center',width : '10%'},
- {display : '保密等级',name : 'COLUMN_2_231_SHOW', align : 'center',width : '10%'},
- {display : '变更类型',name : 'CHANGE_TYPE_231_SHOW', align : 'center',width : '10%'},
- {display : '文件版本',name : 'VERSION_ID_231', align : 'center',width : '10%'}
- ],
- detail: {
- //onShowDetail: showFlow,
- height: 'auto'
- },
- pageSize : 10,
- rownumbers : true,
- checkbox : true,
- percentWidthMode : true
- };
-
- var options1={
- url :'/nwyj/ws/crud/CRUDService/queryQui',
- params:loadParams,
- width:960,
- gridOptions:grid_option1,
- singleRecodeOptions:{a:"aa"},
- paperOpration:{showInput:"true"},
- toolBarOptions:toolBarOpt1
- };
-
- g=gridAndSingleRecode=$("#gridtable").quickgridAndSingleRecode(options1);
- }
- //单击跳转
- function jumpPage(fd_id){
- if(fileID==fd_id){
- top.Dialog.alert("您选择的是本条记录");
- return;
- }
- $('#frmright', window.parent.document).attr('src',$.pathname()+ "/page/business/am/PPSFile/FileEMInfo1.jsp?"+fd_id);
- }
|