| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <%@ 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 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];
- }
- }
-
- }
- }
- //var strData='[{"strShiftid":"'+strShiftid+'","strShiftName":"'+strShiftName+'","strShiftType":"'+strShiftType+'"}]';
- var strData='[{"strId":"'+strId+'","strName":"'+strName+'"}]';
- return strData;
- }
- </script>
- <body>
- <t:datagrid name="userList1" title="common.user.select" actionUrl="userController.do?datagridUser&departid=${param.departid}"
- fit="true" fitColumns="true" idField="id" queryMode="group" sortName="createDate" sortOrder="desc">
- <t:dgCol title="common.id" field="id" hidden="true"></t:dgCol>
- <t:dgCol title="工号" field="userNum"></t:dgCol>
- <t:dgCol title="common.real.name" field="realName" query="true"></t:dgCol>
- <t:dgCol title="员工岗位" field="postId" dictionary="t_bus_post,id,post_name, and delete_flag = '0' and status = '0'"></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>
- <t:dgCol title="common.status" sortable="true" field="positionStatus" dictionary="jobStatus"></t:dgCol>
- </t:datagrid>
- </body>
|