<%@ 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.contractmange.receipt.receiptEdit" uipk="receiptController" 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-sm12">
					<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>
			<div class="dst-row">
			</div>
			<div class="dst-row">
				<div class="dst-col-sm4">
					<label class="dst-form-label">申请人</label>
					<div class="dst-input-block">
						<Dst:SMBizPromptBox id="reqPerson" required="true" queryFieldItem="number,name" entityPath="com.dst.slms.system.entity.SysPersonInfo" width="100%" value="${model.reqPerson}"/>
					</div>
				</div>
				<div class="dst-col-sm4">
					<label class="dst-form-label">申请日期</label>
					<div class="dst-input-block">
						<Dst:SMDateTimeBox id="reqDate" required="true" width="100%" value="${model.reqDate}"/>
					</div>
				</div>
				<div class="dst-col-sm4">
					<label class="dst-form-label">项目</label>
					<div class="dst-input-block">
						<Dst:SMBizPromptBox id="project" readonly="true" queryFieldItem="number,name" entityPath="com.dst.slms.base.entity.MarketProjectInfo" width="100%" value="${model.project}"/>
					</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="execution" validType="['maxLength[100]']" width="100%" value="${model.execution}"/>
					</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="contract" required="true"  onDataChange="contract_onDataChange"  queryFieldItem="number,name" entityPath="com.dst.slms.contractmange.entity.SaleContractInfo" width="100%" value="${model.contract}"/>
					</div>
				</div>
				<div class="dst-col-sm4">
					<label class="dst-form-label">合同号</label>
					<div class="dst-input-block">
						<Dst:SMTextBox id="contractNum" readonly="true" validType="['maxLength[100]']" width="100%" value="${model.contractNum}"/>
					</div>
				</div>
				<div class="dst-col-sm4">
					<label class="dst-form-label">合同签约</label>
					<div class="dst-input-block">
						<Dst:SMDateTimeBox id="conDate"  readonly="true" width="100%" value="${model.conDate}"/>
					</div>
				</div>
			</div>
			<div class="dst-row">
				<div class="dst-col-sm4">
					<label class="dst-form-label">签约金额</label>
					<div class="dst-input-block">
						<Dst:SMNumberBox id="conAmt" readonly="true"  precision="2" width="100%" value="${model.conAmt}"/>
					</div>
				</div>
				<div class="dst-col-sm4">
					<label class="dst-form-label">甲方</label>
					<div class="dst-input-block">
						<Dst:SMBizPromptBox id="partA" readonly="true"  queryFieldItem="number,name" entityPath="com.dst.slms.system.entity.SysOrgInfo" width="100%" value="${model.partA}"/>
					</div>
				</div>
				<div class="dst-col-sm4">
					<label class="dst-form-label">乙方</label>
					<div class="dst-input-block">
						<Dst:SMBizPromptBox id="supplier" readonly="true"  queryFieldItem="number,name" entityPath="com.dst.slms.supplierprofile.entity.SupplierProfileInfo" width="100%" value="${model.supplier}"/>
					</div>
				</div>
			</div>
			<div class="dst-row">
				<div class="dst-col-sm4">
					<label class="dst-form-label">单据状态</label>
					<div class="dst-input-block">
						<Dst:SMEnumDicBox id="state" readonly="true"  dicGroupCode="BILLSTATUS" width="100%" value="${model.state}"/>
					</div>
				</div>
				<div class="dst-col-sm4">
					<label class="dst-form-label">框架合同</label>
					<div class="dst-input-block">
						<Dst:SMBizPromptBox id="kjcontract" readonly="true"  queryFieldItem="number,name" entityPath="com.dst.slms.contractmange.entity.SaleContractInfo" width="100%" value="${model.kjcontract}"/>
					</div>
				</div>
				<div class="dst-col-sm4">
					<label class="dst-form-label">合同类型</label>
					<div class="dst-input-block">
						<Dst:SMBizPromptBox id="contractType"  readonly="true"   queryFieldItem="number,name" entityPath="com.dst.slms.base.entity.ContractTypeInfo" width="100%" value="${model.contractType}"/>
					</div>
				</div>
			</div>
			<div class="dst-row">
<%-- 				<div class="dst-col-sm4">
					<label class="dst-form-label">实际来电</label>
					<div class="dst-input-block">
						<Dst:SMTextBox id="sjphone" validType="['maxLength[100]']" width="100%" value="${model.sjphone}"/>
					</div>
				</div>
				<div class="dst-col-sm4">
					<label class="dst-form-label">实际来人</label>
					<div class="dst-input-block">
						<Dst:SMTextBox id="sjperson" validType="['maxLength[100]']" width="100%" value="${model.sjperson}"/>
					</div>
				</div> --%>
				<div class="dst-col-sm4">
					<label class="dst-form-label">验收金额</label>
					<div class="dst-input-block">
						<Dst:SMNumberBox id="ysAmt" precision="2" required="true" width="100%" value="${model.ysAmt}"/>
					</div>
				</div>
			</div>
			<div class="dst-row">
				<div class="dst-col-sm4">
					<label class="dst-form-label">评估得分</label>
					<div class="dst-input-block">
						<Dst:SMNumberBox id="score" readonly="true"  precision="0" width="100%" value="${model.score}"/>
					</div>
				</div>
				<div class="dst-col-sm4">
					<label class="dst-form-label">评估结果</label>
					<div class="dst-input-block">
						<Dst:SMEnumDicBox id="result" readonly="true"  dicGroupCode="result" width="100%" value="${model.result}"/>
					</div>
				</div>
			</div>
		</div>	
		<div style="padding-top: 10px"></div>
		<Dst:SMEDDatagrid entityPath="com.dst.slms.contractmange.entity.ReceiptE3Info" style="width:100%;height:250px;" enableCellEdit="true" rownumbers="true" 
		ctrlSelect="true" title="费用明细页签" data="${model.receiptE3}" id="receiptE3" >
			<Dst:SMEDBillToolBar id="receiptE3tb">
				<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:SMEDColumnBizPromptBox field="parent" hidden="true" queryFieldItem="number,name" title="父对象关联" entityPath="com.dst.slms.contractmange.entity.ReceiptInfo"></Dst:SMEDColumnBizPromptBox>
				<Dst:SMEDColumnBizPromptBox field="markAccount" DSTFilter="isLeaf='Y'" queryFieldItem="number,name,isLeaf" title="费用科目" entityPath="com.dst.slms.base.entity.MarketAccountInfo"></Dst:SMEDColumnBizPromptBox>
				<Dst:SMEDColumnNumberBox field="conAmt" title="合同拆分(万元)" precision="2"></Dst:SMEDColumnNumberBox>
				<Dst:SMEDColumnNumberBox field="ysAmt" title="本次验收金额" precision="2"></Dst:SMEDColumnNumberBox>
				<Dst:SMEDColumnTextBox field="comment" title="营销活动内容" width="100"></Dst:SMEDColumnTextBox>
				<Dst:SMEDColumnNumberBox field="lfcount" title="来访人数" precision="0"></Dst:SMEDColumnNumberBox>
				<Dst:SMEDColumnNumberBox field="cjcount" title="成交套数" precision="0"></Dst:SMEDColumnNumberBox>
				<Dst:SMEDColumnNumberBox field="cjAmt" title="成交金额" precision="2"></Dst:SMEDColumnNumberBox>
				<Dst:SMEDColumnTextBox field="remark" title="说明" width="100"></Dst:SMEDColumnTextBox>
			</Dst:SMEDColumnMoreHeaderGroup>
		</Dst:SMEDDatagrid>
		<div style="padding-top: 10px"></div>	
		<Dst:SMEDDatagrid entityPath="com.dst.slms.contractmange.entity.ReceiptE1Info" style="width:100%;height:250px;" enableCellEdit="true" rownumbers="true" 
		ctrlSelect="true" title="评估指标" data="${model.receiptE1}" id="receiptE1" entry_editChange="receiptE1_editChange" >
			<Dst:SMEDBillToolBar id="receiptE1tb">
				<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:SMEDColumnBizPromptBox field="parent" hidden="true" queryFieldItem="number,name" title="父对象关联" entityPath="com.dst.slms.contractmange.entity.ReceiptInfo"></Dst:SMEDColumnBizPromptBox>
				<Dst:SMEDColumnEnumDicBox field="evaluation" required="true"  title="评估指标" dicGroupCode="evaluation" width="100"></Dst:SMEDColumnEnumDicBox>
				<Dst:SMEDColumnNumberBox field="score"  required="true" title="评分(100分制)" precision="0"></Dst:SMEDColumnNumberBox>
				<Dst:SMEDColumnNumberBox field="weight" required="true"  title="权重(%)" precision="0"></Dst:SMEDColumnNumberBox>
				<Dst:SMEDColumnTextBox field="remark" title="说明" width="100"></Dst:SMEDColumnTextBox>
			</Dst:SMEDColumnMoreHeaderGroup>
		</Dst:SMEDDatagrid>
		<div style="padding-top: 10px"></div>
		<Dst:SMEDDatagrid entityPath="com.dst.slms.contractmange.entity.ReceiptE2Info" style="width:100%;height:250px;" enableCellEdit="true" rownumbers="true" 
		ctrlSelect="true" title="投放分录" data="${model.receiptE2}" id="receiptE2" >
			<Dst:SMEDBillToolBar id="receiptE2tb">
				<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:SMEDColumnBizPromptBox field="parent" hidden="true"  queryFieldItem="number,name" title="父对象关联" entityPath="com.dst.slms.contractmange.entity.ReceiptInfo"></Dst:SMEDColumnBizPromptBox>
				<Dst:SMEDColumnTextBox field="name" title="投放名称" width="100"></Dst:SMEDColumnTextBox>
				<Dst:SMEDColumnTextBox field="mTDL" title="媒体大类" hidden="true"   width="100"></Dst:SMEDColumnTextBox>
				<Dst:SMEDColumnBizPromptBox field="mTXL" queryFieldItem="number,name" title="媒体小类" entityPath="com.dst.slms.base.entity.MediaInfoInfo"></Dst:SMEDColumnBizPromptBox>
				<Dst:SMEDColumnDateTimeBox field="startDate" title="投放起始日期"></Dst:SMEDColumnDateTimeBox>
				<Dst:SMEDColumnDateTimeBox field="endDate" title="结束日期"></Dst:SMEDColumnDateTimeBox>
				<Dst:SMEDColumnNumberBox field="tfAmt" title="投放费用" precision="2"></Dst:SMEDColumnNumberBox>
				<Dst:SMEDColumnTextBox field="remark" title="说明" width="100"></Dst:SMEDColumnTextBox>
			</Dst:SMEDColumnMoreHeaderGroup>
		</Dst:SMEDDatagrid>
	</Dst:SMForm>	
</Dst:SMMain>
</div>
</body>
