| | |
| | | System.out.println(getUser().getSeeFlag().getKey()); |
| | | //SysUser u=sysUserService.getSysUser(getUserId()); |
| | | //System.out.println(u); |
| | | if (getUser().getSeeFlag().getKey() != SeeFlag.MANAGE.getKey()) { |
| | | if (getUser().getSeeFlag().getKey() != SeeFlag.MANAGE.getKey() |
| | | && getUser().getSeeFlag().getKey() != SeeFlag.LEADING.getKey()) { |
| | | editFlag=0; |
| | | }else{ |
| | | editFlag=1; |
| | |
| | | int sum = 0; |
| | | List<ApplyListDto> applyList = new ArrayList<>(); |
| | | SysUser applyPersonInfo = sysUserService.getUser(userId); |
| | | if (applyPersonInfo == null) { |
| | | FacesUtils.warn("申领人不存在或者申领人部门被删除。"); |
| | | return; |
| | | } |
| | | printTable.put("head", instituteName); |
| | | printTable.put("title", "领用单"); |
| | | printTable.put("applyPerson", applyPersonInfo.getName()); |
| | |
| | | printTable = new Hashtable(); |
| | | List<ApplyListDto> applyList = new ArrayList<>(); |
| | | SysUser applyPersonInfo = sysUserService.getUser(userId); |
| | | if (applyPersonInfo == null) { |
| | | FacesUtils.warn("申领人不存在或者申领人部门被删除。"); |
| | | return; |
| | | } |
| | | printTable.put("head", instituteName); |
| | | printTable.put("title", "领用单"); |
| | | printTable.put("applyPerson", applyPersonInfo.getName()); |
| | |
| | | } catch (Exception e) { |
| | | logger.error(e); |
| | | } |
| | | selectedList = null; |
| | | return list; |
| | | } |
| | | |
| | | @Override |
| | | public OpeWarehouseReserve getRowData(String rowKey) { |
| | | Iterator<OpeWarehouseReserve> iterator = this.iterator(); |
| | | if (iterator != null) { |
| | | OpeWarehouseReserve su = null; |
| | | while (iterator.hasNext()) { |
| | | su = iterator.next(); |
| | | if (rowKey.equals(su.getId())) { |
| | | return su; |
| | | } |
| | | } |
| | | } |
| | | return null; |
| | | // Iterator<OpeWarehouseReserve> iterator = this.iterator(); |
| | | // if (iterator != null) { |
| | | // OpeWarehouseReserve su = null; |
| | | // while (iterator.hasNext()) { |
| | | // su = iterator.next(); |
| | | // if (rowKey.equals(su.getId())) { |
| | | // return su; |
| | | // } |
| | | // } |
| | | // } |
| | | return opeWarehouseReserveService.getRowData(rowKey); |
| | | } |
| | | }; |
| | | } |
| | |
| | | } catch (Exception e) { |
| | | logger.error(e); |
| | | } |
| | | selectedListForPerson = null; |
| | | return list; |
| | | } |
| | | |
| | | @Override |
| | | public OpeApplyReserve getRowData(String rowKey) { |
| | | Iterator<OpeApplyReserve> iterator = this.iterator(); |
| | | if (iterator != null) { |
| | | OpeApplyReserve su = null; |
| | | while (iterator.hasNext()) { |
| | | su = iterator.next(); |
| | | if (rowKey.equals(su.getId())) { |
| | | return su; |
| | | } |
| | | } |
| | | } |
| | | return null; |
| | | // Iterator<OpeApplyReserve> iterator = this.iterator(); |
| | | // if (iterator != null) { |
| | | // OpeApplyReserve su = null; |
| | | // while (iterator.hasNext()) { |
| | | // su = iterator.next(); |
| | | // if (rowKey.equals(su.getId())) { |
| | | // return su; |
| | | // } |
| | | // } |
| | | // } |
| | | return opeApplyService.getOpeApplyReserveListByNameForRowData(rowKey); |
| | | } |
| | | }; |
| | | } |
| | |
| | | this.reagentDStore.setReagent((SysReagent)event.getObject()); |
| | | |
| | | this.reagentDStoreEditFlag = Constants.ACTION_ADD; |
| | | onWarehouseSelectChange(null); |
| | | RequestContext.getCurrentInstance().execute("PF('reagentDStoreDialog').show()"); |
| | | } |
| | | |
| | |
| | | this.changeWarehouseContainerList(warehouseId); |
| | | this.changeWarehouseContainerPlaceList(null); |
| | | } |
| | | |
| | | public void onWarehouseContainerSelectChange(String warehouseContainerId) { |
| | | this.warehouseContainerPlaceList = null; |
| | | this.changeWarehouseContainerPlaceList(warehouseContainerId); |
| | | } |
| | | |
| | | private void changeWarehouseContainerList(String warehouseId) { |
| | | if (StringUtils.isBlank(warehouseId)) { |
| | |
| | | |
| | | @Override |
| | | public SysReagent getRowData(String rowKey) { |
| | | Iterator<SysReagent> iterator = this.iterator(); |
| | | if (iterator != null) { |
| | | SysReagent sr = null; |
| | | while (iterator.hasNext()) { |
| | | sr = iterator.next(); |
| | | if (rowKey.equals(sr.getId())) { |
| | | return sr; |
| | | } |
| | | } |
| | | } |
| | | return null; |
| | | // Iterator<SysReagent> iterator = this.iterator(); |
| | | // if (iterator != null) { |
| | | // SysReagent sr = null; |
| | | // while (iterator.hasNext()) { |
| | | // sr = iterator.next(); |
| | | // if (rowKey.equals(sr.getId())) { |
| | | // return sr; |
| | | // } |
| | | // } |
| | | // } |
| | | return sysReagentService.getSysReagentListNewRowData(rowKey); |
| | | } |
| | | }; |
| | | } |