<div class="row rt-margin-bottom-before-box">
    <div class="col-sm-8">
        <div class="btn-group">
             <button class="btn btn-link" ng-show="vm.privilege.IsExport" ng-click='vm.actions.export({
                    "from_accountidName":"商业",
                    "raw_data_count":"采集笔数",
                    "success_data_count":"成功写入笔数",
                    "CreatedOn":"创建时间"
                    })'>
                <i class="fa fa-download"></i> 导出
            </button>
        </div>
    </div>
    <div class="col-sm-4">
        <form class="input-group">
            <input type="search" placeholder="搜索商业..." class="form-control" ng-model="vm.view.searchText" />
            <span class="input-group-btn" ng-click="vm.view.search(1)">
                <button type="submit" class="btn btn-default">
                    <i class="fa fa-search"></i>
                </button>
            </span>
        </form>
    </div>
</div>

<div class="box box-primary">
    <div class="nav-tabs-custom">
       <rt-data-grid rt-page-record-count="vm.page.recordCount"  rt-page-index="vm.page.index" rt-page-size="vm.page.size" rt-get-data="vm.view.search()" rt-sort-field="vm.view.sortField"
            rt-rows="vm.data" rt-selected-ids="vm.view.selectedIds" rt-auto-height="vm.view.autoHeight">
            <table class="table table-condensed table-hover">
                <thead>
                    <tr>
                        <!-- @@ 视图表头 -->
                        <th rt-field-code="from_accountid">商业</th>
                        <th rt-field-code="raw_data_count">采集笔数</th>
                        <th rt-field-code="success_data_count">成功写入笔数</th>
                        <th rt-field-code="CreatedOn">创建时间</th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="row in vm.data track by row.Id">
                        <!-- @@ 视图列表值 -->
                        <td>
                            {{row.from_accountidName}}
                        </td>
                        <td>
                            {{row.raw_data_count}}
                        </td>
                        <td>
                            {{row.success_data_count}}
                        </td>
                        <td>
                            {{row.CreatedOn | date: 'yyyy-MM-dd HH:mm:ss'}}
                        </td> 
                    </tr>
                </tbody>
            </table>
        </rt-data-grid>
    </div>
</div>

<div class="sidebar sidebar-right sidebar-animate rt-shadow-border-left content-wrapper" ng-if="vm.view.type=='default'">
    <div ui-view class="content"></div>
</div>
<!-- div[.editview] -->