<?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="laboratoryStoreForm">
|
<p:panel styleClass="center-header">
|
<p:outputLabel styleClass="title" value="实验室库存管理 > 临时存放"></p:outputLabel>
|
</p:panel>
|
<p:panel styleClass="center-body">
|
<p:panel styleClass="apply-mng-new-body">
|
<p:panelGrid styleClass="info grid-padding-bottom2" columns="2">
|
<p:outputLabel value="实验室:"></p:outputLabel>
|
<p:selectOneMenu
|
value="#{laboratoryStockMngController.laboratoryId}"
|
required="true" requiredMessage="请选择实验室">
|
<p:ajax listener="#{laboratoryStockMngController.onLaboratoryChange}" update="laboratoryContainerMenu" />
|
<f:selectItem itemLabel="选择实验室" itemValue="" noSelectionOption="true" />
|
<f:selectItems
|
value="#{sysLaboratoryService.getAllSysLaboratoryList()}"
|
var="item" itemLabel="#{item.name}" itemValue="#{item.id}"></f:selectItems>
|
</p:selectOneMenu>
|
|
<p:outputLabel value="临时存储库:"></p:outputLabel>
|
<p:selectOneMenu id="laboratoryContainerMenu"
|
value="#{laboratoryStockMngController.laboratoryContainerId}"
|
required="true" requiredMessage="请选择临时存储库">
|
<f:selectItem itemLabel="选择临时存储库" itemValue="" noSelectionOption="true" />
|
<f:selectItems
|
value="#{laboratoryStockMngController.laboratoryContainers}"
|
var="item" itemLabel="#{item.name}" itemValue="#{item.id}"></f:selectItems>
|
</p:selectOneMenu>
|
</p:panelGrid>
|
|
<p:panel styleClass="btn">
|
<p:commandButton value="取消" process="@this"
|
update=":centerRootPanel"
|
actionListener="#{laboratoryStockMngController.onCancelBtnClick}"
|
styleClass="cancel-btn"></p:commandButton>
|
<p:commandButton value="确定" process="@form"
|
update=":centerRootPanel"
|
actionListener="#{laboratoryStockMngController.onSaveBtnClick}"
|
styleClass="save-btn">
|
<p:confirm header="确认" message="确认操作?"></p:confirm>
|
</p:commandButton>
|
</p:panel>
|
</p:panel>
|
|
<p:dataTable id="laboratoryStoreDataTable" styleClass="data-table" paginator="true"
|
paginatorAlwaysVisible="false" paginatorPosition="bottom"
|
value="#{laboratoryStockMngController.reagentStoreDataModel}" lazy="true"
|
var="row" rowKey="#{row.id}" emptyMessage="无数据"
|
selection="#{laboratoryStockMngController.selectedStoreList}"
|
rows="20" pageLinks="5">
|
<p:column selectionMode="multiple"
|
style="width: 30px;text-align: center;" />
|
|
<p:column headerText="试剂名称">
|
<h:outputText value="#{row.reagent.name}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="CAS">
|
<h:outputText value="#{row.reagent.cas}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="厂家">
|
<h:outputText value="#{baseMetaService.getBaseMetaValue(row.reagent.productHome)}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="规格">
|
<h:outputText
|
value="#{baseMetaService.getBaseMetaValue(row.reagent.reagentFormat)}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="包装">
|
<h:outputText
|
value="#{''.concat(row.reagent.mainMetering).concat(baseMetaService.getBaseMetaValue(row.reagent.reagentUnit))}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="批号">
|
<h:outputText value="#{row.articleNumber}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="价格">
|
<h:outputText value="#{row.reagent.price}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="条形码">
|
<h:outputText value="#{row.reagentCode}" />
|
</p:column>
|
|
<p:column headerText="申领人">
|
<h:outputText value="#{row.userName}" />
|
</p:column>
|
</p:dataTable>
|
</p:panel>
|
</h:form>
|
</ui:composition>
|
</html>
|