| | |
| | | * 选中的list |
| | | */ |
| | | private List<SysWarehouseContainer> selectedList; |
| | | |
| | | |
| | | private List<SysController> controllers; |
| | | |
| | | private String warehouseType; |
| | | private String warehouseName; |
| | | |
| | | private int action; |
| | | |
| | | |
| | | /** 左右门危险性质显示Flag */ |
| | | private int characterRenderedFlag; |
| | | |
| | |
| | | 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); |
| | |
| | | this.sysWarehouseContainer.setCharacterLeft(null); |
| | | this.sysWarehouseContainer.setCharacterRight(null); |
| | | } |
| | | |
| | | |
| | | RequestContext.getCurrentInstance().execute("PF('dialog').show()"); |
| | | } |
| | | |
| | |
| | | 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; |
| | | } |
| | |
| | | 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; |
| | | } |
| | |
| | | FacesUtils.warn("操作失败。"); |
| | | } |
| | | } |
| | | |
| | | |
| | | public void containerTypeChanged() { |
| | | |
| | | if(this.baseMetaService.getBaseMetaKey(this.sysWarehouseContainer.getType()).equals("200")) { |
| | |
| | | } |
| | | |
| | | public List<SysController> getControllers() { |
| | | if(this.controllers == null) |
| | | { |
| | | this.controllers = this.sysControllerService.getAllControllerList(); |
| | | } |
| | | this.controllers = this.sysControllerService.getAllControllerList(); |
| | | |
| | | return controllers; |
| | | } |
| | | |