|
@@ -107,7 +107,7 @@ var
|
|
|
begin
|
|
|
iID := saDetailGclBills.DataView.Current.ValueByName('RelaBillsID').AsInteger;
|
|
|
vNode := TBillsIDTreeNode(FPriceMarginBillsData.MainBillsTree.FindNode(iID));
|
|
|
- AddDetailGLs
|
|
|
+ AddDetailGLs;
|
|
|
{ ErrorMessage('当前清单已进行材料调差,不可再添加调差工料。');}
|
|
|
end;
|
|
|
|
|
@@ -171,7 +171,8 @@ end;
|
|
|
|
|
|
procedure TPriceMarginBillsFrame.actnAddDetailGLsUpdate(Sender: TObject);
|
|
|
begin
|
|
|
- TAction(Sender).Enabled := not TProjectData(FPriceMarginBillsData.ProjectData).PriceMarginReadOnly;
|
|
|
+ with TProjectData(FPriceMarginBillsData.ProjectData) do
|
|
|
+ TAction(Sender).Enabled := (not PriceMarginReadOnly) and Assigned(saDetailGclBills.DataView.Current);
|
|
|
end;
|
|
|
|
|
|
procedure TPriceMarginBillsFrame.ResetViewControl;
|