<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/common/common.jsp"%>
<head>
<Dst:SMBase type="jquery,eui,ztree" pakgagePath="com.dst.slms.plan.annualpaymentplan.annualPaymentPlanList" uipk="annualPaymentPlanController" title="年度支付计划"/>
</head>
<div id="main_list" class="easyui-layout" fit="true">
	<div data-options="region:'west',title:'组织',split:true" style="width:20%">
		<Dst:SMZTree id="orgTree" url="/cost/getProjectBaseTree" onClick="type_onClick" />
	</div> 
	<div region="center" style="padding:0px;border:0px">
		<Dst:SMDatagrid name="tblGrid" fitColumns="true" sortName="marketProject.name,editionnumber" sortOrder="desc" queryMode="single" actionUrl="/annualPaymentPlanController?list" idField="id"  fit="true">
			<Dst:SMDgCol title="id" field="id"  hidden="true"></Dst:SMDgCol>
			<Dst:SMDgCol title="名称" field="name" ></Dst:SMDgCol>
			<Dst:SMDgCol title="编号" field="number" ></Dst:SMDgCol>
			<Dst:SMDgCol title="项目名称" field="marketProject.name" ></Dst:SMDgCol>
			<Dst:SMDgCol title="所属组织" field="org.name" ></Dst:SMDgCol>
			<Dst:SMDgCol title="年份" field="year" dictionary="year"></Dst:SMDgCol>
			<Dst:SMDgCol title="版本号" align="center" field="editionnumber" width="80" ></Dst:SMDgCol>
			<Dst:SMDgCol title="是否最新版" align="center" replace="是_true,否_false" field="isnew" ></Dst:SMDgCol>
			<Dst:SMDgCol title="单据状态" field="state" dictionary="BILLSTATUS"></Dst:SMDgCol>
			<Dst:SMDgCol title="创建人" field="creator.name" ></Dst:SMDgCol>
			<Dst:SMDgCol title="创建时间" formatter="yyyy-MM-dd HH:mm:ss"  field="creatTime" width="130"></Dst:SMDgCol>	
			<Dst:SMDgCol title="审核人" field="auditor.name" ></Dst:SMDgCol>
			<Dst:SMDgCol title="审核时间" formatter="yyyy-MM-dd" field="auditTime" ></Dst:SMDgCol>
			<Dst:SMDgCol title="最后修改人" field="lastUpdateUser.name" ></Dst:SMDgCol>
			<Dst:SMDgCol title="最后修改时间" formatter="yyyy-MM-dd HH:mm:ss"  field="lastUpdateTime" width="130"></Dst:SMDgCol>	
			<Dst:SMDgCol title="修订原因" field="remake" ></Dst:SMDgCol>
			<Dst:SMDGFunOpt title="审核"  bindAction="auditAction"></Dst:SMDGFunOpt>
			<Dst:SMDGFunOpt title="反审核"  bindAction="unAuditAction"></Dst:SMDGFunOpt>
			<Dst:SMDGToolBar title="新增" icon="fa fa-file-o" bindAction="addNewAction"/>
		    <Dst:SMDGToolBar title="修改" icon="fa fa-edit" bindAction="editAction"/>
		    <Dst:SMDGToolBar title="删除" icon="fa fa-trash-o" bindAction="deleteAction"/>
		    <Dst:SMDGToolBar title="查看" icon="fa fa-newspaper-o" bindAction="viewAction"/>
		    <Dst:SMDGToolBar title="刷新" icon="fa fa-refresh" bindAction="refreshAction"/>
			<Dst:SMDGToolBar title="流程图" icon="fa fa-cubes" bindAction="viewFlowAction"/>
			<Dst:SMDGToolBar title="审核" bindAction="auditAction"/>
			<Dst:SMDGToolBar title="反审核" bindAction="unAuditAction"/>
			<Dst:SMDGToolBar title="修订" icon="fa fa-edit" bindAction="reviseAction"/>
		</Dst:SMDatagrid>
	</div>
</div>
