瀏覽代碼

清单汇总,比较同编号,不同名、单位、单价清单时,限制空行不参与对比。

MaiXinRong 7 年之前
父節點
當前提交
9379831c79
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Frames/BillsGatherFme.pas

+ 1 - 1
Frames/BillsGatherFme.pas

@@ -180,7 +180,7 @@ procedure TBillsGatherFrame.zgGclBillsCellGetColor(Sender: TObject;
 var
   bSimilarBills: Boolean;
 begin
-  if (ACoord.Y >= zgGclBills.FixedRowCount) then
+  if (ACoord.Y >= zgGclBills.FixedRowCount) and (ACoord.Y < zgGclBills.FixedRowCount + saGclBills.DataView.RecordCount) then
   begin
     if ACoord.Y = zgGclBills.FixedRowCount then
       bSimilarBills := CheckSimilarBills(ACoord.Y, ACoord.Y + 1)