| 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 type="text/javascript">
- var grid = null;
- $(function() {
- initTargetGrid();
- });
- var checkValue = new Array(); //定义一个数组
- var i = 0;
- function initTargetGrid(params) {
- var checkbox = false;
- if ("true" == 'false' || "true" == '') {
- checkbox = false;
- } else {
- checkbox = true;
- }
-
- var columns = [
- {
- display : '编号',
- name : 'subject_config_number',
- width : 200
- },{
- display : '名称',
- name : 'subject_config_name',
- width : 300
- // ,
- // render:function(row,index){
- // var html = '<a href=\"#\" onclick=\"addSubjectDetailConfig('+ row.universalid + ')\">'+"<font color=blue >"+row.subject_config_name+"</font>"+'</a> ';
- // return html;
- // }
- }, {
- display : '说明',
- name : 'subject_config_remark',
- width : 300
- }];
-
- grid = $("#maingrid4")
- .ligerGrid(
- {
- columns : columns,
- pageSize : 20,
- url : 'fmSubjectConfigAction.do?task=subjectConfigList&time=' + new Date().getTime() + params,
- pageParmName : 'p', //页索引参数名,(提交给服务器)
- pagesizeParmName : 'pSize', //页记录数参数名,(提交给服务器)
- width : '99.9%',
- checkbox:checkbox,
- // single :true,
- // allowHideColumn: false, rownumbers: true, colDraggable: true, rowDraggable: true,
- height : '99%',
- isChecked: f_isChecked,
- onCheckRow: function(checked, rowdata, rowindex) {
- for (var rowid in this.records){
- this.unselect(rowid);
- }
- if(checked){
- // alert(rowdata.universalid);
- this.select(rowindex);
- dialog = $.ligerDialog.open({ height: 300,width:600, title:"新增科目表单配置详细",url: 'fmSubjectConfigAction.do?task=toSubjectConfigDetailList&universalid='+rowdata.universalid});
- }else{
- this.unselect(rowindex);
- }
- }
- });
- $("#pageloading").hide();
- $(".l-grid-hd-cell-btn-checkbox").css("display", "none"); //隱藏checkAll
- }
- function f_select() {
- var rows = grid.getCheckedRows();
- return rows;
- }
- //默认选中
- function f_isChecked(rowdata){
- if(checkValue != "" && typeof (checkValue) != "undefined"){
- if(checkValue[i]==rowdata.sid){
- i++;
- return true;
- }
- return false;
- }
- }
- //新增科目表单配置详细
- function addSubjectDetailConfig(universalid){
- // dialog = $.ligerDialog.open({ height: 250,width:520,url: 'hrTrainImpleTraineesAction.do?task=toEditImpleTrainees&universalid='+universalid + '&tabid=' + getCurrentTabId()});
-
- // alert(universalid);
- dialog = $.ligerDialog.open({ height: 300,width:1200, title:"新增科目表单配置详细",url: 'fmSubjectConfigAction.do?task=toSubjectConfigDetailList&universalid='+universalid});
- }
- 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"
- value="关闭" class="l-button" onclick="closeWindow();" style="margin-bottom:10px;"/>
- <br/>
- <font color="blue">友情提示:表单的收支类型会显示关联科目的子级,没有关联会显示所有科目。</font>
- </div>
- <div style="clear:both;"></div>
- <div id="searchbar">
- <div style="overflow: hidden; clear: both;">
- <div id="maingrid4" style="margin-top:25px; padding: 0"></div>
- </div>
- </div>
- </div>
- </body>
- </html>
|