<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xmlns:util="http://www.springframework.org/schema/util"
	xsi:schemaLocation="
		http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.2.xsd
		http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
		http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.2.xsd">
	<!-- 定义一个select code -->
	<bean parent="framemax-cq.selectCode">
		<property name="codeType" value="MenuByModel" />
		<property name="query" value="cn.com.yict.framemax.frame.model.FmxMenuModel" />
		<property name="keyFieldName" value="menuCode" />
		<property name="labelFieldName" value="menuTitle" />	
		<property name="columns">
			<list>
				<bean class="cn.com.yict.framemax.cq.Column">
					<property name="field" value="menuCode" />
					<property name="width" value="200" />
					<property name="title" value="菜单代码" />
				</bean>
				<bean class="cn.com.yict.framemax.cq.Column">
					<property name="field" value="menuTitle" />
					<property name="width" value="100" />
					<property name="title" value="菜单标题" />
				</bean>		
				<bean class="cn.com.yict.framemax.cq.Column">
					<property name="field" value="menuUrl" />
					<property name="width" value="150" />
					<property name="title" value="菜单连接地址" />
				</bean>							
			</list>
		</property>
	</bean>
	<bean parent="framemax-cq.selectCode">
		<property name="codeType" value="MenuByQuqery" />
		<property name="query" value="DemoMenuQuery" />
		<!-- keyFieldName为结果集的唯一标识字段,也是前端控件下拉选取后的实际值 -->
		<property name="keyFieldName" value="menuCode" />
		<!-- labelFieldName为结果集的显示字段,也是前端控件下拉选取后的显示值 -->
		<property name="labelFieldName" value="menuTitle" />
		<!-- columns前端combogrid显示的列 -->
		<property name="columns">
			<list>
				<bean class="cn.com.yict.framemax.cq.Column">
					<property name="field" value="menuCode" />
					<property name="width" value="200" />
					<property name="title" value="菜单代码" />
				</bean>
				<bean class="cn.com.yict.framemax.cq.Column">
					<property name="field" value="menuTitle" />
					<property name="width" value="100" />
					<property name="title" value="菜单标题" />
				</bean>		
				<bean class="cn.com.yict.framemax.cq.Column">
					<property name="field" value="menuUrl" />
					<property name="width" value="150" />
					<property name="title" value="菜单连接地址" />
				</bean>							
			</list>
		</property>
	</bean>
</beans>
