listSubjectConfigDetail.jsp 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <%@ page language="java" contentType="text/html;charset=GBK" pageEncoding="GBK"%>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  3. <html>
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html;charset=GBK">
  6. <title>科目关联配置明细列表</title>
  7. <link href="${pageContext.request.contextPath}/main.css" rel="stylesheet" type="text/css" />
  8. <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  9. <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
  10. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/core/base.js" type="text/javascript"></script>
  11. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerGrid.js" type="text/javascript"></script>
  12. <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/plugins/ligerDialog.js" type="text/javascript"></script>
  13. <script type="text/javascript" src="/shares/js/constant.js"></script>
  14. <script type="text/javascript" src="/shares/js/common.js"></script>
  15. <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
  16. <script src="/shares/js/yw/fm/subject/fmSubjectConfigDetailTableVar.js"
  17. type="text/javascript"></script>
  18. <script type="text/javascript">
  19. var grid = null;
  20. $(function() {
  21. initTargetGrid();
  22. $(function (){
  23. var suc = "${requestScope.suc}";
  24. if(suc){
  25. // window.parent.initFinishMygrid3();
  26. var tabid = getCurrentTabId(); //刷新整个页面
  27. parent.window.location=tabid;
  28. window.parent.dialog.close();
  29. }
  30. });
  31. });
  32. function initTargetGrid(params) {
  33. var columns = [
  34. {
  35. display : '关联科目',
  36. name : 'subject_relat_name',
  37. width : 300
  38. }];
  39. columns
  40. .push({
  41. display : '操作',
  42. width : 120,
  43. isAllowHide : false,
  44. render : function(row) {
  45. var html = '<a href=\"#\" onclick=\"delSubjectConfigDetail('+ row.universalid + ')\">删除</a>&nbsp;';
  46. return html;
  47. }
  48. });
  49. grid = $("#maingrid4")
  50. .ligerGrid(
  51. {
  52. columns : columns,
  53. pageSize : 20,
  54. url : 'fmSubjectConfigAction.do?task=subjectConfigDetailList&subject_config_id=${subject_config_id}&time=' + new Date().getTime() + params,
  55. pageParmName : 'p', //页索引参数名,(提交给服务器)
  56. pagesizeParmName : 'pSize', //页记录数参数名,(提交给服务器)
  57. width : '99.9%',
  58. rownumbers : true,
  59. height : '99%'
  60. });
  61. $("#pageloading").hide();
  62. $(".l-grid-hd-cell-btn-checkbox").css("display", "none"); //隱藏checkAll
  63. }
  64. function f_select() {
  65. var rows = grid.getCheckedRows();
  66. return rows;
  67. }
  68. //删除讲师信息
  69. function delSubjectConfigDetail(universalid){
  70. // if (window.confirm("确定要删除讲师信息吗?")){
  71. // addTab('delTeacher' + getCurrentTabId(), '删除讲师信息', '${pageContext.request.contextPath }/hrTrainTeacherAction.do?task=delTeacher&universalid='
  72. // + universalid + '&tabid=' + getCurrentTabId(),true,true);
  73. // }
  74. $.ligerDialog.confirm('确定要删除科目配置信息吗?', function (yes)
  75. {
  76. if(yes){
  77. $.ajax({
  78. type:"POST",
  79. url:"fmSubjectConfigAction.do?task=delSubjectConfigDetail",
  80. data : {"universalid":universalid},
  81. timeout:10000,
  82. cache:false,
  83. dataType:"json",
  84. success:function(data){
  85. var success = data.success;
  86. if(success){
  87. $.ligerDialog.success(success);
  88. initTargetGrid();
  89. }else{
  90. showAjaxError(null, data.error);
  91. }
  92. },
  93. error:showAjaxError
  94. });
  95. }
  96. });
  97. }
  98. function CloseWin() {
  99. window.parent.dialog.close();
  100. }
  101. </script>
  102. </head>
  103. <body>
  104. <%@ include file="/include/message.jsp"%>
  105. <div class="container-layout">
  106. <div id="title" class="form-button">
  107. <input type="button" class="l-button" value="添加" id="outs_deptButton" name="outs_deptButton" onclick="f_choseDept();"/>
  108. <input type="button" value="关闭" class="l-button" onclick="CloseWin();" />
  109. <input type="hidden" name="subject_config_id" id="subject_config_id" value="${subject_config_id}" />
  110. </div>
  111. <div style="clear:both;"></div>
  112. <div id="searchbar">
  113. <div style="overflow: hidden; clear: both;">
  114. <div id="maingrid4" style="margin: 0; padding: 0"></div>
  115. </div>
  116. </div>
  117. </div>
  118. </body>
  119. </html>