<div class="box box-primary">
    <div class="box box-widget">
        <!-- form start -->
        <form class="form-horizontal">
            <div class="box-body">
                <div class="form-group">
                    <rt-picklist rt-title="数据来源" rt-col="3" ng-model="vm.srcSelected" rt-options="vm.srcList"></rt-picklist>
                    <rt-input rt-title="医院名称" rt-type="text" rt-col="3" ng-model="vm.hospitalName"></rt-input>
                    <div class="btn-group" class="col-sm-2">
                        <button class="btn btn-primary" ng-click="vm.view.search(1)">查询</button>
                    </div>
                </div>
                <div class="form-group">
                    <rt-input rt-title="科室名称" rt-type="text" rt-col="3" ng-model="vm.departmentName"></rt-input>
                </div>
            </div>
        </form>
    </div>
    <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>数据来源</th>
                        <th>省市县</th>
                        <th>医院名称</th>
                        <th>科室名称</th>
                        <th>备注</th>
                        <th>创建时间</th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="row in vm.data track by row.Id">
                        <td>
                            {{row.odp_tenant_name}}
                        </td>
                        <td>
                            {{row.provinceidName}}{{row.cityidName}}{{row.countyidName}}
                        </td>
                        <td>
                            {{row.hospitalidName}}
                        </td>
                        <td>
                            {{row.name}}
                        </td>
                        <td>
                            {{row.remarks}}
                        </td>
                        <td>
                            {{row.CreatedOn|date:'yyyy-MM-dd HH:mm:ss'}}
                        </td>
                    </tr>
                </tbody>
            </table>
        </rt-data-grid>
    </div>
</div>