<div ng-controller="SupplyPrintLogCtrl" class="wrapper">

<div style="min-height: 300px;" cg-busy="{promise:promise,backdrop:true,message:'正在加载...'}">
	<div class="pull-left m-l m-b m-t">
		打印日期：
		<select class="input-sm" ng-model="printDate" ng-change="changePrintDate()">
			<option value="{{item}}" ng-repeat="item in printDates" >
				{{item}}
			</option>
		</select>
	</div>

	<div class="panel panel-default">
		<div class="panel-body">
			<table class="table table-striped">
				<thead>
					<tr>
						<th>#</th>
						<th>打印时间</th>
						<th width="8%">打印人</th>
						<th width="8%">省份</th>
						<th width="8%">课程代码</th>
						<th>课程名称</th>
						<th>试卷编号</th>
						<th width="10%">试卷格式</th>
						<th width="10%">纸张格式</th>
						<th>打印数量</th>
						<th>备注</th>
					</tr>
					<tr>
						<th></th>
						<th></th>
						<th><input type="text" placeholder="打印人" class="input-sm form-control" ng-model="search.username" /></th>
						<th><input type="text" placeholder="省份" class="input-sm .col-sm-1 form-control" ng-model="search.provName" /></th>
						<th><input type="text" placeholder="代码查找" class="input-sm form-control" ng-model="search.courseCode" /></th>
						<th><input type="text" placeholder="名称查找" class="input-sm form-control" ng-model="search.courseName" /></th>
						<th></th>
						<th><input type="text" placeholder="试卷格式" class="input-sm form-control" ng-model="search.printTypeLabel" /></th>
						<th><input type="text" placeholder="纸张格式" class="input-sm form-control" ng-model="search.paperTypeLabel" /></th>
						<th></th>
						<th></th>
					</tr>					
				</thead>
				<tbody>
					<tr ng-repeat="row in array | filter:search">
						<td>{{$index+1}}</td>
						<td>{{row.createdTimeStr}}</td>
						<td>{{row.username}}</td>
						<td>{{row.provName}}</td>
						<td>{{row.courseCode}}</td>
						<td>{{row.courseName}}</ td>
						<td>{{row.paperCode}}</ td>
						<td>{{row.printTypeLabel}}</td>
						<td>{{row.paperTypeLabel}}</td>
						<td>{{row.printCount}}</td>
						<td>{{row.remark}}</td>
					</tr>
				</tbody>

			</table>
		</div>
	</div>
</div>
</div>