232 lines
		
	
	
		
			17 KiB
		
	
	
	
		
			XML
		
	
	
			
		
		
	
	
			232 lines
		
	
	
		
			17 KiB
		
	
	
	
		
			XML
		
	
	
<?xml version="1.0" encoding="UTF-8"?>
 | 
						|
<!--   调度单管理-->
 | 
						|
<pages>
 | 
						|
    <maintainPage id="maintainShipmentZXPage" title="maintainShipmentZXPage" autoQuery="false">
 | 
						|
     <search>
 | 
						|
        <inputUIs>
 | 
						|
               <text id="shipment.code" title="shipment.code" row="0" col="1" span="1" readOnly="false" required="false" reserve="false" forceOverride="true" inVisible="false" trimSpace="true"/>
 | 
						|
                <text id="shipment.relatebill3" title="relatebill3" row="0" col="1" span="1" readOnly="false" required="false" reserve="false" forceOverride="true" inVisible="false" trimSpace="true"/>
 | 
						|
                <list id="shipment.status" title="shipment.status" row="1" col="1" span="1" readOnly="false" required="false" reserve="false" forceOverride="true" enumType="ShipmentStatus">
 | 
						|
                    <hql><![CDATA[  SELECT 
 | 
						|
  enumerate.enumValue,
 | 
						|
  enumerate.enumValue From Enumerate enumerate 
 | 
						|
  where enumerate.enumType = 'ShipmentStatus' 
 | 
						|
  and enumerate.enumValue not in ('UNAVAILABLE','AVAILABLE','LEAVEWH')
 | 
						|
  order by enumerate.id]]></hql>
 | 
						|
                </list>
 | 
						|
                 <list id="shipment.transportType" title="shipment.transportType" row="1" col="2" span="1" width="120" readOnly="false" required="false" reserve="false" forceOverride="true" >
 | 
						|
                    <hql><![CDATA[ SELECT 
 | 
						|
 c.name,
 | 
						|
 c.name
 | 
						|
 FROM CommonCode c 
 | 
						|
 WHERE c.disabled=0 and c.codeType='调度方式' order by c.id asc
 | 
						|
 ]]></hql>
 | 
						|
                </list>
 | 
						|
                <remote id="shipment.carrier.id" title="shipment.carrier" row="2" col="1" span="1" readOnly="false" required="false" reserve="false" forceOverride="true" inVisible="false" manualEditable="true" displayColumn="3" percentSignPosition="both" displayedTableHead="序号,编码,名称">
 | 
						|
                    <hql><![CDATA[ select 
 | 
						|
 carrier.id, 
 | 
						|
 carrier.code, 
 | 
						|
 carrier.name 
 | 
						|
 from Organization  carrier
 | 
						|
 where carrier.disabled=false 
 | 
						|
     and (carrier.code like upper(:param) or carrier.name like :param )
 | 
						|
	 and (carrier.beCarrier = true 
 | 
						|
	  or carrier.beInCarrier=true)
 | 
						|
     and (carrier.id in (select detail.subOrg.id from OrganizationDetail detail where detail.org = #{SESSION_PLATFORM})
 | 
						|
or carrier.id in (select detail.subOrg.id from OrganizationDetail detail where detail.org.code = #{PUBLIC_PLATFORM}))
 | 
						|
/~carrier.name: and carrier.name like {carrier.name}~/
 | 
						|
 order by carrier.sortIndex asc,carrier.id asc
 | 
						|
]]></hql>
 | 
						|
                    <inputUIs>
 | 
						|
                        <text id="carrier.name" title="maintainShipmentPage.carrier.name" row="1" col="1" span="1" readOnly="false" required="false" reserve="false" forceOverride="true" inVisible="false" trimSpace="true"/>
 | 
						|
                    </inputUIs>
 | 
						|
                </remote>
 | 
						|
                
 | 
						|
                <text id="shipment.license" title="vehicle.license" row="2" col="2" span="1" readOnly="false" required="false" reserve="false" forceOverride="true" inVisible="false" trimSpace="true"/>
 | 
						|
                <dateRanger id="shipment.operatorDate" title="lfv.sdate" row="3" col="1" span="2" readOnly="false" required="false" reserve="false" forceOverride="true" inVisible="false" showTime="false" manualEditable="true" defaultCurrentDate="false" fromDate="startDate" toDate="endDate"/>
 | 
						|
<!--             	<remote id="shipment.routeFee.id" title="order.routeFee.name" row="5" col="2" span="1" readOnly="false" required="false" reserve="false" forceOverride="true" inVisible="false" manualEditable="true" displayColumn="3" percentSignPosition="both" displayedTableHead="序号,代码,名称"> -->
 | 
						|
<!--                     <hql><![CDATA[ select d.id,d.code,d.name -->
 | 
						|
<!--  from RouteFee d -->
 | 
						|
<!--  where (d.code like upper(:param) or d.name like :param) -->
 | 
						|
<!--  and d.disabled=false and d.platForm=#{SESSION_PLATFORM} -->
 | 
						|
<!--  /~d.name: and d.name like {d.name}~/]]></hql> -->
 | 
						|
<!--                     <inputUIs> -->
 | 
						|
<!--                         <text id="d.name" title="maintainVehicleRegFeePage.department.name" row="1" col="2" span="1" readOnly="false" required="false" reserve="false" forceOverride="true" inVisible="false" trimSpace="true" isPrecision="false"/> -->
 | 
						|
<!--                     </inputUIs> -->
 | 
						|
<!--                 </remote> -->
 | 
						|
            	<text id="shipment.driverName" title="shipment.driver" row="5" col="1" span="1" readOnly="false" required="false" reserve="false" forceOverride="true" inVisible="false" trimSpace="true"/>
 | 
						|
            	<text id="shipment.customerName" title="shipment.customerName" row="5" col="2" span="1" readOnly="false" required="false" reserve="false" forceOverride="true" inVisible="false" trimSpace="true"/>
 | 
						|
<!--            	<numberText id="shipment.payfee" title="shipment.payfee" row="6" col="1" span="1" readOnly="false" required="false" reserve="false" forceOverride="true" inVisible="false" trimSpace="true" isPrecision="false" returnType="Double"/>-->
 | 
						|
            	<list id="shipment.shipmentDepartment" title="shipment.shipmentDepartment" row="6" col="1" span="1" readOnly="false" required="false" reserve="false" forceOverride="true" >
 | 
						|
                    <hql><![CDATA[  SELECT 
 | 
						|
  commonCode.code,
 | 
						|
  commonCode.name From CommonCode commonCode 
 | 
						|
  where commonCode.codeType = '调度部门' 
 | 
						|
  order by commonCode.id]]></hql>
 | 
						|
                </list>
 | 
						|
                <list id="shipment.superviseType" title="orders.cargoType" row="6" col="2" 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>
 | 
						|
                <numberText id="payfee1" title="payfee1" row="7" col="1" span="1" readOnly="false" required="false" reserve="false" forceOverride="true" inVisible="false" trimSpace="true" isPrecision="false" returnType="Double"/> 
 | 
						|
            	<numberText id="payfee2" title="payfee2" row="7" col="2" span="1" readOnly="false" required="false" reserve="false" forceOverride="true" inVisible="false" trimSpace="true" isPrecision="false" returnType="Double"/>
 | 
						|
                <numberText id="legsfee1" title="legfee1" row="8" col="1" span="1" readOnly="false" required="false" reserve="false" forceOverride="true" inVisible="false" trimSpace="true" isPrecision="false" returnType="Double"/> 
 | 
						|
            	<numberText id="legsfee2" title="legfee2" row="8" col="2" span="1" readOnly="false" required="false" reserve="false" forceOverride="true" inVisible="false" trimSpace="true" isPrecision="false" returnType="Double"/>
 | 
						|
            </inputUIs>
 | 
						|
        </search>
 | 
						|
        <datasource type="hql"><![CDATA[ SELECT 
 | 
						|
 shipment.id,
 | 
						|
 shipment.operatorDate,
 | 
						|
 shipment.code,
 | 
						|
 shipment.costStatus,
 | 
						|
 shipment.license,
 | 
						|
 shipment.vehicleType.name,
 | 
						|
 shipment.driverName,
 | 
						|
 CAST(round(shipment.payfee,2) as string),
 | 
						|
 CAST(round(shipment.fee7,2) as string),
 | 
						|
 CAST(round(shipment.fee6,2) as string),
 | 
						|
 CAST(round(shipment.otherFee,2) as string),
 | 
						|
 shipment.secondDriverName,
 | 
						|
 round(shipment.quantity,1),
 | 
						|
 shipment.weight,
 | 
						|
 shipment.volume,
 | 
						|
 shipment.fromContact.address,
 | 
						|
 shipment.toContact.address,
 | 
						|
 shipment.status,
 | 
						|
 shipment.unloadingCompany.shortName,
 | 
						|
 shipment.shipmentDepartment,
 | 
						|
 shipment.routeFee.name,
 | 
						|
 shipment.description,
 | 
						|
  carrier.name,
 | 
						|
 shipment.shipmentMethod,
 | 
						|
 shipment.operator 
 | 
						|
 FROM Shipment  shipment
 | 
						|
  left  JOIN   shipment.carrier  carrier
 | 
						|
  left  JOIN   shipment.driver    driver
 | 
						|
  left  JOIN   shipment.vehicle  vehicle
 | 
						|
  left join shipment.vehicleType vt 
 | 
						|
  left  join shipment.routeFee routeFee
 | 
						|
  left  join shipment.vehicleType 
 | 
						|
  left join shipment.unloadingCompany 
 | 
						|
 WHERE 1=1 
 | 
						|
 and shipment.shipmentDepartment='专线' 
 | 
						|
 and shipment.isShortBarge=false 
 | 
						|
 and shipment.platForm= #{SESSION_PLATFORM} 
 | 
						|
 and (#{SESSION_USERS_NAME} = 'admin' or shipment.operator = #{SESSION_USERS_NAME})
 | 
						|
 and (shipment.status!='CANCEL' /~shipment.status: or 'CANCEL' = {shipment.status}~/ ) 
 | 
						|
  /~shipment.code: AND shipment.code like upper({shipment.code})~/
 | 
						|
  /~shipment.status: AND shipment.status = {shipment.status}~/
 | 
						|
  /~shipment.carrier.id: AND shipment.carrier.id = {shipment.carrier.id}~/
 | 
						|
/~shipment.payfee: AND shipment.payfee <= {shipment.payfee}~/  
 | 
						|
/~shipment.driverName: AND shipment.driverName like {shipment.driverName}~/ 
 | 
						|
/~shipment.routeFee.id: AND shipment.routeFee.id = {shipment.routeFee.id}~/ 
 | 
						|
/~shipment.license: AND upper(shipment.license) like upper({shipment.license})~/
 | 
						|
 /~startDate: AND trunc(shipment.operatorDate) >= {startDate}~/
 | 
						|
 /~endDate: AND trunc(shipment.operatorDate) <= {endDate}~/
 | 
						|
 /~shipment.shipmentDepartment: AND shipment.shipmentDepartment like {shipment.shipmentDepartment}~/
 | 
						|
   /~payfee1: AND shipment.payfee >= {payfee1}~/
 | 
						|
/~payfee2: AND shipment.payfee <= {payfee2}~/
 | 
						|
/~legsfee1: AND shipment.otherFee >= {legsfee1}~/
 | 
						|
/~legsfee2: AND shipment.otherFee <= {legsfee2}~/
 | 
						|
order by shipment.id desc 
 | 
						|
]]></datasource>
 | 
						|
        <columns>
 | 
						|
            <column id="shipment.id" title="shipment.id" visible="false" horizonAlign="center" verticalAlign="middle" />
 | 
						|
            <column id="shipment.operatorDate" title="lfv.sdate" visible="true" horizonAlign="left" verticalAlign="middle" format="shipmentDayFormatter"/>
 | 
						|
            <column id="shipment.code" title="shipment.code" visible="true" horizonAlign="left" verticalAlign="middle" />
 | 
						|
            <column id="shipment.costStatus" title="shipment.costStatus" width="80" visible="true" horizonAlign="left" verticalAlign="middle" format="enumFormat" formatParam="FeeStatus"/>
 | 
						|
            <column id="shipment.license" title="maintainShipmentPage.vehicle.license" width="80" visible="true" horizonAlign="left" verticalAlign="middle"/>
 | 
						|
            <column id="shipment.vehicleType.name" title="sendCar.vehicleType.name" width="60" visible="true" horizonAlign="center" verticalAlign="middle" />
 | 
						|
            <column id="shipment.driver.name" title="shipment.driver" width="80" visible="true" horizonAlign="left" verticalAlign="middle"/>
 | 
						|
            <column id="shipment.payfee" title="shipment.payfee" width="60" visible="true" horizonAlign="center" verticalAlign="middle"/>
 | 
						|
            <column id="shipment.fee7" title="shipment.fee7" width="60" visible="true" horizonAlign="center" verticalAlign="middle"/>
 | 
						|
            <column id="shipment.fee6" title="feeName.jjf" width="60" visible="true" horizonAlign="center" verticalAlign="middle"/>
 | 
						|
            <column id="shipment.otherFee" title="shipment.otherFee" visible="true" width="60" horizonAlign="center" verticalAlign="middle"/>
 | 
						|
            <column id="shipment.secondDriverName" title="secondDriverName"  width="80" visible="true" horizonAlign="left" verticalAlign="middle"/>
 | 
						|
            <column id="shipment.quantity" title="quantity" width="60" visible="true" horizonAlign="center" verticalAlign="middle"/>
 | 
						|
            <column id="shipment.weight" title="weight" width="60" visible="true" horizonAlign="center" verticalAlign="middle"/>
 | 
						|
            <column id="shipment.volume" title="volume" width="60" visible="true" horizonAlign="center" verticalAlign="middle"/>
 | 
						|
            <column id="shipment.fromContact.address" title="fromAddress" visible="true" horizonAlign="left" verticalAlign="middle" />
 | 
						|
            <column id="shipment.toContact.address" title="toAddress" visible="true" horizonAlign="left" verticalAlign="middle" />
 | 
						|
            <column id="shipment.status" title="shipment.status" width="50" visible="true" horizonAlign="left" verticalAlign="middle" format="enumFormat" formatParam="ShipmentStatus"/>
 | 
						|
            <column id="shipment.unloadingCompany.shortName" title="shipment.unloadingCompany.shortName" width="80" visible="true" horizonAlign="center" verticalAlign="middle"/>
 | 
						|
            <column id="shipment.shipmentDepartment" title="shipment.shipmentDepartment" visible="true" horizonAlign="center" verticalAlign="middle" />
 | 
						|
<!--             <column id="shipment.otherFee" title="shipment.otherFee" width="60" visible="true" horizonAlign="center" verticalAlign="middle"/> -->
 | 
						|
            <column id="shipment.orderGroupCode" title="orders.relateBill3" visible="true" horizonAlign="left" verticalAlign="middle"/>
 | 
						|
            <column id="shipment.customerName" title="consignor" visible="true" horizonAlign="left" verticalAlign="middle"/>
 | 
						|
            <column id="shipment.routeFee.name" title="shipment.routeFee.name" visible="true" horizonAlign="center" verticalAlign="middle" />
 | 
						|
            <column id="shipment.description" title="shipment.description" visible="true" horizonAlign="left" verticalAlign="middle"/>
 | 
						|
            <column id="shipment.carrier.name" title="shipment.carrier" visible="false" horizonAlign="left" verticalAlign="middle"/>
 | 
						|
            <column id="shipment.superviseType" title="orders.superviseType" width="50" visible="true" horizonAlign="center" verticalAlign="middle" />
 | 
						|
            <column id="shipment.shipmentMethod" title="shipment.shipmentMethod" visible="false" horizonAlign="center" verticalAlign="middle" format="enumFormat" formatParam="ShipmentMethod"/>
 | 
						|
            <column id="shipment.operator" title="updateInfo.operatorName" visible="true" horizonAlign="left" verticalAlign="middle"/>
 | 
						|
        </columns>
 | 
						|
        <buttons>
 | 
						|
            <popup id="view" title="specialUpdate" enableType="single" invisible="false" containId="true" pageId="modifyShipmentZXPage">
 | 
						|
<!--              	<enableExpression><![CDATA[(${shipment.status}=='AVAILABLE'||${shipment.status}=='OPEN')]]></enableExpression> -->
 | 
						|
             </popup>
 | 
						|
             <popup id="inputShipmentFee" title="inputShipmentFee" enableType="single" invisible="false" containId="true" pageId="editShipmentFeeInPutPage">
 | 
						|
             </popup>
 | 
						|
             <commit id="cancel" title="maintainShipmentPage.cancel" enableType="multi" invisible="false" confirmMessage="maintainShipmentPage.cancel.confirmMessage">
 | 
						|
<!--                <enableExpression><![CDATA[(${shipment.status}=='AVAILABLE')]]></enableExpression>-->
 | 
						|
                <mappings>
 | 
						|
                    <mapping id="ids" className="list"/>
 | 
						|
                </mappings>
 | 
						|
                <actions>
 | 
						|
                    <action managerName="CDShipmentManager" methodName="cancelShipment" parameter="ids"/>
 | 
						|
                </actions>
 | 
						|
                <forwards>
 | 
						|
                    <forward name="refreshWindow" newEnabled="true" editEnabled="true"/>
 | 
						|
                </forwards>
 | 
						|
            </commit>
 | 
						|
            <popup id="send" title="shipSendArrivePage.shipeMentArrivePage.send" enableType="multi" invisible="false" containId="true" pageId="editCDShipSendPage">
 | 
						|
           <enableExpression><![CDATA[(${shipment.status} == 'AVAILABLE')  ]]></enableExpression>
 | 
						|
            </popup>
 | 
						|
<!--                <popup id="onroadArrive" title="arriveConfirm" enableType="multi" invisible="false" containId="true" pageId="sendArriveInformPage"> -->
 | 
						|
<!--            	 <enableExpression><![CDATA[(${shipment.status} == 'ONROAD')]]></enableExpression> -->
 | 
						|
<!--             </popup> -->
 | 
						|
<!--  			<popup id="shipmnetFeeIn" title="shipmnetFeeIn" enableType="single" invisible="false" containId="true" pageId="modifyShipmentFeePage"> -->
 | 
						|
<!--               	<enableExpression><![CDATA[(${shipment.status}!= 'CANCEL')]]></enableExpression> -->
 | 
						|
<!--               </popup> -->
 | 
						|
              <popup id="inputLegsFee" title="inputPayFee" enableType="single" invisible="false" containId="true" pageId="modifyInputLegsFee">
 | 
						|
<!--         		<enableExpression><![CDATA[(${shipment.costStatus} == 'OPEN')]]></enableExpression> -->
 | 
						|
        	</popup>
 | 
						|
              <popup id="legsFeeIn" title="otherFeeInput" enableType="single" invisible="false" containId="true" pageId="modifyLegsFeePage">
 | 
						|
<!--               	<enableExpression><![CDATA[(${shipment.status}!= 'CANCEL'&& ${shipment.costStatus} == 'OPEN')]]></enableExpression> -->
 | 
						|
              </popup>
 | 
						|
            <commit id="wholeStatusCheck" title="feeStatusCheck" enableType="multi" invisible="false">
 | 
						|
                <enableExpression><![CDATA[ (${shipment.costStatus} == 'OPEN')]]></enableExpression>
 | 
						|
                <mappings>
 | 
						|
                    <mapping id="ids" className="list"/>
 | 
						|
                </mappings>
 | 
						|
                <actions>
 | 
						|
                    <action managerName="CDShipmentManager" methodName="orderPaySubmitCheck" parameter="ids"/>
 | 
						|
                </actions>
 | 
						|
                <forwards>
 | 
						|
                    <forward name="refreshWindow" newEnabled="true" editEnabled="true"/>
 | 
						|
                </forwards>
 | 
						|
            </commit>
 | 
						|
            <commit id="cancelCheck" title="feeStatuscancelCheck" enableType="multi" invisible="false">
 | 
						|
               <enableExpression><![CDATA[ (${shipment.costStatus} == 'SUBMIT_CHECK')]]></enableExpression>
 | 
						|
                <mappings>
 | 
						|
                    <mapping id="ids" className="list"/>
 | 
						|
                </mappings>
 | 
						|
                <actions>
 | 
						|
                    <action managerName="CDShipmentManager" methodName="cancelCheck" parameter="ids"/>
 | 
						|
                </actions>
 | 
						|
                <forwards>
 | 
						|
                    <forward name="refreshWindow" newEnabled="true" editEnabled="true"/>
 | 
						|
                </forwards>
 | 
						|
            </commit>
 | 
						|
           <popup id="avgtrimcost" title="avgtrimcost" enableType="single" invisible="false" containId="true" pageId="modifyAvgTrimCostPage">
 | 
						|
        		<enableExpression><![CDATA[(${shipment.costStatus} == 'OPEN')]]></enableExpression>
 | 
						|
        	</popup>
 | 
						|
		 <popup id="SeeTrackShipment" title="seeTrack" enableType="multi" invisible="false" containId="true" pageId="modifySeeTrackShipmentPage">
 | 
						|
            </popup>
 | 
						|
            
 | 
						|
        </buttons>
 | 
						|
    </maintainPage>
 | 
						|
</pages>
 |