<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: zhangxing5129  
    $Date: 2015-11-3 下午01:20:21  
    $Revision: 1.0  
    $Purpose: 信审退回备注信息
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application">
    <a:view>
        <a:link id="con_contract_signing_maintain_link" url="${/request/@context_path}/modules/cont/CON544/con_contract_signing_maintain.lview"/>
        <script type="text/javascript"><![CDATA[
            function con_contract_credit_back_msg_back() {
                $('${/parameter/@winId}').close();
            }
            
            function con_contract_credit_back_msg_confirm() {
                Leaf.Masker.mask($('${/parameter/@winId}').wrap, '正在操作......');
                var contract_credit_back = $('contract_credit_back_id').value;
                var contract_id = '${/parameter/@contract_id}';
                Leaf.request({
                    url: $('contract_credit_back_link').getUrl(),
                    para: {
                        contract_id: contract_id,
                        contract_credit_back: contract_credit_back
                    },
                    success: function(res) {
                        Leaf.SideBar.show({
                            msg: '退回成功',
                            duration: 2000
                        });
                        location.href = $('con_contract_signing_maintain_link').getUrl();
                    },
                    failure: function() {
                        Leaf.Masker.unmask($('${/parameter/@winId}').wrap);
                    },
                    error: function() {
                        Leaf.Masker.unmask($('${/parameter/@winId}').wrap);
                    },
                    scope: this
                });
            }
        ]]></script>
        <a:screenBody>
            <a:screenTopToolbar>
                <a:gridButton click="con_contract_credit_back_msg_back" text="取消"/>
                <a:gridButton click="con_contract_credit_back_msg_confirm" text="确定"/>
            </a:screenTopToolbar>
            <a:form title="退回原因">
                <a:textArea name="contract_credit_back" id="contract_credit_back_id" height="180" prompt="" width="450"/>
            </a:form>
        </a:screenBody>
    </a:view>
</a:screen>
