Explorar el Código

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

MaiXinRong hace 7 años
padre
commit
9e667ad52b
Se han modificado 1 ficheros con 1 adiciones y 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));