| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
- <%@include file="/context/mytags.jsp" %>
- <t:base type="jquery,easyui,tools,DatePicker"></t:base>
- <script type="text/javascript">
- //首次进入加载level为1的
- $(function () {
- });
- //编写自定义JS代码获得输入框中的值等父级页面调用取值
- function getSelectedRow() {
- var selectRows = $("#userList1").datagrid('getSelections');
- return selectRows;
- }
- function getReason() {
- var strId = "";
- var strName = "";
- var orgIds = "";
- var employmentDate = "";
- var selectRows = $("#userList1").datagrid('getSelections');
- for (var i = 0; i < selectRows.length; i++) {
- for (var key in selectRows[i]) {
- //console.log(key+"======="+selectRows[i][key]);
- if (key == "id") {
- if (strId.length > 0) {
- strId += "," + selectRows[i][key];
- } else {
- strId = selectRows[i][key];
- }
- }
- if (key == "realName") {
- if (strName.length > 0) {
- strName += "," + selectRows[i][key];
- } else {
- strName = selectRows[i][key];
- }
- }
- if (key == "orgIds") {
- if (strName.length > 0) {
- orgIds += "," + selectRows[i][key];
- } else {
- orgIds = selectRows[i][key];
- }
- }
- if (key == "employmentDate") {
- if (strName.length > 0) {
- employmentDate += "," + selectRows[i][key];
- } else {
- employmentDate = selectRows[i][key];
- }
- }
- }
- }
- //var strData='[{"strShiftid":"'+strShiftid+'","strShiftName":"'+strShiftName+'","strShiftType":"'+strShiftType+'"}]';
- var strData = '[{"strId":"' + strId + '","strName":"' + strName + '","orgIds":"' + orgIds + '","employmentDate":"' + employmentDate + '"}]';
- return strData;
- }
- </script>
- <body>
- <t:datagrid name="userList1" title="common.user.select"
- actionUrl="publicpageController.do?datagridUser&departid=${param.departid}&includeLeave=${param.includeLeave}"
- fit="true" fitColumns="true" idField="id" queryMode="group" pagination="true" sortName="createDate"
- sortOrder="desc">
- <t:dgCol title="common.id" field="id" hidden="true" width="120"></t:dgCol>
- <t:dgCol title="工号" field="userNum" width="120"></t:dgCol>
- <t:dgCol title="common.real.name" field="realName" query="true" width="120"></t:dgCol>
- <t:dgCol title="员工岗位" field="postId" dictionary="t_bus_post,id,post_name, and delete_flag = '0' and status = '0'" width="120"></t:dgCol>
- <t:dgCol title="入职日期" field="employmentDate" formatter="yyyy-MM-dd" width="120"></t:dgCol>
- <t:dgCol title="科室" field="orgIds" dictionary="t_s_depart,id,departname, and org_type != '1' " width="120"></t:dgCol>
- <%--<t:dgCol title="common.username" sortable="false" field="userName" query="true"></t:dgCol>--%>
- <%--<t:dgCol title="common.department" sortable="false" field="userOrgList.tsDepart.departname" query="false"></t:dgCol>--%>
- <%--<t:dgCol title="common.role" field="userKey" ></t:dgCol>--%>
- <t:dgCol title="common.createby" field="createBy" hidden="true"></t:dgCol>
- <t:dgCol title="common.createtime" field="createDate" formatter="yyyy-MM-dd" hidden="true"></t:dgCol>
- <t:dgCol title="common.updateby" field="updateBy" hidden="true"></t:dgCol>
- <t:dgCol title="common.updatetime" field="updateDate" formatter="yyyy-MM-dd" hidden="true"></t:dgCol>
- <%-- delete-刘梦祥-2021年11月19日17:56:50(由于没有在职状态的业务逻辑,暂时删除)--%>
- <%-- <t:dgCol title="common.status" sortable="true" field="positionStatus" dictionary="jobStatus" width="120"></t:dgCol>--%>
- </t:datagrid>
- </body>
|