LON103W.lview 6.05 KB
<?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"></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="lon103w_hls_bp_master_funds_lv_query" model="lon.lon100w.hls_bp_master_funds_lv"
                modelaction="query"/>
        <div></div>
        <script type="text/javascript"></script>
        <a:dataSets/>
        <style>
            html,body{
                height: 360px;
                width: 570px;
                padding: 0;
            }
        </style>
        <script type="text/javascript"><![CDATA[
        function lon103w_time(rowdata, rowIndex) {
            var creationTime = rowdata.cdate.substring(0, 10);
            return creationTime;
        }

        function lon103w_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='${/requset/@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='${/requset/@context_path}/leafresource/images/BP/unLight1.png' alt='png'/>";
            }
        }

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

        var lon103wSource = new hlsDataSource();
        lon103wSource.setting({
            "pageSize": "5",
            "transport": {
                "read": {
                    "contentType": "application/json; charset=utf-8",
                    "type": "GET",
                    "url": $('lon103w_hls_bp_master_funds_lv_query').getUrl()+'?ORDER_FIELD=creation_date&ORDER_TYPE=desc'
                }
            }
        });
        lon103wSource.read();

        ]]></script>

        <div class="hls-pagging-grid" style="width:570px;height:360px;margin-top:0;float:left;">
            <div id="lon103w-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="lon103w" class="grid-body">
            </div>

        </div>
        <div style="clear:both;"></div>
        <script type="text/javascript">
            lon103wSource.fetch(function (datas) {
                lon103w = new HlsRollTable();
                var options = {
                    "pageSize": "5",
                    "titleStyle": "border-bottom:5px solid rgb(255,206,85);height:50px;line-height:50px;",
                    "id": "lon103w",
                    "filterable": true,
                    "titleImg": "${/request/context_path}/images/lon/new.png",
                    "columns": [
                        {
                            "field": "cdate",
                            "template": lon103w_time,
                            "title": "添加日期",
                            "filterable": true
                        },
                        {
                            "field": "credit_bp_id_n",
                            "title": "授信机构名称",
                            "filterable": true
                        },
                        {
                            "field": "credit_cate",
                            "title": "授信机构类型",
                            "filterable": true
                        },
                        {
                            "field": "",
                            "template": lon103w_edit,
                            "title": "编辑",
                            "filterable": true
                        }
                    ],
                    "title": "最新添加"
                };
                options.hlsDataSource = datas;
                lon103w.dataSource = this;

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


        </script>

        <a:screenBody style="display:none;"/>
    </a:view>
</a:screen>