⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 updinvme.pas

📁 拥有全套神州数码马易飞ERP源码,现上传部分源码
💻 PAS
字号:
unit updINVME;

interface

uses sysUtils, dbtables, Bde, updBase;

type
  TUpdateINVME = class(TBaseUpdateUnit)
  private
    function update_byINVI05(xSource: Variant): Boolean;
    function update_byMOCI05(xSource: Variant): Boolean;
    function update_byAll(xSource: Variant): Boolean;
  public
    //function updateINVME(xQrySource: TQuery; xAction: string;
    //   var xMsg: variant; xOtherVar: variant): Boolean;
    function update(xSource: Variant; xAction: string;
       var xMsg: variant; xOtherVar: variant; xUserData: variant): Boolean;
  end;

implementation

function TUpdateINVME.update(xSource: Variant; xAction: string;
           var xMsg: variant; xOtherVar: variant; xUserData: variant): Boolean;
begin
  self.saveVar(xAction, xOtherVar, xUserData);
  try
    self.setDBname(xSource[8]);
    if ((compareText(self.SourceTxnCode, 'TXNINVI05') = 0) OR
        (compareText(self.SourceTxnCode, 'TXNINVI07') = 0)) then
      Result := update_byINVI05(xSource)
    else
    if ((compareText(self.SourceTxnCode, 'TXNMOCI05') = 0) OR
        (compareText(self.SourceTxnCode, 'TXNMOCI06') = 0) OR
        (compareText(self.SourceTxnCode, 'TXNMOCI07') = 0) ) then
      Result := update_byMOCI05(xSource)
    else
      Result := update_byAll(xSource);
  finally
    self.Query1.close;
  end;
  xMsg := self.Msg;
end;

function TUpdateINVME.update_byAll(xSource: Variant): Boolean;
var
  mExist: Boolean;
begin
  Result := True;
  self.Msg[0] := 'skip';
  self.Msg[1] := 'INVME';
  self.Msg[2] := xSource[1]+' '+xSource[2];

  if xSource[0] = 'N' then exit;  //ぃ暗у腹恨瞶

  if xSource[2] = '' then exit;  //у腹

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -