attendanceTempList.jsp 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%@include file="/context/mytags.jsp"%>
  3. <t:base type="jquery,easyui,tools,DatePicker"></t:base>
  4. <link rel="stylesheet" type="text/css" href="css/commoncss.css"/>
  5. <div class="easyui-layout" fit="true">
  6. <div region="center" style="padding:0px;border:0px">
  7. <div id="dingAttendanceinfoListtb" style="padding:3px; height: auto">
  8. <div name="searchColums" id="searchColums">
  9. <table style="height:40px;padding:0px" cellpadding="0" cellspacing="1" >
  10. <tbody>
  11. <tr>
  12. <td align="right" style="width: 74px;">
  13. <label class="Validform_label">
  14. 考勤时间:
  15. </label>
  16. </td>
  17. <td class="value">
  18. <div style="display:inline">
  19. <input id="attendanceStime" name="attendanceStime" type="text" style="width: 120px" class="Wdate" onClick="WdatePicker()" onblur="probationCount()" placeholder="YYYY-MM-DD" value='<fmt:formatDate value='${personnelInfo.contractStime}' type="date" pattern="yyyy-MM-dd"/>'/>
  20. ~
  21. </div>
  22. <div style="display:inline">
  23. <input id="attendanceEtime" name="attendanceEtime" type="text" style="width: 120px" class="Wdate" onClick="WdatePicker()" onblur="probationCount()" placeholder="YYYY-MM-DD" value='<fmt:formatDate value='${personnelInfo.contractEtime}' type="date" pattern="yyyy-MM-dd"/>'/>
  24. </div>
  25. </td>
  26. <td align="right" style="width: 74px;">
  27. <label class="Validform_label">
  28. 员工姓名:
  29. </label>
  30. </td>
  31. <td class="value">
  32. <input id="userName" name="userName" type="text" style="width: 120px;" class="inputxt" placeholder="请输入员工姓名">
  33. </td>
  34. <td align="right" style="width: 74px;">
  35. <label class="Validform_label">
  36. 所属单位:
  37. </label>
  38. </td>
  39. <td class="value">
  40. <input readonly="true" type="text" id="departname" name="departname" style="width: 120px" value="${departname}" placeholder="请选择所属单位" onclick="openDepartmentSelect()">
  41. <input id="orgIds" name="orgIds" type="hidden" value="${departid}">
  42. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-select" id="departSearch" onclick="openDepartmentSelect()">选择</a>
  43. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-clean" id="departRedo" onclick="callbackClean()">清空</a>
  44. </td>
  45. <!--
  46. <td align="right">
  47. <label class="Validform_label">
  48. 员工工号:
  49. </label>
  50. </td>
  51. <td class="value">
  52. <input id=userCode name="userCode" type="text" style="width: 157px; " class="inputxt" placeholder="请输入员工工号">
  53. </td>
  54. -->
  55. </tr>
  56. </tbody>
  57. </table>
  58. <div style="border-bottom-width:0;height:30px;" class="datagrid-toolbar">
  59. <span style="float:left;" >
  60. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-putout" operationCode="putout" onclick="ExportXls()">导出</a>
  61. </span>
  62. <div style="float: right;">
  63. <span>
  64. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-search" id="dingAttendanceinfoSearch" onclick="dingAttendanceinfoListsearch()">查询</a>
  65. </span>
  66. <span>
  67. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-reload" id="dingAttendanceinfoRedo" onclick="searchReset('dingAttendanceinfoList')">重置</a>
  68. </span>
  69. </div>
  70. </div>
  71. </div>
  72. </div>
  73. <t:datagrid name="dingAttendanceinfoList" fitColumns="true" title="考勤数据管理" autoLoadData="false" actionUrl="dingAttendanceinfoController.do?datagrid" idField="id" fit="true" queryMode="group">
  74. <t:dgCol title="主键" field="id" hidden="true" queryMode="single" width="120" sortable="false"></t:dgCol>
  75. <t:dgCol title="创建人名称" field="createName" hidden="true" queryMode="single" width="120" sortable="false"></t:dgCol>
  76. <t:dgCol title="创建人登录名称" field="createBy" hidden="true" queryMode="single" width="120" sortable="false"></t:dgCol>
  77. <t:dgCol title="创建日期" field="createDate" formatter="yyyy-MM-dd" hidden="true" queryMode="single" width="120" sortable="false"></t:dgCol>
  78. <t:dgCol title="更新人名称" field="updateName" hidden="true" queryMode="single" width="120" sortable="false"></t:dgCol>
  79. <t:dgCol title="更新人登录名称" field="updateBy" hidden="true" queryMode="single" width="120" sortable="false"></t:dgCol>
  80. <t:dgCol title="更新日期" field="updateDate" formatter="yyyy-MM-dd" hidden="true" queryMode="single" width="120" sortable="false"></t:dgCol>
  81. <t:dgCol title="所属部门" field="sysOrgCode" hidden="true" queryMode="single" width="120" sortable="false"></t:dgCol>
  82. <t:dgCol title="所属公司" field="sysCompanyCode" hidden="true" queryMode="single" width="120" sortable="false"></t:dgCol>
  83. <t:dgCol title="流程状态" field="bpmStatus" hidden="true" queryMode="single" dictionary="bpm_status" width="120" sortable="false"></t:dgCol>
  84. <t:dgCol title="员工ID" field="userId" hidden="true" queryMode="single" width="120" sortable="false"></t:dgCol>
  85. <t:dgCol title="员工工号" field="userCode" queryMode="single" width="40" sortable="false"></t:dgCol>
  86. <t:dgCol title="员工姓名" field="realname" queryMode="single" width="40" sortable="false"></t:dgCol>
  87. <t:dgCol title="所属单位" field="belongUnitid" queryMode="single" dictionary="t_s_depart,id,departname, and org_type != '1' " width="120" sortable="false"></t:dgCol>
  88. <t:dgCol title="考勤日期" field="attendanceDate" queryMode="single" width="120" formatter="yyyy-MM-dd" sortable="false" extendParams="align:'center',"></t:dgCol>
  89. <t:dgCol title="考勤时间" field="attendanceTimeString" queryMode="single" width="120" sortable="false" extendParams="align:'center'," ></t:dgCol>
  90. <t:dgCol title="钉钉考勤唯一标识" field="dingUniqueid" hidden="true" queryMode="single" width="120" sortable="false"></t:dgCol>
  91. </t:datagrid>
  92. </div>
  93. </div>
  94. <script src = "webpage/cn/com/lzt/dingattendanceinfo/dingAttendanceinfoList.js"></script>
  95. <script type="text/javascript">
  96. function openDepartmentSelect() {
  97. $.dialog.setting.zIndex = getzIndex();
  98. var orgIds = $("#orgIds").val();
  99. // 查询所有组织结构
  100. $.dialog({content: 'url:dialogDealController.do?projectDepartTablePart&ids='+orgIds, zIndex: getzIndex(), title: '所属部门列表', lock: true, width: '400px', height: '350px', opacity: 0.4, button: [
  101. {name: '<t:mutiLang langKey="common.confirm"/>', callback: callbackDepartmentSelect, focus: true},
  102. {name: '<t:mutiLang langKey="common.cancel"/>', callback: function (){}}
  103. ]}).zindex();
  104. }
  105. function callbackDepartmentSelect() {
  106. var iframe = this.iframe.contentWindow;
  107. if (iframe.getReason().length > 0) {
  108. var strData = eval(iframe
  109. .getReason());
  110. for ( var key in strData[0]) {
  111. if (key == "strPId") {
  112. $("#orgIds")
  113. .val(
  114. strData[0][key]);
  115. } else if (key == "strDepartName") {
  116. $("#departname")
  117. .val(
  118. strData[0][key]);
  119. }
  120. }
  121. }
  122. }
  123. function callbackClean(){
  124. $('#departname').val('');
  125. $('#orgIds').val('');
  126. }
  127. //导出
  128. function ExportXls() {
  129. JeecgExcelExport("dingAttendanceinfoController.do?exportXls","dingAttendanceinfoList");
  130. }
  131. </script>