浏览代码

Merge branch 'master' of http://192.168.1.12:3000/maixinrong/measure

builder 9 年之前
父节点
当前提交
de6b1d0e34
共有 2 个文件被更改,包括 3 次插入1 次删除
  1. 1 1
      DataModules/BillsCompileDm.pas
  2. 2 0
      DataModules/BillsMeasureDm.pas

+ 1 - 1
DataModules/BillsCompileDm.pas

@@ -677,7 +677,7 @@ procedure TBillsCompileData.sdvBillsCompileSetText(var Text: String;
 begin
   if not Assigned(AValue) then Exit;
   // 修改后数据与原数据相同则不提交
-  if AValue.AsString = Text then Exit;
+  if (AValue.AsString = Text) or ((AValue.AsFloat = 0) and (Text = '')) then Exit;
 
   CheckLockedData;
   if not Allow then Exit;

+ 2 - 0
DataModules/BillsMeasureDm.pas

@@ -405,6 +405,8 @@ procedure TBillsMeasureData.sdvBillsMeasureSetText(var Text: String;
 
 begin
   if not Assigned(AValue) then Exit;
+  // 修改后数据与原数据相同则不提交
+  if (AValue.AsString = Text) or ((AValue.AsFloat = 0) and (Text = '')) then Exit;
 
   CheckLockedData;
   if not Allow then Exit;