李宇
2021-02-04 bc37418859ffcf1ce92a1176bc7c9b21a8e293b4
修改仓库下拉
已修改2个文件
38 ■■■■ 文件已修改
src/main/java/com/nanometer/smartlab/controller/WarehouseContainerMngController.java 36 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/user_mng.xhtml 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/nanometer/smartlab/controller/WarehouseContainerMngController.java
@@ -51,14 +51,14 @@
     * 选中的list
     */
    private List<SysWarehouseContainer> selectedList;
    private List<SysController> controllers;
    private String warehouseType;
    private String warehouseName;
    private int action;
    /** 左右门危险性质显示Flag */
    private int characterRenderedFlag;
@@ -80,7 +80,7 @@
        this.sysWarehouseContainer = this.sysWarehouseContainerService
                .getSysWarehouseContainer(this.selectedList.get(0).getId());
        this.action = Constants.ACTION_EDIT;
        if(this.baseMetaService.getBaseMetaKey(this.sysWarehouseContainer.getType()).equals("200")) {
            // 智能柜时,左右门危险性质可配置
            this.setCharacterRenderedFlag(1);
@@ -89,7 +89,7 @@
            this.sysWarehouseContainer.setCharacterLeft(null);
            this.sysWarehouseContainer.setCharacterRight(null);
        }
        RequestContext.getCurrentInstance().execute("PF('dialog').show()");
    }
@@ -101,24 +101,24 @@
                    FacesUtils.warn("新建对象为空。");
                    return;
                }
                boolean inputCheckFlag = false;
                if(this.sysWarehouseContainer.getContainerCode()==null || this.sysWarehouseContainer.getContainerCode().equals("")) {
                    FacesUtils.error("请输入货柜条码", "请输入货柜条码");
                    inputCheckFlag = true;
                }
                if(this.sysWarehouseContainer.getInfoCode()==null || this.sysWarehouseContainer.getInfoCode().equals("")) {
                    FacesUtils.error("请输入货柜状态码", "请输入货柜状态码");
                    inputCheckFlag = true;
                }
                if(this.sysWarehouseContainer.getName()==null || this.sysWarehouseContainer.getName().equals("")) {
                    FacesUtils.error("请输入货柜名称", "请输入货柜名称");
                    inputCheckFlag = true;
                }
                if(inputCheckFlag) {
                    return;
                }
@@ -139,24 +139,24 @@
                    FacesUtils.warn("修改对象为空。");
                    return;
                }
                boolean inputCheckFlag = false;
                if(this.sysWarehouseContainer.getContainerCode()==null || this.sysWarehouseContainer.getContainerCode().equals("")) {
                    FacesUtils.error("请输入货柜条码", "请输入货柜条码");
                    inputCheckFlag = true;
                }
                if(this.sysWarehouseContainer.getInfoCode()==null || this.sysWarehouseContainer.getInfoCode().equals("")) {
                    FacesUtils.error("请输入货柜状态码", "请输入货柜状态码");
                    inputCheckFlag = true;
                }
                if(this.sysWarehouseContainer.getName()==null || this.sysWarehouseContainer.getName().equals("")) {
                    FacesUtils.error("请输入货柜名称", "请输入货柜名称");
                    inputCheckFlag = true;
                }
                if(inputCheckFlag) {
                    return;
                }
@@ -193,7 +193,7 @@
            FacesUtils.warn("操作失败。");
        }
    }
    public void containerTypeChanged() {
        if(this.baseMetaService.getBaseMetaKey(this.sysWarehouseContainer.getType()).equals("200")) {
@@ -264,10 +264,8 @@
    }
    public List<SysController> getControllers() {
        if(this.controllers == null)
        {
            this.controllers = this.sysControllerService.getAllControllerList();
        }
        this.controllers = this.sysControllerService.getAllControllerList();
        return controllers;
    }
src/main/webapp/user_mng.xhtml
@@ -189,7 +189,7 @@
                <p:outputLabel value="账号"></p:outputLabel>
                <p:inputText value="#{userMngController.sysUser.account}" maxlength="100"
                             required="true" requiredMessage="请输入账号"
                             disabled="#{userMngController.action == constants.ACTION_EDIT}"></p:inputText>
                             disabled="#{userMngController.action == constants.ACTION_EDIT}" autocomplete="off"></p:inputText>
                <p:outputLabel value="密码" ></p:outputLabel>
                <p:password value="#{userMngController.sysUser.password}" maxlength="100"