| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210 |
- <%@ 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="socialSecurityStrategyList" checkbox="false" fitColumns="true" title="社保策略设定" actionUrl="socialSecurityStrategyController.do?datagrid" idField="id" fit="true" queryMode="group">
- <t:dgCol title="主键" align="center" field="id" hidden="true" queryMode="single" width="120"></t:dgCol>
- <t:dgCol title="社保单位" sortable="false" showLen="10" field="socialSecurityUnit" query="false" queryMode="single" width="200"></t:dgCol>
- <t:dgCol title="适用开始时间" align="center" sortable="false" field="suitStime" formatter="yyyy-MM-dd" query="false" queryMode="single" width="120"></t:dgCol>
- <t:dgCol title="适用结束时间" align="center" sortable="false" field="suitEtime" formatter="yyyy-MM-dd" query="false" queryMode="single" width="120"></t:dgCol>
- <t:dgCol title="缴费基数" style="text-align:right," sortable="false" field="basePay" query="false" queryMode="group" width="120"></t:dgCol>
- <t:dgCol title="养老保险<br/>(单位)" style="text-align:right," sortable="false" field="companyBasicRetireInsu" queryMode="single" width="90"></t:dgCol>
- <t:dgCol title="医疗保险<br/>(单位)" style="text-align:right," sortable="false" field="companyBasicMedicalInsu" queryMode="single" width="90"></t:dgCol>
- <t:dgCol title="失业保险<br/>(单位)" style="text-align:right," sortable="false" field="companyUnemploymentInsu" queryMode="single" width="90"></t:dgCol>
- <t:dgCol title="工伤保险<br/>(单位)" style="text-align:right," sortable="false" field="companyInjuryInsu" queryMode="single" width="90"></t:dgCol>
- <t:dgCol title="生育保险<br/>(单位)" style="text-align:right," sortable="false" field="companyMaternityInsu" queryMode="single" width="90"></t:dgCol>
- <t:dgCol title="养老保险<br/>(个人)" style="text-align:right," sortable="false" field="personalBasicRetireInsu" queryMode="single" width="90"></t:dgCol>
- <t:dgCol title="医疗保险<br/>(个人)" style="text-align:right," sortable="false" field="persionalBasicMedicalInsu" queryMode="single" width="90"></t:dgCol>
- <t:dgCol title="失业保险<br/>(个人)" style="text-align:right," sortable="false" field="personalUnemploymentInsu" queryMode="single" width="90"></t:dgCol>
- <t:dgCol title="状态" align="center" field="status" sortable="false" query="false" queryMode="single" dictionary="ableStatus" width="120"></t:dgCol>
- <t:dgCol title="备注" field="remark" sortable="false" queryMode="single" width="200"></t:dgCol>
- <t:dgCol title="操作" field="opt" sortable="false"></t:dgCol>
- <%-- <t:dgDelOpt title="删除" url="socialSecurityStrategyController.do?doDel&id={id}" urlclass="ace_button" urlfont="fa-trash-o"/> --%>
- <t:dgDelOpt title="删除" url="socialSecurityStrategyController.do?logicDel&id={id}" urlclass="ace_button" urlfont="fa-trash-o"/>
- <t:dgToolBar title="录入" icon="icon-add" operationCode="add" url="socialSecurityStrategyController.do?goAdd" funname="add"></t:dgToolBar>
- <t:dgToolBar title="修改" icon="icon-edit" operationCode="edit" url="socialSecurityStrategyController.do?goUpdate" funname="update"></t:dgToolBar>
- <%-- <t:dgToolBar title="批量删除" icon="icon-remove" operationCode="remove" url="socialSecurityStrategyController.do?doBatchDel" funname="deleteALLSelect"></t:dgToolBar> --%>
- <%-- <t:dgToolBar title="查看" icon="icon-search" url="socialSecurityStrategyController.do?goUpdate" funname="detail"></t:dgToolBar>
- <t:dgToolBar title="导入" icon="icon-putout" operationCode="put" funname="ImportXls"></t:dgToolBar> --%>
- <t:dgToolBar title="启用" icon="icon-enable" url="socialSecurityStrategyController.do?enable" funname="enableObj"></t:dgToolBar>
- <t:dgToolBar title="停用" icon="icon-disable" url="socialSecurityStrategyController.do?disable" funname="disableObj"></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 = $("#socialSecurityStrategyListtb");
- 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:85px;padding:0px" cellpadding="0" cellspacing="1" >
- <tbody>
- <tr>
- <td align="right" style="width: 74px;">
- <label class="Validform_label">
- 社保单位:
- </label>
- </td>
- <td class="value">
- <input id="socialSecurityUnit" name="socialSecurityUnit" type="text" style="width: 157px; " class="inputxt" placeholder="请输入社保单位">
- </td>
- <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>
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label">
- 适用期间:
- </label>
- </td>
- <td class="value">
- <input id="suitStime" name="suitStime" type="text" style="width: 150px" class="Wdate"
- onclick="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'#F{$dp.$D(\'suitEtime\')}'})" readonly="readonly" placeholder="yyyy-MM-dd"/>~
- <input id="suitEtime" name="suitEtime" type="text" style="width: 150px" class="Wdate"
- onclick="WdatePicker({dateFmt:'yyyy-MM-dd',minDate:'#F{$dp.$D(\'suitStime\')}'})" 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="socialSecurityStrategyListsearch()">查询</a>
- </span>
- <span>
- <a href="#" class="easyui-linkbutton" plain="true" icon="icon-reload " id="personnelBaseArchivesManageRedo" onclick="searchReset('socialSecurityStrategyList')">重置</a>
- </span>
- </div>
- </div>
- </div>
- </div>
- <script src = "webpage/cn/com/lzt/socialsecuritystrategy/socialSecurityStrategyList.js"></script>
- <script type="text/javascript">
-
-
- //导入
- function ImportXls() {
- openuploadwin('Excel导入', 'socialSecurityStrategyController.do?upload', "socialSecurityStrategyList");
- }
- //导出
- function ExportXls() {
- JeecgExcelExport("socialSecurityStrategyController.do?exportXls","socialSecurityStrategyList");
- }
- //模板下载
- function ExportXlsByT() {
- JeecgExcelExport("socialSecurityStrategyController.do?exportXlsByT","socialSecurityStrategyList");
- }
- //新增
- function add(title,url,id){
- window.location.href=url
- }
- //修改
- function update(title,url, id){
- updateNotCreateWin("修改",url, "socialSecurityStrategyList",false);
- }
- //查看
- function view(title,url, id){
- viewNotCreateWin("查看",url, "socialSecurityStrategyList",false)
- }
-
- function enableObj(title,url, id) {
- gridname=id;
- var rowsData = $('#'+id).datagrid('getSelections');
- if (!rowsData || rowsData.length==0) {
- tip('请选择启用项目');
- 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('请选择停用项目');
- 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>
|