📄 updcopmb.pas
字号:
unit updCOPMB;
interface
uses sysUtils, dbtables, db, bde, updBase, LibStrs,ConstDEF ;
type
TUpdateCOPMB = class(TBaseUpdateUnit)
private
FOtherVar: variant;
FTA003: string ;
function update_byCOPI05(xQrySource: TQuery): Boolean;
function update_byCOPI06(xQrySource: TQuery): Boolean;
function update_byCOPI07(xQrySource: TQuery): Boolean;
function update_byCOPI08(xQrySource: TQuery): Boolean;
public
function update(xQrySource: TQuery; xAction: string;
var xMsg: variant; xOtherVar: variant; xUserData: variant): Boolean;
end;
implementation
function TUpdateCOPMB.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, 'TXNCOPI05') = 0 then
Result := update_byCOPI05(xQrySource)
else if compareText(self.SourceTxnCode, 'TXNCOPI06') = 0 then
Result := update_byCOPI06(xQrySource)
else if compareText(self.SourceTxnCode, 'TXNCOPI07') = 0 then
Result := update_byCOPI07(xQrySource)
else if (compareText(self.SourceTxnCode, 'TXNCOPI08') = 0) then
Result := update_byCOPI08(xQrySource)
else
begin
end;
finally
self.Query1.Close;
self.Query2.close;
self.Query1.UnPrepare;
self.Query2.UnPrepare;
end;
xMsg := self.Msg;
end;
function TUpdateCOPMB.update_byCOPI05(xQrySource: TQuery): Boolean;
var
mExist,mExist2: Boolean;
mNewFlag : Integer;
// mTA003: string ;
begin
Result := True;
self.Msg[0] := 'skip';
self.Msg[1] := 'COPMB';
with xqrySource do //
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -