<%@ 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.base.marketaccount.marketAccountEdit" uipk="marketAccountController" 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="营销科目<span>信息</span>" 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-sm6">
					<label class="dst-form-label">费用编号</label>
					<div class="dst-input-block">
						<Dst:SMTextBox id="number" required="true" validType="['maxLength[100]']" width="100%" value="${model.number}"/>
					</div>
				</div>
			</div>
			<div class="dst-row">
				<div class="dst-col-sm6">
					<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 class="dst-col-sm6">
					<label class="dst-form-label">上级科目</label>
			    	<div class="dst-input-block">
						<Dst:SMBizPromptBox id="parent" required="false" entityPath="com.dst.slms.base.entity.MarketAccountInfo" queryFieldItem="name,number" isShowLable="false" width="100%" value="${model.parent }"/>
			    	</div>
				</div>
			</div>
			<div class="dst-row">
				<div class="dst-col-sm2">
					<label class="dst-form-label"></label>
					<div class="dst-input-block">
						<Dst:SMCheckBox id="isMonth"  label="按月控制"  value="${model.isMonth}"/>
					</div>
				</div>
				<div class="dst-col-sm2">
					<label class="dst-form-label"></label>
					<div class="dst-input-block">
						<Dst:SMCheckBox id="isQuarter"  label="按季控制"  value="${model.isQuarter}"/>
					</div>
				</div>
				<div class="dst-col-sm2">
					<label class="dst-form-label"></label>
					<div class="dst-input-block">
						<Dst:SMCheckBox id="isYear"  label="按年控制"  value="${model.isYear}"/>
					</div>
				</div>
			</div>
			<div class="dst-row">
				<div class="dst-col-sm3">
					<label class="dst-form-label"></label>
					<div class="dst-input-block">
						<Dst:SMCheckBox id="isexcess"  label="允许超额"  value="${model.isexcess}"/>
					</div>
				</div>
				<div class="dst-col-sm3">
					<label class="dst-form-label">允许超额（%）</label>
					<div class="dst-input-block">
						<Dst:SMNumberBox id="excessRate" precision="2" width="100%" value="${model.excessRate}"/>
					</div>
				</div>
				<div class="dst-col-sm4" >
					<label class="dst-form-label" style="width: 100%;text-align:left;color:blue;">允许超额后，百分比才有效。</label>
				</div>
			</div>
			<div class="dst-row">
				<div class="dst-col-sm6">
					<label class="dst-form-label"></label>
					<div class="dst-input-block">
						<Dst:SMCheckBox id="isPut"  label="投放强控"  value="${model.isPut}"/>
					</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="media" DSTFilter="isEnable='Y'" entityPath="com.dst.slms.base.entity.MediaInfoInfo" width="100%" value="${model.media}"/>
					</div>
				</div>
			</div>
			<div class="dst-row">
				<div class="dst-col-sm4" style="display: none;">
					<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-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>
