<?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="warehouseReagentUseForm">
|
<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="10">
|
<p:outputLabel value="申领人:"></p:outputLabel>
|
|
<p:autoComplete value="#{warehouseStockMngController.userId}" completeMethod="#{warehouseStockMngController.getUserSelectList}"
|
var="item"
|
dropdown="true"
|
styleClass="apply-user-autocomplete"
|
itemLabel="#{!empty warehouseStockMngController.userId?warehouseStockMngController.getSelectedUserById(warehouseStockMngController.userId).name : item.name}"
|
itemValue="#{item.id}" forceSelection="true">
|
<p:ajax event="itemSelect" listener="#{warehouseStockMngController.resetLaboratory()}" process="@this" update="@this,experments,stacks" />
|
<p:column>
|
<h:outputText value="#{item.name}" />
|
</p:column>
|
</p:autoComplete>
|
<!-- <p:outputLabel value="课题名称:"></p:outputLabel>
|
<p:selectOneMenu value="#{warehouseStockMngController.projectNum}"
|
required="true" requiredMessage="请选择课题名称">
|
<f:selectItems value="#{baseMetaService.getBaseMetaList(constants.BASE_META_GROUP_PROJECT_NUM)}"
|
var="item" itemLabel="#{item.metaValue}" itemValue="#{item.id}"></f:selectItems>
|
</p:selectOneMenu>-->
|
<p:outputLabel value="实验室:" style="margin-left: 20px"></p:outputLabel>
|
<p:selectOneMenu value="#{warehouseStockMngController.laboratoryId}"
|
id="experments">
|
<f:selectItems value="#{warehouseStockMngController.laboratory}"
|
var="item" itemLabel="#{item.name}" itemValue="#{item.id}"></f:selectItems>
|
<f:ajax listener="#{warehouseStockMngController.resetLaboratoryContainers}" render="stacks"/>
|
</p:selectOneMenu>
|
<p:outputLabel value="实验室试剂柜:"></p:outputLabel>
|
<p:selectOneMenu value="#{warehouseStockMngController.laboratoryContainerId}" id="stacks"
|
>
|
<f:selectItems value="#{warehouseStockMngController.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="#{warehouseStockMngController.onCancelBtnClick}"
|
styleClass="cancel-btn"></p:commandButton>
|
<p:commandButton value="重置" process="@this" update="@form"
|
actionListener="#{warehouseStockMngController.onResetBtnClick}"
|
styleClass="reset-btn"></p:commandButton>
|
<p:commandButton value="保存" process="@form" update=":centerRootPanel"
|
actionListener="#{warehouseStockMngController.onSaveBtnClickForPerson}"
|
styleClass="save-btn">
|
<p:confirm header="确认" message="确认操作?"></p:confirm>
|
</p:commandButton>
|
</p:panel>
|
</p:panel>
|
|
<p:dataTable id="warehouseReagentUseDataTableForPerson" styleClass="data-table"
|
paginator="true" paginatorAlwaysVisible="false" paginatorPosition="bottom"
|
lazy="true" value="#{warehouseStockMngController.selectedListForPerson}" var="row"
|
rowKey="#{row.id}" emptyMessage="无数据">
|
<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="#{row.reagent.productHome}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="规格型号">
|
<h:outputText value="#{row.reagent.reagentFormat}"></h:outputText>
|
</p:column>
|
<p:column headerText="包装">
|
<h:outputText value="#{row.reagent.mainMetering}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="批号">
|
<h:outputText value="#{row.articleNumber}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="申请数量">
|
<h:outputText value="#{row.num}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="已领用数量">
|
<h:outputText value="#{row.used}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="领用数量">
|
<h:outputText value="#{row.selectNum!=null?row.selectNum:0}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="条形码">
|
<p:commandButton value="操作" styleClass="edit-btn" process="@form"
|
actionListener="#{warehouseStockMngController.onReagentCodeBtnClickForPerson(row)}"
|
update=":reagentCodeDialogForPerson">
|
</p:commandButton>
|
</p:column>
|
</p:dataTable>
|
</p:panel>
|
</h:form>
|
|
<p:dialog modal="true" header="领用详情" appendTo="@(body)" id="reagentCodeDialogForPerson"
|
widgetVar="reagentCodeDialogForPerson" resizable="false" width="800" class="ui-dialog">
|
<p:tabView dynamic="true" style="margin-left: 26px">
|
<p:tab title="补贴条码">
|
<h:form id="reagentCodeDialogForm2">
|
<!--<p:panel styleClass="center-header content2">-->
|
<p:panelGrid styleClass="center-header content2">
|
<p:row>
|
<p:column><p:outputLabel value="领用数量:"></p:outputLabel></p:column>
|
<p:column><p:inputNumber value="#{warehouseStockMngController.useNum}"
|
minValue="0" decimalPlaces="0"
|
required="true" requiredMessage="请输入领用数量" id="useNum"/></p:column>
|
<p:column></p:column>
|
<p:column></p:column>
|
</p:row>
|
<p:row>
|
<p:column><p:outputLabel value="条形码开始">
|
<p:commandLink value="自动生成" process="@this useNum startReagentCode" action="#{warehouseStockMngController.handleEventForPerson}" update="endReagentCode" >
|
|
</p:commandLink>
|
</p:outputLabel></p:column>
|
<p:column><p:inputText id="startReagentCode" value="#{warehouseStockMngController.startReagentCodeForPerson}" maxlength="32" required="true" requiredMessage="请输入条形码开始"/></p:column>
|
<p:column><p:outputLabel value="条形码结束"></p:outputLabel></p:column>
|
<p:column><p:inputText id="endReagentCode" value="#{warehouseStockMngController.endReagentCodeForPerson}" maxlength="32" required="true" requiredMessage="请输入条形码结束"/></p:column>
|
</p:row>
|
|
|
</p:panelGrid>
|
<!--</p:panel>-->
|
<p:panel styleClass="btn" style="text-align: right">
|
<p:commandButton value="确定"
|
actionListener="#{warehouseStockMngController.onYesBtnClickForPerson2}"
|
process="@form"
|
update=":warehouseReagentUseForm:warehouseReagentUseDataTableForPerson"
|
styleClass="yes-btn">
|
</p:commandButton>
|
</p:panel>
|
</h:form>
|
</p:tab>
|
<p:tab title="库中领取">
|
<h:form id="reagentCodeDialogForm">
|
<p:panel styleClass="center-header content2">
|
<p:panelGrid styleClass="filter" columns="6">
|
<p:outputLabel value="领用数量:"></p:outputLabel>
|
<p:inputNumber value="#{warehouseStockMngController.useNum}"
|
minValue="0" decimalPlaces="0" style="width: 100%"
|
required="true" requiredMessage="请输入领用数量"/>
|
<!--<p:outputLabel value="条形码:"></p:outputLabel>
|
<p:inputText value="#{warehouseStockMngController.reagentCode}"></p:inputText>
|
|
<p:commandLink styleClass="search" process="@form" update="@form"></p:commandLink>-->
|
</p:panelGrid>
|
</p:panel>
|
<p:panel styleClass="center-body" style="margin-top:20px!important;max-height: 200px;overflow-y: auto;">
|
<p:selectManyCheckbox id="reagentCodeGrid"
|
value="#{warehouseStockMngController.reagentCodeSelectedList}"
|
layout="grid" columns="4">
|
<f:selectItems
|
value="#{warehouseStockMngController.reagentStatusSelectListForPerson}" var="item"
|
itemLabel="#{item.reagentCode}" itemValue="#{item.id}" />
|
</p:selectManyCheckbox>
|
</p:panel>
|
|
<p:panel styleClass="btn" style="text-align: right">
|
<p:commandButton value="确定"
|
actionListener="#{warehouseStockMngController.onYesBtnClickForPerson}"
|
process="@form"
|
update=":warehouseReagentUseForm:warehouseReagentUseDataTableForPerson"
|
styleClass="yes-btn">
|
</p:commandButton>
|
</p:panel>
|
</h:form>
|
</p:tab>
|
|
</p:tabView>
|
|
</p:dialog>
|
|
</ui:composition>
|
</html>
|