<div class="box box-primary">
    <div class="box-header with-border">
        <h3 class="box-title">筛选</h3>
        <div class="box-tools pull-right">
            <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
        </div>
    </div>
    <form class="form-horizontal">
        <div class="box-body">
            <div class="form-group">
                <div class="col-sm-12">
                    <rt-input ng-model="vm.name" rt-type="text" rt-title="姓名" rt-required="false" rt-col="3" rt-label-col="2"></rt-input>
                    <rt-input ng-model="vm.telephone" rt-type="text" rt-title="电话" rt-required="false" rt-col="3" rt-label-col="2"></rt-input>
                </div>
            </div>

            <div class="box-footer">
                <div class="btn-group pull-right">
                    <button class="btn btn-primary" ng-click="vm.pageIndex = 1;vm.search();">查询</button>
                    <button class="btn btn-default" ng-click='vm.actions.export({
                    "name":"姓名",
                    "age":"年龄",
                    "career":"职业",
                    "telephone":"电话",
                    "accountIdName":"医院",
                    "departmentIdName":"科室",
                    "contactIdName":"处方医生",
                    "disease_typeIdName":"病类",
                    "patientRemark":"备注",
                    "countofphoto":"处方照片数"
                    },"PatientInformationExportPlugin","患者信息查询")'>导出
                </button>

                </div>
            </div>
        </div>
    </form>
</div>

<div class="box box-primary">
    <div class="nav-tabs-custom">
        <div class="tab-content">
            <rt-data-grid rt-page-record-count="vm.recordCount" rt-page-index="vm.page.index" rt-page-size="vm.page.size" rt-get-data="vm.updata()" 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-hover">
                    <thead>
                        <tr>

                            <th rowspan="2" class="rt-text-align" rt-field-code="name" ng-click="vm.getListWay('name')">姓名</th>
                            <th rowspan="2" class="rt-number-align">年龄</th>
                            <th rowspan="2" class="rt-text-align">职业</th>
                            <th rowspan="2" class="rt-number-align">电话</th>
                            <th rowspan="2" class="rt-text-align" rt-field-code="accountIdName" ng-click="vm.getListWay('accountIdName')">医院</th>
                            <th rowspan="2" class="rt-text-align">科室</th>
                            <th rowspan="2" class="rt-text-align" rt-field-code="contactIdName" ng-click="vm.getListWay('contactIdName')">处方医生</th>
                            <th rowspan="2" class="rt-text-align">病类</th>
                            <th rowspan="2" class="rt-text-align">备注</th>
                            <th rowspan="2" class="rt-number-align">处方照片</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr ng-repeat="row in vm.data">

                            <td class="rt-text-align">
                                {{row.name}}
                            </td>
                            <td class="rt-number-align">
                                {{row.age}}
                            </td>
                            <td class="rt-text-align">
                                {{row.career}}
                            </td>
                            <td class="rt-number-align">
                                {{row.telephone}}
                            </td>
                            <td class="rt-text-align">
                                {{row.accountIdName}}
                            </td>
                            <td class="rt-text-align">
                                {{row.departmentIdName}}
                            </td>
                            <td class="rt-text-align">
                                {{row.contactIdName}}
                            </td>
                            <td class="rt-text-align">
                                {{row.disease_typeIdName}}
                            </td>
                            <td class="rt-text-align">
                                {{row.patientRemark}}
                            </td>
                            <td class="rt-number-align">
                                <a ng-click="vm.getPagesize()" id="{{row.patientId}}" data-toggle="sidebar" data-target=".sidebar-right" ui-sref=".readonly({id:row.patientId})" ui-sref-opts="{location:true}">{{row.countofphoto}}</a>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </rt-data-grid>
        </div>
    </div>
</div>
<div class="sidebar sidebar-right sidebar-animate rt-shadow-border-left content-wrapper">
    <div ui-view class="content"></div>
</div>