<%@ 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.plan.annualpaymentplan.annualPaymentPlanEdit" uipk="annualPaymentPlanController" 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="oldId" name="oldId" type="hidden" value="${oldId}">
		<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" required="true"  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="org" readonly="true" queryFieldItem="number,name" entityPath="com.dst.slms.system.entity.SysOrgInfo" width="100%" value="${model.org}"/>
					</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="marketProject" required="true" onDataChange="project_DataChange" queryFieldItem="number,name,org.name" entityPath="com.dst.slms.base.entity.MarketProjectInfo" width="100%" value="${model.marketProject}"/>
					</div>
				</div>
				<div class="dst-col-sm4">
					<label class="dst-form-label">年份</label>
					<div class="dst-input-block">
						<Dst:SMEnumDicBox id="year" required="true" editable="false" dicGroupCode="year" width="100%" value="${model.year}"/>
					</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:SMNumberBox id="editionnumber" width="100%" readonly="true" value="${model.editionnumber}"/>
					</div>
				</div>
				<div class="dst-col-sm4">
					<div class="dst-input-block">
						<Dst:SMCheckBox id="isnew" label="是否最新版" readonly="true" value="${model.isnew}"/>
					</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" multiline="true" required="true" height="50" validType="['maxLength[500]']" width="100%" value="${model.remake}"/>
					</div>
				</div>
			</div>
		</div>	
		<div style="padding-top: 10px;height: 400px;">
			<table id="editTreeGrid" ></table> 
		</div>
		<%-- <div style="padding-top: 10px"></div>
		<Dst:SMEDDatagrid entityPath="com.dst.slms.plan.entity.AnnualPlanDetailsInfo" style="width:100%;height:250px;" enableCellEdit="true" rownumbers="true" 
		ctrlSelect="true" title="年计划明细" data="${model.annualPlanDetails}" id="annualPlanDetails" entry_editChange="entry_change" >
			<Dst:SMEDBillToolBar id="annualPlanDetailstb">
				<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:SMEDBillToolBar>  
			<Dst:SMEDColumnMoreHeaderGroup>
				<Dst:SMEDColumnTextBox title="id" field="id" hidden="true" width="100"/>
				<Dst:SMEDColumnBizPromptBox field="marketAccoun" readonly="true" disPlayFormatName="number" queryFieldItem="number,name" title="科目编码" entityPath="com.dst.slms.base.entity.MarketAccountInfo"></Dst:SMEDColumnBizPromptBox>
				<Dst:SMEDColumnTextBox field="marketAccounName" readonly="true" title="科目名称"  width="100"></Dst:SMEDColumnTextBox>
				<Dst:SMEDColumnNumberBox field="amountTotal" readonly="true" title="合计金额" precision="2"></Dst:SMEDColumnNumberBox>
				<Dst:SMEDColumnNumberBox field="jan" title="1月" precision="2"></Dst:SMEDColumnNumberBox>
				<Dst:SMEDColumnNumberBox field="feb" title="2月" precision="2"></Dst:SMEDColumnNumberBox>
				<Dst:SMEDColumnNumberBox field="mar" title="3月" precision="2"></Dst:SMEDColumnNumberBox>
				<Dst:SMEDColumnNumberBox field="apr" title="4月" precision="2"></Dst:SMEDColumnNumberBox>
				<Dst:SMEDColumnNumberBox field="may" title="5月" precision="2"></Dst:SMEDColumnNumberBox>
				<Dst:SMEDColumnNumberBox field="jun" title="6月" precision="2"></Dst:SMEDColumnNumberBox>
				<Dst:SMEDColumnNumberBox field="jul" title="7月" precision="2"></Dst:SMEDColumnNumberBox>
				<Dst:SMEDColumnNumberBox field="aug" title="8月" precision="2"></Dst:SMEDColumnNumberBox>
				<Dst:SMEDColumnNumberBox field="sep" title="9月" precision="2"></Dst:SMEDColumnNumberBox>
				<Dst:SMEDColumnNumberBox field="oct" title="10月" precision="2"></Dst:SMEDColumnNumberBox>
				<Dst:SMEDColumnNumberBox field="nov" title="11月" precision="2"></Dst:SMEDColumnNumberBox>
				<Dst:SMEDColumnNumberBox field="dec" title="12月" precision="2"></Dst:SMEDColumnNumberBox>
			</Dst:SMEDColumnMoreHeaderGroup>
		</Dst:SMEDDatagrid> --%>
	</Dst:SMForm>	
</Dst:SMMain>
</div>
</body>
