| | |
| | | <h:form id="laboratoryMngForm"> |
| | | <p:panel styleClass="center-header"> |
| | | <p:outputLabel styleClass="title" value="实验室管理"></p:outputLabel> |
| | | <p:panelGrid styleClass="filter" columns="5"> |
| | | <p:panelGrid styleClass="filter" columns="7"> |
| | | <p:outputLabel value="实验室类型:"></p:outputLabel> |
| | | <p:selectOneMenu value="#{laboratoryMngController.type}"> |
| | | <f:selectItem itemLabel="全部" itemValue="#{null}" noSelectionOption="true"></f:selectItem> |
| | |
| | | <p:outputLabel value="实验室名:"></p:outputLabel> |
| | | <p:inputText value="#{laboratoryMngController.name}"></p:inputText> |
| | | |
| | | <p:outputLabel value="课题组:"></p:outputLabel> |
| | | <p:inputText value="#{laboratoryMngController.project}"></p:inputText> |
| | | |
| | | <p:commandLink styleClass="search" process="@form" update="@form"></p:commandLink> |
| | | </p:panelGrid> |
| | | </p:panel> |
| | | <p:panel styleClass="center-body"> |
| | | <p:panelGrid columns="5" styleClass="btn"> |
| | | <p:panelGrid columns="6" styleClass="btn"> |
| | | <p:commandButton value="新建" styleClass="new-btn" process="@this" |
| | | actionListener="#{laboratoryMngController.onNewBtnClick}" |
| | | oncomplete="PF('dialog').show();" update=":dialog,:dialogForm"></p:commandButton> |
| | |
| | | </p:commandButton> |
| | | <p:commandButton value="导入" styleClass="import-btn" onclick="importLab()" |
| | | ></p:commandButton> |
| | | <p:commandButton value="导出" styleClass="new-btn" ajax="false" actionListener="#{laboratoryMngController.exportLab2Excel}" |
| | | /> |
| | | <a href="resources/template/实验室导入模板.xlsx" style="display: inline-block;"><img src="resources/images/xlsx.png" width="30px;" alt=""/></a> |
| | | <script> |
| | | function importLab(){ |
| | |
| | | |
| | | <p:column headerText="实验室名"> |
| | | <h:outputText value="#{row.name}"></h:outputText> |
| | | </p:column> |
| | | |
| | | <p:column headerText="课题组"> |
| | | <h:outputText value="#{row.project}"></h:outputText> |
| | | </p:column> |
| | | |
| | | <p:column headerText="状态码"> |
| | |
| | | <f:selectItems value="#{baseMetaService.getBaseMetaList(constants.BASE_META_GROUP_USER_DEPARTMENT)}" |
| | | var="item" itemLabel="#{item.metaValue}" itemValue="#{item.id}"></f:selectItems> |
| | | </p:selectOneMenu> |
| | | |
| | | |
| | | <p:outputLabel value="所属课题组" for="multiple"/> |
| | | <p:selectCheckboxMenu id="multiple" value="#{laboratoryMngController.sysLaboratory.projects}" label="Cities" multiple="true" |
| | | filter="true" filterMatchMode="startsWith" panelStyle="width:250px"> |
| | | <f:selectItems value="#{sysProjectServiceImpl.getAll()}" var="item" itemValue="#{item.project}" itemLabel="#{item.project}"/> |
| | | </p:selectCheckboxMenu> |
| | | </p:panelGrid> |
| | | <p:panel styleClass="btn"> |
| | | <p:commandButton value="保存" |