<commit_before><script src="${basePath}/resources/common/js/calculate.js"></script>
<section class="content">
    <div class="row">
        <div class="col-xs-12">
            <div class="box box-info">
                <div class="box-header with-border">
                    <span>
                        <i class="fa fa-files-o">管理人员工资单</i>
                    </span>
                </div>
                <form id="salary-detail-form" name="salary-detail-form" class="form-horizontal">
                    <div class="box-body">
                        <div class="col-md-6">
                            <div class="form-group">
                                <label class="col-sm-4 control-label">开始时间<span style="color:red">*</span></label>
                                <div class="col-sm-8">
                                    <input type="text" class="form-control" data-flag="datepicker" data-format="yyyy-mm-dd" name="startTime" id="startTime"
                                        placeholder="起始时间" disabled="disabled">
                                </div>
                            </div>
                        </div>
                        <div class="col-md-6">
                            <div class="form-group">
                                <label class="col-sm-4 control-label">结束时间<span style="color:red">*</span></label>
                                <div class="col-sm-8">
                                    <input type="text" class="form-control" data-flag="datepicker" data-format="yyyy-mm-dd" name="endTime" id="endTime"
                                        placeholder="结束时间" disabled="disabled">
                                </div>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
            <div class="box box-success">
                <div class="box-header with-border">
                    <span>
                        <i class="fa fa-files-o">工资单明细</i>
                    </span>
                </div>
                <div class="dataTables_filter" id="searchDivDetail" style="display:none;">
                   <input type="search" name="salaryID" id="salaryID" class="form-control" operator="eq" style="display:none;">
                </div>
                <div class="box-body">
                    <!-- 内容 -->
                    <table id="salary_detail_table" class="table table-bordered table-striped table-hover">
                        <tfoot>
                            <tr>
                                <th colspan="12" style="text-align:right">合计:</th>
                                <th class="text-left">0</th>
                            </tr>
                        </tfoot>
                    </table>
                </div>
            </div>
        </div>
    </div>
</section>
<script>
    var form, salaryDetailTable;
    var id = "${id}";
    $('#salaryID',$('#searchDivDetail')).val(id);
    $(function () {
    	salaryDetailTable = new CommonTable("salary_detail_table", "manager_salary_detail_overview", "searchDivDetail", {
            "footerCallback": function ( row, data, start, end, display ) {
                var api = this.api(), data;
                // Remove the formatting to get integer data for summation
                var intVal = function ( i ) {
                    return typeof i === 'string' ?
                        i.replace(/[\$,]/g, '')*1 :
                        typeof i === 'number' ?
                            i : 0;
                };
     
                // Total over this page
                unitTotal = api
                    .column( 12, { page: 'current'} )
                    .data()
                    .reduce( function (a, b) {
                        return accAddition(intVal(a), intVal(b));
                    }, 0 );
                // Update footer
                $( api.column( 12 ).footer() ).html(
                    '￥'+unitTotal
                );
            }
        });
        //初始化表单 
        form = $("#salary-detail-form").form({baseEntity:false});
        //初始化控件
        form.initComponent();
        <commit_msg>机关人员工资审核页面合计列优化<commit_after><script src="${basePath}/resources/common/js/calculate.js"></script>
<section class="content">
    <div class="row">
        <div class="col-xs-12">
            <div class="box box-info">
                <div class="box-header with-border">
                    <span>
                        <i class="fa fa-files-o">管理人员工资单</i>
                    </span>
                </div>
                <form id="salary-detail-form" name="salary-detail-form" class="form-horizontal">
                    <div class="box-body">
                        <div class="col-md-6">
                            <div class="form-group">
                                <label class="col-sm-4 control-label">开始时间<span style="color:red">*</span></label>
                                <div class="col-sm-8">
                                    <input type="text" class="form-control" data-flag="datepicker" data-format="yyyy-mm-dd" name="startTime" id="startTime"
                                        placeholder="起始时间" disabled="disabled">
                                </div>
                            </div>
                        </div>
                        <div class="col-md-6">
                            <div class="form-group">
                                <label class="col-sm-4 control-label">结束时间<span style="color:red">*</span></label>
                                <div class="col-sm-8">
                                    <input type="text" class="form-control" data-flag="datepicker" data-format="yyyy-mm-dd" name="endTime" id="endTime"
                                        placeholder="结束时间" disabled="disabled">
                                </div>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
            <div class="box box-success">
                <div class="box-header with-border">
                    <span>
                        <i class="fa fa-files-o">工资单明细</i>
                    </span>
                </div>
                <div class="dataTables_filter" id="searchDivDetail" style="display:none;">
                   <input type="search" name="salaryID" id="salaryID" class="form-control" operator="eq" style="display:none;">
                </div>
                <div class="box-body">
                    <!-- 内容 -->
                    <table id="salary_detail_table" class="table table-bordered table-striped table-hover">
                        <tfoot>
                            <tr>
                                <th colspan="14" style="text-align:right">合计:</th>
                                <th class="text-left">0</th>
                            </tr>
                        </tfoot>
                    </table>
                </div>
            </div>
        </div>
    </div>
</section>
<script>
    var form, salaryDetailTable;
    var id = "${id}";
    $('#salaryID',$('#searchDivDetail')).val(id);
    $(function () {
    	salaryDetailTable = new CommonTable("salary_detail_table", "manager_salary_detail_overview", "searchDivDetail", {
            "footerCallback": function ( row, data, start, end, display ) {
                var api = this.api(), data;
                // Remove the formatting to get integer data for summation
                var intVal = function ( i ) {
                    return typeof i === 'string' ?
                        i.replace(/[\$,]/g, '')*1 :
                        typeof i === 'number' ?
                            i : 0;
                };
     
                // Total over this page
                unitTotal = api
                    .column( 14, { page: 'current'} )
                    .data()
                    .reduce( function (a, b) {
                        return accAddition(intVal(a), intVal(b));
                    }, 0 );
                // Update footer
                $( api.column( 14 ).footer() ).html(
                    '￥'+unitTotal
                );
            }
        });
        //初始化表单 
        form = $("#salary-detail-form").form({baseEntity:false});
        //初始化控件
        form.initComponent();
        
{'fraction_non_alphanumeric': 0.13964071856287424, 'fraction_numerical': 0.004311377245508982, 'mean_word_length': 1.069640644361834, 'pattern_counts': {'":': 2, '<': 137, '<?xml version=': 0, '>': 137, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1895061', 'n_tokens_mistral': 2235, 'n_tokens_neox': 2108, 'n_words': 402}