| | |
| | | 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; |
| | |
| | | |
| | | public void onSaveBtnClick() { |
| | | try { |
| | | |
| | | if (!StringUtils.isNotBlank(sysLaboratoryContainer.getProjectId())){ |
| | | sysLaboratoryContainer.setProjectId(null); |
| | | } |
| | | |
| | | // 新建 |
| | | if (this.action == Constants.ACTION_ADD) { |
| | | if (this.sysLaboratoryContainer == null) { |
| | |
| | | return; |
| | | } |
| | | System.out.println(sysLaboratoryContainer.getContainerCode()); |
| | | |
| | | this.sysLaboratoryContainerService.insertSysLaboratoryContainer(sysLaboratoryContainer); |
| | | |
| | | FacesUtils.info("新建成功。"); |