<?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="laboratoryContainerMngForm">
|
<p:panel styleClass="center-header">
|
<p:outputLabel styleClass="title" value="实验室临时存储库管理"></p:outputLabel>
|
<p:panelGrid styleClass="filter" columns="9">
|
<p:outputLabel value="实验室类型:"></p:outputLabel>
|
<p:selectOneMenu value="#{laboratoryContainerMngController.laboratoryType}">
|
<f:selectItem itemLabel="全部" itemValue="#{null}" noSelectionOption="true"></f:selectItem>
|
<f:selectItems
|
value="#{baseMetaService.getBaseMetaList(constants.BASE_META_GROUP_LABORATORY_TYPE)}"
|
var="item" itemLabel="#{item.metaValue}" itemValue="#{item.id}"></f:selectItems>
|
</p:selectOneMenu>
|
|
<p:outputLabel value="实验室名:"></p:outputLabel>
|
<p:inputText value="#{laboratoryContainerMngController.laboratoryName}"></p:inputText>
|
|
<p:outputLabel value="课题名称:"></p:outputLabel>
|
<p:inputText value="#{laboratoryContainerMngController.project}"></p:inputText>
|
|
|
<p:commandLink styleClass="search" process="@form" update="@form"></p:commandLink>
|
</p:panelGrid>
|
</p:panel>
|
<p:panel styleClass="center-body">
|
<p:panelGrid columns="6" styleClass="btn">
|
<p:commandButton value="新建" styleClass="new-btn" process="@form"
|
actionListener="#{laboratoryContainerMngController.onNewBtnClick}"
|
update=":dialog,:dialogForm"></p:commandButton>
|
<p:commandButton value="修改" styleClass="edit-btn" process="@form"
|
actionListener="#{laboratoryContainerMngController.onEditBtnClick}"
|
update=":dialog,:dialogForm"></p:commandButton>
|
<p:commandButton value="删除" styleClass="del-btn" process="@form"
|
actionListener="#{laboratoryContainerMngController.onDeleteBtnClick}"
|
update="@form">
|
<p:confirm header="确认" message="确认操作?"></p:confirm>
|
</p:commandButton>
|
<p:commandButton value="导入" styleClass="import-btn" onclick="importCon()"
|
></p:commandButton>
|
|
<a href="resources/template/实验室临时存储库导入模板.xlsx" style="display: inline-block;"><img src="resources/images/xlsx.png" width="30px;" alt=""/></a>
|
|
<script>
|
function importCon(){
|
$("#laboratoryContainerMngForm\\:importReagentBtn_input").click();
|
}
|
|
</script>
|
</p:panelGrid>
|
|
<p:dataTable id="laboratoryContainerMngDataTable" styleClass="data-table"
|
paginator="true" paginatorAlwaysVisible="false" paginatorPosition="bottom"
|
lazy="true" value="#{laboratoryContainerMngController.dataModel}" var="row"
|
rowKey="#{row.id}" emptyMessage="无数据"
|
selection="#{laboratoryContainerMngController.selectedList}" rows="20"
|
pageLinks="5">
|
<p:column selectionMode="multiple" style="width: 30px;text-align: center;" />
|
<p:column headerText="实验室名">
|
<h:outputText value="#{row.laboratoryName}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="课题组">
|
<h:outputText value="#{row.project}"></h:outputText>
|
</p:column>
|
<p:column headerText="临时存储库条码">
|
<h:outputText value="#{row.containerCode}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="临时存储库类型">
|
<h:outputText value="#{baseMetaService.getBaseMetaValue(row.type)}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="临时存储库状态码">
|
<h:outputText value="#{row.infoCode}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="临时存储库结构">
|
<h:outputText value="#{baseMetaService.getBaseMetaValue(row.structure)}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="临时存储库名称">
|
<h:outputText value="#{row.name}"></h:outputText>
|
</p:column>
|
</p:dataTable>
|
</p:panel>
|
<div style="display: none" id='importDv'>
|
<p:fileUpload fileUploadListener="#{laboratoryContainerMngController.uploadFile}"
|
dragDropSupport="false" id="importReagentBtn" label="导入"
|
update="@form" auto="true" sizeLimit="5000000"
|
mode="advanced"/>
|
</div>
|
</h:form>
|
<p:dialog modal="true"
|
header="#{laboratoryContainerMngController.action==constants.ACTION_ADD?'新建':'修改'}"
|
appendTo="@(body)" id="dialog" widgetVar="dialog" resizable="false"
|
width="1000">
|
<h:form id="dialogForm">
|
<p:panelGrid columns="4" styleClass="content2 grid-padding-bottom2">
|
|
<p:outputLabel value="实验室"></p:outputLabel>
|
<p:selectOneMenu
|
value="#{laboratoryContainerMngController.sysLaboratoryContainer.laboratoryId}"
|
required="true" requiredMessage="请选择实验室">
|
<f:selectItems value="#{sysLaboratoryService.getAllSysLaboratoryList()}" var="item"
|
itemLabel="#{item.name}" itemValue="#{item.id}"></f:selectItems>
|
</p:selectOneMenu>
|
|
<p:outputLabel value="临时存储库条码"></p:outputLabel>
|
<p:inputText
|
value="#{laboratoryContainerMngController.sysLaboratoryContainer.containerCode}"
|
maxlength="100"></p:inputText>
|
|
<p:outputLabel value="临时存储库类型"></p:outputLabel>
|
<p:selectOneMenu
|
value="#{laboratoryContainerMngController.sysLaboratoryContainer.type}"
|
required="true" requiredMessage="请选择临时存储库类型">
|
<p:ajax event="change" listener="#{laboratoryContainerMngController.containerTypeChanged}" process="@form" update="@form"/>
|
<f:selectItems
|
value="#{baseMetaService.getBaseMetaList(constants.BASE_META_GROUP_CONTAINER_TYPE)}"
|
var="item" itemLabel="#{item.metaValue}" itemValue="#{item.id}"></f:selectItems>
|
</p:selectOneMenu>
|
|
<p:outputLabel value="临时存储库状态码"></p:outputLabel>
|
<p:inputText
|
value="#{laboratoryContainerMngController.sysLaboratoryContainer.infoCode}"
|
maxlength="100"></p:inputText>
|
|
<p:outputLabel value="临时存储库结构"></p:outputLabel>
|
<p:selectOneMenu
|
value="#{laboratoryContainerMngController.sysLaboratoryContainer.structure}"
|
required="true" requiredMessage="请选择临时存储库结构">
|
<f:selectItems
|
value="#{baseMetaService.getBaseMetaList(constants.BASE_META_GROUP_CONTAINER_STRUCTURE)}"
|
var="item" itemLabel="#{item.metaValue}" itemValue="#{item.id}"></f:selectItems>
|
</p:selectOneMenu>
|
|
<p:outputLabel value="临时存储库名称"></p:outputLabel>
|
<p:inputText
|
value="#{laboratoryContainerMngController.sysLaboratoryContainer.name}"
|
maxlength="100"></p:inputText>
|
|
<p:outputLabel value="左门危险性质" rendered="#{laboratoryContainerMngController.characterRenderedFlag==1}"></p:outputLabel>
|
<p:selectOneMenu
|
value="#{laboratoryContainerMngController.sysLaboratoryContainer.characterLeft}"
|
required="#{laboratoryContainerMngController.characterRenderedFlag==1}"
|
requiredMessage="左门危险性质"
|
rendered="#{laboratoryContainerMngController.characterRenderedFlag==1}">
|
<f:selectItems
|
value="#{baseMetaService.getBaseMetaList(constants.BASE_META_GROUP_REAGENT_CHARACTER)}"
|
var="item" itemLabel="#{item.metaValue}" itemValue="#{item.id}"></f:selectItems>
|
</p:selectOneMenu>
|
|
<p:outputLabel value="右门危险性质" rendered="#{laboratoryContainerMngController.characterRenderedFlag==1}"></p:outputLabel>
|
<p:selectOneMenu
|
value="#{laboratoryContainerMngController.sysLaboratoryContainer.characterRight}"
|
required="#{laboratoryContainerMngController.characterRenderedFlag==1}"
|
requiredMessage="右门危险性质"
|
rendered="#{laboratoryContainerMngController.characterRenderedFlag==1}">
|
<f:selectItems
|
value="#{baseMetaService.getBaseMetaList(constants.BASE_META_GROUP_REAGENT_CHARACTER)}"
|
var="item" itemLabel="#{item.metaValue}" itemValue="#{item.id}"></f:selectItems>
|
</p:selectOneMenu>
|
|
<p:outputLabel value="课题组"/>
|
<p:selectOneMenu value="#{laboratoryContainerMngController.sysLaboratoryContainer.project}" requiredMessage="请选择课题组">
|
<f:selectItems value="#{sysProjectServiceImpl.getAll()}" var="item" itemValue="#{item.project}" itemLabel="#{item.project}"/>
|
</p:selectOneMenu>
|
|
</p:panelGrid>
|
<p:panel styleClass="btn">
|
<p:commandButton value="保存"
|
actionListener="#{laboratoryContainerMngController.onSaveBtnClick}"
|
process="@form"
|
update=":laboratoryContainerMngForm:laboratoryContainerMngDataTable">
|
<p:confirm header="确认" message="确认操作?"></p:confirm>
|
</p:commandButton>
|
</p:panel>
|
</h:form>
|
</p:dialog>
|
</ui:composition>
|
</html>
|