?? updcopmg.pas
字號:
unit updCOPMG;
interface
uses sysUtils, dbtables, bde, updBASE;
type
TUpdateCOPMG = class(TBaseUpdateUnit)
private
FOtherVar: variant;
function update_byCOPI06(xQrySource: TQuery): Boolean;
function update_byCOPI08(xQrySource: TQuery): Boolean;
function update_byCOPI05(xQrySource: TQuery): Boolean;
public
function update(xQrySource: TQuery; xAction: string;
var xMsg: variant; xOtherVar: variant; xUserData: variant): Boolean;
end;
implementation
function TUpdateCOPMG.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, 'TXNCOPI08') = 0 then
Result := update_byCOPI08(xQrySource)
else
begin
end;
finally
self.Query1.close;
self.Query2.close;
end;
xMsg := self.Msg;
end;
function TUpdateCOPMG.update_byCOPI06(xQrySource: TQuery): Boolean;
var
mExist: Boolean;
begin
Result := True;
self.Msg[0] := '';
self.Msg[1] := 'COPMG';
with xQrySource do
begin
self.Msg[2] := FieldByName('TC004').asString+' '+FieldByName('TD004').asString; //
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -