📄 updpurtd.pas
字号:
unit updPURTD;
interface
uses sysUtils, dbtables, bde, updBASE,Libstrs;
type
TUpdatePURTD = class(TBaseUpdateUnit)
private
FOtherVar: variant;
function update_byPURI11(xQrySource: TQuery): Boolean;
function update_byPURI09(xQrySource: TQuery): Boolean;
function update_byPURI08(xQrySource: TQuery): Boolean;
public
function update(xQrySource: TQuery; xAction: string;
var xMsg: variant; xOtherVar: variant; xUserData: variant): Boolean;
end;
implementation
function TUpdatePURTD.update(xQrySource: TQuery; xAction: string;
var xMsg: variant; xOtherVar: variant; xUserData: variant): Boolean;
begin
Result := True;
self.saveVar(xAction, xOtherVar, xUserData);
FOtherVar:= xOtherVar;
try
self.setDBname(xQrySource.DatabaseName);
if compareText(self.SourceTxnCode, 'TXNPURI08') = 0 then
Result := update_byPURI08(xQrySource)
else
if compareText(self.SourceTxnCode, 'TXNPURI11') = 0 then
Result := update_byPURI11(xQrySource)
else
if ((compareText(self.SourceTxnCode, 'TXNPURI09') = 0) OR (compareText(self.SourceTxnCode, 'TXNPURI13') = 0)) then
Result := update_byPURI09(xQrySource)
else
begin
end;
finally
self.Query1.close;
self.Query2.close;
end;
xMsg := self.Msg;
end;
function TUpdatePURTD.update_byPURI08(xQrySource: TQuery): Boolean;
var
mExist : Boolean ;
mTD016:string;
begin
Result := True;
self.Msg[0] := 'skip';
self.Msg[1] := 'PURTD';
with xQrySOurce do //虫
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -