credit_credit.lview 2.14 KB
Newer Older
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
<?xml version="1.0" encoding="UTF-8"?>

<!--
    $Author: sf
$Date: 2019/09/24 21:19
$Revision: 1.0
$Purpose: 商业伙伴授信创建
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" dynamiccreateenabled="true" trace="true">
    <a:init-procedure>
        <a:model-query fetchAll="true" model="basic.get_sys_default_time" rootPath="sys_default_time"/>-->
    </a:init-procedure>
    <a:view>
        <a:link id="credit_enhance_detail_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/>

        <script type="text/javascript"><![CDATA[
        //保存前调用
        window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_before_submit'] = function(ds, record) {
            window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
            var check_flag = true;


           if( record.get('credit_total_amount')<0){
               $L.showErrorMessage("错误",'信用总额度不能为负数',null,null);
               window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
               return false;
           }
           if(record.get('credit_date_to')<record.get('credit_date_from')){
               $L.showErrorMessage("错误",'授信结束时间不能小于开始时间',null,null);
               window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
               return false;
           }

            window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
           return  check_flag;


        };

40 41 42 43 44 45 46 47 48 49
        //保存成功后刷新页面credit_ds
        // window['${/parameter/@layout_code}_on_layout_dynamic_submitsuccess'] = function(ds, record, res, bp_seq) {
        //     Leaf.SideBar.show({
        //         msg: '操作成功',
        //         duration: 2000
        //     });
        //     $('credit_ds').query();
        //     $('${/parameter/@winid}').close();
        //     window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
        // };
50 51 52 53 54

        ]]></script>
        <a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
    </a:view>
</a:screen>