<?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="warehouseMngForm">
|
<p:panel styleClass="center-header">
|
<p:outputLabel styleClass="title" value="仓库管理"></p:outputLabel>
|
<p:panelGrid styleClass="filter" columns="5">
|
<p:outputLabel value="仓库类型:"></p:outputLabel>
|
<p:selectOneMenu value="#{warehouseMngController.type}">
|
<f:selectItem itemLabel="全部" itemValue="#{null}" noSelectionOption="true"></f:selectItem>
|
<f:selectItems
|
value="#{baseMetaService.getBaseMetaList(constants.BASE_META_GROUP_WAREHOUSE_TYPE)}"
|
var="item" itemLabel="#{item.metaValue}" itemValue="#{item.id}"></f:selectItems>
|
</p:selectOneMenu>
|
|
<p:outputLabel value="仓库名:"></p:outputLabel>
|
<p:inputText value="#{warehouseMngController.name}"></p:inputText>
|
|
<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="new-btn" process="@this"
|
actionListener="#{warehouseMngController.onNewBtnClick}"
|
oncomplete="PF('dialog').show();" update=":dialog,:dialogForm"></p:commandButton>
|
<p:commandButton value="修改" styleClass="edit-btn" process="@form"
|
actionListener="#{warehouseMngController.onEditBtnClick}"
|
update=":dialog,:dialogForm"></p:commandButton>
|
<p:commandButton value="删除" styleClass="del-btn" process="@form"
|
actionListener="#{warehouseMngController.onDeleteBtnClick}" update="@form">
|
<p:confirm header="确认" message="确认操作?"></p:confirm>
|
</p:commandButton>
|
</p:panelGrid>
|
|
<p:dataTable id="warehouseMngDataTable" styleClass="data-table"
|
paginator="true" paginatorAlwaysVisible="false" paginatorPosition="bottom"
|
lazy="true" value="#{warehouseMngController.dataModel}" var="row"
|
rowKey="#{row.id}" emptyMessage="无数据"
|
selection="#{warehouseMngController.selectedList}" rows="20" pageLinks="5">
|
<p:column selectionMode="multiple" style="width: 30px;text-align: center;" />
|
<p:column headerText="仓库类型">
|
<h:outputText value="#{baseMetaService.getBaseMetaValue(row.type)}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="仓库名">
|
<h:outputText value="#{row.name}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="状态码">
|
<h:outputText value="#{row.infoCode}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="地址条码">
|
<h:outputText value="#{row.barCode}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="使用地点">
|
<h:outputText
|
value="#{'楼号:'.concat(row.location1).concat(' - 地址号:'.concat(row.location2))}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="温度最大值" width="50">
|
<h:outputText
|
value="#{row.temperatureMax}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="温度最小值" width="50">
|
<h:outputText
|
value="#{row.temperatureMin}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="湿度最大值" width="50">
|
<h:outputText
|
value="#{row.humidityMax}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="湿度最小值" width="50">
|
<h:outputText
|
value="#{row.humidityMin}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="负责部门">
|
<h:outputText value="#{baseMetaService.getBaseMetaValue(row.department)}"/>
|
</p:column>
|
</p:dataTable>
|
</p:panel>
|
</h:form>
|
<p:dialog modal="true"
|
header="#{warehouseMngController.action==constants.ACTION_ADD?'新建':'修改'}"
|
appendTo="@(body)" id="dialog" widgetVar="dialog" resizable="false"
|
width="800">
|
<h:form id="dialogForm">
|
<p:panelGrid columns="4" styleClass="content2 grid-padding-bottom2">
|
|
<p:outputLabel value="仓库类型"></p:outputLabel>
|
<p:selectOneMenu value="#{warehouseMngController.sysWarehouse.type}"
|
required="true" requiredMessage="请选择仓库类型">
|
<f:selectItems
|
value="#{baseMetaService.getBaseMetaList(constants.BASE_META_GROUP_WAREHOUSE_TYPE)}"
|
var="item" itemLabel="#{item.metaValue}" itemValue="#{item.id}"></f:selectItems>
|
</p:selectOneMenu>
|
|
<p:outputLabel value="仓库名"></p:outputLabel>
|
<p:inputText value="#{warehouseMngController.sysWarehouse.name}"
|
maxlength="100" required="true" requiredMessage="请输入仓库名" disabled="#{warehouseMngController.action==constants.ACTION_ADD?false:true}"></p:inputText>
|
|
<p:outputLabel value="状态码"></p:outputLabel>
|
<p:inputText value="#{warehouseMngController.sysWarehouse.infoCode}"
|
maxlength="100" required="true" requiredMessage="请输入状态码"></p:inputText>
|
|
<p:outputLabel value="地点条码"></p:outputLabel>
|
<p:inputText value="#{warehouseMngController.sysWarehouse.barCode}"
|
maxlength="200" required="true" requiredMessage="请输入地点条码"></p:inputText>
|
|
<p:outputLabel value="楼号"></p:outputLabel>
|
<p:inputText value="#{warehouseMngController.sysWarehouse.location1}"
|
maxlength="100"></p:inputText>
|
|
<p:outputLabel value="地址号"></p:outputLabel>
|
<p:inputText value="#{warehouseMngController.sysWarehouse.location2}"
|
maxlength="100"></p:inputText>
|
|
<p:outputLabel value="负责部门"></p:outputLabel>
|
<p:selectOneMenu value="#{warehouseMngController.sysWarehouse.department}"
|
required="true" requiredMessage="请选择负责部门">
|
<f:selectItems value="#{baseMetaService.getBaseMetaList(constants.BASE_META_GROUP_USER_DEPARTMENT)}"
|
var="item" itemLabel="#{item.metaValue}" itemValue="#{item.id}"></f:selectItems>
|
</p:selectOneMenu>
|
|
<p:outputLabel value="温度最大值"></p:outputLabel>
|
<p:inputNumber value="#{warehouseMngController.sysWarehouse.temperatureMax}"
|
modifyValueOnWheel="false"
|
decimalPlaces="4"/>
|
|
<p:outputLabel value="温度最小值"></p:outputLabel>
|
<p:inputNumber value="#{warehouseMngController.sysWarehouse.temperatureMin}"
|
modifyValueOnWheel="false"
|
decimalPlaces="4"/>
|
|
<p:outputLabel value="湿度最大值"></p:outputLabel>
|
<p:inputNumber value="#{warehouseMngController.sysWarehouse.humidityMax}"
|
modifyValueOnWheel="false"
|
decimalPlaces="4"/>
|
|
<p:outputLabel value="湿度最大值"></p:outputLabel>
|
<p:inputNumber value="#{warehouseMngController.sysWarehouse.humidityMin}"
|
modifyValueOnWheel="false"
|
decimalPlaces="4"/>
|
</p:panelGrid>
|
<p:panel styleClass="btn">
|
<p:commandButton value="保存"
|
actionListener="#{warehouseMngController.onSaveBtnClick}" process="@form"
|
update=":warehouseMngForm:warehouseMngDataTable">
|
<p:confirm header="确认" message="确认操作?"></p:confirm>
|
</p:commandButton>
|
</p:panel>
|
</h:form>
|
</p:dialog>
|
</ui:composition>
|
</html>
|