| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143 |
- <%@ 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/ligerDrag.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerDialog.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerResizable.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/ligerui.all.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 type="text/javascript">
- var grid = null;
- var dialog = null;
- $(function() {
- initSalayInsuranceProjectList();
- });
- function initSalayInsuranceProjectList(params) {
- var columns = [
- {
- display : '项目名称',
- name : 'project_name'
- },
- {
- display : '项目类型',
- name : 'project_type_name'
- },
- {
- display : '小数位数',
- name : 'digits'
- },
- {
- display : '操作',
- name : 'remark',
- render : function(row) {
- var html = "";
- html = "<a href=\"#\" onclick=\"addSalInsProj("
- + row.universalid + ")\">编辑</a>";
- if (row.is_default == "1") {
- html += " <a href=\"#\" onclick=\"delProductType("
- + row.universalid + ")\">删除</a>";
- }
- return html;
- }
- } ];
- grid = $("#maingrid4")
- .ligerGrid(
- {
- columns : columns,
- pageSize : 20,
- url : 'hrSalaryInsuranceProjectAction.do?task=querySalInsProjData&time='
- + new Date().getTime() + params,
- pageParmName : 'p', //页索引参数名,(提交给服务器)
- pagesizeParmName : 'pSize', //页记录数参数名,(提交给服务器)
- width : '99.9%',
- height : '99%'
- });
- $("#pageloading").hide();
- }
- //查询
- function searchByKword() {
- var s = "";
- var att_date_start = $("#att_date_start").val();//规则名称
- if (att_date_start != "" && typeof (att_date_start) != "undefined") {
- s += "&att_date_start=" + att_date_start;
- }
- var att_date_end = $("#att_date_end").val();//规则名称
- if (att_date_end != "" && typeof (att_date_end) != "undefined") {
- s += "&att_date_end=" + att_date_end;
- }
- grid.set("newPage", "1");
- initSalayInsuranceProjectList(s);
- }
- function addSalInsProj(universalid) {
- dialog = $.ligerDialog
- .open({
- height : 260,
- width : 480,
- isResize: true,
- url : 'hrSalaryInsuranceProjectAction.do?task=toEditSalInsProj&universalid='
- + universalid
- });
- }
- function delProductType(universalid) {
- $.ligerDialog
- .confirm(
- '是否确认删除?',
- function(yes) {
- if (yes) {
- $
- .ajax({
- type : "POST",
- url : "hrSalaryInsuranceProjectAction.do?task=delSalInsProj",
- data : {
- "universalid" : universalid
- },
- timeout : 10000,
- cache : false,
- dataType : "json",
- success : function(data) {
- var success = data.success;
- if (success) {
- $.ligerDialog
- .success(success);
- initSalayInsuranceProjectList();
- } else {
- showAjaxError(null,
- data.error);
- }
- },
- error : showAjaxError
- });
- }
- });
- }
- </script>
- </head>
- <body>
- <div class="container">
- <div id="title" class="form-button">
- <input type="button" class="l-button" value="新增" onclick="addSalInsProj('');" style="width: 70px" />
- </div>
- <div class="default_search" style="margin: 0; height: 30px;"></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>
|