fnd_sap_jco_idoc.lview 2.18 KB
Newer Older
Spencer Chang's avatar
Spencer Chang committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.leaf-framework.org/application">
    <a:view>
        <a:link id="fnd_sap_jco_idoc_link" url="${/request/@context_path}/modules/fnd/fnd_sap_jco_idoc.lsc"/>
        <script type="text/javascript"><![CDATA[
            Ext.Ajax.timeout = 300000;
            submit_click = function() {
                alert('begin...');
                var record = $('IDOCTYPE_READ_COMPLETE').getCurrentRecord();
                Leaf.request({
                    url: /*fnd_sap_jco_idoc.svc*/$('fnd_sap_jco_idoc_link').getUrl(),
                    para: record.data,
                    success: callback
                });
            }
            callback = function(data) {
                alert('...end')
            }
        ]]></script>
        <a:dataSets>
            <a:dataSet id="IDOCTYPE_READ_COMPLETE" autoCreate="true">
                <a:fields>
                    <a:field name="PI_IDOCTYP" defaultValue="MATMAS05"/>
                    <a:field name="PI_CIMTYP" defaultValue=""/>
                    <a:field name="PI_RELEASE" defaultValue="701"/>
                    <a:field name="PI_APPLREL" defaultValue=""/>
                    <a:field name="PI_VERSION" defaultValue="3"/>
                </a:fields>
            </a:dataSet>
        </a:dataSets>
        <a:form labelWidth="200" title="SAP标准BAPI函数IDOCTYPE_READ_COMPLETE插入IDOC" width="600">
            <a:textField name="PI_IDOCTYP" bindTarget="IDOCTYPE_READ_COMPLETE" prompt="IDOC类型"/>
            <a:textField name="PI_CIMTYP" bindTarget="IDOCTYPE_READ_COMPLETE" prompt="IDOC扩展类型"/>
            <a:textField name="PI_RELEASE" bindTarget="IDOCTYPE_READ_COMPLETE" prompt="消息类型分配有效的版本"/>
            <a:textField name="PI_APPLREL" bindTarget="IDOCTYPE_READ_COMPLETE" prompt="SAP IDOC节点定义版本,默认为空"/>
            <a:textField name="PI_VERSION" bindTarget="IDOCTYPE_READ_COMPLETE" prompt="IDOC记录类型版本,默认为3"/>
        </a:form>
        <a:hBox>
            <a:button click="submit_click" text="CON_CONTRACT_HEADERS.SUBMIT_BUTTON" title="CON_CONTRACT_HEADERS.SUBMIT_BUTTON"/>
        </a:hBox>
    </a:view>
</a:screen>