<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('组合表头')"/>
</head>
<body class="gray-bg">
<div class="container-div">
    <div class="row">
        <div class="col-sm-12 select-table table-bordered">
            <table id="bootstrap-table"></table>
        </div>
    </div>
</div>
<div th:include="include :: footer"></div>
<script th:inline="javascript">
    var prefix = ctx + "report";
    var datas = [[${@dict.getType('sys_normal_disable')}]];
    var isdyDatas = [[${@dict.getType('orhon_isdy')}]];
    var isghDatas = [[${@dict.getType('is_gh')}]];
    var istzzDatas = [[${@dict.getType('is_tzz')}]];
    var ishdzdDatas = [[${@dict.getType('is_hdzd')}]];
    var isdzzDatas = [[${@dict.getType('is_dzz')}]];
    var dzzlxDatas = [[${@dict.getType('orhon_dzzlx')}]];

    $(function () {
        var options = {
            url: prefix + "/five",
            showSearch: false,
            showRefresh: false,
            showToggle: false,
            showColumns: false,
            columns: [
                [
                    {
                        title: '汇总信息',
                        align: 'center',
                        colspan: 20
                    }
                ],
                [
                    {
                        title: '',
                        align: 'center',
                        colspan: 6
                    },{
                    title: '经营者',
                    align: 'center',
                    colspan: 3
                },{
                    title: '',
                    align: 'center',
                    colspan: 7
                },{
                    title: '党组织书记',
                    align: 'center',
                    colspan: 2
                },{
                    title: '',
                    align: 'center',
                    colspan: 1
                }
                ],
                [ {
                    field: 'zhmc',
                    title: '个体户名称'
                }, {
                    field: 'hyml',
                    title: '个体户类型'
                }, {
                    field: 'djjg',
                    title: '登记机关'
                }, {
                    field: 'zjse',
                    title: '注册资本（万元）'
                }, {
                    field: 'cyrs',
                    title: '从业人员数量（名）'
                }, {
                    field: 'dys',
                    title: '党员数(名)'
                }, {
                    field: 'jyz',
                    title: '经营者姓名'
                }, {
                    field: 'jyzlxfs',
                    title: '经营者联系方式'
                }, {
                    field: 'jyzsfdy',
                    title: '经营者是否为党员',
                    formatter: function(value, row, index) {
                        return $.table.selectDictLabel(isdyDatas, value);
                    }
                },{
                    field : 'isgh',
                    title : '是否建立工会',
                    formatter: function(value, row, index) {
                        return $.table.selectDictLabel(isghDatas, value);
                    }
                },{
                    field : 'istzz',
                    title : '是否建立团组织',
                    formatter: function(value, row, index) {
                        return $.table.selectDictLabel(istzzDatas, value);
                    }
                },{
                    field : 'isjljcfnzz',
                    title : '是否建立基层妇女组织'
                },{
                    field : 'ishdzd',
                    title : '是否有活动阵地',
                    formatter: function(value, row, index) {
                        return $.table.selectDictLabel(ishdzdDatas, value);
                    }
                },{
                    field : 'isdzz',
                    title : '是否建立党组织',
                    formatter: function(value, row, index) {
                        return $.table.selectDictLabel(isdzzDatas, value);
                    }
                },{
                    field : 'dzzjlsj',
                    title : '党组织建立日期'
                },{
                    field : 'dzzlx',
                    title : '党组织类型',
                    formatter: function(value, row, index) {
                        return $.table.selectDictLabel(dzzlxDatas, value);
                    }
                },{
                    field : 'dzzsjxm',
                    title : '姓名'
                },{
                    field : 'dzzsjdh',
                    title : '联系方式'
                },{
                    field : 'sjdzz',
                    title : '上级党组织'
                }
                ]
            ]
        };
        $.table.init(options);
    });
</script>
</body>
</html>
