<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.provinceid" rt-options="vm.provinceList"></rt-picklist>
                    <rt-picklist rt-title="城市" rt-col="3" ng-model="vm.cityid" rt-options="vm.cityList"></rt-picklist>
                    <div class="btn-group" class="col-sm-1">
                        <button class="btn btn-primary" ng-click="vm.view.search(1)">查询</button>
                    </div>
                    <div class="btn-group" class="col-sm-1">
                        <button class="btn btn-primary" ng-click="vm.handle()">数据清洗</button>
                    </div>
                </div>
                <div class="form-group">
                    <rt-input rt-title="医院名称" rt-type="text" rt-col="3" ng-model="vm.hospitalName"></rt-input>
                </div>
            </div>
        </form>
    </div>

    <ul class="nav nav-tabs">
        <li class="active" ng-click="vm.selectTab('HospitalOdp')">
            <a href="#c1" onclick="return false;" data-toggle="tab">医院</a>
        </li>
        <li ng-click="vm.selectTab('DepartmentOdp')">
            <a href="#c2" onclick="return false;" data-toggle="tab">科室</a>
        </li>
        <li ng-click="vm.selectTab('Doctor')">
            <a href="#c3" onclick="return false;" data-toggle="tab">医生</a>
        </li>
    </ul>

    <div class="nav-tabs-custom" ng-if="vm.selectedTabName=='HospitalOdp'">
        <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>
                        <th>电话</th>
                        <th>省市县</th>
                        <th>省市县（标准）</th>
                        <th>特色科室</th>
                        <th>备注</th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="row in vm.data">
                        <td>
                            {{row.odp_data_source}}
                        </td>
                        <td>
                            {{row.name}}
                        </td>
                        <td>
                            {{row.name_alias}}
                        </td>
                        <td>
                            {{row.hospital_grade}}
                        </td>
                        <td>
                            {{row.std_first_hospital_gradeidName}}-{{row.std_second_hospital_gradeidName}}
                        </td>
                        <td>
                            {{row.address}}
                        </td>
                        <td>
                            {{row.telephone}}
                        </td>
                        <td>
                            {{row.provinceidName}}{{row.cityidName}}{{row.countyidName}}
                        </td>
                        <td>
                            {{row.std_provinceidName}}{{row.std_cityidName}}{{row.std_countyidName}}
                        </td>
                        <td>
                            {{row.goodat_departments}}
                        </td>
                        <td>
                            {{row.remarks}}
                        </td>
                    </tr>
                </tbody>
            </table>
        </rt-data-grid>
    </div>

    <div class="nav-tabs-custom" ng-if="vm.selectedTabName=='DepartmentOdp'">
        <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">
                        <td>
                            {{row.odp_data_source}}
                        </td>
                        <td>
                            {{row.name}}
                        </td>
                        <td>
                            {{row.provinceidName}}{{row.cityidName}}{{row.countyidName}}
                        </td>
                        <td>
                            {{row.std_provinceidName}}{{row.std_cityidName}}{{row.std_countyidName}}
                        </td>
                        <td>
                            {{row.hospitalidName}}
                        </td>
                        <td>
                            {{row.remarks}}
                        </td>
                    </tr>
                </tbody>
            </table>
        </rt-data-grid>
    </div>

    <div class="nav-tabs-custom" ng-if="vm.selectedTabName=='Doctor'">
        <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>
                        <th>医院等级（标准）</th>
                        <th>科室名称</th>
                        <th>科室名称（标准）</th>
                        <th>性别</th>
                        <th>职称</th>
                        <th>专长</th>
                        <th>备注</th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="row in vm.data">
                        <td>
                            {{row.odp_data_source}}
                        </td>
                        <td>
                            {{row.name}}
                        </td>
                        <td>
                            {{row.provinceidName}}{{row.cityidName}}{{row.countyidName}}
                        </td>
                        <td>
                            {{row.std_provinceidName}}{{row.std_cityidName}}{{row.std_countyidName}}
                        </td>
                        <td>
                            {{row.hospitalidName}}
                        </td>
                        <td>
                            {{row.std_hospitalidName}}
                        </td>
                        <td>
                            {{row.std_first_hospital_gradeidName}}-{{row.std_second_hospital_gradeidName}}
                        </td>
                        <td>
                            {{row.departmentidName}}
                        </td>
                        <td>
                            {{row.std_first_department_typeidName}}-{{row.std_second_department_typeidName}}
                        </td>
                        <td>
                            {{row.gendercodeName}}
                        </td>
                        <td>
                            {{row.jobtitle}}
                        </td>
                        <td>
                            {{row.goodat}}
                        </td>
                        <td>
                            {{row.remarks}}
                        </td>
                    </tr>
                </tbody>
            </table>
        </rt-data-grid>
    </div>
</div>