<div c
    <div class="btn-toolbar">
        <div class="btn-group pull-left">
            <div class="btn-group">
                <button class="btn btn-default dropdown-toggle" id="dropdownSrcSelect" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                    {{vm.srcSelected.name}}
                    <span class="caret"></span>
                </button>
                <ul class="dropdown-menu" aria-labelledby="dropdownSrcSelect">
                    <li ng-repeat="c in vm.clientList" ng-click="vm.srcSelected=c;vm.getAccountList()"><a href="javascript:void(0)">{{c.name}}</a></li>
                </ul>
            </div>
            <div class="btn-group">
                <button class="btn btn-default dropdown-toggle" id="dropdownAccountTypeSelect" data-toggle="dropdown" aria-haspopup="true"
                    aria-expanded="false">
                    {{vm.accountTypeSelected.Name}}
                    <span class="caret"></span>
                </button>
                <ul class="dropdown-menu" aria-labelledby="dropdownAccountTypeSelect">
                    <li ng-repeat="a in vm.accountTypeList" ng-click="vm.accountTypeSelected=a;vm.getAccountList()"><a href="javascript:void(0)">{{a.Name}}</a></li>
                </ul>
            </div>

        </div>
        <form class="col-sm-4 pull-right" style="position:fixed;top:8px;right:150px;z-index:10000">
            <div class="input-group">
                <input type="search" placeholder="输入名称或编码快速搜索..." class="form-control" ng-model="vm.queryValue" />
                <span class="input-group-btn" ng-click="vm.getAccountList()">
                    <button type="submit" class="btn btn-default">
                        <i class="fa fa-search"></i>
                    </button>
                </span>
            </div>
        </form>
        <!-- div[.col-sm-4] -->
    </div>
</div>
<!-- div[.row]-->
<div class="listview">
    <div class="viewlist">
        <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.getAccountList()" rt-sort-field="vm.view.sortField"
            rt-rows="vm.data" rt-auto-height="{{vm.view.autoHeight}}">
            <table class="table table-hover">
                <thead>
                    <tr>
                        <!-- @@ 视图表头 -->
                        <th rt-field-code="name">名称</th>
                        <th rt-field-code="accountnumber">编码</th>
                        <th>类型</th>
                        <th rt-field-code="provinceidName">省市县</th>
                        <th rt-field-code="statecode">状态</th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="row in vm.data track by row.Id">
                        <!-- @@ 视图列表值 -->
                        <td ng-if="vm.view.type=='default'&&row.accountclassificationcode.Value==1">
                            <a id="{{row.accountId}}" data-toggle="sidebar" data-target=".sidebar-right" ui-sref=".editBusiness({id:row.Id})"
                                ui-sref-opts="{location:true}">{{row.name}}</a>
                        </td>
                        <td ng-if="vm.view.type=='default'&&row.accountclassificationcode.Value==2">
                            <a id="{{row.accountId}}" data-toggle="sidebar" data-target=".sidebar-right" ui-sref=".editHospital({id:row.Id})"
                                ui-sref-opts="{location:true}">{{row.name}}</a>
                        </td>
                        <td ng-if="vm.view.type=='default'&&row.accountclassificationcode.Value==3">
                            <a id="{{row.accountId}}" data-toggle="sidebar" data-target=".sidebar-right" ui-sref=".editRetail({id:row.Id})" ui-sref-opts="{location:true}">{{row.name}}</a>
                        </td>
                        <td ng-if="vm.view.type=='default'&&row.accountclassificationcode.Value==4">
                            <a id="{{row.accountId}}" data-toggle="sidebar" data-target=".sidebar-right" ui-sref=".editBasic({id:row.Id})" ui-sref-opts="{location:true}">{{row.name}}</a>
                        </td>
                        <td ng-if="vm.view.type=='default'&&row.accountclassificationcode.Value==5">
                            <a id="{{row.accountId}}" data-toggle="sidebar" data-target=".sidebar-right" ui-sref=".editAgent({id:row.Id})" ui-sref-opts="{location:true}">{{row.name}}</a>
                        </td>
                        <td ng-if="vm.view.type=='default'&&row.accountclassificationcode.Value==6">
                            <a id="{{row.accountId}}" data-toggle="sidebar" data-target=".sidebar-right" ui-sref=".editChain({id:row.Id})" ui-sref-opts="{location:true}">{{row.name}}</a>
                        </td>
                        <td>
                            {{row.accountnumber}}
                        </td>
                        <td>
                            {{row.accountclassificationcode.Name}}
                        </td>
                        <td>
                            {{row.provinceid.Name}}{{row.cityid.Name}}{{row.countyid.Name}}
                        </td>
                        <td>{{row.StateCode.Name}}</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] -->