| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127 |
- <%@ page language="java" contentType="text/html;charset=GBK" pageEncoding="GBK"%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html;charset=GBK">
- <title>科目关联配置明细列表</title>
- <link href="${pageContext.request.contextPath}/main.css" rel="stylesheet" type="text/css" />
- <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
- <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/core/base.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerGrid.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/plugins/ligerDialog.js" type="text/javascript"></script>
- <script type="text/javascript" src="/shares/js/constant.js"></script>
- <script type="text/javascript" src="/shares/js/common.js"></script>
- <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
- <script src="/shares/js/yw/fm/subject/fmSubjectConfigDetailTableVar.js"
- type="text/javascript"></script>
- <script type="text/javascript">
- var grid = null;
- $(function() {
- initTargetGrid();
- $(function (){
- var suc = "${requestScope.suc}";
- if(suc){
- // window.parent.initFinishMygrid3();
- var tabid = getCurrentTabId(); //刷新整个页面
- parent.window.location=tabid;
- window.parent.dialog.close();
- }
-
- });
- });
- function initTargetGrid(params) {
- var columns = [
- {
- display : '关联科目',
- name : 'subject_relat_name',
- width : 300
- }];
- columns
- .push({
- display : '操作',
- width : 120,
- isAllowHide : false,
- render : function(row) {
- var html = '<a href=\"#\" onclick=\"delSubjectConfigDetail('+ row.universalid + ')\">删除</a> ';
- return html;
- }
- });
- grid = $("#maingrid4")
- .ligerGrid(
- {
- columns : columns,
- pageSize : 20,
- url : 'fmSubjectConfigAction.do?task=subjectConfigDetailList&subject_config_id=${subject_config_id}&time=' + new Date().getTime() + params,
- pageParmName : 'p', //页索引参数名,(提交给服务器)
- pagesizeParmName : 'pSize', //页记录数参数名,(提交给服务器)
- width : '99.9%',
- rownumbers : true,
- height : '99%'
- });
- $("#pageloading").hide();
- $(".l-grid-hd-cell-btn-checkbox").css("display", "none"); //隱藏checkAll
- }
- function f_select() {
- var rows = grid.getCheckedRows();
- return rows;
- }
- //删除讲师信息
- function delSubjectConfigDetail(universalid){
- // if (window.confirm("确定要删除讲师信息吗?")){
- // addTab('delTeacher' + getCurrentTabId(), '删除讲师信息', '${pageContext.request.contextPath }/hrTrainTeacherAction.do?task=delTeacher&universalid='
- // + universalid + '&tabid=' + getCurrentTabId(),true,true);
- // }
- $.ligerDialog.confirm('确定要删除科目配置信息吗?', function (yes)
- {
- if(yes){
- $.ajax({
- type:"POST",
- url:"fmSubjectConfigAction.do?task=delSubjectConfigDetail",
- data : {"universalid":universalid},
- timeout:10000,
- cache:false,
- dataType:"json",
- success:function(data){
- var success = data.success;
- if(success){
- $.ligerDialog.success(success);
- initTargetGrid();
- }else{
- showAjaxError(null, data.error);
- }
- },
- error:showAjaxError
- });
- }
- });
- }
- function CloseWin() {
- window.parent.dialog.close();
- }
- </script>
- </head>
- <body>
- <%@ include file="/include/message.jsp"%>
- <div class="container-layout">
- <div id="title" class="form-button">
- <input type="button" class="l-button" value="添加" id="outs_deptButton" name="outs_deptButton" onclick="f_choseDept();"/>
- <input type="button" value="关闭" class="l-button" onclick="CloseWin();" />
- <input type="hidden" name="subject_config_id" id="subject_config_id" value="${subject_config_id}" />
- </div>
- <div style="clear:both;"></div>
- <div id="searchbar">
- <div style="overflow: hidden; clear: both;">
- <div id="maingrid4" style="margin: 0; padding: 0"></div>
- </div>
- </div>
- </div>
- </body>
- </html>
|