<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/common/common.jsp"%>
<head>
<Dst:SMBase type="jquery,eui" pakgagePath="com.dst.slms.supplierreview.supplierreview.supplierReviewEdit" uipk="supplierReviewController" title="供应商评审"/>
</head>
<body class="dst-mainbackground">
<div class="dst-container">

<Dst:SMMain title="供应商评审">
	<Dst:SMEDBillToolBar >
	   <Dst:SMDGToolBar title="保存" icon="fa fa-save" bindAction="saveAction"/>
	   <Dst:SMDGToolBar title="提交并关闭" icon="fa fa-clipboard" bindAction="submitAction"/>
	   <Dst:SMDGToolBar title="查看流程图" icon="fa fa-cubes" bindAction="viewFlowAction"/>
	   <Dst:SMDGToolBar title="关闭" icon="fa fa-rotate-left" bindAction="closeAction"/>
	</Dst:SMEDBillToolBar> 
	<Dst:SMForm formid="formobj" >
		<input id="id" name="id" type="hidden" value="${model.id }">
		<div class="easyui-panel" title="供应商评审" style="width:100%;" data-options="bodyCls:'panle-background',collapsible:true,headerCls:'panel-block-teal panel-description'">
			<div style="padding-top: 10px"></div>
			<div class="dst-row">
				<div class="dst-col-sm4">
					<label class="dst-form-label">单据编号</label>
					<div class="dst-input-block">
						<Dst:SMTextBox id="number" readonly="false" validType="['maxLength[100]']" width="100%" value="${model.number}"/>
					</div>
				</div>
				<div class="dst-col-sm4">
					<label class="dst-form-label">供应商编码</label>
					<div class="dst-input-block">
						<Dst:SMBizPromptBox id="supplierProfile" onDataChange="updateSupplierProfile" required="true" disPlayFormatName="number" queryFieldItem="number,name" entityPath="com.dst.slms.supplierprofile.entity.SupplierProfileInfo" width="100%" value="${model.supplierProfile}"/>
					</div>
				</div>
				<div class="dst-col-sm4">
					<label class="dst-form-label">供应商名称</label>
					<div class="dst-input-block">
						<Dst:SMTextBox id="name" readonly="true" validType="['maxLength[100]']" width="100%" value="${model.name}"/>
					</div>
				</div>
			</div>
			<div class="dst-row">
				<div class="dst-col-sm4">
					<label class="dst-form-label">合同</label>
					<div class="dst-input-block">
						<Dst:SMBizPromptBox id="saleContract" queryFieldItem="number,name" entityPath="com.dst.slms.contractmange.entity.SaleContractInfo" width="100%" value="${model.saleContract}"/>
					</div>
				</div>
				<div class="dst-col-sm4">
					<label class="dst-form-label">服务区域</label>
					<div class="dst-input-block">
						<Dst:SMTextBox id="serviceArea" validType="['maxLength[100]']" width="100%" value="${model.serviceArea}"/>
					</div>
				</div>
				<div class="dst-col-sm4">
					<label class="dst-form-label">评审类型</label>
					<div class="dst-input-block">
						<Dst:SMBizPromptBox id="reviewType" onDataChange="updatereviewType" required="true" DSTFilter=" isEnable='Y'"  queryFieldItem="number,name" entityPath="com.dst.slms.supplierreview.entity.ReviewTypeInfo" width="100%" value="${model.reviewType}"/>
					</div>
				</div>
			</div>
			<div class="dst-row">
				<div class="dst-col-sm4">
					<label class="dst-form-label">评审模板</label>
					<div class="dst-input-block">
						<Dst:SMBizPromptBox id="reviewTemplate"  onDataChange="updatereviewTemplate" required="true" queryFieldItem="number,name" entityPath="com.dst.slms.supplierreview.entity.ReviewTemplateInfo" width="100%" value="${model.reviewTemplate}"/>
					</div>
				</div>
				<div class="dst-col-sm4">
					<label class="dst-form-label">评审日期</label>
					<div class="dst-input-block">
						<Dst:SMDateTimeBox id="reviewDate" required="true"  width="100%" value="${model.reviewDate}"/>
					</div>
				</div>
				<div class="dst-col-sm4">
					<label class="dst-form-label">推荐人</label>
					<div class="dst-input-block">
						<Dst:SMTextBox id="referrer" validType="['maxLength[100]']" width="100%" value="${model.referrer}"/>
					</div>
				</div>
			</div>
			<div class="dst-row">
				<div class="dst-col-sm4">
					<label class="dst-form-label">生效开始日期</label>
					<div class="dst-input-block">
						<Dst:SMDateTimeBox id="effectiveBegin" readonly="true" width="100%" value="${model.effectiveBegin}"/>
					</div>
				</div>
				<div class="dst-col-sm4">
					<label class="dst-form-label">生效结束日期</label>
					<div class="dst-input-block">
						<Dst:SMDateTimeBox id="effectiveEnd" readonly="true" width="100%" value="${model.effectiveEnd}"/>
					</div>
				</div>
				<div class="dst-col-sm4">
					<label class="dst-form-label">最终得分</label>
					<div class="dst-input-block">
						<Dst:SMNumberBox id="finalScore" readonly="true" precision="2" width="100%" value="${model.finalScore}"/>
					</div>
				</div>
			</div>
			<div class="dst-row">
				<div class="dst-col-sm12">
					<label class="dst-form-label">说明</label>
					<div class="dst-input-block">
						<Dst:SMTextBox id="remake" height="100" validType="['maxLength[500]']" width="100%" value="${model.remake}"/>
					</div>
				</div>
			</div>
		</div>	
		<div style="padding-top: 10px"></div>
		<Dst:SMEDDatagrid entityPath="com.dst.slms.supplierreview.entity.SupplierReviewScoreInfo" style="width:100%;height:250px;" enableCellEdit="true" rownumbers="true" 
		ctrlSelect="true" title="评分<span style='color:red;'> 现考核机制为：100分制</span>" nowrap="false"  data="${model.supplierReviewScore}" id="supplierReviewScore" >
			<Dst:SMEDColumnMoreHeaderGroup>
				<Dst:SMEDColumnTextBox title="id" field="id" hidden="true" width="200"/>
				<Dst:SMEDColumnTextBox field="guideName" readonly="true" title="指标名称" width="200"></Dst:SMEDColumnTextBox>
				<Dst:SMEDColumnTextBox field="fullNum" readonly="true" title="标准" width="200"></Dst:SMEDColumnTextBox>
				<Dst:SMEDColumnNumberBox field="weight" readonly="true" title="权重%" precision="2"></Dst:SMEDColumnNumberBox>
				<Dst:SMEDColumnTextBox field="remark" title="情况描述" readonly="true" width="250"></Dst:SMEDColumnTextBox>
				<Dst:SMEDColumnNumberBox field="score" required="false" title="评分" precision="2"></Dst:SMEDColumnNumberBox>
				<Dst:SMEDColumnCheckBox title="是否扣分项" field="iskouF" readonly="true" align="center"></Dst:SMEDColumnCheckBox>
			</Dst:SMEDColumnMoreHeaderGroup>
		</Dst:SMEDDatagrid>
		<div style="padding-top: 10px"></div>
				 <div class="easyui-panel" title="附件" style="width: 100%;"
					data-options="collapsible:true">
					<Dst:SMWebUploader name="上传文件" callFunction="jbupload"
						buttonText="上传文件" />
				</div>
	</Dst:SMForm>	
</Dst:SMMain>
</div>
</body>
