<style>
#rt-report-header > thead > tr >th {
    text-align: center;
    vertical-align: inherit;
    border: 1px solid #f0f0f0;
    color: #555;
    font-weight: 500;
    white-space: nowrap;
}
</style>
<div class="row rt-margin-bottom-before-box">
    <div class="col-sm-8">
            <button class="btn btn-link" ng-show="vm.privilege.IsExport" ng-click='vm.actions.export({
                "CreatedByName":"签到人",
                "BusinessUnitIdName":"省区/地区",
                "accountidName":"机构名称",
                "start_time":"签到时间",
                "signin":"签到照片",
                "start_addr":"签到位置",
                "end_time":"签退时间",
                "signout":"签退照片",
                "end_addr":"签退位置"
                },"InstitutionSignInExport","机构签到")'>
            <i class="fa fa-download"></i> 导出
        </button>                   
    </div>
</div>

<div class="box box-primary">
   
        <div class="box-header with-border">
            
            <h3 class="box-title">筛选</h3>
            <div class="box-tools pull-right">
                <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
            </div>
        </div>
        <form class="form-horizontal">
            <div class="box-body"> 
                <div class="form-group">
                        <rt-datetime ng-model="vm.SDate" rt-type="date" rt-title="签到日期-从" rt-col="3" rt-label-col="2">
                        </rt-datetime>
                        <rt-datetime ng-model="vm.EDate" rt-type="date" rt-title="签到日期-到" rt-col="3" rt-label-col="2">
                        </rt-datetime>
                </div>                    
                <div class="form-group">
                    <div class="col-sm-11.5">
                        <rt-bu-tree-lookup rt-title="部门筛选" rt-multiple="true" ng-model="vm.nodeSelected" rt-col="8" rt-label-col="2"></rt-bu-tree-lookup>
                    </div>
                </div>
            </div>
               
            <div class="box-footer ">
                    <div class="btn-group pull-right">
                            <button class="btn btn-primary" ng-click="vm.getReportData()">
                               查询
                            </button>
                    </div>               
            </div>
        </form>
</div>
<div class="box box-primary">
        <rt-data-grid rt-page-record-count="vm.recordCount"  rt-page-index="vm.pageIndex" rt-page-size="vm.pageSize" rt-get-data="vm.getReportData()" 
            rt-rows="vm.reportData" rt-auto-height="{{tableMaxHeight}}">
            <table class="table table-condensed table-hover ng-scope" style="white-space:nowrap;" id="rt-report-header">
                <thead>
                    <tr >                          
                        <!-- @@ 视图表头 -->
                        <th rowspan="2">签到人</th>
                        <th rowspan="2">省区/地区</th>
                        <th rowspan="2">机构名称</th>
                        <th rowspan="2">签到时间</th>
                        <th rowspan="2">签到照片</th>
                        <th rowspan="2">签到位置</th>
                        <th rowspan="2">签退时间</th>
                        <th rowspan="2">签退照片</th>
                        <th rowspan="2">签退位置　</th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="row in vm.reportData track by $index">                     
                        <td>{{row.CreatedByName}}</td>
                        <td>
                            {{row.BusinessUnitIdName}}
                        </td>
                        <td>
                            {{row.accountidName}}
                        </td>
                        <td>
                            {{row.start_time | date:'yyyy-MM-dd HH:mm:ss'}}
                        </td>
                        <td class="rt-number-align">
                            {{ row.signin}}
                        </td>
                        <td>
                            {{row.start_addr}}
                        </td>
                        <td>
                            {{row.end_time| date:'yyyy-MM-dd HH:mm:ss'}}
                        </td>
                        <td class="rt-number-align">
                            {{row.signout}}
                        </td>
                        <td>
                            {{row.end_addr}}
                        </td>
                        
                    </tr>
                </tbody>
            </table>
        </rt-data-grid>
</div>