modifyDetailPage-增加查询功能

1,modify下增加查询控件和按钮,一般按钮一个就够,控件可增减。

2,detail下查询sql末尾增加/~xx:AND yy.xx={xx}~/

3,方法不执行任何数据库操作,内容为空即可。目的是触发modifyDetailPage的刷新。

 

<?xml version="1.0" encoding="UTF-8"?>

<pages>
    <modifyDetailPage id="modifyDetailReceiveBookingPage" title="modifyDetailReceiveBookingPage" 
		entityClass="com.server.model.receiving.WmsBooking" onClose="refreshParent" width="880" height="500">
        <initListeners/>
        <modify>
            <inputUIs>
                <hidden id="booking.id" title="booking.id" reserve="false"/>
                <remote id="booking.dock.id" title="booking.dock.id" row="1" col="2" span="1" readOnly="false" 
				required="true" reserve="false" forceOverride="true" focusUI="false" inVisible="false" multiple="false" 
				manualEditable="true" displayColumn="3" percentSignPosition="both" displayedTableHead="序号,代码">
                    <visibleExpression/>
                    <hql><![CDATA[SELECT
dock.id,
dock.code
FROM WmsDock dock
WHERE 1=1
AND dock.code LIKE :param 
AND dock.status = 'ENABLED'
AND dock.beReceive = true
AND dock.warehouseArea.warehouse.id = #{SESSION_WAREHOUSE}]]></hql>
                    <eventListeners/>
                </remote>
            </inputUIs>
        </modify>
        <detail entityClass="com.server.model.receiving.WmsASNDetail">
            <datasource><![CDATA[SELECT asnDetail.id,
			booking.asnPlannedStartTime,
			booking.asnPlannedLastTime  
			FROM WmsASNDetail asnDetail
	LEFT JOIN asnDetail.booking booking
	WHERE 1=1
	/~booking.preId: AND asnDetail.booking.id = {booking.preId}~/]]></datasource>
	<columns>
		<column id="asnDetail.id" title="asnDetail.id" visible="false" sortable="true" 
			horizonAlign="center" verticalAlign="middle"/>
		<column id="booking.asnPlannedStartTime" title="asnDetail.reserveBeginTime" 
			visible="true" sortable="true" horizonAlign="center" verticalAlign="middle" dataType="datetime"/>
		<column id="booking.asnPlannedLastTime" title="asnDetail.reserveFinishTime" 
			visible="true" sortable="true" horizonAlign="center" verticalAlign="middle" dataType="datetime"/>
	</columns>
	</detail>
    </modifyDetailPage>
</pages>

 

 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值