<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" rt-label-col="2" ng-model="vm.fromWebSite" rt-options="vm.picklist.odp_crawler_source"></rt-picklist>
                    <rt-input rt-title="客户名称" rt-type="text" rt-col="3" rt-label-col="2" ng-model="vm.hosname"></rt-input>
                    <div class="btn-group" class="col-sm-2">
                        <button class="btn btn-primary" ng-click="vm.search(1)">查询</button>
                        <button class="btn btn-primary" ng-click="vm.gotoSyncPage();" style="margin-left: 20px;">数据同步</button>
                    </div>
                </div>
                
            </div>
        </form>
    </div>
    <div class="nav-tabs-custom">
        <div class="tab-content">
            <rt-data-grid rt-page-record-count="vm.recordCount" rt-page-index="vm.pageIndex" rt-page-size="vm.pageSize" rt-get-data="vm.search()" rt-sort-field="vm.view.sortField"
                rt-rows="vm.data" 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 track by row.Id">
                            <td>{{ $index+1 }}</td>
                            <!--<td ng-if="vm.view.type=='default'">
                                <a id="{{row.Id}}" data-toggle="sidebar" data-target=".sidebar-right" ui-sref=".edit({id:row.Id})" ui-sref-opts="{location:true}">查看</a>
                            </td>
                            <td ng-if="vm.view.type=='grid'">
                                <a href="javascript:;" ng-click="vm.actions.showForm(row.Id)">查看</a>
                            </td>-->
                            <td>{{ row.odp_crawler_source.Name}}</td>
                            <td ng-if="row.provinceidName!=row.cityidName">{{ row.provinceidName + row.cityidName +(row.countyidName?row.countyidName:'') }}</td>
                            <td ng-if="row.provinceidName==row.cityidName">{{ row.provinceidName + (row.countyidName?row.countyidName:'')}}</td>
                            <td>{{ row.name}}</td>
                            <td>{{ row.name_alias}}</td>
                            <td>{{ row.hospital_grade }}</td>
                            <td>{{ row.telephone}}</td>
                            <td style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;">{{ row.address }}</td>
                            <td style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;">{{ row.goodat_departments}}</td>
                            <td style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;">{{ row.remarks}}</td>
                            <td>{{ row.CreatedOn | date:'yyyy-MM-dd HH:mm:ss' }}</td>
                        </tr>
                    </tbody>
                </table>
            </rt-data-grid>
        </div>
    </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>