|  | @@ -572,7 +572,7 @@ procedure TProjectFrame.dxsbViewControlItemClick(Sender: TObject;
 | 
	
		
			
				|  |  |      vPM_Node := FProjectData.BillsCompileData.BillsCompileTree.FindNode(iPriceMarginID);
 | 
	
		
			
				|  |  |      if not Assigned(vPM_Node) then
 | 
	
		
			
				|  |  |      begin
 | 
	
		
			
				|  |  | -      ErrorMessage('台账中无预定义价差节点,不可使用价差功能');
 | 
	
		
			
				|  |  | +      ErrorMessage('台账中无预定义价差节点,不可使用价差功能。');
 | 
	
		
			
				|  |  |        dxsbViewControl.SelectedItem := dxsbViewControl.ActiveGroup.Items[jpsMain.ActivePageIndex];
 | 
	
		
			
				|  |  |        Abort;
 | 
	
		
			
				|  |  |      end
 | 
	
	
		
			
				|  | @@ -585,11 +585,12 @@ procedure TProjectFrame.dxsbViewControlItemClick(Sender: TObject;
 | 
	
		
			
				|  |  |      ChangeView;
 | 
	
		
			
				|  |  |    end;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +var
 | 
	
		
			
				|  |  | +  bCloseCompare: Boolean;
 | 
	
		
			
				|  |  |  begin
 | 
	
		
			
				|  |  |    if Item.Tag = jpsMain.ActivePageIndex then Exit;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -  if (Item.Tag in [0..3]) and (jpsMain.ActivePageIndex = 4) then
 | 
	
		
			
				|  |  | -    CloseCompare;
 | 
	
		
			
				|  |  | +  bCloseCompare := (Item.Tag in [0..3]) and (jpsMain.ActivePageIndex = 4);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |    case Item.Tag of
 | 
	
		
			
				|  |  |      0..2: ChangeView;
 | 
	
	
		
			
				|  | @@ -597,6 +598,9 @@ begin
 | 
	
		
			
				|  |  |      4: DisplayCompare;
 | 
	
		
			
				|  |  |      5: DisplayReports;
 | 
	
		
			
				|  |  |    end;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +  if bCloseCompare then
 | 
	
		
			
				|  |  | +    CloseCompare;
 | 
	
		
			
				|  |  |  end;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  procedure TProjectFrame.CreateBillsFrame;
 | 
	
	
		
			
				|  | @@ -633,8 +637,8 @@ end;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  procedure TProjectFrame.dxpmExpandBillsPopup(Sender: TObject);
 | 
	
		
			
				|  |  |  begin
 | 
	
		
			
				|  |  | -  dxpmExpandBills.ItemLinks.Items[7].Visible := jpsMain.ActivePageIndex in [0, 1, 3];
 | 
	
		
			
				|  |  | -  dxpmExpandBills.ItemLinks.Items[6].Visible := jpsMain.ActivePageIndex in [1, 3];
 | 
	
		
			
				|  |  | +  dxpmExpandBills.ItemLinks.Items[7].Visible := jpsMain.ActivePageIndex in [0, 1, 4];
 | 
	
		
			
				|  |  | +  dxpmExpandBills.ItemLinks.Items[6].Visible := jpsMain.ActivePageIndex in [1, 4];
 | 
	
		
			
				|  |  |    SetDxBtnAction(actnFirstLevel, MainForm.dxbtnFirstLevel);
 | 
	
		
			
				|  |  |    SetDxBtnAction(actnSecondLevel, MainForm.dxbtnSecondLevel);
 | 
	
		
			
				|  |  |    SetDxBtnAction(actnThirdLevel, MainForm.dxbtnThirdLevel);
 |