<div class="listview">
    <div class="row">
        <div class="col-sm-8">
 
        </div>
        <!-- div[.col-sm-12]-->
        <form class="col-sm-4">
            <div 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>
            </div>
        </form>
        <!-- div[.col-sm-4] -->
    </div>
    <div class="viewlist">
        <ul class="nav nav-tabs">
            <li ng-repeat="view in vm.view.list track by view.Id" ng-class="{true:'active',false:'inactive'}[view.Id == vm.view.selectedView.Id]"
                ng-click="vm.view.select(view)">
                <a href="#1" onclick="return false;" data-toggle="tab">{{view.ViewName}}</a>
            </li>
        </ul>
        <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-header-checkbox></rt-header-checkbox>
                        </th>
                        <!-- @@ 视图表头 -->
                        <th rt-field-code="name">姓名</th>
                        <th rt-field-code="CreatedOn">签到时间</th>
                        <th rt-field-code="telephone">电话</th>
                        <th rt-field-code="gendercode">性别</th>
                        <th rt-field-code="compay_name">公司</th>
                        <th rt-field-code="jobtitle">职位</th>
                        <th rt-field-code="birthdate">生日</th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="row in vm.data track by row.Id">
                        <td>
                            <rt-data-checkbox value="{{row.Id}}" />
                        </td>
                        <!-- @@ 视图列表值 -->
                        
                        <td>{{row.name}}</td>
                        <td>{{row.CreatedOn | date:'yyyy-MM-dd HH:mm:ss'}}</td>
                        <td>{{row.telephone}}</td>
                        <td>{{row.gendercode.Name}}</td>
                        <td>{{row.compay_name}}</td>
                        <td>{{row.jobtitle}}</td>
                        <td>{{row.birthdate | date:'yyyy-MM-dd'}}</td>
                    </tr>
                </tbody>
            </table>
        </rt-data-grid>
        <!-- rt-data-grid  -->
    </div>
    <!-- div[.panel-default] -->
</div>
<!-- div[.listview] -->

<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] -->