2024-08-03 16:09:17 +08:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
|
|
|
|
|
<pages>
|
|
|
|
|
<maintainPage id="maintainOrderLegsPage" title="maintainOrderLegsPage" autoQuery="false">
|
|
|
|
|
<search>
|
|
|
|
|
<inputUIs>
|
|
|
|
|
<text id="l.ecNo" title="shipmentLegsQueryPage.l.legNo" row="1" col="1" span="1" readOnly="false" required="false" reserve="false" forceOverride="true" inVisible="false" trimSpace="true" isPrecision="false"/>
|
|
|
|
|
<!-- <list id="l.shipmentMethod" title="shipmentLegsQueryPage.l.shipmentMethod" row="1" col="2" span="1" readOnly="false" required="false" reserve="false" forceOverride="true" enumType="ShipmentMethod"> -->
|
|
|
|
|
<!-- <hql><![CDATA[ select -->
|
|
|
|
|
<!-- t.enumValue, -->
|
|
|
|
|
<!-- t.enumValue -->
|
|
|
|
|
<!-- from Enumerate t -->
|
|
|
|
|
<!-- where t.enumType = 'ShipmentMethod' -->
|
|
|
|
|
<!-- order by t.id]]></hql> -->
|
|
|
|
|
<!-- </list> -->
|
|
|
|
|
<remote id="orders.consignor.id" title="consignor" row="1" col="2" span="1" width="120" readOnly="false" required="false" reserve="false" forceOverride="true" displayColumn="2" editModel="uneditable" displayedTableHead="序号,名称">
|
|
|
|
|
<hql><![CDATA[SELECT
|
|
|
|
|
org.id,
|
|
|
|
|
org.name,
|
|
|
|
|
org.department.code
|
|
|
|
|
FROM Organization org
|
|
|
|
|
left join org.department
|
|
|
|
|
where org.beCustomer=true
|
|
|
|
|
and (upper(org.code) like upper(:param) or org.name like :param)
|
|
|
|
|
and org.disabled=false
|
|
|
|
|
]]></hql>
|
|
|
|
|
</remote>
|
|
|
|
|
<numberText id="l.weight1" title="weightThan" row="2" col="1" span="1" readOnly="false" required="false" reserve="false" forceOverride="true" inVisible="false" returnType="Double" decimal="2"/>
|
|
|
|
|
<numberText id="l.weight2" title="weightLess" row="2" col="1" span="1" readOnly="false" required="false" reserve="false" forceOverride="true" inVisible="false" returnType="Double" decimal="2"/>
|
|
|
|
|
<text id="l.fromContact.address" title="fromAddress" row="3" col="1" span="1" readOnly="false" required="false" reserve="false" forceOverride="true" inVisible="false" trimSpace="true" isPrecision="false"/>
|
|
|
|
|
<text id="l.toContact.address" title="toAddress" row="3" col="2" span="1" readOnly="false" required="false" reserve="false" forceOverride="true" inVisible="false" trimSpace="true" isPrecision="false"/>
|
|
|
|
|
<date id="l.order.orderDate1" title="order.orderDate" row="4" col="1" span="1" readOnly="false" required="false" reserve="false" forceOverride="true" inVisible="false" showTime="false" manualEditable="true" defaultCurrentDate="false"/>
|
|
|
|
|
<date id="l.order.orderDate2" title="endDate" row="4" col="2" span="1" readOnly="false" required="false" reserve="false" forceOverride="true" invisible="false" showTime="false" manualEditable="true" defaultCurrentDate="false"/>
|
|
|
|
|
<date id="l.order.planFromTime1" title="orders.planFromDate" row="5" col="1" span="1" readOnly="false" required="false" reserve="false" forceOverride="true" invisible="false" showTime="false" manualEditable="true" defaultCurrentDate="false"/>
|
|
|
|
|
<date id="l.order.planFromTime2" title="endDate" row="5" col="2" span="1" readOnly="false" required="false" reserve="false" forceOverride="true" invisible="false" showTime="false" manualEditable="true" defaultCurrentDate="false"/>
|
|
|
|
|
<list id="orders.superviseType" title="orders.cargoType" row="6" col="1" span="1" width="120" readOnly="false" required="false" reserve="false" forceOverride="true" enumType="SuperviseType" >
|
|
|
|
|
<hql><![CDATA[ SELECT
|
|
|
|
|
enumerate.enumValue,
|
|
|
|
|
enumerate.enumValue From Enumerate enumerate
|
|
|
|
|
where enumerate.enumType = 'SuperviseType' order by enumerate.id asc ]]></hql>
|
|
|
|
|
</list>
|
|
|
|
|
<text id="o.updateInfo.operatorName" title="inputByName" row="6" col="2" span="1" readOnly="false" required="false" reserve="false" forceOverride="true" inVisible="false" trimSpace="true"/>
|
|
|
|
|
</inputUIs>
|
|
|
|
|
</search>
|
|
|
|
|
<datasource type="hql"><![CDATA[ select
|
|
|
|
|
l.id,
|
|
|
|
|
DATE_FORMAT(l.order.planFromDate,'%Y-%m-%d') ||' '|| l.order.planFromTime,
|
|
|
|
|
l.ecNo,
|
|
|
|
|
l.tempShipment.vehicle.license,
|
|
|
|
|
l.order.superviseType,
|
|
|
|
|
l.order.fromContact.address,
|
|
|
|
|
l.order.fromName,
|
|
|
|
|
l.order.toContact.address,
|
|
|
|
|
l.order.toName,
|
|
|
|
|
l.order.consignor.shortName,
|
|
|
|
|
l.order.extends1.name || l.order.extends2.name,
|
|
|
|
|
l.quantity,
|
|
|
|
|
l.order.unitOne,
|
|
|
|
|
CAST(round(l.weight,2) as string),
|
|
|
|
|
CAST(round(l.volume,2) as string),
|
|
|
|
|
fromCity.name||'-'||toCity.name,
|
|
|
|
|
o.updateInfo.operatorName,
|
|
|
|
|
l.supplier.shortName,
|
|
|
|
|
l.order.paymentMethod,
|
|
|
|
|
l.order.cash,
|
|
|
|
|
l.shipmentMethod,
|
|
|
|
|
l.carryMode,
|
|
|
|
|
l.company.shortName,
|
|
|
|
|
l.order.customerOrderNO,
|
|
|
|
|
l.order.orderDate,
|
|
|
|
|
l.order.planLeaveTime,
|
|
|
|
|
l.order.planArriveTime,
|
|
|
|
|
l.fromContact.linkman,
|
|
|
|
|
l.fromContact.phone,
|
|
|
|
|
l.order.description2,
|
|
|
|
|
l.order.description1,
|
|
|
|
|
l.status,
|
|
|
|
|
l.nodeIndex,
|
|
|
|
|
l.beSplit,
|
|
|
|
|
l.order.carPeople,
|
|
|
|
|
o.description
|
|
|
|
|
from Legs l
|
|
|
|
|
left join l.order o
|
|
|
|
|
left join l.order.consignor consignor
|
|
|
|
|
left join l.order.extends1 extends1
|
|
|
|
|
left join l.order.extends2 extends2
|
|
|
|
|
left join l.consignor
|
|
|
|
|
left join l.contractor
|
|
|
|
|
left join l.order.toLocation
|
|
|
|
|
left join l.order.fromLocation
|
|
|
|
|
left join l.order.toLocation.city toCity
|
|
|
|
|
left join l.order.fromLocation.city fromCity
|
|
|
|
|
left join l.shipment
|
|
|
|
|
left join l.tempShipment
|
|
|
|
|
left join l.tempShipment.vehicle
|
|
|
|
|
left join l.shipmentType
|
|
|
|
|
left join l.executer
|
|
|
|
|
left join l.supplier
|
|
|
|
|
left join l.company
|
|
|
|
|
left join l.fromLocation
|
|
|
|
|
left join l.toLocation
|
|
|
|
|
where l.executer = #{SESSION_PLATFORM} and l.status in( 'UNDISTRIBUTION','' )
|
|
|
|
|
and l.turnCar=0 and l.turnShipment=0 and l.turnDelivery=0
|
|
|
|
|
and ((l.order.isShortBarge=0 or l.order.cusBill=1) or (l.order.isShortBarge=1 and l.nodeIndex>1))
|
2025-04-21 11:22:27 +08:00
|
|
|
and (#{SESSION_USERS_NAME} = 'admin' or l.order.updateInfo.operatorName = #{SESSION_USERS_NAME})
|
2024-08-03 16:09:17 +08:00
|
|
|
/~l.ecNo: and upper(l.ecNo) like upper({l.ecNo})~/
|
|
|
|
|
/~orders.consignor.id: and l.consignor.id = {orders.consignor.id}~/
|
|
|
|
|
/~l.fromContact.address: and l.fromContact.address like {l.fromContact.address}~/
|
|
|
|
|
/~l.toContact.address: and l.toContact.address like {l.toContact.address}~/
|
|
|
|
|
/~l.status: and l.status like {l.status}~/
|
|
|
|
|
/~orders.superviseType: and l.order.superviseType = {orders.superviseType}~/
|
|
|
|
|
/~l.weight1: AND (l.weight >= {l.weight1} OR l.volume >= {l.weight1})~/
|
|
|
|
|
/~l.weight2: AND (l.weight <= {l.weight2} OR l.volume <= {l.weight2})~/
|
|
|
|
|
/~l.order.orderDate1: AND (l.order.orderDate) >= {l.order.orderDate1} ~/
|
|
|
|
|
/~l.order.orderDate2: AND (l.order.orderDate) <= {l.order.orderDate2}~/
|
|
|
|
|
/~l.order.planFromTime1: AND (l.order.planFromDate) >= {l.order.planFromTime1} ~/
|
|
|
|
|
/~l.order.planFromTime2: AND (l.order.planFromDate) <= {l.order.planFromTime2}~/
|
|
|
|
|
/~o.updateInfo.operatorName: AND o.updateInfo.operatorName like {o.updateInfo.operatorName}~/
|
|
|
|
|
order by l.id desc
|
|
|
|
|
]]></datasource>
|
|
|
|
|
<columns>
|
|
|
|
|
<column id="l.id" title="shipmentLegsQueryPage.l.id" visible="false" horizonAlign="center" verticalAlign="middle"/>
|
|
|
|
|
<column id="l.order.planFromTime" title="orders.planFromTime" visible="true" horizonAlign="left" verticalAlign="middle" />
|
|
|
|
|
<column id="l.legNo" title="shipmentLegsQueryPage.l.legNo" visible="true" horizonAlign="left" verticalAlign="middle" />
|
|
|
|
|
<column id="tempShipment.vehicle" width="80" title="tempShipment.vehicle" visible="true" horizonAlign="left" verticalAlign="middle" />
|
|
|
|
|
<column id="order.superviseType" width="80" title="orders.superviseType" visible="true" horizonAlign="center" verticalAlign="middle" format="colourZDFormatter" />
|
|
|
|
|
<column id="l.fromContact.address" title="fromAddress" visible="true" horizonAlign="left" verticalAlign="middle"/>
|
|
|
|
|
<column id="l.fromName" title="l.fromName" visible="true" horizonAlign="left" verticalAlign="middle"/>
|
|
|
|
|
<column id="l.toContact.address" title="toAddress" visible="true" horizonAlign="left" verticalAlign="middle"/>
|
|
|
|
|
<column id="l.toName" title="l.toName" visible="true" horizonAlign="left" verticalAlign="middle"/>
|
|
|
|
|
<column id="order.consignor.name" width="70" title="consignor" visible="true" horizonAlign="left" verticalAlign="middle"/>
|
|
|
|
|
<column id="l.order.extends1.name" title="order.extends1.name" width="70" visible="true" horizonAlign="left" verticalAlign="middle" />
|
|
|
|
|
<column id="l.quantity" title="quantity" width="60" visible="true" horizonAlign="center" verticalAlign="middle"/>
|
|
|
|
|
<column id="l.order.unitOne" title="orders.unitOne" width="60" visible="true" horizonAlign="center" verticalAlign="middle"/>
|
|
|
|
|
<column id="l.weight" title="weight" width="60" visible="true" horizonAlign="center" verticalAlign="middle"/>
|
|
|
|
|
<column id="l.volume" title="volume" width="60" visible="true" horizonAlign="left" verticalAlign="middle"/>
|
|
|
|
|
<column id="siteName" title="siteName" visible="true" horizonAlign="left" verticalAlign="middle"/>
|
|
|
|
|
<column id="updateInfo.operatorName" title="inputByName" visible="true" horizonAlign="left" verticalAlign="middle"/>
|
|
|
|
|
<column id="l.supplier.name" width="70" title="l.supplier.name" visible="true" horizonAlign="left" verticalAlign="middle"/>
|
|
|
|
|
<column id="l.order.paymentMethod" width="70" title="orders.paymentMethod" visible="true" horizonAlign="left" verticalAlign="middle"/>
|
|
|
|
|
<column id="l.order.cash" width="70" title="orders.cash" visible="true" horizonAlign="left" verticalAlign="middle"/>
|
|
|
|
|
<column id="l.shipmentMethod" width="70" title="shipmentLegsQueryPage.l.shipmentMethod" visible="true" horizonAlign="center" verticalAlign="middle" format="enumFormat" formatParam="ShipmentMethod"/>
|
|
|
|
|
<column id="l.carryMode" width="70" title="orders.deliveryMode" visible="true" horizonAlign="left" verticalAlign="middle"/>
|
|
|
|
|
<column id="l.company.shortName" width="80" title="l.company.shortName" visible="true" horizonAlign="left" verticalAlign="middle"/>
|
|
|
|
|
<column id="orders.customerOrderNO" width="80" title="orders.customerOrderNO" visible="true" horizonAlign="left" verticalAlign="middle"/>
|
|
|
|
|
<column id="orders.orderDate" title="order.orderDate" visible="true" horizonAlign="center" verticalAlign="middle" format="columnsDateFormatter" formatParam="ymd"/>
|
|
|
|
|
<column id="order.planLeaveTime" title="order.planLeaveTime" visible="false" horizonAlign="center" verticalAlign="middle" />
|
|
|
|
|
<column id="order.planArriveTime" title="order.planArriveTime" visible="false" horizonAlign="center" verticalAlign="middle" />
|
|
|
|
|
<column id="l.fromContact.linkman" title="linkman" visible="true" horizonAlign="left" verticalAlign="middle"/>
|
|
|
|
|
<column id="l.fromContact.phone" title="phone" visible="true" horizonAlign="left" verticalAlign="middle"/>
|
|
|
|
|
<column id="l.order.description2" title="order.description2" visible="true" horizonAlign="left" verticalAlign="middle"/>
|
|
|
|
|
<column id="l.order.description1" title="l.order.description1" visible="true" horizonAlign="left" verticalAlign="middle"/>
|
|
|
|
|
<column id="l.status" width="50" title="legs.status" visible="true" horizonAlign="left" verticalAlign="middle" format="enumFormat" formatParam="LegsStatus"/>
|
|
|
|
|
<column id="l.nodeIndex" width="50" title="l.nodeIndex" visible="true" horizonAlign="left" verticalAlign="middle"/>
|
|
|
|
|
<column id="l.beSplit" width="50" title="l.beSplit" visible="true" horizonAlign="left" verticalAlign="middle"/>
|
|
|
|
|
<column id="orders.carPeople" width="60" title="orders.carpeople" visible="true" horizonAlign="left" verticalAlign="middle"/>
|
|
|
|
|
<column id="l.description" title="shipmentLegsQueryPage.l.description" visible="false" horizonAlign="left" verticalAlign="middle"/>
|
|
|
|
|
</columns>
|
|
|
|
|
<buttons>
|
|
|
|
|
<popup id="splitlegsButton" title="splitlegsButton" enableType="single" invisible="false" containId="true" pageId="editSplitLegsPage">
|
|
|
|
|
<enableExpression><![CDATA[${l.beSplit} == 'false']]></enableExpression>
|
|
|
|
|
</popup>
|
|
|
|
|
<commit id="cancelSplitOrder" title="maintainOrderPage.cancelSliptOrder" enableType="single" invisible="false">
|
|
|
|
|
<enableExpression><![CDATA[${l.beSplit} == 'true']]></enableExpression>
|
|
|
|
|
<mappings>
|
|
|
|
|
<mapping id="ids" className="list"/>
|
|
|
|
|
</mappings>
|
|
|
|
|
<actions>
|
|
|
|
|
<action managerName="shipmentManager" methodName="cancelSplitlegs" parameter="ids"/>
|
|
|
|
|
</actions>
|
|
|
|
|
<forwards>
|
|
|
|
|
<forward name="refreshWindow" newEnabled="true" editEnabled="true"/>
|
|
|
|
|
</forwards>
|
|
|
|
|
</commit>
|
|
|
|
|
<popup id="seeOrderinfo" title="seeOrderinfo" enableType="single" invisible="false" containId="true" pageId="editSeeOrderinfoPage"/>
|
|
|
|
|
<popup id="registration" title="registration" enableType="multi" invisible="false" containId="true" pageId="editRegistrationPage"/>
|
|
|
|
|
<commit id="turnCar" title="maintainOrderPage.turnCar" enableType="multi" invisible="false" confirmMessage="maintainBillFeePage.turnCar.confirmMessage">
|
|
|
|
|
<mappings>
|
|
|
|
|
<mapping id="ids" className="list"/>
|
|
|
|
|
</mappings>
|
|
|
|
|
<actions>
|
|
|
|
|
<action managerName="shipmentManager" methodName="turnCar" parameter="ids"/>
|
|
|
|
|
</actions>
|
|
|
|
|
<forwards>
|
|
|
|
|
<forward name="refreshWindow" newEnabled="true" editEnabled="true"/>
|
|
|
|
|
</forwards>
|
|
|
|
|
</commit>
|
|
|
|
|
<!-- 转发货部 -->
|
|
|
|
|
<!-- <commit id="turnDelivery" title="maintainOrderPage.turnDelivery" enableType="multi" invisible="false" confirmMessage="maintainBillFeePage.turnDelivery.confirmMessage"> -->
|
|
|
|
|
<!-- <mappings> -->
|
|
|
|
|
<!-- <mapping id="ids" className="list"/> -->
|
|
|
|
|
<!-- </mappings> -->
|
|
|
|
|
<!-- <actions> -->
|
|
|
|
|
<!-- <action managerName="shipmentManager" methodName="turnDelivery" parameter="ids"/> -->
|
|
|
|
|
<!-- </actions> -->
|
|
|
|
|
<!-- <forwards> -->
|
|
|
|
|
<!-- <forward name="refreshWindow" newEnabled="true" editEnabled="true"/> -->
|
|
|
|
|
<!-- </forwards> -->
|
|
|
|
|
<!-- </commit> -->
|
|
|
|
|
<!-- 转分公司 -->
|
|
|
|
|
<!-- <popup id="turnSubsidiary" title="turnSubsidiary" enableType="multi" invisible="false" containId="true" pageId="editTurnSubsidiaryPage"/> -->
|
|
|
|
|
<!-- 预排车 -->
|
|
|
|
|
<!-- <popup id="tempRegistration" title="tempRegistration" enableType="multi" invisible="false" containId="true" pageId="editTempZdRegistrationPage"/> -->
|
|
|
|
|
<!-- 预派列表 -->
|
|
|
|
|
<!-- <popup id="tempRegistrationList" title="tempRegistrationList" enableType="none" invisible="false" containId="false" pageId="modifyTempZdListPage"/> -->
|
|
|
|
|
<!-- 取消预派车 -->
|
|
|
|
|
<!-- <commit id="cancelTempRegistration" title="cancelTempRegistration" enableType="multi" invisible="false" confirmMessage="cancelConfirmShipment.confirmMessage"> -->
|
|
|
|
|
<!-- <mappings> -->
|
|
|
|
|
<!-- <mapping id="ids" className="list"/> -->
|
|
|
|
|
<!-- </mappings> -->
|
|
|
|
|
<!-- <actions> -->
|
|
|
|
|
<!-- <action managerName="shipmentManager" methodName="cancelShipmentConfirmLegs" parameter="ids"/> -->
|
|
|
|
|
<!-- </actions> -->
|
|
|
|
|
<!-- <forwards> -->
|
|
|
|
|
<!-- <forward name="refreshWindow" newEnabled="true" editEnabled="false"/> -->
|
|
|
|
|
<!-- </forwards> -->
|
|
|
|
|
<!-- </commit> -->
|
|
|
|
|
</buttons>
|
|
|
|
|
</maintainPage>
|
|
|
|
|
</pages>
|