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>
    <p:panel styleClass="center-header">
        <p:outputLabel styleClass="title" value="需求管理 > 生成订单"></p:outputLabel>
    </p:panel>
    <p:panel styleClass="center-body">
        <h:form id="requireMngNewForm">
            <p:panel styleClass="apply-mng-new-body">
                <p:panelGrid styleClass="info grid-padding-bottom2" columns="2">
                    <p:outputLabel value="订单名称:"></p:outputLabel>
                    <p:inputText value="#{requireMngController.opeOrder.orderName}"
                                 required="true" requiredMessage="请输入订单名称。"></p:inputText>
 
                    <p:outputLabel value="备注:"></p:outputLabel>
                    <p:inputTextarea value="#{requireMngController.opeOrder.memo}"
                                     autoResize="false" style="width: 400px;height: 100px"></p:inputTextarea>
                </p:panelGrid>
 
                <p:panel styleClass="btn">
                    <p:commandButton value="取消" process="@this" update=":centerRootPanel"
                                     actionListener="#{requireMngController.onCancelBtnClick}"
                                     styleClass="cancel-btn"></p:commandButton>
                    <p:commandButton value="确定" process="@form" update=":centerRootPanel"
                                     actionListener="#{requireMngController.onSaveBtnClick}"
                                     styleClass="save-btn">
                        <p:confirm header="确认" message="确认操作?"></p:confirm>
                    </p:commandButton>
                </p:panel>
            </p:panel>
 
            <p:dataTable styleClass="data-table"
                         paginator="true" paginatorAlwaysVisible="false" paginatorPosition="bottom"
                         value="#{requireMngController.selectedList}" var="row" rowKey="#{row.id}"
                         emptyMessage="无数据"
                         rows="20" pageLinks="5">
                <p:column headerText="申购编号">
                    <h:outputText value="#{row.applyCode}"></h:outputText>
                </p:column>
 
                <p:column headerText="申购产品">
                    <h:outputText value="#{row.reagent!=null?row.reagent.name:''}"></h:outputText>
                </p:column>
 
                <p:column headerText="CAS">
                    <h:outputText value="#{row.reagent!=null?row.reagent.cas:''}"></h:outputText>
                </p:column>
 
                <p:column headerText="指定供应商">
                    <h:outputText value="#{row.reagent!=null?row.reagent.supplierName:''}"></h:outputText>
                </p:column>
                <p:column headerText="厂家">
                    <h:outputText value="#{row.reagent!=null?row.reagent.productHome:''}"></h:outputText>
                </p:column>
 
                <p:column headerText="规格">
                    <h:outputText value="#{row.reagent!=null?row.reagent.reagentFormat:''}"></h:outputText>
                </p:column>
 
                <p:column headerText="包装">
                    <h:outputText value="#{row.reagent!=null?(''.concat(row.reagent.mainMetering).concat(row.reagent.reagentUnit)):''}"></h:outputText>
                </p:column>
 
                <p:column headerText="含税售价">
                    <h:outputText value="#{row.applyPrice}"></h:outputText>
                </p:column>
 
                <p:column headerText="每箱数量">
                    <h:outputText value="#{row.reagent!=null?row.reagent.perBox:''}"></h:outputText>
                </p:column>
 
                <p:column headerText="申购数量">
                    <h:outputText value="#{row.num}"></h:outputText>
                </p:column>
 
                <p:column headerText="合计">
                    <h:outputText value="#{requireMngController.calTotal(row)}"></h:outputText>
                </p:column>
 
                <p:columnGroup type="footer">
                    <p:row>
                        <p:column colspan="8"></p:column>
                        <p:column footerText="订单总计"></p:column>
                        <p:column style="text-align: left" footerText="#{requireMngController.calTotalList(requireMngController.selectedList)}"></p:column>
                    </p:row>
                </p:columnGroup>
            </p:dataTable>
        </h:form>
    </p:panel>
</ui:composition>
</html>