Explorar o código

0号台账,计量汇总列,可否编辑情况

MaiXinRong %!s(int64=7) %!d(string=hai) anos
pai
achega
9e667ad52b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      DataModules/BillsCompileDm.pas

+ 1 - 1
DataModules/BillsCompileDm.pas

@@ -371,7 +371,7 @@ begin
   end
   else if SameText(AValue.FieldName, 'IsGatherZJJL') then
   begin
-    Allow := TProjectData(FProjectData).CanUnlockInfo;
+    Allow := (TProjectData(FProjectData).ProjProperties.PhaseCount = 0) or TProjectData(FProjectData).CanUnlockInfo;
     if Allow then
     begin  
       vNode := TBillsIDTreeNode(BillsCompileTree.FindNode(AValue.Owner.ValueByName('ID').AsInteger));