<style>
    .form-group .control-label {
        font-weight: 500;
        color: #555;
    }

    #rt-report-header>thead>tr>th {
        text-align: center;
        vertical-align: inherit;
        border: 1px solid #f0f0f0;
        color: #555;
        font-weight: 500;
        white-space: nowrap;
    }

    #rt-report-header>tbody>tr>td {
        text-align: center;
        vertical-align: inherit;
        border: 1px solid #f0f0f0;
        color: #555;
        font-weight: 500;
        white-space: nowrap;
    }
</style>
<form class="form-horizontal">
    <div class="form-group">
        <rt-datetime ng-model="vm.sDate" rt-type="date" rt-required="true" rt-title="日期-从" rt-required="true" rt-col="3" rt-label-col="2">
        </rt-datetime>
        <rt-datetime ng-model="vm.eDate" rt-type="date" rt-required="true" rt-title="日期-到" rt-required="true" rt-col="3" rt-label-col="2">
        </rt-datetime>
    </div>
    <div class="form-group">
        <rt-bu-tree-lookup rt-title="部门" rt-multiple="true" ng-model="vm.nodeSelected" rt-col="3" rt-label-col="2"></rt-bu-tree-lookup>

        <rt-lookup2 rt-title="负责人" ng-model="vm.OwnerId" rt-get-data-name="UserInfo.GetAllUser" rt-order-by="code"
            rt-col-list="[{Code:'name',Name:'姓名'},{Code:'code',Name:'编号'}]" rt-col="3" rt-label-col="2"></rt-lookup2>
        <div class="col-sm-1">
            <button class="btn btn-primary" ng-click="vm.showReportButton()">查询</button>
        </div>
        <div class="col-sm-">
            <button class="btn btn-primary" ng-click='vm.actions.export({
                    "businessunitidname":"部门",
                    "owneridname":"代表",
                    "waitcount":"等待开发数",
                    "startcount":"启动开发数量",
                    "step1":"提交进药资料及与临床主任沟通",
                    "step2":"临床主任提单",
                    "step3":"通过药事会进药许可",
                    "step4":"医院正式采购",
                    "succcount":"成功数量",
                    "failcount":"失败数量"
                    },"DevelopHospitalRateExport","医院开发进度统计")'>导出</button>
        </div>
    </div>
</form>
<div class="row">
    <rt-data-grid rt-page-record-count="vm.recordCount" rt-get-data="vm.showReport()" rt-page-index="vm.index" rt-page-size="vm.pageSize"
                  rt-rows="vm.reportData"
                  rt-auto-height=" {{tableMaxHeight}}  ">
        <table class="table table-condensed table-hover ng-scope" style="white-space: nowrap;" id="rt-report-header">
            <thead>
            <tr>
                <th class="rt-align-left">部门</th>
                <th class="rt-align-left">代表</th>
                <th class="rt-align-right">等待开发数</th>
                <th class="rt-align-right">启动开发数量</th>
                <th class="rt-align-right">提交进药资料及与临床主任沟通</th>
                <th class="rt-align-right">临床主任提单</th>
                <th class="rt-align-right">通过药事会进药许可</th>
                <th class="rt-align-right">医院正式采购</th>
                <th class="rt-align-right">成功数量</th>
                <th class="rt-align-right">失败数量</th>
            </tr>
            </thead>
            <tbody>
                <tr ng-repeat="row in vm.reportData">
                    <td class="rt-align-left">
                        {{row.businessunitidname == null ? "-" : row.businessunitidname}}
                    </td>
                    <td class="rt-align-left">
                        {{row.owneridname == null ? "-" : row.owneridname}}
                    </td>
                    <td class="rt-align-right">
                        {{row.waitcount == null ? 0 : row.waitcount}}
                    </td>
                    <td class="rt-align-right">
                        {{row.startcount == null ? 0 : row.startcount}}
                    </td>
                    <td class="rt-align-right">
                        {{row.step1 == null ? 0: row.step1}}
                    </td>
                    <td class="rt-align-right">
                        {{row.step2 == null ? 0 : row.step2}}
                    </td>
                    <td class="rt-align-right">
                        {{row.step3 == null ? 0 : row.step3}}
                    </td>
                    <td class="rt-align-right">
                        {{row.step4 == null ? 0 : row.step4 }}
                    </td>
                    <td class="rt-align-right">
                        {{row.succcount == null ? 0 : row.succcount }}
                    </td>
                    <td class="rt-align-right">
                        {{row.failcount == null ? 0 : row.failcount }}
                    </td>
                </tr>
            </tbody>
        </table>
    </rt-data-grid>
</div>