|
@@ -184,6 +184,8 @@ type
|
|
|
function CheckFileAndCloudChekerList: Boolean;
|
|
|
|
|
|
procedure LocateMeasureBills(AID: Integer);
|
|
|
+ procedure LocateCompileBills(AID: Integer);
|
|
|
+ procedure LocateZJJL(ABillsID: Integer);
|
|
|
|
|
|
property ProjectData: TProjectData read FProjectData;
|
|
|
|
|
@@ -210,7 +212,7 @@ uses
|
|
|
PhaseData, BGLDm, MainFrm, ZhAPI, SearchDm, PHPWebDm, ActiveX,
|
|
|
ConstUnit, MD5Unit, sdIDTree, sdDB, mProgressFrm, ConditionalDefines,
|
|
|
ProjectCommands, ProjectProperty, CheckerMemoFrm, BillsMeasureDm,
|
|
|
- ProgressHintFrm, mProgressProFrm, ReportManagerFrm,
|
|
|
+ ProgressHintFrm, mProgressProFrm, ReportManagerFrm, BillsCompileDm,
|
|
|
ScFileArchiverConsts;
|
|
|
|
|
|
{$R *.dfm}
|
|
@@ -694,6 +696,7 @@ begin
|
|
|
|
|
|
FBillsMeasureFrame := TBillsMeasureFrame.Create(Self, FProjectData.BillsMeasureData);
|
|
|
FBillsMeasureFrame.OnAfterSetBookmark := ExpandBookmarkFrame;
|
|
|
+ FBillsMeasureFrame.OnLocateZJJL := LocateZJJL;
|
|
|
FBillsMeasureFrame.ShowPriceChange := FProjectData.ProjProperties.ShowPriceChange;
|
|
|
FBillsMeasureFrame.ShowBGLCode := FProjectData.ProjProperties.ShowBGLCode;
|
|
|
FBillsMeasureFrame.ShowDesignQuantity := FProjectData.ProjProperties.ShowDesignQuantity;
|
|
@@ -714,6 +717,7 @@ begin
|
|
|
FBillsGatherFrame.ShowPriceChange := FProjectData.ProjProperties.ShowPriceChange;
|
|
|
FBillsGatherFrame.ShowPhaseData := FProjectData.ProjProperties.PhaseCount > 0;
|
|
|
FBillsGatherFrame.OnLocateMeasureBills := LocateMeasureBills;
|
|
|
+ FBillsGatherFrame.OnLocateCompileBills := LocateCompileBills;
|
|
|
end;
|
|
|
|
|
|
procedure TProjectFrame.dxpmExpandBillsPopup(Sender: TObject);
|
|
@@ -1658,4 +1662,31 @@ begin
|
|
|
jpsMain.ActivePage.Tag := -1;
|
|
|
end;
|
|
|
|
|
|
+procedure TProjectFrame.LocateZJJL(ABillsID: Integer);
|
|
|
+var
|
|
|
+ Rec: TsdDataRecord;
|
|
|
+begin
|
|
|
+ if not tobtnZJJL.Down then
|
|
|
+ begin
|
|
|
+ tobtnZJJL.Down := True;
|
|
|
+ tobtnZJJL.Click;
|
|
|
+ end;
|
|
|
+ Rec := FProjectData.PhaseData.ZJJLData.sddZJJL.Locate('BillsID', ABillsID);
|
|
|
+ FProjectData.PhaseData.ZJJLData.sdvZJJL.LocateInControl(Rec);
|
|
|
+end;
|
|
|
+
|
|
|
+procedure TProjectFrame.LocateCompileBills(AID: Integer);
|
|
|
+var
|
|
|
+ vNode: TsdIDTreeNode;
|
|
|
+begin
|
|
|
+ dxsbViewControl.SelectedItem := dxsbViewControl.Groups[0].Items[xbiBillsCompile.Tag];
|
|
|
+ ChangeView(xbiBillsCompile.Tag);
|
|
|
+ with FProjectData.BillsCompileData do
|
|
|
+ begin
|
|
|
+ vNode := BillsCompileTree.FindNode(AID);
|
|
|
+ if Assigned(vNode) then
|
|
|
+ sdvBillsCompile.LocateInControl(vNode.Rec);
|
|
|
+ end;
|
|
|
+end;
|
|
|
+
|
|
|
end.
|