| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- <%@ 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>
- <%--update-start--Author:wangkun Date:20160327 TASK #956 【UI标签】封装选择用户标签--%>
- <script type="text/javascript">
- //编写自定义JS代码获得输入框中的值等父级页面调用取值
- function getReason(){
- var strId="";
- var strName="";
- var selectRows = $("#carList").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;
- }
- function getSelectedRow(){
- var selectRows = $("#carList").datagrid('getSelections');
- return selectRows;
- }
- </script>
- <t:datagrid checkbox="${checkbox}" name="carList" title="common.user.select" actionUrl="carController.do?datagrid1"
- fit="true" fitColumns="true" idField="id" queryMode="group" sortName="id" sortOrder="desc">
- <t:dgCol title="主键" field="id" hidden="true" queryMode="single" width="120"></t:dgCol>
- <t:dgCol title="车牌号" field="plate" query="true" queryMode="single" width="120"></t:dgCol>
- <t:dgCol title="车辆类型" field="type" dictionary="cartype" query="true" queryMode="single" width="120"></t:dgCol>
- <t:dgCol title="车架号" field="framenumber" query="true" queryMode="single" width="200"></t:dgCol>
- <t:dgCol title="车辆品牌" field="brand" dictionary="brand" width="120"></t:dgCol>
- <t:dgCol title="智能设备厂家" field="gpsType" dictionary="gpsType" queryMode="single" width="120"></t:dgCol>
- <t:dgCol title="智能设备序列号1" field="deviceNo1" query="true" queryMode="single" width="120"></t:dgCol>
- <t:dgCol title="智能设备序列号2" field="deviceNo2" queryMode="single" width="120"></t:dgCol>
- <t:dgCol title="智能设备序列号3" field="deviceNo3" queryMode="single" width="120"></t:dgCol>
- <t:dgCol title="所属车队" field="fleetid" query="true" queryMode="single" dictionary="t_b_car_fleet,id,name,and id in ${fleetIds}" width="200"></t:dgCol>
- <t:dgToolBar title="新建" icon="icon-add" operationCode="add" url="carController.do?goNadd" funname="add" width="700" height="500"></t:dgToolBar>
- <t:dgToolBar title="修改" icon="icon-edit" operationCode="edit" url="carController.do?goNupdate" funname="update" width="700" height="500"></t:dgToolBar>
- <t:dgToolBar title="删除" icon="icon-remove" operationCode="remove" url="carController.do?doBatchDel" funname="deleteALLSelect"></t:dgToolBar>
- <t:dgToolBar title="导入" icon="icon-putout" operationCode="put" url="carController.do?nupload" funname="add"></t:dgToolBar>
- </t:datagrid>
- <script type="text/javascript">
- </script>
|