<div ng-controller="BatchInfoSupplyMgtCtrl" >

<div class="col-md-3 sidebar">
	<div class="wrapper-xs">
<!-- 		<a href="resources/downloads/forVolumeTemplate.xls" class="btn btn-default"><i class="icon icon-cloud-download"> 模板</i></a>    合计	各省申报分布情况-->
		<a href="resources/downloads/gjtemp.xls" class="btn btn-default"><i class="icon icon-cloud-download"> 模板</i></a>
		<input type="file"  style="display:inline;width:130px;" nv-file-select uploader="uploader" accept=".xls"/>
		<button ng-show="files.length > 0" class="btn btn-default" ng-click="upload()"><i class="icon icon-share-alt"></i>&nbsp;上传</button>
	</div>
	<div cg-busy="{promise:loading,message:'正在加载...'}">
	<div ng-cloak ng-show="courses.length == 0" class="alert alert-warning">
		没有供卷课程，请选择文件上传
	</div>
	<div class="list-group nav-sidebar">
		  <a ng-click="selectCourse($index)" ng-repeat="item in courses" ng-class="{'list-group-item':true,'active':selected.id == item.id}">
		  <span class="badge pull-left">{{$index+1}}</span>&nbsp;&nbsp;{{item.courseCode}} {{item.courseName}}
		  </a>
		</div>
	</div>
</div>
<div class="col-md-9 col-md-offset-3">
<div>

<a href="#batch/info/{{batch.id}}/supplyform/add" class="btn btn-default"><i class="glyphicon glyphicon-plus"> 添加省份课程</i></a>
<a href="#batch/info/{{batch.id}}/supplypaper/form" class="btn btn-default"><i class="icon icon-doc"> 启用试卷</i></a>
<a href="#batch/info/{{batch.id}}/supply/printtask" class="btn btn-default"><i class="glyphicon glyphicon-tasks"> 打印任务分配</i></a>
<a href="#batch/info/{{batch.id}}/supply/scantask" class="btn btn-default"><i class="glyphicon glyphicon-eye-open"> 封装任务分配</i></a>
<a href="#batch/info/{{batch.id}}/supplyconfig" class="btn btn-default"><i class="icon icon-settings"> 供卷设置</i></a>
<a href="#batch/info/{{batch.id}}/supplyprint" class="btn btn-default"><i class="icon icon-printer"> 打印</i></a>


</div>
<div ng-show="selected" class="panel panel-default m-t">
	<div class="panel-body">
	<h4><span>{{selected.courseCode}} {{selected.courseName}}</span>
		<a ng-click="remove(selected.id)" class="pull-right text-md"><i class="icon-close"></i> 删除</a>
		<a ng-click="edit(selected.id)" class="pull-right text-md m-r-sm"><i class="icon-note"></i> 修改</a>
	</h4>
	<p class="b-b"><span class="m-r-sm">启用试卷：{{selected.paperCode}}</span></p>
  <div class="col-md-4 col-lg-3" ng-repeat="p in supplyProvInfo">
  	<strong class="inline wrapper-xs text-primary">{{p.provName}}</strong>
    <span class="inline wrapper-xs" ng-class="{'padder':true,'text-success':p.paperFormat == 'MERGE'}">
    	{{p.paperFormatLabel}}
    </span>
    <span class="inline wrapper-xs">
    	{{p.paperTypeLabel}}
    </span>
    
  </div>
  </div>
  <div class="panel-footer">
  	<span class="padder">省份数：{{selected.supplyProvInfo.length}}</span>
		<span class="padder">合卷数：{{selected.mergeCount}}</span>
		<span class="padder">网评卷数：{{selected.sepCount}}</span><!-- 2016-01-20 张璇要求把“分卷”改成“网评卷” -->
		<span class="padder">合计：{{selected.total}}</span>
  </div>
</div>
</div>

<!-- 
<div class="row m-t">
<div class="col-md-4 col-sm-6" ng-repeat="row in courses | filter:{courseCode:cc}">
 <div class="panel panel-default" >
	<div class="panel-heading">
	<a ng-click="remove(row.id)" tooltip="删除" class="text-muted pull-right text-lg"><i class="icon-close"></i></a>
	<a ng-click="edit(row.id)" tooltip="编辑" class="text-muted pull-right text-lg m-r-sm"><i class="icon-note"></i></a>
		<h4 class="font-thin m-t-none m-b text-muted">{{row.courseCode}}  {{row.courseName}}</h4>
		<div class="clear">
			<small class="text-muted">试卷代码：<strong class="text-info">{{row.paperCode}}</strong></small>
		</div>
 	</div>
 	<div class="list-group no-radius alt" style="height:210px;" ng-scrollbar scrollbar-x="false" scrollbar-y="true" scrollbar-config="{show: auto}">
              <div class="list-group-item" ng-repeat="p in row.supplyProvInfo">
                <span class="badge bg-white text-info font-normal" style="text-shadow:none;">
                	{{p.paperFormatLabel}}
                </span>
                <span class="badge bg-white text-info font-normal" style="text-shadow:none;">{{p.paperTypeLabel}}</span>{{p.provName}}
              </div>
              
    </div>
	<div class="panel-footer no-padder">
		<div class="row text-center">
                <div class="col-xs-4">
                  <small class="block">合卷</small>
                  <span class="text-md text-info">{{row.mergeCount}}</span>
                </div>
                <div class="col-xs-4">
                  <small class="block">分卷</small>
                  <span class="text-md text-info">{{row.sepCount}}</span>
                </div>
                <div class="col-xs-4">
                  <small class="block">合计</small>
                  <span class="text-md text-info">{{row.total}}</span>
                </div>
              </div>
	</div>
</div>
</div>

</div>
-->
</div>
</div>