| | |
| | | @Value("${institute.logo}") |
| | | private String logo; |
| | | |
| | | @Value("${institute.copyright}") |
| | | private String copyright; |
| | | |
| | | @Value("${activeEnv}") |
| | | private String activeEnv; |
| | | |
| | |
| | | public String getActiveEnv(){ |
| | | return this.activeEnv; |
| | | } |
| | | |
| | | public String getCopyright() { |
| | | return copyright; |
| | | } |
| | | } |
| | |
| | | printTable.put("phone", selectOne.getPhone()); |
| | | printTable.put("receiptNumber", selectOne.getReceiptNumber()); |
| | | printTable.put("project", selectOne.getProject()); |
| | | SysLaboratory sysLaboratory = sysLaboratoryService.getSysLaboratory(selectOne.getHouseId()); |
| | | |
| | | SysLaboratory sysLaboratory = sysLaboratoryService.getSysLaboratorySimpleInfo(selectOne.getHouseId()); |
| | | printTable.put("lab", sysLaboratory.getName()); |
| | | printTable.put("note",selectOne.getNote() == null?"":selectOne.getNote()); |
| | | //整理数据 |
| | |
| | | import com.nanometer.smartlab.service.*; |
| | | import com.nanometer.smartlab.util.Constants; |
| | | import com.nanometer.smartlab.util.FacesUtils; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.apache.log4j.Logger; |
| | | import org.apache.shiro.subject.Subject; |
| | | import org.primefaces.context.RequestContext; |
| | |
| | | import javax.annotation.Resource; |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | import java.util.stream.Stream; |
| | | |
| | | @Controller |
| | | @Scope("session") |
| | |
| | | |
| | | public SysUser getSelectedUserById(String userId) { |
| | | System.out.println(userId); |
| | | return userSelectList.stream().filter(u->u.getId().equals(userId)).findFirst().get(); |
| | | List<SysUser> userList= userSelectList.stream().filter(u -> u.getId().equals(userId)).collect(Collectors.toList()); |
| | | if(userList.size()>0){ |
| | | return userList.get(0); |
| | | }else{ |
| | | return new SysUser(); |
| | | } |
| | | } |
| | | |
| | | public List<SysUser> getUserSelectList(String keyword) { |
| | |
| | | return; |
| | | } |
| | | |
| | | if (this.sysProject.getSysUserId() == null) { |
| | | if (StringUtils.isBlank(this.sysProject.getSysUserId())) { |
| | | FacesUtils.warn("请选择课题负责人。"); |
| | | return; |
| | | } |
| | |
| | | Sheet sheet=wb.getSheetAt(0); |
| | | List<SysReagent> sysReagentsList = new ArrayList<>(); |
| | | int totalRows = sheet.getPhysicalNumberOfRows(); |
| | | |
| | | Row row=null; |
| | | int totalCells=0; |
| | | String dangours = ""; |
| | | totalCells=sheet.getRow(0).getLastCellNum(); |
| | | if(totalCells>7){ |
| | | FacesUtils.warn("导入表格格式不正确"); |
| | | return; |
| | | } |
| | | for (int i = 1; i < totalRows; i++) { |
| | | SysReagent sysReagent = new SysReagent(); |
| | | List<String> valuesList=new ArrayList<String>(); |
| | | row=sheet.getRow(i); |
| | | |
| | | totalCells= row.getLastCellNum(); |
| | | // totalCells= row.getLastCellNum(); |
| | | // if(totalCells>7){ |
| | | // FacesUtils.warn("导入表格格式不正确"); |
| | | // return; |
| | | // } |
| | | for (int t = 0; t < totalCells; t++) { |
| | | String cellInfo=""; |
| | | String groupId = ""; |
| | |
| | | this.codeList.add(baseMeta); |
| | | } |
| | | valuesList.add(id); |
| | | }else if(t==5){ |
| | | String id=""; |
| | | if(!StringUtils.isBlank(cellInfo)){ |
| | | SysSupplier sysSupplier=sysSupplierService.getSysSupplierByName(cellInfo); |
| | | if(sysSupplier==null){//新建供应商 |
| | | FacesUtils.warn("未查询到供该应商信息-"+cellInfo); |
| | | return; |
| | | } |
| | | id=sysSupplier.getId(); |
| | | } |
| | | valuesList.add(id); |
| | | }else if(t==6){ |
| | | String id=""; |
| | | if(!StringUtils.isBlank(cellInfo)){ |
| | | groupId = "reagent_format"; |
| | | id=getId(groupId,cellInfo); |
| | | if(StringUtils.isBlank(id)){ |
| | | BaseMeta baseMeta = new BaseMeta(); |
| | | baseMeta.setId(IDUtils.uuid()); |
| | | baseMeta.setGroupId(groupId); |
| | | baseMeta.setMetaValue(cellInfo); |
| | | baseMeta.setMetaKey(cellInfo); |
| | | baseMetaService.insertBaseMeta(baseMeta); |
| | | id = baseMeta.getId(); |
| | | this.codeList.add(baseMeta); |
| | | } |
| | | } |
| | | valuesList.add(id); |
| | | }else { |
| | | valuesList.add(cellInfo); |
| | | } |
| | | |
| | | } |
| | | if (valuesList.size() != 6){ |
| | | break; |
| | | if (valuesList.size() != 8){ |
| | | FacesUtils.warn("excel数据解析格式失败"); |
| | | return; |
| | | } |
| | | System.out.println("value : "+valuesList); |
| | | sysReagent.setName(valuesList.get(0));//试剂名称 |
| | |
| | | if(!valuesList.get(5).equals("")){ |
| | | sysReagent.setPrice(BigDecimal.valueOf(Double.parseDouble(valuesList.get(5))));//含税单价 |
| | | } |
| | | if(StringUtils.isNotBlank(valuesList.get(6))){ |
| | | sysReagent.setSupplierId(valuesList.get(6));//供应商id |
| | | } |
| | | if(StringUtils.isNotBlank(valuesList.get(7))){ |
| | | sysReagent.setReagentFormat(valuesList.get(7));//规格id |
| | | } |
| | | DangerousFlag d; |
| | | d = DangerousFlag.NORMAL; |
| | | sysReagent.setDangerousFlag(d); |
| | |
| | | FacesUtils.info("导入成功。"); |
| | | } catch (Exception ex) { |
| | | ex.printStackTrace(); |
| | | FacesUtils.info("导入失败。"); |
| | | FacesUtils.info("导入失败,"+ex.getMessage()); |
| | | } |
| | | } |
| | | //导入 |
| | |
| | | checkReserve(list2); |
| | | //1.2判断提交的条码是否重复(只有补贴条码需要判断) |
| | | checkReagentCode(list2); |
| | | String receiptNum = new SimpleDateFormat("yyyyMMddHHmmssSSS").format(new Date()); |
| | | //库中领取 |
| | | if(list.size()>0&&list!=null){ |
| | | //扣库存 对象中的reagentCode存的是id |
| | |
| | | } |
| | | } |
| | | |
| | | this.opeWarehouseReserveService.claimForPerson(list, userId,projectNum,laboratoryId,laboratoryContainerId); |
| | | this.opeWarehouseReserveService.claimForPerson(list, userId,projectNum,laboratoryId,laboratoryContainerId,receiptNum); |
| | | } |
| | | |
| | | //补贴条码 |
| | |
| | | printTable.put("applyPerson", applyPersonInfo.getName()); |
| | | printTable.put("department", applyPersonInfo.getDepartment()); |
| | | printTable.put("date", Utils.now("yyyy-MM-dd")); |
| | | String receiptNum = new SimpleDateFormat("yyyyMMddHHmmssSSS").format(new Date()); |
| | | |
| | | printTable.put("receiptNumber", receiptNum); |
| | | if (StringUtils.isNotBlank(applyPersonInfo.getPhone())){ |
| | | printTable.put("phone", applyPersonInfo.getPhone()); |
| | |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | public void onSaveBtnClick() { |
| | | try { |
| | | if (this.selectedTmpList == null || this.selectedTmpList.size() == 0) { |
| | |
| | | if (StringUtils.isNotBlank(applyPersonInfo.getProject())){ |
| | | printTable.put("project", applyPersonInfo.getProject()); |
| | | } |
| | | SysLaboratory lab = sysLaboratoryService.getSysLaboratory(laboratoryId); |
| | | SysLaboratory lab = sysLaboratoryService.getSysLaboratorySimpleInfo(laboratoryId); |
| | | String receiptNum = new SimpleDateFormat("yyyyMMddHHmmssSSS").format(new Date()); |
| | | printTable.put("receiptNumber", receiptNum); |
| | | printTable.put("lab", lab.getName()); |
| | |
| | | //FacesUtils.warn("未选择一个条形码。"); |
| | | //return; |
| | | //} |
| | | this.opeWarehouseReserveService.claim(list, userId,projectNum); |
| | | this.opeWarehouseReserveService.claim(list, userId,projectNum,receiptNumber); |
| | | } |
| | | |
| | | if(list2.size()>0&&list2!=null){ |
| | |
| | | public interface SysLaboratoryDao { |
| | | |
| | | public SysLaboratory getSysLaboratory(String id) throws DataAccessException; |
| | | |
| | | public SysLaboratory getSysLaboratorySimpleInfo(String id) throws DataAccessException; |
| | | |
| | | @SuppressWarnings("rawtypes") |
| | | public List<SysLaboratory> getSysLaboratoryList(Map params) throws DataAccessException; |
| | | |
| | |
| | | where id = #{id} and valid_flag = 1 |
| | | </select> |
| | | |
| | | <select id="getSysLaboratorySimpleInfo" parameterType="java.lang.String" resultMap="SysLaboratory"> |
| | | select id,name from sys_laboratory |
| | | where id = #{id} and valid_flag = 1 |
| | | </select> |
| | | |
| | | <select id="getSysLaboratoryList" parameterType="java.util.Map" resultMap="SysLaboratory"> |
| | | select su.* from sys_laboratory as su |
| | | where su.valid_flag = 1 |
| | |
| | | |
| | | import com.nanometer.smartlab.entity.SysSupplier; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.apache.xmlbeans.impl.xb.xsdschema.Public; |
| | | import org.springframework.dao.DataAccessException; |
| | | |
| | | import java.util.List; |
| | |
| | | void insertBatch(List<?> list); |
| | | |
| | | List<Map> exportExcelList(Map<String, String> params); |
| | | |
| | | |
| | | public SysSupplier getSysSupplierByName(@Param("name") String name); |
| | | } |
| | |
| | | select id From sys_supplier where name = #{name} |
| | | </select> |
| | | |
| | | <select id="getSysSupplierByName" resultType="com.nanometer.smartlab.entity.SysSupplier" |
| | | parameterType="java.lang.String"> |
| | | select * from sys_supplier where name=#{name} and valid_flag=1 limit 1 |
| | | </select> |
| | | |
| | | |
| | | <update id="deleteSysSupplier" parameterType="java.util.List"> |
| | | update sys_supplier set valid_flag=0, update_time=now() |
| | |
| | | |
| | | boolean isAllowWarehouseUseByIds(List<String> ids); |
| | | |
| | | boolean updateReagentStatus(OpeReagentStatus opeReagentStatus); |
| | | boolean updateReagentStatus(OpeReagentStatus opeReagentStatus,String receiptNumber); |
| | | boolean updateReagentStatus2(OpeReagentStatus opeReagentStatus); |
| | | |
| | | boolean updateReagentStatus3(List<String> reagentCodes,String userId,String projectNum,String laboratoryId,String laboratoryContainerId); |
| | | boolean updateReagentStatus3(List<String> reagentCodes,String userId,String projectNum,String laboratoryId,String laboratoryContainerId,String receiptNumber); |
| | | |
| | | int getLogOpeReagentStatusTotalCount(String reagentLogId, Integer status, String userLogId, String loginId); |
| | | |
| | |
| | | } |
| | | |
| | | @Override |
| | | public boolean updateReagentStatus3(List<String> reagentCodes,String userId,String projectNum,String laboratoryId,String laboratoryContainerId) { |
| | | public boolean updateReagentStatus3(List<String> reagentCodes,String userId,String projectNum,String laboratoryId,String laboratoryContainerId,String receiptNumber) { |
| | | try { |
| | | for (String opeReagentStatusId : reagentCodes) { |
| | | OpeReagentStatus opeReagentStatus = this.getOpeReagentStatus(opeReagentStatusId); |
| | |
| | | opeUseFlow.setUserId(opeReagentStatus.getUserId()); |
| | | opeUseFlow.setPlace(opeReagentStatus.getPlace()); |
| | | opeUseFlow.setRemainder(opeReagentStatus.getRemainder()); |
| | | opeUseFlow.setReceiptNumber(receiptNumber); |
| | | |
| | | Map<String, String> metaMap = new HashMap<>(); |
| | | metaMap.put("groupId", "operate_status"); |
| | |
| | | } |
| | | |
| | | @Transactional(propagation = Propagation.REQUIRED) |
| | | public boolean updateReagentStatus(OpeReagentStatus opeReagentStatus) { |
| | | public boolean updateReagentStatus(OpeReagentStatus opeReagentStatus,String receiptNumber) { |
| | | try { |
| | | |
| | | if(StringUtils.isBlank(receiptNumber)){ |
| | | throw new BusinessException(ExceptionEnumCode.PARAM_NO_EXIST, |
| | | MessageUtil.getMessageByCode(ExceptionEnumCode.PARAM_NO_EXIST.getCode(), "领用单号为空")); |
| | | } |
| | | if (isAllowWarehouseUse(opeReagentStatus)) { |
| | | // 减少库存 |
| | | OpeWarehouseReserve opeWarehouseReserve = this.opeWarehouseReserveService.getOpeWarehouseReserve( |
| | |
| | | opeUseFlow.setUserId(opeReagentStatus.getUserId()); |
| | | opeUseFlow.setPlace(opeReagentStatus.getPlace()); |
| | | opeUseFlow.setRemainder(opeReagentStatus.getRemainder()); |
| | | opeUseFlow.setReceiptNumber(receiptNumber); |
| | | |
| | | Map<String, String> metaMap = new HashMap<>(); |
| | | metaMap.put("groupId", "operate_status"); |
| | |
| | | |
| | | OpeWarehouseReserve insertOpeWarehouseReserve(OpeWarehouseReserve opeWarehouseReserve); |
| | | boolean updateOpeWarehouseReserve(OpeWarehouseReserve opeWarehouseReserve); |
| | | void claim(List<OpeWarehouseReserve> selectedList, String userId,String projectNum); |
| | | void claimForPerson(List<OpeApplyReserve> selectedListForPerson, String userId,String projectNum,String laboratoryId,String laboratoryContainerId); |
| | | void claim(List<OpeWarehouseReserve> selectedList, String userId,String projectNum,String receiptNumber); |
| | | void claimForPerson(List<OpeApplyReserve> selectedListForPerson, String userId,String projectNum,String laboratoryId,String laboratoryContainerId,String receiptNumber); |
| | | void reagentDStore(List<OpeApply> reagentDStoreList, String loginUserId); |
| | | void reagentDStore2(List<OpeApply> reagentDStoreList, String loginUserId); |
| | | |
| | |
| | | } |
| | | |
| | | @Transactional(rollbackFor = Exception.class,propagation = Propagation.REQUIRED) |
| | | public void claimForPerson(List<OpeApplyReserve> selectedListForPerson,String userId,String projectNum,String laboratoryId,String laboratoryContainerId){ |
| | | public void claimForPerson(List<OpeApplyReserve> selectedListForPerson,String userId,String projectNum,String laboratoryId,String laboratoryContainerId,String receiptNumber){ |
| | | try{ |
| | | for(OpeApplyReserve app:selectedListForPerson){ |
| | | List<String> reagentCodes = app.getReagentCode(); |
| | | if (reagentCodes != null && reagentCodes.size() > 0) { |
| | | this.opeReagentStatusService.updateReagentStatus3(reagentCodes,userId,projectNum,laboratoryId,laboratoryContainerId); |
| | | this.opeReagentStatusService.updateReagentStatus3(reagentCodes,userId,projectNum,laboratoryId,laboratoryContainerId,receiptNumber); |
| | | |
| | | //更新是现实库存 |
| | | OpeLaboratoryReserve lr=new OpeLaboratoryReserve(); |
| | |
| | | |
| | | // 仓库领用 |
| | | @Transactional(propagation = Propagation.REQUIRED) |
| | | public void claim(List<OpeWarehouseReserve> selectedList, String userId,String projectNum) { |
| | | public void claim(List<OpeWarehouseReserve> selectedList, String userId,String projectNum,String receiptNumber) { |
| | | try { |
| | | for (OpeWarehouseReserve opeWarehouseReserve : selectedList) { |
| | | List<String> reagentCodes = opeWarehouseReserve.getReagentCodes(); |
| | |
| | | opeReagentStatus.setUserId(userId); |
| | | opeReagentStatus.setProjectNum(projectNum); |
| | | //boolean flag = this.opeReagentStatusService.updateReagentStatus(opeReagentStatus); |
| | | this.opeReagentStatusService.updateReagentStatus(opeReagentStatus); |
| | | this.opeReagentStatusService.updateReagentStatus(opeReagentStatus,receiptNumber); |
| | | //if (flag) { |
| | | //opeWarehouseReserve.setReserve(opeWarehouseReserve.getReserve() - 1); |
| | | //opeWarehouseReserve.setSelectNum(0); |
| | |
| | | |
| | | SysLaboratory getSysLaboratory(String id); |
| | | |
| | | SysLaboratory getSysLaboratorySimpleInfo(String id); |
| | | |
| | | SysLaboratory insertSysLaboratory(SysLaboratory sysLaboratory); |
| | | |
| | | boolean updateSysLaboratory(SysLaboratory sysLaboratory); |
| | |
| | | @Resource |
| | | SysUserDao sysUserDao; |
| | | |
| | | @Transactional(propagation = Propagation.REQUIRED) |
| | | public List<SysLaboratory> getSysLaboratoryList(String type, String name,String project,Integer first, Integer pageSize) { |
| | | try { |
| | | Map<String, Object> params = new HashMap<String, Object>(); |
| | |
| | | return commonPage; |
| | | } |
| | | |
| | | @Transactional(propagation = Propagation.REQUIRED) |
| | | |
| | | public int getSysLaboratoryTotalCount(String type, String name,String project) { |
| | | try { |
| | | Map<String, Object> params = new HashMap<String, Object>(); |
| | |
| | | } |
| | | } |
| | | |
| | | @Transactional(propagation = Propagation.REQUIRED) |
| | | public SysLaboratory getSysLaboratory(String id) { |
| | | try { |
| | | return this.sysLaboratoryDao.getSysLaboratory(id); |
| | |
| | | } |
| | | } |
| | | |
| | | @Transactional(propagation = Propagation.REQUIRED) |
| | | public SysLaboratory getSysLaboratorySimpleInfo(String id) { |
| | | try { |
| | | return this.sysLaboratoryDao.getSysLaboratorySimpleInfo(id); |
| | | } catch (DataAccessException e) { |
| | | logger.error(e.getMessage(), e); |
| | | throw new BusinessException(ExceptionEnumCode.DB_ERR, |
| | | MessageUtil.getMessageByCode(ExceptionEnumCode.DB_ERR.getCode()), e); |
| | | } |
| | | } |
| | | |
| | | public SysLaboratory insertSysLaboratory(SysLaboratory sysLaboratory) { |
| | | try { |
| | | if (sysLaboratory.getId() == null) { |
| | |
| | | } |
| | | } |
| | | |
| | | @Transactional(propagation = Propagation.REQUIRED) |
| | | public boolean updateSysLaboratory(SysLaboratory sysLaboratory) { |
| | | try { |
| | | int row = this.sysLaboratoryDao.updateSysLaboratory(sysLaboratory); |
| | |
| | | } |
| | | } |
| | | |
| | | @Transactional(propagation = Propagation.REQUIRED) |
| | | |
| | | public boolean deleteSysLaboratory(List<SysLaboratory> sysLaboratoryList) { |
| | | try { |
| | | if (sysLaboratoryList == null || sysLaboratoryList.size() == 0) { |
| | |
| | | } |
| | | } |
| | | |
| | | @Transactional(propagation = Propagation.REQUIRED) |
| | | |
| | | public boolean isSysLaboratoryExist(String barCode, String editId) { |
| | | try { |
| | | Map<String, Object> params = new HashMap<String, Object>(); |
| | |
| | | } |
| | | } |
| | | |
| | | @Transactional(propagation = Propagation.REQUIRED) |
| | | |
| | | public SysLaboratory getSysLaboratoryByBarCode(String barCode) { |
| | | try { |
| | | Map<String, Object> params = new HashMap<String, Object>(); |
| | |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(propagation = Propagation.REQUIRED) |
| | | public List<SysLaboratory> getSysLaboratoryListByDep(String depId) { |
| | | try { |
| | | Map<String, Object> params = new HashMap<String, Object>(); |
| | |
| | | List<Map> exportExcelList(String name); |
| | | |
| | | void export2Excel(List<Map> list) throws Exception; |
| | | |
| | | |
| | | SysSupplier getSysSupplierByName(String name); |
| | | } |
| | |
| | | ExcelUtils.export2Excel(list,"供应商信息",map); |
| | | } |
| | | |
| | | @Override |
| | | public SysSupplier getSysSupplierByName(String name) { |
| | | return sysSupplierDao.getSysSupplierByName(name); |
| | | } |
| | | |
| | | } |
| | |
| | | |
| | | institute.id = ${institute.id} |
| | | institute.name = ${institute.name} |
| | | #institute.logo = ${institute.logo} |
| | | institute.logo = /resources/images/\u59D1\u82CF\u5B9E\u9A8C\u5BA4logo2.png |
| | | institute.logo = ${institute.logo} |
| | | institute.url = ${institute.url} |
| | | institute.copyright = ${institute.copyright} |
| | | message.url = ${message.url} |
| | | |
| | | reagent.detail.price.api = ${reagent.detail.price.api} |
| | |
| | | |
| | | institute.id = 38 |
| | | institute.name = \u59D1\u82CF\u5B9E\u9A8C\u5BA4 |
| | | institute.logo = /resources/images/\u59D1\u82CF\u5B9E\u9A8C\u5BA4logo.png |
| | | institute.logo = /resources/images/\u59D1\u82CF\u5B9E\u9A8C\u5BA4logo2.png |
| | | institute.url = http://222.92.16.2:18082 |
| | | institute.app.id = |
| | | institute.app.secret = |
| | |
| | | init-method="init" destroy-method="close"> |
| | | <!--mysql 5连接驱动--> |
| | | <property name="driverClassName" value="com.mysql.jdbc.Driver"></property> |
| | | <!-- <property name="url" value="jdbc:mysql://222.92.213.22:13306/smartlabdb?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai&useSSL=false" />--> |
| | | <!--<!– <property name="url" value="jdbc:mysql://124.221.143.185:23306/smartlb?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false" />–>--> |
| | | <!-- <property name="url" value="jdbc:mysql://222.92.213.22:13306/smartlabdb?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false" />--> |
| | | <!-- <property name="username" value="root" />--> |
| | | <!-- <property name="password" value="Sinanoaq#415" />--> |
| | | |
| | |
| | | |
| | | <p:column selectionMode="multiple" style="width: 30px;text-align: center;"/> |
| | | |
| | | <p:column headerText="产品编号"> |
| | | <p:column headerText="产品编号" style="white-space:normal;"> |
| | | <h:outputText value="#{row.reagent!=null?row.reagent.productSn:''}"></h:outputText> |
| | | </p:column> |
| | | |
| | | <p:column headerText="试剂名称"> |
| | | <p:column headerText="试剂名称" style="white-space:normal;"> |
| | | <h:outputText value="#{row.reagent!=null?row.reagent.name:''}"></h:outputText> |
| | | </p:column> |
| | | |
| | |
| | | <p:column headerText="产品编号"> |
| | | <h:outputText value="#{row.productSn}"></h:outputText> |
| | | </p:column> |
| | | <p:column headerText="试剂名称"> |
| | | <p:column headerText="试剂名称" style="white-space:normal;"> |
| | | <h:outputText value="#{row.name}"></h:outputText> |
| | | <h:outputText value="收藏" readonly="true" rendered="#{row.favor!=null}" styleClass="favor"></h:outputText> |
| | | </p:column> |
| | |
| | | <p:column selectionMode="multiple" style="width: 30px;text-align: center;"/> |
| | | |
| | | <p:ajax event="rowDblselect" listener="#{applyMngController.onApplyHistoryRowSelect}" update=":applyMngNewForm,:applyDialog"></p:ajax> |
| | | <p:column headerText="申购编号" width="120"> |
| | | <p:column headerText="申购编号" width="120" style="white-space:normal;"> |
| | | <h:outputText value="#{row.applyCode}"></h:outputText> |
| | | </p:column> |
| | | |
| | | <p:column headerText="申购产品"> |
| | | <p:column headerText="申购产品" style="white-space:normal;"> |
| | | <h:outputText value="#{row.reagent!=null?row.reagent.name:''}"></h:outputText> |
| | | </p:column> |
| | | |
| | |
| | | rows="50" pageLinks="5"> |
| | | |
| | | <p:ajax event="rowDblselect" listener="#{applyMngController.onReagentRowSelect}" update=":applyMngNewForm,:applyDialog"></p:ajax> |
| | | <p:column headerText="产品编号"> |
| | | <p:column headerText="产品编号" style="white-space:normal;"> |
| | | <h:outputText value="#{row.productSn}"></h:outputText> |
| | | </p:column> |
| | | <p:column headerText="试剂名称"> |
| | | <p:column headerText="试剂名称" style="white-space:normal;"> |
| | | <h:outputText value="#{row.name}"></h:outputText> |
| | | <h:outputText value="收藏" readonly="true" rendered="#{row.favor!=null}" styleClass="favor"></h:outputText> |
| | | </p:column> |
| | |
| | | </ui:define> |
| | | |
| | | <ui:define name="south"> |
| | | <a style="text-align: center;display: block" href="http://beian.miit.gov.cn" target="_Blank">Copyright©2017 中国科学院苏州纳米技术与纳米仿生研究所 苏ICP备10220403号-6</a> |
| | | <a style="text-align: center;display: block" href="http://beian.miit.gov.cn" target="_Blank">${institute.copyright}</a> |
| | | </ui:define> |
| | | </ui:composition> |
| | | </html> |
| | |
| | | </h:form> |
| | | </div> |
| | | |
| | | <a style="text-align: center;display: block" href="http://beian.miit.gov.cn" target="_Blank">Copyright©2017 中国科学院苏州纳米技术与纳米仿生研究所 苏ICP备10220403号-6</a> |
| | | <a style="text-align: center;display: block" href="http://beian.miit.gov.cn" target="_Blank">${institute.copyright}</a> |
| | | </h:body> |
| | | </html> |
| | |
| | | var="item" |
| | | dropdown="true" |
| | | styleClass="apply-user-autocomplete" |
| | | itemLabel="#{!empty projectMngController.sysProject.sysUserId ?projectMngController.getSelectedUserById(projectMngController.sysProject.sysUserId).name : item.name}" |
| | | itemValue="#{item.id}" forceSelection="true"> |
| | | itemLabel="#{!empty projectMngController.sysProject and !empty projectMngController.sysProject.sysUserId ? projectMngController.getSelectedUserById(projectMngController.sysProject.sysUserId).name: (!empty item?item.name:'')}" |
| | | itemValue="#{!empty item ? item.id:''}" forceSelection="true"> |
| | | <p:ajax event="itemSelect" process="@this" update="@this" /> |
| | | <p:column> |
| | | <h:outputText value="#{item.name}" required="true" requiredMessage="请填写课题负责人"/> |
| | |
| | | </p:column> |
| | | <p:column> |
| | | <p:inputNumber value="#{reagentMngController.sysReagent.price}" |
| | | decimalPlaces="2" minValue="0" maxlength="10" |
| | | decimalPlaces="4" minValue="0" maxlength="10" |
| | | required="true" requiredMessage="请输入含税售价"></p:inputNumber> |
| | | </p:column> |
| | | <p:column> |
对比新文件 |
| | |
| | | --2023-11-10 |
| | | ALTER TABLE `smartlabdb`.`sys_reagent` |
| | | MODIFY COLUMN `price` decimal(16, 4) NULL DEFAULT NULL COMMENT '含税售价' AFTER `reagent_unit`; |
| | | |
| | | ALTER TABLE `smartlb`.`ope_apply` |
| | | MODIFY COLUMN `apply_price` decimal(16, 4) NULL DEFAULT NULL COMMENT '申购价格' AFTER `apply_goal`; |