| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192 |
- <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
- <%@include file="/context/mytags.jsp"%>
- <link rel="stylesheet" type="text/css" href="css/commoncss.css"/>
- <t:base type="jquery,easyui,tools,DatePicker"></t:base>
- <div class="easyui-layout" fit="true">
- <div region="center" style="padding:0px;border:0px">
- <t:datagrid name="providentFundStrategyList" checkbox="false" fitColumns="true" title="公积金策略设定" actionUrl="providentFundStrategyController.do?datagrid" idField="id" fit="true" queryMode="group">
- <t:dgCol title="主键" field="id" hidden="true" queryMode="single" width="120"></t:dgCol>
- <t:dgCol title="公积金策略名称" sortable="false" field="providentFundName" queryMode="single" width="150"></t:dgCol>
- <t:dgCol title="缴费基数(元)" style="text-align:right," sortable="false" field="basePay" query="false" queryMode="group" width="120"></t:dgCol>
- <t:dgCol title="单位缴费比例(%)" style="text-align:right," sortable="false" field="companyRatio" queryMode="single" width="120"></t:dgCol>
- <t:dgCol title="个人缴费比例(%)" style="text-align:right," sortable="false" field="personalRatio" queryMode="single" width="120"></t:dgCol>
- <t:dgCol title="适用开始时间" align="center" sortable="false" field="startTime" formatter="yyyy-MM-dd" query="false" queryMode="single" width="120"></t:dgCol>
- <t:dgCol title="适用结束时间" align="center" sortable="false" field="endTime" formatter="yyyy-MM-dd" query="false" queryMode="single" width="120"></t:dgCol>
- <t:dgCol title="状态" align="center" sortable="false" field="status" query="false" queryMode="single" dictionary="ableStatus" width="120"></t:dgCol>
- <t:dgCol title="备注" sortable="false" field="remark" queryMode="single" width="120"></t:dgCol>
- <t:dgCol title="逻辑删除标识" align="center" sortable="false" field="deleteFlag" hidden="true" queryMode="single" dictionary="del_flag" width="120"></t:dgCol>
- <t:dgCol title="操作" sortable="false" field="opt" width="100"></t:dgCol>
- <%-- <t:dgDelOpt title="删除" url="providentFundStrategyController.do?doDel&id={id}" urlclass="ace_button" urlfont="fa-trash-o"/> --%>
- <t:dgDelOpt title="删除" url="providentFundStrategyController.do?logicDel&id={id}" urlclass="ace_button" urlfont="fa-trash-o"/>
-
- <t:dgToolBar title="录入" icon="icon-add" operationCode="add" url="providentFundStrategyController.do?goAdd" funname="add"></t:dgToolBar>
- <t:dgToolBar title="修改" icon="icon-edit" operationCode="edit" url="providentFundStrategyController.do?goUpdate" funname="update"></t:dgToolBar>
- <%-- <t:dgToolBar title="批量删除" icon="icon-remove" operationCode="remove" url="providentFundStrategyController.do?doBatchDel" funname="deleteALLSelect"></t:dgToolBar> --%>
- <%-- <t:dgToolBar title="查看" icon="icon-search" url="providentFundStrategyController.do?goUpdate" funname="detail"></t:dgToolBar> --%>
- <t:dgToolBar title="启用" icon="icon-enable" url="providentFundStrategyController.do?enable" funname="enableObj"></t:dgToolBar>
- <t:dgToolBar title="停用" icon="icon-disable" url="providentFundStrategyController.do?disable" funname="disableObj"></t:dgToolBar>
- <%-- <t:dgToolBar title="导入" icon="icon-putout" operationCode="put" funname="ImportXls"></t:dgToolBar> --%>
- <t:dgToolBar title="导出" icon="icon-put" operationCode="put" funname="ExportXls"></t:dgToolBar>
- <%-- <t:dgToolBar title="模板下载" icon="icon-putout" operationCode="putout" funname="ExportXlsByT"></t:dgToolBar> --%>
- </t:datagrid>
- </div>
- <script>
- $(function() {
- var datagrid = $("#providentFundStrategyListtb");
- datagrid.prepend($("#pinjie1 div[name='pinjie2']").html());
- $("#pinjie1").html('');
-
-
- datagrid.children(".datagrid-toolbar").children("span:first").after($("#pinjiechaxun1 div[name='pinjiechaxun2']").html());
- $("#pinjiechaxun1").html('');
- });
- </script>
- <div id="pinjie1">
- <div name="pinjie2" style="padding:3px; height: auto" class="datagrid-toolbar">
- <table style="height:60px;padding:0px" cellpadding="0" cellspacing="1" >
- <tbody>
- <tr>
- <td align="right">
- <label class="Validform_label">
- 缴费基数范围:
- </label>
- </td>
- <td class="value" colspan="3">
- <input id="basePay_begin" name="basePay_begin" type="text" style="width: 150px" onkeyup="num1(this)" onBlur="onpay(1)" class="inputxt" placeholder="0.00"/>~
- <input id="basePay_end" name="basePay_end" type="text" style="width: 150px" onkeyup="num1(this)" onBlur="onpay(2)" class="inputxt" placeholder="0.00"/>
- </td>
- <td align="right" style="width: 74px;">
- <label class="Validform_label">
- 适用期间:
- </label>
- </td>
- <td class="value">
- <input id="startTime" name="startTime" type="text" style="width: 150px" class="Wdate"
- onclick="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'#F{$dp.$D(\'endTime\')}'})" readonly="readonly" placeholder="yyyy-MM-dd"/>~
- <input id="endTime" name="endTime" type="text" style="width: 150px" class="Wdate"
- onclick="WdatePicker({dateFmt:'yyyy-MM-dd',minDate:'#F{$dp.$D(\'startTime\')}'})" readonly="readonly" placeholder="yyyy-MM-dd"/>
- </td>
- <td align="right" style="width: 74px;">
- <label class="Validform_label">
- 状态:
- </label>
- </td>
- <td class="value">
- <t:dictSelect field="status" type="select" typeGroupCode="ableStatus" hasLabel="false" title="状态" ></t:dictSelect>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
-
- <div id="pinjiechaxun1">
- <div name="pinjiechaxun2" style="padding:3px; height: auto" class="datagrid-toolbar">
- <div style="float: right;">
- <span>
- <a href="#" class="easyui-linkbutton" plain="true" icon="icon-search" id="personnelBaseArchivesManageSearch" onclick="providentFundStrategyListsearch()">查询</a>
- </span>
- <span>
- <a href="#" class="easyui-linkbutton" plain="true" icon="icon-reload " id="personnelBaseArchivesManageRedo" onclick="searchReset('providentFundStrategyList')">重置</a>
- </span>
- </div>
- </div>
- </div>
- </div>
- <script src = "webpage/cn/com/lzt/providentfundstrategy/providentFundStrategyList.js"></script>
- <script type="text/javascript">
- //导入
- function ImportXls() {
- openuploadwin('Excel导入', 'providentFundStrategyController.do?upload', "providentFundStrategyList");
- }
- //导出
- function ExportXls() {
- JeecgExcelExport("providentFundStrategyController.do?exportXls","providentFundStrategyList");
- }
- //模板下载
- function ExportXlsByT() {
- JeecgExcelExport("providentFundStrategyController.do?exportXlsByT","providentFundStrategyList");
- }
- //新增
- function add(title,url,id){
- window.location.href=url;
- }
- //修改
- function update(title,url, id){
- updateNotCreateWin("修改",url, "providentFundStrategyList",false);
- }
- //查看
- function view(title,url, id){
- viewNotCreateWin("查看",url, "providentFundStrategyList",false);
- }
- function enableObj(title,url, id) {
- gridname=id;
- var rowsData = $('#'+id).datagrid('getSelections');
- if (!rowsData || rowsData.length==0) {
- tip('<t:mutiLang langKey="common.please.select.edit.item"/>');
- return;
- }
- url += '&id='+rowsData[0].id;
- $.dialog.confirm('<t:mutiLang langKey="确定要启用此公积金策略吗?"/>', function(){
- lockuploadify(url, '&id');
- }, function(){
- });
- }
- function disableObj(title,url, id) {
- gridname=id;
- var rowsData = $('#'+id).datagrid('getSelections');
- if (!rowsData || rowsData.length==0) {
- tip('<t:mutiLang langKey="common.please.select.edit.item"/>');
- return;
- }
- url += '&id='+rowsData[0].id;
- $.dialog.confirm('<t:mutiLang langKey="确定要停用此公积金策略吗?"/>', function(){
- lockuploadify(url, '&id');
- }, function(){
- });
- }
- function lockuploadify(url, id) {
- $.ajax({
- async : false,
- cache : false,
- type : 'POST',
- url : url,// 请求的action路径
- error : function() {// 请求失败处理函数
- },
- success : function(data) {
- var d = data; // ------ $.parseJSON(data);
- if (d.success) {
- var msg = d.msg;
- tip(msg);
- reloadTable();
- }
- }
- });
- }
- function num1(obj){
- obj.value = obj.value.replace(/[^\d.]/g,""); //清除"数字"和"."以外的字符
- obj.value = obj.value.replace(/^\./g,""); //验证第一个字符是数字
- obj.value = obj.value.replace(/\.{2,}/g,"."); //只保留第一个, 清除多余的
- obj.value = obj.value.replace(".","$#$").replace(/\./g,"").replace("$#$",".");
- obj.value = obj.value.replace(/^(\-)*(\d+)\.(\d\d).*$/,'$1$2.$3'); //只能输入两个小数
- }
- function onpay(type){
- var basePay_begin = $("#basePay_begin").val();
- var basePay_end = $("#basePay_end").val();
- if(basePay_end != '' && basePay_begin != ''){
- if(basePay_begin > basePay_end){
- tip("缴费基数范围输入有误");
- $("#basePay_begin").val("");
- $("#basePay_end").val("");
- }
- }
- }
- </script>
|