12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- //单位ID
- var dpids = top.com.sinosoft.lz.system.user.LoginInfo.getDeptids();
- //取得用户真实姓名
- var realname = top.com.sinosoft.lz.system.user.LoginInfo.getReal_name();
- //获取用户的Id
- var userId = top.com.sinosoft.lz.system.user.LoginInfo.getUser_id();
- //登陆用户的单位名称
- var corp_name = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_names();
- //父部门id
- var parentId = top.com.sinosoft.lz.system.user.LoginInfo.getParent_ids();
- //登录人ID
- var getUser_id = top.com.sinosoft.lz.system.user.LoginInfo.getUser_id()+"";
- var obj_old = '';
- $(function(){
- var url = $.pathname() + '/ws/crud/CRUDService/getDataById/';
- var params = {
- classid : '240',
- objectID : fd_id
- };
-
- $.ajax({url : url,type : 'post',timeout : 60000,data : params,dataType : 'json',async: false,
- success : function(data){
- //alert(data.OBJ_FIRST_240);
- var obj = data.OBJ_FIRST_240;
- if(obj==0){
- obj_old = data.FD_OBJECTID240;
- }else{
- obj_old = obj;
- }
- init1();
- }});
- });
- var g;
- var deptId = top.com.sinosoft.lz.system.user.LoginInfo.getDeptids();
- //初始化列表
- function init1(){
- var condition = " FD_OBJECTID='"+obj_old+"' or OBJ_FIRST='"+obj_old+"' ";
- // var condition = "is_del = '0'";
- var loadParams = {"listId" : '240',"condition" : condition,direction:'DESC',sort: 'UPDATEDATE'};
- //双视图不支持getRow()取行号的方法。
- /**
- * 工具条
- */
- var roleCons = roleButtonArr();
- var toolBarOpt1 = {};
- /**
- * 树形列
- */
- var grid_option1 = {
- columns: [
- {display : '发布单位',name : 'DISPATCH_UNIT_240', align : 'center',width : '15%',isPrimaryKey:true/*,
- render : function(rowdata, value) {
- return '<a href="javascript:void(0)" '
- + 'onclick=jumpPage("'
- + rowdata.FD_OBJECTID230
- +'")>'+ rowdata.FILE_TITLE_230 +'</a>';
- }*/
- },
- {display : '公文名称', name : 'DOCUMENT_NAME_240', align : 'center', width : '10%'},
- {display : '发文字号', name : 'DISPATCH_WORD_SIZE_240', align : 'center', width : '8%'},
- {display : '状态', name : 'STATE_240_SHOW', align : 'center', width : '8%'},
- {display : '保密级别', name : 'SECRECY_LEVEL_240_SHOW', align : 'center', width : '8%'},
- {display : '录入人', name : 'TYPEIN_PEOPLE_240', align : 'center', width : '8%'},
- {display : '录入人联系方式', name : 'TYPEIN_PEOPLE_PHONE_NUM_240', align : 'center', width : '10%'},
- {display : '录入时间', name : 'TYPEIN_TIME_240', align : 'center', width : '10%'},
- {display : '单位', name : 'UNITE_240_SHOW', align : 'center', width : '8%'},
- {display : '部门', name : 'DEPT_240_SHOW', align : 'center', width : '8%'}
- ],
- rownumbers : true,
- checkbox : true,
- width:"100%",
- pageSize : 10,
- percentWidthMode : true
- };
- var options1={
- url :'/nwyj/ws/crud/CRUDService/queryQui',
- params:loadParams,
- gridOptions:grid_option1,
- singleRecodeOptions:{a:"aa"},
- paperOpration:{showInput:"true"}/*,
- toolBarOptions:toolBarOpt1*/
- };
- g=gridAndSingleRecode=$("#historyMsg").quickgridAndSingleRecode(options1);
- }
-
-
-
- $.messager=top.Dialog;
-
|