156 lines
9.7 KiB
XML
156 lines
9.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<pages>
|
|
<maintainPage id="maintainZhizhuASNPage" title="maintainZhizhuASNPage" autoQuery="false">
|
|
<search>
|
|
<inputUIs>
|
|
<list id="asn.company.id" title="asn.company" row="1" col="1" span="1" width="120" defaultValue="" readOnly="false" required="true" reserve="false" forceOverride="true">
|
|
<hql><![CDATA[select company.id, company.name from Structure company
|
|
where company.beCompany = true
|
|
and company.disabled=false
|
|
and (company.id in (select u.organization.id from UserOrganize u where u.user=#{SESSION_USERS})
|
|
or 0=(select COALESCE(max(u.id),0) from UserOrganize u where u.user=#{SESSION_USERS})
|
|
)
|
|
]]></hql>
|
|
</list>
|
|
<list id="asn.status" title="asn.status" row="1" col="2" width="120px" readOnly="false" required="false" reserve="false" forceOverride="false" enumType="ASNStatus">
|
|
<hql><![CDATA[ SELECT
|
|
enumerate.enumValue,
|
|
enumerate.enumValue FROM Enumerate enumerate
|
|
WHERE enumerate.enumType = 'ASNStatus']]></hql>
|
|
</list>
|
|
<text id="asn.code" title="asn.code" row="2" col="1" readOnly="false" required="false" reserve="false" forceOverride="false" inVisible="false" trimSpace="false"/>
|
|
<text id="asn.relatedBill1" title="入库通知单编号" row="2" col="2" readOnly="false" required="false" reserve="false" forceOverride="false" inVisible="false" trimSpace="false"/>
|
|
<dateRanger id="order.date" title="asn.orderDate" row="3" span="3" readOnly="false" required="false" reserve="false" forceOverride="false" inVisible="false" showTime="false" manualEditable="true" defaultCurrentDate="false" fromDate="order.beginDate" toDate="order.endDate"/>
|
|
<dateRanger id="receive.date" title="asn.receivedDate" row="4" span="3" readOnly="false" required="false" reserve="false" forceOverride="false" inVisible="false" showTime="false" manualEditable="true" defaultCurrentDate="false" fromDate="receive.beginDate" toDate="receive.endDate"/>
|
|
<text id="asn.userName" title="asn.userName" row="5" span="1" readOnly="false" required="false" reserve="false" forceOverride="true" inVisible="false" trimSpace="false"/>
|
|
<checkbox id="ordersAll" title="是否显示全部" row="6" col="1" defaultValue="false"
|
|
span="1" readOnly="false" required="false" reserve="false" forceOverride="true" inVisible="false"/>
|
|
|
|
</inputUIs>
|
|
</search>
|
|
<datasource type="hql"><![CDATA[SELECT asn.id,
|
|
company.name,
|
|
asn.code,
|
|
asn.billType.name,
|
|
asn.relatedBill1,
|
|
asn.status,
|
|
asn.orderDate,
|
|
asn.expectedQuantity,
|
|
asn.receivedQuantity,
|
|
asn.receivedDate,
|
|
asn.billType.code,
|
|
dock.id
|
|
FROM ASN asn
|
|
LEFT JOIN asn.company company
|
|
LEFT JOIN asn.dock dock
|
|
WHERE 1=1
|
|
and asn.beLine=0
|
|
and asn.billType.name!='退货入库单'
|
|
and company.id=5
|
|
and (company.id in (select u.organization.id from UserOrganize u where u.user=#{SESSION_USERS})
|
|
or 0=(select COALESCE(max(u.id),0) from UserOrganize u where u.user=#{SESSION_USERS})
|
|
)
|
|
/~SESSION_WAREHOUSE: AND asn.warehouse = #{SESSION_WAREHOUSE} ~/
|
|
/~asn.company.id: AND asn.company.id = {asn.company.id} ~/
|
|
/~asn.status: AND asn.status = {asn.status} ~/
|
|
/~asn.code: AND asn.code like {asn.code} ~/
|
|
/~asn.relatedBill1: AND asn.relatedBill1 like {asn.relatedBill1} ~/
|
|
/~order.beginDate: AND asn.orderDate >= {order.beginDate} ~/
|
|
/~order.endDate: AND asn.orderDate <= {order.endDate} ~/
|
|
/~receive.beginDate: AND asn.receivedDate >= {receive.beginDate} ~/
|
|
/~receive.endDate: AND asn.receivedDate <= {receive.endDate} ~/
|
|
/~asn.userName: AND asn.userName LIKE {asn.userName} ~/
|
|
order by asn.orderDate desc ]]></datasource>
|
|
<columns>
|
|
<column id="asn.id" title="asn.id" visible="false"/>
|
|
<column id="asn.company.name" title="asn.company" visible="true" horizonAlign="left"/>
|
|
<column id="asn.code" title="asn.code" visible="true" horizonAlign="left" sortIndex="1" />
|
|
<column id="asn.billType.name" title="asn.billType" visible="true" horizonAlign="center" verticalAlign="middle"/>
|
|
<column id="asn.relatedBill1" title="入库通知单编号" visible="true" horizonAlign="left"/>
|
|
<column id="asn.status" title="asn.status" visible="true" horizonAlign="left" dataType="enum" format="enumFormat" formatParam="ASNStatus"/>
|
|
<column id="asn.orderDate" title="asn.orderDate" visible="true" horizonAlign="left" dataType="date"/>
|
|
<column id="asn.expectedQuantity" title="asn.expectedQuantity" visible="true" horizonAlign="right" dataType="double" />
|
|
<column id="asn.receivedQuantity" title="asn.receivedQuantity" visible="true" horizonAlign="right" dataType="double" />
|
|
<column id="asn.receivedDate" title="asn.receivedDate" visible="true" horizonAlign="left" dataType="date"/>
|
|
<column id="asn.billType.code" title="maintainASNPage.asn.billType.code" visible="false" horizonAlign="center" verticalAlign="middle"/>
|
|
<column id="dock.id" title="asn.dock" visible="false" horizonAlign="center" verticalAlign="middle"/>
|
|
</columns>
|
|
<buttons>
|
|
<popup id="new" title="new" enableType="none" invisible="false" containId="false" pageId="editZhizhuASNPage"/>
|
|
<popup id="modify" title="edit" enableType="single" invisible="false" containId="true" pageId="editZhizhuASNPage"/>
|
|
<commit id="delete" title="delete" enableType="multi" invisible="false" confirmMessage="maintainASNPage.maintainReceivingDocPage.confirm.delete">
|
|
<enableExpression><![CDATA[(${asn.status}=='OPEN')]]></enableExpression>
|
|
<mappings>
|
|
<mapping id="ids" className="list"/>
|
|
</mappings>
|
|
<actions>
|
|
<action managerName="asnManager" methodName="deleteAll" parameter="ids"/>
|
|
</actions>
|
|
<forwards>
|
|
<forward name="refreshWindow" newEnabled="false" editEnabled="false"/>
|
|
</forwards>
|
|
</commit>
|
|
<commit id="cancel" title="cancel" enableType="multi" invisible="false" confirmMessage="maintainASNPage.maintainReceivingDocPage.confirm.cancel">
|
|
<enableExpression><![CDATA[(${asn.status}=='OPEN')]]></enableExpression>
|
|
<mappings>
|
|
<mapping id="ids" className="list"/>
|
|
</mappings>
|
|
<actions>
|
|
<action managerName="asnManager" methodName="cancelAll" parameter="ids"/>
|
|
</actions>
|
|
<forwards>
|
|
<forward name="refreshWindow" newEnabled="false" editEnabled="false"/>
|
|
</forwards>
|
|
</commit>
|
|
<commit id="active" title="active" enableType="multi" invisible="false">
|
|
<enableExpression><![CDATA[(${asn.status}=='OPEN')]]></enableExpression>
|
|
<mappings>
|
|
<mapping id="ids" className="list"/>
|
|
</mappings>
|
|
<actions>
|
|
<action managerName="asnManager" methodName="activeAll" parameter="ids"/>
|
|
</actions>
|
|
<forwards>
|
|
<forward name="refreshWindow" newEnabled="false" editEnabled="false"/>
|
|
</forwards>
|
|
</commit>
|
|
<commit id="inactive" title="inactive" enableType="multi" invisible="false">
|
|
<enableExpression><![CDATA[(${asn.status}=='ACTIVE')]]></enableExpression>
|
|
<mappings>
|
|
<mapping id="ids" className="list"/>
|
|
</mappings>
|
|
<actions>
|
|
<action managerName="asnManager" methodName="inactiveAll" parameter="ids"/>
|
|
</actions>
|
|
<forwards>
|
|
<forward name="refreshWindow" newEnabled="false" editEnabled="false"/>
|
|
</forwards>
|
|
</commit>
|
|
<commit id="oneKeyReceive" title="oneKeyReceive" enableType="multi" invisible="false" confirmMessage="确认是否一键收货?" >
|
|
<enableExpression><![CDATA[(${asn.status}=='ACTIVE')]]></enableExpression>
|
|
<mappings>
|
|
<mapping id="ids" className="list"/>
|
|
</mappings>
|
|
<actions>
|
|
<action managerName="asnManager" methodName="oneKeyReceive" parameter="ids"/>
|
|
</actions>
|
|
<forwards>
|
|
<forward name="refreshWindow" newEnabled="false" editEnabled="false"/>
|
|
</forwards>
|
|
</commit>
|
|
<popup id="receiveConfirm" title="receive" enableType="single" invisible="false" containId="true" pageId="asnReceiveConfirmPage">
|
|
<!-- <enableExpression><![CDATA[ (${asn.status}=='ACTIVE' || ${asn.status}=='RECEIVING' || ${asn.status}=='PUTAWAY')]]></enableExpression> -->
|
|
</popup>
|
|
<popup id="receiveBack" title="receiveBack" enableType="single" invisible="false" containId="true" pageId="asnAdjustReceivingDocPage">
|
|
<enableExpression><![CDATA[(${asn.status}=='RECEIVING' || ${asn.status} =='RECEIVED' || ${asn.status} =='CLOSE')]]></enableExpression>
|
|
</popup>
|
|
<popup id="viewReceivedRecord" title="maintainASNPage.viewReceivedRecord" enableType="single" invisible="false" containId="true" pageId="modifityReceivedRecordPage">
|
|
<enableExpression><![CDATA[${asn.status} != 'OPEN' && ${asn.status} != 'ACTIVE' && ${asn.status} != 'CANCEL']]></enableExpression>
|
|
</popup>
|
|
<popup id="zhizhuImport" title="出入库模板导入" enableType="none" invisible="false" containId="true" pageId="editZhizhuImport"/>
|
|
|
|
</buttons>
|
|
</maintainPage>
|
|
</pages>
|