76750c71dc2895ffbbde6279ffcbdc2fff8d682f.svn-base 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. //单位ID
  2. var dpids = top.com.sinosoft.lz.system.user.LoginInfo.getDeptids();
  3. //取得用户真实姓名
  4. var realname = top.com.sinosoft.lz.system.user.LoginInfo.getReal_name();
  5. //获取用户的Id
  6. var userId = top.com.sinosoft.lz.system.user.LoginInfo.getUser_id();
  7. //登陆用户的单位名称
  8. var corp_name = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_names();
  9. //父部门id
  10. var parentId = top.com.sinosoft.lz.system.user.LoginInfo.getParent_ids();
  11. //登录人ID
  12. var getUser_id = top.com.sinosoft.lz.system.user.LoginInfo.getUser_id()+"";
  13. var obj_old = '';
  14. $(function(){
  15. var url = $.pathname() + '/ws/crud/CRUDService/getDataById/';
  16. var params = {
  17. classid : '240',
  18. objectID : fd_id
  19. };
  20. $.ajax({url : url,type : 'post',timeout : 60000,data : params,dataType : 'json',async: false,
  21. success : function(data){
  22. //alert(data.OBJ_FIRST_240);
  23. var obj = data.OBJ_FIRST_240;
  24. if(obj==0){
  25. obj_old = data.FD_OBJECTID240;
  26. }else{
  27. obj_old = obj;
  28. }
  29. init1();
  30. }});
  31. });
  32. var g;
  33. var deptId = top.com.sinosoft.lz.system.user.LoginInfo.getDeptids();
  34. //初始化列表
  35. function init1(){
  36. var condition = " FD_OBJECTID='"+obj_old+"' or OBJ_FIRST='"+obj_old+"' ";
  37. // var condition = "is_del = '0'";
  38. var loadParams = {"listId" : '240',"condition" : condition,direction:'DESC',sort: 'UPDATEDATE'};
  39. //双视图不支持getRow()取行号的方法。
  40. /**
  41. * 工具条
  42. */
  43. var roleCons = roleButtonArr();
  44. var toolBarOpt1 = {};
  45. /**
  46. * 树形列
  47. */
  48. var grid_option1 = {
  49. columns: [
  50. {display : '发布单位',name : 'DISPATCH_UNIT_240', align : 'center',width : '15%',isPrimaryKey:true/*,
  51. render : function(rowdata, value) {
  52. return '<a href="javascript:void(0)" '
  53. + 'onclick=jumpPage("'
  54. + rowdata.FD_OBJECTID230
  55. +'")>'+ rowdata.FILE_TITLE_230 +'</a>';
  56. }*/
  57. },
  58. {display : '公文名称', name : 'DOCUMENT_NAME_240', align : 'center', width : '10%'},
  59. {display : '发文字号', name : 'DISPATCH_WORD_SIZE_240', align : 'center', width : '8%'},
  60. {display : '状态', name : 'STATE_240_SHOW', align : 'center', width : '8%'},
  61. {display : '保密级别', name : 'SECRECY_LEVEL_240_SHOW', align : 'center', width : '8%'},
  62. {display : '录入人', name : 'TYPEIN_PEOPLE_240', align : 'center', width : '8%'},
  63. {display : '录入人联系方式', name : 'TYPEIN_PEOPLE_PHONE_NUM_240', align : 'center', width : '10%'},
  64. {display : '录入时间', name : 'TYPEIN_TIME_240', align : 'center', width : '10%'},
  65. {display : '单位', name : 'UNITE_240_SHOW', align : 'center', width : '8%'},
  66. {display : '部门', name : 'DEPT_240_SHOW', align : 'center', width : '8%'}
  67. ],
  68. rownumbers : true,
  69. checkbox : true,
  70. width:"100%",
  71. pageSize : 10,
  72. percentWidthMode : true
  73. };
  74. var options1={
  75. url :'/nwyj/ws/crud/CRUDService/queryQui',
  76. params:loadParams,
  77. gridOptions:grid_option1,
  78. singleRecodeOptions:{a:"aa"},
  79. paperOpration:{showInput:"true"}/*,
  80. toolBarOptions:toolBarOpt1*/
  81. };
  82. g=gridAndSingleRecode=$("#historyMsg").quickgridAndSingleRecode(options1);
  83. }
  84. $.messager=top.Dialog;