<%@ 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.base.marketaccount.marketAccountList" uipk="marketAccountController" title="营销科目"/>
</head>
<div id="main_list" class="easyui-layout" fit="true">
	<div data-options="region:'west',title:'营销科目',split:true" style="width:250px;padding:0px;">
		<Dst:SMZTree id="accountTree" url="/marketAccountController/getAccountTreeData"  virtualRootName="营销科目" onClick="clickTreeAction" />
	</div>  
	<div region="center" style="padding:0px;border:0px">
		<Dst:SMDatagrid name="tblGrid" fitColumns="true" sortName="lastUpdateTime"  sortOrder="desc"  actionUrl="/marketAccountController?list" idField="id"  fit="true">
			<Dst:SMDgCol title="id" field="id"  hidden="true"></Dst:SMDgCol>
			<Dst:SMDgCol title="费用编号" field="number" query="true"></Dst:SMDgCol>
			<Dst:SMDgCol title="费用名称" field="name" query="true"></Dst:SMDgCol>
			<Dst:SMDgCol title="媒体信息" field="media.name" ></Dst:SMDgCol>
			<Dst:SMDgCol title="按月控制" replace="是_true,否_false" field="isMonth" width="80"></Dst:SMDgCol>
			<Dst:SMDgCol title="按季控制" replace="是_true,否_false" field="isQuarter" width="80"></Dst:SMDgCol>
			<Dst:SMDgCol title="按年控制" replace="是_true,否_false" field="isYear" width="80"></Dst:SMDgCol>
			<Dst:SMDgCol title="是否启用" replace="是_true,否_false" field="isEnable" ></Dst:SMDgCol>
			<Dst:SMDgCol title="操作" field="opt" width="100"></Dst:SMDgCol>
			<Dst:SMDGFunOpt title="启用" urlStyle="background-color:#18a689" exp="isEnable#eq#false" urlfont="fa-unlock" bindAction="enableAction"></Dst:SMDGFunOpt>
		    <Dst:SMDGFunOpt title="禁用" urlStyle="background-color:#E25129" exp="isEnable#eq#true" urlfont="fa-unlock-alt" bindAction="disEnableAction"></Dst:SMDGFunOpt>
			<Dst:SMDGFunOpt title="删除" urlfont="fa-trash-o" bindAction="deleteAction"></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-newspaper-o" bindAction="viewAction"/>
		    <Dst:SMDGToolBar title="刷新" icon="fa fa-refresh" bindAction="refreshAction"/>
		</Dst:SMDatagrid>
	</div>
</div>
