<?xml version="1.0" encoding="UTF-8"?>
|
<!DOCTYPE html
|
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml"
|
xmlns:ui="http://java.sun.com/jsf/facelets"
|
xmlns:p="http://primefaces.org/ui"
|
xmlns:h="http://java.sun.com/jsf/html"
|
xmlns:f="http://java.sun.com/jsf/core"
|
xmlns:c="http://java.sun.com/jsp/jstl/core">
|
<head></head>
|
<ui:composition>
|
<p:panel styleClass="center-header">
|
<p:outputLabel styleClass="title" value="申购管理 > #{applyMngController.action==constants.ACTION_ADD?'新建':'修改'}"></p:outputLabel>
|
</p:panel>
|
<p:panel styleClass="center-body">
|
<h:form id="applyMngNewListForm" rendered="#{applyMngController.action==constants.ACTION_ADD}">
|
<p:panel styleClass="center-body">
|
<p:panelGrid columns="5" styleClass="btn">
|
<p:commandButton value="返回" process="@this" update=":centerRootPanel"
|
actionListener="#{applyMngController.onCancelBtnClick}"
|
styleClass="cancel-btn"></p:commandButton>
|
<p:commandButton value="重置" process="@this" update="@form"
|
actionListener="#{applyMngController.onResetBtnClickForNewP}"
|
styleClass="reset-btn"></p:commandButton>
|
<p:commandButton value="修改" styleClass="edit-btn"
|
process="@form"
|
actionListener="#{applyMngController.onEditBtnClickForNewP}"
|
update="@form,:applyDialog"></p:commandButton>
|
<p:commandButton value="删除" styleClass="del-btn"
|
process="@form"
|
actionListener="#{applyMngController.onDeleteBtnClickForNewP}"
|
update="@form">
|
<p:confirm header="确认" message="确认操作?"></p:confirm>
|
</p:commandButton>
|
<p:commandButton value="提交" process="@form" update=":centerRootPanel"
|
actionListener="#{applyMngController.onSaveBtnClickForNewP}"
|
styleClass="save-btn">
|
<p:confirm header="确认" message="确认操作?"></p:confirm>
|
</p:commandButton>
|
</p:panelGrid>
|
|
<p:dataTable styleClass="data-table" var="row" value="#{applyMngController.applyNewList}" selection="#{applyMngController.applyNewSelectedList}"
|
resizableColumns="true" rowKey="#{row.reagent.id}" emptyMessage="请添加申购试剂" rows="3" paginator="true" paginatorPosition="bottom"
|
paginatorAlwaysVisible="false">
|
|
<p:column selectionMode="multiple" style="width: 30px;text-align: center;"/>
|
|
<p:column headerText="产品编号" style="white-space:normal;">
|
<h:outputText value="#{row.reagent!=null?row.reagent.productSn:''}"></h:outputText>
|
</p:column>
|
|
<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.reagent!=null?row.reagent.controlProducts:''}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="规格型号">
|
<h:outputText value="#{row.reagent!=null?row.reagent.reagentFormat:''}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="包装">
|
<h:outputText value="#{row.reagent!=null?(''.concat(row.reagent.mainMetering).concat(row.reagent.reagentUnit)):''}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="含税售价">
|
<h:outputText value="#{row.reagent.price}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="CAS号">
|
<h:outputText value="#{row.reagent!=null?row.reagent.cas:''}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="危险性质">
|
<h:outputText value="#{row.reagent.reagentCharacter}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="厂家">
|
<h:outputText value="#{row.reagent!=null?row.reagent.productHome:''}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="试剂类型">
|
<h:outputText value="#{row.reagent.reagentType}"></h:outputText>
|
</p:column>
|
|
</p:dataTable>
|
</p:panel>
|
</h:form>
|
<p:dialog modal="true" header="申购试剂 > #{applyMngController.applyEditFlag==constants.ACTION_ADD?'增加':'修改'}" appendTo="@(body)"
|
id="applyDialog" widgetVar="applyDialog"
|
resizable="false" width="800">
|
<h:form id="applyDialogForm">
|
<!-- <p:panel styleClass="apply-mng-new-body">-->
|
<p:panelGrid styleClass="content2 grid-padding-bottom2">
|
<p:row>
|
<p:column>
|
<p:outputLabel value="申购产品:"></p:outputLabel>
|
</p:column>
|
<p:column>
|
<p:inputText value="#{applyMngController.opeApply.reagent.name}" disabled="true"></p:inputText>
|
</p:column>
|
<p:column>
|
<p:outputLabel value="厂商:"></p:outputLabel>
|
</p:column>
|
<p:column>
|
<p:inputText value="#{applyMngController.opeApply.reagent.productHome}" disabled="true"></p:inputText>
|
</p:column>
|
</p:row>
|
|
<p:row>
|
<p:column>
|
<p:outputLabel value="规格:"></p:outputLabel>
|
</p:column>
|
<p:column>
|
<p:inputText value="#{applyMngController.opeApply.reagent.reagentFormat}" disabled="true"></p:inputText>
|
</p:column>
|
<p:column>
|
<p:outputLabel value="包装:"></p:outputLabel>
|
</p:column>
|
<p:column>
|
<p:inputText value="#{''.concat(applyMngController.opeApply.reagent.mainMetering).concat(applyMngController.opeApply.reagent.reagentUnit)}"
|
disabled="true"></p:inputText>
|
</p:column>
|
</p:row>
|
|
<p:row>
|
<p:column>
|
<p:outputLabel value="参考价格:"></p:outputLabel>
|
</p:column>
|
<p:column>
|
<p:inputText value="#{applyMngController.opeApply.reagent.price}" disabled="true"></p:inputText>
|
</p:column>
|
<p:column>
|
<p:outputLabel value="申购数量:"></p:outputLabel>
|
</p:column>
|
<p:column>
|
<p:inputNumber value="#{applyMngController.opeApply.num}"
|
decimalPlaces="0" minValue="0"
|
required="true" requiredMessage="请输入申购数量"></p:inputNumber>
|
</p:column>
|
</p:row>
|
|
<p:row>
|
<p:column>
|
<p:outputLabel value="期望货期:"></p:outputLabel>
|
</p:column>
|
<p:column>
|
<p:panel>
|
<p:calendar value="#{applyMngController.opeApply.deadline}"
|
converter="timestampConvert" pattern="yyyy-MM-dd" locale="zh_CN">
|
<p:ajax event="dateSelect" process="@this" update="@parent"/>
|
</p:calendar>
|
<!--<h:outputText value="货期早于今天" style="color: red;margin-left: 10px" rendered="#{applyMngController.opeApply.deadline!=null and applyMngController.opeApply.deadline.before(utils.now())}"></h:outputText>-->
|
</p:panel>
|
</p:column>
|
<p:column>
|
<p:outputLabel value="审批者:"></p:outputLabel>
|
|
</p:column>
|
<p:column>
|
<p:selectOneMenu value="#{applyMngController.opeApply.approveUserId}"
|
required="true" requiredMessage="请选择审批">
|
<f:selectItems value="#{applyMngController.approveUserSelectList}"
|
var="item" itemLabel="#{item.name}" itemValue="#{item.id}"></f:selectItems>
|
<!--现在报销不按课题编号了,所以先注释掉-->
|
<f:ajax listener="#{applyMngController.changeCharge}" render="projectIdSel1"/>
|
</p:selectOneMenu>
|
</p:column>
|
</p:row>
|
|
|
<p:row>
|
|
<p:column>
|
<p:outputLabel value="课题组:"></p:outputLabel>
|
|
</p:column>
|
<p:column>
|
<p:selectOneMenu value="#{applyMngController.opeApply.projectId}"
|
required="true" requiredMessage="请选则课题组" id="projectIdSel1">
|
<f:selectItems value="#{applyMngController.sysProjectList}"
|
var="item" itemLabel="#{item.projectName}" itemValue="#{item.id}"></f:selectItems>
|
</p:selectOneMenu>
|
</p:column>
|
<p:column>
|
<p:outputLabel value="申购目的:"></p:outputLabel>
|
|
</p:column>
|
<p:column>
|
<p:inputText value="#{applyMngController.opeApply.applyGoal}" ></p:inputText>
|
</p:column>
|
</p:row>
|
</p:panelGrid>
|
|
<p:panel styleClass="btn">
|
|
|
<p:commandButton value="取消" process="@this" update=":applyMngNewListForm"
|
actionListener="#{applyMngController.onCancelBtnClickNew}"
|
styleClass="cancel-btn">
|
</p:commandButton>
|
<p:commandButton value="#{applyMngController.applyEditFlag==constants.ACTION_ADD?'增加':'修改'}"
|
process="@form" update=":applyMngNewListForm"
|
actionListener="#{applyMngController.onSaveBtnClickNew}"
|
styleClass="save-btn">
|
<p:confirm header="确认" message="确认操作?"></p:confirm>
|
</p:commandButton>
|
</p:panel>
|
<!--</p:panel>-->
|
</h:form>
|
|
|
</p:dialog>
|
|
<h:form id="applyMngNewForm" rendered="#{applyMngController.action==constants.ACTION_EDIT}">
|
<p:panel styleClass="apply-mng-new-body">
|
<p:panelGrid styleClass="info grid-padding-bottom2" columns="4" columnClasses="apply-mng-new-info-column1,apply-mng-new-info-column2,apply-mng-new-info-column1,apply-mng-new-info-column3">
|
<p:outputLabel value="申购产品:"></p:outputLabel>
|
<p:inputText value="#{applyMngController.opeApply.reagent.name}" disabled="true"></p:inputText>
|
|
<p:outputLabel value="厂商:"></p:outputLabel>
|
<p:inputText value="#{applyMngController.opeApply.reagent.productHome}" disabled="true"></p:inputText>
|
|
<p:outputLabel value="规格:"></p:outputLabel>
|
<p:inputText value="#{applyMngController.opeApply.reagent.reagentFormat}" disabled="true"></p:inputText>
|
|
<p:outputLabel value="包装:"></p:outputLabel>
|
<p:inputText value="#{''.concat(applyMngController.opeApply.reagent.mainMetering).concat(applyMngController.opeApply.reagent.reagentUnit)}"
|
disabled="true"></p:inputText>
|
|
|
<p:outputLabel value="参考价格:"></p:outputLabel>
|
<p:inputText value="#{applyMngController.opeApply.reagent.price}" disabled="true"></p:inputText>
|
|
<p:outputLabel value="申购数量:"></p:outputLabel>
|
<p:inputNumber value="#{applyMngController.opeApply.num}"
|
decimalPlaces="0" minValue="0"
|
required="true" requiredMessage="请输入申购数量"></p:inputNumber>
|
|
<p:outputLabel value="货期:"></p:outputLabel>
|
<p:panel>
|
<p:calendar value="#{applyMngController.opeApply.deadline}"
|
converter="timestampConvert" pattern="yyyy-MM-dd" locale="zh_CN">
|
<p:ajax event="dateSelect" process="@this" update="@parent"/>
|
</p:calendar>
|
<h:outputText value="货期早于今天" style="color: red;margin-left: 10px" rendered="#{applyMngController.opeApply.deadline!=null and applyMngController.opeApply.deadline.before(utils.now())}"></h:outputText>
|
</p:panel>
|
|
<p:outputLabel value="审批者:"></p:outputLabel>
|
<p:selectOneMenu value="#{applyMngController.opeApply.approveUserId}"
|
required="true" requiredMessage="请选择审批">
|
<f:selectItems value="#{applyMngController.approveUserSelectList}"
|
var="item" itemLabel="#{item.name}" itemValue="#{item.id}"></f:selectItems>
|
<f:ajax listener="#{applyMngController.changeCharge}" render="projectIdSel"/>
|
</p:selectOneMenu>
|
|
<p:outputLabel value="课题组:"></p:outputLabel>
|
<p:selectOneMenu value="#{applyMngController.opeApply.objective}"
|
required="true" requiredMessage="请选择课题组" id="projectIdSel">
|
<f:selectItems value="#{applyMngController.sysProjectList}"
|
var="item" itemLabel="#{item.projectName}" itemValue="#{item.id}"></f:selectItems>
|
</p:selectOneMenu>
|
</p:panelGrid>
|
|
<p:panel styleClass="btn">
|
<p:commandButton value="取消" process="@this" update=":centerRootPanel"
|
actionListener="#{applyMngController.onCancelBtnClick}"
|
styleClass="cancel-btn"></p:commandButton>
|
<p:commandButton value="重置" process="@this" update="@form"
|
actionListener="#{applyMngController.onResetBtnClick}"
|
styleClass="reset-btn"></p:commandButton>
|
<p:commandButton value="保存" process="@form" update=":centerRootPanel"
|
actionListener="#{applyMngController.onSaveBtnClick}"
|
styleClass="save-btn">
|
<p:confirm header="确认" message="确认操作?"></p:confirm>
|
</p:commandButton>
|
</p:panel>
|
</p:panel>
|
</h:form>
|
<br/>
|
<p:tabView dynamic="true" style="margin-left: 26px" activeIndex="#{applyMngController.tabValue}">
|
<p:ajax event="tabChange" listener="#{applyMngController.onTabChange}"/>
|
<p:tab title="试剂库" id="reagent">
|
<h:form id="applyMngNewReagentForm">
|
<p:panelGrid styleClass="apply-mng-new-reagent-filter" columns="9" style="margin-left: -18px">
|
<p:outputLabel value="试剂名称:"></p:outputLabel>
|
<p:inputText value="#{applyMngController.applyNewReagentName}"></p:inputText>
|
|
<p:outputLabel value="CAS:"></p:outputLabel>
|
<p:inputText value="#{applyMngController.applyNewCas}"></p:inputText>
|
<p:outputLabel value="产品编号:"></p:outputLabel>
|
<p:inputText value="#{applyMngController.applyNewSn}"></p:inputText>
|
<p:commandLink styleClass="search reagentSearch" process="@form" update="@form"></p:commandLink>
|
</p:panelGrid>
|
|
<p:dataTable id="applyMngNewReagentDataTable" styleClass="data-table" style="margin-left: 2px"
|
resizableColumns="true" paginator="true" paginatorAlwaysVisible="false" paginatorPosition="bottom"
|
lazy="true" value="#{applyMngController.reagentDataModel}" var="row" rowKey="#{row.id}"
|
emptyMessage="无数据" selectionMode="single"
|
rows="15" pageLinks="5">
|
|
<p:ajax event="rowDblselect" listener="#{applyMngController.onReagentRowSelect}" update=":applyMngNewForm,:applyDialog"></p:ajax>
|
<p:column headerText="产品编号">
|
<h:outputText value="#{row.productSn}"></h:outputText>
|
</p:column>
|
<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 headerText="管制品">
|
<h:outputText value="#{row.controlProducts}"></h:outputText>
|
</p:column>
|
<p:column headerText="规格型号">
|
<h:outputText value="#{row.reagentFormat}"></h:outputText>
|
</p:column>
|
<p:column headerText="包装">
|
<h:outputText value="#{''.concat(row.mainMetering).concat(row.reagentUnit)}"></h:outputText>
|
</p:column>
|
<p:column headerText="含税售价">
|
<h:outputText value="#{row.price}"></h:outputText>
|
</p:column>
|
<p:column headerText="CAS号">
|
<h:outputText value="#{row.cas}"></h:outputText>
|
</p:column>
|
<p:column headerText="危险性质">
|
<h:outputText value="#{row.reagentCharacter}"></h:outputText>
|
</p:column>
|
<p:column headerText="厂家">
|
<h:outputText value="#{row.productHome}"></h:outputText>
|
</p:column>
|
<p:column headerText="试剂类型">
|
<h:outputText value="#{row.reagentType}"></h:outputText>
|
</p:column>
|
<p:column headerText="操作" style="text-align: center;">
|
<h:commandButton styleClass="favor-btn-common #{row.favor == null?'favor-btn':'not-favor-btn'}" value="#{row.favor == null?'加入收藏':'取消收藏'}" update="@this">
|
<f:setPropertyActionListener value="#{row}" target="#{applyMngController.selectReagent}" />
|
</h:commandButton>
|
|
</p:column>
|
</p:dataTable>
|
</h:form>
|
|
|
<p:dialog modal="true" header="新建试剂" appendTo="@(body)"
|
id="dialog" widgetVar="dialog"
|
resizable="false" width="800">
|
<h:form id="dialogForm">
|
<p:panelGrid columns="4" styleClass="content2 grid-padding-bottom2">
|
<p:outputLabel value="试剂名称"></p:outputLabel>
|
<p:inputText value="#{applyMngController.sysReagent.name}" maxlength="100"
|
required="true" requiredMessage="请输入试剂名称"></p:inputText>
|
|
<p:outputLabel value="CAS"></p:outputLabel>
|
<p:inputText value="#{applyMngController.sysReagent.cas}" maxlength="100"
|
required="true" requiredMessage="请输入CAS"></p:inputText>
|
|
<p:outputLabel value="试剂类型"></p:outputLabel>
|
<p:selectOneMenu value="#{applyMngController.sysReagent.reagentType}"
|
required="true" requiredMessage="请选择试剂类型">
|
<f:selectItems value="#{baseMetaService.getBaseMetaList(constants.BASE_META_GROUP_REAGENT_TYPE)}"
|
var="item" itemLabel="#{item.metaValue}" itemValue="#{item.id}"></f:selectItems>
|
</p:selectOneMenu>
|
|
<p:outputLabel value="危险性质"></p:outputLabel>
|
<p:selectOneMenu value="#{applyMngController.sysReagent.reagentCharacter}"
|
required="true" requiredMessage="请选择危险性质">
|
<f:selectItems value="#{baseMetaService.getBaseMetaList(constants.BASE_META_GROUP_REAGENT_CHARACTER)}"
|
var="item" itemLabel="#{item.metaValue}" itemValue="#{item.id}"></f:selectItems>
|
</p:selectOneMenu>
|
|
<p:outputLabel value="供应商"></p:outputLabel>
|
<p:selectOneMenu value="#{applyMngController.sysReagent.supplierId}"
|
required="true" requiredMessage="请选择供应商">
|
<f:selectItems value="#{reagentMngController.supplierSelectList}"
|
var="item" itemLabel="#{item.name}" itemValue="#{item.id}"></f:selectItems>
|
</p:selectOneMenu>
|
|
<p:outputLabel value="规格"></p:outputLabel>
|
<p:selectOneMenu value="#{applyMngController.sysReagent.reagentFormat}"
|
required="true" requiredMessage="请选择规格">
|
<f:selectItems value="#{baseMetaService.getBaseMetaList(constants.BASE_META_GROUP_REAGENT_FORMAT)}"
|
var="item" itemLabel="#{item.metaValue}" itemValue="#{item.id}"></f:selectItems>
|
</p:selectOneMenu>
|
|
<p:outputLabel value="包装"></p:outputLabel>
|
<p:inputNumber value="#{applyMngController.sysReagent.mainMetering}"
|
decimalPlaces="0" minValue="0" maxlength="11"
|
required="true" requiredMessage="请输入包装"></p:inputNumber>
|
|
<p:outputLabel value="主计单位"></p:outputLabel>
|
<p:selectOneMenu value="#{applyMngController.sysReagent.reagentUnit}"
|
required="true" requiredMessage="请选择主计单位">
|
<f:selectItems value="#{baseMetaService.getBaseMetaList(constants.BASE_META_GROUP_REAGENT_UNIT)}"
|
var="item" itemLabel="#{item.metaValue}" itemValue="#{item.id}"></f:selectItems>
|
</p:selectOneMenu>
|
|
<p:outputLabel value="含税售价"></p:outputLabel>
|
<p:inputNumber value="#{applyMngController.sysReagent.price}"
|
decimalPlaces="2" minValue="0" maxlength="10"
|
required="true" requiredMessage="请输入含税售价"></p:inputNumber>
|
|
<p:outputLabel value="每箱数量"></p:outputLabel>
|
<p:inputNumber value="#{applyMngController.sysReagent.perBox}"
|
decimalPlaces="0" minValue="0" maxlength="11"
|
required="true" requiredMessage="请输入每箱数量"></p:inputNumber>
|
|
<p:outputLabel value="备注"></p:outputLabel>
|
<p:inputTextarea autoResize="false" style="height: 80px"
|
value="#{applyMngController.sysReagent.memo}"
|
maxlength="200"></p:inputTextarea>
|
</p:panelGrid>
|
<p:panel styleClass="btn">
|
<p:commandButton value="保存" actionListener="#{applyMngController.onReagentSaveBtnClick}"
|
process="@form" update=":applyMngNewForm,@parent:@parent:@parent:applyMngNewReagentForm">
|
<p:confirm header="确认" message="确认操作?"></p:confirm>
|
</p:commandButton>
|
</p:panel>
|
</h:form>
|
</p:dialog>
|
</p:tab>
|
<p:tab title="申请履历" id="applyHistory">
|
<h:form id="applyMngNewHistoryForm">
|
|
<p:panelGrid styleClass="apply-mng-new-reagent-filter" columns="5" style="margin-left: -18px">
|
<p:outputLabel value="申购编号:"></p:outputLabel>
|
<p:inputText value="#{applyMngController.applyCode}"></p:inputText>
|
|
<p:commandLink styleClass="search" process="@form" update="@form"></p:commandLink>
|
|
</p:panelGrid>
|
|
<p:panelGrid columns="5" styleClass="btn">
|
<p:commandButton value="一键批量增加"
|
process="@form" update=":applyMngNewListForm"
|
actionListener="#{applyMngController.onBatchSaveBtnClickNew}"
|
styleClass="save-btn" style="width: 150px">
|
<p:confirm header="确认" message="确认操作?"></p:confirm>
|
</p:commandButton>
|
</p:panelGrid>
|
|
|
<p:dataTable id="applyMngNewHistoryDataTable" styleClass="data-table" style="margin-left: 2px"
|
resizableColumns="true" paginator="true" paginatorAlwaysVisible="false" paginatorPosition="bottom"
|
lazy="true" value="#{applyMngController.applyHistoryDataModel}" var="row" rowKey="#{row.id}"
|
emptyMessage="无数据" selection="#{applyMngController.selectedList}"
|
rows="20" pageLinks="5">
|
<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" style="white-space:normal;">
|
<h:outputText value="#{row.applyCode}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="申购产品" style="white-space:normal;">
|
<h:outputText value="#{row.reagent!=null?row.reagent.name:''}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="CAS">
|
<h:outputText value="#{row.reagent!=null?row.reagent.cas:''}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="指定供应商">
|
<h:outputText value="#{row.reagent!=null?row.reagent.supplierName:''}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="规格">
|
<h:outputText value="#{row.reagent!=null?row.reagent.reagentFormat:''}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="包装">
|
<h:outputText value="#{row.reagent!=null?(''.concat(row.reagent.mainMetering).concat(row.reagent.reagentUnit)):''}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="试剂单价">
|
<h:outputText value="#{row.reagent!=null?row.reagent.price:''}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="含税售价">
|
<h:outputText value="#{row.applyPrice}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="每箱数量">
|
<h:outputText value="#{row.reagent!=null?row.reagent.perBox:''}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="申购数量">
|
<h:outputText value="#{row.num}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="货期">
|
<h:outputText value="#{row.deadline}">
|
<f:convertDateTime pattern="yyyy-MM-dd" locale="zh_CN"></f:convertDateTime>
|
</h:outputText>
|
</p:column>
|
|
<p:column headerText="申购人">
|
<h:outputText value="#{row.applyUserName}"></h:outputText>
|
</p:column>
|
|
<p:column headerText="申购日期">
|
<h:outputText value="#{row.createTime}">
|
<f:convertDateTime pattern="yyyy-MM-dd" locale="zh_CN"></f:convertDateTime>
|
</h:outputText>
|
</p:column>
|
|
<p:column headerText="状态">
|
<h:outputText value="#{row.status!=null?row.status.text:''}"></h:outputText>
|
</p:column>
|
</p:dataTable>
|
</h:form>
|
</p:tab>
|
<p:tab title="我的收藏" id="favor">
|
<h:form id="myFavor" styleClass="myFavor">
|
<!-- <p:panelGrid style="margin: 5px">-->
|
<!-- <div class="label-tip" style="margin-left: 5px; ">注意:已经收藏的试剂不会再出现在<span style="font-weight: 900;">*试剂库*</span>页面中</div>-->
|
<!-- </p:panelGrid>-->
|
<p:dataTable id="favorDataTable" styleClass="data-table" style="margin-left: 2px"
|
resizableColumns="true" paginator="true" paginatorAlwaysVisible="false" paginatorPosition="bottom"
|
lazy="true" value="#{applyMngController.reagentFavorDataModel}" var="row" rowKey="#{row.id}"
|
emptyMessage="请添加收藏" selectionMode="single"
|
rows="50" pageLinks="5">
|
|
<p:ajax event="rowDblselect" listener="#{applyMngController.onReagentRowSelect}" update=":applyMngNewForm,:applyDialog"></p:ajax>
|
<p:column headerText="产品编号" style="white-space:normal;">
|
<h:outputText value="#{row.productSn}"></h:outputText>
|
</p:column>
|
<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 headerText="管制品">
|
<h:outputText value="#{row.controlProducts}"></h:outputText>
|
</p:column>
|
<p:column headerText="规格型号">
|
<h:outputText value="#{row.reagentFormat}"></h:outputText>
|
</p:column>
|
<p:column headerText="包装">
|
<h:outputText value="#{''.concat(row.mainMetering).concat(row.reagentUnit)}"></h:outputText>
|
</p:column>
|
<p:column headerText="含税售价">
|
<h:outputText value="#{row.price}"></h:outputText>
|
</p:column>
|
<p:column headerText="CAS号">
|
<h:outputText value="#{row.cas}"></h:outputText>
|
</p:column>
|
<p:column headerText="危险性质">
|
<h:outputText value="#{row.reagentCharacter}"></h:outputText>
|
</p:column>
|
<p:column headerText="厂家">
|
<h:outputText value="#{row.productHome}"></h:outputText>
|
</p:column>
|
<p:column headerText="试剂类型">
|
<h:outputText value="#{row.reagentType}"></h:outputText>
|
</p:column>
|
<p:column headerText="操作" style="text-align: center;">
|
<p:commandButton styleClass="favor-btn-common #{row.favor == null?'favor-btn':'not-favor-btn'}"
|
style="background-image:unset;background-color: #1b9aee;color:#ffffff;border: unset" value="#{row.favor == null?'加入收藏':'取消收藏'}"
|
update="@(.myFavor)">
|
<f:setPropertyActionListener value="#{row}" target="#{applyMngController.selectReagent}" />
|
</p:commandButton>
|
|
</p:column>
|
</p:dataTable>
|
</h:form>
|
|
</p:tab>
|
</p:tabView>
|
</p:panel>
|
</ui:composition>
|
</html>
|