Sfoglia il codice sorgente

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

MaiXinRong 7 anni fa
parent
commit
9e667ad52b
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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));