4637462df8c25f5c3d4017273701a35b7e9ca4d0.svn-base 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599
  1. //父部门id
  2. var firstdiag;
  3. var parentId = top.com.sinosoft.lz.system.user.LoginInfo.getParent_ids();
  4. var userId = top.com.sinosoft.lz.system.user.LoginInfo.getUser_id();
  5. var realName = top.com.sinosoft.lz.system.user.LoginInfo.getReal_name();
  6. var corp_ids = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
  7. //getCorp_ids
  8. var deptUrl = $.pathname() + '/ws/dept/DeptService/getDepartTree';
  9. loadParams=null;
  10. $("#searchButt").bind("click",function(){
  11. searchHandler();
  12. });
  13. $("#searchButt").live('click', function() {
  14. searchHandler();
  15. });
  16. //列表加载参数
  17. var statusDate={"list":[{"value":"0","key":"未上报"},{"value":"1","key":"已上报"}]};
  18. var releaseDate={"list":[{"value":"0","key":"未发布"},{"value":"1","key":"已发布"}]};
  19. //当前时间
  20. function getNowFormatDate() {
  21. var date = allGetServerTime();
  22. var seperator1 = "-";
  23. var seperator2 = ":";
  24. var year = date.getFullYear();
  25. var month = date.getMonth() + 1;
  26. var strDate = date.getDate();
  27. var hour=date.getHours();
  28. var minu=date.getMinutes();
  29. var sec=date.getSeconds();
  30. if (month >= 1 && month <= 9) {
  31. month = "0" + month;
  32. }
  33. if (strDate >= 0 && strDate <= 9) {
  34. strDate = "0" + strDate;
  35. }
  36. if(hour>=0 && hour<=9){
  37. hour="0"+hour;
  38. }
  39. if(minu>=0 && minu<=9){
  40. minu="0"+minu;
  41. }
  42. if(sec>=0 && sec<=9){
  43. sec="0"+sec;
  44. }
  45. var currentdate = year + seperator1 + month + seperator1 + strDate
  46. + " " + hour + seperator2 + minu;
  47. return currentdate;
  48. }
  49. var currdate = getNowFormatDate();
  50. var g;
  51. var grid_option={ columns:[
  52. {name:'FD_OBJECTID235',hide:true,},
  53. {display:'名称',name:'NAME_235',align:'left',width:"20%",isPrimaryKey:true,
  54. render : function(rowdata, rowindex, value, column) {
  55. return "<a href='javascript:;' style='width:100%;height:100%;display:block' title='" + value + "' onclick='openDetail(" + rowindex + ")'>" + value + "</a>";
  56. }
  57. },
  58. {display:'单位',name:'OPER_DEPT_235_SHOW',align:'center',width:"16%",showTitle:true},
  59. {display:'填报部门',name:'DEPT_NAMES_235_SHOW',align:'center',width:"16%",showTitle:true},
  60. {display:'填报人员',name:'OPER_NAME_235',align:'center',width:"16%",showTitle:true},
  61. {display:'填报时间',name:'OPER_TIME_235',align:'center',width:"16%",showTitle:true},
  62. /* {display:'上报状态',name:'STATE_235',align:'center',width:"13%", editor: { type: 'select',data:statusDate,selWidth:103 },render:function (item){
  63. for (var i = 0; i < statusDate["list"].length; i++)
  64. {
  65. if (statusDate["list"][i]['value'] == item.STATE_235)
  66. return statusDate["list"][i]['key'];
  67. }
  68. return item.duty_way;
  69. }},*/
  70. {display:'发布状态',name:'RELEASE_235_SHOW',align:'center',width:"16%",showTitle:true}
  71. ],
  72. rownumbers:true,
  73. checkbox:true,
  74. usePager:true,
  75. pageSize : 10,
  76. percentWidthMode : true
  77. };
  78. loadParams={
  79. listId:'235',
  80. direction:'DESC',
  81. sort: 'UPDATEDATE',
  82. //condition:"IS_DEL= '0' and DUTY_TYPE= '1' and (RELEASE= '1' or(RELEASE= '0' and OPER_NAME_ID='"+userId+"'))",
  83. //condition:"IS_DEL=0 and DUTY_TYPE=1 and (RELEASE=1 or (RELEASE=0 and OPER_NAME_ID='"+userId+"' and OPER_DEPT='"+ parentId +"'))",
  84. condition:"IS_DEL=0 and DUTY_TYPE=1 and ((RELEASE=1 and (OPER_DEPT='"+ corp_ids +"' or OPER_DEPT in (select dept_id from SYS_DEPARTMENT where parent_id ='"+corp_ids+"') )) or (RELEASE=0 and OPER_NAME_ID='"+userId+"'))",
  85. };
  86. //点击主键跳转详细信息页面
  87. var roleCons = roleButtonArr();
  88. var toolBarOpt={
  89. items: [
  90. {text : '新增',click : 'onAdd',iconClass : 'add1_tem' ,id:"yjxz"},
  91. {text : '删除',click : 'onDelete',iconClass : 'delete_tem',id:"yjsc"},
  92. {text : '修改',click : 'onEdit',iconClass : 'update_tem',id:"yjxg"},
  93. {text : '撤回',click : 'onRecall',iconClass : 'retract_tem',id:"10105"},
  94. {text : '发布',click : 'onPublish',iconClass : 'release_tem',id:"yjfb"},
  95. {text : '导出',click : 'onExport',iconClass : 'export_tem',id:"10006"}],
  96. roleCons:roleCons
  97. };
  98. var options={
  99. url :'/nwyj/ws/crud/CRUDService/queryQui',
  100. params: loadParams,
  101. width:960,
  102. gridOptions:grid_option,
  103. singleRecodeOptions:{a:"aa"},
  104. paperOpration:{showInput:"true"},
  105. toolBarOptions:toolBarOpt
  106. };
  107. /*****************************************初始化实例 加载实例*********************************************************/
  108. $(function(){
  109. $("#NAME_235").keydown(function(event){
  110. if(event.keyCode == 13){
  111. searchHandler();
  112. }
  113. });
  114. //gridAndSingleRecode.rendPaper();
  115. //详细列表时,点击内容弹出窗口查看里面所有的内容,用于内容比较多时点击复制其中的内容
  116. // $("#singleRecode_id ul").find("a").live("click",openthis);
  117. $.post(deptUrl,{id:parentId,name:''},function(data){
  118. $("#DEPT_NAMES_235").data("data",data);
  119. $("#DEPT_NAMES_235").render();
  120. $("#OPER_DEPT_235").data("data",data);
  121. $("#OPER_DEPT_235").render();
  122. }, "json");
  123. g=gridAndSingleRecode=$("#content").quickgridAndSingleRecode(options);
  124. g.rend();
  125. var _this = this;
  126. });
  127. function openDetail(rowindex) {
  128. var row = g.getRow(rowindex);
  129. var fd_id = row.FD_OBJECTID235;
  130. // $('#frmright', window.parent.document).attr('src',$.pathname()+'/page/business/am/duty/DutyInfo.jsp?'+fd_id);
  131. $.indexOpenNextWindow("/nwyj/page/business/am/duty/DutyInfo.jsp?"+fd_id);
  132. }
  133. function more(){
  134. $('#moreDiv').toggle(200,function(){
  135. checkAndSetHeight($("._content_box").parent());
  136. if($("#hztitle")){
  137. checkAndSetHeight($("#hztitle"));
  138. }
  139. });
  140. var is_show = $('#moreDiv').css("display");
  141. if(is_show == "none"){
  142. document.getElementById("queryUserForm").reset(); //重置一下表单
  143. }else{
  144. $("#DEPT_NAMES_235").render();
  145. $("#OPER_DEPT_235").render();
  146. $("#STATE_235").render();
  147. $("#RELEASE_235").render();
  148. }
  149. }
  150. function getNameTel(data,table_name){
  151. $.ajax({
  152. url : $.pathname() + '/ws/bgd_duty/BgdDutyService/getNameTel1/',
  153. type : 'post',
  154. data : data,
  155. timeout : 15000,
  156. async:false,
  157. dataType : 'json',
  158. success : function(result){
  159. var receiver = ""; //接收人员 + 领导
  160. var telephine = "";
  161. var arr = result.rows;
  162. var names = "";
  163. var tels = "";
  164. for(var i=0;i<arr.length;i++){
  165. //alert(arr[i].LEADER_NAME);
  166. //值班成员
  167. var name1 = arr[i].LEADER_NAME;
  168. var tel1 = arr[i].LEADER_TEL;
  169. var name2 = arr[i].ADMINISTRATION_DUTY;
  170. var tel2 = arr[i].ADMINISTRATION_DUTY_TEL;
  171. var name3 = arr[i].EVERYDAY_DUTY;
  172. var tel3 = arr[i].EVERYDAY_DUTY_TEL;
  173. if(telephine.indexOf(tel1, "0")==-1){
  174. telephine +=tel1+";";
  175. receiver+=name1+";";
  176. }
  177. if(telephine.indexOf(tel2, "0")==-1){
  178. telephine +=tel2+";";
  179. receiver+=name2+";";
  180. }
  181. // alert(telephine+"======"+receiver);
  182. // if(name1==name2){
  183. // names=name1;
  184. // tels = tel1
  185. // }else{
  186. // names=name1+name2;
  187. // tels = tel1+","+tel2
  188. // }
  189. // //names = name1+","+name2+","+name3;
  190. // //tels = tel1+","+tel2+","+tel3;
  191. // receiver+=names+";";
  192. // telephine +=tels+";";
  193. /*//值班领导
  194. receiver+=arr[i].LEADER_NAME;
  195. //领导电话
  196. telephine+=arr[i].LEADER_TEL+";";*/
  197. };
  198. // alert(receiver+"======="+telephine);
  199. addMsg(receiver,telephine,"日常值班“"+table_name+"”中有您的值班信息,请及时查看,并按时值班!");
  200. },
  201. error : function(e){
  202. $.messager.alert('系统提示信息', '访问服务失败!', 'error');
  203. }
  204. });
  205. }
  206. //发布
  207. function onPublish(){
  208. var rows=g.getSelectedRows();
  209. var rowsLength=rows.length;
  210. if(rowsLength==0 || rowsLength==0){
  211. top.Dialog.alert("请选中一条要发布的记录!");
  212. return;
  213. }
  214. var ids="";
  215. for(var i=0;i<rowsLength;i++){
  216. ids+=rows[i].FD_OBJECTID235+",";
  217. if(rows[i].RELEASE_235==1){
  218. top.Dialog.alert("存在已发布的记录,请检查后再操作!");
  219. return;
  220. }
  221. }
  222. top.Dialog.confirm("确定要发布吗?|发布", function() {
  223. $.post($.pathname() + '/ws/duty1/DutyRecordsService1/updateStat', {
  224. "objectIDs" : ids,
  225. "svalue":"0",
  226. "rvalue":"1",
  227. "time":currdate
  228. }, function(result) {
  229. if (result.Msg.sucsess == true) {
  230. // 刷新表格数据
  231. g.rend();
  232. top.Dialog.confirm("发布成功,是否发送短信通知?|提醒", function() {
  233. getNameTel(ids,rows[0].NAME_235);
  234. });
  235. } else {
  236. top.Dialog.alert("发布失败!");
  237. }
  238. }, "json");
  239. });
  240. }
  241. /**回退**/
  242. function onRollback() {
  243. // 取得选中的Grid行
  244. var rows=g.getSelectedRows();
  245. // 选中的行数
  246. var rowsLength=rows.length;
  247. if (rowsLength == 0) {
  248. top.Dialog.alert("请选中要撤回的记录!");
  249. return;
  250. } else if (rowsLength > 1) {
  251. top.Dialog.alert('请选中一条要撤回的记录!');
  252. return;
  253. } else if (rows[0].RELEASE_235 == 1) {
  254. var fd_id = rows[0].FD_OBJECTID235;
  255. $('#frmright', window.parent.document).attr('src',$.pathname()+ '/page/business/em/alert/duty/resp_rollback.jsp?'+fd_id);
  256. } else {
  257. top.Dialog.alert('未上报不可回退!');
  258. return;
  259. }
  260. };
  261. //打印
  262. function onPrint(){
  263. }
  264. //填报
  265. function onAdd(){
  266. // window.location.href="/nwyj/page/business/am/duty/DutyAdd.jsp";
  267. $('#frmright', window.parent.document).attr("src","/nwyj/page/business/am/duty/DutyAdd.jsp");
  268. //$(top.document.body).find("iframe").attr("src","/nwyj/page/business/am/duty/DutyAdd.jsp");
  269. }
  270. //查看
  271. function onView(){
  272. //$.pathname() + '/page/business/em/response/duty/resp_duty_info.jsp?'+fd_id;
  273. var rows=g.getSelectedRows();
  274. var rowsLength=rows.length;
  275. if(rowsLength==0){
  276. top.Dialog.alert("请选择一条记录!");
  277. return;
  278. }
  279. if(rowsLength>1){
  280. top.Dialog.alert("只能选择一条记录!");
  281. return;
  282. }
  283. var fd_id=rows[0].FD_OBJECTID235;
  284. window.location.href="/nwyj/page/business/am/duty/DutyInfo.jsp?"+fd_id;
  285. // window.location.href=$.pathname() + '/page/business/em/response/duty/resp_duty_info.jsp?'+fd_id;
  286. }
  287. //删除
  288. function onDelete(){
  289. var rows = g.getSelectedRows();
  290. var rowsLength = rows.length;
  291. if (rowsLength == 0) {
  292. top.Dialog.alert("请选中要删除的记录!");
  293. return;
  294. }
  295. if(rows[0].OPER_NAME_235 != realName){
  296. top.Dialog.alert("只可以删除本人填报的值班安排表!");
  297. return;
  298. }
  299. if(rows[0].RELEASE_235 =='1'){
  300. top.Dialog.alert("只可以删除未发布的值班安排表!");
  301. return;
  302. }
  303. var ids = "";
  304. for ( var i = 0; i < rowsLength; i++) {
  305. ids += rows[i].FD_OBJECTID235 + ",";
  306. /* if(rows[i].RELEASE_235==1){
  307. top.Dialog.alert("存在已发布的记录,不能删除!");
  308. return;
  309. }*/
  310. }
  311. var url =$.pathname() + '/ws/duty1/DutyRecordsService1/deDutyDetail';
  312. top.Dialog.confirm("确定要删除吗?|删除", function(){
  313. $.ajax({
  314. url : url,
  315. type : 'post',
  316. timeout : 15000,
  317. data : ids,
  318. dataType : 'json',
  319. success : function(data) {
  320. top.Dialog.alert('删除成功!',null,null,null,1);
  321. g.rend();
  322. },
  323. error : function() {
  324. $.messager.alert('删除失败!');
  325. }
  326. });
  327. });
  328. }
  329. //修改
  330. function onEdit(){
  331. $.pathname() + '/page/business/am/duty/DutyInfo.jsp?'+fd_id;
  332. var rows=g.getSelectedRows();
  333. var rowsLength=rows.length;
  334. if(rowsLength==0){
  335. top.Dialog.alert("请选择一条记录!");
  336. return;
  337. }
  338. if(rowsLength>1){
  339. top.Dialog.alert("只能选择一条记录!");
  340. return;
  341. }
  342. if(rows[0].OPER_NAME_235 != realName){
  343. top.Dialog.alert("只可以修改本人填报的值班安排表!");
  344. return;
  345. }
  346. if(rows[0].RELEASE_235 == 1){
  347. top.Dialog.alert("只可以修改未发布的值班安排表!");
  348. return;
  349. }
  350. var fd_id=rows[0].FD_OBJECTID235;
  351. // $(top.document.body).find("iframe").attr("src","/nwyj/page/business/am/duty/DutyEditor.jsp?objectId="+fd_id);
  352. // window.location.href="/nwyj/page/business/am/duty/DutyEditor.jsp?objectId="+fd_id;
  353. window.location.href="/nwyj/page/business/am/duty/DutyEditor.jsp?objectId="+fd_id;
  354. }
  355. //上报
  356. function onUpside(){
  357. var flag=false;
  358. var flag1=false;
  359. var rows=g.getSelectedRows();
  360. var rowsLength=rows.length;
  361. if(rowsLength==0){
  362. top.Dialog.alert("请选中要上报的记录!");
  363. return;
  364. }
  365. var ids="";
  366. for(var i=0;i<rowsLength;i++){
  367. if(rows[i].STATE_235==1){
  368. top.Dialog.alert("存在已上报的记录,请检查后再操作!!");
  369. return;
  370. }
  371. }
  372. for(var i=0;i<rowsLength;i++){
  373. ids+=rows[i].FD_OBJECTID235+",";
  374. if(rows[i].RELEASE_235==0){
  375. flag1=true;
  376. }
  377. }
  378. if(flag1)
  379. { top.Dialog.confirm("存在未发布的记录,确定要上报吗?|上报", function() {
  380. // 删除记录 url: $.pathname() + '/ws/duty/DutyRecordsService/queryDetailByDutyId',
  381. //$.pathname() +"/ws/crud/CRUDService/delete/"
  382. $.post($.pathname() + '/ws/duty/DutyRecordsService/updateStat', {
  383. //$.post($.pathname() + '/ws/crud/CRUDService/delete/', {
  384. "objectIDs" : ids,
  385. "svalue":"1",
  386. "rvalue":"1",
  387. "time":currdate
  388. }, function(result) {
  389. if (result.Msg.sucsess == true) {
  390. top.Dialog.alert("上报成功!");
  391. // 刷新表格数据
  392. g.rend();
  393. } else {
  394. top.Dialog.alert("上报失败!");
  395. }
  396. }, "json");
  397. },function(){
  398. return;
  399. });
  400. flag=true;
  401. }
  402. // alert(ids);
  403. if(!flag){
  404. top.Dialog.confirm("确定要上报吗?|上报", function() {
  405. // 删除记录 url: $.pathname() + '/ws/duty/DutyRecordsService/queryDetailByDutyId',
  406. //$.pathname() +"/ws/crud/CRUDService/delete/"
  407. $.post($.pathname() + '/ws/duty/DutyRecordsService/updateStat', {
  408. //$.post($.pathname() + '/ws/crud/CRUDService/delete/', {
  409. "objectIDs" : ids,
  410. "svalue":"1",
  411. "rvalue":"1",
  412. "time":currdate
  413. }, function(result) {
  414. if (result.Msg.sucsess == true) {
  415. top.Dialog.alert("上报成功!");
  416. // 刷新表格数据
  417. g.rend();
  418. } else {
  419. top.Dialog.alert("上报失败!");
  420. }
  421. }, "json");
  422. });
  423. }
  424. }
  425. //撤回
  426. function onRecall(){
  427. var rows=g.getSelectedRows();
  428. var rowsLength=rows.length;
  429. if(rowsLength==0){
  430. top.Dialog.alert("请选中要撤回的记录!");
  431. return;
  432. }
  433. var ids="";
  434. for(var i=0;i<rowsLength;i++){
  435. ids+=rows[i].FD_OBJECTID235+",";
  436. if(rows[i].RELEASE_235==0){
  437. top.Dialog.alert("存在未发布的记录,请检查后再操作!!");
  438. return;
  439. }
  440. if(rows[i].OPER_NAME_235!=realName){
  441. top.Dialog.alert("只能撤回本人发布的值班信息记录!!");
  442. return;
  443. }
  444. }
  445. // alert(ids);
  446. top.Dialog.confirm("确定要撤回吗?|撤回", function() {
  447. $.post($.pathname() + '/ws/duty1/DutyRecordsService1/updateStat', {
  448. "objectIDs" : ids,
  449. "svalue":"0",
  450. "rvalue":"0"
  451. }, function(result) {
  452. if (result.Msg.sucsess == true) {
  453. top.Dialog.alert("撤回成功!");;
  454. // 刷新表格数据
  455. g.rend();
  456. } else {
  457. top.Dialog.alert("撤回失败!");
  458. }
  459. }, "json");
  460. });
  461. }
  462. //导入
  463. function onImport(){
  464. var ifmHeight = $(parent.document.body).find("#frmright").height();
  465. firstdiag = new top.Dialog();
  466. firstdiag.Title = "导入日常值班表信息";
  467. firstdiag.Width=600;
  468. firstdiag.Height=250;
  469. firstdiag.URL = "/nwyj/page/business/am/duty/DutyImport.jsp?ifmHeight="+ifmHeight;
  470. firstdiag.ShowButtonRow=false;
  471. // diag.OKEvent = function(){
  472. // var inputValue = diag.innerFrame.contentWindow.document.getElementById('test').value;
  473. // var inputValue2 = diag.innerFrame.contentWindow.document.getElementById('fileData2').value;
  474. // top.Dialog.alert(inputValue);
  475. // top.Dialog.alert(inputValue2); //js中获取不到 file的路径, 此路径受保护
  476. //
  477. // diag.close();
  478. // };
  479. firstdiag.show();
  480. }
  481. function closediag(){
  482. firstdiag.close();
  483. }
  484. //导出
  485. function onExport(){
  486. var rows=g.getSelectedRows();
  487. var rowsLength=rows.length;
  488. if(rowsLength==0){
  489. top.Dialog.alert("请选择一条记录!");
  490. return;
  491. }
  492. if(rowsLength>1){
  493. top.Dialog.alert("只能选择一条记录!");
  494. return;
  495. }
  496. var fd_id=rows[0].FD_OBJECTID235;
  497. // alert(ids);
  498. top.Dialog.confirm("确定要导出吗?|导出", function() {
  499. $.ajax({
  500. url : $.pathname() + '/ws/duty1/DutyRecordsService1/exportAlertExcel',
  501. type : 'post',
  502. timeout : 15000,
  503. data : {objectID:fd_id},
  504. dataType : 'text',
  505. async:false,
  506. success : function(data){
  507. var url = $.pathname() +"/page/business/am/duty/DutyGetExcel.jsp?exportContent="
  508. + data + "&destFileName=" + encodeURI(encodeURI('日常值班表'));
  509. var w = window.open(url, "_blank");
  510. w.location.href = url;
  511. },
  512. error : function(e){
  513. top.Dialog.alert("导出Excel失败");
  514. }
  515. });
  516. });
  517. }
  518. //数据查询
  519. function searchHandler(obj){
  520. // $queryUserForm = null;
  521. $queryForm = $("#queryUserForm");
  522. //去掉水印
  523. if($("#NAME_235").val()!="" && $("#NAME_235").val()=="请输入名称"){
  524. $("#NAME_235").val("");
  525. }
  526. // $("#queryUserForm").serialize();
  527. $queryForm.serialize();
  528. var $comp_id = $("#selectConditions").find(".OPER_DEPT");
  529. var loadParams11;
  530. //判断是否有用单位做查询条件
  531. if(!!$comp_id.prop("outerHTML")){
  532. loadParams11 = {
  533. listId : '235',
  534. condition:"IS_DEL=0 and DUTY_TYPE=1 and ( RELEASE=1 or (RELEASE=0 and OPER_NAME_ID='"+userId+"'))",
  535. direction:'DESC',
  536. sort: 'UPDATEDATE'
  537. };
  538. }else{
  539. loadParams11 = $.extend({},loadParams,loadParams);
  540. }
  541. //获取选中的值
  542. var searchCondition = getSelectCon(conditionData);
  543. var queryParams = getQueryFormParams($queryForm);
  544. var params=$.extend({},loadParams11,queryParams);
  545. //与之前参数条件拼接
  546. params.condition = searchCondition.condition + params.condition;
  547. g.setOptions({"params":params});
  548. //加载数据
  549. g.rend();
  550. }
  551. function showPrimaryKey(obj,index){
  552. var fd_id = obj.FD_OBJECTID235;
  553. // $('#frmright', window.parent.document).attr('src',$.pathname()+'/page/business/am/duty/DutyInfo.jsp?'+fd_id);
  554. $.indexOpenNextWindow("/nwyj/page/business/am/duty/DutyInfo.jsp?"+fd_id);
  555. }