소스 검색

修改Bug #836后影响Bug #834的修改

MaiXinRong 9 년 전
부모
커밋
61d72578b8
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      DataModules/BillsCompileDm.pas

+ 3 - 1
DataModules/BillsCompileDm.pas

@@ -702,7 +702,9 @@ procedure TBillsCompileData.sdvBillsCompileSetText(var Text: String;
 begin
   if not Assigned(AValue) then Exit;
   // 修改后数据与原数据相同则不提交
-  if not CheckValidData then Exit;
+  if not CheckValidData then
+    Allow := False;
+  if not Allow then Exit;
 
   CheckLockedData;
   if not Allow then Exit;