<%@ 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.reviewtemplate.reviewTemplateEdit" uipk="reviewTemplateController" 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-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:SMTextBox id="name" required="true" validType="['maxLength[100]']" width="100%" value="${model.name}"/>
					</div>
				</div>
				<div class="dst-col-sm4">
					<label class="dst-form-label">评审类型</label>
					<div class="dst-input-block">
						<Dst:SMBizPromptBox id="reviewType"  required="true" DSTFilter=" isEnable='Y'" 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:SMCheckBox id="isEnable"  label="是否启用"  value="${model.isEnable}"/>
					</div>
				</div>
				<div class="dst-col-sm4">
					<label class="dst-form-label"></label>
					<div class="dst-input-block">
						<Dst:SMCheckBox id="isgCKC"  label="是否工程实例考察"  value="${model.isgCKC}"/>
					</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[200]']" width="100%" value="${model.remake}"/>
					</div>
				</div>
			</div>
		</div>	
		<div style="padding-top: 10px"></div>
				<Dst:SMEDDatagrid entityPath="com.dst.slms.supplierreview.entity.TemplateChildInfo" style="width:100%;height:250px;" enableCellEdit="true" rownumbers="true" 
		ctrlSelect="true" title="评审模板分录" data="${model.templateChild}" nowrap="false" id="templateChild" entry_editChange="editChangeOrg">
			<Dst:SMEDBillToolBar id="templateChildtb">
				<Dst:SMDGToolBar title="新增" icon="icon-entity-addline" bindAction="addRow"/>
				<Dst:SMDGToolBar title="插入" icon="icon-entity-insertline" bindAction="insRow"/>
				<Dst:SMDGToolBar title="删除" icon="icon-entity-deleteline" bindAction="removeRow"/>
				<Dst:SMDGToolBar title="上移" icon="icon-entity-upline" bindAction="moveUp"/>
				<Dst:SMDGToolBar title="下移" icon="icon-entity-downline" bindAction="moveDown"/>
			</Dst:SMEDBillToolBar>  
			<Dst:SMEDColumnMoreHeaderGroup>
				<Dst:SMEDColumnTextBox title="id" field="id" hidden="true" width="100"/>
				<Dst:SMEDColumnTextBox field="guideName" required="true" title="指标名称" width="200"></Dst:SMEDColumnTextBox>
				<Dst:SMEDColumnTextBox field="fullNum" required="false" title="标准" width="200"></Dst:SMEDColumnTextBox>
				<Dst:SMEDColumnTextBox field="guideDescription"  title="指标描述" width="200"></Dst:SMEDColumnTextBox>
				<Dst:SMEDColumnNumberBox field="weight" required="true" title="权重%" precision="2"></Dst:SMEDColumnNumberBox>
				<Dst:SMEDColumnTextBox field="remark" title="说明" width="150"></Dst:SMEDColumnTextBox>
				<Dst:SMEDColumnBizPromptBox field="org" required="true" title="评审部门" url="/systemPop/orgPage"  ></Dst:SMEDColumnBizPromptBox>
				<Dst:SMEDColumnCheckBox title="是否扣分项" field="iskouF" align="center"></Dst:SMEDColumnCheckBox>
			</Dst:SMEDColumnMoreHeaderGroup>
		</Dst:SMEDDatagrid>
		<div style="padding-top: 10px"></div>
		<Dst:SMEDDatagrid entityPath="com.dst.slms.supplierreview.entity.UnitWeightInfo" style="width:100%;height:250px;" enableCellEdit="true" rownumbers="true" 
		ctrlSelect="true" title="部门权重" data="${model.unitWeight}" id="unitWeight" >
			<Dst:SMEDColumnMoreHeaderGroup>
				<Dst:SMEDColumnTextBox title="id" field="id" hidden="true" width="100"/>
				<Dst:SMEDColumnBizPromptBox field="org" readonly="true" title="部门" entityPath="com.dst.slms.system.entity.SysOrgInfo"></Dst:SMEDColumnBizPromptBox>
				<Dst:SMEDColumnNumberBox field="weight" title="权重%" required="true" precision="2"></Dst:SMEDColumnNumberBox>
			</Dst:SMEDColumnMoreHeaderGroup>
		</Dst:SMEDDatagrid>
	</Dst:SMForm>	
</Dst:SMMain>
</div>
</body>
