cqtms/src/webapp/WEB-INF/classes/config/origen/shipment/editRegistrationDeliveryPag...

170 lines
13 KiB
XML
Raw Normal View History

2024-08-03 16:09:17 +08:00
<?xml version="1.0" encoding="UTF-8"?>
<pages>
<editPage id="editRegistrationDeliveryPage" title="editRegistrationPage" entityClass="com.dev.stms.server.model.order.Legs" onClose="refreshParent" width="600" height="500">
<initListeners>
<initListener id="shipment.quantityFee" managerName="shipmentManager" methodName="getQuantityMap" newEnabled="true" editEnabled="true"/>
<initListener id="shipment.weightFee" managerName="shipmentManager" methodName="getWeightMap" newEnabled="true" editEnabled="true"/>
<initListener id="shipment.volumeFee" managerName="shipmentManager" methodName="getVolumeMap" newEnabled="true" editEnabled="true"/>
</initListeners>
<inputUIs>
<hidden id="l.id" reserve="false"/>
<hidden id="aa" reserve="false"/>
<remote id="shipment.carrier.id" title="shipment.carrier" row="1" col="1" span="1" readOnly="false" required="true" reserve="true" forceOverride="false" inVisible="false" editModel="normal" manualEditable="true" displayColumn="3" percentSignPosition="both" displayedTableHead="序号,编码,名称">
<hql><![CDATA[ select
carrier.id,
carrier.code,
carrier.name||(CASE WHEN carrier.customerType is 'TEMPORARY' THEN '(临时)' else '' end)
from Organization carrier
where carrier.disabled=false
and (carrier.beCarrier=true or carrier.beInCarrier=true)
and (upper(carrier.code) like upper(:param) or carrier.name like :param)
/~carrier.name: and carrier.name like {carrier.name}~/
order by carrier.sortIndex asc,carrier.id asc
]]></hql>
<eventListeners>
<eventListener id="aa" index="1" refreshUI="false"/>
</eventListeners>
</remote>
<remote id="shipment.vehicle.id" title="shipment.vehicle" row="1" col="2" span="1" readOnly="false" required="false" reserve="false" forceOverride="true" inVisible="false" manualEditable="true" displayColumn="2" percentSignPosition="both" displayedTableHead="序号,车牌号,车型,承运商">
<hql><![CDATA[ select
vehicle.id,
vehicle.license,
vehicle.vehicleType.name,
vehicle.carrier.name,
vehicle.vehicleType.id,
vehicle.carrier.id,
m.name,
m.idCard,
m.contact.phone,
case when m.id is not null then m.id else 0 end,
case when m2.id is not null then m2.id else 0 end
from Vehicle vehicle
left join vehicle.vehicleType vt
left join vehicle.masterDriver m
left join vehicle.minorDriver m2
where vehicle.disabled=false and (upper(vehicle.license) like upper(:param) or upper(m.name) like upper(:param))
and (vehicle.status='ENABLE' or vehicle.status is null or vehicle.status='INUSE' )
and (vehicle.carrier.id=${shipment.carrier.id} or null=${aa} ) and vehicle.isRegular=1
/~vehicle.license: and vehicle.license like {vehicle.license}~/
order by vehicle.carrier.sortIndex asc,vehicle.id asc
]]></hql>
<eventListeners>
<eventListener id="license" index="2" refreshUI="false"/>
<eventListener id="shipment.vehicleType.id" index="5" refreshUI="false"/>
<eventListener id="shipment.carrier.id" index="6" refreshUI="false"/>
<eventListener id="shipment.driverName" index="7" refreshUI="false"/>
<eventListener id="shipment.driverIdentityCard" index="8" refreshUI="false"/>
<eventListener id="shipment.driverPhone" index="9" refreshUI="false"/>
<eventListener id="l.driver.id" index="10" refreshUI="false"/>
<eventListener id="secondDriverId" index="11" refreshUI="false"/>
</eventListeners>
<inputUIs>
<text id="vehicle.license" title="editShipmentPage.vehicle.license" row="2" col="2" span="1" readOnly="false" required="false" reserve="false" forceOverride="true" inVisible="false" trimSpace="true" isPrecision="false"/>
</inputUIs>
</remote>
<text id="license" title="editShipmentPage.shipment.license" row="1" col="3" span="1" readOnly="false" required="true" reserve="false" forceOverride="true" inVisible="false" trimSpace="true" isPrecision="true"/>
<!-- <list id="l.order.unit" title="orders.unit" row="2" col="1" span="1" width="120" readOnly="false" required="false" reserve="false" forceOverride="true" inVisible="true" enumType="MeasureUnit" > -->
<!-- <hql><![CDATA[ SELECT -->
<!-- enumerate.enumValue, -->
<!-- enumerate.enumValue From Enumerate enumerate -->
<!-- where enumerate.enumType = 'MeasureUnit' and enumerate.enumValue in ('VEHICLETYPE','WEIGHT','TICKET') order by enumerate.id]]></hql> -->
<!-- </list> -->
<!-- <list id="shipment.vehicleType.id" title="sendCar.vehicleType.name" row="2" col="2" span="1" width="120" readOnly="false" required="true" reserve="false" forceOverride="true" forceSpace="false" multiple="false" inVisible="false"> -->
<!-- <hql><![CDATA[select d.id,d.name,d.name -->
<!-- from VehicleType d -->
<!-- where d.disabled=false -->
<!-- AND (d.platForm=#{SESSION_PLATFORM} OR d.platForm.code = #{PUBLIC_PLATFORM}) -->
<!-- order by d.sortIndex asc,d.name,d.id -->
<!-- ]]></hql> -->
<!-- </list> -->
<remote id="shipment.vehicleType.id" title="sendCar.vehicleType.name" row="2" col="2" span="1" readOnly="false" required="true" reserve="false" forceOverride="true" inVisible="false" manualEditable="true" displayColumn="2" percentSignPosition="both" displayedTableHead="序号,名称">
<hql><![CDATA[ select d.id,d.name
from VehicleType d
where d.disabled=false and d.name like :param
and d.beDispatch=1
order by d.sortIndex asc,d.name,d.id
]]></hql>
<inputUIs>
<text id="d.name" title="editShipmentPage.driver.name" row="1" col="1" span="1" readOnly="false" required="false" reserve="false" forceOverride="true" inVisible="false" trimSpace="true" isPrecision="false"/>
</inputUIs>
</remote>
<remote id="l.driver.id" title="shipment.driver" row="2" col="3" span="1" readOnly="false" required="false" reserve="false" forceOverride="true" inVisible="false" manualEditable="true" displayColumn="2" percentSignPosition="both" displayedTableHead="序号,名称">
<hql><![CDATA[ select
driver.id,
driver.name,
driver.idCard,
driver.contact.phone
from Driver driver
where driver.disabled=false
and driver.name like :param and driver.platForm= #{SESSION_PLATFORM} ]]></hql>
<eventListeners>
<eventListener id="shipment.driverName" index="2" refreshUI="false"/>
<eventListener id="shipment.driverIdentityCard" index="3" refreshUI="false"/>
<eventListener id="shipment.driverPhone" index="4" refreshUI="false"/>
</eventListeners>
<inputUIs>
<text id="driver.name" title="editShipmentPage.driver.name" row="1" col="1" span="1" readOnly="false" required="false" reserve="false" forceOverride="true" inVisible="false" trimSpace="true" isPrecision="false"/>
</inputUIs>
</remote>
<text id="shipment.driverName" title="shipment.driverName" row="3" col="1" span="1" readOnly="false" required="false" reserve="false" forceOverride="true" inVisible="false" trimSpace="true" isPrecision="true"/>
<text id="shipment.driverIdentityCard" title="editShipmentPage.shipment.driverIdentityCard" row="3" col="2" span="1" readOnly="false" required="false" reserve="false" forceOverride="true" inVisible="false" trimSpace="true" isPrecision="true"/>
<text id="shipment.driverPhone" title="editShipmentPage.shipment.driverPhone" row="3" col="3" span="1" readOnly="false" required="false" reserve="false" forceOverride="true" inVisible="false" trimSpace="true" isPrecision="true"/>
<remote id="secondDriverId" title="shipment.secondDriver" row="4" col="3" span="1" readOnly="false" required="false" reserve="false" forceOverride="true" inVisible="false" manualEditable="true" displayColumn="2" percentSignPosition="both" displayedTableHead="序号,名称">
<hql><![CDATA[ select
driver.id,
driver.name,
driver.idCard,
driver.contact.phone
from Driver driver
where driver.disabled=false
and driver.name like :param and driver.platForm= #{SESSION_PLATFORM} ]]></hql>
<inputUIs>
<text id="driver.name" title="editShipmentPage.driver.name" row="1" col="1" span="1" readOnly="false" required="false" reserve="false" forceOverride="true" inVisible="false" trimSpace="true" isPrecision="false"/>
</inputUIs>
</remote>
<date id="shipment.shipmentDate" title="lfv.sdate" row="4" col="2" span="1" readOnly="false" required="true" reserve="true" forceOverride="false" inVisible="false" showTime="false" manualEditable="true" defaultCurrentDate="false"/>
<list id="l.order.superviseType" title="orders.superviseType" row="4" col="3" span="1" width="120" readOnly="false" required="false" reserve="true" inVisible="false" forceOverride="true" enumType="SuperviseType">
<hql><![CDATA[ SELECT t.enumValue,t.enumValue
FROM Enumerate t
WHERE t.enumType = 'SuperviseType' or t.id=1 order by t.id asc]]></hql>
</list>
<text id="shipment.quantityFee" title="editRegistrationPage.shipment.quantityFee" row="5" col="1" span="1" readOnly="false" required="false" reserve="false" forceOverride="true" inVisible="false" trimSpace="true" decimal="1" isPrecision="true"/>
<text id="shipment.weightFee" title="editRegistrationPage.shipment.weightFee" row="5" col="2" span="1" readOnly="false" required="false" reserve="false" forceOverride="true" inVisible="false" trimSpace="true" decimal="4" isPrecision="true"/>
<text id="shipment.volumeFee" title="editRegistrationPage.shipment.volumeFee" row="5" col="3" span="1" readOnly="false" required="false" reserve="false" forceOverride="true" inVisible="false" trimSpace="true" decimal="4" isPrecision="true"/>
<text id="l.order.description" title="order.description2" row="6" col="1" span="3" width="500" readOnly="true" required="false" reserve="false" forceOverride="true" inVisible="false" trimSpace="true" isPrecision="true"/>
<text id="l.order.description1" title="l.order.description1" row="7" col="1" span="3" width="500" readOnly="true" required="false" reserve="false" forceOverride="true" inVisible="false" trimSpace="true" isPrecision="true"/>
</inputUIs>
<buttons>
<commit id="save" title="storeRegistrationShipment" enableType="none" invisible="false">
<mappings>
<mapping id="shipment.carrier.id" className="long"/>
<mapping id="parentIds" className="list"/>
<mapping id="shipment.vehicle.id" className="long"/>
<mapping id="license" className="string"/>
<mapping id="shipment.vehicleType.id" className="long"/>
<mapping id="l.driver.id" className="long"/>
<mapping id="shipment.driverName" className="string"/>
<mapping id="shipment.driverIdentityCard" className="string"/>
<mapping id="shipment.driverPhone" className="string"/>
<mapping id="shipment.quantityFee" className="double"/>
<mapping id="shipment.weightFee" className="double"/>
<mapping id="shipment.volumeFee" className="double"/>
<mapping id="secondDriverId" className="long"/>
<mapping id="shipment.shipmentDate" className="date"/>
<mapping id="l.order.superviseType" className="string"/>
</mappings>
<actions>
<action managerName="shipmentManager" methodName="createShipment_fh" parameter="shipment.carrier.id,parentIds,shipment.vehicle.id,license,shipment.vehicleType.id,l.driver.id,shipment.driverName,shipment.driverIdentityCard,shipment.driverPhone,shipment.quantityFee,shipment.weightFee,shipment.volumeFee,secondDriverId,shipment.shipmentDate,l.order.superviseType"/>
</actions>
<forwards>
<forward name="refreshWindow" newEnabled="true" editEnabled="true"/>
<forward name="closeWindow" newEnabled="true" editEnabled="true"/>
</forwards>
</commit>
</buttons>
</editPage>
</pages>