|  | @@ -38,6 +38,14 @@ var billsLibObj = {
 | 
	
		
			
				|  |  |              this.stdBillsFeatureSpread.refresh();
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | +    clearHighLight: function (spread) {
 | 
	
		
			
				|  |  | +        if (spread) {
 | 
	
		
			
				|  |  | +            let sheet = spread.getActiveSheet();
 | 
	
		
			
				|  |  | +            sheet.suspendPaint();
 | 
	
		
			
				|  |  | +            sheet.getRange(0, -1, sheet.getRowCount(), -1, GC.Spread.Sheets.SheetArea.viewport).backColor(undefined);
 | 
	
		
			
				|  |  | +            sheet.resumePaint();
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  |      loadStdBillsLib: function () {
 | 
	
		
			
				|  |  |          let i, select = $('#stdBillsLibSelect');
 | 
	
		
			
				|  |  |          select.empty();
 | 
	
	
		
			
				|  | @@ -163,6 +171,10 @@ var billsLibObj = {
 | 
	
		
			
				|  |  |                  stdBillsTreeController.setTreeSelected(result[0]);
 | 
	
		
			
				|  |  |                  billsLibObj.stdBillsSpread.getActiveSheet().setSelection(result[0].serialNo(), sel[0].col, 1, 1);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +                for (let node of result) {
 | 
	
		
			
				|  |  | +                    billsLibObj.stdBillsSpread.getActiveSheet().getRange(node.serialNo(), -1, 1, -1).backColor('lemonChiffon');
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |                  $('#nextStdBills').show();
 | 
	
		
			
				|  |  |                  $('#nextStdBills').click(function () {
 | 
	
		
			
				|  |  |                      var cur = stdBillsTree.selected, resultIndex = result.indexOf(cur), sel = billsLibObj.stdBillsSpread.getActiveSheet().getSelections();
 | 
	
	
		
			
				|  | @@ -175,6 +187,7 @@ var billsLibObj = {
 | 
	
		
			
				|  |  |                      }
 | 
	
		
			
				|  |  |                  });
 | 
	
		
			
				|  |  |              } else {
 | 
	
		
			
				|  |  | +                billsLibObj.clearHighLight(billsLibObj.stdBillsSpread);
 | 
	
		
			
				|  |  |                  $('#nextStdBills').hide();
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |              $('#stdBillsSearchResultCount').text('搜索结果:' + result.length);
 | 
	
	
		
			
				|  | @@ -332,13 +345,19 @@ $('#stdBillsTab').bind('click', function () {
 | 
	
		
			
				|  |  |      };
 | 
	
		
			
				|  |  |  });
 | 
	
		
			
				|  |  |  $('#stdBillsLibSelect').change(function () {
 | 
	
		
			
				|  |  | +    $('#stdBillsSearchResult').hide();
 | 
	
		
			
				|  |  | +    $(".main-data-side-q").height($(window).height() - $(".header").height() - $(".toolsbar").height() -  $(".tools-bar-height-q").height() - 202);
 | 
	
		
			
				|  |  | +    billsLibObj.clearHighLight(billsLibObj.stdBillsSpread);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |      var select = $(this);
 | 
	
		
			
				|  |  |      if (this.children.length !== 0) {
 | 
	
		
			
				|  |  | -        LoadStdBills(select.val());
 | 
	
		
			
				|  |  | +        billsLibObj.loadStdBills(select.val());
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  });
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +// 关闭搜索结果
 | 
	
		
			
				|  |  |  $('#closeSearchStdBills').click(function () {
 | 
	
		
			
				|  |  |      $('#stdBillsSearchResult').hide();
 | 
	
		
			
				|  |  |      $(".main-data-side-q").height($(window).height() - $(".header").height() - $(".toolsbar").height() -  $(".tools-bar-height-q").height() - 202);
 | 
	
		
			
				|  |  | +    billsLibObj.clearHighLight(billsLibObj.stdBillsSpread);
 | 
	
		
			
				|  |  |  });
 |