| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- <%@ 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>
- <div id="main_device_list" class="easyui-layout" fit="true">
- <div region="center" style="padding:0px;border:0px">
- <t:datagrid name="projectDeviceList" title="common.operation"
- actionUrl="projectServiceDeviceController.do?datagridProjectDevice&projectid=${projectid}" fit="true" fitColumns="true"
- idField="id" checkbox="true" queryMode="group">
- <t:dgCol title="编号" field="id" hidden="true"></t:dgCol>
- <t:dgCol title="设备编号" sortable="false" field="code" query="true" width="120"></t:dgCol>
- <t:dgCol title="设备名称" field="name" query="true" width="120"></t:dgCol>
- <t:dgCol title="设备类型" field="typeId" query="true" queryMode="single" dictionary="P_device_type,id,type_name" width="120"></t:dgCol>
- <t:dgCol title="当前位置" field="location" hidden="true" queryMode="single" width="120"></t:dgCol>
- <%-- <t:dgCol title="common.status" sortable="true" field="status" replace="common.active_1,common.inactive_0,super.admin_-1"></t:dgCol> --%>
- </t:datagrid>
- </div>
- </div>
- <div style="display: none">
- <t:formvalid formid="formobj" layout="div" dialog="true" action="projectServiceDeviceController.do?doAddProjectDevice&projectid=${projectid}&serviceid=${serviceid}" beforeSubmit="setDeviceIds">
- <input id="deviceIds" name="deviceIds">
- </t:formvalid>
- </div>
- <script>
- function setDeviceIds() {
- $("#deviceIds").val(getDeviceListSelections('id'));
- return true;
- }
- function getDeviceListSelections(field) {
- var ids = [];
- var rows = $('#projectDeviceList').datagrid('getSelections');
- for (var i = 0; i < rows.length; i++) {
- ids.push(rows[i][field]);
- }
- ids.join(',');
- return ids
- }
- </script>
|