Преглед на файлове

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

MaiXinRong преди 7 години
родител
ревизия
9e667ad52b
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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));