| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182 |
- <%@ 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>
- <style>
- #searchColums{
- padding: 20px;
- }
- </style>
- <div class="easyui-layout" fit="true">
- <div region="center" style="padding:0px;border:0px">
- <t:datagrid name="userChangesLogList" checkbox="false" fitColumns="true" title="员工人事变动记录"
- actionUrl="userChangesLogController.do?datagrid" idField="id" fit="true" queryMode="group">
- <t:dgCol title="主键" field="id" hidden="true" queryMode="single" width="120"></t:dgCol>
- <t:dgCol title="变动审批日期" field="changeTime" align="center" sortable="false" formatter="yyyy-MM-dd" query="false" queryMode="group" editor="checkTime" width="120"></t:dgCol>
- <t:dgCol title="员工工号" field="userCode" sortable="false" queryMode="single" width="120"></t:dgCol>
- <t:dgCol title="员工姓名" field="userName" sortable="false" queryMode="single" query="false" width="120"></t:dgCol>
- <t:dgCol title="所属单位" field="belongUnitName" sortable="false" queryMode="single" dictionary="belongUnitName" width="220"></t:dgCol>
- <t:dgCol title="调入单位" field="inUnitName" sortable="false" queryMode="single" dictionary="inUnitName" width="220"></t:dgCol>
- <t:dgCol title="变动类型" field="changeType" sortable="false" queryMode="single" query="false" dictionary="change_type" width="120"></t:dgCol>
- <t:dgCol title="申请人" field="applicant" sortable="false" queryMode="single" width="120"></t:dgCol>
- <%-- <t:dgCol title="缴金状态" field="payRemindStatus" sortable="false" queryMode="single" query="false" dictionary="pay_remind_status" width="120"></t:dgCol> --%>
- <%-- <t:dgCol title="缴金单位" field="payUnit" sortable="false" queryMode="single" width="120"></t:dgCol> --%>
- <%-- <t:dgCol title="操作" field="opt"></t:dgCol> --%>
- <%-- <t:dgFunOpt title="缴金" exp="payRemindStatus#eq#0" urlclass="ace_button" urlfont="fa-cog" funname="setUpPayRemindStatus(id)"/> --%>
- <%-- <t:dgFunOpt title="停缴" exp="payRemindStatus#eq#1" urlclass="ace_button" urlfont="fa-cog" funname="setUpStopPayRemindStatus(id)"/> --%>
- <%-- <t:dgDelOpt title="删除" url="userChangesLogController.do?doDel&id={id}" urlclass="ace_button" urlfont="fa-trash-o"/> --%>
- <%-- <t:dgToolBar title="录入" icon="icon-add" operationCode="add" url="userChangesLogController.do?goAdd" funname="add"></t:dgToolBar> --%>
- <%-- <t:dgToolBar title="修改" icon="icon-edit" operationCode="edit" url="userChangesLogController.do?goUpdate" funname="update"></t:dgToolBar> --%>
- <%-- <t:dgToolBar title="批量删除" icon="icon-remove" operationCode="remove" url="userChangesLogController.do?doBatchDel" funname="deleteALLSelect"></t:dgToolBar> --%>
- <%-- <t:dgToolBar title="查看" icon="icon-search" url="userChangesLogController.do?goUpdate" funname="detail"></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>
- </div>
- <div id="pinjie1">
- <div name="pinjie2" style="padding:3px; height: auto" class="datagrid-toolbar">
- <table style="height:85px;padding:0px;margin-left: 20px;" cellpadding="0" cellspacing="1" >
- <tbody>
- <tr>
- <td align="right">
- <label class="Validform_label">
- 变动审批日期:
- </label>
- </td>
- <td class="value" colspan="3">
- <input id="changeTime_begin" name="changeTime_begin" type="text" style="width: 150px" class="Wdate"
- onclick="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'#F{$dp.$D(\'changeTime_end\')}'})" readonly="readonly" placeholder="yyyy-MM-dd"/>~
- <input id="changeTime_end" name="changeTime_end" type="text" style="width: 150px" class="Wdate"
- onclick="WdatePicker({dateFmt:'yyyy-MM-dd',minDate:'#F{$dp.$D(\'changeTime_begin\')}'})" readonly="readonly" placeholder="yyyy-MM-dd"/>
- </td>
- <td align="right" style="width: 74px;">
- <label class="Validform_label">
- 员工姓名:
- </label>
- </td>
- <td class="value">
- <input id="userName" name="userName" type="text" style="width: 157px; " class="inputxt" placeholder="请输入员工姓名">
- </td>
- <td align="right" style="width: 74px;">
- <label class="Validform_label">
- 变动类型:
- </label>
- </td>
- <td class="value">
- <t:dictSelect field="changeType" type="select" typeGroupCode="change_type" hasLabel="false" title="变动类型" ></t:dictSelect>
- </td>
- <td align="right" style="width: 74px;">
- <label class="Validform_label">
- 缴金状态:
- </label>
- </td>
- <td class="value">
- <t:dictSelect field="payRemindStatus" type="select" typeGroupCode="pay_remind_status" 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="userChangesLogListsearch()">查询</a>
- </span>
- <span>
- <a href="#" class="easyui-linkbutton" plain="true" icon="icon-reload " id="personnelBaseArchivesManageRedo" onclick="searchReset('userChangesLogList')">重置</a>
- </span>
- </div>
- </div>
- </div>
- </div>
- <script src = "webpage/cn/com/lzt/userchangeslog/userChangesLogList.js"></script>
- <script type="text/javascript">
- $(function() {
- var datagrid = $("#userChangesLogListtb");
- datagrid.prepend($("#pinjie1 div[name='pinjie2']").html());
- $("#pinjie1").html('');
-
-
- datagrid.children(".datagrid-toolbar").children("span:first").after($("#pinjiechaxun1 div[name='pinjiechaxun2']").html());
- $("#pinjiechaxun1").html('');
- });
- // 缴金
- function setUpPayRemindStatus(id) {
- var url="userChangesLogController.do?setUpPayRemindStatus";
- url += '&id=' + id;
- $.messager.confirm("确认","确定缴金吗?", function(){
- lockuploadify(url, '&id');
- }, function(){
-
- });
- }
- // 停缴
- function setUpStopPayRemindStatus(id) {
- var url="userChangesLogController.do?setUpStopPayRemindStatus";
- url += '&id=' + id;
- $.messager.confirm("确认","确定停缴吗?", 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;
- layer.alert(msg);
- reloadTable();
- } else {
- layer.alert(d.msg)
- }
- }
- });
- }
- //导入
- function ImportXls() {
- openuploadwin('Excel导入', 'userChangesLogController.do?upload', "userChangesLogList");
- }
- //导出
- function ExportXls() {
- JeecgExcelExport("userChangesLogController.do?exportXls","userChangesLogList");
- }
- //模板下载
- function ExportXlsByT() {
- JeecgExcelExport("userChangesLogController.do?exportXlsByT","userChangesLogList");
- }
- //新增
- function add(title,url,id){
- window.location.href=url;
- }
- //修改
- function update(title,url, id){
- updateNotCreateWin("修改",url, "userChangesLogList",false);
- }
- //查看
- function view(title,url, id){
- viewNotCreateWin("查看",url, "userChangesLogList",false)
- }
- </script>
|