updpurtd.pas
来自「拥有全套神州数码马易飞ERP源码,现上传部分源码」· PAS 代码 · 共 55 行
PAS
55 行
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 + =
减小字号Ctrl + -
显示快捷键?