kongzy
2024-07-01 47a751cb301d05276ae5d75145d57b2d090fe4e1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<?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="laboratoryStockMngForm">
        <p:panel styleClass="center-header">
            <p:outputLabel styleClass="title" value="实验室库存管理"></p:outputLabel>
            <p:panel styleClass="center-header">
                <p:panelGrid styleClass="filter" columns="10">
 
                    <p:outputLabel value="试剂名称:"></p:outputLabel>
                    <p:inputText value="#{laboratoryStockMngController.reagentId}"></p:inputText>
                    <!--<p:selectOneMenu value="#{laboratoryStockMngController.reagentId}">
                        <f:selectItem itemLabel="全部" itemValue="#{null}"
                            noSelectionOption="true"></f:selectItem>
                        <f:selectItems
                            value="#{laboratoryStockMngController.reagentSelectList}"
                            var="item" itemLabel="#{item.name}" itemValue="#{item.id}"></f:selectItems>
                    </p:selectOneMenu>-->
 
                    <p:outputLabel value="条形码:"></p:outputLabel>
                    <p:inputText value="#{laboratoryStockMngController.reagentCode}"></p:inputText>
 
                    <p:outputLabel value="实验室:"></p:outputLabel>
                    <p:inputText value="#{laboratoryStockMngController.labName}"></p:inputText>
 
                    <p:commandLink styleClass="search" process="@form" update="@form"></p:commandLink>
 
                    <p:commandButton value="导出" styleClass="store-btn" ajax="false" actionListener="#{laboratoryStockMngController.exportLabStock}"
                                     update=":centerRootPanel"></p:commandButton>
 
                    <p:commandButton value="临时存放" styleClass="store-btn" process="@form" actionListener="#{laboratoryStockMngController.onStoreBtnClick}"
                    update=":centerRootPanel"></p:commandButton>
                </p:panelGrid>
 
 
            </p:panel>
        </p:panel>
        <p:panel styleClass="center-body">
            <p:dataTable id="laboratoryStockMngDataTable" styleClass="data-table"
                paginator="true" paginatorAlwaysVisible="false"
                paginatorPosition="bottom" lazy="true"
                value="#{laboratoryStockMngController.reagentStatusDataModel}"
                var="row" rowKey="#{row.id}" emptyMessage="无数据" rows="20"
                pageLinks="5">
                <p:column headerText="实验室名" width="150">
                    <h:outputText value="#{row.houseName}"></h:outputText>
                </p:column>
 
                <p:column headerText="临时存储库条码">
                    <h:outputText value="#{row.containerCode}"></h:outputText>
                </p:column>
 
                <p:column headerText="试剂条形码" width="200">
                    <h:outputText value="#{row.reagentCode}"></h:outputText>
                </p:column>
 
                <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.remainder}"></h:outputText>
                </p:column>
 
            </p:dataTable>
        </p:panel>
    </h:form>
</ui:composition>
</html>