<%@ 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.proapproval.projectapprove.projectApproveEdit" uipk="projectApproveController" 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 }">
		<input id="isLast" name="isLast" type="hidden" value="${model.isLast }">
		<input id="version" name="version" type="hidden" value="${model.version }">
		<input id="istoContract" name="istoContract" type="hidden" value="${model.istoContract }">
		<input id="sourceBillId" name="sourceBillId"  type="hidden" value="${model.sourceBillId }">
		<input id="proApp" name="proApp"  type="hidden" value="${model.proApp }">
<%-- 		<div class="dst-input-block" style="display:none">
			<Dst:SMBizPromptBox id="proApp"  disPlayFormatName="number" queryFieldItem="number" entityPath="com.dst.slms.proapproval.entity.ProjectApproveInfo" width="100%" value="${model.proApp}"/>
		</div> --%>
		<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" 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="itemDes" required="true" validType="['maxLength[100]']" width="100%" value="${model.itemDes}"/>
					</div>
				</div>
				<div class="dst-col-sm4">
					<label class="dst-form-label">业务日期</label>
					<div class="dst-input-block">
						<Dst:SMDateTimeBox id="bizdate" required="true"  width="100%" value="${model.bizdate}"/>
					</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="planType"  dicGroupCode="planType" width="100%" value="${model.planType}"/>
					</div>
				</div>
				<div class="dst-col-sm4">
					<label class="dst-form-label">营销科目</label>
					<div class="dst-input-block">
						<Dst:SMBizPromptBox id="markaccount" DSTFilter="isLeaf='Y'"  required="true"  queryFieldItem="number,name,isLeaf" entityPath="com.dst.slms.base.entity.MarketAccountInfo" width="100%" value="${model.markaccount}"/>
					</div>
				</div>
				<div class="dst-col-sm4">
					<label class="dst-form-label">主题</label>
					<div class="dst-input-block">
						<Dst:SMTextBox id="theme" required="true"  validType="['maxLength[100]']" width="100%" value="${model.theme}"/>
					</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="monMarkMange" required="true" disPlayFormatName="number" queryFieldItem="number" entityPath="com.dst.slms.proapproval.entity.MonMarkMangeInfo" width="100%" value="${model.monMarkMange}"/>
					</div>
				</div>
				<div class="dst-col-sm4">
					<label class="dst-form-label"></label>
					<div class="dst-input-block">
						<Dst:SMCheckBox id="isoutplan"  label="是否主题计划外"  value="${model.isoutplan}"/>
					</div>
				</div>
				<div class="dst-col-sm4">
					<label class="dst-form-label"></label>
					<div class="dst-input-block">
						<Dst:SMCheckBox id="ismonPay"  label="当月是否需要支付"  value="${model.ismonPay}"/>
					</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="isglcontract"    label="是否关联框架合同"  value="${model.isglcontract}"/>
					</div>
				</div>
				<div class="dst-col-sm4">
					<label class="dst-form-label">立项金额</label>
					<div class="dst-input-block">
						<Dst:SMNumberBox id="lxAmt" required="true"  precision="2" width="100%" value="${model.lxAmt}"/>
					</div>
				</div>
				<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>
			<div class="dst-row">
				<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 class="dst-col-sm4">
					<label class="dst-form-label">合同性质</label>
					<div class="dst-input-block">
						<Dst:SMEnumDicBox id="contractNature" required="true"  dicGroupCode="contractNature" width="100%" value="${model.contractNature}"/>
					</div>
				</div>
				<div class="dst-col-sm4">
					<label class="dst-form-label">所属组织</label>
					<div class="dst-input-block">
						<Dst:SMBizPromptBox id="orgunit"  readonly="true"  queryFieldItem="number,name" entityPath="com.dst.slms.system.entity.SysOrgInfo" width="100%" value="${model.orgunit}"/>
					</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="supplier" queryFieldItem="number,name" entityPath="com.dst.slms.supplierprofile.entity.SupplierProfileInfo" width="100%" value="${model.supplier}"/>
					</div>
				</div>
				<div class="dst-col-sm4">
					<label class="dst-form-label">合同名称</label>
					<div class="dst-input-block">
						<Dst:SMBizPromptBox id="contract"  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:SMEnumDicBox id="startNote"    dicGroupCode="startNote" width="100%" value="${model.startNote}"/>
					</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="monAmt" precision="2" width="100%" value="${model.monAmt}"/>
					</div>
				</div>
				<div class="dst-col-sm4">
					<label class="dst-form-label">采购方式</label>
					<div class="dst-input-block">
						<Dst:SMEnumDicBox id="purType" required="true"  dicGroupCode="purType" width="100%" value="${model.purType}"/>
					</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" validType="['maxLength[100]']" width="100%" value="${model.remake}"/>
					</div>
				</div>
			</div>
		</div>	
	</Dst:SMForm>	
</Dst:SMMain>
</div>
</body>
