| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136 |
- <%@ 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>
- <body style="overflow-y: hidden" scroll="no">
- <div id="mainlist" class="easyui-layout" fit="true">
- <div region="center" style="padding:0px;border:0px">
- <t:datagrid name="carList" checkbox="false" pagination="true" fitColumns="true"
- sortOrder="desc" title="车辆计划完成情况统计" autoLoadData="false" idField="id"
- actionUrl="" fit="true">
- <t:dgCol title="排班id" field="id" hidden="true" width="120"></t:dgCol>
- <t:dgCol title="车牌号" field="plate" width="120"></t:dgCol>
- <t:dgCol title="作业人员" field="userId" dictionary="t_s_base_user,id,realname" width="120"></t:dgCol>
- <t:dgCol title="车辆类型" field="type" width="80"></t:dgCol>
- <t:dgCol title="当日作业频次" field="schedule_count" width="100"></t:dgCol>
- <t:dgCol title="当日计划完成率" field="done_count" formatterjs="countDone" width="100"></t:dgCol>
- <t:dgCol title="当月作业频次" field="monthCount" width="100"></t:dgCol>
- <t:dgCol title="当月计划完成率" field="monthDoneCount" formatterjs="countMonthDone" width="100"></t:dgCol>
- <t:dgCol title="本季度作业频次" field="quarterCount" width="120"></t:dgCol>
- <t:dgCol title="本季度计划完成率" field="quarterDoneCount" formatterjs="countQuarterDone" width="120"></t:dgCol>
- <t:dgCol title="信息接收人" field="receiver" dictionary="t_s_base_user,id,realname" width="100"></t:dgCol>
- <t:dgCol title="作业日期" field="schedule_date" width="80"></t:dgCol>
- </t:datagrid>
- <div style="padding: 3px; height: 65px;">
- <div style="width: 250px;float: left;">
- <span style="vertical-align:middle;display:-moz-inline-box;display:inline-block;width: 80px;text-align:right;" title="车牌号">
- 车牌号:
- </span>
- <input type="text" name="plate" id="plate" style="width: 160px; height: 24px;" class="text">
- </div>
- <div style="width: 250px;float: left;">
- <span style="vertical-align:middle;display:-moz-inline-box;display:inline-block;width: 80px;text-align:right;" title="车辆类型">
- 车辆类型:
- </span>
- <t:dictSelect field="type" id="type" dictTable="t_s_type" dictField="typecode" dictText="typename" dictCondition=" where typegroupid = '2c9358a86dbeda88016dbee52d0f0031'"/>
- </div>
- <div style="width: 550px;float: left;">
- <span style="vertical-align:middle;display:-moz-inline-box;display:inline-block;width: 80px;text-align:right;" title="作业日期">
- 作业日期:
- </span>
- <input type="text" name="start" id="start" style="width: 160px; height: 24px;" class="Wdate" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd'})">
- ~
- <input type="text" name="end" id="end" style="width: 160px; height: 24px;" class="Wdate" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd'})">
- </div>
- <br>
- <div style="width: 200px">
- <a href="#" class="easyui-linkbutton" iconCls="icon-put" onclick="excelExport();" style="float: left;">导出</a>
- <a href="#" class="easyui-linkbutton" iconCls="icon-search" onclick="detail('查看','carScheduleController.do?detail&queryType=car','carList','100%','100%');" style="float: left;">查看</a>
- </div>
- <div style="width: 200px;float: right;">
- <a href="#" class="easyui-linkbutton" iconCls="icon-reload" onclick="clearSearch();" style="float: right;"><t:mutiLang langKey="重置"/></a>
- <a href="#" class="easyui-linkbutton" iconCls="icon-search" onclick="getResult();" style="float: right;"><t:mutiLang langKey="common.query"/></a>
- </div>
- </div>
- </div>
- </div>
- </body>
- <script type="text/javascript">
- function check() {
- $(".l-btn.l-btn-plain").each(function(index, ele){
- ele.onclick = function(){
- getResult();
- }
- });
- }
- $(function () {
- getResult();
- });
- function clearSearch() {
- $('#plate').val("");
- $('#type').val("");
- $('#start').val("");
- $('#end').val("");
- getResult();
- }
- function getResult() {
- var options = $("#carList").datagrid("getPager").data("pagination").options;
- var curr = options.pageNumber;
- var size = options.pageSize;
- $.ajax({
- url:"carScheduleController.do?carListDatagrid&_functionId=${_functionId}",
- data:{
- pageNum:curr,
- pageSize:size,
- plate:$('#plate').val(),
- type:$('#type').val(),
- start:$('#start').val(),
- end:$('#end').val()
- },
- type:"post",
- success:function(data){
- if(data){
- $("#carList").datagrid({
- data:data,
- loadFilter:function(data){
- return {
- rows: data.records,
- total: data.total
- }
- },
- onBeforeLoad:function(val){
- return false;
- }
- });
- check();
- }
- }
- });
- }
- function countDone(value,row,index) {
- if(row['schedule_count'] == '0'){
- return '0%';
- }
- return Math.round(value/row['schedule_count']) + '%';
- }
- function countMonthDone(value,row,index) {
- if(row['monthCount'] == '0'){
- return '0%';
- }
- return Math.round(value/row['monthCount']) + '%';
- }
- function countQuarterDone(value,row,index) {
- if(row['quarterCount'] == '0'){
- return '0%';
- }
- return Math.round(value/row['quarterCount']) + '%';
- }
- function excelExport() {
- JeecgExcelExport("carScheduleController.do?carExcelExport","carList");
- }
- </script>
|