793396dc873832a46a4c314d3d10346d5bcb458d.svn-base 19 KB

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