LON104W.lview 6.21 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 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131
<?xml version="1.0" encoding="UTF-8"?>

<!--
    $Author: huangtianyang
    $Date: 2018/6/29 下午6:04
    $Revision: 1.0 
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application">
    <a:init-procedure/>
    <a:view template="default" package="leaf.ui.std">
        <script src="${/request/@context_path}/javascripts/hls-all.js" type="text/javascript"/>
        <script src="${/request/@context_path}/javascripts/hlsDataSource.js" type="text/javascript"/>
        <script src="${/request/@context_path}/javascripts/hapGrid.js" type="text/javascript"/>
        <script src="${/request/@context_path}/javascripts/jquery.mloading.js" type="text/javascript"/>

        <script src="${/request/@context_path}/javascripts/hls-component.js" type="text/javascript"/>
        <script src="${/request/@context_path}/javascripts/hls-component-grid.js" type="text/javascript"/>
        <script src="${/request/@context_path}/leafresource/hls/beyondChart/assets/js/bootstrap.min.js" type="text/javascript"></script>

        <link href="${/request/@context_path}/css/hls-component.css" rel="stylesheet" type="text/css"/>
        <link href="${/request/@context_path}/css/jquery.mloading.css" type="text/css"/>
        <link href="${/request/@context_path}/css/jquery.mloading.css" type="text/css"/>
        <link href="${/request/@context_path}/lib/kendoui/styles/kendo.bootstrap.min.css" rel="stylesheet" type="text/css"/>
        <a:link id="lon104w_hls_bp_master_funds_lv_query" model="lon.lon100w.hls_bp_master_funds_lv" modelaction="query"/>
        <!--<a:link id="hls_bp_master_link" url="${/request/@context_path}/modules/lon/LON100/bp_funds_modify.lview"/>-->
        <!--<a:link id="get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/>-->
        <!--<a:link id="lon103w_hls_bp_master_funds_lv_query" model="lon.lon100w.hls_bp_master_funds_lv"
                modelaction="query"/>-->

        <!--<a:link id="hls_bp_master_funds_lv_query" model="lon.lon100w.hls_bp_master_funds_lv" modelaction="query"/>-->
        <!--<a:link id="hls_bp_master_link" url="${/request/@context_path}/modules/lon/LON100/bp_funds_modify.lview"/>-->
        <div></div>
        <script type="text/javascript"></script>
        <a:dataSets/>
        <style>
            html,body{
                width: 570px;
                height: 360px;
                padding: 0;
            }
        </style>
        <script type="text/javascript"><![CDATA[
        function lon104w_time(rowdata,rowIndex) {
            var creationTime=rowdata.update_date.substring(0,10);
            return creationTime;
        }

        function lon104w_collect(rowdata,rowIndex) {
            if (rowdata.collectFlag == 'Y') {
                return "<img id='" + rowdata.bpId + "' onclick='cara(" + rowdata.bpId + ")' style='cursor:pointer;width:15px;height:15px;display:inline-block;margin:0px;' src='${/request/@context_path}/leafresource/images/BP/light1.png' alt='png'/>";
            } else {
                return "<img id='" + rowdata.bpId + "' onclick='cara(" + rowdata.bpId + ")' style='cursor:pointer;width:15px;height:15px;display:inline-block;margin:0px;' src='${/request/@context_path}/leafresource/images/BP/unLight1.png' alt='png'/>";
            }
        }

        function lon104w_edit(rowdata,rowIndex) {
            return '<img onclick="openEdit('+rowdata.bpId+')" style="cursor:pointer;width:15px;height:15px;display:inline-block;margin:0px;" src="${/request/@context_path}/images/lon/modify.png" alt="png"/>';
        }

        var lon104wSource = new hlsDataSource();
        lon104wSource.setting({
            "pageSize":"5",
            "transport":{
                "read":{
                    "contentType":"application/json; charset=utf-8",
                    "type":"GET",
                    "url":$('lon104w_hls_bp_master_funds_lv_query').getUrl()
                }
            }
        });
        lon104wSource.read();

        ]]></script>

        <div class="hls-pagging-grid" style="width:570px;height:360px;margin-top:0;float:left;">
            <div id="lon104w-title" class="grid-title global-font-size13" >

                <img src="${/request/@context_path}/images/lon/new.png"/>
                <span style="padding-left:8px;">动态</span>

            </div>

            <div id="lon104w" class="grid-body">
            </div>

        </div>
        <div style="clear:both;"></div>
        <script type="text/javascript">
            lon104wSource.fetch(function (datas) {
                lon104w = new  HlsRollTable();
                var options =  {
                    "pageSize":"5",
                    "titleStyle":"border-bottom:5px solid rgb(159,214,97);height:50px;line-height:50px;",
                    "id":"stateTable",
                    "filterable":true,
                    "titleImg":"${/request/@context_path}/images/lon/message.png",
                    "columns":[
                        {
                            "field":"credit_bp_id_n",
                            "title":"授信机构名称",
                            "filterable":true
                        },
                        {
                            "field":"update_date",
                            "template":lon104w_time,
                            "title":"变更时间",
                            "filterable":true
                        }],
                    "title":"动态"
                };
                options.hlsDataSource = datas;
                lon104w.dataSource = this;

                options.dataSource = this;
                options.gridSelector = "#lon104w";
                options.pageControlSelector = "#lon104w_grid_foot";
                options.nextImgEnablePath = "${/request/@context_path}/images/lon/next.png";
                options.prevImgEnablePath = "${/request/@context_path}/images/lon/lastCan.png";
                options.nextImgUnenablePath = "${/request/@context_path}/images/lon/nextNot.png";
                options.prevImgUnenablePath = "${/request/@context_path}/images/lon/last.png";
                lon104w._init(options);
            });


        </script>

        <a:screenBody style="display:none;"/>
        <a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>

    </a:view>
</a:screen>