| | |
| | | import com.nanometer.smartlab.entity.BaseMeta; |
| | | import com.nanometer.smartlab.entity.SysLaboratory; |
| | | import com.nanometer.smartlab.service.SysLaboratoryService; |
| | | import org.apache.commons.lang.StringUtils; |
| | | import org.apache.log4j.Logger; |
| | | import org.apache.poi.hssf.usermodel.HSSFWorkbook; |
| | | import org.apache.poi.ss.usermodel.Row; |
| | |
| | | |
| | | private String laboratoryType; |
| | | private String laboratoryName; |
| | | private String project; |
| | | private String controllerName; |
| | | |
| | | private int action; |
| | | |
| | |
| | | |
| | | public void onSaveBtnClick() { |
| | | try { |
| | | |
| | | // 新建 |
| | | if (this.action == Constants.ACTION_ADD) { |
| | | if (this.sysLaboratoryContainer == null) { |
| | |
| | | return; |
| | | } |
| | | System.out.println(sysLaboratoryContainer.getContainerCode()); |
| | | |
| | | this.sysLaboratoryContainerService.insertSysLaboratoryContainer(sysLaboratoryContainer); |
| | | |
| | | FacesUtils.info("新建成功。"); |
| | |
| | | FacesUtils.warn("临时存储库条码已存在。"); |
| | | return; |
| | | } |
| | | |
| | | sysLaboratoryContainer.setProject(null); |
| | | sysLaboratoryContainer.getProject(); |
| | | |
| | | this.sysLaboratoryContainerService.updateSysLaboratoryContainer(sysLaboratoryContainer); |
| | | |
| | |
| | | List<SysLaboratoryContainer> list = null; |
| | | try { |
| | | int count = sysLaboratoryContainerService.getSysLaboratoryContainerTotalCount(laboratoryType, |
| | | laboratoryName,null); |
| | | laboratoryName,null,project,controllerName); |
| | | this.setRowCount(count); |
| | | if (count > 0) { |
| | | list = sysLaboratoryContainerService.getSysLaboratoryContainerList(laboratoryType, |
| | | laboratoryName,null, first, pageSize); |
| | | laboratoryName,null,project,controllerName, first, pageSize); |
| | | } |
| | | } catch (Exception e) { |
| | | logger.error(e); |
| | |
| | | this.controllers = controllers; |
| | | } |
| | | |
| | | public String getProject() { |
| | | return project; |
| | | } |
| | | |
| | | public void setProject(String project) { |
| | | this.project = project; |
| | | } |
| | | |
| | | public String getControllerName() { |
| | | return controllerName; |
| | | } |
| | | |
| | | public void setControllerName(String controllerName) { |
| | | this.controllerName = controllerName; |
| | | } |
| | | } |