2,497
社区成员
发帖
与我相关
我的任务
分享
while not QueryBill4.Eof do
begin
with QueryBill1 do //这一段是自己保存前做处理
begin
First;
while not Eof do
begin
Edit;
FieldByName('iOrder').AsInteger:=SHDBGridEh1.SumList.RecNo;
Next;
end;
end;
with QueryBill2 do //这个就是完整性分析
begin
First;
while not Eof do
begin
if Trim(FieldByName('iOrder').AsString)='' then //如果有错就提示并且停止保存,还可以停到有错一行显示给客户看
begin
RzPageControl1.ActivePageIndex:=1;
MessageDlg('工艺清单里的顺序号不能为空!',mtWarning,[mbOK],0);
Result:=False;
Exit;
end;
Next;
end;
end;
QueryBill4.Next;
end;