109 lines
7.0 KiB
XML
109 lines
7.0 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<pages>
|
|
<modifyDetailPage id="editCHEERSASNPage" title="芝华仕沙发订单" entityClass="com.dev.swms.server.model.receiving.ASN" onClose="refreshParent" width="900" height="540">
|
|
<modify>
|
|
<inputUIs>
|
|
<hidden id="asn.status" reserve="false"/>
|
|
<hidden id="asn.version" reserve="false"/>
|
|
<hidden id="asn.id" reserve="false"/>
|
|
<list id="asn.company.id" title="asn.company" row="1" col="1" span="1" width="120" defaultValue="3" 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>
|
|
<text id="asn.code" title="asn.code" row="1" col="2" readOnly="true" required="false" reserve="false" forceOverride="false" inVisible="false" trimSpace="true"/>
|
|
<date id="asn.orderDate" title="asn.orderDate" row="1" col="3" readOnly="false" required="true" reserve="false" forceOverride="false" inVisible="false" showTime="false" manualEditable="true" defaultCurrentDate="true"/>
|
|
<list id="asn.billType.id" title="asn.billType" row="1" col="4" span="1" width="120" readOnly="false" required="true" reserve="false" forceOverride="true">
|
|
<hql><![CDATA[select billType.id,billType.name
|
|
from BillType billType
|
|
where 1=1
|
|
and billType.disabled=false
|
|
and billType.type='RECEIVE'
|
|
]]></hql>
|
|
</list>
|
|
<text id="asn.relatedBill1" title="入库通知单编号" row="2" col="1" readOnly="false" required="true" reserve="false" forceOverride="false" inVisible="false" trimSpace="true"/>
|
|
<text id="asn.fromContact.person" title="contact.person" row="2" col="2" readOnly="false" required="false" reserve="false" forceOverride="false" inVisible="false" trimSpace="true"/>
|
|
<text id="asn.fromContact.telephone" title="contact.telephone" row="2" col="3" readOnly="false" required="false" reserve="false" forceOverride="false" inVisible="false" trimSpace="true"/>
|
|
<text id="asn.relatedBill2" title="合同号" row="2" col="4" readOnly="false" required="false" reserve="false" forceOverride="false" inVisible="false" trimSpace="true"/>
|
|
<text id="asn.fromAddress.address" title="address.address" row="3" col="1" span="4" width="720" readOnly="false" required="false" reserve="false" forceOverride="false" inVisible="false" length="255" trimSpace="true"/>
|
|
<text id="asn.description" title="asn.description" row="4" col="1" span="4" width="720" readOnly="false" required="false" reserve="false" forceOverride="true" inVisible="false" trimSpace="true"/>
|
|
</inputUIs>
|
|
<buttons>
|
|
<commit id="save" title="save" enableType="none" invisible="false">
|
|
<enableExpression><![CDATA[${asn.status} == 'OPEN']]></enableExpression>
|
|
<mappings>
|
|
<mapping id="asn" className="com.dev.swms.server.model.receiving.asn"/>
|
|
</mappings>
|
|
<actions>
|
|
<action managerName="asnManager" methodName="storeASN" parameter="asn"/>
|
|
</actions>
|
|
<forwards>
|
|
<forward name="refreshParent" newEnabled="true" editEnabled="true"/>
|
|
<forward name="refreshWindow" newEnabled="true" editEnabled="true"/>
|
|
</forwards>
|
|
</commit>
|
|
</buttons>
|
|
</modify>
|
|
<detail autoQuery="false">
|
|
<datasource><![CDATA[SELECT
|
|
asnDetail.id,
|
|
asnDetail.lineNo,
|
|
asnDetail.dock.code,
|
|
asnDetail.item.code,
|
|
asnDetail.item.name,
|
|
asnDetail.item.specs,
|
|
asnDetail.qualityStatus,
|
|
asnDetail.lotInfo.propLC1,
|
|
asnDetail.expectedQuantity,
|
|
asnDetail.receivedQuantity,
|
|
asnDetail.lotInfo.propC1,
|
|
asnDetail.packageUnit.unit
|
|
FROM ASNDetail asnDetail
|
|
left join asnDetail.dock
|
|
WHERE 1=1
|
|
/~asn.id: AND asnDetail.asn.id = {asn.id} ~/
|
|
ORDER BY asnDetail.lineNo ASC]]></datasource>
|
|
<columns>
|
|
<column id="asnDetail.id" title="asnDetail.id" visible="false"/>
|
|
<column id="asnDetail.lineNo" title="行号" width="50" visible="true" horizonAlign="left"/>
|
|
<column id="asnDetail.dock.code" title="库位号" visible="true" horizonAlign="right"/>
|
|
<column id="asnDetail.item.code" title="item.code" visible="true" horizonAlign="left"/>
|
|
<column id="asnDetail.item.name" title="item.name" visible="true" horizonAlign="left"/>
|
|
<column id="asnDetail.item.specs" title="item.specs" visible="true" horizonAlign="left"/>
|
|
<column id="asnDetail.qualityStatus" title="质量状态" width="80" visible="true" horizonAlign="left"/>
|
|
<column id="asnDetail.lotInfo.propLC1" title="特殊备注" visible="true" horizonAlign="left"/>
|
|
<column id="asnDetail.expectedQuantity" title="asnDetail.expectedQuantity" visible="true" horizonAlign="right"/>
|
|
<column id="asnDetail.receivedQuantity" title="收货数量" visible="true" horizonAlign="right"/>
|
|
<column id="asnDetail.PO" title="到货日期" visible="true" horizonAlign="left"/>
|
|
<column id="asnDetail.packageUnit.unit" title="packageUnit.unit" width="80" visible="true" horizonAlign="left"/>
|
|
</columns>
|
|
<buttons>
|
|
<popup id="newDetail" title="newDetail" enableType="none" invisible="false" containId="false" pageId="editASNDetailPage">
|
|
<enableExpression><![CDATA[${asn.status} == 'OPEN']]></enableExpression>
|
|
</popup>
|
|
<popup id="modify" title="modifyDetail" enableType="single" invisible="false" containId="true" pageId="editASNDetailPage">
|
|
<enableExpression><![CDATA[${asn.status} == 'OPEN']]></enableExpression>
|
|
</popup>
|
|
<commit id="deleteDetail" title="deleteDetail" enableType="multi" invisible="false" confirmMessage="editReceivingDocPage.confirm.delete">
|
|
<enableExpression><![CDATA[${asn.status} == 'OPEN']]></enableExpression>
|
|
<mappings>
|
|
<mapping id="asn.id" className="long"/>
|
|
<mapping id="ids" className="list"/>
|
|
</mappings>
|
|
<actions>
|
|
<action managerName="asnManager" methodName="removeASNDetail" parameter="asn.id,ids"/>
|
|
</actions>
|
|
<forwards>
|
|
<forward name="refreshWindow" newEnabled="true" editEnabled="true"/>
|
|
</forwards>
|
|
</commit>
|
|
</buttons>
|
|
</detail>
|
|
</modifyDetailPage>
|
|
</pages>
|