<?xml version="1.0" encoding="UTF-8"?>
|
<!DOCTYPE html
|
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml"
|
xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:p="http://primefaces.org/ui"
|
xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
|
xmlns:c="http://java.sun.com/jsp/jstl/core">
|
<ui:composition>
|
<h:form id="warehouseStatusMngForm">
|
<p:panel styleClass="center-header">
|
<p:outputLabel styleClass="title" value="仓库状态管理"/>
|
<p:panelGrid styleClass="filter" columns="7">
|
|
<p:outputLabel value="仓库名:"/>
|
<p:selectOneMenu value="#{warehouseStatusController.name}">
|
<f:selectItem itemLabel="全部" itemValue="#{null}" noSelectionOption="true"/>
|
<f:selectItems value="#{sysWarehouseService.getSysWarehouseList(null,null,null,null)}"
|
var="item" itemLabel="#{item.name}" itemValue="#{item.name}"/>
|
</p:selectOneMenu>
|
|
<p:outputLabel for="startTime" value="开始时间:" />
|
<p:calendar id="startTime" value="#{warehouseStatusController.startTime}"
|
pattern="yyyy-MM-dd HH:mm:ss" locale="zh_CN"/>
|
|
<p:outputLabel for="endTime" value="结束时间:" />
|
<p:calendar id="endTime" value="#{warehouseStatusController.endTime}"
|
pattern="yyyy-MM-dd HH:mm:ss" locale="zh_CN"/>
|
|
<p:commandLink styleClass="search" process="@form" update="@form"/>
|
</p:panelGrid>
|
</p:panel>
|
<style type="text/css">
|
.warning{color:red}
|
</style>
|
<p:panel styleClass="center-body">
|
|
<p:dataTable id="warehouseStatusMngDataTable" styleClass="data-table"
|
paginator="true" paginatorAlwaysVisible="false" paginatorPosition="bottom"
|
lazy="true" value="#{warehouseStatusController.dataModel}" var="row"
|
rowKey="#{row.id}" emptyMessage="无数据"
|
rows="20" pageLinks="5">
|
|
|
<p:column headerText="仓库类型" style="text-align: center;" styleClass="#{row.warning == null?'warning':''}">
|
<h:outputText value="#{row.type}"/>
|
</p:column>
|
|
<p:column headerText="仓库名" style="text-align: center" styleClass="#{row.warning == null?'warning':''}">
|
<h:outputText value="#{row.name}" />
|
</p:column>
|
|
<p:column headerText="温度" style="text-align: center" styleClass="#{row.warning == null?'warning':''}">
|
<h:outputText
|
value="#{row.temperature}" />
|
</p:column>
|
|
<p:column headerText="湿度" style="text-align: center" styleClass="#{row.warning == null?'warning':''}">
|
<h:outputText
|
value="#{row.humidity}"/>
|
</p:column>
|
|
<p:column headerText="提交人" style="text-align: center" styleClass="#{row.warning == null?'warning':''}">
|
<h:outputText
|
value="#{row.creator}"/>
|
</p:column>
|
|
<p:column headerText="日期" style="text-align: center" styleClass="#{row.warning == null?'warning':''}">
|
<h:outputText
|
value="#{row.selectDate}">
|
<f:convertDateTime pattern="yyyy-M-d HH:mm:ss" /></h:outputText>
|
</p:column>
|
|
|
|
|
</p:dataTable>
|
</p:panel>
|
</h:form>
|
</ui:composition>
|
</html>
|