lyfO_o
2021-04-23 44d8520e82869cd1e95b86e9d4207143f43a0e78
实验室 柜子 级联问题
已修改3个文件
16 ■■■■ 文件已修改
src/main/java/com/nanometer/smartlab/controller/WarehouseStockMngController.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/warehouse_reagent_use.xhtml 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/warehouse_reagent_use_person.xhtml 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/nanometer/smartlab/controller/WarehouseStockMngController.java
@@ -2748,6 +2748,8 @@
        //getLaboratoryContainers();
    }
    public void setContainerId(){
    }
    public void resetLaboratoryContainers() {
        laboratoryContainers = null;
        //getLaboratoryContainers();
src/main/webapp/warehouse_reagent_use.xhtml
@@ -48,6 +48,7 @@
                    <p:outputLabel value="实验室试剂柜:"></p:outputLabel>
                    <p:selectOneMenu value="#{warehouseStockMngController.laboratoryContainerId}" id="stacks"
                        >
                        <f:ajax listener="#{warehouseStockMngController.setContainerId}"/>
                        <f:selectItems value="#{warehouseStockMngController.laboratoryContainers}"
                            var="item" itemLabel="#{item.name}" itemValue="#{item.id}"></f:selectItems>
                    </p:selectOneMenu>
@@ -63,7 +64,8 @@
                    <p:commandButton value="重置" process="@this" update="@form"
                        actionListener="#{warehouseStockMngController.onResetBtnClick}"
                        styleClass="reset-btn"></p:commandButton>
                    <p:commandButton value="保存" process="@form" update=":centerRootPanel"
                    <p:commandButton value="保存" process="@this" update=":centerRootPanel"
                                     immediate="true"
                        actionListener="#{warehouseStockMngController.onSaveBtnClick}"
                        styleClass="save-btn">
                        <p:confirm header="确认" message="确认操作?"></p:confirm>
@@ -193,7 +195,8 @@
                </p:column>
                <p:column headerText="条形码">
                    <p:commandButton value="操作" styleClass="edit-btn" process="@form"
                    <p:commandButton value="操作" styleClass="edit-btn" process="@this"
                                     immediate="true"
                        actionListener="#{warehouseStockMngController.onReagentCodeBtnClick(row)}"
                        update=":reagentCodeDialog">
                    </p:commandButton>
src/main/webapp/warehouse_reagent_use_person.xhtml
@@ -45,6 +45,7 @@
                    <p:outputLabel value="实验室试剂柜:"></p:outputLabel>
                    <p:selectOneMenu value="#{warehouseStockMngController.laboratoryContainerId}" id="stacks"
                        >
                        <f:ajax listener="#{warehouseStockMngController.setContainerId}"/>
                        <f:selectItems value="#{warehouseStockMngController.laboratoryContainers}"
                            var="item" itemLabel="#{item.name}" itemValue="#{item.id}"></f:selectItems>
                    </p:selectOneMenu>
@@ -57,7 +58,8 @@
                    <p:commandButton value="重置" process="@this" update="@form"
                        actionListener="#{warehouseStockMngController.onResetBtnClick}"
                        styleClass="reset-btn"></p:commandButton>
                    <p:commandButton value="保存" process="@form" update=":centerRootPanel"
                    <p:commandButton value="保存" process="@this" update=":centerRootPanel"
                                     immediate="true"
                        actionListener="#{warehouseStockMngController.onSaveBtnClickForPerson}"
                        styleClass="save-btn">
                        <p:confirm header="确认" message="确认操作?"></p:confirm>
@@ -109,7 +111,8 @@
                </p:column>
                <p:column headerText="条形码">
                    <p:commandButton value="操作" styleClass="edit-btn" process="@form"
                    <p:commandButton value="操作" styleClass="edit-btn" process="@this"
                                     immediate="true"
                        actionListener="#{warehouseStockMngController.onReagentCodeBtnClickForPerson(row)}"
                        update=":reagentCodeDialogForPerson,@(.startReagentCode),@(.endReagentCode)">
                    </p:commandButton>