<?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">
|
<head></head>
|
<ui:composition>
|
<h:form id="sysWaringMngForm">
|
<p:panel styleClass="center-header">
|
<p:outputLabel styleClass="title" value="人员违规操作预警"></p:outputLabel>
|
|
<p:panelGrid styleClass="filter" columns="7">
|
<p:outputLabel value="货柜条码:"></p:outputLabel>
|
<p:inputText value="#{sysWarningsController.containerCode}"></p:inputText>
|
|
<p:outputLabel value="报警时间:"></p:outputLabel>
|
<p:calendar value="#{sysWarningsController.startTime}" converter="timestampConvert"
|
pattern="yyyy-MM-dd HH:mm:ss" locale="zh_CN"></p:calendar>
|
<p:outputLabel value=" ~ " style="margin-left: 10px;margin-right: 10px"></p:outputLabel>
|
<p:calendar value="#{sysWarningsController.endTime}" converter="timestampConvert"
|
pattern="yyyy-MM-dd HH:mm:ss" locale="zh_CN"></p:calendar>
|
|
<p:commandLink styleClass="search" process="@form" update="@form"></p:commandLink>
|
</p:panelGrid>
|
</p:panel>
|
<p:panel styleClass="center-body">
|
<p:panelGrid columns="3" styleClass="btn">
|
<p:commandButton value="修改" styleClass="edit-btn" process="@form"
|
actionListener="#{sysWarningsController.onEditBtnClick}"
|
update=":dialog,:dialogForm"/>
|
</p:panelGrid>
|
<p:dataTable id="sysWarningsMngDataTable" styleClass="data-table"
|
paginator="true" paginatorAlwaysVisible="false" paginatorPosition="bottom"
|
lazy="true" value="#{sysWarningsController.dataModel}" var="row" rowKey="#{row.id}"
|
emptyMessage="无数据" selection="#{sysWarningsController.selectedList}"
|
rows="20" pageLinks="5">
|
<p:column selectionMode="multiple" style="width: 30px;text-align: center;"/>
|
|
|
<p:column headerText="场所名">
|
<h:outputText value="#{row.typeName}"></h:outputText>
|
</p:column>
|
<p:column headerText="货柜条码">
|
<h:outputText value="#{row.containerId}"></h:outputText>
|
</p:column>
|
<p:column headerText="货柜类型">
|
<h:outputText value="#{row.type}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="违规人员">
|
<h:outputText value="#{row.username}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="违规类别">
|
<h:outputText value="#{row.warningName}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="报警时间">
|
<h:outputText value="#{row.warningTime}">
|
<f:convertDateTime pattern="yyyy-MM-dd HH:mm:ss" locale="zh_CN"></f:convertDateTime>
|
</h:outputText>
|
</p:column>
|
|
<p:column headerText="报警级别">
|
<h:outputText value="#{row.warningLevel}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="扣分">
|
<h:outputText value="#{row.warningPoint}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="状态" style="text-align:center;">
|
<p:outputLabel value="未处理" styleClass="warning-status undo" rendered="#{row.status==null}"/>
|
<p:outputLabel value="未处理" styleClass="warning-status undo" rendered="#{row.status == 0}"/>
|
<p:outputLabel value="已处理" styleClass="warning-status done" rendered="#{row.status == 1}"/>
|
</p:column>
|
|
<p:column headerText="备注">
|
<h:outputText value="#{row.memo}"/>
|
</p:column>
|
</p:dataTable>
|
</p:panel>
|
</h:form>
|
|
|
<p:dialog modal="true" header="修改" appendTo="@(body)"
|
id="dialog" widgetVar="dialog"
|
resizable="false" width="420">
|
<h:form id="dialogForm">
|
<p:panelGrid columns="2" styleClass="content">
|
|
<p:outputLabel value="处理状态"/>
|
<p:selectOneRadio rendered="${sysWarningsController.selectedWarning.status == 0}" value="#{sysWarningsController.selectedWarning.status}" required="true" requiredMessage="请选择处理状态">
|
<f:selectItem itemLabel="已处理" itemValue="1" />
|
<f:selectItem itemLabel="未处理" itemValue="0" />
|
</p:selectOneRadio>
|
<p:selectOneRadio rendered="${sysWarningsController.selectedWarning.status == null}" value="#{sysWarningsController.selectedWarning.status}" required="true" requiredMessage="请选择处理状态">
|
<f:selectItem itemLabel="已处理" itemValue="1" />
|
<f:selectItem itemLabel="未处理" itemValue="0" />
|
</p:selectOneRadio>
|
<p:outputLabel value="已完成" rendered="${sysWarningsController.selectedWarning.status == 1}"/>
|
<p:outputLabel value="货柜条码"/>
|
<p:outputLabel value="#{sysWarningsController.selectedWarning.containerId}"/>
|
|
|
<p:outputLabel value="违规人员"/>
|
<p:outputLabel value="#{sysWarningsController.selectedWarning.username}"/>
|
<p:outputLabel value="处理备注"/>
|
<p:inputTextarea autoResize="false" style="height: 80px"
|
value="#{sysWarningsController.selectedWarning.memo}"
|
maxlength="150"/>
|
|
|
</p:panelGrid>
|
|
<p:panel styleClass="btn">
|
<p:commandButton value="保存" actionListener="#{sysWarningsController.onSaveBtnClick}"
|
process="@form" update=":sysWaringMngForm:sysWarningsMngDataTable">
|
<p:confirm header="确认" message="确认操作?"/>
|
</p:commandButton>
|
</p:panel>
|
</h:form>
|
</p:dialog>
|
|
</ui:composition>
|
</html>
|