支持回车键-四型

editConfirmSerialNoPage.xml

 

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

<pages>
    <editPage id="editConfirmSerialNoPage" title="editConfirmSerialNoPage" 
		entityClass="com.vtradex.wms.server.model.move.WmsTask" 
		width="250" height="300">
        <workflow/>
        <initListeners>
            <initListener id="quantityBU" managerName="wmsWorkDocManager" 
			methodName="getUnWorkQuantityByPageMap" newEnabled="true" 
			editEnabled="true"/>
        </initListeners>
        <inputUIs>
            <hidden id="task.id" title="task.id" reserve="true"/>
            <hidden id="task.itemKey.id" title="task.itemKey.id" 
				reserve="true"/>
            <text id="task.itemKey.item.code" title="item.code" 
				row="1" col="1" span="1" 
				readOnly="true" required="false" reserve="true" 
				forceOverride="true" 
				focusUI="false" inVisible="false" trimSpace="true">
                <visibleExpression/>
                <hql/>
                <eventListeners/>
            </text>
            <text id="task.itemKey.item.name" title="wsn.item.name" 
				row="2" col="1" 
				span="1" readOnly="true" required="false" reserve="true" 
				forceOverride="true" 
				focusUI="false" inVisible="false" trimSpace="true">
                <visibleExpression/>
                <hql/>
                <eventListeners/>
            </text>
            <text id="task.fromLocationCode" title="task.oldFromLocationCode" 
				row="3" col="1" 
				defaultValue="${task.fromLocationCode}" span="1" 
				readOnly="true" required="false" 
				reserve="true" forceOverride="true" focusUI="false" 
				inVisible="false" trimSpace="true">
                <visibleExpression/>
                <hql/>
                <eventListeners/>
            </text>
            <text id="task.toLocationCode" title="task.oldToLocationCode" 
				row="4" col="1" 
				defaultValue="${task.toLocationCode}" span="1" 
				readOnly="true" required="false" 
				reserve="true" forceOverride="true" focusUI="false" 
				inVisible="false" trimSpace="true">
                <visibleExpression/>
                <hql/>
                <eventListeners/>
            </text>
            <text id="quantityBU" title="wsn.quantityBU" row="5" col="1" 
				span="1" readOnly="true" 
				required="false" reserve="false" forceOverride="true" 
				focusUI="false" inVisible="false" 
				validator="positiveNumberRequired" trimSpace="true">
                <visibleExpression/>
                <hql/>
                <eventListeners/>
            </text>
            <text id="pallet" title="wsn.pallet" row="6" col="1" span="1" 
				readOnly="false" required="false" 
				reserve="false" forceOverride="true" focusUI="false" 
				inVisible="false" trimSpace="true">
                <visibleExpression/>
                <hql/>
                <eventListeners/>
            </text>
            <text id="carton" title="wsn.carton" row="7" col="1" span="1" 
				readOnly="false" required="false" 
				reserve="false" forceOverride="true" focusUI="false" 
				inVisible="false" trimSpace="true">
                <visibleExpression/>
                <hql/>
                <eventListeners/>
            </text>
            <textArea id="serialNo" title="wsn.serialNo" row="8" col="1" 
				span="1" readOnly="false" 
				required="true" reserve="false" forceOverride="true" 
				focusUI="false" 
				inVisible="false" rows="5" cols="20">
                <visibleExpression/>
                <hql/>
                <eventListeners/>
            </textArea>
            <remote id="fromLocationId" title="task.fromLocation.id" row="9" 
				col="1" span="1" 
				readOnly="false" required="false" reserve="false" 
				forceOverride="true" focusUI="false" 
				inVisible="false" multiple="false" manualEditable="true" 
				displayColumn="2" 
				percentSignPosition="both" displayedTableHead="序号,编码">
                <visibleExpression><![CDATA[ (${task.type} != 'MV_PUTAWAY') 
					&& (${task.type} != 'MV_MOVE') ]]></visibleExpression>
                <hql><![CDATA[SELECT location.id,location.code
 FROM WmsLocation location 
 WHERE 1 = 1
 AND location.warehouse = #{SESSION_WAREHOUSE} 
 AND location.status = 'ENABLED'
 AND location.type = 'STORAGE'
 AND location.code LIKE :param 
]]></hql>
                <eventListeners/>
            </remote>
            <remote id="toLocationId" title="task.toLocation.id" row="10" 
				col="1" span="1" 
				readOnly="false" required="false" reserve="false" 
				forceOverride="true" focusUI="false" 
				inVisible="false" multiple="false" manualEditable="true" 
				displayColumn="2" 
				percentSignPosition="both" displayedTableHead="序号,编码">
                <visibleExpression/>
                <hql><![CDATA[SELECT location.id,location.code
 FROM WmsLocation location 
 WHERE 1 = 1
 AND location.warehouse = #{SESSION_WAREHOUSE} 
 AND location.status = 'ENABLED'
 AND (((location.type = 'STORAGE') AND EXISTS (SELECT task.id 
 FROM WmsTask task 
 WHERE (task.type = 'MV_PUTAWAY' OR task.type = 'MV_MOVE') 
 AND task.id = ${task.id}))
 OR ((location.type = 'SHIP') AND EXISTS (SELECT task.id 
 FROM WmsTask task 
 WHERE (task.type <> 'MV_PUTAWAY' AND task.type <> 'MV_MOVE') 
 AND task.id = ${task.id})))
 AND location.code LIKE :param 
]]></hql>
                <eventListeners/>
            </remote>
            <remote id="workerId" title="workerId" row="11" col="1" 
				span="1" readOnly="false" 
				required="false" reserve="false" forceOverride="false" 
				focusUI="false" inVisible="false" 
				multiple="false" manualEditable="true" 
				displayColumn="3" percentSignPosition="both" 
				displayedTableHead="序号,编码,名称">
                <visibleExpression/>
                <hql><![CDATA[select
 worker.id, 
 worker.code,  
 worker.name
 from WmsWorker worker 
 where worker.code like :param
 and worker.status='ENABLED'
 and worker.warehouse = #{SESSION_WAREHOUSE} 
 ]]></hql>
                <eventListeners/>
            </remote>
        </inputUIs>
    </editPage>
</pages>

 editConfirmSerialNoPage.wf.xml

 

<?xml version="1.0" encoding="UTF-8"?>
<page id="editConfirmSerialNoPage">
    <main>
        <process id="taskProcess">
            <formCommit id="singleConfirm" title="singleConfirm" 
				process="taskProcess.singleConfirm" accelerateKey="enter" 
				enableType="single" multiMapping="false" download="false" 
				closeTransactional="false" visibleType="none">
                <enableExpression/>
                <mappings>
                	<mapping id="task.id" className="long">
                        <entries/>
                    </mapping>
                    <mapping id="toLocationId" className="long">
                        <entries/>
                    </mapping>
                    <mapping id="fromLocationId" className="long">
                        <entries/>
                    </mapping>
                    <mapping id="pallet" className="string">
                        <entries/>
                    </mapping>
                    <mapping id="carton" className="string">
                        <entries/>
                    </mapping>
                    <mapping id="serialNo" className="string">
                        <entries/>
                    </mapping>
                    <mapping id="workerId" className="long">
                        <entries/>
                    </mapping>
                </mappings>
                <actions>
                    <action managerName="wmsWorkDocManager" 
						methodName="confirmSerialNo" 
						parameter="task.id,toLocationId,fromLocationId,
						pallet,carton,serialNo,workerId"/>
                </actions>
                <forwards>
                    <forward name="refreshParent" newEnabled="true" editEnabled="true"/>
                    <forward name="resetWindow" newEnabled="true" editEnabled="true"/>
                </forwards>
            </formCommit>
        </process>
    </main>
    <detail/>
</page>

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值